@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/2021-11-03/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/2021-11-03/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/2022-01-31/index.d.ts
CHANGED
|
@@ -7217,6 +7217,11 @@ interface D1Meta {
|
|
|
7217
7217
|
*/
|
|
7218
7218
|
sql_duration_ms: number;
|
|
7219
7219
|
};
|
|
7220
|
+
/**
|
|
7221
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7222
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7223
|
+
*/
|
|
7224
|
+
total_attempts?: number;
|
|
7220
7225
|
}
|
|
7221
7226
|
interface D1Response {
|
|
7222
7227
|
success: true;
|
|
@@ -7511,6 +7516,7 @@ type ImageOutputOptions = {
|
|
|
7511
7516
|
| "rgba";
|
|
7512
7517
|
quality?: number;
|
|
7513
7518
|
background?: string;
|
|
7519
|
+
anim?: boolean;
|
|
7514
7520
|
};
|
|
7515
7521
|
interface ImagesBinding {
|
|
7516
7522
|
/**
|
|
@@ -8207,21 +8213,17 @@ declare namespace TailStream {
|
|
|
8207
8213
|
readonly tag?: string;
|
|
8208
8214
|
readonly message?: string;
|
|
8209
8215
|
}
|
|
8210
|
-
interface Trigger {
|
|
8211
|
-
readonly traceId: string;
|
|
8212
|
-
readonly invocationId: string;
|
|
8213
|
-
readonly spanId: string;
|
|
8214
|
-
}
|
|
8215
8216
|
interface Onset {
|
|
8216
8217
|
readonly type: "onset";
|
|
8217
8218
|
readonly attributes: Attribute[];
|
|
8219
|
+
// id for the span being opened by this Onset event.
|
|
8220
|
+
readonly spanId: string;
|
|
8218
8221
|
readonly dispatchNamespace?: string;
|
|
8219
8222
|
readonly entrypoint?: string;
|
|
8220
8223
|
readonly executionModel: string;
|
|
8221
8224
|
readonly scriptName?: string;
|
|
8222
8225
|
readonly scriptTags?: string[];
|
|
8223
8226
|
readonly scriptVersion?: ScriptVersion;
|
|
8224
|
-
readonly trigger?: Trigger;
|
|
8225
8227
|
readonly info:
|
|
8226
8228
|
| FetchEventInfo
|
|
8227
8229
|
| JsRpcEventInfo
|
|
@@ -8242,6 +8244,8 @@ declare namespace TailStream {
|
|
|
8242
8244
|
interface SpanOpen {
|
|
8243
8245
|
readonly type: "spanOpen";
|
|
8244
8246
|
readonly name: string;
|
|
8247
|
+
// id for the span being opened by this SpanOpen event.
|
|
8248
|
+
readonly spanId: string;
|
|
8245
8249
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8246
8250
|
}
|
|
8247
8251
|
interface SpanClose {
|
|
@@ -8264,6 +8268,10 @@ declare namespace TailStream {
|
|
|
8264
8268
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8265
8269
|
readonly message: object;
|
|
8266
8270
|
}
|
|
8271
|
+
// This marks the worker handler return information.
|
|
8272
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8273
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8274
|
+
// streaming information or SSE http connections.
|
|
8267
8275
|
interface Return {
|
|
8268
8276
|
readonly type: "return";
|
|
8269
8277
|
readonly info?: FetchResponseInfo;
|
|
@@ -8294,9 +8302,28 @@ declare namespace TailStream {
|
|
|
8294
8302
|
| Log
|
|
8295
8303
|
| Return
|
|
8296
8304
|
| Attributes;
|
|
8305
|
+
// Context in which this trace event lives.
|
|
8306
|
+
interface SpanContext {
|
|
8307
|
+
// Single id for the entire top-level invocation
|
|
8308
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8309
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8310
|
+
// should use a new traceId.
|
|
8311
|
+
readonly traceId: string;
|
|
8312
|
+
// spanId in which this event is handled
|
|
8313
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8314
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8315
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8316
|
+
// spanId is not set ONLY if:
|
|
8317
|
+
// 1. This is an Onset event
|
|
8318
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8319
|
+
readonly spanId?: string;
|
|
8320
|
+
}
|
|
8297
8321
|
interface TailEvent<Event extends EventType> {
|
|
8322
|
+
// invocation id of the currently invoked worker stage.
|
|
8323
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8298
8324
|
readonly invocationId: string;
|
|
8299
|
-
|
|
8325
|
+
// Inherited spanContext for this event.
|
|
8326
|
+
readonly spanContext: SpanContext;
|
|
8300
8327
|
readonly timestamp: Date;
|
|
8301
8328
|
readonly sequence: number;
|
|
8302
8329
|
readonly event: Event;
|
package/2022-01-31/index.ts
CHANGED
|
@@ -7244,6 +7244,11 @@ export interface D1Meta {
|
|
|
7244
7244
|
*/
|
|
7245
7245
|
sql_duration_ms: number;
|
|
7246
7246
|
};
|
|
7247
|
+
/**
|
|
7248
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7249
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7250
|
+
*/
|
|
7251
|
+
total_attempts?: number;
|
|
7247
7252
|
}
|
|
7248
7253
|
export interface D1Response {
|
|
7249
7254
|
success: true;
|
|
@@ -7531,6 +7536,7 @@ export type ImageOutputOptions = {
|
|
|
7531
7536
|
| "rgba";
|
|
7532
7537
|
quality?: number;
|
|
7533
7538
|
background?: string;
|
|
7539
|
+
anim?: boolean;
|
|
7534
7540
|
};
|
|
7535
7541
|
export interface ImagesBinding {
|
|
7536
7542
|
/**
|
|
@@ -8052,21 +8058,17 @@ export declare namespace TailStream {
|
|
|
8052
8058
|
readonly tag?: string;
|
|
8053
8059
|
readonly message?: string;
|
|
8054
8060
|
}
|
|
8055
|
-
interface Trigger {
|
|
8056
|
-
readonly traceId: string;
|
|
8057
|
-
readonly invocationId: string;
|
|
8058
|
-
readonly spanId: string;
|
|
8059
|
-
}
|
|
8060
8061
|
interface Onset {
|
|
8061
8062
|
readonly type: "onset";
|
|
8062
8063
|
readonly attributes: Attribute[];
|
|
8064
|
+
// id for the span being opened by this Onset event.
|
|
8065
|
+
readonly spanId: string;
|
|
8063
8066
|
readonly dispatchNamespace?: string;
|
|
8064
8067
|
readonly entrypoint?: string;
|
|
8065
8068
|
readonly executionModel: string;
|
|
8066
8069
|
readonly scriptName?: string;
|
|
8067
8070
|
readonly scriptTags?: string[];
|
|
8068
8071
|
readonly scriptVersion?: ScriptVersion;
|
|
8069
|
-
readonly trigger?: Trigger;
|
|
8070
8072
|
readonly info:
|
|
8071
8073
|
| FetchEventInfo
|
|
8072
8074
|
| JsRpcEventInfo
|
|
@@ -8087,6 +8089,8 @@ export declare namespace TailStream {
|
|
|
8087
8089
|
interface SpanOpen {
|
|
8088
8090
|
readonly type: "spanOpen";
|
|
8089
8091
|
readonly name: string;
|
|
8092
|
+
// id for the span being opened by this SpanOpen event.
|
|
8093
|
+
readonly spanId: string;
|
|
8090
8094
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8091
8095
|
}
|
|
8092
8096
|
interface SpanClose {
|
|
@@ -8109,6 +8113,10 @@ export declare namespace TailStream {
|
|
|
8109
8113
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8110
8114
|
readonly message: object;
|
|
8111
8115
|
}
|
|
8116
|
+
// This marks the worker handler return information.
|
|
8117
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8118
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8119
|
+
// streaming information or SSE http connections.
|
|
8112
8120
|
interface Return {
|
|
8113
8121
|
readonly type: "return";
|
|
8114
8122
|
readonly info?: FetchResponseInfo;
|
|
@@ -8139,9 +8147,28 @@ export declare namespace TailStream {
|
|
|
8139
8147
|
| Log
|
|
8140
8148
|
| Return
|
|
8141
8149
|
| Attributes;
|
|
8150
|
+
// Context in which this trace event lives.
|
|
8151
|
+
interface SpanContext {
|
|
8152
|
+
// Single id for the entire top-level invocation
|
|
8153
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8154
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8155
|
+
// should use a new traceId.
|
|
8156
|
+
readonly traceId: string;
|
|
8157
|
+
// spanId in which this event is handled
|
|
8158
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8159
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8160
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8161
|
+
// spanId is not set ONLY if:
|
|
8162
|
+
// 1. This is an Onset event
|
|
8163
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8164
|
+
readonly spanId?: string;
|
|
8165
|
+
}
|
|
8142
8166
|
interface TailEvent<Event extends EventType> {
|
|
8167
|
+
// invocation id of the currently invoked worker stage.
|
|
8168
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8143
8169
|
readonly invocationId: string;
|
|
8144
|
-
|
|
8170
|
+
// Inherited spanContext for this event.
|
|
8171
|
+
readonly spanContext: SpanContext;
|
|
8145
8172
|
readonly timestamp: Date;
|
|
8146
8173
|
readonly sequence: number;
|
|
8147
8174
|
readonly event: Event;
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -7235,6 +7235,11 @@ interface D1Meta {
|
|
|
7235
7235
|
*/
|
|
7236
7236
|
sql_duration_ms: number;
|
|
7237
7237
|
};
|
|
7238
|
+
/**
|
|
7239
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7240
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7241
|
+
*/
|
|
7242
|
+
total_attempts?: number;
|
|
7238
7243
|
}
|
|
7239
7244
|
interface D1Response {
|
|
7240
7245
|
success: true;
|
|
@@ -7529,6 +7534,7 @@ type ImageOutputOptions = {
|
|
|
7529
7534
|
| "rgba";
|
|
7530
7535
|
quality?: number;
|
|
7531
7536
|
background?: string;
|
|
7537
|
+
anim?: boolean;
|
|
7532
7538
|
};
|
|
7533
7539
|
interface ImagesBinding {
|
|
7534
7540
|
/**
|
|
@@ -8225,21 +8231,17 @@ declare namespace TailStream {
|
|
|
8225
8231
|
readonly tag?: string;
|
|
8226
8232
|
readonly message?: string;
|
|
8227
8233
|
}
|
|
8228
|
-
interface Trigger {
|
|
8229
|
-
readonly traceId: string;
|
|
8230
|
-
readonly invocationId: string;
|
|
8231
|
-
readonly spanId: string;
|
|
8232
|
-
}
|
|
8233
8234
|
interface Onset {
|
|
8234
8235
|
readonly type: "onset";
|
|
8235
8236
|
readonly attributes: Attribute[];
|
|
8237
|
+
// id for the span being opened by this Onset event.
|
|
8238
|
+
readonly spanId: string;
|
|
8236
8239
|
readonly dispatchNamespace?: string;
|
|
8237
8240
|
readonly entrypoint?: string;
|
|
8238
8241
|
readonly executionModel: string;
|
|
8239
8242
|
readonly scriptName?: string;
|
|
8240
8243
|
readonly scriptTags?: string[];
|
|
8241
8244
|
readonly scriptVersion?: ScriptVersion;
|
|
8242
|
-
readonly trigger?: Trigger;
|
|
8243
8245
|
readonly info:
|
|
8244
8246
|
| FetchEventInfo
|
|
8245
8247
|
| JsRpcEventInfo
|
|
@@ -8260,6 +8262,8 @@ declare namespace TailStream {
|
|
|
8260
8262
|
interface SpanOpen {
|
|
8261
8263
|
readonly type: "spanOpen";
|
|
8262
8264
|
readonly name: string;
|
|
8265
|
+
// id for the span being opened by this SpanOpen event.
|
|
8266
|
+
readonly spanId: string;
|
|
8263
8267
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8264
8268
|
}
|
|
8265
8269
|
interface SpanClose {
|
|
@@ -8282,6 +8286,10 @@ declare namespace TailStream {
|
|
|
8282
8286
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8283
8287
|
readonly message: object;
|
|
8284
8288
|
}
|
|
8289
|
+
// This marks the worker handler return information.
|
|
8290
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8291
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8292
|
+
// streaming information or SSE http connections.
|
|
8285
8293
|
interface Return {
|
|
8286
8294
|
readonly type: "return";
|
|
8287
8295
|
readonly info?: FetchResponseInfo;
|
|
@@ -8312,9 +8320,28 @@ declare namespace TailStream {
|
|
|
8312
8320
|
| Log
|
|
8313
8321
|
| Return
|
|
8314
8322
|
| Attributes;
|
|
8323
|
+
// Context in which this trace event lives.
|
|
8324
|
+
interface SpanContext {
|
|
8325
|
+
// Single id for the entire top-level invocation
|
|
8326
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8327
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8328
|
+
// should use a new traceId.
|
|
8329
|
+
readonly traceId: string;
|
|
8330
|
+
// spanId in which this event is handled
|
|
8331
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8332
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8333
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8334
|
+
// spanId is not set ONLY if:
|
|
8335
|
+
// 1. This is an Onset event
|
|
8336
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8337
|
+
readonly spanId?: string;
|
|
8338
|
+
}
|
|
8315
8339
|
interface TailEvent<Event extends EventType> {
|
|
8340
|
+
// invocation id of the currently invoked worker stage.
|
|
8341
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8316
8342
|
readonly invocationId: string;
|
|
8317
|
-
|
|
8343
|
+
// Inherited spanContext for this event.
|
|
8344
|
+
readonly spanContext: SpanContext;
|
|
8318
8345
|
readonly timestamp: Date;
|
|
8319
8346
|
readonly sequence: number;
|
|
8320
8347
|
readonly event: Event;
|
package/2022-03-21/index.ts
CHANGED
|
@@ -7262,6 +7262,11 @@ export interface D1Meta {
|
|
|
7262
7262
|
*/
|
|
7263
7263
|
sql_duration_ms: number;
|
|
7264
7264
|
};
|
|
7265
|
+
/**
|
|
7266
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7267
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7268
|
+
*/
|
|
7269
|
+
total_attempts?: number;
|
|
7265
7270
|
}
|
|
7266
7271
|
export interface D1Response {
|
|
7267
7272
|
success: true;
|
|
@@ -7549,6 +7554,7 @@ export type ImageOutputOptions = {
|
|
|
7549
7554
|
| "rgba";
|
|
7550
7555
|
quality?: number;
|
|
7551
7556
|
background?: string;
|
|
7557
|
+
anim?: boolean;
|
|
7552
7558
|
};
|
|
7553
7559
|
export interface ImagesBinding {
|
|
7554
7560
|
/**
|
|
@@ -8070,21 +8076,17 @@ export declare namespace TailStream {
|
|
|
8070
8076
|
readonly tag?: string;
|
|
8071
8077
|
readonly message?: string;
|
|
8072
8078
|
}
|
|
8073
|
-
interface Trigger {
|
|
8074
|
-
readonly traceId: string;
|
|
8075
|
-
readonly invocationId: string;
|
|
8076
|
-
readonly spanId: string;
|
|
8077
|
-
}
|
|
8078
8079
|
interface Onset {
|
|
8079
8080
|
readonly type: "onset";
|
|
8080
8081
|
readonly attributes: Attribute[];
|
|
8082
|
+
// id for the span being opened by this Onset event.
|
|
8083
|
+
readonly spanId: string;
|
|
8081
8084
|
readonly dispatchNamespace?: string;
|
|
8082
8085
|
readonly entrypoint?: string;
|
|
8083
8086
|
readonly executionModel: string;
|
|
8084
8087
|
readonly scriptName?: string;
|
|
8085
8088
|
readonly scriptTags?: string[];
|
|
8086
8089
|
readonly scriptVersion?: ScriptVersion;
|
|
8087
|
-
readonly trigger?: Trigger;
|
|
8088
8090
|
readonly info:
|
|
8089
8091
|
| FetchEventInfo
|
|
8090
8092
|
| JsRpcEventInfo
|
|
@@ -8105,6 +8107,8 @@ export declare namespace TailStream {
|
|
|
8105
8107
|
interface SpanOpen {
|
|
8106
8108
|
readonly type: "spanOpen";
|
|
8107
8109
|
readonly name: string;
|
|
8110
|
+
// id for the span being opened by this SpanOpen event.
|
|
8111
|
+
readonly spanId: string;
|
|
8108
8112
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8109
8113
|
}
|
|
8110
8114
|
interface SpanClose {
|
|
@@ -8127,6 +8131,10 @@ export declare namespace TailStream {
|
|
|
8127
8131
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8128
8132
|
readonly message: object;
|
|
8129
8133
|
}
|
|
8134
|
+
// This marks the worker handler return information.
|
|
8135
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8136
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8137
|
+
// streaming information or SSE http connections.
|
|
8130
8138
|
interface Return {
|
|
8131
8139
|
readonly type: "return";
|
|
8132
8140
|
readonly info?: FetchResponseInfo;
|
|
@@ -8157,9 +8165,28 @@ export declare namespace TailStream {
|
|
|
8157
8165
|
| Log
|
|
8158
8166
|
| Return
|
|
8159
8167
|
| Attributes;
|
|
8168
|
+
// Context in which this trace event lives.
|
|
8169
|
+
interface SpanContext {
|
|
8170
|
+
// Single id for the entire top-level invocation
|
|
8171
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8172
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8173
|
+
// should use a new traceId.
|
|
8174
|
+
readonly traceId: string;
|
|
8175
|
+
// spanId in which this event is handled
|
|
8176
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8177
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8178
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8179
|
+
// spanId is not set ONLY if:
|
|
8180
|
+
// 1. This is an Onset event
|
|
8181
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8182
|
+
readonly spanId?: string;
|
|
8183
|
+
}
|
|
8160
8184
|
interface TailEvent<Event extends EventType> {
|
|
8185
|
+
// invocation id of the currently invoked worker stage.
|
|
8186
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8161
8187
|
readonly invocationId: string;
|
|
8162
|
-
|
|
8188
|
+
// Inherited spanContext for this event.
|
|
8189
|
+
readonly spanContext: SpanContext;
|
|
8163
8190
|
readonly timestamp: Date;
|
|
8164
8191
|
readonly sequence: number;
|
|
8165
8192
|
readonly event: Event;
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -7236,6 +7236,11 @@ interface D1Meta {
|
|
|
7236
7236
|
*/
|
|
7237
7237
|
sql_duration_ms: number;
|
|
7238
7238
|
};
|
|
7239
|
+
/**
|
|
7240
|
+
* Number of total attempts to execute the query, due to automatic retries.
|
|
7241
|
+
* Note: All other fields in the response like `timings` only apply to the last attempt.
|
|
7242
|
+
*/
|
|
7243
|
+
total_attempts?: number;
|
|
7239
7244
|
}
|
|
7240
7245
|
interface D1Response {
|
|
7241
7246
|
success: true;
|
|
@@ -7530,6 +7535,7 @@ type ImageOutputOptions = {
|
|
|
7530
7535
|
| "rgba";
|
|
7531
7536
|
quality?: number;
|
|
7532
7537
|
background?: string;
|
|
7538
|
+
anim?: boolean;
|
|
7533
7539
|
};
|
|
7534
7540
|
interface ImagesBinding {
|
|
7535
7541
|
/**
|
|
@@ -8226,21 +8232,17 @@ declare namespace TailStream {
|
|
|
8226
8232
|
readonly tag?: string;
|
|
8227
8233
|
readonly message?: string;
|
|
8228
8234
|
}
|
|
8229
|
-
interface Trigger {
|
|
8230
|
-
readonly traceId: string;
|
|
8231
|
-
readonly invocationId: string;
|
|
8232
|
-
readonly spanId: string;
|
|
8233
|
-
}
|
|
8234
8235
|
interface Onset {
|
|
8235
8236
|
readonly type: "onset";
|
|
8236
8237
|
readonly attributes: Attribute[];
|
|
8238
|
+
// id for the span being opened by this Onset event.
|
|
8239
|
+
readonly spanId: string;
|
|
8237
8240
|
readonly dispatchNamespace?: string;
|
|
8238
8241
|
readonly entrypoint?: string;
|
|
8239
8242
|
readonly executionModel: string;
|
|
8240
8243
|
readonly scriptName?: string;
|
|
8241
8244
|
readonly scriptTags?: string[];
|
|
8242
8245
|
readonly scriptVersion?: ScriptVersion;
|
|
8243
|
-
readonly trigger?: Trigger;
|
|
8244
8246
|
readonly info:
|
|
8245
8247
|
| FetchEventInfo
|
|
8246
8248
|
| JsRpcEventInfo
|
|
@@ -8261,6 +8263,8 @@ declare namespace TailStream {
|
|
|
8261
8263
|
interface SpanOpen {
|
|
8262
8264
|
readonly type: "spanOpen";
|
|
8263
8265
|
readonly name: string;
|
|
8266
|
+
// id for the span being opened by this SpanOpen event.
|
|
8267
|
+
readonly spanId: string;
|
|
8264
8268
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
8265
8269
|
}
|
|
8266
8270
|
interface SpanClose {
|
|
@@ -8283,6 +8287,10 @@ declare namespace TailStream {
|
|
|
8283
8287
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
8284
8288
|
readonly message: object;
|
|
8285
8289
|
}
|
|
8290
|
+
// This marks the worker handler return information.
|
|
8291
|
+
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
8292
|
+
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
8293
|
+
// streaming information or SSE http connections.
|
|
8286
8294
|
interface Return {
|
|
8287
8295
|
readonly type: "return";
|
|
8288
8296
|
readonly info?: FetchResponseInfo;
|
|
@@ -8313,9 +8321,28 @@ declare namespace TailStream {
|
|
|
8313
8321
|
| Log
|
|
8314
8322
|
| Return
|
|
8315
8323
|
| Attributes;
|
|
8324
|
+
// Context in which this trace event lives.
|
|
8325
|
+
interface SpanContext {
|
|
8326
|
+
// Single id for the entire top-level invocation
|
|
8327
|
+
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
8328
|
+
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
8329
|
+
// should use a new traceId.
|
|
8330
|
+
readonly traceId: string;
|
|
8331
|
+
// spanId in which this event is handled
|
|
8332
|
+
// for Onset and SpanOpen events this would be the parent span id
|
|
8333
|
+
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
8334
|
+
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
8335
|
+
// spanId is not set ONLY if:
|
|
8336
|
+
// 1. This is an Onset event
|
|
8337
|
+
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
8338
|
+
readonly spanId?: string;
|
|
8339
|
+
}
|
|
8316
8340
|
interface TailEvent<Event extends EventType> {
|
|
8341
|
+
// invocation id of the currently invoked worker stage.
|
|
8342
|
+
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
8317
8343
|
readonly invocationId: string;
|
|
8318
|
-
|
|
8344
|
+
// Inherited spanContext for this event.
|
|
8345
|
+
readonly spanContext: SpanContext;
|
|
8319
8346
|
readonly timestamp: Date;
|
|
8320
8347
|
readonly sequence: number;
|
|
8321
8348
|
readonly event: Event;
|