@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/2022-08-04/index.ts
CHANGED
|
@@ -7263,6 +7263,11 @@ export interface D1Meta {
|
|
|
7263
7263
|
*/
|
|
7264
7264
|
sql_duration_ms: number;
|
|
7265
7265
|
};
|
|
7266
|
+
/**
|
|
7267
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7268
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7269
|
+
*/
|
|
7270
|
+
total_attempts?: number;
|
|
7266
7271
|
}
|
|
7267
7272
|
export interface D1Response {
|
|
7268
7273
|
success: true;
|
|
@@ -7550,6 +7555,7 @@ export type ImageOutputOptions = {
|
|
|
7550
7555
|
| "rgba";
|
|
7551
7556
|
quality?: number;
|
|
7552
7557
|
background?: string;
|
|
7558
|
+
anim?: boolean;
|
|
7553
7559
|
};
|
|
7554
7560
|
export interface ImagesBinding {
|
|
7555
7561
|
/**
|
|
@@ -8071,21 +8077,17 @@ export declare namespace TailStream {
|
|
|
8071
8077
|
readonly tag?: string;
|
|
8072
8078
|
readonly message?: string;
|
|
8073
8079
|
}
|
|
8074
|
-
interface Trigger {
|
|
8075
|
-
readonly traceId: string;
|
|
8076
|
-
readonly invocationId: string;
|
|
8077
|
-
readonly spanId: string;
|
|
8078
|
-
}
|
|
8079
8080
|
interface Onset {
|
|
8080
8081
|
readonly type: "onset";
|
|
8081
8082
|
readonly attributes: Attribute[];
|
|
8083
|
+
// id for the span being opened by this Onset event.
|
|
8084
|
+
readonly spanId: string;
|
|
8082
8085
|
readonly dispatchNamespace?: string;
|
|
8083
8086
|
readonly entrypoint?: string;
|
|
8084
8087
|
readonly executionModel: string;
|
|
8085
8088
|
readonly scriptName?: string;
|
|
8086
8089
|
readonly scriptTags?: string[];
|
|
8087
8090
|
readonly scriptVersion?: ScriptVersion;
|
|
8088
|
-
readonly trigger?: Trigger;
|
|
8089
8091
|
readonly info:
|
|
8090
8092
|
| FetchEventInfo
|
|
8091
8093
|
| JsRpcEventInfo
|
|
@@ -8106,6 +8108,8 @@ export declare namespace TailStream {
|
|
|
8106
8108
|
interface SpanOpen {
|
|
8107
8109
|
readonly type: "spanOpen";
|
|
8108
8110
|
readonly name: string;
|
|
8111
|
+
// id for the span being opened by this SpanOpen event.
|
|
8112
|
+
readonly spanId: string;
|
|
8109
8113
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8110
8114
|
}
|
|
8111
8115
|
interface SpanClose {
|
|
@@ -8128,6 +8132,10 @@ export declare namespace TailStream {
|
|
|
8128
8132
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8129
8133
|
readonly message: object;
|
|
8130
8134
|
}
|
|
8135
|
+
// This marks the worker handler return information.
|
|
8136
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8137
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8138
|
+
// streaming information or SSE http connections.
|
|
8131
8139
|
interface Return {
|
|
8132
8140
|
readonly type: "return";
|
|
8133
8141
|
readonly info?: FetchResponseInfo;
|
|
@@ -8158,9 +8166,28 @@ export declare namespace TailStream {
|
|
|
8158
8166
|
| Log
|
|
8159
8167
|
| Return
|
|
8160
8168
|
| Attributes;
|
|
8169
|
+
// Context in which this trace event lives.
|
|
8170
|
+
interface SpanContext {
|
|
8171
|
+
// Single id for the entire top-level invocation
|
|
8172
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8173
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8174
|
+
// should use a new traceId.
|
|
8175
|
+
readonly traceId: string;
|
|
8176
|
+
// spanId in which this event is handled
|
|
8177
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8178
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8179
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8180
|
+
// spanId is not set ONLY if:
|
|
8181
|
+
// 1. This is an Onset event
|
|
8182
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8183
|
+
readonly spanId?: string;
|
|
8184
|
+
}
|
|
8161
8185
|
interface TailEvent<Event extends EventType> {
|
|
8186
|
+
// invocation id of the currently invoked worker stage.
|
|
8187
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8162
8188
|
readonly invocationId: string;
|
|
8163
|
-
|
|
8189
|
+
// Inherited spanContext for this event.
|
|
8190
|
+
readonly spanContext: SpanContext;
|
|
8164
8191
|
readonly timestamp: Date;
|
|
8165
8192
|
readonly sequence: number;
|
|
8166
8193
|
readonly event: Event;
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -7240,6 +7240,11 @@ interface D1Meta {
|
|
|
7240
7240
|
*/
|
|
7241
7241
|
sql_duration_ms: number;
|
|
7242
7242
|
};
|
|
7243
|
+
/**
|
|
7244
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7245
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7246
|
+
*/
|
|
7247
|
+
total_attempts?: number;
|
|
7243
7248
|
}
|
|
7244
7249
|
interface D1Response {
|
|
7245
7250
|
success: true;
|
|
@@ -7534,6 +7539,7 @@ type ImageOutputOptions = {
|
|
|
7534
7539
|
| "rgba";
|
|
7535
7540
|
quality?: number;
|
|
7536
7541
|
background?: string;
|
|
7542
|
+
anim?: boolean;
|
|
7537
7543
|
};
|
|
7538
7544
|
interface ImagesBinding {
|
|
7539
7545
|
/**
|
|
@@ -8230,21 +8236,17 @@ declare namespace TailStream {
|
|
|
8230
8236
|
readonly tag?: string;
|
|
8231
8237
|
readonly message?: string;
|
|
8232
8238
|
}
|
|
8233
|
-
interface Trigger {
|
|
8234
|
-
readonly traceId: string;
|
|
8235
|
-
readonly invocationId: string;
|
|
8236
|
-
readonly spanId: string;
|
|
8237
|
-
}
|
|
8238
8239
|
interface Onset {
|
|
8239
8240
|
readonly type: "onset";
|
|
8240
8241
|
readonly attributes: Attribute[];
|
|
8242
|
+
// id for the span being opened by this Onset event.
|
|
8243
|
+
readonly spanId: string;
|
|
8241
8244
|
readonly dispatchNamespace?: string;
|
|
8242
8245
|
readonly entrypoint?: string;
|
|
8243
8246
|
readonly executionModel: string;
|
|
8244
8247
|
readonly scriptName?: string;
|
|
8245
8248
|
readonly scriptTags?: string[];
|
|
8246
8249
|
readonly scriptVersion?: ScriptVersion;
|
|
8247
|
-
readonly trigger?: Trigger;
|
|
8248
8250
|
readonly info:
|
|
8249
8251
|
| FetchEventInfo
|
|
8250
8252
|
| JsRpcEventInfo
|
|
@@ -8265,6 +8267,8 @@ declare namespace TailStream {
|
|
|
8265
8267
|
interface SpanOpen {
|
|
8266
8268
|
readonly type: "spanOpen";
|
|
8267
8269
|
readonly name: string;
|
|
8270
|
+
// id for the span being opened by this SpanOpen event.
|
|
8271
|
+
readonly spanId: string;
|
|
8268
8272
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8269
8273
|
}
|
|
8270
8274
|
interface SpanClose {
|
|
@@ -8287,6 +8291,10 @@ declare namespace TailStream {
|
|
|
8287
8291
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8288
8292
|
readonly message: object;
|
|
8289
8293
|
}
|
|
8294
|
+
// This marks the worker handler return information.
|
|
8295
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8296
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8297
|
+
// streaming information or SSE http connections.
|
|
8290
8298
|
interface Return {
|
|
8291
8299
|
readonly type: "return";
|
|
8292
8300
|
readonly info?: FetchResponseInfo;
|
|
@@ -8317,9 +8325,28 @@ declare namespace TailStream {
|
|
|
8317
8325
|
| Log
|
|
8318
8326
|
| Return
|
|
8319
8327
|
| Attributes;
|
|
8328
|
+
// Context in which this trace event lives.
|
|
8329
|
+
interface SpanContext {
|
|
8330
|
+
// Single id for the entire top-level invocation
|
|
8331
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8332
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8333
|
+
// should use a new traceId.
|
|
8334
|
+
readonly traceId: string;
|
|
8335
|
+
// spanId in which this event is handled
|
|
8336
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8337
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8338
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8339
|
+
// spanId is not set ONLY if:
|
|
8340
|
+
// 1. This is an Onset event
|
|
8341
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8342
|
+
readonly spanId?: string;
|
|
8343
|
+
}
|
|
8320
8344
|
interface TailEvent<Event extends EventType> {
|
|
8345
|
+
// invocation id of the currently invoked worker stage.
|
|
8346
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8321
8347
|
readonly invocationId: string;
|
|
8322
|
-
|
|
8348
|
+
// Inherited spanContext for this event.
|
|
8349
|
+
readonly spanContext: SpanContext;
|
|
8323
8350
|
readonly timestamp: Date;
|
|
8324
8351
|
readonly sequence: number;
|
|
8325
8352
|
readonly event: Event;
|
package/2022-10-31/index.ts
CHANGED
|
@@ -7267,6 +7267,11 @@ export interface D1Meta {
|
|
|
7267
7267
|
*/
|
|
7268
7268
|
sql_duration_ms: number;
|
|
7269
7269
|
};
|
|
7270
|
+
/**
|
|
7271
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7272
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7273
|
+
*/
|
|
7274
|
+
total_attempts?: number;
|
|
7270
7275
|
}
|
|
7271
7276
|
export interface D1Response {
|
|
7272
7277
|
success: true;
|
|
@@ -7554,6 +7559,7 @@ export type ImageOutputOptions = {
|
|
|
7554
7559
|
| "rgba";
|
|
7555
7560
|
quality?: number;
|
|
7556
7561
|
background?: string;
|
|
7562
|
+
anim?: boolean;
|
|
7557
7563
|
};
|
|
7558
7564
|
export interface ImagesBinding {
|
|
7559
7565
|
/**
|
|
@@ -8075,21 +8081,17 @@ export declare namespace TailStream {
|
|
|
8075
8081
|
readonly tag?: string;
|
|
8076
8082
|
readonly message?: string;
|
|
8077
8083
|
}
|
|
8078
|
-
interface Trigger {
|
|
8079
|
-
readonly traceId: string;
|
|
8080
|
-
readonly invocationId: string;
|
|
8081
|
-
readonly spanId: string;
|
|
8082
|
-
}
|
|
8083
8084
|
interface Onset {
|
|
8084
8085
|
readonly type: "onset";
|
|
8085
8086
|
readonly attributes: Attribute[];
|
|
8087
|
+
// id for the span being opened by this Onset event.
|
|
8088
|
+
readonly spanId: string;
|
|
8086
8089
|
readonly dispatchNamespace?: string;
|
|
8087
8090
|
readonly entrypoint?: string;
|
|
8088
8091
|
readonly executionModel: string;
|
|
8089
8092
|
readonly scriptName?: string;
|
|
8090
8093
|
readonly scriptTags?: string[];
|
|
8091
8094
|
readonly scriptVersion?: ScriptVersion;
|
|
8092
|
-
readonly trigger?: Trigger;
|
|
8093
8095
|
readonly info:
|
|
8094
8096
|
| FetchEventInfo
|
|
8095
8097
|
| JsRpcEventInfo
|
|
@@ -8110,6 +8112,8 @@ export declare namespace TailStream {
|
|
|
8110
8112
|
interface SpanOpen {
|
|
8111
8113
|
readonly type: "spanOpen";
|
|
8112
8114
|
readonly name: string;
|
|
8115
|
+
// id for the span being opened by this SpanOpen event.
|
|
8116
|
+
readonly spanId: string;
|
|
8113
8117
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8114
8118
|
}
|
|
8115
8119
|
interface SpanClose {
|
|
@@ -8132,6 +8136,10 @@ export declare namespace TailStream {
|
|
|
8132
8136
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8133
8137
|
readonly message: object;
|
|
8134
8138
|
}
|
|
8139
|
+
// This marks the worker handler return information.
|
|
8140
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8141
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8142
|
+
// streaming information or SSE http connections.
|
|
8135
8143
|
interface Return {
|
|
8136
8144
|
readonly type: "return";
|
|
8137
8145
|
readonly info?: FetchResponseInfo;
|
|
@@ -8162,9 +8170,28 @@ export declare namespace TailStream {
|
|
|
8162
8170
|
| Log
|
|
8163
8171
|
| Return
|
|
8164
8172
|
| Attributes;
|
|
8173
|
+
// Context in which this trace event lives.
|
|
8174
|
+
interface SpanContext {
|
|
8175
|
+
// Single id for the entire top-level invocation
|
|
8176
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8177
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8178
|
+
// should use a new traceId.
|
|
8179
|
+
readonly traceId: string;
|
|
8180
|
+
// spanId in which this event is handled
|
|
8181
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8182
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8183
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8184
|
+
// spanId is not set ONLY if:
|
|
8185
|
+
// 1. This is an Onset event
|
|
8186
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8187
|
+
readonly spanId?: string;
|
|
8188
|
+
}
|
|
8165
8189
|
interface TailEvent<Event extends EventType> {
|
|
8190
|
+
// invocation id of the currently invoked worker stage.
|
|
8191
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8166
8192
|
readonly invocationId: string;
|
|
8167
|
-
|
|
8193
|
+
// Inherited spanContext for this event.
|
|
8194
|
+
readonly spanContext: SpanContext;
|
|
8168
8195
|
readonly timestamp: Date;
|
|
8169
8196
|
readonly sequence: number;
|
|
8170
8197
|
readonly event: Event;
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -7245,6 +7245,11 @@ interface D1Meta {
|
|
|
7245
7245
|
*/
|
|
7246
7246
|
sql_duration_ms: number;
|
|
7247
7247
|
};
|
|
7248
|
+
/**
|
|
7249
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7250
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7251
|
+
*/
|
|
7252
|
+
total_attempts?: number;
|
|
7248
7253
|
}
|
|
7249
7254
|
interface D1Response {
|
|
7250
7255
|
success: true;
|
|
@@ -7539,6 +7544,7 @@ type ImageOutputOptions = {
|
|
|
7539
7544
|
| "rgba";
|
|
7540
7545
|
quality?: number;
|
|
7541
7546
|
background?: string;
|
|
7547
|
+
anim?: boolean;
|
|
7542
7548
|
};
|
|
7543
7549
|
interface ImagesBinding {
|
|
7544
7550
|
/**
|
|
@@ -8235,21 +8241,17 @@ declare namespace TailStream {
|
|
|
8235
8241
|
readonly tag?: string;
|
|
8236
8242
|
readonly message?: string;
|
|
8237
8243
|
}
|
|
8238
|
-
interface Trigger {
|
|
8239
|
-
readonly traceId: string;
|
|
8240
|
-
readonly invocationId: string;
|
|
8241
|
-
readonly spanId: string;
|
|
8242
|
-
}
|
|
8243
8244
|
interface Onset {
|
|
8244
8245
|
readonly type: "onset";
|
|
8245
8246
|
readonly attributes: Attribute[];
|
|
8247
|
+
// id for the span being opened by this Onset event.
|
|
8248
|
+
readonly spanId: string;
|
|
8246
8249
|
readonly dispatchNamespace?: string;
|
|
8247
8250
|
readonly entrypoint?: string;
|
|
8248
8251
|
readonly executionModel: string;
|
|
8249
8252
|
readonly scriptName?: string;
|
|
8250
8253
|
readonly scriptTags?: string[];
|
|
8251
8254
|
readonly scriptVersion?: ScriptVersion;
|
|
8252
|
-
readonly trigger?: Trigger;
|
|
8253
8255
|
readonly info:
|
|
8254
8256
|
| FetchEventInfo
|
|
8255
8257
|
| JsRpcEventInfo
|
|
@@ -8270,6 +8272,8 @@ declare namespace TailStream {
|
|
|
8270
8272
|
interface SpanOpen {
|
|
8271
8273
|
readonly type: "spanOpen";
|
|
8272
8274
|
readonly name: string;
|
|
8275
|
+
// id for the span being opened by this SpanOpen event.
|
|
8276
|
+
readonly spanId: string;
|
|
8273
8277
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8274
8278
|
}
|
|
8275
8279
|
interface SpanClose {
|
|
@@ -8292,6 +8296,10 @@ declare namespace TailStream {
|
|
|
8292
8296
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8293
8297
|
readonly message: object;
|
|
8294
8298
|
}
|
|
8299
|
+
// This marks the worker handler return information.
|
|
8300
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8301
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8302
|
+
// streaming information or SSE http connections.
|
|
8295
8303
|
interface Return {
|
|
8296
8304
|
readonly type: "return";
|
|
8297
8305
|
readonly info?: FetchResponseInfo;
|
|
@@ -8322,9 +8330,28 @@ declare namespace TailStream {
|
|
|
8322
8330
|
| Log
|
|
8323
8331
|
| Return
|
|
8324
8332
|
| Attributes;
|
|
8333
|
+
// Context in which this trace event lives.
|
|
8334
|
+
interface SpanContext {
|
|
8335
|
+
// Single id for the entire top-level invocation
|
|
8336
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8337
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8338
|
+
// should use a new traceId.
|
|
8339
|
+
readonly traceId: string;
|
|
8340
|
+
// spanId in which this event is handled
|
|
8341
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8342
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8343
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8344
|
+
// spanId is not set ONLY if:
|
|
8345
|
+
// 1. This is an Onset event
|
|
8346
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8347
|
+
readonly spanId?: string;
|
|
8348
|
+
}
|
|
8325
8349
|
interface TailEvent<Event extends EventType> {
|
|
8350
|
+
// invocation id of the currently invoked worker stage.
|
|
8351
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8326
8352
|
readonly invocationId: string;
|
|
8327
|
-
|
|
8353
|
+
// Inherited spanContext for this event.
|
|
8354
|
+
readonly spanContext: SpanContext;
|
|
8328
8355
|
readonly timestamp: Date;
|
|
8329
8356
|
readonly sequence: number;
|
|
8330
8357
|
readonly event: Event;
|
package/2022-11-30/index.ts
CHANGED
|
@@ -7272,6 +7272,11 @@ export interface D1Meta {
|
|
|
7272
7272
|
*/
|
|
7273
7273
|
sql_duration_ms: number;
|
|
7274
7274
|
};
|
|
7275
|
+
/**
|
|
7276
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7277
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7278
|
+
*/
|
|
7279
|
+
total_attempts?: number;
|
|
7275
7280
|
}
|
|
7276
7281
|
export interface D1Response {
|
|
7277
7282
|
success: true;
|
|
@@ -7559,6 +7564,7 @@ export type ImageOutputOptions = {
|
|
|
7559
7564
|
| "rgba";
|
|
7560
7565
|
quality?: number;
|
|
7561
7566
|
background?: string;
|
|
7567
|
+
anim?: boolean;
|
|
7562
7568
|
};
|
|
7563
7569
|
export interface ImagesBinding {
|
|
7564
7570
|
/**
|
|
@@ -8080,21 +8086,17 @@ export declare namespace TailStream {
|
|
|
8080
8086
|
readonly tag?: string;
|
|
8081
8087
|
readonly message?: string;
|
|
8082
8088
|
}
|
|
8083
|
-
interface Trigger {
|
|
8084
|
-
readonly traceId: string;
|
|
8085
|
-
readonly invocationId: string;
|
|
8086
|
-
readonly spanId: string;
|
|
8087
|
-
}
|
|
8088
8089
|
interface Onset {
|
|
8089
8090
|
readonly type: "onset";
|
|
8090
8091
|
readonly attributes: Attribute[];
|
|
8092
|
+
// id for the span being opened by this Onset event.
|
|
8093
|
+
readonly spanId: string;
|
|
8091
8094
|
readonly dispatchNamespace?: string;
|
|
8092
8095
|
readonly entrypoint?: string;
|
|
8093
8096
|
readonly executionModel: string;
|
|
8094
8097
|
readonly scriptName?: string;
|
|
8095
8098
|
readonly scriptTags?: string[];
|
|
8096
8099
|
readonly scriptVersion?: ScriptVersion;
|
|
8097
|
-
readonly trigger?: Trigger;
|
|
8098
8100
|
readonly info:
|
|
8099
8101
|
| FetchEventInfo
|
|
8100
8102
|
| JsRpcEventInfo
|
|
@@ -8115,6 +8117,8 @@ export declare namespace TailStream {
|
|
|
8115
8117
|
interface SpanOpen {
|
|
8116
8118
|
readonly type: "spanOpen";
|
|
8117
8119
|
readonly name: string;
|
|
8120
|
+
// id for the span being opened by this SpanOpen event.
|
|
8121
|
+
readonly spanId: string;
|
|
8118
8122
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8119
8123
|
}
|
|
8120
8124
|
interface SpanClose {
|
|
@@ -8137,6 +8141,10 @@ export declare namespace TailStream {
|
|
|
8137
8141
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8138
8142
|
readonly message: object;
|
|
8139
8143
|
}
|
|
8144
|
+
// This marks the worker handler return information.
|
|
8145
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8146
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8147
|
+
// streaming information or SSE http connections.
|
|
8140
8148
|
interface Return {
|
|
8141
8149
|
readonly type: "return";
|
|
8142
8150
|
readonly info?: FetchResponseInfo;
|
|
@@ -8167,9 +8175,28 @@ export declare namespace TailStream {
|
|
|
8167
8175
|
| Log
|
|
8168
8176
|
| Return
|
|
8169
8177
|
| Attributes;
|
|
8178
|
+
// Context in which this trace event lives.
|
|
8179
|
+
interface SpanContext {
|
|
8180
|
+
// Single id for the entire top-level invocation
|
|
8181
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8182
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8183
|
+
// should use a new traceId.
|
|
8184
|
+
readonly traceId: string;
|
|
8185
|
+
// spanId in which this event is handled
|
|
8186
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8187
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8188
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8189
|
+
// spanId is not set ONLY if:
|
|
8190
|
+
// 1. This is an Onset event
|
|
8191
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8192
|
+
readonly spanId?: string;
|
|
8193
|
+
}
|
|
8170
8194
|
interface TailEvent<Event extends EventType> {
|
|
8195
|
+
// invocation id of the currently invoked worker stage.
|
|
8196
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8171
8197
|
readonly invocationId: string;
|
|
8172
|
-
|
|
8198
|
+
// Inherited spanContext for this event.
|
|
8199
|
+
readonly spanContext: SpanContext;
|
|
8173
8200
|
readonly timestamp: Date;
|
|
8174
8201
|
readonly sequence: number;
|
|
8175
8202
|
readonly event: Event;
|
package/2023-03-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-03-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;
|