11/* eslint-disable */
2- // Generated by Wrangler by running `wrangler types` (hash: b5949bb168b75f2fe6e6e5a1db8d9e89 )
3- // Runtime types generated with workerd@1.20250604 .0 2025-04-17 nodejs_compat
2+ // Generated by Wrangler by running `wrangler types` (hash: 07dddea59586af0824a29829b938dd68 )
3+ // Runtime types generated with workerd@1.20250417 .0 2025-04-17 nodejs_compat
44declare namespace Cloudflare {
55 interface Env {
66 OAUTH_KV : KVNamespace ;
7- HONEYCOMB_DATASET : "" ;
8- HONEYCOMB_API_KEY : "" ;
7+ HONEYCOMB_API_KEY : string ;
8+ HONEYCOMB_DATASET : string ;
9+ HOST_NAME : string ;
910 MCP_OBJECT : DurableObjectNamespace < import ( "./src/index" ) . ThoughtSpotMCP > ;
1011 OPENAI_DEEP_RESEARCH_MCP_OBJECT : DurableObjectNamespace < import ( "./src/index" ) . ThoughtSpotOpenAIDeepResearchMCP > ;
1112 ANALYTICS : AnalyticsEngineDataset ;
@@ -17,7 +18,7 @@ type StringifyValues<EnvType extends Record<string, unknown>> = {
1718 [ Binding in keyof EnvType ] : EnvType [ Binding ] extends string ? EnvType [ Binding ] : string ;
1819} ;
1920declare namespace NodeJS {
20- interface ProcessEnv extends StringifyValues < Pick < Cloudflare . Env , "HONEYCOMB_DATASET" | "HONEYCOMB_API_KEY " > > { }
21+ interface ProcessEnv extends StringifyValues < Pick < Cloudflare . Env , "HONEYCOMB_API_KEY" | " HONEYCOMB_DATASET" | "HOST_NAME " > > { }
2122}
2223
2324// Begin runtime types
@@ -100,7 +101,7 @@ interface Console {
100101 clear ( ) : void ;
101102 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
102103 count ( label ?: string ) : void ;
103- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static ) */
104+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countreset_static ) */
104105 countReset ( label ?: string ) : void ;
105106 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
106107 debug ( ...data : any [ ] ) : void ;
@@ -112,9 +113,9 @@ interface Console {
112113 error ( ...data : any [ ] ) : void ;
113114 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
114115 group ( ...data : any [ ] ) : void ;
115- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static ) */
116+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupcollapsed_static ) */
116117 groupCollapsed ( ...data : any [ ] ) : void ;
117- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static ) */
118+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupend_static ) */
118119 groupEnd ( ) : void ;
119120 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
120121 info ( ...data : any [ ] ) : void ;
@@ -124,9 +125,9 @@ interface Console {
124125 table ( tabularData ?: any , properties ?: string [ ] ) : void ;
125126 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
126127 time ( label ?: string ) : void ;
127- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static ) */
128+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeend_static ) */
128129 timeEnd ( label ?: string ) : void ;
129- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static ) */
130+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timelog_static ) */
130131 timeLog ( label ?: string , ...data : any [ ] ) : void ;
131132 timeStamp ( label ?: string ) : void ;
132133 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
@@ -301,25 +302,25 @@ declare function dispatchEvent(event: WorkerGlobalScopeEventMap[keyof WorkerGlob
301302declare function btoa ( data : string ) : string ;
302303/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
303304declare function atob ( data : string ) : string ;
304- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setTimeout) */
305+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
305306declare function setTimeout ( callback : ( ...args : any [ ] ) => void , msDelay ?: number ) : number ;
306- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setTimeout) */
307+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
307308declare function setTimeout < Args extends any [ ] > ( callback : ( ...args : Args ) => void , msDelay ?: number , ...args : Args ) : number ;
308- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ clearTimeout) */
309+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
309310declare function clearTimeout ( timeoutId : number | null ) : void ;
310- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setInterval) */
311+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
311312declare function setInterval ( callback : ( ...args : any [ ] ) => void , msDelay ?: number ) : number ;
312- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setInterval) */
313+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
313314declare function setInterval < Args extends any [ ] > ( callback : ( ...args : Args ) => void , msDelay ?: number , ...args : Args ) : number ;
314- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ clearInterval) */
315+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
315316declare function clearInterval ( timeoutId : number | null ) : void ;
316- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ queueMicrotask) */
317+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
317318declare function queueMicrotask ( task : Function ) : void ;
318- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ structuredClone) */
319+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
319320declare function structuredClone < T > ( value : T , options ?: StructuredSerializeOptions ) : T ;
320- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ reportError) */
321+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
321322declare function reportError ( error : any ) : void ;
322- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ fetch) */
323+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
323324declare function fetch ( input : RequestInfo | URL , init ?: RequestInit < RequestInitCfProperties > ) : Promise < Response > ;
324325declare const self : ServiceWorkerGlobalScope ;
325326/**
@@ -798,7 +799,6 @@ declare class Blob {
798799 slice ( start ?: number , end ?: number , type ?: string ) : Blob ;
799800 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
800801 arrayBuffer ( ) : Promise < ArrayBuffer > ;
801- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */
802802 bytes ( ) : Promise < Uint8Array > ;
803803 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
804804 text ( ) : Promise < string > ;
@@ -1093,15 +1093,10 @@ interface TextEncoderEncodeIntoResult {
10931093 */
10941094declare class ErrorEvent extends Event {
10951095 constructor ( type : string , init ?: ErrorEventErrorEventInit ) ;
1096- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
10971096 get filename ( ) : string ;
1098- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
10991097 get message ( ) : string ;
1100- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
11011098 get lineno ( ) : number ;
1102- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
11031099 get colno ( ) : number ;
1104- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
11051100 get error ( ) : any ;
11061101}
11071102interface ErrorEventErrorEventInit {
@@ -1275,7 +1270,6 @@ declare abstract class Body {
12751270 get bodyUsed ( ) : boolean ;
12761271 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
12771272 arrayBuffer ( ) : Promise < ArrayBuffer > ;
1278- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
12791273 bytes ( ) : Promise < Uint8Array > ;
12801274 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
12811275 text ( ) : Promise < string > ;
@@ -1387,11 +1381,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> e
13871381 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
13881382 */
13891383 integrity : string ;
1390- /**
1391- * Returns a boolean indicating whether or not request can outlive the global in which it was created.
1392- *
1393- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
1394- */
1384+ /* Returns a boolean indicating whether or not request can outlive the global in which it was created. */
13951385 keepalive : boolean ;
13961386 /**
13971387 * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
@@ -1591,7 +1581,6 @@ interface R2ObjectBody extends R2Object {
15911581 get body ( ) : ReadableStream ;
15921582 get bodyUsed ( ) : boolean ;
15931583 arrayBuffer ( ) : Promise < ArrayBuffer > ;
1594- bytes ( ) : Promise < Uint8Array > ;
15951584 text ( ) : Promise < string > ;
15961585 json < T > ( ) : Promise < T > ;
15971586 blob ( ) : Promise < Blob > ;
@@ -3837,18 +3826,8 @@ interface AutoRAGNotFoundError extends Error {
38373826}
38383827interface AutoRAGUnauthorizedError extends Error {
38393828}
3840- type ComparisonFilter = {
3841- key : string ;
3842- type : 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' ;
3843- value : string | number | boolean ;
3844- } ;
3845- type CompoundFilter = {
3846- type : 'and' | 'or' ;
3847- filters : ComparisonFilter [ ] ;
3848- } ;
38493829type AutoRagSearchRequest = {
38503830 query : string ;
3851- filters ?: CompoundFilter | ComparisonFilter ;
38523831 max_num_results ?: number ;
38533832 ranking_options ?: {
38543833 ranker ?: string ;
@@ -5198,7 +5177,6 @@ declare module 'cloudflare:workers' {
51985177 export type WorkflowSleepDuration = `${number } ${WorkflowDurationLabel } ${'s' | '' } ` | number ;
51995178 export type WorkflowDelayDuration = WorkflowSleepDuration ;
52005179 export type WorkflowTimeoutDuration = WorkflowSleepDuration ;
5201- export type WorkflowRetentionDuration = WorkflowSleepDuration ;
52025180 export type WorkflowBackoff = 'constant' | 'linear' | 'exponential' ;
52035181 export type WorkflowStepConfig = {
52045182 retries ?: {
@@ -5329,7 +5307,6 @@ declare namespace TailStream {
53295307 readonly type : "onset" ;
53305308 readonly dispatchNamespace ?: string ;
53315309 readonly entrypoint ?: string ;
5332- readonly executionModel : string ;
53335310 readonly scriptName ?: string ;
53345311 readonly scriptTags ?: string [ ] ;
53355312 readonly scriptVersion ?: ScriptVersion ;
@@ -5347,8 +5324,8 @@ declare namespace TailStream {
53475324 }
53485325 interface SpanOpen {
53495326 readonly type : "spanOpen" ;
5350- readonly name : string ;
5351- readonly info ?: FetchEventInfo | JsRpcEventInfo | Attributes ;
5327+ readonly op ? : string ;
5328+ readonly info ?: FetchEventInfo | JsRpcEventInfo | Attribute [ ] ;
53525329 }
53535330 interface SpanClose {
53545331 readonly type : "spanClose" ;
@@ -5372,7 +5349,7 @@ declare namespace TailStream {
53725349 }
53735350 interface Return {
53745351 readonly type : "return" ;
5375- readonly info ?: FetchResponseInfo ;
5352+ readonly info ?: FetchResponseInfo | Attribute [ ] ;
53765353 }
53775354 interface Link {
53785355 readonly type : "link" ;
@@ -5382,23 +5359,21 @@ declare namespace TailStream {
53825359 readonly spanId : string ;
53835360 }
53845361 interface Attribute {
5362+ readonly type : "attribute" ;
53855363 readonly name : string ;
5386- readonly value : string | string [ ] | boolean | boolean [ ] | number | number [ ] | bigint | bigint [ ] ;
5387- }
5388- interface Attributes {
5389- readonly type : "attributes" ;
5390- readonly info : Attribute [ ] ;
5364+ readonly value : string | string [ ] | boolean | boolean [ ] | number | number [ ] ;
53915365 }
5366+ type Mark = DiagnosticChannelEvent | Exception | Log | Return | Link | Attribute [ ] ;
53925367 interface TailEvent {
53935368 readonly traceId : string ;
53945369 readonly invocationId : string ;
53955370 readonly spanId : string ;
53965371 readonly timestamp : Date ;
53975372 readonly sequence : number ;
5398- readonly event : Onset | Outcome | Hibernate | SpanOpen | SpanClose | DiagnosticChannelEvent | Exception | Log | Return | Link | Attributes ;
5373+ readonly event : Onset | Outcome | Hibernate | SpanOpen | SpanClose | Mark ;
53995374 }
54005375 type TailEventHandler = ( event : TailEvent ) => void | Promise < void > ;
5401- type TailEventHandlerName = "outcome" | "hibernate" | "spanOpen" | "spanClose" | "diagnosticChannel" | "exception" | "log" | "return" | "link" | "attributes " ;
5376+ type TailEventHandlerName = "onset" | " outcome" | "hibernate" | "spanOpen" | "spanClose" | "diagnosticChannel" | "exception" | "log" | "return" | "link" | "attribute " ;
54025377 type TailEventHandlerObject = Record < TailEventHandlerName , TailEventHandler > ;
54035378 type TailEventHandlerType = TailEventHandler | TailEventHandlerObject ;
54045379}
@@ -5712,9 +5687,6 @@ declare abstract class Workflow<PARAMS = unknown> {
57125687 */
57135688 public createBatch ( batch : WorkflowInstanceCreateOptions < PARAMS > [ ] ) : Promise < WorkflowInstance [ ] > ;
57145689}
5715- type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year' ;
5716- type WorkflowSleepDuration = `${number } ${WorkflowDurationLabel } ${'s' | '' } ` | number ;
5717- type WorkflowRetentionDuration = WorkflowSleepDuration ;
57185690interface WorkflowInstanceCreateOptions < PARAMS = unknown > {
57195691 /**
57205692 * An id for your Workflow instance. Must be unique within the Workflow.
@@ -5724,14 +5696,6 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
57245696 * The event payload the Workflow instance is triggered with
57255697 */
57265698 params ?: PARAMS ;
5727- /**
5728- * The retention policy for Workflow instance.
5729- * Defaults to the maximum retention period available for the owner's account.
5730- */
5731- retention ?: {
5732- successRetention ?: WorkflowRetentionDuration ;
5733- errorRetention ?: WorkflowRetentionDuration ;
5734- } ;
57355699}
57365700type InstanceStatus = {
57375701 status : 'queued' // means that instance is waiting to be started (see concurrency limits)
0 commit comments