@cloudflare/workers-types 5.20261003.1 → 5.20261004.1
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/experimental/index.d.ts +8 -0
- package/experimental/index.ts +8 -0
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -797,6 +797,10 @@ interface DurableObjectStorage {
|
|
|
797
797
|
getBookmarkForTime(timestamp: number | Date): Promise<string>;
|
|
798
798
|
onNextSessionRestoreBookmark(bookmark: string): Promise<string>;
|
|
799
799
|
waitForBookmark(bookmark: string): Promise<void>;
|
|
800
|
+
snapshot(
|
|
801
|
+
options?: DurableObjectSnapshotOptions,
|
|
802
|
+
): Promise<DurableObjectSnapshot>;
|
|
803
|
+
onNextSessionRestore(target: DurableObjectSnapshot | string): Promise<string>;
|
|
800
804
|
/** @deprecated Use `ctx.primaryStub` instead. */
|
|
801
805
|
readonly primary?: DurableObjectStub;
|
|
802
806
|
/** @deprecated Use `ctx.configureReadReplication()` instead. */
|
|
@@ -810,6 +814,9 @@ interface DurableObjectAbortOptions {
|
|
|
810
814
|
interface DurableObjectReadReplicationOptions {
|
|
811
815
|
mode: "auto" | "disabled";
|
|
812
816
|
}
|
|
817
|
+
interface DurableObjectSnapshotOptions {
|
|
818
|
+
bookmark?: string;
|
|
819
|
+
}
|
|
813
820
|
interface DurableObjectListOptions {
|
|
814
821
|
start?: string;
|
|
815
822
|
startAfter?: string;
|
|
@@ -2359,6 +2366,7 @@ type ServiceBindingQueueMessage<Body = unknown> = {
|
|
|
2359
2366
|
serializedBody: ArrayBuffer | ArrayBufferView;
|
|
2360
2367
|
}
|
|
2361
2368
|
);
|
|
2369
|
+
interface DurableObjectSnapshot {}
|
|
2362
2370
|
interface KVNamespaceListKey<Metadata, Key extends string = string> {
|
|
2363
2371
|
name: Key;
|
|
2364
2372
|
expiration?: number;
|
package/experimental/index.ts
CHANGED
|
@@ -800,6 +800,10 @@ export interface DurableObjectStorage {
|
|
|
800
800
|
getBookmarkForTime(timestamp: number | Date): Promise<string>;
|
|
801
801
|
onNextSessionRestoreBookmark(bookmark: string): Promise<string>;
|
|
802
802
|
waitForBookmark(bookmark: string): Promise<void>;
|
|
803
|
+
snapshot(
|
|
804
|
+
options?: DurableObjectSnapshotOptions,
|
|
805
|
+
): Promise<DurableObjectSnapshot>;
|
|
806
|
+
onNextSessionRestore(target: DurableObjectSnapshot | string): Promise<string>;
|
|
803
807
|
/** @deprecated Use `ctx.primaryStub` instead. */
|
|
804
808
|
readonly primary?: DurableObjectStub;
|
|
805
809
|
/** @deprecated Use `ctx.configureReadReplication()` instead. */
|
|
@@ -813,6 +817,9 @@ export interface DurableObjectAbortOptions {
|
|
|
813
817
|
export interface DurableObjectReadReplicationOptions {
|
|
814
818
|
mode: "auto" | "disabled";
|
|
815
819
|
}
|
|
820
|
+
export interface DurableObjectSnapshotOptions {
|
|
821
|
+
bookmark?: string;
|
|
822
|
+
}
|
|
816
823
|
export interface DurableObjectListOptions {
|
|
817
824
|
start?: string;
|
|
818
825
|
startAfter?: string;
|
|
@@ -2365,6 +2372,7 @@ export type ServiceBindingQueueMessage<Body = unknown> = {
|
|
|
2365
2372
|
serializedBody: ArrayBuffer | ArrayBufferView;
|
|
2366
2373
|
}
|
|
2367
2374
|
);
|
|
2375
|
+
export interface DurableObjectSnapshot {}
|
|
2368
2376
|
export interface KVNamespaceListKey<Metadata, Key extends string = string> {
|
|
2369
2377
|
name: Key;
|
|
2370
2378
|
expiration?: number;
|
package/package.json
CHANGED