@cloudflare/workers-types 4.20230710.0 → 4.20230717.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.
@@ -352,17 +352,17 @@ declare interface Performance {
352
352
  declare interface DurableObject {
353
353
  fetch(request: Request): Response | Promise<Response>;
354
354
  alarm?(): void | Promise<void>;
355
- webSocketMessage(
355
+ webSocketMessage?(
356
356
  ws: WebSocket,
357
357
  message: string | ArrayBuffer
358
358
  ): void | Promise<void>;
359
- webSocketClose(
359
+ webSocketClose?(
360
360
  ws: WebSocket,
361
361
  code: number,
362
362
  reason: string,
363
363
  wasClean: boolean
364
364
  ): void | Promise<void>;
365
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
365
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
366
366
  }
367
367
  declare interface DurableObjectStub extends Fetcher {
368
368
  readonly id: DurableObjectId;
@@ -1116,10 +1116,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1116
1116
  list_complete: false;
1117
1117
  keys: KVNamespaceListKey<Metadata, Key>[];
1118
1118
  cursor: string;
1119
+ cacheStatus: string | null;
1119
1120
  }
1120
1121
  | {
1121
1122
  list_complete: true;
1122
1123
  keys: KVNamespaceListKey<Metadata, Key>[];
1124
+ cacheStatus: string | null;
1123
1125
  };
1124
1126
  declare interface KVNamespace<Key extends string = string> {
1125
1127
  get(
@@ -1212,6 +1214,7 @@ declare interface KVNamespacePutOptions {
1212
1214
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1213
1215
  value: Value | null;
1214
1216
  metadata: Metadata | null;
1217
+ cacheStatus: string | null;
1215
1218
  }
1216
1219
  declare interface Queue<Body> {
1217
1220
  send(message: Body): Promise<void>;
@@ -354,17 +354,17 @@ export interface Performance {
354
354
  export interface DurableObject {
355
355
  fetch(request: Request): Response | Promise<Response>;
356
356
  alarm?(): void | Promise<void>;
357
- webSocketMessage(
357
+ webSocketMessage?(
358
358
  ws: WebSocket,
359
359
  message: string | ArrayBuffer
360
360
  ): void | Promise<void>;
361
- webSocketClose(
361
+ webSocketClose?(
362
362
  ws: WebSocket,
363
363
  code: number,
364
364
  reason: string,
365
365
  wasClean: boolean
366
366
  ): void | Promise<void>;
367
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
367
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
368
368
  }
369
369
  export interface DurableObjectStub extends Fetcher {
370
370
  readonly id: DurableObjectId;
@@ -1118,10 +1118,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1118
1118
  list_complete: false;
1119
1119
  keys: KVNamespaceListKey<Metadata, Key>[];
1120
1120
  cursor: string;
1121
+ cacheStatus: string | null;
1121
1122
  }
1122
1123
  | {
1123
1124
  list_complete: true;
1124
1125
  keys: KVNamespaceListKey<Metadata, Key>[];
1126
+ cacheStatus: string | null;
1125
1127
  };
1126
1128
  export interface KVNamespace<Key extends string = string> {
1127
1129
  get(
@@ -1214,6 +1216,7 @@ export interface KVNamespacePutOptions {
1214
1216
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1215
1217
  value: Value | null;
1216
1218
  metadata: Metadata | null;
1219
+ cacheStatus: string | null;
1217
1220
  }
1218
1221
  export interface Queue<Body> {
1219
1222
  send(message: Body): Promise<void>;
@@ -352,17 +352,17 @@ declare interface Performance {
352
352
  declare interface DurableObject {
353
353
  fetch(request: Request): Response | Promise<Response>;
354
354
  alarm?(): void | Promise<void>;
355
- webSocketMessage(
355
+ webSocketMessage?(
356
356
  ws: WebSocket,
357
357
  message: string | ArrayBuffer
358
358
  ): void | Promise<void>;
359
- webSocketClose(
359
+ webSocketClose?(
360
360
  ws: WebSocket,
361
361
  code: number,
362
362
  reason: string,
363
363
  wasClean: boolean
364
364
  ): void | Promise<void>;
365
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
365
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
366
366
  }
367
367
  declare interface DurableObjectStub extends Fetcher {
368
368
  readonly id: DurableObjectId;
@@ -1096,10 +1096,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1096
1096
  list_complete: false;
1097
1097
  keys: KVNamespaceListKey<Metadata, Key>[];
1098
1098
  cursor: string;
1099
+ cacheStatus: string | null;
1099
1100
  }
1100
1101
  | {
1101
1102
  list_complete: true;
1102
1103
  keys: KVNamespaceListKey<Metadata, Key>[];
1104
+ cacheStatus: string | null;
1103
1105
  };
1104
1106
  declare interface KVNamespace<Key extends string = string> {
1105
1107
  get(
@@ -1192,6 +1194,7 @@ declare interface KVNamespacePutOptions {
1192
1194
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1193
1195
  value: Value | null;
1194
1196
  metadata: Metadata | null;
1197
+ cacheStatus: string | null;
1195
1198
  }
1196
1199
  declare interface Queue<Body> {
1197
1200
  send(message: Body): Promise<void>;
@@ -354,17 +354,17 @@ export interface Performance {
354
354
  export interface DurableObject {
355
355
  fetch(request: Request): Response | Promise<Response>;
356
356
  alarm?(): void | Promise<void>;
357
- webSocketMessage(
357
+ webSocketMessage?(
358
358
  ws: WebSocket,
359
359
  message: string | ArrayBuffer
360
360
  ): void | Promise<void>;
361
- webSocketClose(
361
+ webSocketClose?(
362
362
  ws: WebSocket,
363
363
  code: number,
364
364
  reason: string,
365
365
  wasClean: boolean
366
366
  ): void | Promise<void>;
367
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
367
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
368
368
  }
369
369
  export interface DurableObjectStub extends Fetcher {
370
370
  readonly id: DurableObjectId;
@@ -1098,10 +1098,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1098
1098
  list_complete: false;
1099
1099
  keys: KVNamespaceListKey<Metadata, Key>[];
1100
1100
  cursor: string;
1101
+ cacheStatus: string | null;
1101
1102
  }
1102
1103
  | {
1103
1104
  list_complete: true;
1104
1105
  keys: KVNamespaceListKey<Metadata, Key>[];
1106
+ cacheStatus: string | null;
1105
1107
  };
1106
1108
  export interface KVNamespace<Key extends string = string> {
1107
1109
  get(
@@ -1194,6 +1196,7 @@ export interface KVNamespacePutOptions {
1194
1196
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1195
1197
  value: Value | null;
1196
1198
  metadata: Metadata | null;
1199
+ cacheStatus: string | null;
1197
1200
  }
1198
1201
  export interface Queue<Body> {
1199
1202
  send(message: Body): Promise<void>;
@@ -358,17 +358,17 @@ declare interface Performance {
358
358
  declare interface DurableObject {
359
359
  fetch(request: Request): Response | Promise<Response>;
360
360
  alarm?(): void | Promise<void>;
361
- webSocketMessage(
361
+ webSocketMessage?(
362
362
  ws: WebSocket,
363
363
  message: string | ArrayBuffer
364
364
  ): void | Promise<void>;
365
- webSocketClose(
365
+ webSocketClose?(
366
366
  ws: WebSocket,
367
367
  code: number,
368
368
  reason: string,
369
369
  wasClean: boolean
370
370
  ): void | Promise<void>;
371
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
371
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
372
372
  }
373
373
  declare interface DurableObjectStub extends Fetcher {
374
374
  readonly id: DurableObjectId;
@@ -1102,10 +1102,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1102
1102
  list_complete: false;
1103
1103
  keys: KVNamespaceListKey<Metadata, Key>[];
1104
1104
  cursor: string;
1105
+ cacheStatus: string | null;
1105
1106
  }
1106
1107
  | {
1107
1108
  list_complete: true;
1108
1109
  keys: KVNamespaceListKey<Metadata, Key>[];
1110
+ cacheStatus: string | null;
1109
1111
  };
1110
1112
  declare interface KVNamespace<Key extends string = string> {
1111
1113
  get(
@@ -1198,6 +1200,7 @@ declare interface KVNamespacePutOptions {
1198
1200
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1199
1201
  value: Value | null;
1200
1202
  metadata: Metadata | null;
1203
+ cacheStatus: string | null;
1201
1204
  }
1202
1205
  declare interface Queue<Body> {
1203
1206
  send(message: Body): Promise<void>;
@@ -360,17 +360,17 @@ export interface Performance {
360
360
  export interface DurableObject {
361
361
  fetch(request: Request): Response | Promise<Response>;
362
362
  alarm?(): void | Promise<void>;
363
- webSocketMessage(
363
+ webSocketMessage?(
364
364
  ws: WebSocket,
365
365
  message: string | ArrayBuffer
366
366
  ): void | Promise<void>;
367
- webSocketClose(
367
+ webSocketClose?(
368
368
  ws: WebSocket,
369
369
  code: number,
370
370
  reason: string,
371
371
  wasClean: boolean
372
372
  ): void | Promise<void>;
373
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
373
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
374
374
  }
375
375
  export interface DurableObjectStub extends Fetcher {
376
376
  readonly id: DurableObjectId;
@@ -1104,10 +1104,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1104
1104
  list_complete: false;
1105
1105
  keys: KVNamespaceListKey<Metadata, Key>[];
1106
1106
  cursor: string;
1107
+ cacheStatus: string | null;
1107
1108
  }
1108
1109
  | {
1109
1110
  list_complete: true;
1110
1111
  keys: KVNamespaceListKey<Metadata, Key>[];
1112
+ cacheStatus: string | null;
1111
1113
  };
1112
1114
  export interface KVNamespace<Key extends string = string> {
1113
1115
  get(
@@ -1200,6 +1202,7 @@ export interface KVNamespacePutOptions {
1200
1202
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1201
1203
  value: Value | null;
1202
1204
  metadata: Metadata | null;
1205
+ cacheStatus: string | null;
1203
1206
  }
1204
1207
  export interface Queue<Body> {
1205
1208
  send(message: Body): Promise<void>;
@@ -358,17 +358,17 @@ declare interface Performance {
358
358
  declare interface DurableObject {
359
359
  fetch(request: Request): Response | Promise<Response>;
360
360
  alarm?(): void | Promise<void>;
361
- webSocketMessage(
361
+ webSocketMessage?(
362
362
  ws: WebSocket,
363
363
  message: string | ArrayBuffer
364
364
  ): void | Promise<void>;
365
- webSocketClose(
365
+ webSocketClose?(
366
366
  ws: WebSocket,
367
367
  code: number,
368
368
  reason: string,
369
369
  wasClean: boolean
370
370
  ): void | Promise<void>;
371
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
371
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
372
372
  }
373
373
  declare interface DurableObjectStub extends Fetcher {
374
374
  readonly id: DurableObjectId;
@@ -1102,10 +1102,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1102
1102
  list_complete: false;
1103
1103
  keys: KVNamespaceListKey<Metadata, Key>[];
1104
1104
  cursor: string;
1105
+ cacheStatus: string | null;
1105
1106
  }
1106
1107
  | {
1107
1108
  list_complete: true;
1108
1109
  keys: KVNamespaceListKey<Metadata, Key>[];
1110
+ cacheStatus: string | null;
1109
1111
  };
1110
1112
  declare interface KVNamespace<Key extends string = string> {
1111
1113
  get(
@@ -1198,6 +1200,7 @@ declare interface KVNamespacePutOptions {
1198
1200
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1199
1201
  value: Value | null;
1200
1202
  metadata: Metadata | null;
1203
+ cacheStatus: string | null;
1201
1204
  }
1202
1205
  declare interface Queue<Body> {
1203
1206
  send(message: Body): Promise<void>;
@@ -360,17 +360,17 @@ export interface Performance {
360
360
  export interface DurableObject {
361
361
  fetch(request: Request): Response | Promise<Response>;
362
362
  alarm?(): void | Promise<void>;
363
- webSocketMessage(
363
+ webSocketMessage?(
364
364
  ws: WebSocket,
365
365
  message: string | ArrayBuffer
366
366
  ): void | Promise<void>;
367
- webSocketClose(
367
+ webSocketClose?(
368
368
  ws: WebSocket,
369
369
  code: number,
370
370
  reason: string,
371
371
  wasClean: boolean
372
372
  ): void | Promise<void>;
373
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
373
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
374
374
  }
375
375
  export interface DurableObjectStub extends Fetcher {
376
376
  readonly id: DurableObjectId;
@@ -1104,10 +1104,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1104
1104
  list_complete: false;
1105
1105
  keys: KVNamespaceListKey<Metadata, Key>[];
1106
1106
  cursor: string;
1107
+ cacheStatus: string | null;
1107
1108
  }
1108
1109
  | {
1109
1110
  list_complete: true;
1110
1111
  keys: KVNamespaceListKey<Metadata, Key>[];
1112
+ cacheStatus: string | null;
1111
1113
  };
1112
1114
  export interface KVNamespace<Key extends string = string> {
1113
1115
  get(
@@ -1200,6 +1202,7 @@ export interface KVNamespacePutOptions {
1200
1202
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1201
1203
  value: Value | null;
1202
1204
  metadata: Metadata | null;
1205
+ cacheStatus: string | null;
1203
1206
  }
1204
1207
  export interface Queue<Body> {
1205
1208
  send(message: Body): Promise<void>;
@@ -358,17 +358,17 @@ declare interface Performance {
358
358
  declare interface DurableObject {
359
359
  fetch(request: Request): Response | Promise<Response>;
360
360
  alarm?(): void | Promise<void>;
361
- webSocketMessage(
361
+ webSocketMessage?(
362
362
  ws: WebSocket,
363
363
  message: string | ArrayBuffer
364
364
  ): void | Promise<void>;
365
- webSocketClose(
365
+ webSocketClose?(
366
366
  ws: WebSocket,
367
367
  code: number,
368
368
  reason: string,
369
369
  wasClean: boolean
370
370
  ): void | Promise<void>;
371
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
371
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
372
372
  }
373
373
  declare interface DurableObjectStub extends Fetcher {
374
374
  readonly id: DurableObjectId;
@@ -1102,10 +1102,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1102
1102
  list_complete: false;
1103
1103
  keys: KVNamespaceListKey<Metadata, Key>[];
1104
1104
  cursor: string;
1105
+ cacheStatus: string | null;
1105
1106
  }
1106
1107
  | {
1107
1108
  list_complete: true;
1108
1109
  keys: KVNamespaceListKey<Metadata, Key>[];
1110
+ cacheStatus: string | null;
1109
1111
  };
1110
1112
  declare interface KVNamespace<Key extends string = string> {
1111
1113
  get(
@@ -1198,6 +1200,7 @@ declare interface KVNamespacePutOptions {
1198
1200
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1199
1201
  value: Value | null;
1200
1202
  metadata: Metadata | null;
1203
+ cacheStatus: string | null;
1201
1204
  }
1202
1205
  declare interface Queue<Body> {
1203
1206
  send(message: Body): Promise<void>;
@@ -360,17 +360,17 @@ export interface Performance {
360
360
  export interface DurableObject {
361
361
  fetch(request: Request): Response | Promise<Response>;
362
362
  alarm?(): void | Promise<void>;
363
- webSocketMessage(
363
+ webSocketMessage?(
364
364
  ws: WebSocket,
365
365
  message: string | ArrayBuffer
366
366
  ): void | Promise<void>;
367
- webSocketClose(
367
+ webSocketClose?(
368
368
  ws: WebSocket,
369
369
  code: number,
370
370
  reason: string,
371
371
  wasClean: boolean
372
372
  ): void | Promise<void>;
373
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
373
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
374
374
  }
375
375
  export interface DurableObjectStub extends Fetcher {
376
376
  readonly id: DurableObjectId;
@@ -1104,10 +1104,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1104
1104
  list_complete: false;
1105
1105
  keys: KVNamespaceListKey<Metadata, Key>[];
1106
1106
  cursor: string;
1107
+ cacheStatus: string | null;
1107
1108
  }
1108
1109
  | {
1109
1110
  list_complete: true;
1110
1111
  keys: KVNamespaceListKey<Metadata, Key>[];
1112
+ cacheStatus: string | null;
1111
1113
  };
1112
1114
  export interface KVNamespace<Key extends string = string> {
1113
1115
  get(
@@ -1200,6 +1202,7 @@ export interface KVNamespacePutOptions {
1200
1202
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1201
1203
  value: Value | null;
1202
1204
  metadata: Metadata | null;
1205
+ cacheStatus: string | null;
1203
1206
  }
1204
1207
  export interface Queue<Body> {
1205
1208
  send(message: Body): Promise<void>;
@@ -362,17 +362,17 @@ declare interface Performance {
362
362
  declare interface DurableObject {
363
363
  fetch(request: Request): Response | Promise<Response>;
364
364
  alarm?(): void | Promise<void>;
365
- webSocketMessage(
365
+ webSocketMessage?(
366
366
  ws: WebSocket,
367
367
  message: string | ArrayBuffer
368
368
  ): void | Promise<void>;
369
- webSocketClose(
369
+ webSocketClose?(
370
370
  ws: WebSocket,
371
371
  code: number,
372
372
  reason: string,
373
373
  wasClean: boolean
374
374
  ): void | Promise<void>;
375
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
375
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
376
376
  }
377
377
  declare interface DurableObjectStub extends Fetcher {
378
378
  readonly id: DurableObjectId;
@@ -1106,10 +1106,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1106
1106
  list_complete: false;
1107
1107
  keys: KVNamespaceListKey<Metadata, Key>[];
1108
1108
  cursor: string;
1109
+ cacheStatus: string | null;
1109
1110
  }
1110
1111
  | {
1111
1112
  list_complete: true;
1112
1113
  keys: KVNamespaceListKey<Metadata, Key>[];
1114
+ cacheStatus: string | null;
1113
1115
  };
1114
1116
  declare interface KVNamespace<Key extends string = string> {
1115
1117
  get(
@@ -1202,6 +1204,7 @@ declare interface KVNamespacePutOptions {
1202
1204
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1203
1205
  value: Value | null;
1204
1206
  metadata: Metadata | null;
1207
+ cacheStatus: string | null;
1205
1208
  }
1206
1209
  declare interface Queue<Body> {
1207
1210
  send(message: Body): Promise<void>;
@@ -364,17 +364,17 @@ export interface Performance {
364
364
  export interface DurableObject {
365
365
  fetch(request: Request): Response | Promise<Response>;
366
366
  alarm?(): void | Promise<void>;
367
- webSocketMessage(
367
+ webSocketMessage?(
368
368
  ws: WebSocket,
369
369
  message: string | ArrayBuffer
370
370
  ): void | Promise<void>;
371
- webSocketClose(
371
+ webSocketClose?(
372
372
  ws: WebSocket,
373
373
  code: number,
374
374
  reason: string,
375
375
  wasClean: boolean
376
376
  ): void | Promise<void>;
377
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
377
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
378
378
  }
379
379
  export interface DurableObjectStub extends Fetcher {
380
380
  readonly id: DurableObjectId;
@@ -1108,10 +1108,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1108
1108
  list_complete: false;
1109
1109
  keys: KVNamespaceListKey<Metadata, Key>[];
1110
1110
  cursor: string;
1111
+ cacheStatus: string | null;
1111
1112
  }
1112
1113
  | {
1113
1114
  list_complete: true;
1114
1115
  keys: KVNamespaceListKey<Metadata, Key>[];
1116
+ cacheStatus: string | null;
1115
1117
  };
1116
1118
  export interface KVNamespace<Key extends string = string> {
1117
1119
  get(
@@ -1204,6 +1206,7 @@ export interface KVNamespacePutOptions {
1204
1206
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1205
1207
  value: Value | null;
1206
1208
  metadata: Metadata | null;
1209
+ cacheStatus: string | null;
1207
1210
  }
1208
1211
  export interface Queue<Body> {
1209
1212
  send(message: Body): Promise<void>;
@@ -362,17 +362,17 @@ declare interface Performance {
362
362
  declare interface DurableObject {
363
363
  fetch(request: Request): Response | Promise<Response>;
364
364
  alarm?(): void | Promise<void>;
365
- webSocketMessage(
365
+ webSocketMessage?(
366
366
  ws: WebSocket,
367
367
  message: string | ArrayBuffer
368
368
  ): void | Promise<void>;
369
- webSocketClose(
369
+ webSocketClose?(
370
370
  ws: WebSocket,
371
371
  code: number,
372
372
  reason: string,
373
373
  wasClean: boolean
374
374
  ): void | Promise<void>;
375
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
375
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
376
376
  }
377
377
  declare interface DurableObjectStub extends Fetcher {
378
378
  readonly id: DurableObjectId;
@@ -1125,10 +1125,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1125
1125
  list_complete: false;
1126
1126
  keys: KVNamespaceListKey<Metadata, Key>[];
1127
1127
  cursor: string;
1128
+ cacheStatus: string | null;
1128
1129
  }
1129
1130
  | {
1130
1131
  list_complete: true;
1131
1132
  keys: KVNamespaceListKey<Metadata, Key>[];
1133
+ cacheStatus: string | null;
1132
1134
  };
1133
1135
  declare interface KVNamespace<Key extends string = string> {
1134
1136
  get(
@@ -1221,6 +1223,7 @@ declare interface KVNamespacePutOptions {
1221
1223
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1222
1224
  value: Value | null;
1223
1225
  metadata: Metadata | null;
1226
+ cacheStatus: string | null;
1224
1227
  }
1225
1228
  declare interface Queue<Body> {
1226
1229
  send(message: Body): Promise<void>;
@@ -364,17 +364,17 @@ export interface Performance {
364
364
  export interface DurableObject {
365
365
  fetch(request: Request): Response | Promise<Response>;
366
366
  alarm?(): void | Promise<void>;
367
- webSocketMessage(
367
+ webSocketMessage?(
368
368
  ws: WebSocket,
369
369
  message: string | ArrayBuffer
370
370
  ): void | Promise<void>;
371
- webSocketClose(
371
+ webSocketClose?(
372
372
  ws: WebSocket,
373
373
  code: number,
374
374
  reason: string,
375
375
  wasClean: boolean
376
376
  ): void | Promise<void>;
377
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
377
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
378
378
  }
379
379
  export interface DurableObjectStub extends Fetcher {
380
380
  readonly id: DurableObjectId;
@@ -1127,10 +1127,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1127
1127
  list_complete: false;
1128
1128
  keys: KVNamespaceListKey<Metadata, Key>[];
1129
1129
  cursor: string;
1130
+ cacheStatus: string | null;
1130
1131
  }
1131
1132
  | {
1132
1133
  list_complete: true;
1133
1134
  keys: KVNamespaceListKey<Metadata, Key>[];
1135
+ cacheStatus: string | null;
1134
1136
  };
1135
1137
  export interface KVNamespace<Key extends string = string> {
1136
1138
  get(
@@ -1223,6 +1225,7 @@ export interface KVNamespacePutOptions {
1223
1225
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1224
1226
  value: Value | null;
1225
1227
  metadata: Metadata | null;
1228
+ cacheStatus: string | null;
1226
1229
  }
1227
1230
  export interface Queue<Body> {
1228
1231
  send(message: Body): Promise<void>;
package/index.d.ts CHANGED
@@ -352,17 +352,17 @@ declare interface Performance {
352
352
  declare interface DurableObject {
353
353
  fetch(request: Request): Response | Promise<Response>;
354
354
  alarm?(): void | Promise<void>;
355
- webSocketMessage(
355
+ webSocketMessage?(
356
356
  ws: WebSocket,
357
357
  message: string | ArrayBuffer
358
358
  ): void | Promise<void>;
359
- webSocketClose(
359
+ webSocketClose?(
360
360
  ws: WebSocket,
361
361
  code: number,
362
362
  reason: string,
363
363
  wasClean: boolean
364
364
  ): void | Promise<void>;
365
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
365
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
366
366
  }
367
367
  declare interface DurableObjectStub extends Fetcher {
368
368
  readonly id: DurableObjectId;
@@ -1116,10 +1116,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1116
1116
  list_complete: false;
1117
1117
  keys: KVNamespaceListKey<Metadata, Key>[];
1118
1118
  cursor: string;
1119
+ cacheStatus: string | null;
1119
1120
  }
1120
1121
  | {
1121
1122
  list_complete: true;
1122
1123
  keys: KVNamespaceListKey<Metadata, Key>[];
1124
+ cacheStatus: string | null;
1123
1125
  };
1124
1126
  declare interface KVNamespace<Key extends string = string> {
1125
1127
  get(
@@ -1212,6 +1214,7 @@ declare interface KVNamespacePutOptions {
1212
1214
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1213
1215
  value: Value | null;
1214
1216
  metadata: Metadata | null;
1217
+ cacheStatus: string | null;
1215
1218
  }
1216
1219
  declare interface Queue<Body> {
1217
1220
  send(message: Body): Promise<void>;
package/index.ts CHANGED
@@ -354,17 +354,17 @@ export interface Performance {
354
354
  export interface DurableObject {
355
355
  fetch(request: Request): Response | Promise<Response>;
356
356
  alarm?(): void | Promise<void>;
357
- webSocketMessage(
357
+ webSocketMessage?(
358
358
  ws: WebSocket,
359
359
  message: string | ArrayBuffer
360
360
  ): void | Promise<void>;
361
- webSocketClose(
361
+ webSocketClose?(
362
362
  ws: WebSocket,
363
363
  code: number,
364
364
  reason: string,
365
365
  wasClean: boolean
366
366
  ): void | Promise<void>;
367
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
367
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
368
368
  }
369
369
  export interface DurableObjectStub extends Fetcher {
370
370
  readonly id: DurableObjectId;
@@ -1118,10 +1118,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1118
1118
  list_complete: false;
1119
1119
  keys: KVNamespaceListKey<Metadata, Key>[];
1120
1120
  cursor: string;
1121
+ cacheStatus: string | null;
1121
1122
  }
1122
1123
  | {
1123
1124
  list_complete: true;
1124
1125
  keys: KVNamespaceListKey<Metadata, Key>[];
1126
+ cacheStatus: string | null;
1125
1127
  };
1126
1128
  export interface KVNamespace<Key extends string = string> {
1127
1129
  get(
@@ -1214,6 +1216,7 @@ export interface KVNamespacePutOptions {
1214
1216
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1215
1217
  value: Value | null;
1216
1218
  metadata: Metadata | null;
1219
+ cacheStatus: string | null;
1217
1220
  }
1218
1221
  export interface Queue<Body> {
1219
1222
  send(message: Body): Promise<void>;
package/oldest/index.d.ts CHANGED
@@ -352,17 +352,17 @@ declare interface Performance {
352
352
  declare interface DurableObject {
353
353
  fetch(request: Request): Response | Promise<Response>;
354
354
  alarm?(): void | Promise<void>;
355
- webSocketMessage(
355
+ webSocketMessage?(
356
356
  ws: WebSocket,
357
357
  message: string | ArrayBuffer
358
358
  ): void | Promise<void>;
359
- webSocketClose(
359
+ webSocketClose?(
360
360
  ws: WebSocket,
361
361
  code: number,
362
362
  reason: string,
363
363
  wasClean: boolean
364
364
  ): void | Promise<void>;
365
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
365
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
366
366
  }
367
367
  declare interface DurableObjectStub extends Fetcher {
368
368
  readonly id: DurableObjectId;
@@ -1116,10 +1116,12 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1116
1116
  list_complete: false;
1117
1117
  keys: KVNamespaceListKey<Metadata, Key>[];
1118
1118
  cursor: string;
1119
+ cacheStatus: string | null;
1119
1120
  }
1120
1121
  | {
1121
1122
  list_complete: true;
1122
1123
  keys: KVNamespaceListKey<Metadata, Key>[];
1124
+ cacheStatus: string | null;
1123
1125
  };
1124
1126
  declare interface KVNamespace<Key extends string = string> {
1125
1127
  get(
@@ -1212,6 +1214,7 @@ declare interface KVNamespacePutOptions {
1212
1214
  declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1213
1215
  value: Value | null;
1214
1216
  metadata: Metadata | null;
1217
+ cacheStatus: string | null;
1215
1218
  }
1216
1219
  declare interface Queue<Body> {
1217
1220
  send(message: Body): Promise<void>;
package/oldest/index.ts CHANGED
@@ -354,17 +354,17 @@ export interface Performance {
354
354
  export interface DurableObject {
355
355
  fetch(request: Request): Response | Promise<Response>;
356
356
  alarm?(): void | Promise<void>;
357
- webSocketMessage(
357
+ webSocketMessage?(
358
358
  ws: WebSocket,
359
359
  message: string | ArrayBuffer
360
360
  ): void | Promise<void>;
361
- webSocketClose(
361
+ webSocketClose?(
362
362
  ws: WebSocket,
363
363
  code: number,
364
364
  reason: string,
365
365
  wasClean: boolean
366
366
  ): void | Promise<void>;
367
- webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
367
+ webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
368
368
  }
369
369
  export interface DurableObjectStub extends Fetcher {
370
370
  readonly id: DurableObjectId;
@@ -1118,10 +1118,12 @@ export type KVNamespaceListResult<Metadata, Key extends string = string> =
1118
1118
  list_complete: false;
1119
1119
  keys: KVNamespaceListKey<Metadata, Key>[];
1120
1120
  cursor: string;
1121
+ cacheStatus: string | null;
1121
1122
  }
1122
1123
  | {
1123
1124
  list_complete: true;
1124
1125
  keys: KVNamespaceListKey<Metadata, Key>[];
1126
+ cacheStatus: string | null;
1125
1127
  };
1126
1128
  export interface KVNamespace<Key extends string = string> {
1127
1129
  get(
@@ -1214,6 +1216,7 @@ export interface KVNamespacePutOptions {
1214
1216
  export interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1215
1217
  value: Value | null;
1216
1218
  metadata: Metadata | null;
1219
+ cacheStatus: string | null;
1217
1220
  }
1218
1221
  export interface Queue<Body> {
1219
1222
  send(message: Body): Promise<void>;
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20230710.0"
10
+ "version": "4.20230717.0"
11
11
  }