@cloudflare/workers-types 4.20250905.0 → 4.20250909.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2021-11-03/index.d.ts +34 -7
- package/2021-11-03/index.ts +34 -7
- package/2022-01-31/index.d.ts +34 -7
- package/2022-01-31/index.ts +34 -7
- package/2022-03-21/index.d.ts +34 -7
- package/2022-03-21/index.ts +34 -7
- package/2022-08-04/index.d.ts +34 -7
- package/2022-08-04/index.ts +34 -7
- package/2022-10-31/index.d.ts +34 -7
- package/2022-10-31/index.ts +34 -7
- package/2022-11-30/index.d.ts +34 -7
- package/2022-11-30/index.ts +34 -7
- package/2023-03-01/index.d.ts +34 -7
- package/2023-03-01/index.ts +34 -7
- package/2023-07-01/index.d.ts +34 -7
- package/2023-07-01/index.ts +34 -7
- package/experimental/index.d.ts +34 -7
- package/experimental/index.ts +34 -7
- package/index.d.ts +34 -7
- package/index.ts +34 -7
- package/latest/index.d.ts +34 -7
- package/latest/index.ts +34 -7
- package/oldest/index.d.ts +34 -7
- package/oldest/index.ts +34 -7
- package/package.json +1 -1
package/2023-07-01/index.d.ts
CHANGED
|
@@ -7247,6 +7247,11 @@ interface D1Meta {
|
|
|
7247
7247
|
*/
|
|
7248
7248
|
sql_duration_ms: number;
|
|
7249
7249
|
};
|
|
7250
|
+
/**
|
|
7251
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7252
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7253
|
+
*/
|
|
7254
|
+
total_attempts?: number;
|
|
7250
7255
|
}
|
|
7251
7256
|
interface D1Response {
|
|
7252
7257
|
success: true;
|
|
@@ -7541,6 +7546,7 @@ type ImageOutputOptions = {
|
|
|
7541
7546
|
| "rgba";
|
|
7542
7547
|
quality?: number;
|
|
7543
7548
|
background?: string;
|
|
7549
|
+
anim?: boolean;
|
|
7544
7550
|
};
|
|
7545
7551
|
interface ImagesBinding {
|
|
7546
7552
|
/**
|
|
@@ -8237,21 +8243,17 @@ declare namespace TailStream {
|
|
|
8237
8243
|
readonly tag?: string;
|
|
8238
8244
|
readonly message?: string;
|
|
8239
8245
|
}
|
|
8240
|
-
interface Trigger {
|
|
8241
|
-
readonly traceId: string;
|
|
8242
|
-
readonly invocationId: string;
|
|
8243
|
-
readonly spanId: string;
|
|
8244
|
-
}
|
|
8245
8246
|
interface Onset {
|
|
8246
8247
|
readonly type: "onset";
|
|
8247
8248
|
readonly attributes: Attribute[];
|
|
8249
|
+
// id for the span being opened by this Onset event.
|
|
8250
|
+
readonly spanId: string;
|
|
8248
8251
|
readonly dispatchNamespace?: string;
|
|
8249
8252
|
readonly entrypoint?: string;
|
|
8250
8253
|
readonly executionModel: string;
|
|
8251
8254
|
readonly scriptName?: string;
|
|
8252
8255
|
readonly scriptTags?: string[];
|
|
8253
8256
|
readonly scriptVersion?: ScriptVersion;
|
|
8254
|
-
readonly trigger?: Trigger;
|
|
8255
8257
|
readonly info:
|
|
8256
8258
|
| FetchEventInfo
|
|
8257
8259
|
| JsRpcEventInfo
|
|
@@ -8272,6 +8274,8 @@ declare namespace TailStream {
|
|
|
8272
8274
|
interface SpanOpen {
|
|
8273
8275
|
readonly type: "spanOpen";
|
|
8274
8276
|
readonly name: string;
|
|
8277
|
+
// id for the span being opened by this SpanOpen event.
|
|
8278
|
+
readonly spanId: string;
|
|
8275
8279
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8276
8280
|
}
|
|
8277
8281
|
interface SpanClose {
|
|
@@ -8294,6 +8298,10 @@ declare namespace TailStream {
|
|
|
8294
8298
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8295
8299
|
readonly message: object;
|
|
8296
8300
|
}
|
|
8301
|
+
// This marks the worker handler return information.
|
|
8302
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8303
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8304
|
+
// streaming information or SSE http connections.
|
|
8297
8305
|
interface Return {
|
|
8298
8306
|
readonly type: "return";
|
|
8299
8307
|
readonly info?: FetchResponseInfo;
|
|
@@ -8324,9 +8332,28 @@ declare namespace TailStream {
|
|
|
8324
8332
|
| Log
|
|
8325
8333
|
| Return
|
|
8326
8334
|
| Attributes;
|
|
8335
|
+
// Context in which this trace event lives.
|
|
8336
|
+
interface SpanContext {
|
|
8337
|
+
// Single id for the entire top-level invocation
|
|
8338
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8339
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8340
|
+
// should use a new traceId.
|
|
8341
|
+
readonly traceId: string;
|
|
8342
|
+
// spanId in which this event is handled
|
|
8343
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8344
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8345
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8346
|
+
// spanId is not set ONLY if:
|
|
8347
|
+
// 1. This is an Onset event
|
|
8348
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8349
|
+
readonly spanId?: string;
|
|
8350
|
+
}
|
|
8327
8351
|
interface TailEvent<Event extends EventType> {
|
|
8352
|
+
// invocation id of the currently invoked worker stage.
|
|
8353
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8328
8354
|
readonly invocationId: string;
|
|
8329
|
-
|
|
8355
|
+
// Inherited spanContext for this event.
|
|
8356
|
+
readonly spanContext: SpanContext;
|
|
8330
8357
|
readonly timestamp: Date;
|
|
8331
8358
|
readonly sequence: number;
|
|
8332
8359
|
readonly event: Event;
|
package/2023-07-01/index.ts
CHANGED
|
@@ -7274,6 +7274,11 @@ export interface D1Meta {
|
|
|
7274
7274
|
*/
|
|
7275
7275
|
sql_duration_ms: number;
|
|
7276
7276
|
};
|
|
7277
|
+
/**
|
|
7278
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7279
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7280
|
+
*/
|
|
7281
|
+
total_attempts?: number;
|
|
7277
7282
|
}
|
|
7278
7283
|
export interface D1Response {
|
|
7279
7284
|
success: true;
|
|
@@ -7561,6 +7566,7 @@ export type ImageOutputOptions = {
|
|
|
7561
7566
|
| "rgba";
|
|
7562
7567
|
quality?: number;
|
|
7563
7568
|
background?: string;
|
|
7569
|
+
anim?: boolean;
|
|
7564
7570
|
};
|
|
7565
7571
|
export interface ImagesBinding {
|
|
7566
7572
|
/**
|
|
@@ -8082,21 +8088,17 @@ export declare namespace TailStream {
|
|
|
8082
8088
|
readonly tag?: string;
|
|
8083
8089
|
readonly message?: string;
|
|
8084
8090
|
}
|
|
8085
|
-
interface Trigger {
|
|
8086
|
-
readonly traceId: string;
|
|
8087
|
-
readonly invocationId: string;
|
|
8088
|
-
readonly spanId: string;
|
|
8089
|
-
}
|
|
8090
8091
|
interface Onset {
|
|
8091
8092
|
readonly type: "onset";
|
|
8092
8093
|
readonly attributes: Attribute[];
|
|
8094
|
+
// id for the span being opened by this Onset event.
|
|
8095
|
+
readonly spanId: string;
|
|
8093
8096
|
readonly dispatchNamespace?: string;
|
|
8094
8097
|
readonly entrypoint?: string;
|
|
8095
8098
|
readonly executionModel: string;
|
|
8096
8099
|
readonly scriptName?: string;
|
|
8097
8100
|
readonly scriptTags?: string[];
|
|
8098
8101
|
readonly scriptVersion?: ScriptVersion;
|
|
8099
|
-
readonly trigger?: Trigger;
|
|
8100
8102
|
readonly info:
|
|
8101
8103
|
| FetchEventInfo
|
|
8102
8104
|
| JsRpcEventInfo
|
|
@@ -8117,6 +8119,8 @@ export declare namespace TailStream {
|
|
|
8117
8119
|
interface SpanOpen {
|
|
8118
8120
|
readonly type: "spanOpen";
|
|
8119
8121
|
readonly name: string;
|
|
8122
|
+
// id for the span being opened by this SpanOpen event.
|
|
8123
|
+
readonly spanId: string;
|
|
8120
8124
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8121
8125
|
}
|
|
8122
8126
|
interface SpanClose {
|
|
@@ -8139,6 +8143,10 @@ export declare namespace TailStream {
|
|
|
8139
8143
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8140
8144
|
readonly message: object;
|
|
8141
8145
|
}
|
|
8146
|
+
// This marks the worker handler return information.
|
|
8147
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8148
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8149
|
+
// streaming information or SSE http connections.
|
|
8142
8150
|
interface Return {
|
|
8143
8151
|
readonly type: "return";
|
|
8144
8152
|
readonly info?: FetchResponseInfo;
|
|
@@ -8169,9 +8177,28 @@ export declare namespace TailStream {
|
|
|
8169
8177
|
| Log
|
|
8170
8178
|
| Return
|
|
8171
8179
|
| Attributes;
|
|
8180
|
+
// Context in which this trace event lives.
|
|
8181
|
+
interface SpanContext {
|
|
8182
|
+
// Single id for the entire top-level invocation
|
|
8183
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8184
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8185
|
+
// should use a new traceId.
|
|
8186
|
+
readonly traceId: string;
|
|
8187
|
+
// spanId in which this event is handled
|
|
8188
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8189
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8190
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8191
|
+
// spanId is not set ONLY if:
|
|
8192
|
+
// 1. This is an Onset event
|
|
8193
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8194
|
+
readonly spanId?: string;
|
|
8195
|
+
}
|
|
8172
8196
|
interface TailEvent<Event extends EventType> {
|
|
8197
|
+
// invocation id of the currently invoked worker stage.
|
|
8198
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8173
8199
|
readonly invocationId: string;
|
|
8174
|
-
|
|
8200
|
+
// Inherited spanContext for this event.
|
|
8201
|
+
readonly spanContext: SpanContext;
|
|
8175
8202
|
readonly timestamp: Date;
|
|
8176
8203
|
readonly sequence: number;
|
|
8177
8204
|
readonly event: Event;
|
package/experimental/index.d.ts
CHANGED
|
@@ -7505,6 +7505,11 @@ interface D1Meta {
|
|
|
7505
7505
|
*/
|
|
7506
7506
|
sql_duration_ms: number;
|
|
7507
7507
|
};
|
|
7508
|
+
/**
|
|
7509
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7510
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7511
|
+
*/
|
|
7512
|
+
total_attempts?: number;
|
|
7508
7513
|
}
|
|
7509
7514
|
interface D1Response {
|
|
7510
7515
|
success: true;
|
|
@@ -7799,6 +7804,7 @@ type ImageOutputOptions = {
|
|
|
7799
7804
|
| "rgba";
|
|
7800
7805
|
quality?: number;
|
|
7801
7806
|
background?: string;
|
|
7807
|
+
anim?: boolean;
|
|
7802
7808
|
};
|
|
7803
7809
|
interface ImagesBinding {
|
|
7804
7810
|
/**
|
|
@@ -8495,21 +8501,17 @@ declare namespace TailStream {
|
|
|
8495
8501
|
readonly tag?: string;
|
|
8496
8502
|
readonly message?: string;
|
|
8497
8503
|
}
|
|
8498
|
-
interface Trigger {
|
|
8499
|
-
readonly traceId: string;
|
|
8500
|
-
readonly invocationId: string;
|
|
8501
|
-
readonly spanId: string;
|
|
8502
|
-
}
|
|
8503
8504
|
interface Onset {
|
|
8504
8505
|
readonly type: "onset";
|
|
8505
8506
|
readonly attributes: Attribute[];
|
|
8507
|
+
// id for the span being opened by this Onset event.
|
|
8508
|
+
readonly spanId: string;
|
|
8506
8509
|
readonly dispatchNamespace?: string;
|
|
8507
8510
|
readonly entrypoint?: string;
|
|
8508
8511
|
readonly executionModel: string;
|
|
8509
8512
|
readonly scriptName?: string;
|
|
8510
8513
|
readonly scriptTags?: string[];
|
|
8511
8514
|
readonly scriptVersion?: ScriptVersion;
|
|
8512
|
-
readonly trigger?: Trigger;
|
|
8513
8515
|
readonly info:
|
|
8514
8516
|
| FetchEventInfo
|
|
8515
8517
|
| JsRpcEventInfo
|
|
@@ -8530,6 +8532,8 @@ declare namespace TailStream {
|
|
|
8530
8532
|
interface SpanOpen {
|
|
8531
8533
|
readonly type: "spanOpen";
|
|
8532
8534
|
readonly name: string;
|
|
8535
|
+
// id for the span being opened by this SpanOpen event.
|
|
8536
|
+
readonly spanId: string;
|
|
8533
8537
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8534
8538
|
}
|
|
8535
8539
|
interface SpanClose {
|
|
@@ -8552,6 +8556,10 @@ declare namespace TailStream {
|
|
|
8552
8556
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8553
8557
|
readonly message: object;
|
|
8554
8558
|
}
|
|
8559
|
+
// This marks the worker handler return information.
|
|
8560
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8561
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8562
|
+
// streaming information or SSE http connections.
|
|
8555
8563
|
interface Return {
|
|
8556
8564
|
readonly type: "return";
|
|
8557
8565
|
readonly info?: FetchResponseInfo;
|
|
@@ -8582,9 +8590,28 @@ declare namespace TailStream {
|
|
|
8582
8590
|
| Log
|
|
8583
8591
|
| Return
|
|
8584
8592
|
| Attributes;
|
|
8593
|
+
// Context in which this trace event lives.
|
|
8594
|
+
interface SpanContext {
|
|
8595
|
+
// Single id for the entire top-level invocation
|
|
8596
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8597
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8598
|
+
// should use a new traceId.
|
|
8599
|
+
readonly traceId: string;
|
|
8600
|
+
// spanId in which this event is handled
|
|
8601
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8602
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8603
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8604
|
+
// spanId is not set ONLY if:
|
|
8605
|
+
// 1. This is an Onset event
|
|
8606
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8607
|
+
readonly spanId?: string;
|
|
8608
|
+
}
|
|
8585
8609
|
interface TailEvent<Event extends EventType> {
|
|
8610
|
+
// invocation id of the currently invoked worker stage.
|
|
8611
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8586
8612
|
readonly invocationId: string;
|
|
8587
|
-
|
|
8613
|
+
// Inherited spanContext for this event.
|
|
8614
|
+
readonly spanContext: SpanContext;
|
|
8588
8615
|
readonly timestamp: Date;
|
|
8589
8616
|
readonly sequence: number;
|
|
8590
8617
|
readonly event: Event;
|
package/experimental/index.ts
CHANGED
|
@@ -7534,6 +7534,11 @@ export interface D1Meta {
|
|
|
7534
7534
|
*/
|
|
7535
7535
|
sql_duration_ms: number;
|
|
7536
7536
|
};
|
|
7537
|
+
/**
|
|
7538
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7539
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7540
|
+
*/
|
|
7541
|
+
total_attempts?: number;
|
|
7537
7542
|
}
|
|
7538
7543
|
export interface D1Response {
|
|
7539
7544
|
success: true;
|
|
@@ -7821,6 +7826,7 @@ export type ImageOutputOptions = {
|
|
|
7821
7826
|
| "rgba";
|
|
7822
7827
|
quality?: number;
|
|
7823
7828
|
background?: string;
|
|
7829
|
+
anim?: boolean;
|
|
7824
7830
|
};
|
|
7825
7831
|
export interface ImagesBinding {
|
|
7826
7832
|
/**
|
|
@@ -8342,21 +8348,17 @@ export declare namespace TailStream {
|
|
|
8342
8348
|
readonly tag?: string;
|
|
8343
8349
|
readonly message?: string;
|
|
8344
8350
|
}
|
|
8345
|
-
interface Trigger {
|
|
8346
|
-
readonly traceId: string;
|
|
8347
|
-
readonly invocationId: string;
|
|
8348
|
-
readonly spanId: string;
|
|
8349
|
-
}
|
|
8350
8351
|
interface Onset {
|
|
8351
8352
|
readonly type: "onset";
|
|
8352
8353
|
readonly attributes: Attribute[];
|
|
8354
|
+
// id for the span being opened by this Onset event.
|
|
8355
|
+
readonly spanId: string;
|
|
8353
8356
|
readonly dispatchNamespace?: string;
|
|
8354
8357
|
readonly entrypoint?: string;
|
|
8355
8358
|
readonly executionModel: string;
|
|
8356
8359
|
readonly scriptName?: string;
|
|
8357
8360
|
readonly scriptTags?: string[];
|
|
8358
8361
|
readonly scriptVersion?: ScriptVersion;
|
|
8359
|
-
readonly trigger?: Trigger;
|
|
8360
8362
|
readonly info:
|
|
8361
8363
|
| FetchEventInfo
|
|
8362
8364
|
| JsRpcEventInfo
|
|
@@ -8377,6 +8379,8 @@ export declare namespace TailStream {
|
|
|
8377
8379
|
interface SpanOpen {
|
|
8378
8380
|
readonly type: "spanOpen";
|
|
8379
8381
|
readonly name: string;
|
|
8382
|
+
// id for the span being opened by this SpanOpen event.
|
|
8383
|
+
readonly spanId: string;
|
|
8380
8384
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8381
8385
|
}
|
|
8382
8386
|
interface SpanClose {
|
|
@@ -8399,6 +8403,10 @@ export declare namespace TailStream {
|
|
|
8399
8403
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8400
8404
|
readonly message: object;
|
|
8401
8405
|
}
|
|
8406
|
+
// This marks the worker handler return information.
|
|
8407
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8408
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8409
|
+
// streaming information or SSE http connections.
|
|
8402
8410
|
interface Return {
|
|
8403
8411
|
readonly type: "return";
|
|
8404
8412
|
readonly info?: FetchResponseInfo;
|
|
@@ -8429,9 +8437,28 @@ export declare namespace TailStream {
|
|
|
8429
8437
|
| Log
|
|
8430
8438
|
| Return
|
|
8431
8439
|
| Attributes;
|
|
8440
|
+
// Context in which this trace event lives.
|
|
8441
|
+
interface SpanContext {
|
|
8442
|
+
// Single id for the entire top-level invocation
|
|
8443
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8444
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8445
|
+
// should use a new traceId.
|
|
8446
|
+
readonly traceId: string;
|
|
8447
|
+
// spanId in which this event is handled
|
|
8448
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8449
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8450
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8451
|
+
// spanId is not set ONLY if:
|
|
8452
|
+
// 1. This is an Onset event
|
|
8453
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8454
|
+
readonly spanId?: string;
|
|
8455
|
+
}
|
|
8432
8456
|
interface TailEvent<Event extends EventType> {
|
|
8457
|
+
// invocation id of the currently invoked worker stage.
|
|
8458
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8433
8459
|
readonly invocationId: string;
|
|
8434
|
-
|
|
8460
|
+
// Inherited spanContext for this event.
|
|
8461
|
+
readonly spanContext: SpanContext;
|
|
8435
8462
|
readonly timestamp: Date;
|
|
8436
8463
|
readonly sequence: number;
|
|
8437
8464
|
readonly event: Event;
|
package/index.d.ts
CHANGED
|
@@ -7191,6 +7191,11 @@ interface D1Meta {
|
|
|
7191
7191
|
*/
|
|
7192
7192
|
sql_duration_ms: number;
|
|
7193
7193
|
};
|
|
7194
|
+
/**
|
|
7195
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7196
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7197
|
+
*/
|
|
7198
|
+
total_attempts?: number;
|
|
7194
7199
|
}
|
|
7195
7200
|
interface D1Response {
|
|
7196
7201
|
success: true;
|
|
@@ -7485,6 +7490,7 @@ type ImageOutputOptions = {
|
|
|
7485
7490
|
| "rgba";
|
|
7486
7491
|
quality?: number;
|
|
7487
7492
|
background?: string;
|
|
7493
|
+
anim?: boolean;
|
|
7488
7494
|
};
|
|
7489
7495
|
interface ImagesBinding {
|
|
7490
7496
|
/**
|
|
@@ -8181,21 +8187,17 @@ declare namespace TailStream {
|
|
|
8181
8187
|
readonly tag?: string;
|
|
8182
8188
|
readonly message?: string;
|
|
8183
8189
|
}
|
|
8184
|
-
interface Trigger {
|
|
8185
|
-
readonly traceId: string;
|
|
8186
|
-
readonly invocationId: string;
|
|
8187
|
-
readonly spanId: string;
|
|
8188
|
-
}
|
|
8189
8190
|
interface Onset {
|
|
8190
8191
|
readonly type: "onset";
|
|
8191
8192
|
readonly attributes: Attribute[];
|
|
8193
|
+
// id for the span being opened by this Onset event.
|
|
8194
|
+
readonly spanId: string;
|
|
8192
8195
|
readonly dispatchNamespace?: string;
|
|
8193
8196
|
readonly entrypoint?: string;
|
|
8194
8197
|
readonly executionModel: string;
|
|
8195
8198
|
readonly scriptName?: string;
|
|
8196
8199
|
readonly scriptTags?: string[];
|
|
8197
8200
|
readonly scriptVersion?: ScriptVersion;
|
|
8198
|
-
readonly trigger?: Trigger;
|
|
8199
8201
|
readonly info:
|
|
8200
8202
|
| FetchEventInfo
|
|
8201
8203
|
| JsRpcEventInfo
|
|
@@ -8216,6 +8218,8 @@ declare namespace TailStream {
|
|
|
8216
8218
|
interface SpanOpen {
|
|
8217
8219
|
readonly type: "spanOpen";
|
|
8218
8220
|
readonly name: string;
|
|
8221
|
+
// id for the span being opened by this SpanOpen event.
|
|
8222
|
+
readonly spanId: string;
|
|
8219
8223
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8220
8224
|
}
|
|
8221
8225
|
interface SpanClose {
|
|
@@ -8238,6 +8242,10 @@ declare namespace TailStream {
|
|
|
8238
8242
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8239
8243
|
readonly message: object;
|
|
8240
8244
|
}
|
|
8245
|
+
// This marks the worker handler return information.
|
|
8246
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8247
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8248
|
+
// streaming information or SSE http connections.
|
|
8241
8249
|
interface Return {
|
|
8242
8250
|
readonly type: "return";
|
|
8243
8251
|
readonly info?: FetchResponseInfo;
|
|
@@ -8268,9 +8276,28 @@ declare namespace TailStream {
|
|
|
8268
8276
|
| Log
|
|
8269
8277
|
| Return
|
|
8270
8278
|
| Attributes;
|
|
8279
|
+
// Context in which this trace event lives.
|
|
8280
|
+
interface SpanContext {
|
|
8281
|
+
// Single id for the entire top-level invocation
|
|
8282
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8283
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8284
|
+
// should use a new traceId.
|
|
8285
|
+
readonly traceId: string;
|
|
8286
|
+
// spanId in which this event is handled
|
|
8287
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8288
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8289
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8290
|
+
// spanId is not set ONLY if:
|
|
8291
|
+
// 1. This is an Onset event
|
|
8292
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8293
|
+
readonly spanId?: string;
|
|
8294
|
+
}
|
|
8271
8295
|
interface TailEvent<Event extends EventType> {
|
|
8296
|
+
// invocation id of the currently invoked worker stage.
|
|
8297
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8272
8298
|
readonly invocationId: string;
|
|
8273
|
-
|
|
8299
|
+
// Inherited spanContext for this event.
|
|
8300
|
+
readonly spanContext: SpanContext;
|
|
8274
8301
|
readonly timestamp: Date;
|
|
8275
8302
|
readonly sequence: number;
|
|
8276
8303
|
readonly event: Event;
|
package/index.ts
CHANGED
|
@@ -7218,6 +7218,11 @@ export interface D1Meta {
|
|
|
7218
7218
|
*/
|
|
7219
7219
|
sql_duration_ms: number;
|
|
7220
7220
|
};
|
|
7221
|
+
/**
|
|
7222
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7223
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7224
|
+
*/
|
|
7225
|
+
total_attempts?: number;
|
|
7221
7226
|
}
|
|
7222
7227
|
export interface D1Response {
|
|
7223
7228
|
success: true;
|
|
@@ -7505,6 +7510,7 @@ export type ImageOutputOptions = {
|
|
|
7505
7510
|
| "rgba";
|
|
7506
7511
|
quality?: number;
|
|
7507
7512
|
background?: string;
|
|
7513
|
+
anim?: boolean;
|
|
7508
7514
|
};
|
|
7509
7515
|
export interface ImagesBinding {
|
|
7510
7516
|
/**
|
|
@@ -8026,21 +8032,17 @@ export declare namespace TailStream {
|
|
|
8026
8032
|
readonly tag?: string;
|
|
8027
8033
|
readonly message?: string;
|
|
8028
8034
|
}
|
|
8029
|
-
interface Trigger {
|
|
8030
|
-
readonly traceId: string;
|
|
8031
|
-
readonly invocationId: string;
|
|
8032
|
-
readonly spanId: string;
|
|
8033
|
-
}
|
|
8034
8035
|
interface Onset {
|
|
8035
8036
|
readonly type: "onset";
|
|
8036
8037
|
readonly attributes: Attribute[];
|
|
8038
|
+
// id for the span being opened by this Onset event.
|
|
8039
|
+
readonly spanId: string;
|
|
8037
8040
|
readonly dispatchNamespace?: string;
|
|
8038
8041
|
readonly entrypoint?: string;
|
|
8039
8042
|
readonly executionModel: string;
|
|
8040
8043
|
readonly scriptName?: string;
|
|
8041
8044
|
readonly scriptTags?: string[];
|
|
8042
8045
|
readonly scriptVersion?: ScriptVersion;
|
|
8043
|
-
readonly trigger?: Trigger;
|
|
8044
8046
|
readonly info:
|
|
8045
8047
|
| FetchEventInfo
|
|
8046
8048
|
| JsRpcEventInfo
|
|
@@ -8061,6 +8063,8 @@ export declare namespace TailStream {
|
|
|
8061
8063
|
interface SpanOpen {
|
|
8062
8064
|
readonly type: "spanOpen";
|
|
8063
8065
|
readonly name: string;
|
|
8066
|
+
// id for the span being opened by this SpanOpen event.
|
|
8067
|
+
readonly spanId: string;
|
|
8064
8068
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8065
8069
|
}
|
|
8066
8070
|
interface SpanClose {
|
|
@@ -8083,6 +8087,10 @@ export declare namespace TailStream {
|
|
|
8083
8087
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8084
8088
|
readonly message: object;
|
|
8085
8089
|
}
|
|
8090
|
+
// This marks the worker handler return information.
|
|
8091
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8092
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8093
|
+
// streaming information or SSE http connections.
|
|
8086
8094
|
interface Return {
|
|
8087
8095
|
readonly type: "return";
|
|
8088
8096
|
readonly info?: FetchResponseInfo;
|
|
@@ -8113,9 +8121,28 @@ export declare namespace TailStream {
|
|
|
8113
8121
|
| Log
|
|
8114
8122
|
| Return
|
|
8115
8123
|
| Attributes;
|
|
8124
|
+
// Context in which this trace event lives.
|
|
8125
|
+
interface SpanContext {
|
|
8126
|
+
// Single id for the entire top-level invocation
|
|
8127
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8128
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8129
|
+
// should use a new traceId.
|
|
8130
|
+
readonly traceId: string;
|
|
8131
|
+
// spanId in which this event is handled
|
|
8132
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8133
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8134
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8135
|
+
// spanId is not set ONLY if:
|
|
8136
|
+
// 1. This is an Onset event
|
|
8137
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8138
|
+
readonly spanId?: string;
|
|
8139
|
+
}
|
|
8116
8140
|
interface TailEvent<Event extends EventType> {
|
|
8141
|
+
// invocation id of the currently invoked worker stage.
|
|
8142
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8117
8143
|
readonly invocationId: string;
|
|
8118
|
-
|
|
8144
|
+
// Inherited spanContext for this event.
|
|
8145
|
+
readonly spanContext: SpanContext;
|
|
8119
8146
|
readonly timestamp: Date;
|
|
8120
8147
|
readonly sequence: number;
|
|
8121
8148
|
readonly event: Event;
|
package/latest/index.d.ts
CHANGED
|
@@ -7276,6 +7276,11 @@ interface D1Meta {
|
|
|
7276
7276
|
*/
|
|
7277
7277
|
sql_duration_ms: number;
|
|
7278
7278
|
};
|
|
7279
|
+
/**
|
|
7280
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7281
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7282
|
+
*/
|
|
7283
|
+
total_attempts?: number;
|
|
7279
7284
|
}
|
|
7280
7285
|
interface D1Response {
|
|
7281
7286
|
success: true;
|
|
@@ -7570,6 +7575,7 @@ type ImageOutputOptions = {
|
|
|
7570
7575
|
| "rgba";
|
|
7571
7576
|
quality?: number;
|
|
7572
7577
|
background?: string;
|
|
7578
|
+
anim?: boolean;
|
|
7573
7579
|
};
|
|
7574
7580
|
interface ImagesBinding {
|
|
7575
7581
|
/**
|
|
@@ -8266,21 +8272,17 @@ declare namespace TailStream {
|
|
|
8266
8272
|
readonly tag?: string;
|
|
8267
8273
|
readonly message?: string;
|
|
8268
8274
|
}
|
|
8269
|
-
interface Trigger {
|
|
8270
|
-
readonly traceId: string;
|
|
8271
|
-
readonly invocationId: string;
|
|
8272
|
-
readonly spanId: string;
|
|
8273
|
-
}
|
|
8274
8275
|
interface Onset {
|
|
8275
8276
|
readonly type: "onset";
|
|
8276
8277
|
readonly attributes: Attribute[];
|
|
8278
|
+
// id for the span being opened by this Onset event.
|
|
8279
|
+
readonly spanId: string;
|
|
8277
8280
|
readonly dispatchNamespace?: string;
|
|
8278
8281
|
readonly entrypoint?: string;
|
|
8279
8282
|
readonly executionModel: string;
|
|
8280
8283
|
readonly scriptName?: string;
|
|
8281
8284
|
readonly scriptTags?: string[];
|
|
8282
8285
|
readonly scriptVersion?: ScriptVersion;
|
|
8283
|
-
readonly trigger?: Trigger;
|
|
8284
8286
|
readonly info:
|
|
8285
8287
|
| FetchEventInfo
|
|
8286
8288
|
| JsRpcEventInfo
|
|
@@ -8301,6 +8303,8 @@ declare namespace TailStream {
|
|
|
8301
8303
|
interface SpanOpen {
|
|
8302
8304
|
readonly type: "spanOpen";
|
|
8303
8305
|
readonly name: string;
|
|
8306
|
+
// id for the span being opened by this SpanOpen event.
|
|
8307
|
+
readonly spanId: string;
|
|
8304
8308
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8305
8309
|
}
|
|
8306
8310
|
interface SpanClose {
|
|
@@ -8323,6 +8327,10 @@ declare namespace TailStream {
|
|
|
8323
8327
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8324
8328
|
readonly message: object;
|
|
8325
8329
|
}
|
|
8330
|
+
// This marks the worker handler return information.
|
|
8331
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8332
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8333
|
+
// streaming information or SSE http connections.
|
|
8326
8334
|
interface Return {
|
|
8327
8335
|
readonly type: "return";
|
|
8328
8336
|
readonly info?: FetchResponseInfo;
|
|
@@ -8353,9 +8361,28 @@ declare namespace TailStream {
|
|
|
8353
8361
|
| Log
|
|
8354
8362
|
| Return
|
|
8355
8363
|
| Attributes;
|
|
8364
|
+
// Context in which this trace event lives.
|
|
8365
|
+
interface SpanContext {
|
|
8366
|
+
// Single id for the entire top-level invocation
|
|
8367
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8368
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8369
|
+
// should use a new traceId.
|
|
8370
|
+
readonly traceId: string;
|
|
8371
|
+
// spanId in which this event is handled
|
|
8372
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8373
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8374
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8375
|
+
// spanId is not set ONLY if:
|
|
8376
|
+
// 1. This is an Onset event
|
|
8377
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8378
|
+
readonly spanId?: string;
|
|
8379
|
+
}
|
|
8356
8380
|
interface TailEvent<Event extends EventType> {
|
|
8381
|
+
// invocation id of the currently invoked worker stage.
|
|
8382
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8357
8383
|
readonly invocationId: string;
|
|
8358
|
-
|
|
8384
|
+
// Inherited spanContext for this event.
|
|
8385
|
+
readonly spanContext: SpanContext;
|
|
8359
8386
|
readonly timestamp: Date;
|
|
8360
8387
|
readonly sequence: number;
|
|
8361
8388
|
readonly event: Event;
|