@convex-dev/workos-authkit 0.1.6 → 0.2.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 +23 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +24 -5
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +604 -6
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +18 -7
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/backfill.d.ts +60 -0
- package/dist/component/backfill.d.ts.map +1 -0
- package/dist/component/backfill.js +171 -0
- package/dist/component/backfill.js.map +1 -0
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +2 -0
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/lib.d.ts +27 -10
- package/dist/component/lib.d.ts.map +1 -1
- package/dist/component/lib.js +93 -80
- package/dist/component/lib.js.map +1 -1
- package/dist/component/schema.d.ts +7 -2
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +3 -0
- package/dist/component/schema.js.map +1 -1
- package/package.json +36 -34
- package/src/client/index.ts +24 -5
- package/src/component/_generated/api.ts +535 -6
- package/src/component/_generated/component.ts +25 -12
- package/src/component/backfill.test.ts +335 -0
- package/src/component/backfill.ts +217 -0
- package/src/component/convex.config.ts +2 -0
- package/src/component/lib.ts +103 -81
- package/src/component/schema.ts +3 -0
- package/src/test.ts +4 -0
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
* To regenerate, run `npx convex dev`.
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
|
+
import type * as backfill from "../backfill.js";
|
|
9
10
|
import type * as lib from "../lib.js";
|
|
10
11
|
import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
|
|
11
12
|
declare const fullApi: ApiFromModules<{
|
|
13
|
+
backfill: typeof backfill;
|
|
12
14
|
lib: typeof lib;
|
|
13
15
|
}>;
|
|
14
16
|
/**
|
|
@@ -31,20 +33,26 @@ export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "publ
|
|
|
31
33
|
export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
|
|
32
34
|
export declare const components: {
|
|
33
35
|
eventWorkpool: {
|
|
36
|
+
config: {
|
|
37
|
+
update: FunctionReference<"mutation", "internal", {
|
|
38
|
+
logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
39
|
+
maxParallelism?: number;
|
|
40
|
+
}, any>;
|
|
41
|
+
};
|
|
34
42
|
lib: {
|
|
35
43
|
cancel: FunctionReference<"mutation", "internal", {
|
|
36
44
|
id: string;
|
|
37
|
-
logLevel
|
|
45
|
+
logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
38
46
|
}, any>;
|
|
39
47
|
cancelAll: FunctionReference<"mutation", "internal", {
|
|
40
48
|
before?: number;
|
|
41
49
|
limit?: number;
|
|
42
|
-
logLevel
|
|
50
|
+
logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
43
51
|
}, any>;
|
|
44
52
|
enqueue: FunctionReference<"mutation", "internal", {
|
|
45
53
|
config: {
|
|
46
|
-
logLevel
|
|
47
|
-
maxParallelism
|
|
54
|
+
logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
55
|
+
maxParallelism?: number;
|
|
48
56
|
};
|
|
49
57
|
fnArgs: any;
|
|
50
58
|
fnHandle: string;
|
|
@@ -63,8 +71,8 @@ export declare const components: {
|
|
|
63
71
|
}, string>;
|
|
64
72
|
enqueueBatch: FunctionReference<"mutation", "internal", {
|
|
65
73
|
config: {
|
|
66
|
-
logLevel
|
|
67
|
-
maxParallelism
|
|
74
|
+
logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
75
|
+
maxParallelism?: number;
|
|
68
76
|
};
|
|
69
77
|
items: Array<{
|
|
70
78
|
fnArgs: any;
|
|
@@ -107,6 +115,596 @@ export declare const components: {
|
|
|
107
115
|
}>>;
|
|
108
116
|
};
|
|
109
117
|
};
|
|
118
|
+
backfillWorkflow: {
|
|
119
|
+
event: {
|
|
120
|
+
create: FunctionReference<"mutation", "internal", {
|
|
121
|
+
name: string;
|
|
122
|
+
workflowId: string;
|
|
123
|
+
}, string>;
|
|
124
|
+
send: FunctionReference<"mutation", "internal", {
|
|
125
|
+
eventId?: string;
|
|
126
|
+
name?: string;
|
|
127
|
+
result: {
|
|
128
|
+
kind: "success";
|
|
129
|
+
returnValue: any;
|
|
130
|
+
} | {
|
|
131
|
+
error: string;
|
|
132
|
+
kind: "failed";
|
|
133
|
+
} | {
|
|
134
|
+
kind: "canceled";
|
|
135
|
+
};
|
|
136
|
+
workflowId?: string;
|
|
137
|
+
workpoolOptions?: {
|
|
138
|
+
defaultRetryBehavior?: {
|
|
139
|
+
base: number;
|
|
140
|
+
initialBackoffMs: number;
|
|
141
|
+
maxAttempts: number;
|
|
142
|
+
};
|
|
143
|
+
logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
144
|
+
maxParallelism?: number;
|
|
145
|
+
retryActionsByDefault?: boolean;
|
|
146
|
+
};
|
|
147
|
+
}, string>;
|
|
148
|
+
};
|
|
149
|
+
journal: {
|
|
150
|
+
load: FunctionReference<"query", "internal", {
|
|
151
|
+
shortCircuit?: boolean;
|
|
152
|
+
workflowId: string;
|
|
153
|
+
}, {
|
|
154
|
+
blocked?: boolean;
|
|
155
|
+
journalEntries: Array<{
|
|
156
|
+
_creationTime: number;
|
|
157
|
+
_id: string;
|
|
158
|
+
step: {
|
|
159
|
+
args: any;
|
|
160
|
+
argsSize: number;
|
|
161
|
+
completedAt?: number;
|
|
162
|
+
functionType: "query" | "mutation" | "action";
|
|
163
|
+
handle: string;
|
|
164
|
+
inProgress: boolean;
|
|
165
|
+
kind?: "function";
|
|
166
|
+
name: string;
|
|
167
|
+
runResult?: {
|
|
168
|
+
kind: "success";
|
|
169
|
+
returnValue: any;
|
|
170
|
+
} | {
|
|
171
|
+
error: string;
|
|
172
|
+
kind: "failed";
|
|
173
|
+
} | {
|
|
174
|
+
kind: "canceled";
|
|
175
|
+
};
|
|
176
|
+
startedAt: number;
|
|
177
|
+
workId?: string;
|
|
178
|
+
} | {
|
|
179
|
+
args: any;
|
|
180
|
+
argsSize: number;
|
|
181
|
+
completedAt?: number;
|
|
182
|
+
handle: string;
|
|
183
|
+
inProgress: boolean;
|
|
184
|
+
kind: "workflow";
|
|
185
|
+
name: string;
|
|
186
|
+
runResult?: {
|
|
187
|
+
kind: "success";
|
|
188
|
+
returnValue: any;
|
|
189
|
+
} | {
|
|
190
|
+
error: string;
|
|
191
|
+
kind: "failed";
|
|
192
|
+
} | {
|
|
193
|
+
kind: "canceled";
|
|
194
|
+
};
|
|
195
|
+
startedAt: number;
|
|
196
|
+
workflowId?: string;
|
|
197
|
+
} | {
|
|
198
|
+
args: {
|
|
199
|
+
eventId?: string;
|
|
200
|
+
};
|
|
201
|
+
argsSize: number;
|
|
202
|
+
completedAt?: number;
|
|
203
|
+
eventId?: string;
|
|
204
|
+
inProgress: boolean;
|
|
205
|
+
kind: "event";
|
|
206
|
+
name: string;
|
|
207
|
+
runResult?: {
|
|
208
|
+
kind: "success";
|
|
209
|
+
returnValue: any;
|
|
210
|
+
} | {
|
|
211
|
+
error: string;
|
|
212
|
+
kind: "failed";
|
|
213
|
+
} | {
|
|
214
|
+
kind: "canceled";
|
|
215
|
+
};
|
|
216
|
+
startedAt: number;
|
|
217
|
+
} | {
|
|
218
|
+
args: any;
|
|
219
|
+
argsSize: number;
|
|
220
|
+
completedAt?: number;
|
|
221
|
+
inProgress: boolean;
|
|
222
|
+
kind: "sleep";
|
|
223
|
+
name: string;
|
|
224
|
+
runResult?: {
|
|
225
|
+
kind: "success";
|
|
226
|
+
returnValue: any;
|
|
227
|
+
} | {
|
|
228
|
+
error: string;
|
|
229
|
+
kind: "failed";
|
|
230
|
+
} | {
|
|
231
|
+
kind: "canceled";
|
|
232
|
+
};
|
|
233
|
+
startedAt: number;
|
|
234
|
+
workId?: string;
|
|
235
|
+
};
|
|
236
|
+
stepNumber: number;
|
|
237
|
+
workflowId: string;
|
|
238
|
+
}>;
|
|
239
|
+
logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
240
|
+
ok: boolean;
|
|
241
|
+
workflow: {
|
|
242
|
+
_creationTime: number;
|
|
243
|
+
_id: string;
|
|
244
|
+
args: any;
|
|
245
|
+
generationNumber: number;
|
|
246
|
+
logLevel?: any;
|
|
247
|
+
name?: string;
|
|
248
|
+
onComplete?: {
|
|
249
|
+
context?: any;
|
|
250
|
+
fnHandle: string;
|
|
251
|
+
};
|
|
252
|
+
runResult?: {
|
|
253
|
+
kind: "success";
|
|
254
|
+
returnValue: any;
|
|
255
|
+
} | {
|
|
256
|
+
error: string;
|
|
257
|
+
kind: "failed";
|
|
258
|
+
} | {
|
|
259
|
+
kind: "canceled";
|
|
260
|
+
};
|
|
261
|
+
startedAt?: any;
|
|
262
|
+
state?: any;
|
|
263
|
+
workflowHandle: string;
|
|
264
|
+
};
|
|
265
|
+
}>;
|
|
266
|
+
startSteps: FunctionReference<"mutation", "internal", {
|
|
267
|
+
generationNumber: number;
|
|
268
|
+
steps: Array<{
|
|
269
|
+
retry?: boolean | {
|
|
270
|
+
base: number;
|
|
271
|
+
initialBackoffMs: number;
|
|
272
|
+
maxAttempts: number;
|
|
273
|
+
};
|
|
274
|
+
schedulerOptions?: {
|
|
275
|
+
runAt?: number;
|
|
276
|
+
} | {
|
|
277
|
+
runAfter?: number;
|
|
278
|
+
};
|
|
279
|
+
step: {
|
|
280
|
+
args: any;
|
|
281
|
+
argsSize: number;
|
|
282
|
+
completedAt?: number;
|
|
283
|
+
functionType: "query" | "mutation" | "action";
|
|
284
|
+
handle: string;
|
|
285
|
+
inProgress: boolean;
|
|
286
|
+
kind?: "function";
|
|
287
|
+
name: string;
|
|
288
|
+
runResult?: {
|
|
289
|
+
kind: "success";
|
|
290
|
+
returnValue: any;
|
|
291
|
+
} | {
|
|
292
|
+
error: string;
|
|
293
|
+
kind: "failed";
|
|
294
|
+
} | {
|
|
295
|
+
kind: "canceled";
|
|
296
|
+
};
|
|
297
|
+
startedAt: number;
|
|
298
|
+
workId?: string;
|
|
299
|
+
} | {
|
|
300
|
+
args: any;
|
|
301
|
+
argsSize: number;
|
|
302
|
+
completedAt?: number;
|
|
303
|
+
handle: string;
|
|
304
|
+
inProgress: boolean;
|
|
305
|
+
kind: "workflow";
|
|
306
|
+
name: string;
|
|
307
|
+
runResult?: {
|
|
308
|
+
kind: "success";
|
|
309
|
+
returnValue: any;
|
|
310
|
+
} | {
|
|
311
|
+
error: string;
|
|
312
|
+
kind: "failed";
|
|
313
|
+
} | {
|
|
314
|
+
kind: "canceled";
|
|
315
|
+
};
|
|
316
|
+
startedAt: number;
|
|
317
|
+
workflowId?: string;
|
|
318
|
+
} | {
|
|
319
|
+
args: {
|
|
320
|
+
eventId?: string;
|
|
321
|
+
};
|
|
322
|
+
argsSize: number;
|
|
323
|
+
completedAt?: number;
|
|
324
|
+
eventId?: string;
|
|
325
|
+
inProgress: boolean;
|
|
326
|
+
kind: "event";
|
|
327
|
+
name: string;
|
|
328
|
+
runResult?: {
|
|
329
|
+
kind: "success";
|
|
330
|
+
returnValue: any;
|
|
331
|
+
} | {
|
|
332
|
+
error: string;
|
|
333
|
+
kind: "failed";
|
|
334
|
+
} | {
|
|
335
|
+
kind: "canceled";
|
|
336
|
+
};
|
|
337
|
+
startedAt: number;
|
|
338
|
+
} | {
|
|
339
|
+
args: any;
|
|
340
|
+
argsSize: number;
|
|
341
|
+
completedAt?: number;
|
|
342
|
+
inProgress: boolean;
|
|
343
|
+
kind: "sleep";
|
|
344
|
+
name: string;
|
|
345
|
+
runResult?: {
|
|
346
|
+
kind: "success";
|
|
347
|
+
returnValue: any;
|
|
348
|
+
} | {
|
|
349
|
+
error: string;
|
|
350
|
+
kind: "failed";
|
|
351
|
+
} | {
|
|
352
|
+
kind: "canceled";
|
|
353
|
+
};
|
|
354
|
+
startedAt: number;
|
|
355
|
+
workId?: string;
|
|
356
|
+
};
|
|
357
|
+
}>;
|
|
358
|
+
workflowId: string;
|
|
359
|
+
workpoolOptions?: {
|
|
360
|
+
defaultRetryBehavior?: {
|
|
361
|
+
base: number;
|
|
362
|
+
initialBackoffMs: number;
|
|
363
|
+
maxAttempts: number;
|
|
364
|
+
};
|
|
365
|
+
logLevel?: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
366
|
+
maxParallelism?: number;
|
|
367
|
+
retryActionsByDefault?: boolean;
|
|
368
|
+
};
|
|
369
|
+
}, Array<{
|
|
370
|
+
_creationTime: number;
|
|
371
|
+
_id: string;
|
|
372
|
+
step: {
|
|
373
|
+
args: any;
|
|
374
|
+
argsSize: number;
|
|
375
|
+
completedAt?: number;
|
|
376
|
+
functionType: "query" | "mutation" | "action";
|
|
377
|
+
handle: string;
|
|
378
|
+
inProgress: boolean;
|
|
379
|
+
kind?: "function";
|
|
380
|
+
name: string;
|
|
381
|
+
runResult?: {
|
|
382
|
+
kind: "success";
|
|
383
|
+
returnValue: any;
|
|
384
|
+
} | {
|
|
385
|
+
error: string;
|
|
386
|
+
kind: "failed";
|
|
387
|
+
} | {
|
|
388
|
+
kind: "canceled";
|
|
389
|
+
};
|
|
390
|
+
startedAt: number;
|
|
391
|
+
workId?: string;
|
|
392
|
+
} | {
|
|
393
|
+
args: any;
|
|
394
|
+
argsSize: number;
|
|
395
|
+
completedAt?: number;
|
|
396
|
+
handle: string;
|
|
397
|
+
inProgress: boolean;
|
|
398
|
+
kind: "workflow";
|
|
399
|
+
name: string;
|
|
400
|
+
runResult?: {
|
|
401
|
+
kind: "success";
|
|
402
|
+
returnValue: any;
|
|
403
|
+
} | {
|
|
404
|
+
error: string;
|
|
405
|
+
kind: "failed";
|
|
406
|
+
} | {
|
|
407
|
+
kind: "canceled";
|
|
408
|
+
};
|
|
409
|
+
startedAt: number;
|
|
410
|
+
workflowId?: string;
|
|
411
|
+
} | {
|
|
412
|
+
args: {
|
|
413
|
+
eventId?: string;
|
|
414
|
+
};
|
|
415
|
+
argsSize: number;
|
|
416
|
+
completedAt?: number;
|
|
417
|
+
eventId?: string;
|
|
418
|
+
inProgress: boolean;
|
|
419
|
+
kind: "event";
|
|
420
|
+
name: string;
|
|
421
|
+
runResult?: {
|
|
422
|
+
kind: "success";
|
|
423
|
+
returnValue: any;
|
|
424
|
+
} | {
|
|
425
|
+
error: string;
|
|
426
|
+
kind: "failed";
|
|
427
|
+
} | {
|
|
428
|
+
kind: "canceled";
|
|
429
|
+
};
|
|
430
|
+
startedAt: number;
|
|
431
|
+
} | {
|
|
432
|
+
args: any;
|
|
433
|
+
argsSize: number;
|
|
434
|
+
completedAt?: number;
|
|
435
|
+
inProgress: boolean;
|
|
436
|
+
kind: "sleep";
|
|
437
|
+
name: string;
|
|
438
|
+
runResult?: {
|
|
439
|
+
kind: "success";
|
|
440
|
+
returnValue: any;
|
|
441
|
+
} | {
|
|
442
|
+
error: string;
|
|
443
|
+
kind: "failed";
|
|
444
|
+
} | {
|
|
445
|
+
kind: "canceled";
|
|
446
|
+
};
|
|
447
|
+
startedAt: number;
|
|
448
|
+
workId?: string;
|
|
449
|
+
};
|
|
450
|
+
stepNumber: number;
|
|
451
|
+
workflowId: string;
|
|
452
|
+
}>>;
|
|
453
|
+
};
|
|
454
|
+
workflow: {
|
|
455
|
+
cancel: FunctionReference<"mutation", "internal", {
|
|
456
|
+
workflowId: string;
|
|
457
|
+
}, null>;
|
|
458
|
+
cleanup: FunctionReference<"mutation", "internal", {
|
|
459
|
+
force?: boolean;
|
|
460
|
+
workflowId: string;
|
|
461
|
+
}, boolean>;
|
|
462
|
+
complete: FunctionReference<"mutation", "internal", {
|
|
463
|
+
generationNumber: number;
|
|
464
|
+
runResult: {
|
|
465
|
+
kind: "success";
|
|
466
|
+
returnValue: any;
|
|
467
|
+
} | {
|
|
468
|
+
error: string;
|
|
469
|
+
kind: "failed";
|
|
470
|
+
} | {
|
|
471
|
+
kind: "canceled";
|
|
472
|
+
};
|
|
473
|
+
workflowId: string;
|
|
474
|
+
}, null>;
|
|
475
|
+
create: FunctionReference<"mutation", "internal", {
|
|
476
|
+
maxParallelism?: number;
|
|
477
|
+
onComplete?: {
|
|
478
|
+
context?: any;
|
|
479
|
+
fnHandle: string;
|
|
480
|
+
};
|
|
481
|
+
startAsync?: boolean;
|
|
482
|
+
workflowArgs: any;
|
|
483
|
+
workflowHandle: string;
|
|
484
|
+
workflowName: string;
|
|
485
|
+
}, string>;
|
|
486
|
+
getStatus: FunctionReference<"query", "internal", {
|
|
487
|
+
workflowId: string;
|
|
488
|
+
}, {
|
|
489
|
+
inProgress: Array<{
|
|
490
|
+
_creationTime: number;
|
|
491
|
+
_id: string;
|
|
492
|
+
step: {
|
|
493
|
+
args: any;
|
|
494
|
+
argsSize: number;
|
|
495
|
+
completedAt?: number;
|
|
496
|
+
functionType: "query" | "mutation" | "action";
|
|
497
|
+
handle: string;
|
|
498
|
+
inProgress: boolean;
|
|
499
|
+
kind?: "function";
|
|
500
|
+
name: string;
|
|
501
|
+
runResult?: {
|
|
502
|
+
kind: "success";
|
|
503
|
+
returnValue: any;
|
|
504
|
+
} | {
|
|
505
|
+
error: string;
|
|
506
|
+
kind: "failed";
|
|
507
|
+
} | {
|
|
508
|
+
kind: "canceled";
|
|
509
|
+
};
|
|
510
|
+
startedAt: number;
|
|
511
|
+
workId?: string;
|
|
512
|
+
} | {
|
|
513
|
+
args: any;
|
|
514
|
+
argsSize: number;
|
|
515
|
+
completedAt?: number;
|
|
516
|
+
handle: string;
|
|
517
|
+
inProgress: boolean;
|
|
518
|
+
kind: "workflow";
|
|
519
|
+
name: string;
|
|
520
|
+
runResult?: {
|
|
521
|
+
kind: "success";
|
|
522
|
+
returnValue: any;
|
|
523
|
+
} | {
|
|
524
|
+
error: string;
|
|
525
|
+
kind: "failed";
|
|
526
|
+
} | {
|
|
527
|
+
kind: "canceled";
|
|
528
|
+
};
|
|
529
|
+
startedAt: number;
|
|
530
|
+
workflowId?: string;
|
|
531
|
+
} | {
|
|
532
|
+
args: {
|
|
533
|
+
eventId?: string;
|
|
534
|
+
};
|
|
535
|
+
argsSize: number;
|
|
536
|
+
completedAt?: number;
|
|
537
|
+
eventId?: string;
|
|
538
|
+
inProgress: boolean;
|
|
539
|
+
kind: "event";
|
|
540
|
+
name: string;
|
|
541
|
+
runResult?: {
|
|
542
|
+
kind: "success";
|
|
543
|
+
returnValue: any;
|
|
544
|
+
} | {
|
|
545
|
+
error: string;
|
|
546
|
+
kind: "failed";
|
|
547
|
+
} | {
|
|
548
|
+
kind: "canceled";
|
|
549
|
+
};
|
|
550
|
+
startedAt: number;
|
|
551
|
+
} | {
|
|
552
|
+
args: any;
|
|
553
|
+
argsSize: number;
|
|
554
|
+
completedAt?: number;
|
|
555
|
+
inProgress: boolean;
|
|
556
|
+
kind: "sleep";
|
|
557
|
+
name: string;
|
|
558
|
+
runResult?: {
|
|
559
|
+
kind: "success";
|
|
560
|
+
returnValue: any;
|
|
561
|
+
} | {
|
|
562
|
+
error: string;
|
|
563
|
+
kind: "failed";
|
|
564
|
+
} | {
|
|
565
|
+
kind: "canceled";
|
|
566
|
+
};
|
|
567
|
+
startedAt: number;
|
|
568
|
+
workId?: string;
|
|
569
|
+
};
|
|
570
|
+
stepNumber: number;
|
|
571
|
+
workflowId: string;
|
|
572
|
+
}>;
|
|
573
|
+
logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
|
|
574
|
+
workflow: {
|
|
575
|
+
_creationTime: number;
|
|
576
|
+
_id: string;
|
|
577
|
+
args: any;
|
|
578
|
+
generationNumber: number;
|
|
579
|
+
logLevel?: any;
|
|
580
|
+
name?: string;
|
|
581
|
+
onComplete?: {
|
|
582
|
+
context?: any;
|
|
583
|
+
fnHandle: string;
|
|
584
|
+
};
|
|
585
|
+
runResult?: {
|
|
586
|
+
kind: "success";
|
|
587
|
+
returnValue: any;
|
|
588
|
+
} | {
|
|
589
|
+
error: string;
|
|
590
|
+
kind: "failed";
|
|
591
|
+
} | {
|
|
592
|
+
kind: "canceled";
|
|
593
|
+
};
|
|
594
|
+
startedAt?: any;
|
|
595
|
+
state?: any;
|
|
596
|
+
workflowHandle: string;
|
|
597
|
+
};
|
|
598
|
+
}>;
|
|
599
|
+
list: FunctionReference<"query", "internal", {
|
|
600
|
+
order: "asc" | "desc";
|
|
601
|
+
paginationOpts: {
|
|
602
|
+
cursor: string | null;
|
|
603
|
+
endCursor?: string | null;
|
|
604
|
+
id?: number;
|
|
605
|
+
maximumBytesRead?: number;
|
|
606
|
+
maximumRowsRead?: number;
|
|
607
|
+
numItems: number;
|
|
608
|
+
};
|
|
609
|
+
}, {
|
|
610
|
+
continueCursor: string;
|
|
611
|
+
isDone: boolean;
|
|
612
|
+
page: Array<{
|
|
613
|
+
args: any;
|
|
614
|
+
context?: any;
|
|
615
|
+
name?: string;
|
|
616
|
+
runResult?: {
|
|
617
|
+
kind: "success";
|
|
618
|
+
returnValue: any;
|
|
619
|
+
} | {
|
|
620
|
+
error: string;
|
|
621
|
+
kind: "failed";
|
|
622
|
+
} | {
|
|
623
|
+
kind: "canceled";
|
|
624
|
+
};
|
|
625
|
+
workflowId: string;
|
|
626
|
+
}>;
|
|
627
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
628
|
+
splitCursor?: string | null;
|
|
629
|
+
}>;
|
|
630
|
+
listByName: FunctionReference<"query", "internal", {
|
|
631
|
+
name: string;
|
|
632
|
+
order: "asc" | "desc";
|
|
633
|
+
paginationOpts: {
|
|
634
|
+
cursor: string | null;
|
|
635
|
+
endCursor?: string | null;
|
|
636
|
+
id?: number;
|
|
637
|
+
maximumBytesRead?: number;
|
|
638
|
+
maximumRowsRead?: number;
|
|
639
|
+
numItems: number;
|
|
640
|
+
};
|
|
641
|
+
}, {
|
|
642
|
+
continueCursor: string;
|
|
643
|
+
isDone: boolean;
|
|
644
|
+
page: Array<{
|
|
645
|
+
args: any;
|
|
646
|
+
context?: any;
|
|
647
|
+
name?: string;
|
|
648
|
+
runResult?: {
|
|
649
|
+
kind: "success";
|
|
650
|
+
returnValue: any;
|
|
651
|
+
} | {
|
|
652
|
+
error: string;
|
|
653
|
+
kind: "failed";
|
|
654
|
+
} | {
|
|
655
|
+
kind: "canceled";
|
|
656
|
+
};
|
|
657
|
+
workflowId: string;
|
|
658
|
+
}>;
|
|
659
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
660
|
+
splitCursor?: string | null;
|
|
661
|
+
}>;
|
|
662
|
+
listSteps: FunctionReference<"query", "internal", {
|
|
663
|
+
order: "asc" | "desc";
|
|
664
|
+
paginationOpts: {
|
|
665
|
+
cursor: string | null;
|
|
666
|
+
endCursor?: string | null;
|
|
667
|
+
id?: number;
|
|
668
|
+
maximumBytesRead?: number;
|
|
669
|
+
maximumRowsRead?: number;
|
|
670
|
+
numItems: number;
|
|
671
|
+
};
|
|
672
|
+
workflowId: string;
|
|
673
|
+
}, {
|
|
674
|
+
continueCursor: string;
|
|
675
|
+
isDone: boolean;
|
|
676
|
+
page: Array<{
|
|
677
|
+
args: any;
|
|
678
|
+
completedAt?: number;
|
|
679
|
+
eventId?: string;
|
|
680
|
+
kind: "function" | "workflow" | "event" | "sleep";
|
|
681
|
+
name: string;
|
|
682
|
+
nestedWorkflowId?: string;
|
|
683
|
+
runResult?: {
|
|
684
|
+
kind: "success";
|
|
685
|
+
returnValue: any;
|
|
686
|
+
} | {
|
|
687
|
+
error: string;
|
|
688
|
+
kind: "failed";
|
|
689
|
+
} | {
|
|
690
|
+
kind: "canceled";
|
|
691
|
+
};
|
|
692
|
+
startedAt: number;
|
|
693
|
+
stepId: string;
|
|
694
|
+
stepNumber: number;
|
|
695
|
+
workId?: string;
|
|
696
|
+
workflowId: string;
|
|
697
|
+
}>;
|
|
698
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
699
|
+
splitCursor?: string | null;
|
|
700
|
+
}>;
|
|
701
|
+
restart: FunctionReference<"mutation", "internal", {
|
|
702
|
+
from?: number | string;
|
|
703
|
+
startAsync?: boolean;
|
|
704
|
+
workflowId: string;
|
|
705
|
+
}, null>;
|
|
706
|
+
};
|
|
707
|
+
};
|
|
110
708
|
};
|
|
111
709
|
export {};
|
|
112
710
|
//# sourceMappingURL=api.d.ts.map
|