@depup/cloudflare__workers-types 5.20260930.2-depup.0 → 5.20261002.1-depup.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/README.md +2 -2
- package/changes.json +1 -1
- package/experimental/index.d.ts +38 -3
- package/experimental/index.ts +38 -3
- package/index.d.ts +38 -3
- package/index.ts +38 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/cloudflare__workers-types
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@cloudflare/workers-types](https://www.npmjs.com/package/@cloudflare/workers-types) @ 5.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [@cloudflare/workers-types](https://www.npmjs.com/package/@cloudflare/workers-types) @ 5.20261002.1 |
|
|
17
|
+
| Processed | 2026-10-02 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED
package/experimental/index.d.ts
CHANGED
|
@@ -18499,10 +18499,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18499
18499
|
options?: WorkflowInstanceCreateOptions<PARAMS>,
|
|
18500
18500
|
): Promise<WorkflowInstance>;
|
|
18501
18501
|
/**
|
|
18502
|
-
* Create a batch of instances and return
|
|
18502
|
+
* Create a batch of instances and return handles for the created instances and any per-instance errors.
|
|
18503
18503
|
* `createBatch` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.
|
|
18504
|
-
* @param
|
|
18505
|
-
* @returns A promise that resolves with
|
|
18504
|
+
* @param options Options for creating instances by count or from a list of instance options
|
|
18505
|
+
* @returns A promise that resolves with the created instance handles and any per-instance errors.
|
|
18506
|
+
*/
|
|
18507
|
+
public createBatch(
|
|
18508
|
+
options: WorkflowBatchCreateOptions<PARAMS>,
|
|
18509
|
+
): Promise<WorkflowBatchCreateResult>;
|
|
18510
|
+
/**
|
|
18511
|
+
* Create a batch of instances and return handles for the ones that were created.
|
|
18512
|
+
* Instances that could not be created, for example because their ID already exists, are omitted from the result without an error.
|
|
18513
|
+
* @deprecated Use the object form of `createBatch` instead of the array form.
|
|
18506
18514
|
*/
|
|
18507
18515
|
public createBatch(
|
|
18508
18516
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
@@ -18516,6 +18524,33 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18516
18524
|
*/
|
|
18517
18525
|
public deleteBatch(instanceIds: string[]): Promise<WorkflowBatchDeleteResult>;
|
|
18518
18526
|
}
|
|
18527
|
+
type WorkflowBatchCreateOptions<PARAMS = unknown> =
|
|
18528
|
+
| {
|
|
18529
|
+
count: number;
|
|
18530
|
+
params?: PARAMS;
|
|
18531
|
+
retention?: {
|
|
18532
|
+
successRetention?: WorkflowRetentionDuration;
|
|
18533
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
18534
|
+
};
|
|
18535
|
+
locationHint?: WorkflowInstanceLocationHint;
|
|
18536
|
+
instances?: never;
|
|
18537
|
+
}
|
|
18538
|
+
| {
|
|
18539
|
+
instances: WorkflowInstanceCreateOptions<PARAMS>[];
|
|
18540
|
+
count?: never;
|
|
18541
|
+
params?: never;
|
|
18542
|
+
retention?: never;
|
|
18543
|
+
locationHint?: never;
|
|
18544
|
+
};
|
|
18545
|
+
type WorkflowBatchCreateResult = {
|
|
18546
|
+
created: WorkflowInstance[];
|
|
18547
|
+
errors: {
|
|
18548
|
+
index: number;
|
|
18549
|
+
id?: string;
|
|
18550
|
+
code: number;
|
|
18551
|
+
message: string;
|
|
18552
|
+
}[];
|
|
18553
|
+
};
|
|
18519
18554
|
type WorkflowBatchDeleteResult = {
|
|
18520
18555
|
deleted: {
|
|
18521
18556
|
id: string;
|
package/experimental/index.ts
CHANGED
|
@@ -18399,10 +18399,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18399
18399
|
options?: WorkflowInstanceCreateOptions<PARAMS>,
|
|
18400
18400
|
): Promise<WorkflowInstance>;
|
|
18401
18401
|
/**
|
|
18402
|
-
* Create a batch of instances and return
|
|
18402
|
+
* Create a batch of instances and return handles for the created instances and any per-instance errors.
|
|
18403
18403
|
* `createBatch` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.
|
|
18404
|
-
* @param
|
|
18405
|
-
* @returns A promise that resolves with
|
|
18404
|
+
* @param options Options for creating instances by count or from a list of instance options
|
|
18405
|
+
* @returns A promise that resolves with the created instance handles and any per-instance errors.
|
|
18406
|
+
*/
|
|
18407
|
+
public createBatch(
|
|
18408
|
+
options: WorkflowBatchCreateOptions<PARAMS>,
|
|
18409
|
+
): Promise<WorkflowBatchCreateResult>;
|
|
18410
|
+
/**
|
|
18411
|
+
* Create a batch of instances and return handles for the ones that were created.
|
|
18412
|
+
* Instances that could not be created, for example because their ID already exists, are omitted from the result without an error.
|
|
18413
|
+
* @deprecated Use the object form of `createBatch` instead of the array form.
|
|
18406
18414
|
*/
|
|
18407
18415
|
public createBatch(
|
|
18408
18416
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
@@ -18416,6 +18424,33 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18416
18424
|
*/
|
|
18417
18425
|
public deleteBatch(instanceIds: string[]): Promise<WorkflowBatchDeleteResult>;
|
|
18418
18426
|
}
|
|
18427
|
+
export type WorkflowBatchCreateOptions<PARAMS = unknown> =
|
|
18428
|
+
| {
|
|
18429
|
+
count: number;
|
|
18430
|
+
params?: PARAMS;
|
|
18431
|
+
retention?: {
|
|
18432
|
+
successRetention?: WorkflowRetentionDuration;
|
|
18433
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
18434
|
+
};
|
|
18435
|
+
locationHint?: WorkflowInstanceLocationHint;
|
|
18436
|
+
instances?: never;
|
|
18437
|
+
}
|
|
18438
|
+
| {
|
|
18439
|
+
instances: WorkflowInstanceCreateOptions<PARAMS>[];
|
|
18440
|
+
count?: never;
|
|
18441
|
+
params?: never;
|
|
18442
|
+
retention?: never;
|
|
18443
|
+
locationHint?: never;
|
|
18444
|
+
};
|
|
18445
|
+
export type WorkflowBatchCreateResult = {
|
|
18446
|
+
created: WorkflowInstance[];
|
|
18447
|
+
errors: {
|
|
18448
|
+
index: number;
|
|
18449
|
+
id?: string;
|
|
18450
|
+
code: number;
|
|
18451
|
+
message: string;
|
|
18452
|
+
}[];
|
|
18453
|
+
};
|
|
18419
18454
|
export type WorkflowBatchDeleteResult = {
|
|
18420
18455
|
deleted: {
|
|
18421
18456
|
id: string;
|
package/index.d.ts
CHANGED
|
@@ -18159,10 +18159,18 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18159
18159
|
options?: WorkflowInstanceCreateOptions<PARAMS>,
|
|
18160
18160
|
): Promise<WorkflowInstance>;
|
|
18161
18161
|
/**
|
|
18162
|
-
* Create a batch of instances and return
|
|
18162
|
+
* Create a batch of instances and return handles for the created instances and any per-instance errors.
|
|
18163
18163
|
* `createBatch` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.
|
|
18164
|
-
* @param
|
|
18165
|
-
* @returns A promise that resolves with
|
|
18164
|
+
* @param options Options for creating instances by count or from a list of instance options
|
|
18165
|
+
* @returns A promise that resolves with the created instance handles and any per-instance errors.
|
|
18166
|
+
*/
|
|
18167
|
+
public createBatch(
|
|
18168
|
+
options: WorkflowBatchCreateOptions<PARAMS>,
|
|
18169
|
+
): Promise<WorkflowBatchCreateResult>;
|
|
18170
|
+
/**
|
|
18171
|
+
* Create a batch of instances and return handles for the ones that were created.
|
|
18172
|
+
* Instances that could not be created, for example because their ID already exists, are omitted from the result without an error.
|
|
18173
|
+
* @deprecated Use the object form of `createBatch` instead of the array form.
|
|
18166
18174
|
*/
|
|
18167
18175
|
public createBatch(
|
|
18168
18176
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
@@ -18176,6 +18184,33 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18176
18184
|
*/
|
|
18177
18185
|
public deleteBatch(instanceIds: string[]): Promise<WorkflowBatchDeleteResult>;
|
|
18178
18186
|
}
|
|
18187
|
+
type WorkflowBatchCreateOptions<PARAMS = unknown> =
|
|
18188
|
+
| {
|
|
18189
|
+
count: number;
|
|
18190
|
+
params?: PARAMS;
|
|
18191
|
+
retention?: {
|
|
18192
|
+
successRetention?: WorkflowRetentionDuration;
|
|
18193
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
18194
|
+
};
|
|
18195
|
+
locationHint?: WorkflowInstanceLocationHint;
|
|
18196
|
+
instances?: never;
|
|
18197
|
+
}
|
|
18198
|
+
| {
|
|
18199
|
+
instances: WorkflowInstanceCreateOptions<PARAMS>[];
|
|
18200
|
+
count?: never;
|
|
18201
|
+
params?: never;
|
|
18202
|
+
retention?: never;
|
|
18203
|
+
locationHint?: never;
|
|
18204
|
+
};
|
|
18205
|
+
type WorkflowBatchCreateResult = {
|
|
18206
|
+
created: WorkflowInstance[];
|
|
18207
|
+
errors: {
|
|
18208
|
+
index: number;
|
|
18209
|
+
id?: string;
|
|
18210
|
+
code: number;
|
|
18211
|
+
message: string;
|
|
18212
|
+
}[];
|
|
18213
|
+
};
|
|
18179
18214
|
type WorkflowBatchDeleteResult = {
|
|
18180
18215
|
deleted: {
|
|
18181
18216
|
id: string;
|
package/index.ts
CHANGED
|
@@ -18059,10 +18059,18 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18059
18059
|
options?: WorkflowInstanceCreateOptions<PARAMS>,
|
|
18060
18060
|
): Promise<WorkflowInstance>;
|
|
18061
18061
|
/**
|
|
18062
|
-
* Create a batch of instances and return
|
|
18062
|
+
* Create a batch of instances and return handles for the created instances and any per-instance errors.
|
|
18063
18063
|
* `createBatch` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.
|
|
18064
|
-
* @param
|
|
18065
|
-
* @returns A promise that resolves with
|
|
18064
|
+
* @param options Options for creating instances by count or from a list of instance options
|
|
18065
|
+
* @returns A promise that resolves with the created instance handles and any per-instance errors.
|
|
18066
|
+
*/
|
|
18067
|
+
public createBatch(
|
|
18068
|
+
options: WorkflowBatchCreateOptions<PARAMS>,
|
|
18069
|
+
): Promise<WorkflowBatchCreateResult>;
|
|
18070
|
+
/**
|
|
18071
|
+
* Create a batch of instances and return handles for the ones that were created.
|
|
18072
|
+
* Instances that could not be created, for example because their ID already exists, are omitted from the result without an error.
|
|
18073
|
+
* @deprecated Use the object form of `createBatch` instead of the array form.
|
|
18066
18074
|
*/
|
|
18067
18075
|
public createBatch(
|
|
18068
18076
|
batch: WorkflowInstanceCreateOptions<PARAMS>[],
|
|
@@ -18076,6 +18084,33 @@ export declare abstract class Workflow<PARAMS = unknown> {
|
|
|
18076
18084
|
*/
|
|
18077
18085
|
public deleteBatch(instanceIds: string[]): Promise<WorkflowBatchDeleteResult>;
|
|
18078
18086
|
}
|
|
18087
|
+
export type WorkflowBatchCreateOptions<PARAMS = unknown> =
|
|
18088
|
+
| {
|
|
18089
|
+
count: number;
|
|
18090
|
+
params?: PARAMS;
|
|
18091
|
+
retention?: {
|
|
18092
|
+
successRetention?: WorkflowRetentionDuration;
|
|
18093
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
18094
|
+
};
|
|
18095
|
+
locationHint?: WorkflowInstanceLocationHint;
|
|
18096
|
+
instances?: never;
|
|
18097
|
+
}
|
|
18098
|
+
| {
|
|
18099
|
+
instances: WorkflowInstanceCreateOptions<PARAMS>[];
|
|
18100
|
+
count?: never;
|
|
18101
|
+
params?: never;
|
|
18102
|
+
retention?: never;
|
|
18103
|
+
locationHint?: never;
|
|
18104
|
+
};
|
|
18105
|
+
export type WorkflowBatchCreateResult = {
|
|
18106
|
+
created: WorkflowInstance[];
|
|
18107
|
+
errors: {
|
|
18108
|
+
index: number;
|
|
18109
|
+
id?: string;
|
|
18110
|
+
code: number;
|
|
18111
|
+
message: string;
|
|
18112
|
+
}[];
|
|
18113
|
+
};
|
|
18079
18114
|
export type WorkflowBatchDeleteResult = {
|
|
18080
18115
|
deleted: {
|
|
18081
18116
|
id: string;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
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": "5.
|
|
10
|
+
"version": "5.20261002.1-depup.0",
|
|
11
11
|
"keywords": [
|
|
12
12
|
"@cloudflare/workers-types",
|
|
13
13
|
"depup",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"changes": {},
|
|
21
21
|
"depsUpdated": 0,
|
|
22
22
|
"originalPackage": "@cloudflare/workers-types",
|
|
23
|
-
"originalVersion": "5.
|
|
24
|
-
"processedAt": "2026-
|
|
23
|
+
"originalVersion": "5.20261002.1",
|
|
24
|
+
"processedAt": "2026-10-02T08:12:32.279Z",
|
|
25
25
|
"smokeTest": "failed"
|
|
26
26
|
}
|
|
27
27
|
}
|