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: 795c945834fb09a44599f2298322698f )
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 : "" ;
97 MCP_OBJECT : DurableObjectNamespace < import ( "./src/index" ) . ThoughtSpotMCP > ;
108 OPENAI_DEEP_RESEARCH_MCP_OBJECT : DurableObjectNamespace < import ( "./src/index" ) . ThoughtSpotOpenAIDeepResearchMCP > ;
119 ANALYTICS : AnalyticsEngineDataset ;
1210 ASSETS : Fetcher ;
1311 }
1412}
1513interface Env extends Cloudflare . Env { }
16- type StringifyValues < EnvType extends Record < string , unknown > > = {
17- [ Binding in keyof EnvType ] : EnvType [ Binding ] extends string ? EnvType [ Binding ] : string ;
18- } ;
19- declare namespace NodeJS {
20- interface ProcessEnv extends StringifyValues < Pick < Cloudflare . Env , "HONEYCOMB_DATASET" | "HONEYCOMB_API_KEY" > > { }
21- }
2214
2315// Begin runtime types
2416/*! *****************************************************************************
@@ -100,7 +92,7 @@ interface Console {
10092 clear ( ) : void ;
10193 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
10294 count ( label ?: string ) : void ;
103- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static ) */
95+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countreset_static ) */
10496 countReset ( label ?: string ) : void ;
10597 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
10698 debug ( ...data : any [ ] ) : void ;
@@ -112,9 +104,9 @@ interface Console {
112104 error ( ...data : any [ ] ) : void ;
113105 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
114106 group ( ...data : any [ ] ) : void ;
115- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static ) */
107+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupcollapsed_static ) */
116108 groupCollapsed ( ...data : any [ ] ) : void ;
117- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static ) */
109+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupend_static ) */
118110 groupEnd ( ) : void ;
119111 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
120112 info ( ...data : any [ ] ) : void ;
@@ -124,9 +116,9 @@ interface Console {
124116 table ( tabularData ?: any , properties ?: string [ ] ) : void ;
125117 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
126118 time ( label ?: string ) : void ;
127- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static ) */
119+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeend_static ) */
128120 timeEnd ( label ?: string ) : void ;
129- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static ) */
121+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timelog_static ) */
130122 timeLog ( label ?: string , ...data : any [ ] ) : void ;
131123 timeStamp ( label ?: string ) : void ;
132124 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
@@ -301,25 +293,25 @@ declare function dispatchEvent(event: WorkerGlobalScopeEventMap[keyof WorkerGlob
301293declare function btoa ( data : string ) : string ;
302294/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
303295declare function atob ( data : string ) : string ;
304- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setTimeout) */
296+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
305297declare function setTimeout ( callback : ( ...args : any [ ] ) => void , msDelay ?: number ) : number ;
306- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setTimeout) */
298+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
307299declare 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) */
300+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
309301declare function clearTimeout ( timeoutId : number | null ) : void ;
310- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setInterval) */
302+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
311303declare function setInterval ( callback : ( ...args : any [ ] ) => void , msDelay ?: number ) : number ;
312- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ setInterval) */
304+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
313305declare 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) */
306+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
315307declare function clearInterval ( timeoutId : number | null ) : void ;
316- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ queueMicrotask) */
308+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
317309declare function queueMicrotask ( task : Function ) : void ;
318- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ structuredClone) */
310+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
319311declare function structuredClone < T > ( value : T , options ?: StructuredSerializeOptions ) : T ;
320- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ reportError) */
312+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
321313declare function reportError ( error : any ) : void ;
322- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/ fetch) */
314+ /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
323315declare function fetch ( input : RequestInfo | URL , init ?: RequestInit < RequestInitCfProperties > ) : Promise < Response > ;
324316declare const self : ServiceWorkerGlobalScope ;
325317/**
@@ -798,7 +790,6 @@ declare class Blob {
798790 slice ( start ?: number , end ?: number , type ?: string ) : Blob ;
799791 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
800792 arrayBuffer ( ) : Promise < ArrayBuffer > ;
801- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */
802793 bytes ( ) : Promise < Uint8Array > ;
803794 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
804795 text ( ) : Promise < string > ;
@@ -1093,15 +1084,10 @@ interface TextEncoderEncodeIntoResult {
10931084 */
10941085declare class ErrorEvent extends Event {
10951086 constructor ( type : string , init ?: ErrorEventErrorEventInit ) ;
1096- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
10971087 get filename ( ) : string ;
1098- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
10991088 get message ( ) : string ;
1100- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
11011089 get lineno ( ) : number ;
1102- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
11031090 get colno ( ) : number ;
1104- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
11051091 get error ( ) : any ;
11061092}
11071093interface ErrorEventErrorEventInit {
@@ -1275,7 +1261,6 @@ declare abstract class Body {
12751261 get bodyUsed ( ) : boolean ;
12761262 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
12771263 arrayBuffer ( ) : Promise < ArrayBuffer > ;
1278- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
12791264 bytes ( ) : Promise < Uint8Array > ;
12801265 /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
12811266 text ( ) : Promise < string > ;
@@ -1387,11 +1372,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> e
13871372 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
13881373 */
13891374 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- */
1375+ /* Returns a boolean indicating whether or not request can outlive the global in which it was created. */
13951376 keepalive : boolean ;
13961377 /**
13971378 * 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 +1572,6 @@ interface R2ObjectBody extends R2Object {
15911572 get body ( ) : ReadableStream ;
15921573 get bodyUsed ( ) : boolean ;
15931574 arrayBuffer ( ) : Promise < ArrayBuffer > ;
1594- bytes ( ) : Promise < Uint8Array > ;
15951575 text ( ) : Promise < string > ;
15961576 json < T > ( ) : Promise < T > ;
15971577 blob ( ) : Promise < Blob > ;
@@ -3837,18 +3817,8 @@ interface AutoRAGNotFoundError extends Error {
38373817}
38383818interface AutoRAGUnauthorizedError extends Error {
38393819}
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- } ;
38493820type AutoRagSearchRequest = {
38503821 query : string ;
3851- filters ?: CompoundFilter | ComparisonFilter ;
38523822 max_num_results ?: number ;
38533823 ranking_options ?: {
38543824 ranker ?: string ;
@@ -5198,7 +5168,6 @@ declare module 'cloudflare:workers' {
51985168 export type WorkflowSleepDuration = `${number } ${WorkflowDurationLabel } ${'s' | '' } ` | number ;
51995169 export type WorkflowDelayDuration = WorkflowSleepDuration ;
52005170 export type WorkflowTimeoutDuration = WorkflowSleepDuration ;
5201- export type WorkflowRetentionDuration = WorkflowSleepDuration ;
52025171 export type WorkflowBackoff = 'constant' | 'linear' | 'exponential' ;
52035172 export type WorkflowStepConfig = {
52045173 retries ?: {
@@ -5329,7 +5298,6 @@ declare namespace TailStream {
53295298 readonly type : "onset" ;
53305299 readonly dispatchNamespace ?: string ;
53315300 readonly entrypoint ?: string ;
5332- readonly executionModel : string ;
53335301 readonly scriptName ?: string ;
53345302 readonly scriptTags ?: string [ ] ;
53355303 readonly scriptVersion ?: ScriptVersion ;
@@ -5347,8 +5315,8 @@ declare namespace TailStream {
53475315 }
53485316 interface SpanOpen {
53495317 readonly type : "spanOpen" ;
5350- readonly name : string ;
5351- readonly info ?: FetchEventInfo | JsRpcEventInfo | Attributes ;
5318+ readonly op ? : string ;
5319+ readonly info ?: FetchEventInfo | JsRpcEventInfo | Attribute [ ] ;
53525320 }
53535321 interface SpanClose {
53545322 readonly type : "spanClose" ;
@@ -5372,7 +5340,7 @@ declare namespace TailStream {
53725340 }
53735341 interface Return {
53745342 readonly type : "return" ;
5375- readonly info ?: FetchResponseInfo ;
5343+ readonly info ?: FetchResponseInfo | Attribute [ ] ;
53765344 }
53775345 interface Link {
53785346 readonly type : "link" ;
@@ -5382,23 +5350,21 @@ declare namespace TailStream {
53825350 readonly spanId : string ;
53835351 }
53845352 interface Attribute {
5353+ readonly type : "attribute" ;
53855354 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 [ ] ;
5355+ readonly value : string | string [ ] | boolean | boolean [ ] | number | number [ ] ;
53915356 }
5357+ type Mark = DiagnosticChannelEvent | Exception | Log | Return | Link | Attribute [ ] ;
53925358 interface TailEvent {
53935359 readonly traceId : string ;
53945360 readonly invocationId : string ;
53955361 readonly spanId : string ;
53965362 readonly timestamp : Date ;
53975363 readonly sequence : number ;
5398- readonly event : Onset | Outcome | Hibernate | SpanOpen | SpanClose | DiagnosticChannelEvent | Exception | Log | Return | Link | Attributes ;
5364+ readonly event : Onset | Outcome | Hibernate | SpanOpen | SpanClose | Mark ;
53995365 }
54005366 type TailEventHandler = ( event : TailEvent ) => void | Promise < void > ;
5401- type TailEventHandlerName = "outcome" | "hibernate" | "spanOpen" | "spanClose" | "diagnosticChannel" | "exception" | "log" | "return" | "link" | "attributes " ;
5367+ type TailEventHandlerName = "onset" | " outcome" | "hibernate" | "spanOpen" | "spanClose" | "diagnosticChannel" | "exception" | "log" | "return" | "link" | "attribute " ;
54025368 type TailEventHandlerObject = Record < TailEventHandlerName , TailEventHandler > ;
54035369 type TailEventHandlerType = TailEventHandler | TailEventHandlerObject ;
54045370}
@@ -5712,9 +5678,6 @@ declare abstract class Workflow<PARAMS = unknown> {
57125678 */
57135679 public createBatch ( batch : WorkflowInstanceCreateOptions < PARAMS > [ ] ) : Promise < WorkflowInstance [ ] > ;
57145680}
5715- type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year' ;
5716- type WorkflowSleepDuration = `${number } ${WorkflowDurationLabel } ${'s' | '' } ` | number ;
5717- type WorkflowRetentionDuration = WorkflowSleepDuration ;
57185681interface WorkflowInstanceCreateOptions < PARAMS = unknown > {
57195682 /**
57205683 * An id for your Workflow instance. Must be unique within the Workflow.
@@ -5724,14 +5687,6 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
57245687 * The event payload the Workflow instance is triggered with
57255688 */
57265689 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- } ;
57355690}
57365691type InstanceStatus = {
57375692 status : 'queued' // means that instance is waiting to be started (see concurrency limits)
0 commit comments