@trigger.dev/core 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/schemas/api.d.ts +1340 -1134
- package/dist/commonjs/schemas/eventFilter.d.ts +4 -4
- package/dist/commonjs/schemas/fetch.d.ts +66 -33
- package/dist/commonjs/schemas/notifications.d.ts +24 -16
- package/dist/commonjs/schemas/requestFilter.d.ts +52 -4
- package/dist/commonjs/schemas/runs.d.ts +29 -13
- package/dist/commonjs/schemas/schedules.d.ts +8 -8
- package/dist/commonjs/schemas/statuses.d.ts +9 -8
- package/dist/commonjs/schemas/tasks.d.ts +32 -31
- package/dist/commonjs/schemas/triggers.d.ts +36 -36
- package/dist/commonjs/v3/apiClient/index.d.ts +48 -42
- package/dist/commonjs/v3/apiClient/index.js +19 -3
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.d.ts +53 -4
- package/dist/commonjs/v3/apiClient/runStream.js +114 -13
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
- package/dist/commonjs/v3/apiClient/stream.js +24 -10
- package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
- package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
- package/dist/commonjs/v3/build/extensions.d.ts +1 -0
- package/dist/commonjs/v3/idempotencyKeys.d.ts +41 -0
- package/dist/commonjs/v3/idempotencyKeys.js +83 -0
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -0
- package/dist/commonjs/v3/index.d.ts +2 -0
- package/dist/commonjs/v3/index.js +2 -0
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/jwt.d.ts +10 -1
- package/dist/commonjs/v3/jwt.js +17 -4
- package/dist/commonjs/v3/jwt.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/index.d.ts +5 -0
- package/dist/commonjs/v3/runMetadata/index.js +15 -0
- package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/manager.d.ts +13 -0
- package/dist/commonjs/v3/runMetadata/manager.js +174 -12
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +21 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.js +71 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -0
- package/dist/commonjs/v3/runMetadata/noopManager.d.ts +5 -0
- package/dist/commonjs/v3/runMetadata/noopManager.js +15 -0
- package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/types.d.ts +5 -0
- package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +457 -786
- package/dist/commonjs/v3/schemas/build.d.ts +270 -496
- package/dist/commonjs/v3/schemas/common.d.ts +23 -23
- package/dist/commonjs/v3/schemas/eventFilter.d.ts +2 -2
- package/dist/commonjs/v3/schemas/fetch.d.ts +57 -45
- package/dist/commonjs/v3/schemas/messages.d.ts +1346 -1759
- package/dist/commonjs/v3/schemas/openTelemetry.d.ts +22 -22
- package/dist/commonjs/v3/schemas/resources.d.ts +138 -298
- package/dist/commonjs/v3/schemas/resources.js +1 -0
- package/dist/commonjs/v3/schemas/resources.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +317 -517
- package/dist/commonjs/v3/schemas/schemas.js +1 -0
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/schemas/style.d.ts +2 -2
- package/dist/commonjs/v3/types/index.d.ts +1 -0
- package/dist/commonjs/v3/types/index.js +1 -0
- package/dist/commonjs/v3/types/index.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +20 -7
- package/dist/commonjs/v3/types/tasks.js.map +1 -1
- package/dist/commonjs/v3/types/tools.d.ts +6 -0
- package/dist/commonjs/v3/types/tools.js +22 -0
- package/dist/commonjs/v3/types/tools.js.map +1 -0
- package/dist/commonjs/v3/utils/getEnv.d.ts +1 -1
- package/dist/commonjs/v3/utils/getEnv.js +3 -3
- package/dist/commonjs/v3/utils/getEnv.js.map +1 -1
- package/dist/commonjs/v3/utils/globals.d.ts +2 -0
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.d.ts +8 -3
- package/dist/commonjs/v3/utils/ioSerialization.js +43 -36
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/v3/wait-until-api.d.ts +2 -0
- package/dist/commonjs/v3/wait-until-api.js +8 -0
- package/dist/commonjs/v3/wait-until-api.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/index.d.ts +11 -0
- package/dist/commonjs/v3/waitUntil/index.js +44 -0
- package/dist/commonjs/v3/waitUntil/index.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/manager.d.ts +8 -0
- package/dist/commonjs/v3/waitUntil/manager.js +28 -0
- package/dist/commonjs/v3/waitUntil/manager.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/types.d.ts +9 -0
- package/dist/commonjs/v3/waitUntil/types.js +3 -0
- package/dist/commonjs/v3/waitUntil/types.js.map +1 -0
- package/dist/commonjs/v3/workers/index.d.ts +1 -0
- package/dist/commonjs/v3/workers/index.js +3 -1
- package/dist/commonjs/v3/workers/index.js.map +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js +13 -0
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/v3/zodMessageHandler.d.ts +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/schemas/api.d.ts +1340 -1134
- package/dist/esm/schemas/eventFilter.d.ts +4 -4
- package/dist/esm/schemas/fetch.d.ts +66 -33
- package/dist/esm/schemas/notifications.d.ts +24 -16
- package/dist/esm/schemas/requestFilter.d.ts +52 -4
- package/dist/esm/schemas/runs.d.ts +29 -13
- package/dist/esm/schemas/schedules.d.ts +8 -8
- package/dist/esm/schemas/statuses.d.ts +9 -8
- package/dist/esm/schemas/tasks.d.ts +32 -31
- package/dist/esm/schemas/triggers.d.ts +36 -36
- package/dist/esm/v3/apiClient/index.d.ts +48 -42
- package/dist/esm/v3/apiClient/index.js +19 -3
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.d.ts +53 -4
- package/dist/esm/v3/apiClient/runStream.js +111 -12
- package/dist/esm/v3/apiClient/runStream.js.map +1 -1
- package/dist/esm/v3/apiClient/stream.js +24 -10
- package/dist/esm/v3/apiClient/stream.js.map +1 -1
- package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
- package/dist/esm/v3/build/extensions.d.ts +1 -0
- package/dist/esm/v3/idempotencyKeys.d.ts +41 -0
- package/dist/esm/v3/idempotencyKeys.js +78 -0
- package/dist/esm/v3/idempotencyKeys.js.map +1 -0
- package/dist/esm/v3/index.d.ts +2 -0
- package/dist/esm/v3/index.js +2 -0
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/jwt.d.ts +10 -1
- package/dist/esm/v3/jwt.js +17 -4
- package/dist/esm/v3/jwt.js.map +1 -1
- package/dist/esm/v3/runMetadata/index.d.ts +5 -0
- package/dist/esm/v3/runMetadata/index.js +15 -0
- package/dist/esm/v3/runMetadata/index.js.map +1 -1
- package/dist/esm/v3/runMetadata/manager.d.ts +13 -0
- package/dist/esm/v3/runMetadata/manager.js +174 -12
- package/dist/esm/v3/runMetadata/manager.js.map +1 -1
- package/dist/esm/v3/runMetadata/metadataStream.d.ts +21 -0
- package/dist/esm/v3/runMetadata/metadataStream.js +67 -0
- package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -0
- package/dist/esm/v3/runMetadata/noopManager.d.ts +5 -0
- package/dist/esm/v3/runMetadata/noopManager.js +15 -0
- package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
- package/dist/esm/v3/runMetadata/types.d.ts +5 -0
- package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +457 -786
- package/dist/esm/v3/schemas/build.d.ts +270 -496
- package/dist/esm/v3/schemas/common.d.ts +23 -23
- package/dist/esm/v3/schemas/eventFilter.d.ts +2 -2
- package/dist/esm/v3/schemas/fetch.d.ts +57 -45
- package/dist/esm/v3/schemas/messages.d.ts +1346 -1759
- package/dist/esm/v3/schemas/openTelemetry.d.ts +22 -22
- package/dist/esm/v3/schemas/resources.d.ts +138 -298
- package/dist/esm/v3/schemas/resources.js +1 -0
- package/dist/esm/v3/schemas/resources.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +317 -517
- package/dist/esm/v3/schemas/schemas.js +1 -0
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/schemas/style.d.ts +2 -2
- package/dist/esm/v3/types/index.d.ts +1 -0
- package/dist/esm/v3/types/index.js +1 -0
- package/dist/esm/v3/types/index.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +20 -7
- package/dist/esm/v3/types/tasks.js.map +1 -1
- package/dist/esm/v3/types/tools.d.ts +6 -0
- package/dist/esm/v3/types/tools.js +19 -0
- package/dist/esm/v3/types/tools.js.map +1 -0
- package/dist/esm/v3/utils/getEnv.d.ts +1 -1
- package/dist/esm/v3/utils/getEnv.js +3 -3
- package/dist/esm/v3/utils/getEnv.js.map +1 -1
- package/dist/esm/v3/utils/globals.d.ts +2 -0
- package/dist/esm/v3/utils/globals.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.d.ts +8 -3
- package/dist/esm/v3/utils/ioSerialization.js +43 -36
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/v3/wait-until-api.d.ts +2 -0
- package/dist/esm/v3/wait-until-api.js +5 -0
- package/dist/esm/v3/wait-until-api.js.map +1 -0
- package/dist/esm/v3/waitUntil/index.d.ts +11 -0
- package/dist/esm/v3/waitUntil/index.js +40 -0
- package/dist/esm/v3/waitUntil/index.js.map +1 -0
- package/dist/esm/v3/waitUntil/manager.d.ts +8 -0
- package/dist/esm/v3/waitUntil/manager.js +24 -0
- package/dist/esm/v3/waitUntil/manager.js.map +1 -0
- package/dist/esm/v3/waitUntil/types.d.ts +9 -0
- package/dist/esm/v3/waitUntil/types.js +2 -0
- package/dist/esm/v3/waitUntil/types.js.map +1 -0
- package/dist/esm/v3/workers/index.d.ts +1 -0
- package/dist/esm/v3/workers/index.js +1 -0
- package/dist/esm/v3/workers/index.js.map +1 -1
- package/dist/esm/v3/workers/taskExecutor.js +14 -1
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/v3/zodMessageHandler.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +7 -3
|
@@ -57,9 +57,9 @@ declare const EventMatcherSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z
|
|
|
57
57
|
}>, z.ZodObject<{
|
|
58
58
|
$anythingBut: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodBoolean, "many">]>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
$anythingBut:
|
|
60
|
+
$anythingBut: string[] | number[] | boolean[];
|
|
61
61
|
}, {
|
|
62
|
-
$anythingBut:
|
|
62
|
+
$anythingBut: string[] | number[] | boolean[];
|
|
63
63
|
}>, z.ZodObject<{
|
|
64
64
|
$gt: z.ZodNumber;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -115,12 +115,12 @@ export declare const EventRuleSchema: z.ZodObject<{
|
|
|
115
115
|
payload: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
116
116
|
context: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
event:
|
|
118
|
+
event: string | string[];
|
|
119
119
|
source: string;
|
|
120
120
|
payload?: EventFilter | undefined;
|
|
121
121
|
context?: EventFilter | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
event:
|
|
123
|
+
event: string | string[];
|
|
124
124
|
source: string;
|
|
125
125
|
payload?: EventFilter | undefined;
|
|
126
126
|
context?: EventFilter | undefined;
|
|
@@ -30,15 +30,18 @@ export declare const FetchRetryHeadersStrategySchema: z.ZodObject<{
|
|
|
30
30
|
}>;
|
|
31
31
|
export type FetchRetryHeadersStrategy = z.infer<typeof FetchRetryHeadersStrategySchema>;
|
|
32
32
|
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
33
|
-
export declare const FetchRetryBackoffStrategySchema: z.ZodObject<{
|
|
33
|
+
export declare const FetchRetryBackoffStrategySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
34
34
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
35
35
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
37
37
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
38
38
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
}, {
|
|
40
|
+
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
39
41
|
strategy: z.ZodLiteral<"backoff">;
|
|
42
|
+
/** The event filter to use to determine if the request should be retried. */
|
|
40
43
|
bodyFilter: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
41
|
-
}
|
|
44
|
+
}>, "strip", z.ZodTypeAny, {
|
|
42
45
|
strategy: "backoff";
|
|
43
46
|
limit?: number | undefined;
|
|
44
47
|
factor?: number | undefined;
|
|
@@ -84,15 +87,18 @@ export declare const FetchRetryStrategySchema: z.ZodDiscriminatedUnion<"strategy
|
|
|
84
87
|
resetHeader: string;
|
|
85
88
|
bodyFilter?: import("./eventFilter.js").EventFilter | undefined;
|
|
86
89
|
resetFormat?: "unix_timestamp" | "unix_timestamp_in_ms" | "iso_8601" | "iso_8601_duration_openai_variant" | undefined;
|
|
87
|
-
}>, z.ZodObject<{
|
|
90
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
88
91
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
89
92
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
90
93
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
91
94
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
92
95
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
}, {
|
|
97
|
+
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
93
98
|
strategy: z.ZodLiteral<"backoff">;
|
|
99
|
+
/** The event filter to use to determine if the request should be retried. */
|
|
94
100
|
bodyFilter: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
95
|
-
}
|
|
101
|
+
}>, "strip", z.ZodTypeAny, {
|
|
96
102
|
strategy: "backoff";
|
|
97
103
|
limit?: number | undefined;
|
|
98
104
|
factor?: number | undefined;
|
|
@@ -176,15 +182,18 @@ export declare const FetchRetryOptionsSchema: z.ZodRecord<z.ZodString, z.ZodDisc
|
|
|
176
182
|
resetHeader: string;
|
|
177
183
|
bodyFilter?: import("./eventFilter.js").EventFilter | undefined;
|
|
178
184
|
resetFormat?: "unix_timestamp" | "unix_timestamp_in_ms" | "iso_8601" | "iso_8601_duration_openai_variant" | undefined;
|
|
179
|
-
}>, z.ZodObject<{
|
|
185
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
180
186
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
181
187
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
182
188
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
183
189
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
184
190
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
}, {
|
|
192
|
+
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
185
193
|
strategy: z.ZodLiteral<"backoff">;
|
|
194
|
+
/** The event filter to use to determine if the request should be retried. */
|
|
186
195
|
bodyFilter: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
187
|
-
}
|
|
196
|
+
}>, "strip", z.ZodTypeAny, {
|
|
188
197
|
strategy: "backoff";
|
|
189
198
|
limit?: number | undefined;
|
|
190
199
|
factor?: number | undefined;
|
|
@@ -313,15 +322,18 @@ export declare const FetchOperationSchema: z.ZodObject<{
|
|
|
313
322
|
resetHeader: string;
|
|
314
323
|
bodyFilter?: import("./eventFilter.js").EventFilter | undefined;
|
|
315
324
|
resetFormat?: "unix_timestamp" | "unix_timestamp_in_ms" | "iso_8601" | "iso_8601_duration_openai_variant" | undefined;
|
|
316
|
-
}>, z.ZodObject<{
|
|
325
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
317
326
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
318
327
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
319
328
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
320
329
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
321
330
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
}, {
|
|
332
|
+
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
322
333
|
strategy: z.ZodLiteral<"backoff">;
|
|
334
|
+
/** The event filter to use to determine if the request should be retried. */
|
|
323
335
|
bodyFilter: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
324
|
-
}
|
|
336
|
+
}>, "strip", z.ZodTypeAny, {
|
|
325
337
|
strategy: "backoff";
|
|
326
338
|
limit?: number | undefined;
|
|
327
339
|
factor?: number | undefined;
|
|
@@ -380,15 +392,6 @@ export declare const FetchOperationSchema: z.ZodObject<{
|
|
|
380
392
|
}>>;
|
|
381
393
|
}, "strip", z.ZodTypeAny, {
|
|
382
394
|
url: string;
|
|
383
|
-
requestInit?: {
|
|
384
|
-
method?: string | undefined;
|
|
385
|
-
headers?: Record<string, string | {
|
|
386
|
-
__redactedString: true;
|
|
387
|
-
strings: string[];
|
|
388
|
-
interpolations: string[];
|
|
389
|
-
}> | undefined;
|
|
390
|
-
body?: string | ArrayBuffer | undefined;
|
|
391
|
-
} | undefined;
|
|
392
395
|
retry?: Record<string, {
|
|
393
396
|
strategy: "headers";
|
|
394
397
|
limitHeader: string;
|
|
@@ -405,6 +408,15 @@ export declare const FetchOperationSchema: z.ZodObject<{
|
|
|
405
408
|
randomize?: boolean | undefined;
|
|
406
409
|
bodyFilter?: import("./eventFilter.js").EventFilter | undefined;
|
|
407
410
|
}> | undefined;
|
|
411
|
+
requestInit?: {
|
|
412
|
+
method?: string | undefined;
|
|
413
|
+
headers?: Record<string, string | {
|
|
414
|
+
__redactedString: true;
|
|
415
|
+
strings: string[];
|
|
416
|
+
interpolations: string[];
|
|
417
|
+
}> | undefined;
|
|
418
|
+
body?: string | ArrayBuffer | undefined;
|
|
419
|
+
} | undefined;
|
|
408
420
|
timeout?: {
|
|
409
421
|
durationInMs: number;
|
|
410
422
|
retry?: {
|
|
@@ -417,15 +429,6 @@ export declare const FetchOperationSchema: z.ZodObject<{
|
|
|
417
429
|
} | undefined;
|
|
418
430
|
}, {
|
|
419
431
|
url: string;
|
|
420
|
-
requestInit?: {
|
|
421
|
-
method?: string | undefined;
|
|
422
|
-
headers?: Record<string, string | {
|
|
423
|
-
__redactedString: true;
|
|
424
|
-
strings: string[];
|
|
425
|
-
interpolations: string[];
|
|
426
|
-
}> | undefined;
|
|
427
|
-
body?: string | ArrayBuffer | undefined;
|
|
428
|
-
} | undefined;
|
|
429
432
|
retry?: Record<string, {
|
|
430
433
|
strategy: "headers";
|
|
431
434
|
limitHeader: string;
|
|
@@ -442,6 +445,15 @@ export declare const FetchOperationSchema: z.ZodObject<{
|
|
|
442
445
|
randomize?: boolean | undefined;
|
|
443
446
|
bodyFilter?: import("./eventFilter.js").EventFilter | undefined;
|
|
444
447
|
}> | undefined;
|
|
448
|
+
requestInit?: {
|
|
449
|
+
method?: string | undefined;
|
|
450
|
+
headers?: Record<string, string | {
|
|
451
|
+
__redactedString: true;
|
|
452
|
+
strings: string[];
|
|
453
|
+
interpolations: string[];
|
|
454
|
+
}> | undefined;
|
|
455
|
+
body?: string | ArrayBuffer | undefined;
|
|
456
|
+
} | undefined;
|
|
445
457
|
timeout?: {
|
|
446
458
|
durationInMs: number;
|
|
447
459
|
retry?: {
|
|
@@ -458,7 +470,8 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
458
470
|
url: z.ZodString;
|
|
459
471
|
interval: z.ZodDefault<z.ZodNumber>;
|
|
460
472
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
461
|
-
responseFilter: z.ZodObject<{
|
|
473
|
+
responseFilter: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
474
|
+
method: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"POST">, z.ZodLiteral<"PUT">, z.ZodLiteral<"PATCH">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"HEAD">, z.ZodLiteral<"OPTIONS">]>, "many">>;
|
|
462
475
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
463
476
|
$endsWith: z.ZodString;
|
|
464
477
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -478,9 +491,30 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
478
491
|
}, {
|
|
479
492
|
$ignoreCaseEquals: string;
|
|
480
493
|
}>]>, "many">]>>>;
|
|
494
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
495
|
+
$endsWith: z.ZodString;
|
|
496
|
+
}, "strip", z.ZodTypeAny, {
|
|
497
|
+
$endsWith: string;
|
|
498
|
+
}, {
|
|
499
|
+
$endsWith: string;
|
|
500
|
+
}>, z.ZodObject<{
|
|
501
|
+
$startsWith: z.ZodString;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
$startsWith: string;
|
|
504
|
+
}, {
|
|
505
|
+
$startsWith: string;
|
|
506
|
+
}>, z.ZodObject<{
|
|
507
|
+
$ignoreCaseEquals: z.ZodString;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
$ignoreCaseEquals: string;
|
|
510
|
+
}, {
|
|
511
|
+
$ignoreCaseEquals: string;
|
|
512
|
+
}>]>, "many">]>>>;
|
|
481
513
|
body: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
514
|
+
}, "method" | "query">, {
|
|
482
515
|
status: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
483
|
-
}
|
|
516
|
+
}>, "strip", z.ZodTypeAny, {
|
|
517
|
+
status?: number[] | undefined;
|
|
484
518
|
headers?: Record<string, string[] | ({
|
|
485
519
|
$endsWith: string;
|
|
486
520
|
} | {
|
|
@@ -489,8 +523,8 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
489
523
|
$ignoreCaseEquals: string;
|
|
490
524
|
})[]> | undefined;
|
|
491
525
|
body?: import("./eventFilter.js").EventFilter | undefined;
|
|
492
|
-
status?: number[] | undefined;
|
|
493
526
|
}, {
|
|
527
|
+
status?: number[] | undefined;
|
|
494
528
|
headers?: Record<string, string[] | ({
|
|
495
529
|
$endsWith: string;
|
|
496
530
|
} | {
|
|
@@ -499,7 +533,6 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
499
533
|
$ignoreCaseEquals: string;
|
|
500
534
|
})[]> | undefined;
|
|
501
535
|
body?: import("./eventFilter.js").EventFilter | undefined;
|
|
502
|
-
status?: number[] | undefined;
|
|
503
536
|
}>;
|
|
504
537
|
requestInit: z.ZodOptional<z.ZodObject<{
|
|
505
538
|
/** The HTTP method to use for the request. */
|
|
@@ -582,6 +615,7 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
582
615
|
interval: number;
|
|
583
616
|
timeout: number;
|
|
584
617
|
responseFilter: {
|
|
618
|
+
status?: number[] | undefined;
|
|
585
619
|
headers?: Record<string, string[] | ({
|
|
586
620
|
$endsWith: string;
|
|
587
621
|
} | {
|
|
@@ -590,7 +624,6 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
590
624
|
$ignoreCaseEquals: string;
|
|
591
625
|
})[]> | undefined;
|
|
592
626
|
body?: import("./eventFilter.js").EventFilter | undefined;
|
|
593
|
-
status?: number[] | undefined;
|
|
594
627
|
};
|
|
595
628
|
requestInit?: {
|
|
596
629
|
method?: string | undefined;
|
|
@@ -614,6 +647,7 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
614
647
|
}, {
|
|
615
648
|
url: string;
|
|
616
649
|
responseFilter: {
|
|
650
|
+
status?: number[] | undefined;
|
|
617
651
|
headers?: Record<string, string[] | ({
|
|
618
652
|
$endsWith: string;
|
|
619
653
|
} | {
|
|
@@ -622,10 +656,8 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
622
656
|
$ignoreCaseEquals: string;
|
|
623
657
|
})[]> | undefined;
|
|
624
658
|
body?: import("./eventFilter.js").EventFilter | undefined;
|
|
625
|
-
status?: number[] | undefined;
|
|
626
659
|
};
|
|
627
660
|
interval?: number | undefined;
|
|
628
|
-
timeout?: number | undefined;
|
|
629
661
|
requestInit?: {
|
|
630
662
|
method?: string | undefined;
|
|
631
663
|
headers?: Record<string, string | {
|
|
@@ -635,6 +667,7 @@ export declare const FetchPollOperationSchema: z.ZodObject<{
|
|
|
635
667
|
}> | undefined;
|
|
636
668
|
body?: string | ArrayBuffer | undefined;
|
|
637
669
|
} | undefined;
|
|
670
|
+
timeout?: number | undefined;
|
|
638
671
|
requestTimeout?: {
|
|
639
672
|
durationInMs: number;
|
|
640
673
|
retry?: {
|
|
@@ -44,7 +44,7 @@ export declare const CommonMissingConnectionNotificationPayloadSchema: z.ZodObje
|
|
|
44
44
|
};
|
|
45
45
|
authorizationUrl: string;
|
|
46
46
|
}>;
|
|
47
|
-
export declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<{
|
|
47
|
+
export declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
48
48
|
id: z.ZodString;
|
|
49
49
|
client: z.ZodObject<{
|
|
50
50
|
id: z.ZodString;
|
|
@@ -66,8 +66,9 @@ export declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodO
|
|
|
66
66
|
createdAt: Date;
|
|
67
67
|
}>;
|
|
68
68
|
authorizationUrl: z.ZodString;
|
|
69
|
+
}, {
|
|
69
70
|
type: z.ZodLiteral<"DEVELOPER">;
|
|
70
|
-
}
|
|
71
|
+
}>, "strip", z.ZodTypeAny, {
|
|
71
72
|
type: "DEVELOPER";
|
|
72
73
|
id: string;
|
|
73
74
|
client: {
|
|
@@ -90,7 +91,7 @@ export declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodO
|
|
|
90
91
|
};
|
|
91
92
|
authorizationUrl: string;
|
|
92
93
|
}>;
|
|
93
|
-
export declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<{
|
|
94
|
+
export declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
94
95
|
id: z.ZodString;
|
|
95
96
|
client: z.ZodObject<{
|
|
96
97
|
id: z.ZodString;
|
|
@@ -112,6 +113,7 @@ export declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodOb
|
|
|
112
113
|
createdAt: Date;
|
|
113
114
|
}>;
|
|
114
115
|
authorizationUrl: z.ZodString;
|
|
116
|
+
}, {
|
|
115
117
|
type: z.ZodLiteral<"EXTERNAL">;
|
|
116
118
|
account: z.ZodObject<{
|
|
117
119
|
id: z.ZodString;
|
|
@@ -123,7 +125,7 @@ export declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodOb
|
|
|
123
125
|
id: string;
|
|
124
126
|
metadata?: any;
|
|
125
127
|
}>;
|
|
126
|
-
}
|
|
128
|
+
}>, "strip", z.ZodTypeAny, {
|
|
127
129
|
type: "EXTERNAL";
|
|
128
130
|
id: string;
|
|
129
131
|
account: {
|
|
@@ -154,7 +156,7 @@ export declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodOb
|
|
|
154
156
|
};
|
|
155
157
|
authorizationUrl: string;
|
|
156
158
|
}>;
|
|
157
|
-
export declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
159
|
+
export declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
158
160
|
id: z.ZodString;
|
|
159
161
|
client: z.ZodObject<{
|
|
160
162
|
id: z.ZodString;
|
|
@@ -176,8 +178,9 @@ export declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscrimina
|
|
|
176
178
|
createdAt: Date;
|
|
177
179
|
}>;
|
|
178
180
|
authorizationUrl: z.ZodString;
|
|
181
|
+
}, {
|
|
179
182
|
type: z.ZodLiteral<"DEVELOPER">;
|
|
180
|
-
}
|
|
183
|
+
}>, "strip", z.ZodTypeAny, {
|
|
181
184
|
type: "DEVELOPER";
|
|
182
185
|
id: string;
|
|
183
186
|
client: {
|
|
@@ -199,7 +202,7 @@ export declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscrimina
|
|
|
199
202
|
createdAt: Date;
|
|
200
203
|
};
|
|
201
204
|
authorizationUrl: string;
|
|
202
|
-
}>, z.ZodObject<{
|
|
205
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
203
206
|
id: z.ZodString;
|
|
204
207
|
client: z.ZodObject<{
|
|
205
208
|
id: z.ZodString;
|
|
@@ -221,6 +224,7 @@ export declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscrimina
|
|
|
221
224
|
createdAt: Date;
|
|
222
225
|
}>;
|
|
223
226
|
authorizationUrl: z.ZodString;
|
|
227
|
+
}, {
|
|
224
228
|
type: z.ZodLiteral<"EXTERNAL">;
|
|
225
229
|
account: z.ZodObject<{
|
|
226
230
|
id: z.ZodString;
|
|
@@ -232,7 +236,7 @@ export declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscrimina
|
|
|
232
236
|
id: string;
|
|
233
237
|
metadata?: any;
|
|
234
238
|
}>;
|
|
235
|
-
}
|
|
239
|
+
}>, "strip", z.ZodTypeAny, {
|
|
236
240
|
type: "EXTERNAL";
|
|
237
241
|
id: string;
|
|
238
242
|
account: {
|
|
@@ -317,7 +321,7 @@ export declare const CommonMissingConnectionNotificationResolvedPayloadSchema: z
|
|
|
317
321
|
};
|
|
318
322
|
expiresAt: Date;
|
|
319
323
|
}>;
|
|
320
|
-
export declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.ZodObject<{
|
|
324
|
+
export declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
321
325
|
id: z.ZodString;
|
|
322
326
|
client: z.ZodObject<{
|
|
323
327
|
id: z.ZodString;
|
|
@@ -345,8 +349,9 @@ export declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema
|
|
|
345
349
|
integrationAuthMethod: string;
|
|
346
350
|
}>;
|
|
347
351
|
expiresAt: z.ZodDate;
|
|
352
|
+
}, {
|
|
348
353
|
type: z.ZodLiteral<"DEVELOPER">;
|
|
349
|
-
}
|
|
354
|
+
}>, "strip", z.ZodTypeAny, {
|
|
350
355
|
type: "DEVELOPER";
|
|
351
356
|
id: string;
|
|
352
357
|
client: {
|
|
@@ -373,7 +378,7 @@ export declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema
|
|
|
373
378
|
};
|
|
374
379
|
expiresAt: Date;
|
|
375
380
|
}>;
|
|
376
|
-
export declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodObject<{
|
|
381
|
+
export declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
377
382
|
id: z.ZodString;
|
|
378
383
|
client: z.ZodObject<{
|
|
379
384
|
id: z.ZodString;
|
|
@@ -401,6 +406,7 @@ export declare const MissingExternalConnectionResolvedNotificationPayloadSchema:
|
|
|
401
406
|
integrationAuthMethod: string;
|
|
402
407
|
}>;
|
|
403
408
|
expiresAt: z.ZodDate;
|
|
409
|
+
}, {
|
|
404
410
|
type: z.ZodLiteral<"EXTERNAL">;
|
|
405
411
|
account: z.ZodObject<{
|
|
406
412
|
id: z.ZodString;
|
|
@@ -412,7 +418,7 @@ export declare const MissingExternalConnectionResolvedNotificationPayloadSchema:
|
|
|
412
418
|
id: string;
|
|
413
419
|
metadata?: any;
|
|
414
420
|
}>;
|
|
415
|
-
}
|
|
421
|
+
}>, "strip", z.ZodTypeAny, {
|
|
416
422
|
type: "EXTERNAL";
|
|
417
423
|
id: string;
|
|
418
424
|
account: {
|
|
@@ -447,7 +453,7 @@ export declare const MissingExternalConnectionResolvedNotificationPayloadSchema:
|
|
|
447
453
|
};
|
|
448
454
|
expiresAt: Date;
|
|
449
455
|
}>;
|
|
450
|
-
export declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
456
|
+
export declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
451
457
|
id: z.ZodString;
|
|
452
458
|
client: z.ZodObject<{
|
|
453
459
|
id: z.ZodString;
|
|
@@ -475,8 +481,9 @@ export declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDi
|
|
|
475
481
|
integrationAuthMethod: string;
|
|
476
482
|
}>;
|
|
477
483
|
expiresAt: z.ZodDate;
|
|
484
|
+
}, {
|
|
478
485
|
type: z.ZodLiteral<"DEVELOPER">;
|
|
479
|
-
}
|
|
486
|
+
}>, "strip", z.ZodTypeAny, {
|
|
480
487
|
type: "DEVELOPER";
|
|
481
488
|
id: string;
|
|
482
489
|
client: {
|
|
@@ -502,7 +509,7 @@ export declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDi
|
|
|
502
509
|
integrationAuthMethod: string;
|
|
503
510
|
};
|
|
504
511
|
expiresAt: Date;
|
|
505
|
-
}>, z.ZodObject<{
|
|
512
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
506
513
|
id: z.ZodString;
|
|
507
514
|
client: z.ZodObject<{
|
|
508
515
|
id: z.ZodString;
|
|
@@ -530,6 +537,7 @@ export declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDi
|
|
|
530
537
|
integrationAuthMethod: string;
|
|
531
538
|
}>;
|
|
532
539
|
expiresAt: z.ZodDate;
|
|
540
|
+
}, {
|
|
533
541
|
type: z.ZodLiteral<"EXTERNAL">;
|
|
534
542
|
account: z.ZodObject<{
|
|
535
543
|
id: z.ZodString;
|
|
@@ -541,7 +549,7 @@ export declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDi
|
|
|
541
549
|
id: string;
|
|
542
550
|
metadata?: any;
|
|
543
551
|
}>;
|
|
544
|
-
}
|
|
552
|
+
}>, "strip", z.ZodTypeAny, {
|
|
545
553
|
type: "EXTERNAL";
|
|
546
554
|
id: string;
|
|
547
555
|
account: {
|
|
@@ -130,7 +130,21 @@ export declare const RequestFilterSchema: z.ZodObject<{
|
|
|
130
130
|
export type RequestFilter = z.infer<typeof RequestFilterSchema>;
|
|
131
131
|
/** Only Requests that match this filter will cause the `handler` function to run.
|
|
132
132
|
* For example, you can use this to only respond to `GET` Requests. */
|
|
133
|
-
export declare const ResponseFilterSchema: z.ZodObject<{
|
|
133
|
+
export declare const ResponseFilterSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
134
|
+
/** An array of HTTP methods to match.
|
|
135
|
+
* For example, `["GET", "POST"]` will match both `GET` and `POST` Requests. */
|
|
136
|
+
method: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"POST">, z.ZodLiteral<"PUT">, z.ZodLiteral<"PATCH">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"HEAD">, z.ZodLiteral<"OPTIONS">]>, "many">>;
|
|
137
|
+
/** An object of header key/values to match.
|
|
138
|
+
* This uses the [EventFilter matching syntax](https://trigger.dev/docs/documentation/guides/event-filter).
|
|
139
|
+
|
|
140
|
+
@example
|
|
141
|
+
```ts
|
|
142
|
+
filter: {
|
|
143
|
+
header: {
|
|
144
|
+
"content-type": ["application/json"],
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
``` */
|
|
134
148
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
135
149
|
$endsWith: z.ZodString;
|
|
136
150
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -150,9 +164,44 @@ export declare const ResponseFilterSchema: z.ZodObject<{
|
|
|
150
164
|
}, {
|
|
151
165
|
$ignoreCaseEquals: string;
|
|
152
166
|
}>]>, "many">]>>>;
|
|
167
|
+
/** An object of query parameters to match.
|
|
168
|
+
* This uses the [EventFilter matching syntax](https://trigger.dev/docs/documentation/guides/event-filter).
|
|
169
|
+
|
|
170
|
+
@example
|
|
171
|
+
```ts
|
|
172
|
+
filter: {
|
|
173
|
+
query: {
|
|
174
|
+
"hub.mode": [{ $startsWith: "sub" }],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
``` */
|
|
178
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
179
|
+
$endsWith: z.ZodString;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
$endsWith: string;
|
|
182
|
+
}, {
|
|
183
|
+
$endsWith: string;
|
|
184
|
+
}>, z.ZodObject<{
|
|
185
|
+
$startsWith: z.ZodString;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
$startsWith: string;
|
|
188
|
+
}, {
|
|
189
|
+
$startsWith: string;
|
|
190
|
+
}>, z.ZodObject<{
|
|
191
|
+
$ignoreCaseEquals: z.ZodString;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
$ignoreCaseEquals: string;
|
|
194
|
+
}, {
|
|
195
|
+
$ignoreCaseEquals: string;
|
|
196
|
+
}>]>, "many">]>>>;
|
|
197
|
+
/** An object of key/values to match.
|
|
198
|
+
* This uses the [EventFilter matching syntax](https://trigger.dev/docs/documentation/guides/event-filter).
|
|
199
|
+
*/
|
|
153
200
|
body: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
201
|
+
}, "method" | "query">, {
|
|
154
202
|
status: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
155
|
-
}
|
|
203
|
+
}>, "strip", z.ZodTypeAny, {
|
|
204
|
+
status?: number[] | undefined;
|
|
156
205
|
headers?: Record<string, string[] | ({
|
|
157
206
|
$endsWith: string;
|
|
158
207
|
} | {
|
|
@@ -161,8 +210,8 @@ export declare const ResponseFilterSchema: z.ZodObject<{
|
|
|
161
210
|
$ignoreCaseEquals: string;
|
|
162
211
|
})[]> | undefined;
|
|
163
212
|
body?: import("./eventFilter.js").EventFilter | undefined;
|
|
164
|
-
status?: number[] | undefined;
|
|
165
213
|
}, {
|
|
214
|
+
status?: number[] | undefined;
|
|
166
215
|
headers?: Record<string, string[] | ({
|
|
167
216
|
$endsWith: string;
|
|
168
217
|
} | {
|
|
@@ -171,7 +220,6 @@ export declare const ResponseFilterSchema: z.ZodObject<{
|
|
|
171
220
|
$ignoreCaseEquals: string;
|
|
172
221
|
})[]> | undefined;
|
|
173
222
|
body?: import("./eventFilter.js").EventFilter | undefined;
|
|
174
|
-
status?: number[] | undefined;
|
|
175
223
|
}>;
|
|
176
224
|
export type ResponseFilter = Prettify<z.infer<typeof ResponseFilterSchema>>;
|
|
177
225
|
export {};
|
|
@@ -59,12 +59,17 @@ declare const GetRunOptionsSchema: z.ZodObject<{
|
|
|
59
59
|
take?: number | undefined;
|
|
60
60
|
}>;
|
|
61
61
|
export type GetRunOptions = z.infer<typeof GetRunOptionsSchema>;
|
|
62
|
-
declare const GetRunOptionsWithTaskDetailsSchema: z.ZodObject<{
|
|
62
|
+
declare const GetRunOptionsWithTaskDetailsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
63
|
+
/** Return subtasks, which appear in a `subtasks` array on a task. @default false */
|
|
63
64
|
subtasks: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
/** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
|
|
64
66
|
cursor: z.ZodOptional<z.ZodString>;
|
|
67
|
+
/** How many tasks you want to return in one go, max 50. @default 20 */
|
|
65
68
|
take: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, {
|
|
70
|
+
/** If `true`, it returns the `params` and `output` of all tasks. @default false */
|
|
66
71
|
taskdetails: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
-
}
|
|
72
|
+
}>, "strip", z.ZodTypeAny, {
|
|
68
73
|
subtasks?: boolean | undefined;
|
|
69
74
|
cursor?: string | undefined;
|
|
70
75
|
take?: number | undefined;
|
|
@@ -76,18 +81,28 @@ declare const GetRunOptionsWithTaskDetailsSchema: z.ZodObject<{
|
|
|
76
81
|
taskdetails?: boolean | undefined;
|
|
77
82
|
}>;
|
|
78
83
|
export type GetRunOptionsWithTaskDetails = z.infer<typeof GetRunOptionsWithTaskDetailsSchema>;
|
|
79
|
-
export declare const GetRunSchema: z.ZodObject<{
|
|
80
|
-
|
|
84
|
+
export declare const GetRunSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
85
|
+
/** The Run id */
|
|
81
86
|
id: z.ZodString;
|
|
87
|
+
/** The Run status */
|
|
88
|
+
status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">, z.ZodLiteral<"UNRESOLVED_AUTH">, z.ZodLiteral<"INVALID_PAYLOAD">, z.ZodLiteral<"EXECUTING">, z.ZodLiteral<"WAITING_TO_CONTINUE">, z.ZodLiteral<"WAITING_TO_EXECUTE">]>;
|
|
89
|
+
/** When the run started */
|
|
82
90
|
startedAt: z.ZodNullable<z.ZodDate>;
|
|
83
|
-
|
|
91
|
+
/** When the run was last updated */
|
|
84
92
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
93
|
+
/** When the run was completed */
|
|
94
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
95
|
+
}, {
|
|
96
|
+
/** The output of the run */
|
|
85
97
|
output: z.ZodOptional<z.ZodAny>;
|
|
98
|
+
/** The tasks from the run */
|
|
86
99
|
tasks: z.ZodArray<z.ZodType<RunTaskWithSubtasks, z.ZodTypeDef, RunTaskWithSubtasks>, "many">;
|
|
87
|
-
|
|
88
|
-
|
|
100
|
+
/** Any status updates that were published from the run */
|
|
101
|
+
statuses: z.ZodDefault<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
89
102
|
label: z.ZodString;
|
|
90
103
|
state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
|
|
104
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json.js").SerializableJson, z.ZodTypeDef, import("./json.js").SerializableJson>>>;
|
|
105
|
+
}, {
|
|
91
106
|
key: z.ZodString;
|
|
92
107
|
history: z.ZodArray<z.ZodObject<{
|
|
93
108
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -102,7 +117,7 @@ export declare const GetRunSchema: z.ZodObject<{
|
|
|
102
117
|
state?: "loading" | "success" | "failure" | undefined;
|
|
103
118
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
104
119
|
}>, "many">;
|
|
105
|
-
}
|
|
120
|
+
}>, "strip", z.ZodTypeAny, {
|
|
106
121
|
label: string;
|
|
107
122
|
key: string;
|
|
108
123
|
history: {
|
|
@@ -110,8 +125,8 @@ export declare const GetRunSchema: z.ZodObject<{
|
|
|
110
125
|
state?: "loading" | "success" | "failure" | undefined;
|
|
111
126
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
112
127
|
}[];
|
|
113
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
114
128
|
state?: "loading" | "success" | "failure" | undefined;
|
|
129
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
115
130
|
}, {
|
|
116
131
|
label: string;
|
|
117
132
|
key: string;
|
|
@@ -120,11 +135,12 @@ export declare const GetRunSchema: z.ZodObject<{
|
|
|
120
135
|
state?: "loading" | "success" | "failure" | undefined;
|
|
121
136
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
122
137
|
}[];
|
|
123
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
124
138
|
state?: "loading" | "success" | "failure" | undefined;
|
|
139
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
125
140
|
}>, "many">>;
|
|
141
|
+
/** If there are more tasks, you can use this to get them */
|
|
126
142
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}
|
|
143
|
+
}>, "strip", z.ZodTypeAny, {
|
|
128
144
|
status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
129
145
|
id: string;
|
|
130
146
|
startedAt: Date | null;
|
|
@@ -139,8 +155,8 @@ export declare const GetRunSchema: z.ZodObject<{
|
|
|
139
155
|
state?: "loading" | "success" | "failure" | undefined;
|
|
140
156
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
141
157
|
}[];
|
|
142
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
143
158
|
state?: "loading" | "success" | "failure" | undefined;
|
|
159
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
144
160
|
}[];
|
|
145
161
|
output?: any;
|
|
146
162
|
nextCursor?: string | undefined;
|
|
@@ -160,8 +176,8 @@ export declare const GetRunSchema: z.ZodObject<{
|
|
|
160
176
|
state?: "loading" | "success" | "failure" | undefined;
|
|
161
177
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
162
178
|
}[];
|
|
163
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
164
179
|
state?: "loading" | "success" | "failure" | undefined;
|
|
180
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
165
181
|
}[] | undefined;
|
|
166
182
|
nextCursor?: string | undefined;
|
|
167
183
|
}>;
|