@cloudflare/workers-types 4.20250528.0 → 4.20250531.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 +23 -1
- package/2021-11-03/index.ts +22 -1
- package/2022-01-31/index.d.ts +23 -1
- package/2022-01-31/index.ts +22 -1
- package/2022-03-21/index.d.ts +23 -1
- package/2022-03-21/index.ts +22 -1
- package/2022-08-04/index.d.ts +23 -1
- package/2022-08-04/index.ts +22 -1
- package/2022-10-31/index.d.ts +23 -1
- package/2022-10-31/index.ts +22 -1
- package/2022-11-30/index.d.ts +23 -1
- package/2022-11-30/index.ts +22 -1
- package/2023-03-01/index.d.ts +23 -1
- package/2023-03-01/index.ts +22 -1
- package/2023-07-01/index.d.ts +23 -1
- package/2023-07-01/index.ts +22 -1
- package/experimental/index.d.ts +23 -1
- package/experimental/index.ts +22 -1
- package/index.d.ts +23 -1
- package/index.ts +22 -1
- package/latest/index.d.ts +23 -1
- package/latest/index.ts +22 -1
- package/oldest/index.d.ts +23 -1
- package/oldest/index.ts +22 -1
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -6153,6 +6153,7 @@ declare module "cloudflare:workers" {
|
|
|
6153
6153
|
| number;
|
|
6154
6154
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6155
6155
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6156
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6156
6157
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6157
6158
|
export type WorkflowStepConfig = {
|
|
6158
6159
|
retries?: {
|
|
@@ -6317,6 +6318,7 @@ declare namespace TailStream {
|
|
|
6317
6318
|
readonly type: "onset";
|
|
6318
6319
|
readonly dispatchNamespace?: string;
|
|
6319
6320
|
readonly entrypoint?: string;
|
|
6321
|
+
readonly executionModel: string;
|
|
6320
6322
|
readonly scriptName?: string;
|
|
6321
6323
|
readonly scriptTags?: string[];
|
|
6322
6324
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6369,7 +6371,7 @@ declare namespace TailStream {
|
|
|
6369
6371
|
}
|
|
6370
6372
|
interface Return {
|
|
6371
6373
|
readonly type: "return";
|
|
6372
|
-
readonly info?: FetchResponseInfo
|
|
6374
|
+
readonly info?: FetchResponseInfo;
|
|
6373
6375
|
}
|
|
6374
6376
|
interface Link {
|
|
6375
6377
|
readonly type: "link";
|
|
@@ -6766,6 +6768,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6766
6768
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6767
6769
|
): Promise<WorkflowInstance[]>;
|
|
6768
6770
|
}
|
|
6771
|
+
type WorkflowDurationLabel =
|
|
6772
|
+
| "second"
|
|
6773
|
+
| "minute"
|
|
6774
|
+
| "hour"
|
|
6775
|
+
| "day"
|
|
6776
|
+
| "week"
|
|
6777
|
+
| "month"
|
|
6778
|
+
| "year";
|
|
6779
|
+
type WorkflowSleepDuration =
|
|
6780
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6781
|
+
| number;
|
|
6782
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6769
6783
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6770
6784
|
/**
|
|
6771
6785
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6775,6 +6789,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6775
6789
|
* The event payload the Workflow instance is triggered with
|
|
6776
6790
|
*/
|
|
6777
6791
|
params?: PARAMS;
|
|
6792
|
+
/**
|
|
6793
|
+
* The retention policy for Workflow instance.
|
|
6794
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6795
|
+
*/
|
|
6796
|
+
retention?: {
|
|
6797
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6798
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6799
|
+
};
|
|
6778
6800
|
}
|
|
6779
6801
|
type InstanceStatus = {
|
|
6780
6802
|
status:
|
package/2021-11-03/index.ts
CHANGED
|
@@ -6181,6 +6181,7 @@ export declare namespace TailStream {
|
|
|
6181
6181
|
readonly type: "onset";
|
|
6182
6182
|
readonly dispatchNamespace?: string;
|
|
6183
6183
|
readonly entrypoint?: string;
|
|
6184
|
+
readonly executionModel: string;
|
|
6184
6185
|
readonly scriptName?: string;
|
|
6185
6186
|
readonly scriptTags?: string[];
|
|
6186
6187
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6233,7 +6234,7 @@ export declare namespace TailStream {
|
|
|
6233
6234
|
}
|
|
6234
6235
|
interface Return {
|
|
6235
6236
|
readonly type: "return";
|
|
6236
|
-
readonly info?: FetchResponseInfo
|
|
6237
|
+
readonly info?: FetchResponseInfo;
|
|
6237
6238
|
}
|
|
6238
6239
|
interface Link {
|
|
6239
6240
|
readonly type: "link";
|
|
@@ -6621,6 +6622,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6621
6622
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6622
6623
|
): Promise<WorkflowInstance[]>;
|
|
6623
6624
|
}
|
|
6625
|
+
export type WorkflowDurationLabel =
|
|
6626
|
+
| "second"
|
|
6627
|
+
| "minute"
|
|
6628
|
+
| "hour"
|
|
6629
|
+
| "day"
|
|
6630
|
+
| "week"
|
|
6631
|
+
| "month"
|
|
6632
|
+
| "year";
|
|
6633
|
+
export type WorkflowSleepDuration =
|
|
6634
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6635
|
+
| number;
|
|
6636
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6624
6637
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6625
6638
|
/**
|
|
6626
6639
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6630,6 +6643,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6630
6643
|
* The event payload the Workflow instance is triggered with
|
|
6631
6644
|
*/
|
|
6632
6645
|
params?: PARAMS;
|
|
6646
|
+
/**
|
|
6647
|
+
* The retention policy for Workflow instance.
|
|
6648
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6649
|
+
*/
|
|
6650
|
+
retention?: {
|
|
6651
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6652
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6653
|
+
};
|
|
6633
6654
|
}
|
|
6634
6655
|
export type InstanceStatus = {
|
|
6635
6656
|
status:
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -6179,6 +6179,7 @@ declare module "cloudflare:workers" {
|
|
|
6179
6179
|
| number;
|
|
6180
6180
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6181
6181
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6182
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6182
6183
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6183
6184
|
export type WorkflowStepConfig = {
|
|
6184
6185
|
retries?: {
|
|
@@ -6343,6 +6344,7 @@ declare namespace TailStream {
|
|
|
6343
6344
|
readonly type: "onset";
|
|
6344
6345
|
readonly dispatchNamespace?: string;
|
|
6345
6346
|
readonly entrypoint?: string;
|
|
6347
|
+
readonly executionModel: string;
|
|
6346
6348
|
readonly scriptName?: string;
|
|
6347
6349
|
readonly scriptTags?: string[];
|
|
6348
6350
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6395,7 +6397,7 @@ declare namespace TailStream {
|
|
|
6395
6397
|
}
|
|
6396
6398
|
interface Return {
|
|
6397
6399
|
readonly type: "return";
|
|
6398
|
-
readonly info?: FetchResponseInfo
|
|
6400
|
+
readonly info?: FetchResponseInfo;
|
|
6399
6401
|
}
|
|
6400
6402
|
interface Link {
|
|
6401
6403
|
readonly type: "link";
|
|
@@ -6792,6 +6794,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6792
6794
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6793
6795
|
): Promise<WorkflowInstance[]>;
|
|
6794
6796
|
}
|
|
6797
|
+
type WorkflowDurationLabel =
|
|
6798
|
+
| "second"
|
|
6799
|
+
| "minute"
|
|
6800
|
+
| "hour"
|
|
6801
|
+
| "day"
|
|
6802
|
+
| "week"
|
|
6803
|
+
| "month"
|
|
6804
|
+
| "year";
|
|
6805
|
+
type WorkflowSleepDuration =
|
|
6806
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6807
|
+
| number;
|
|
6808
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6795
6809
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6796
6810
|
/**
|
|
6797
6811
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6801,6 +6815,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6801
6815
|
* The event payload the Workflow instance is triggered with
|
|
6802
6816
|
*/
|
|
6803
6817
|
params?: PARAMS;
|
|
6818
|
+
/**
|
|
6819
|
+
* The retention policy for Workflow instance.
|
|
6820
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6821
|
+
*/
|
|
6822
|
+
retention?: {
|
|
6823
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6824
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6825
|
+
};
|
|
6804
6826
|
}
|
|
6805
6827
|
type InstanceStatus = {
|
|
6806
6828
|
status:
|
package/2022-01-31/index.ts
CHANGED
|
@@ -6207,6 +6207,7 @@ export declare namespace TailStream {
|
|
|
6207
6207
|
readonly type: "onset";
|
|
6208
6208
|
readonly dispatchNamespace?: string;
|
|
6209
6209
|
readonly entrypoint?: string;
|
|
6210
|
+
readonly executionModel: string;
|
|
6210
6211
|
readonly scriptName?: string;
|
|
6211
6212
|
readonly scriptTags?: string[];
|
|
6212
6213
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6259,7 +6260,7 @@ export declare namespace TailStream {
|
|
|
6259
6260
|
}
|
|
6260
6261
|
interface Return {
|
|
6261
6262
|
readonly type: "return";
|
|
6262
|
-
readonly info?: FetchResponseInfo
|
|
6263
|
+
readonly info?: FetchResponseInfo;
|
|
6263
6264
|
}
|
|
6264
6265
|
interface Link {
|
|
6265
6266
|
readonly type: "link";
|
|
@@ -6647,6 +6648,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6647
6648
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6648
6649
|
): Promise<WorkflowInstance[]>;
|
|
6649
6650
|
}
|
|
6651
|
+
export type WorkflowDurationLabel =
|
|
6652
|
+
| "second"
|
|
6653
|
+
| "minute"
|
|
6654
|
+
| "hour"
|
|
6655
|
+
| "day"
|
|
6656
|
+
| "week"
|
|
6657
|
+
| "month"
|
|
6658
|
+
| "year";
|
|
6659
|
+
export type WorkflowSleepDuration =
|
|
6660
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6661
|
+
| number;
|
|
6662
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6650
6663
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6651
6664
|
/**
|
|
6652
6665
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6656,6 +6669,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6656
6669
|
* The event payload the Workflow instance is triggered with
|
|
6657
6670
|
*/
|
|
6658
6671
|
params?: PARAMS;
|
|
6672
|
+
/**
|
|
6673
|
+
* The retention policy for Workflow instance.
|
|
6674
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6675
|
+
*/
|
|
6676
|
+
retention?: {
|
|
6677
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6678
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6679
|
+
};
|
|
6659
6680
|
}
|
|
6660
6681
|
export type InstanceStatus = {
|
|
6661
6682
|
status:
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -6197,6 +6197,7 @@ declare module "cloudflare:workers" {
|
|
|
6197
6197
|
| number;
|
|
6198
6198
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6199
6199
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6200
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6200
6201
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6201
6202
|
export type WorkflowStepConfig = {
|
|
6202
6203
|
retries?: {
|
|
@@ -6361,6 +6362,7 @@ declare namespace TailStream {
|
|
|
6361
6362
|
readonly type: "onset";
|
|
6362
6363
|
readonly dispatchNamespace?: string;
|
|
6363
6364
|
readonly entrypoint?: string;
|
|
6365
|
+
readonly executionModel: string;
|
|
6364
6366
|
readonly scriptName?: string;
|
|
6365
6367
|
readonly scriptTags?: string[];
|
|
6366
6368
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6413,7 +6415,7 @@ declare namespace TailStream {
|
|
|
6413
6415
|
}
|
|
6414
6416
|
interface Return {
|
|
6415
6417
|
readonly type: "return";
|
|
6416
|
-
readonly info?: FetchResponseInfo
|
|
6418
|
+
readonly info?: FetchResponseInfo;
|
|
6417
6419
|
}
|
|
6418
6420
|
interface Link {
|
|
6419
6421
|
readonly type: "link";
|
|
@@ -6810,6 +6812,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6810
6812
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6811
6813
|
): Promise<WorkflowInstance[]>;
|
|
6812
6814
|
}
|
|
6815
|
+
type WorkflowDurationLabel =
|
|
6816
|
+
| "second"
|
|
6817
|
+
| "minute"
|
|
6818
|
+
| "hour"
|
|
6819
|
+
| "day"
|
|
6820
|
+
| "week"
|
|
6821
|
+
| "month"
|
|
6822
|
+
| "year";
|
|
6823
|
+
type WorkflowSleepDuration =
|
|
6824
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6825
|
+
| number;
|
|
6826
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6813
6827
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6814
6828
|
/**
|
|
6815
6829
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6819,6 +6833,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6819
6833
|
* The event payload the Workflow instance is triggered with
|
|
6820
6834
|
*/
|
|
6821
6835
|
params?: PARAMS;
|
|
6836
|
+
/**
|
|
6837
|
+
* The retention policy for Workflow instance.
|
|
6838
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6839
|
+
*/
|
|
6840
|
+
retention?: {
|
|
6841
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6842
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6843
|
+
};
|
|
6822
6844
|
}
|
|
6823
6845
|
type InstanceStatus = {
|
|
6824
6846
|
status:
|
package/2022-03-21/index.ts
CHANGED
|
@@ -6225,6 +6225,7 @@ export declare namespace TailStream {
|
|
|
6225
6225
|
readonly type: "onset";
|
|
6226
6226
|
readonly dispatchNamespace?: string;
|
|
6227
6227
|
readonly entrypoint?: string;
|
|
6228
|
+
readonly executionModel: string;
|
|
6228
6229
|
readonly scriptName?: string;
|
|
6229
6230
|
readonly scriptTags?: string[];
|
|
6230
6231
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6277,7 +6278,7 @@ export declare namespace TailStream {
|
|
|
6277
6278
|
}
|
|
6278
6279
|
interface Return {
|
|
6279
6280
|
readonly type: "return";
|
|
6280
|
-
readonly info?: FetchResponseInfo
|
|
6281
|
+
readonly info?: FetchResponseInfo;
|
|
6281
6282
|
}
|
|
6282
6283
|
interface Link {
|
|
6283
6284
|
readonly type: "link";
|
|
@@ -6665,6 +6666,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6665
6666
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6666
6667
|
): Promise<WorkflowInstance[]>;
|
|
6667
6668
|
}
|
|
6669
|
+
export type WorkflowDurationLabel =
|
|
6670
|
+
| "second"
|
|
6671
|
+
| "minute"
|
|
6672
|
+
| "hour"
|
|
6673
|
+
| "day"
|
|
6674
|
+
| "week"
|
|
6675
|
+
| "month"
|
|
6676
|
+
| "year";
|
|
6677
|
+
export type WorkflowSleepDuration =
|
|
6678
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6679
|
+
| number;
|
|
6680
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6668
6681
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6669
6682
|
/**
|
|
6670
6683
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6674,6 +6687,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6674
6687
|
* The event payload the Workflow instance is triggered with
|
|
6675
6688
|
*/
|
|
6676
6689
|
params?: PARAMS;
|
|
6690
|
+
/**
|
|
6691
|
+
* The retention policy for Workflow instance.
|
|
6692
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6693
|
+
*/
|
|
6694
|
+
retention?: {
|
|
6695
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6696
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6697
|
+
};
|
|
6677
6698
|
}
|
|
6678
6699
|
export type InstanceStatus = {
|
|
6679
6700
|
status:
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -6198,6 +6198,7 @@ declare module "cloudflare:workers" {
|
|
|
6198
6198
|
| number;
|
|
6199
6199
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6200
6200
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6201
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6201
6202
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6202
6203
|
export type WorkflowStepConfig = {
|
|
6203
6204
|
retries?: {
|
|
@@ -6362,6 +6363,7 @@ declare namespace TailStream {
|
|
|
6362
6363
|
readonly type: "onset";
|
|
6363
6364
|
readonly dispatchNamespace?: string;
|
|
6364
6365
|
readonly entrypoint?: string;
|
|
6366
|
+
readonly executionModel: string;
|
|
6365
6367
|
readonly scriptName?: string;
|
|
6366
6368
|
readonly scriptTags?: string[];
|
|
6367
6369
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6414,7 +6416,7 @@ declare namespace TailStream {
|
|
|
6414
6416
|
}
|
|
6415
6417
|
interface Return {
|
|
6416
6418
|
readonly type: "return";
|
|
6417
|
-
readonly info?: FetchResponseInfo
|
|
6419
|
+
readonly info?: FetchResponseInfo;
|
|
6418
6420
|
}
|
|
6419
6421
|
interface Link {
|
|
6420
6422
|
readonly type: "link";
|
|
@@ -6811,6 +6813,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6811
6813
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6812
6814
|
): Promise<WorkflowInstance[]>;
|
|
6813
6815
|
}
|
|
6816
|
+
type WorkflowDurationLabel =
|
|
6817
|
+
| "second"
|
|
6818
|
+
| "minute"
|
|
6819
|
+
| "hour"
|
|
6820
|
+
| "day"
|
|
6821
|
+
| "week"
|
|
6822
|
+
| "month"
|
|
6823
|
+
| "year";
|
|
6824
|
+
type WorkflowSleepDuration =
|
|
6825
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6826
|
+
| number;
|
|
6827
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6814
6828
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6815
6829
|
/**
|
|
6816
6830
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6820,6 +6834,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6820
6834
|
* The event payload the Workflow instance is triggered with
|
|
6821
6835
|
*/
|
|
6822
6836
|
params?: PARAMS;
|
|
6837
|
+
/**
|
|
6838
|
+
* The retention policy for Workflow instance.
|
|
6839
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6840
|
+
*/
|
|
6841
|
+
retention?: {
|
|
6842
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6843
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6844
|
+
};
|
|
6823
6845
|
}
|
|
6824
6846
|
type InstanceStatus = {
|
|
6825
6847
|
status:
|
package/2022-08-04/index.ts
CHANGED
|
@@ -6226,6 +6226,7 @@ export declare namespace TailStream {
|
|
|
6226
6226
|
readonly type: "onset";
|
|
6227
6227
|
readonly dispatchNamespace?: string;
|
|
6228
6228
|
readonly entrypoint?: string;
|
|
6229
|
+
readonly executionModel: string;
|
|
6229
6230
|
readonly scriptName?: string;
|
|
6230
6231
|
readonly scriptTags?: string[];
|
|
6231
6232
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6278,7 +6279,7 @@ export declare namespace TailStream {
|
|
|
6278
6279
|
}
|
|
6279
6280
|
interface Return {
|
|
6280
6281
|
readonly type: "return";
|
|
6281
|
-
readonly info?: FetchResponseInfo
|
|
6282
|
+
readonly info?: FetchResponseInfo;
|
|
6282
6283
|
}
|
|
6283
6284
|
interface Link {
|
|
6284
6285
|
readonly type: "link";
|
|
@@ -6666,6 +6667,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6666
6667
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6667
6668
|
): Promise<WorkflowInstance[]>;
|
|
6668
6669
|
}
|
|
6670
|
+
export type WorkflowDurationLabel =
|
|
6671
|
+
| "second"
|
|
6672
|
+
| "minute"
|
|
6673
|
+
| "hour"
|
|
6674
|
+
| "day"
|
|
6675
|
+
| "week"
|
|
6676
|
+
| "month"
|
|
6677
|
+
| "year";
|
|
6678
|
+
export type WorkflowSleepDuration =
|
|
6679
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6680
|
+
| number;
|
|
6681
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6669
6682
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6670
6683
|
/**
|
|
6671
6684
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6675,6 +6688,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6675
6688
|
* The event payload the Workflow instance is triggered with
|
|
6676
6689
|
*/
|
|
6677
6690
|
params?: PARAMS;
|
|
6691
|
+
/**
|
|
6692
|
+
* The retention policy for Workflow instance.
|
|
6693
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6694
|
+
*/
|
|
6695
|
+
retention?: {
|
|
6696
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6697
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6698
|
+
};
|
|
6678
6699
|
}
|
|
6679
6700
|
export type InstanceStatus = {
|
|
6680
6701
|
status:
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -6202,6 +6202,7 @@ declare module "cloudflare:workers" {
|
|
|
6202
6202
|
| number;
|
|
6203
6203
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6204
6204
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6205
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6205
6206
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6206
6207
|
export type WorkflowStepConfig = {
|
|
6207
6208
|
retries?: {
|
|
@@ -6366,6 +6367,7 @@ declare namespace TailStream {
|
|
|
6366
6367
|
readonly type: "onset";
|
|
6367
6368
|
readonly dispatchNamespace?: string;
|
|
6368
6369
|
readonly entrypoint?: string;
|
|
6370
|
+
readonly executionModel: string;
|
|
6369
6371
|
readonly scriptName?: string;
|
|
6370
6372
|
readonly scriptTags?: string[];
|
|
6371
6373
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6418,7 +6420,7 @@ declare namespace TailStream {
|
|
|
6418
6420
|
}
|
|
6419
6421
|
interface Return {
|
|
6420
6422
|
readonly type: "return";
|
|
6421
|
-
readonly info?: FetchResponseInfo
|
|
6423
|
+
readonly info?: FetchResponseInfo;
|
|
6422
6424
|
}
|
|
6423
6425
|
interface Link {
|
|
6424
6426
|
readonly type: "link";
|
|
@@ -6815,6 +6817,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6815
6817
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6816
6818
|
): Promise<WorkflowInstance[]>;
|
|
6817
6819
|
}
|
|
6820
|
+
type WorkflowDurationLabel =
|
|
6821
|
+
| "second"
|
|
6822
|
+
| "minute"
|
|
6823
|
+
| "hour"
|
|
6824
|
+
| "day"
|
|
6825
|
+
| "week"
|
|
6826
|
+
| "month"
|
|
6827
|
+
| "year";
|
|
6828
|
+
type WorkflowSleepDuration =
|
|
6829
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6830
|
+
| number;
|
|
6831
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6818
6832
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6819
6833
|
/**
|
|
6820
6834
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6824,6 +6838,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6824
6838
|
* The event payload the Workflow instance is triggered with
|
|
6825
6839
|
*/
|
|
6826
6840
|
params?: PARAMS;
|
|
6841
|
+
/**
|
|
6842
|
+
* The retention policy for Workflow instance.
|
|
6843
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6844
|
+
*/
|
|
6845
|
+
retention?: {
|
|
6846
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6847
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6848
|
+
};
|
|
6827
6849
|
}
|
|
6828
6850
|
type InstanceStatus = {
|
|
6829
6851
|
status:
|
package/2022-10-31/index.ts
CHANGED
|
@@ -6230,6 +6230,7 @@ export declare namespace TailStream {
|
|
|
6230
6230
|
readonly type: "onset";
|
|
6231
6231
|
readonly dispatchNamespace?: string;
|
|
6232
6232
|
readonly entrypoint?: string;
|
|
6233
|
+
readonly executionModel: string;
|
|
6233
6234
|
readonly scriptName?: string;
|
|
6234
6235
|
readonly scriptTags?: string[];
|
|
6235
6236
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6282,7 +6283,7 @@ export declare namespace TailStream {
|
|
|
6282
6283
|
}
|
|
6283
6284
|
interface Return {
|
|
6284
6285
|
readonly type: "return";
|
|
6285
|
-
readonly info?: FetchResponseInfo
|
|
6286
|
+
readonly info?: FetchResponseInfo;
|
|
6286
6287
|
}
|
|
6287
6288
|
interface Link {
|
|
6288
6289
|
readonly type: "link";
|
|
@@ -6670,6 +6671,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6670
6671
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6671
6672
|
): Promise<WorkflowInstance[]>;
|
|
6672
6673
|
}
|
|
6674
|
+
export type WorkflowDurationLabel =
|
|
6675
|
+
| "second"
|
|
6676
|
+
| "minute"
|
|
6677
|
+
| "hour"
|
|
6678
|
+
| "day"
|
|
6679
|
+
| "week"
|
|
6680
|
+
| "month"
|
|
6681
|
+
| "year";
|
|
6682
|
+
export type WorkflowSleepDuration =
|
|
6683
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6684
|
+
| number;
|
|
6685
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6673
6686
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6674
6687
|
/**
|
|
6675
6688
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6679,6 +6692,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6679
6692
|
* The event payload the Workflow instance is triggered with
|
|
6680
6693
|
*/
|
|
6681
6694
|
params?: PARAMS;
|
|
6695
|
+
/**
|
|
6696
|
+
* The retention policy for Workflow instance.
|
|
6697
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6698
|
+
*/
|
|
6699
|
+
retention?: {
|
|
6700
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6701
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6702
|
+
};
|
|
6682
6703
|
}
|
|
6683
6704
|
export type InstanceStatus = {
|
|
6684
6705
|
status:
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -6207,6 +6207,7 @@ declare module "cloudflare:workers" {
|
|
|
6207
6207
|
| number;
|
|
6208
6208
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6209
6209
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6210
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6210
6211
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6211
6212
|
export type WorkflowStepConfig = {
|
|
6212
6213
|
retries?: {
|
|
@@ -6371,6 +6372,7 @@ declare namespace TailStream {
|
|
|
6371
6372
|
readonly type: "onset";
|
|
6372
6373
|
readonly dispatchNamespace?: string;
|
|
6373
6374
|
readonly entrypoint?: string;
|
|
6375
|
+
readonly executionModel: string;
|
|
6374
6376
|
readonly scriptName?: string;
|
|
6375
6377
|
readonly scriptTags?: string[];
|
|
6376
6378
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6423,7 +6425,7 @@ declare namespace TailStream {
|
|
|
6423
6425
|
}
|
|
6424
6426
|
interface Return {
|
|
6425
6427
|
readonly type: "return";
|
|
6426
|
-
readonly info?: FetchResponseInfo
|
|
6428
|
+
readonly info?: FetchResponseInfo;
|
|
6427
6429
|
}
|
|
6428
6430
|
interface Link {
|
|
6429
6431
|
readonly type: "link";
|
|
@@ -6820,6 +6822,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6820
6822
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6821
6823
|
): Promise<WorkflowInstance[]>;
|
|
6822
6824
|
}
|
|
6825
|
+
type WorkflowDurationLabel =
|
|
6826
|
+
| "second"
|
|
6827
|
+
| "minute"
|
|
6828
|
+
| "hour"
|
|
6829
|
+
| "day"
|
|
6830
|
+
| "week"
|
|
6831
|
+
| "month"
|
|
6832
|
+
| "year";
|
|
6833
|
+
type WorkflowSleepDuration =
|
|
6834
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6835
|
+
| number;
|
|
6836
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6823
6837
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6824
6838
|
/**
|
|
6825
6839
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6829,6 +6843,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6829
6843
|
* The event payload the Workflow instance is triggered with
|
|
6830
6844
|
*/
|
|
6831
6845
|
params?: PARAMS;
|
|
6846
|
+
/**
|
|
6847
|
+
* The retention policy for Workflow instance.
|
|
6848
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6849
|
+
*/
|
|
6850
|
+
retention?: {
|
|
6851
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6852
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6853
|
+
};
|
|
6832
6854
|
}
|
|
6833
6855
|
type InstanceStatus = {
|
|
6834
6856
|
status:
|
package/2022-11-30/index.ts
CHANGED
|
@@ -6235,6 +6235,7 @@ export declare namespace TailStream {
|
|
|
6235
6235
|
readonly type: "onset";
|
|
6236
6236
|
readonly dispatchNamespace?: string;
|
|
6237
6237
|
readonly entrypoint?: string;
|
|
6238
|
+
readonly executionModel: string;
|
|
6238
6239
|
readonly scriptName?: string;
|
|
6239
6240
|
readonly scriptTags?: string[];
|
|
6240
6241
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6287,7 +6288,7 @@ export declare namespace TailStream {
|
|
|
6287
6288
|
}
|
|
6288
6289
|
interface Return {
|
|
6289
6290
|
readonly type: "return";
|
|
6290
|
-
readonly info?: FetchResponseInfo
|
|
6291
|
+
readonly info?: FetchResponseInfo;
|
|
6291
6292
|
}
|
|
6292
6293
|
interface Link {
|
|
6293
6294
|
readonly type: "link";
|
|
@@ -6675,6 +6676,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6675
6676
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6676
6677
|
): Promise<WorkflowInstance[]>;
|
|
6677
6678
|
}
|
|
6679
|
+
export type WorkflowDurationLabel =
|
|
6680
|
+
| "second"
|
|
6681
|
+
| "minute"
|
|
6682
|
+
| "hour"
|
|
6683
|
+
| "day"
|
|
6684
|
+
| "week"
|
|
6685
|
+
| "month"
|
|
6686
|
+
| "year";
|
|
6687
|
+
export type WorkflowSleepDuration =
|
|
6688
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6689
|
+
| number;
|
|
6690
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6678
6691
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6679
6692
|
/**
|
|
6680
6693
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6684,6 +6697,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6684
6697
|
* The event payload the Workflow instance is triggered with
|
|
6685
6698
|
*/
|
|
6686
6699
|
params?: PARAMS;
|
|
6700
|
+
/**
|
|
6701
|
+
* The retention policy for Workflow instance.
|
|
6702
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6703
|
+
*/
|
|
6704
|
+
retention?: {
|
|
6705
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6706
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6707
|
+
};
|
|
6687
6708
|
}
|
|
6688
6709
|
export type InstanceStatus = {
|
|
6689
6710
|
status:
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -6209,6 +6209,7 @@ declare module "cloudflare:workers" {
|
|
|
6209
6209
|
| number;
|
|
6210
6210
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6211
6211
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6212
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6212
6213
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6213
6214
|
export type WorkflowStepConfig = {
|
|
6214
6215
|
retries?: {
|
|
@@ -6373,6 +6374,7 @@ declare namespace TailStream {
|
|
|
6373
6374
|
readonly type: "onset";
|
|
6374
6375
|
readonly dispatchNamespace?: string;
|
|
6375
6376
|
readonly entrypoint?: string;
|
|
6377
|
+
readonly executionModel: string;
|
|
6376
6378
|
readonly scriptName?: string;
|
|
6377
6379
|
readonly scriptTags?: string[];
|
|
6378
6380
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6425,7 +6427,7 @@ declare namespace TailStream {
|
|
|
6425
6427
|
}
|
|
6426
6428
|
interface Return {
|
|
6427
6429
|
readonly type: "return";
|
|
6428
|
-
readonly info?: FetchResponseInfo
|
|
6430
|
+
readonly info?: FetchResponseInfo;
|
|
6429
6431
|
}
|
|
6430
6432
|
interface Link {
|
|
6431
6433
|
readonly type: "link";
|
|
@@ -6822,6 +6824,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6822
6824
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6823
6825
|
): Promise<WorkflowInstance[]>;
|
|
6824
6826
|
}
|
|
6827
|
+
type WorkflowDurationLabel =
|
|
6828
|
+
| "second"
|
|
6829
|
+
| "minute"
|
|
6830
|
+
| "hour"
|
|
6831
|
+
| "day"
|
|
6832
|
+
| "week"
|
|
6833
|
+
| "month"
|
|
6834
|
+
| "year";
|
|
6835
|
+
type WorkflowSleepDuration =
|
|
6836
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6837
|
+
| number;
|
|
6838
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6825
6839
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6826
6840
|
/**
|
|
6827
6841
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6831,6 +6845,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6831
6845
|
* The event payload the Workflow instance is triggered with
|
|
6832
6846
|
*/
|
|
6833
6847
|
params?: PARAMS;
|
|
6848
|
+
/**
|
|
6849
|
+
* The retention policy for Workflow instance.
|
|
6850
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6851
|
+
*/
|
|
6852
|
+
retention?: {
|
|
6853
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6854
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6855
|
+
};
|
|
6834
6856
|
}
|
|
6835
6857
|
type InstanceStatus = {
|
|
6836
6858
|
status:
|
package/2023-03-01/index.ts
CHANGED
|
@@ -6237,6 +6237,7 @@ export declare namespace TailStream {
|
|
|
6237
6237
|
readonly type: "onset";
|
|
6238
6238
|
readonly dispatchNamespace?: string;
|
|
6239
6239
|
readonly entrypoint?: string;
|
|
6240
|
+
readonly executionModel: string;
|
|
6240
6241
|
readonly scriptName?: string;
|
|
6241
6242
|
readonly scriptTags?: string[];
|
|
6242
6243
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6289,7 +6290,7 @@ export declare namespace TailStream {
|
|
|
6289
6290
|
}
|
|
6290
6291
|
interface Return {
|
|
6291
6292
|
readonly type: "return";
|
|
6292
|
-
readonly info?: FetchResponseInfo
|
|
6293
|
+
readonly info?: FetchResponseInfo;
|
|
6293
6294
|
}
|
|
6294
6295
|
interface Link {
|
|
6295
6296
|
readonly type: "link";
|
|
@@ -6677,6 +6678,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6677
6678
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6678
6679
|
): Promise<WorkflowInstance[]>;
|
|
6679
6680
|
}
|
|
6681
|
+
export type WorkflowDurationLabel =
|
|
6682
|
+
| "second"
|
|
6683
|
+
| "minute"
|
|
6684
|
+
| "hour"
|
|
6685
|
+
| "day"
|
|
6686
|
+
| "week"
|
|
6687
|
+
| "month"
|
|
6688
|
+
| "year";
|
|
6689
|
+
export type WorkflowSleepDuration =
|
|
6690
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6691
|
+
| number;
|
|
6692
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6680
6693
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6681
6694
|
/**
|
|
6682
6695
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6686,6 +6699,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6686
6699
|
* The event payload the Workflow instance is triggered with
|
|
6687
6700
|
*/
|
|
6688
6701
|
params?: PARAMS;
|
|
6702
|
+
/**
|
|
6703
|
+
* The retention policy for Workflow instance.
|
|
6704
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6705
|
+
*/
|
|
6706
|
+
retention?: {
|
|
6707
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6708
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6709
|
+
};
|
|
6689
6710
|
}
|
|
6690
6711
|
export type InstanceStatus = {
|
|
6691
6712
|
status:
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -6209,6 +6209,7 @@ declare module "cloudflare:workers" {
|
|
|
6209
6209
|
| number;
|
|
6210
6210
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6211
6211
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6212
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6212
6213
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6213
6214
|
export type WorkflowStepConfig = {
|
|
6214
6215
|
retries?: {
|
|
@@ -6373,6 +6374,7 @@ declare namespace TailStream {
|
|
|
6373
6374
|
readonly type: "onset";
|
|
6374
6375
|
readonly dispatchNamespace?: string;
|
|
6375
6376
|
readonly entrypoint?: string;
|
|
6377
|
+
readonly executionModel: string;
|
|
6376
6378
|
readonly scriptName?: string;
|
|
6377
6379
|
readonly scriptTags?: string[];
|
|
6378
6380
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6425,7 +6427,7 @@ declare namespace TailStream {
|
|
|
6425
6427
|
}
|
|
6426
6428
|
interface Return {
|
|
6427
6429
|
readonly type: "return";
|
|
6428
|
-
readonly info?: FetchResponseInfo
|
|
6430
|
+
readonly info?: FetchResponseInfo;
|
|
6429
6431
|
}
|
|
6430
6432
|
interface Link {
|
|
6431
6433
|
readonly type: "link";
|
|
@@ -6822,6 +6824,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6822
6824
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6823
6825
|
): Promise<WorkflowInstance[]>;
|
|
6824
6826
|
}
|
|
6827
|
+
type WorkflowDurationLabel =
|
|
6828
|
+
| "second"
|
|
6829
|
+
| "minute"
|
|
6830
|
+
| "hour"
|
|
6831
|
+
| "day"
|
|
6832
|
+
| "week"
|
|
6833
|
+
| "month"
|
|
6834
|
+
| "year";
|
|
6835
|
+
type WorkflowSleepDuration =
|
|
6836
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6837
|
+
| number;
|
|
6838
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6825
6839
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6826
6840
|
/**
|
|
6827
6841
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6831,6 +6845,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6831
6845
|
* The event payload the Workflow instance is triggered with
|
|
6832
6846
|
*/
|
|
6833
6847
|
params?: PARAMS;
|
|
6848
|
+
/**
|
|
6849
|
+
* The retention policy for Workflow instance.
|
|
6850
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6851
|
+
*/
|
|
6852
|
+
retention?: {
|
|
6853
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6854
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6855
|
+
};
|
|
6834
6856
|
}
|
|
6835
6857
|
type InstanceStatus = {
|
|
6836
6858
|
status:
|
package/2023-07-01/index.ts
CHANGED
|
@@ -6237,6 +6237,7 @@ export declare namespace TailStream {
|
|
|
6237
6237
|
readonly type: "onset";
|
|
6238
6238
|
readonly dispatchNamespace?: string;
|
|
6239
6239
|
readonly entrypoint?: string;
|
|
6240
|
+
readonly executionModel: string;
|
|
6240
6241
|
readonly scriptName?: string;
|
|
6241
6242
|
readonly scriptTags?: string[];
|
|
6242
6243
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6289,7 +6290,7 @@ export declare namespace TailStream {
|
|
|
6289
6290
|
}
|
|
6290
6291
|
interface Return {
|
|
6291
6292
|
readonly type: "return";
|
|
6292
|
-
readonly info?: FetchResponseInfo
|
|
6293
|
+
readonly info?: FetchResponseInfo;
|
|
6293
6294
|
}
|
|
6294
6295
|
interface Link {
|
|
6295
6296
|
readonly type: "link";
|
|
@@ -6677,6 +6678,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6677
6678
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6678
6679
|
): Promise<WorkflowInstance[]>;
|
|
6679
6680
|
}
|
|
6681
|
+
export type WorkflowDurationLabel =
|
|
6682
|
+
| "second"
|
|
6683
|
+
| "minute"
|
|
6684
|
+
| "hour"
|
|
6685
|
+
| "day"
|
|
6686
|
+
| "week"
|
|
6687
|
+
| "month"
|
|
6688
|
+
| "year";
|
|
6689
|
+
export type WorkflowSleepDuration =
|
|
6690
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6691
|
+
| number;
|
|
6692
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6680
6693
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6681
6694
|
/**
|
|
6682
6695
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6686,6 +6699,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6686
6699
|
* The event payload the Workflow instance is triggered with
|
|
6687
6700
|
*/
|
|
6688
6701
|
params?: PARAMS;
|
|
6702
|
+
/**
|
|
6703
|
+
* The retention policy for Workflow instance.
|
|
6704
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6705
|
+
*/
|
|
6706
|
+
retention?: {
|
|
6707
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6708
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6709
|
+
};
|
|
6689
6710
|
}
|
|
6690
6711
|
export type InstanceStatus = {
|
|
6691
6712
|
status:
|
package/experimental/index.d.ts
CHANGED
|
@@ -6450,6 +6450,7 @@ declare module "cloudflare:workers" {
|
|
|
6450
6450
|
| number;
|
|
6451
6451
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6452
6452
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6453
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6453
6454
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6454
6455
|
export type WorkflowStepConfig = {
|
|
6455
6456
|
retries?: {
|
|
@@ -6614,6 +6615,7 @@ declare namespace TailStream {
|
|
|
6614
6615
|
readonly type: "onset";
|
|
6615
6616
|
readonly dispatchNamespace?: string;
|
|
6616
6617
|
readonly entrypoint?: string;
|
|
6618
|
+
readonly executionModel: string;
|
|
6617
6619
|
readonly scriptName?: string;
|
|
6618
6620
|
readonly scriptTags?: string[];
|
|
6619
6621
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6666,7 +6668,7 @@ declare namespace TailStream {
|
|
|
6666
6668
|
}
|
|
6667
6669
|
interface Return {
|
|
6668
6670
|
readonly type: "return";
|
|
6669
|
-
readonly info?: FetchResponseInfo
|
|
6671
|
+
readonly info?: FetchResponseInfo;
|
|
6670
6672
|
}
|
|
6671
6673
|
interface Link {
|
|
6672
6674
|
readonly type: "link";
|
|
@@ -7063,6 +7065,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
7063
7065
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
7064
7066
|
): Promise<WorkflowInstance[]>;
|
|
7065
7067
|
}
|
|
7068
|
+
type WorkflowDurationLabel =
|
|
7069
|
+
| "second"
|
|
7070
|
+
| "minute"
|
|
7071
|
+
| "hour"
|
|
7072
|
+
| "day"
|
|
7073
|
+
| "week"
|
|
7074
|
+
| "month"
|
|
7075
|
+
| "year";
|
|
7076
|
+
type WorkflowSleepDuration =
|
|
7077
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
7078
|
+
| number;
|
|
7079
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
7066
7080
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
7067
7081
|
/**
|
|
7068
7082
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -7072,6 +7086,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
7072
7086
|
* The event payload the Workflow instance is triggered with
|
|
7073
7087
|
*/
|
|
7074
7088
|
params?: PARAMS;
|
|
7089
|
+
/**
|
|
7090
|
+
* The retention policy for Workflow instance.
|
|
7091
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
7092
|
+
*/
|
|
7093
|
+
retention?: {
|
|
7094
|
+
successRetention?: WorkflowRetentionDuration;
|
|
7095
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
7096
|
+
};
|
|
7075
7097
|
}
|
|
7076
7098
|
type InstanceStatus = {
|
|
7077
7099
|
status:
|
package/experimental/index.ts
CHANGED
|
@@ -6478,6 +6478,7 @@ export declare namespace TailStream {
|
|
|
6478
6478
|
readonly type: "onset";
|
|
6479
6479
|
readonly dispatchNamespace?: string;
|
|
6480
6480
|
readonly entrypoint?: string;
|
|
6481
|
+
readonly executionModel: string;
|
|
6481
6482
|
readonly scriptName?: string;
|
|
6482
6483
|
readonly scriptTags?: string[];
|
|
6483
6484
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6530,7 +6531,7 @@ export declare namespace TailStream {
|
|
|
6530
6531
|
}
|
|
6531
6532
|
interface Return {
|
|
6532
6533
|
readonly type: "return";
|
|
6533
|
-
readonly info?: FetchResponseInfo
|
|
6534
|
+
readonly info?: FetchResponseInfo;
|
|
6534
6535
|
}
|
|
6535
6536
|
interface Link {
|
|
6536
6537
|
readonly type: "link";
|
|
@@ -6918,6 +6919,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6918
6919
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6919
6920
|
): Promise<WorkflowInstance[]>;
|
|
6920
6921
|
}
|
|
6922
|
+
export type WorkflowDurationLabel =
|
|
6923
|
+
| "second"
|
|
6924
|
+
| "minute"
|
|
6925
|
+
| "hour"
|
|
6926
|
+
| "day"
|
|
6927
|
+
| "week"
|
|
6928
|
+
| "month"
|
|
6929
|
+
| "year";
|
|
6930
|
+
export type WorkflowSleepDuration =
|
|
6931
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6932
|
+
| number;
|
|
6933
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6921
6934
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6922
6935
|
/**
|
|
6923
6936
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6927,6 +6940,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6927
6940
|
* The event payload the Workflow instance is triggered with
|
|
6928
6941
|
*/
|
|
6929
6942
|
params?: PARAMS;
|
|
6943
|
+
/**
|
|
6944
|
+
* The retention policy for Workflow instance.
|
|
6945
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6946
|
+
*/
|
|
6947
|
+
retention?: {
|
|
6948
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6949
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6950
|
+
};
|
|
6930
6951
|
}
|
|
6931
6952
|
export type InstanceStatus = {
|
|
6932
6953
|
status:
|
package/index.d.ts
CHANGED
|
@@ -6153,6 +6153,7 @@ declare module "cloudflare:workers" {
|
|
|
6153
6153
|
| number;
|
|
6154
6154
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6155
6155
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6156
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6156
6157
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6157
6158
|
export type WorkflowStepConfig = {
|
|
6158
6159
|
retries?: {
|
|
@@ -6317,6 +6318,7 @@ declare namespace TailStream {
|
|
|
6317
6318
|
readonly type: "onset";
|
|
6318
6319
|
readonly dispatchNamespace?: string;
|
|
6319
6320
|
readonly entrypoint?: string;
|
|
6321
|
+
readonly executionModel: string;
|
|
6320
6322
|
readonly scriptName?: string;
|
|
6321
6323
|
readonly scriptTags?: string[];
|
|
6322
6324
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6369,7 +6371,7 @@ declare namespace TailStream {
|
|
|
6369
6371
|
}
|
|
6370
6372
|
interface Return {
|
|
6371
6373
|
readonly type: "return";
|
|
6372
|
-
readonly info?: FetchResponseInfo
|
|
6374
|
+
readonly info?: FetchResponseInfo;
|
|
6373
6375
|
}
|
|
6374
6376
|
interface Link {
|
|
6375
6377
|
readonly type: "link";
|
|
@@ -6766,6 +6768,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6766
6768
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6767
6769
|
): Promise<WorkflowInstance[]>;
|
|
6768
6770
|
}
|
|
6771
|
+
type WorkflowDurationLabel =
|
|
6772
|
+
| "second"
|
|
6773
|
+
| "minute"
|
|
6774
|
+
| "hour"
|
|
6775
|
+
| "day"
|
|
6776
|
+
| "week"
|
|
6777
|
+
| "month"
|
|
6778
|
+
| "year";
|
|
6779
|
+
type WorkflowSleepDuration =
|
|
6780
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6781
|
+
| number;
|
|
6782
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6769
6783
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6770
6784
|
/**
|
|
6771
6785
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6775,6 +6789,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6775
6789
|
* The event payload the Workflow instance is triggered with
|
|
6776
6790
|
*/
|
|
6777
6791
|
params?: PARAMS;
|
|
6792
|
+
/**
|
|
6793
|
+
* The retention policy for Workflow instance.
|
|
6794
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6795
|
+
*/
|
|
6796
|
+
retention?: {
|
|
6797
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6798
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6799
|
+
};
|
|
6778
6800
|
}
|
|
6779
6801
|
type InstanceStatus = {
|
|
6780
6802
|
status:
|
package/index.ts
CHANGED
|
@@ -6181,6 +6181,7 @@ export declare namespace TailStream {
|
|
|
6181
6181
|
readonly type: "onset";
|
|
6182
6182
|
readonly dispatchNamespace?: string;
|
|
6183
6183
|
readonly entrypoint?: string;
|
|
6184
|
+
readonly executionModel: string;
|
|
6184
6185
|
readonly scriptName?: string;
|
|
6185
6186
|
readonly scriptTags?: string[];
|
|
6186
6187
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6233,7 +6234,7 @@ export declare namespace TailStream {
|
|
|
6233
6234
|
}
|
|
6234
6235
|
interface Return {
|
|
6235
6236
|
readonly type: "return";
|
|
6236
|
-
readonly info?: FetchResponseInfo
|
|
6237
|
+
readonly info?: FetchResponseInfo;
|
|
6237
6238
|
}
|
|
6238
6239
|
interface Link {
|
|
6239
6240
|
readonly type: "link";
|
|
@@ -6621,6 +6622,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6621
6622
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6622
6623
|
): Promise<WorkflowInstance[]>;
|
|
6623
6624
|
}
|
|
6625
|
+
export type WorkflowDurationLabel =
|
|
6626
|
+
| "second"
|
|
6627
|
+
| "minute"
|
|
6628
|
+
| "hour"
|
|
6629
|
+
| "day"
|
|
6630
|
+
| "week"
|
|
6631
|
+
| "month"
|
|
6632
|
+
| "year";
|
|
6633
|
+
export type WorkflowSleepDuration =
|
|
6634
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6635
|
+
| number;
|
|
6636
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6624
6637
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6625
6638
|
/**
|
|
6626
6639
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6630,6 +6643,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6630
6643
|
* The event payload the Workflow instance is triggered with
|
|
6631
6644
|
*/
|
|
6632
6645
|
params?: PARAMS;
|
|
6646
|
+
/**
|
|
6647
|
+
* The retention policy for Workflow instance.
|
|
6648
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6649
|
+
*/
|
|
6650
|
+
retention?: {
|
|
6651
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6652
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6653
|
+
};
|
|
6633
6654
|
}
|
|
6634
6655
|
export type InstanceStatus = {
|
|
6635
6656
|
status:
|
package/latest/index.d.ts
CHANGED
|
@@ -6216,6 +6216,7 @@ declare module "cloudflare:workers" {
|
|
|
6216
6216
|
| number;
|
|
6217
6217
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6218
6218
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6219
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6219
6220
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6220
6221
|
export type WorkflowStepConfig = {
|
|
6221
6222
|
retries?: {
|
|
@@ -6380,6 +6381,7 @@ declare namespace TailStream {
|
|
|
6380
6381
|
readonly type: "onset";
|
|
6381
6382
|
readonly dispatchNamespace?: string;
|
|
6382
6383
|
readonly entrypoint?: string;
|
|
6384
|
+
readonly executionModel: string;
|
|
6383
6385
|
readonly scriptName?: string;
|
|
6384
6386
|
readonly scriptTags?: string[];
|
|
6385
6387
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6432,7 +6434,7 @@ declare namespace TailStream {
|
|
|
6432
6434
|
}
|
|
6433
6435
|
interface Return {
|
|
6434
6436
|
readonly type: "return";
|
|
6435
|
-
readonly info?: FetchResponseInfo
|
|
6437
|
+
readonly info?: FetchResponseInfo;
|
|
6436
6438
|
}
|
|
6437
6439
|
interface Link {
|
|
6438
6440
|
readonly type: "link";
|
|
@@ -6829,6 +6831,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6829
6831
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6830
6832
|
): Promise<WorkflowInstance[]>;
|
|
6831
6833
|
}
|
|
6834
|
+
type WorkflowDurationLabel =
|
|
6835
|
+
| "second"
|
|
6836
|
+
| "minute"
|
|
6837
|
+
| "hour"
|
|
6838
|
+
| "day"
|
|
6839
|
+
| "week"
|
|
6840
|
+
| "month"
|
|
6841
|
+
| "year";
|
|
6842
|
+
type WorkflowSleepDuration =
|
|
6843
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6844
|
+
| number;
|
|
6845
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6832
6846
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6833
6847
|
/**
|
|
6834
6848
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6838,6 +6852,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6838
6852
|
* The event payload the Workflow instance is triggered with
|
|
6839
6853
|
*/
|
|
6840
6854
|
params?: PARAMS;
|
|
6855
|
+
/**
|
|
6856
|
+
* The retention policy for Workflow instance.
|
|
6857
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6858
|
+
*/
|
|
6859
|
+
retention?: {
|
|
6860
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6861
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6862
|
+
};
|
|
6841
6863
|
}
|
|
6842
6864
|
type InstanceStatus = {
|
|
6843
6865
|
status:
|
package/latest/index.ts
CHANGED
|
@@ -6244,6 +6244,7 @@ export declare namespace TailStream {
|
|
|
6244
6244
|
readonly type: "onset";
|
|
6245
6245
|
readonly dispatchNamespace?: string;
|
|
6246
6246
|
readonly entrypoint?: string;
|
|
6247
|
+
readonly executionModel: string;
|
|
6247
6248
|
readonly scriptName?: string;
|
|
6248
6249
|
readonly scriptTags?: string[];
|
|
6249
6250
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6296,7 +6297,7 @@ export declare namespace TailStream {
|
|
|
6296
6297
|
}
|
|
6297
6298
|
interface Return {
|
|
6298
6299
|
readonly type: "return";
|
|
6299
|
-
readonly info?: FetchResponseInfo
|
|
6300
|
+
readonly info?: FetchResponseInfo;
|
|
6300
6301
|
}
|
|
6301
6302
|
interface Link {
|
|
6302
6303
|
readonly type: "link";
|
|
@@ -6684,6 +6685,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6684
6685
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6685
6686
|
): Promise<WorkflowInstance[]>;
|
|
6686
6687
|
}
|
|
6688
|
+
export type WorkflowDurationLabel =
|
|
6689
|
+
| "second"
|
|
6690
|
+
| "minute"
|
|
6691
|
+
| "hour"
|
|
6692
|
+
| "day"
|
|
6693
|
+
| "week"
|
|
6694
|
+
| "month"
|
|
6695
|
+
| "year";
|
|
6696
|
+
export type WorkflowSleepDuration =
|
|
6697
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6698
|
+
| number;
|
|
6699
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6687
6700
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6688
6701
|
/**
|
|
6689
6702
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6693,6 +6706,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6693
6706
|
* The event payload the Workflow instance is triggered with
|
|
6694
6707
|
*/
|
|
6695
6708
|
params?: PARAMS;
|
|
6709
|
+
/**
|
|
6710
|
+
* The retention policy for Workflow instance.
|
|
6711
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6712
|
+
*/
|
|
6713
|
+
retention?: {
|
|
6714
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6715
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6716
|
+
};
|
|
6696
6717
|
}
|
|
6697
6718
|
export type InstanceStatus = {
|
|
6698
6719
|
status:
|
package/oldest/index.d.ts
CHANGED
|
@@ -6153,6 +6153,7 @@ declare module "cloudflare:workers" {
|
|
|
6153
6153
|
| number;
|
|
6154
6154
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
6155
6155
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
6156
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6156
6157
|
export type WorkflowBackoff = "constant" | "linear" | "exponential";
|
|
6157
6158
|
export type WorkflowStepConfig = {
|
|
6158
6159
|
retries?: {
|
|
@@ -6317,6 +6318,7 @@ declare namespace TailStream {
|
|
|
6317
6318
|
readonly type: "onset";
|
|
6318
6319
|
readonly dispatchNamespace?: string;
|
|
6319
6320
|
readonly entrypoint?: string;
|
|
6321
|
+
readonly executionModel: string;
|
|
6320
6322
|
readonly scriptName?: string;
|
|
6321
6323
|
readonly scriptTags?: string[];
|
|
6322
6324
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6369,7 +6371,7 @@ declare namespace TailStream {
|
|
|
6369
6371
|
}
|
|
6370
6372
|
interface Return {
|
|
6371
6373
|
readonly type: "return";
|
|
6372
|
-
readonly info?: FetchResponseInfo
|
|
6374
|
+
readonly info?: FetchResponseInfo;
|
|
6373
6375
|
}
|
|
6374
6376
|
interface Link {
|
|
6375
6377
|
readonly type: "link";
|
|
@@ -6766,6 +6768,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6766
6768
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6767
6769
|
): Promise<WorkflowInstance[]>;
|
|
6768
6770
|
}
|
|
6771
|
+
type WorkflowDurationLabel =
|
|
6772
|
+
| "second"
|
|
6773
|
+
| "minute"
|
|
6774
|
+
| "hour"
|
|
6775
|
+
| "day"
|
|
6776
|
+
| "week"
|
|
6777
|
+
| "month"
|
|
6778
|
+
| "year";
|
|
6779
|
+
type WorkflowSleepDuration =
|
|
6780
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6781
|
+
| number;
|
|
6782
|
+
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6769
6783
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6770
6784
|
/**
|
|
6771
6785
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6775,6 +6789,14 @@ interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6775
6789
|
* The event payload the Workflow instance is triggered with
|
|
6776
6790
|
*/
|
|
6777
6791
|
params?: PARAMS;
|
|
6792
|
+
/**
|
|
6793
|
+
* The retention policy for Workflow instance.
|
|
6794
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6795
|
+
*/
|
|
6796
|
+
retention?: {
|
|
6797
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6798
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6799
|
+
};
|
|
6778
6800
|
}
|
|
6779
6801
|
type InstanceStatus = {
|
|
6780
6802
|
status:
|
package/oldest/index.ts
CHANGED
|
@@ -6181,6 +6181,7 @@ export declare namespace TailStream {
|
|
|
6181
6181
|
readonly type: "onset";
|
|
6182
6182
|
readonly dispatchNamespace?: string;
|
|
6183
6183
|
readonly entrypoint?: string;
|
|
6184
|
+
readonly executionModel: string;
|
|
6184
6185
|
readonly scriptName?: string;
|
|
6185
6186
|
readonly scriptTags?: string[];
|
|
6186
6187
|
readonly scriptVersion?: ScriptVersion;
|
|
@@ -6233,7 +6234,7 @@ export declare namespace TailStream {
|
|
|
6233
6234
|
}
|
|
6234
6235
|
interface Return {
|
|
6235
6236
|
readonly type: "return";
|
|
6236
|
-
readonly info?: FetchResponseInfo
|
|
6237
|
+
readonly info?: FetchResponseInfo;
|
|
6237
6238
|
}
|
|
6238
6239
|
interface Link {
|
|
6239
6240
|
readonly type: "link";
|
|
@@ -6621,6 +6622,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
6621
6622
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
6622
6623
|
): Promise<WorkflowInstance[]>;
|
|
6623
6624
|
}
|
|
6625
|
+
export type WorkflowDurationLabel =
|
|
6626
|
+
| "second"
|
|
6627
|
+
| "minute"
|
|
6628
|
+
| "hour"
|
|
6629
|
+
| "day"
|
|
6630
|
+
| "week"
|
|
6631
|
+
| "month"
|
|
6632
|
+
| "year";
|
|
6633
|
+
export type WorkflowSleepDuration =
|
|
6634
|
+
| `${number} ${WorkflowDurationLabel}${"s" | ""}`
|
|
6635
|
+
| number;
|
|
6636
|
+
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
6624
6637
|
export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
6625
6638
|
/**
|
|
6626
6639
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
@@ -6630,6 +6643,14 @@ export interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
|
6630
6643
|
* The event payload the Workflow instance is triggered with
|
|
6631
6644
|
*/
|
|
6632
6645
|
params?: PARAMS;
|
|
6646
|
+
/**
|
|
6647
|
+
* The retention policy for Workflow instance.
|
|
6648
|
+
* Defaults to the maximum retention period available for the owner's account.
|
|
6649
|
+
*/
|
|
6650
|
+
retention?: {
|
|
6651
|
+
successRetention?: WorkflowRetentionDuration;
|
|
6652
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
6653
|
+
};
|
|
6633
6654
|
}
|
|
6634
6655
|
export type InstanceStatus = {
|
|
6635
6656
|
status:
|
package/package.json
CHANGED