11/* eslint-disable */
22// Generated by Wrangler by running `wrangler types ./types/worker-configuration.d.ts` (hash: 2ba4d49d5cf176d71f4422a91ce53bd4)
3- // Runtime types generated with workerd@1.20250803 .0 2025-04-04
3+ // Runtime types generated with workerd@1.20250823 .0 2025-04-04
44declare namespace Cloudflare {
55 interface Env {
66 OAUTH_KV : KVNamespace ;
@@ -416,6 +416,7 @@ interface DurableObjectNamespace<T extends Rpc.DurableObjectBranded | undefined
416416 idFromName ( name : string ) : DurableObjectId ;
417417 idFromString ( id : string ) : DurableObjectId ;
418418 get ( id : DurableObjectId , options ?: DurableObjectNamespaceGetDurableObjectOptions ) : DurableObjectStub < T > ;
419+ getByName ( name : string , options ?: DurableObjectNamespaceGetDurableObjectOptions ) : DurableObjectStub < T > ;
419420 jurisdiction ( jurisdiction : DurableObjectJurisdiction ) : DurableObjectNamespace < T > ;
420421}
421422type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high" ;
@@ -5354,6 +5355,12 @@ type GatewayOptions = {
53545355 requestTimeoutMs ?: number ;
53555356 retries ?: GatewayRetries ;
53565357} ;
5358+ type UniversalGatewayOptions = Exclude < GatewayOptions , 'id' > & {
5359+ /**
5360+ ** @deprecated
5361+ */
5362+ id ?: string ;
5363+ } ;
53575364type AiGatewayPatchLog = {
53585365 score ?: number | null ;
53595366 feedback ?: - 1 | 1 | null ;
@@ -5422,7 +5429,7 @@ declare abstract class AiGateway {
54225429 patchLog ( logId : string , data : AiGatewayPatchLog ) : Promise < void > ;
54235430 getLog ( logId : string ) : Promise < AiGatewayLog > ;
54245431 run ( data : AIGatewayUniversalRequest | AIGatewayUniversalRequest [ ] , options ?: {
5425- gateway ?: GatewayOptions ;
5432+ gateway ?: UniversalGatewayOptions ;
54265433 extraHeaders ?: object ;
54275434 } ) : Promise < Response > ;
54285435 getUrl ( provider ?: AIGatewayProviders | string ) : Promise < string > ; // eslint-disable-line
@@ -5456,6 +5463,7 @@ type AutoRagSearchRequest = {
54565463} ;
54575464type AutoRagAiSearchRequest = AutoRagSearchRequest & {
54585465 stream ?: boolean ;
5466+ system_prompt ?: string ;
54595467} ;
54605468type AutoRagAiSearchRequestStreaming = Omit < AutoRagAiSearchRequest , 'stream' > & {
54615469 stream : true ;
@@ -6947,10 +6955,6 @@ declare namespace TailStream {
69476955 readonly type : "hibernatableWebSocket" ;
69486956 readonly info : HibernatableWebSocketEventInfoClose | HibernatableWebSocketEventInfoError | HibernatableWebSocketEventInfoMessage ;
69496957 }
6950- interface Resume {
6951- readonly type : "resume" ;
6952- readonly attachment ?: any ;
6953- }
69546958 interface CustomEventInfo {
69556959 readonly type : "custom" ;
69566960 }
@@ -6978,17 +6982,14 @@ declare namespace TailStream {
69786982 readonly scriptTags ?: string [ ] ;
69796983 readonly scriptVersion ?: ScriptVersion ;
69806984 readonly trigger ?: Trigger ;
6981- readonly info : FetchEventInfo | JsRpcEventInfo | ScheduledEventInfo | AlarmEventInfo | QueueEventInfo | EmailEventInfo | TraceEventInfo | HibernatableWebSocketEventInfo | Resume | CustomEventInfo ;
6985+ readonly info : FetchEventInfo | JsRpcEventInfo | ScheduledEventInfo | AlarmEventInfo | QueueEventInfo | EmailEventInfo | TraceEventInfo | HibernatableWebSocketEventInfo | CustomEventInfo ;
69826986 }
69836987 interface Outcome {
69846988 readonly type : "outcome" ;
69856989 readonly outcome : EventOutcome ;
69866990 readonly cpuTime : number ;
69876991 readonly wallTime : number ;
69886992 }
6989- interface Hibernate {
6990- readonly type : "hibernate" ;
6991- }
69926993 interface SpanOpen {
69936994 readonly type : "spanOpen" ;
69946995 readonly name : string ;
@@ -7018,13 +7019,6 @@ declare namespace TailStream {
70187019 readonly type : "return" ;
70197020 readonly info ?: FetchResponseInfo ;
70207021 }
7021- interface Link {
7022- readonly type : "link" ;
7023- readonly label ?: string ;
7024- readonly traceId : string ;
7025- readonly invocationId : string ;
7026- readonly spanId : string ;
7027- }
70287022 interface Attribute {
70297023 readonly name : string ;
70307024 readonly value : string | string [ ] | boolean | boolean [ ] | number | number [ ] | bigint | bigint [ ] ;
@@ -7033,7 +7027,7 @@ declare namespace TailStream {
70337027 readonly type : "attributes" ;
70347028 readonly info : Attribute [ ] ;
70357029 }
7036- type EventType = Onset | Outcome | Hibernate | SpanOpen | SpanClose | DiagnosticChannelEvent | Exception | Log | Return | Link | Attributes ;
7030+ type EventType = Onset | Outcome | SpanOpen | SpanClose | DiagnosticChannelEvent | Exception | Log | Return | Attributes ;
70377031 interface TailEvent < Event extends EventType > {
70387032 readonly invocationId : string ;
70397033 readonly spanId : string ;
@@ -7044,14 +7038,12 @@ declare namespace TailStream {
70447038 type TailEventHandler < Event extends EventType = EventType > = ( event : TailEvent < Event > ) => void | Promise < void > ;
70457039 type TailEventHandlerObject = {
70467040 outcome ?: TailEventHandler < Outcome > ;
7047- hibernate ?: TailEventHandler < Hibernate > ;
70487041 spanOpen ?: TailEventHandler < SpanOpen > ;
70497042 spanClose ?: TailEventHandler < SpanClose > ;
70507043 diagnosticChannel ?: TailEventHandler < DiagnosticChannelEvent > ;
70517044 exception ?: TailEventHandler < Exception > ;
70527045 log ?: TailEventHandler < Log > ;
70537046 return ?: TailEventHandler < Return > ;
7054- link ?: TailEventHandler < Link > ;
70557047 attributes ?: TailEventHandler < Attributes > ;
70567048 } ;
70577049 type TailEventHandlerType = TailEventHandler | TailEventHandlerObject ;
0 commit comments