@greatwait/contracts 0.1.0-alpha.5 → 0.1.0-alpha.7
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 +1 -1
- package/dist/attempt-diagnostics.d.ts +8 -0
- package/dist/attempt-diagnostics.js +68 -0
- package/dist/authority.d.ts +4 -1
- package/dist/authority.js +1 -0
- package/dist/billing.d.ts +11 -10
- package/dist/billing.js +7 -4
- package/dist/data-export.d.ts +2 -0
- package/dist/delivery.d.ts +43 -40
- package/dist/delivery.js +14 -37
- package/dist/effective-limits.d.ts +4 -4
- package/dist/endpoints.d.ts +173 -5
- package/dist/endpoints.js +72 -1
- package/dist/first-value-journey.js +4 -4
- package/dist/http-request.d.ts +193 -0
- package/dist/http-request.js +305 -0
- package/dist/identity.d.ts +7 -7
- package/dist/index.d.ts +6 -3
- package/dist/index.js +5 -2
- package/dist/mcp.d.ts +2 -1
- package/dist/members.d.ts +141 -0
- package/dist/members.js +223 -0
- package/dist/oauth.d.ts +7 -0
- package/dist/operation-definitions.d.ts +20 -4
- package/dist/operation-definitions.js +9 -1
- package/dist/operations.d.ts +999 -135
- package/dist/operations.js +83 -10
- package/dist/organization-lifecycle.d.ts +10 -0
- package/dist/policy.js +5 -2
- package/dist/scheduling-records.d.ts +332 -8
- package/dist/scheduling-records.js +5 -0
- package/dist/scheduling.d.ts +485 -18
- package/dist/scheduling.js +77 -5
- package/dist/secrets.d.ts +7 -0
- package/dist/signatures.d.ts +1 -1
- package/dist/tenancy.d.ts +1 -1
- package/dist/tenancy.js +1 -1
- package/dist/test-sink.d.ts +27 -41
- package/dist/test-sink.js +12 -31
- package/dist/zod-values.d.ts +2 -2
- package/dist/zod-values.js +1 -1
- package/generated/v1/callback-receiver.json +4 -4
- package/generated/v1/examples/endpoints.ensure.request.json +3 -0
- package/generated/v1/examples/endpoints.ensure.response.json +20 -0
- package/generated/v1/examples/invitations.create.request.json +5 -0
- package/generated/v1/examples/invitations.create.response.json +7 -0
- package/generated/v1/examples/invitations.list.response.json +11 -0
- package/generated/v1/examples/invitations.resend.request.json +1 -0
- package/generated/v1/examples/invitations.resend.response.json +4 -0
- package/generated/v1/examples/invitations.revoke.request.json +3 -0
- package/generated/v1/examples/invitations.revoke.response.json +4 -0
- package/generated/v1/examples/members.list.response.json +13 -0
- package/generated/v1/examples/members.remove.request.json +3 -0
- package/generated/v1/examples/members.remove.response.json +4 -0
- package/generated/v1/examples/members.role.request.json +3 -0
- package/generated/v1/examples/members.role.response.json +4 -0
- package/generated/v1/examples/projectmembers.add.request.json +1 -0
- package/generated/v1/examples/projectmembers.add.response.json +4 -0
- package/generated/v1/examples/projectmembers.remove.request.json +3 -0
- package/generated/v1/examples/projectmembers.remove.response.json +4 -0
- package/generated/v1/first-value-journey.json +4 -4
- package/generated/v1/manifest.json +284 -0
- package/generated/v1/openapi.json +9387 -1021
- package/generated/v1/policy-matrix.json +72 -0
- package/generated/v1/schemas/attempts.list.response.json +105 -0
- package/generated/v1/schemas/attempts.read.response.json +105 -0
- package/generated/v1/schemas/billing.notices.response.json +16 -6
- package/generated/v1/schemas/context.read.response.json +1 -0
- package/generated/v1/schemas/credentials.connection.response.json +1 -0
- package/generated/v1/schemas/credentials.create.request.json +1 -0
- package/generated/v1/schemas/credentials.create.response.json +1 -0
- package/generated/v1/schemas/credentials.list.response.json +1 -0
- package/generated/v1/schemas/credentials.revoke.response.json +1 -0
- package/generated/v1/schemas/credentials.rotate.response.json +2 -0
- package/generated/v1/schemas/endpoints.acknowledgeSigningKeyRotation.response.json +59 -0
- package/generated/v1/schemas/endpoints.create.request.json +74 -0
- package/generated/v1/schemas/endpoints.create.response.json +59 -0
- package/generated/v1/schemas/endpoints.disable.response.json +59 -0
- package/generated/v1/schemas/endpoints.enable.response.json +59 -0
- package/generated/v1/schemas/endpoints.ensure.request.json +91 -0
- package/generated/v1/schemas/endpoints.ensure.response.json +169 -0
- package/generated/v1/schemas/endpoints.list.response.json +59 -0
- package/generated/v1/schemas/endpoints.read.response.json +59 -0
- package/generated/v1/schemas/endpoints.rotateSigningKey.response.json +59 -0
- package/generated/v1/schemas/endpoints.update.request.json +74 -0
- package/generated/v1/schemas/endpoints.update.response.json +59 -0
- package/generated/v1/schemas/grants.list.response.json +1 -0
- package/generated/v1/schemas/grants.revoke.response.json +1 -0
- package/generated/v1/schemas/invitations.create.request-headers.json +13 -0
- package/generated/v1/schemas/invitations.create.request.json +24 -0
- package/generated/v1/schemas/invitations.create.response.json +31 -0
- package/generated/v1/schemas/invitations.list.response.json +40 -0
- package/generated/v1/schemas/invitations.resend.request-headers.json +13 -0
- package/generated/v1/schemas/invitations.resend.request.json +6 -0
- package/generated/v1/schemas/invitations.resend.response.json +27 -0
- package/generated/v1/schemas/invitations.revoke.request-headers.json +13 -0
- package/generated/v1/schemas/invitations.revoke.request.json +12 -0
- package/generated/v1/schemas/invitations.revoke.response.json +27 -0
- package/generated/v1/schemas/members.list.response.json +53 -0
- package/generated/v1/schemas/members.remove.request-headers.json +13 -0
- package/generated/v1/schemas/members.remove.request.json +12 -0
- package/generated/v1/schemas/members.remove.response.json +27 -0
- package/generated/v1/schemas/members.role.request-headers.json +13 -0
- package/generated/v1/schemas/members.role.request.json +12 -0
- package/generated/v1/schemas/members.role.response.json +27 -0
- package/generated/v1/schemas/occurrences.redeliver.response.json +105 -0
- package/generated/v1/schemas/projectmembers.add.request-headers.json +13 -0
- package/generated/v1/schemas/projectmembers.add.request.json +6 -0
- package/generated/v1/schemas/projectmembers.add.response.json +27 -0
- package/generated/v1/schemas/projectmembers.remove.request-headers.json +13 -0
- package/generated/v1/schemas/projectmembers.remove.request.json +12 -0
- package/generated/v1/schemas/projectmembers.remove.response.json +27 -0
- package/generated/v1/schemas/schedules.archive.response.json +188 -1
- package/generated/v1/schemas/schedules.cancel.response.json +188 -1
- package/generated/v1/schemas/schedules.create.request.json +164 -1
- package/generated/v1/schemas/schedules.create.response.json +206 -1
- package/generated/v1/schemas/schedules.list.response.json +188 -1
- package/generated/v1/schemas/schedules.pause.response.json +188 -1
- package/generated/v1/schemas/schedules.read.response.json +188 -1
- package/generated/v1/schemas/schedules.replace.request.json +164 -1
- package/generated/v1/schemas/schedules.replace.response.json +206 -1
- package/generated/v1/schemas/schedules.resume.response.json +188 -1
- package/generated/v1/snippets/endpoints.create.json +1 -1
- package/generated/v1/snippets/endpoints.ensure.json +6 -0
- package/generated/v1/snippets/invitations.create.json +6 -0
- package/generated/v1/snippets/invitations.list.json +6 -0
- package/generated/v1/snippets/invitations.resend.json +6 -0
- package/generated/v1/snippets/invitations.revoke.json +6 -0
- package/generated/v1/snippets/journey/create-destination.json +1 -1
- package/generated/v1/snippets/members.list.json +6 -0
- package/generated/v1/snippets/members.remove.json +6 -0
- package/generated/v1/snippets/members.role.json +6 -0
- package/generated/v1/snippets/projectmembers.add.json +6 -0
- package/generated/v1/snippets/projectmembers.remove.json +6 -0
- package/package.json +1 -1
package/dist/scheduling.d.ts
CHANGED
|
@@ -36,12 +36,23 @@ import { type CallbackTrigger, type ResponseClass } from "./signatures.js";
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const SCHEDULE_STATUSES: readonly ["active", "paused", "cancelled", "completed"];
|
|
38
38
|
export declare const scheduleStatusSchema: import("zod").ZodEnum<{
|
|
39
|
-
active: "active";
|
|
40
|
-
completed: "completed";
|
|
41
39
|
paused: "paused";
|
|
40
|
+
active: "active";
|
|
42
41
|
cancelled: "cancelled";
|
|
42
|
+
completed: "completed";
|
|
43
43
|
}>;
|
|
44
44
|
export type ScheduleStatus = z.infer<typeof scheduleStatusSchema>;
|
|
45
|
+
/** A recurring schedule pauses after this many failed runs; "never" disables it. */
|
|
46
|
+
export declare const DEFAULT_AUTO_PAUSE_AFTER_FAILURES = 5;
|
|
47
|
+
export declare const autoPauseAfterFailuresSchema: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"never">]>;
|
|
48
|
+
export type AutoPauseAfterFailures = z.infer<typeof autoPauseAfterFailuresSchema>;
|
|
49
|
+
export declare const autoPauseReasonSchema: import("zod").ZodObject<{
|
|
50
|
+
failedRuns: import("zod").ZodNumber;
|
|
51
|
+
status: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
52
|
+
diagnostic: import("zod").ZodString;
|
|
53
|
+
pausedAt: import("zod").ZodString;
|
|
54
|
+
}, import("zod/v4/core").$strip>;
|
|
55
|
+
export type AutoPauseReason = z.infer<typeof autoPauseReasonSchema>;
|
|
45
56
|
/**
|
|
46
57
|
* The statuses a schedule never leaves, and from which it never fires again on
|
|
47
58
|
* its own.
|
|
@@ -337,9 +348,9 @@ export type PartitionKey = z.infer<typeof partitionKeySchema>;
|
|
|
337
348
|
*/
|
|
338
349
|
export declare const OCCURRENCE_STATES: readonly ["planned", "due", "dispatching", "retry_wait", "ambiguous", "succeeded", "terminal_failed", "cancelled", "skipped_stale"];
|
|
339
350
|
export declare const occurrenceStateSchema: import("zod").ZodEnum<{
|
|
340
|
-
due: "due";
|
|
341
351
|
succeeded: "succeeded";
|
|
342
352
|
ambiguous: "ambiguous";
|
|
353
|
+
due: "due";
|
|
343
354
|
cancelled: "cancelled";
|
|
344
355
|
planned: "planned";
|
|
345
356
|
dispatching: "dispatching";
|
|
@@ -362,9 +373,9 @@ export declare const projectOccurrenceListRequestSchema: import("zod").ZodObject
|
|
|
362
373
|
endpoint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
363
374
|
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
364
375
|
outcome: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
365
|
-
due: "due";
|
|
366
376
|
succeeded: "succeeded";
|
|
367
377
|
ambiguous: "ambiguous";
|
|
378
|
+
due: "due";
|
|
368
379
|
cancelled: "cancelled";
|
|
369
380
|
planned: "planned";
|
|
370
381
|
dispatching: "dispatching";
|
|
@@ -423,8 +434,8 @@ export type AttemptState = z.infer<typeof attemptStateSchema>;
|
|
|
423
434
|
/** Safe diagnostic codes produced by the W3-03 delivery classifier. */
|
|
424
435
|
export declare const attemptDiagnosticSchema: import("zod").ZodEnum<{
|
|
425
436
|
rate_limited: "rate_limited";
|
|
426
|
-
delivered: "delivered";
|
|
427
437
|
completion_timed_out: "completion_timed_out";
|
|
438
|
+
delivered: "delivered";
|
|
428
439
|
duplicate_inflight: "duplicate_inflight";
|
|
429
440
|
endpoint_unavailable: "endpoint_unavailable";
|
|
430
441
|
endpoint_unsafe: "endpoint_unsafe";
|
|
@@ -709,6 +720,42 @@ export declare function defaultLatenessPolicyForRecurrence(kind: Recurrence["kin
|
|
|
709
720
|
export declare const SCHEDULE_NAME_MAX_LENGTH = 120;
|
|
710
721
|
export declare const scheduleNameSchema: import("zod").ZodString;
|
|
711
722
|
export declare const scheduleSchema: import("zod").ZodObject<{
|
|
723
|
+
autoPauseAfterFailures: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"never">]>>;
|
|
724
|
+
consecutiveFailedRuns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
725
|
+
autoPauseReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
726
|
+
failedRuns: import("zod").ZodNumber;
|
|
727
|
+
status: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
728
|
+
diagnostic: import("zod").ZodString;
|
|
729
|
+
pausedAt: import("zod").ZodString;
|
|
730
|
+
}, import("zod/v4/core").$strip>>>;
|
|
731
|
+
http: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
732
|
+
method: import("zod").ZodEnum<{
|
|
733
|
+
POST: "POST";
|
|
734
|
+
PUT: "PUT";
|
|
735
|
+
GET: "GET";
|
|
736
|
+
}>;
|
|
737
|
+
body: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
738
|
+
mode: import("zod").ZodLiteral<"envelope">;
|
|
739
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
740
|
+
mode: import("zod").ZodLiteral<"none">;
|
|
741
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
742
|
+
mode: import("zod").ZodLiteral<"json">;
|
|
743
|
+
value: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
744
|
+
}, import("zod/v4/core").$strict>], "mode">;
|
|
745
|
+
headers: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
746
|
+
name: import("zod").ZodString;
|
|
747
|
+
secret: import("zod").ZodLiteral<false>;
|
|
748
|
+
value: import("zod").ZodString;
|
|
749
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
750
|
+
name: import("zod").ZodString;
|
|
751
|
+
secret: import("zod").ZodLiteral<true>;
|
|
752
|
+
configured: import("zod").ZodLiteral<true>;
|
|
753
|
+
value: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
754
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
755
|
+
name: import("zod").ZodString;
|
|
756
|
+
suppressed: import("zod").ZodLiteral<true>;
|
|
757
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
758
|
+
}, import("zod/v4/core").$strict>>;
|
|
712
759
|
archivedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
713
760
|
data: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
714
761
|
createdAt: import("zod").ZodString;
|
|
@@ -752,10 +799,10 @@ export declare const scheduleSchema: import("zod").ZodObject<{
|
|
|
752
799
|
timeZone: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
|
|
753
800
|
}, import("zod/v4/core").$strip>], "kind">;
|
|
754
801
|
status: import("zod").ZodEnum<{
|
|
755
|
-
active: "active";
|
|
756
|
-
completed: "completed";
|
|
757
802
|
paused: "paused";
|
|
803
|
+
active: "active";
|
|
758
804
|
cancelled: "cancelled";
|
|
805
|
+
completed: "completed";
|
|
759
806
|
}>;
|
|
760
807
|
updatedAt: import("zod").ZodString;
|
|
761
808
|
version: import("zod").ZodNumber;
|
|
@@ -773,6 +820,42 @@ export type Schedule = z.infer<typeof scheduleSchema>;
|
|
|
773
820
|
*/
|
|
774
821
|
export declare const schedulePageSchema: import("zod").ZodObject<{
|
|
775
822
|
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
823
|
+
autoPauseAfterFailures: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"never">]>>;
|
|
824
|
+
consecutiveFailedRuns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
825
|
+
autoPauseReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
826
|
+
failedRuns: import("zod").ZodNumber;
|
|
827
|
+
status: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
828
|
+
diagnostic: import("zod").ZodString;
|
|
829
|
+
pausedAt: import("zod").ZodString;
|
|
830
|
+
}, import("zod/v4/core").$strip>>>;
|
|
831
|
+
http: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
832
|
+
method: import("zod").ZodEnum<{
|
|
833
|
+
POST: "POST";
|
|
834
|
+
PUT: "PUT";
|
|
835
|
+
GET: "GET";
|
|
836
|
+
}>;
|
|
837
|
+
body: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
838
|
+
mode: import("zod").ZodLiteral<"envelope">;
|
|
839
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
840
|
+
mode: import("zod").ZodLiteral<"none">;
|
|
841
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
842
|
+
mode: import("zod").ZodLiteral<"json">;
|
|
843
|
+
value: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
844
|
+
}, import("zod/v4/core").$strict>], "mode">;
|
|
845
|
+
headers: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
846
|
+
name: import("zod").ZodString;
|
|
847
|
+
secret: import("zod").ZodLiteral<false>;
|
|
848
|
+
value: import("zod").ZodString;
|
|
849
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
850
|
+
name: import("zod").ZodString;
|
|
851
|
+
secret: import("zod").ZodLiteral<true>;
|
|
852
|
+
configured: import("zod").ZodLiteral<true>;
|
|
853
|
+
value: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
854
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
855
|
+
name: import("zod").ZodString;
|
|
856
|
+
suppressed: import("zod").ZodLiteral<true>;
|
|
857
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
858
|
+
}, import("zod/v4/core").$strict>>;
|
|
776
859
|
archivedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
777
860
|
data: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
778
861
|
createdAt: import("zod").ZodString;
|
|
@@ -816,10 +899,10 @@ export declare const schedulePageSchema: import("zod").ZodObject<{
|
|
|
816
899
|
timeZone: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
|
|
817
900
|
}, import("zod/v4/core").$strip>], "kind">;
|
|
818
901
|
status: import("zod").ZodEnum<{
|
|
819
|
-
active: "active";
|
|
820
|
-
completed: "completed";
|
|
821
902
|
paused: "paused";
|
|
903
|
+
active: "active";
|
|
822
904
|
cancelled: "cancelled";
|
|
905
|
+
completed: "completed";
|
|
823
906
|
}>;
|
|
824
907
|
updatedAt: import("zod").ZodString;
|
|
825
908
|
version: import("zod").ZodNumber;
|
|
@@ -850,9 +933,9 @@ export declare const occurrenceSchema: import("zod").ZodObject<{
|
|
|
850
933
|
sequence: import("zod").ZodNumber;
|
|
851
934
|
settledAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
852
935
|
state: import("zod").ZodEnum<{
|
|
853
|
-
due: "due";
|
|
854
936
|
succeeded: "succeeded";
|
|
855
937
|
ambiguous: "ambiguous";
|
|
938
|
+
due: "due";
|
|
856
939
|
cancelled: "cancelled";
|
|
857
940
|
planned: "planned";
|
|
858
941
|
dispatching: "dispatching";
|
|
@@ -920,6 +1003,61 @@ export declare const attemptFailureSnippetSchema: import("zod").ZodObject<{
|
|
|
920
1003
|
truncated: import("zod").ZodBoolean;
|
|
921
1004
|
}, import("zod/v4/core").$strip>;
|
|
922
1005
|
export type AttemptFailureSnippet = z.infer<typeof attemptFailureSnippetSchema>;
|
|
1006
|
+
/** Stored diagnostic content, available only under the attempt's verified authority. */
|
|
1007
|
+
export declare const attemptCapturedBodySchema: import("zod").ZodObject<{
|
|
1008
|
+
contentType: import("zod").ZodString;
|
|
1009
|
+
encoding: import("zod").ZodEnum<{
|
|
1010
|
+
utf8: "utf8";
|
|
1011
|
+
base64: "base64";
|
|
1012
|
+
}>;
|
|
1013
|
+
content: import("zod").ZodString;
|
|
1014
|
+
capturedBytes: import("zod").ZodInt;
|
|
1015
|
+
originalBytes: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
1016
|
+
truncated: import("zod").ZodBoolean;
|
|
1017
|
+
redacted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1018
|
+
incomplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1019
|
+
}, import("zod/v4/core").$strip>;
|
|
1020
|
+
export declare const attemptResponseSchema: import("zod").ZodObject<{
|
|
1021
|
+
statusText: import("zod").ZodString;
|
|
1022
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1023
|
+
name: import("zod").ZodString;
|
|
1024
|
+
value: import("zod").ZodString;
|
|
1025
|
+
}, import("zod/v4/core").$strip>>;
|
|
1026
|
+
bodyState: import("zod").ZodEnum<{
|
|
1027
|
+
captured: "captured";
|
|
1028
|
+
empty: "empty";
|
|
1029
|
+
expired: "expired";
|
|
1030
|
+
not_captured: "not_captured";
|
|
1031
|
+
}>;
|
|
1032
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1033
|
+
contentType: import("zod").ZodString;
|
|
1034
|
+
encoding: import("zod").ZodEnum<{
|
|
1035
|
+
utf8: "utf8";
|
|
1036
|
+
base64: "base64";
|
|
1037
|
+
}>;
|
|
1038
|
+
content: import("zod").ZodString;
|
|
1039
|
+
capturedBytes: import("zod").ZodInt;
|
|
1040
|
+
originalBytes: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
1041
|
+
truncated: import("zod").ZodBoolean;
|
|
1042
|
+
redacted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1043
|
+
incomplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1044
|
+
}, import("zod/v4/core").$strip>>;
|
|
1045
|
+
}, import("zod/v4/core").$strip>;
|
|
1046
|
+
export type AttemptResponse = z.infer<typeof attemptResponseSchema>;
|
|
1047
|
+
export declare const attemptRequestSchema: import("zod").ZodObject<{
|
|
1048
|
+
method: import("zod").ZodEnum<{
|
|
1049
|
+
POST: "POST";
|
|
1050
|
+
PUT: "PUT";
|
|
1051
|
+
GET: "GET";
|
|
1052
|
+
}>;
|
|
1053
|
+
url: import("zod").ZodString;
|
|
1054
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1055
|
+
name: import("zod").ZodString;
|
|
1056
|
+
value: import("zod").ZodString;
|
|
1057
|
+
}, import("zod/v4/core").$strip>>;
|
|
1058
|
+
body: import("zod").ZodString;
|
|
1059
|
+
}, import("zod/v4/core").$strip>;
|
|
1060
|
+
export type AttemptRequest = z.infer<typeof attemptRequestSchema>;
|
|
923
1061
|
export declare const attemptSchema: import("zod").ZodObject<{
|
|
924
1062
|
id: import("zod").ZodString;
|
|
925
1063
|
localReceiptRecoveries: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
@@ -939,6 +1077,50 @@ export declare const attemptSchema: import("zod").ZodObject<{
|
|
|
939
1077
|
text: import("zod").ZodString;
|
|
940
1078
|
truncated: import("zod").ZodBoolean;
|
|
941
1079
|
}, import("zod/v4/core").$strip>>;
|
|
1080
|
+
response: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1081
|
+
statusText: import("zod").ZodString;
|
|
1082
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1083
|
+
name: import("zod").ZodString;
|
|
1084
|
+
value: import("zod").ZodString;
|
|
1085
|
+
}, import("zod/v4/core").$strip>>;
|
|
1086
|
+
bodyState: import("zod").ZodEnum<{
|
|
1087
|
+
captured: "captured";
|
|
1088
|
+
empty: "empty";
|
|
1089
|
+
expired: "expired";
|
|
1090
|
+
not_captured: "not_captured";
|
|
1091
|
+
}>;
|
|
1092
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1093
|
+
contentType: import("zod").ZodString;
|
|
1094
|
+
encoding: import("zod").ZodEnum<{
|
|
1095
|
+
utf8: "utf8";
|
|
1096
|
+
base64: "base64";
|
|
1097
|
+
}>;
|
|
1098
|
+
content: import("zod").ZodString;
|
|
1099
|
+
capturedBytes: import("zod").ZodInt;
|
|
1100
|
+
originalBytes: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
1101
|
+
truncated: import("zod").ZodBoolean;
|
|
1102
|
+
redacted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1103
|
+
incomplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1104
|
+
}, import("zod/v4/core").$strip>>;
|
|
1105
|
+
}, import("zod/v4/core").$strip>>;
|
|
1106
|
+
request: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1107
|
+
method: import("zod").ZodEnum<{
|
|
1108
|
+
POST: "POST";
|
|
1109
|
+
PUT: "PUT";
|
|
1110
|
+
GET: "GET";
|
|
1111
|
+
}>;
|
|
1112
|
+
url: import("zod").ZodString;
|
|
1113
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1114
|
+
name: import("zod").ZodString;
|
|
1115
|
+
value: import("zod").ZodString;
|
|
1116
|
+
}, import("zod/v4/core").$strip>>;
|
|
1117
|
+
body: import("zod").ZodString;
|
|
1118
|
+
}, import("zod/v4/core").$strip>>;
|
|
1119
|
+
requestState: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1120
|
+
captured: "captured";
|
|
1121
|
+
expired: "expired";
|
|
1122
|
+
not_captured: "not_captured";
|
|
1123
|
+
}>>;
|
|
942
1124
|
responseHeaders: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
943
1125
|
name: import("zod").ZodString;
|
|
944
1126
|
value: import("zod").ZodString;
|
|
@@ -971,8 +1153,8 @@ export declare const attemptSchema: import("zod").ZodObject<{
|
|
|
971
1153
|
delivery: import("zod").ZodString;
|
|
972
1154
|
diagnostic: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
973
1155
|
rate_limited: "rate_limited";
|
|
974
|
-
delivered: "delivered";
|
|
975
1156
|
completion_timed_out: "completion_timed_out";
|
|
1157
|
+
delivered: "delivered";
|
|
976
1158
|
duplicate_inflight: "duplicate_inflight";
|
|
977
1159
|
endpoint_unavailable: "endpoint_unavailable";
|
|
978
1160
|
endpoint_unsafe: "endpoint_unsafe";
|
|
@@ -997,9 +1179,9 @@ export declare const occurrencePageSchema: import("zod").ZodObject<{
|
|
|
997
1179
|
sequence: import("zod").ZodNumber;
|
|
998
1180
|
settledAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
999
1181
|
state: import("zod").ZodEnum<{
|
|
1000
|
-
due: "due";
|
|
1001
1182
|
succeeded: "succeeded";
|
|
1002
1183
|
ambiguous: "ambiguous";
|
|
1184
|
+
due: "due";
|
|
1003
1185
|
cancelled: "cancelled";
|
|
1004
1186
|
planned: "planned";
|
|
1005
1187
|
dispatching: "dispatching";
|
|
@@ -1034,9 +1216,9 @@ export declare const projectOccurrencePageSchema: import("zod").ZodObject<{
|
|
|
1034
1216
|
sequence: import("zod").ZodNumber;
|
|
1035
1217
|
settledAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1036
1218
|
state: import("zod").ZodEnum<{
|
|
1037
|
-
due: "due";
|
|
1038
1219
|
succeeded: "succeeded";
|
|
1039
1220
|
ambiguous: "ambiguous";
|
|
1221
|
+
due: "due";
|
|
1040
1222
|
cancelled: "cancelled";
|
|
1041
1223
|
planned: "planned";
|
|
1042
1224
|
dispatching: "dispatching";
|
|
@@ -1077,9 +1259,9 @@ export declare const occurrenceViewSchema: import("zod").ZodObject<{
|
|
|
1077
1259
|
sequence: import("zod").ZodNumber;
|
|
1078
1260
|
settledAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1079
1261
|
state: import("zod").ZodEnum<{
|
|
1080
|
-
due: "due";
|
|
1081
1262
|
succeeded: "succeeded";
|
|
1082
1263
|
ambiguous: "ambiguous";
|
|
1264
|
+
due: "due";
|
|
1083
1265
|
cancelled: "cancelled";
|
|
1084
1266
|
planned: "planned";
|
|
1085
1267
|
dispatching: "dispatching";
|
|
@@ -1121,6 +1303,50 @@ export declare const attemptPageSchema: import("zod").ZodObject<{
|
|
|
1121
1303
|
text: import("zod").ZodString;
|
|
1122
1304
|
truncated: import("zod").ZodBoolean;
|
|
1123
1305
|
}, import("zod/v4/core").$strip>>;
|
|
1306
|
+
response: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1307
|
+
statusText: import("zod").ZodString;
|
|
1308
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1309
|
+
name: import("zod").ZodString;
|
|
1310
|
+
value: import("zod").ZodString;
|
|
1311
|
+
}, import("zod/v4/core").$strip>>;
|
|
1312
|
+
bodyState: import("zod").ZodEnum<{
|
|
1313
|
+
captured: "captured";
|
|
1314
|
+
empty: "empty";
|
|
1315
|
+
expired: "expired";
|
|
1316
|
+
not_captured: "not_captured";
|
|
1317
|
+
}>;
|
|
1318
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1319
|
+
contentType: import("zod").ZodString;
|
|
1320
|
+
encoding: import("zod").ZodEnum<{
|
|
1321
|
+
utf8: "utf8";
|
|
1322
|
+
base64: "base64";
|
|
1323
|
+
}>;
|
|
1324
|
+
content: import("zod").ZodString;
|
|
1325
|
+
capturedBytes: import("zod").ZodInt;
|
|
1326
|
+
originalBytes: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
1327
|
+
truncated: import("zod").ZodBoolean;
|
|
1328
|
+
redacted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1329
|
+
incomplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1330
|
+
}, import("zod/v4/core").$strip>>;
|
|
1331
|
+
}, import("zod/v4/core").$strip>>;
|
|
1332
|
+
request: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1333
|
+
method: import("zod").ZodEnum<{
|
|
1334
|
+
POST: "POST";
|
|
1335
|
+
PUT: "PUT";
|
|
1336
|
+
GET: "GET";
|
|
1337
|
+
}>;
|
|
1338
|
+
url: import("zod").ZodString;
|
|
1339
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1340
|
+
name: import("zod").ZodString;
|
|
1341
|
+
value: import("zod").ZodString;
|
|
1342
|
+
}, import("zod/v4/core").$strip>>;
|
|
1343
|
+
body: import("zod").ZodString;
|
|
1344
|
+
}, import("zod/v4/core").$strip>>;
|
|
1345
|
+
requestState: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1346
|
+
captured: "captured";
|
|
1347
|
+
expired: "expired";
|
|
1348
|
+
not_captured: "not_captured";
|
|
1349
|
+
}>>;
|
|
1124
1350
|
responseHeaders: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1125
1351
|
name: import("zod").ZodString;
|
|
1126
1352
|
value: import("zod").ZodString;
|
|
@@ -1153,8 +1379,8 @@ export declare const attemptPageSchema: import("zod").ZodObject<{
|
|
|
1153
1379
|
delivery: import("zod").ZodString;
|
|
1154
1380
|
diagnostic: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1155
1381
|
rate_limited: "rate_limited";
|
|
1156
|
-
delivered: "delivered";
|
|
1157
1382
|
completion_timed_out: "completion_timed_out";
|
|
1383
|
+
delivered: "delivered";
|
|
1158
1384
|
duplicate_inflight: "duplicate_inflight";
|
|
1159
1385
|
endpoint_unavailable: "endpoint_unavailable";
|
|
1160
1386
|
endpoint_unsafe: "endpoint_unsafe";
|
|
@@ -1195,6 +1421,50 @@ export declare const attemptViewSchema: import("zod").ZodObject<{
|
|
|
1195
1421
|
text: import("zod").ZodString;
|
|
1196
1422
|
truncated: import("zod").ZodBoolean;
|
|
1197
1423
|
}, import("zod/v4/core").$strip>>;
|
|
1424
|
+
response: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1425
|
+
statusText: import("zod").ZodString;
|
|
1426
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1427
|
+
name: import("zod").ZodString;
|
|
1428
|
+
value: import("zod").ZodString;
|
|
1429
|
+
}, import("zod/v4/core").$strip>>;
|
|
1430
|
+
bodyState: import("zod").ZodEnum<{
|
|
1431
|
+
captured: "captured";
|
|
1432
|
+
empty: "empty";
|
|
1433
|
+
expired: "expired";
|
|
1434
|
+
not_captured: "not_captured";
|
|
1435
|
+
}>;
|
|
1436
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1437
|
+
contentType: import("zod").ZodString;
|
|
1438
|
+
encoding: import("zod").ZodEnum<{
|
|
1439
|
+
utf8: "utf8";
|
|
1440
|
+
base64: "base64";
|
|
1441
|
+
}>;
|
|
1442
|
+
content: import("zod").ZodString;
|
|
1443
|
+
capturedBytes: import("zod").ZodInt;
|
|
1444
|
+
originalBytes: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
1445
|
+
truncated: import("zod").ZodBoolean;
|
|
1446
|
+
redacted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1447
|
+
incomplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1448
|
+
}, import("zod/v4/core").$strip>>;
|
|
1449
|
+
}, import("zod/v4/core").$strip>>;
|
|
1450
|
+
request: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1451
|
+
method: import("zod").ZodEnum<{
|
|
1452
|
+
POST: "POST";
|
|
1453
|
+
PUT: "PUT";
|
|
1454
|
+
GET: "GET";
|
|
1455
|
+
}>;
|
|
1456
|
+
url: import("zod").ZodString;
|
|
1457
|
+
headers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1458
|
+
name: import("zod").ZodString;
|
|
1459
|
+
value: import("zod").ZodString;
|
|
1460
|
+
}, import("zod/v4/core").$strip>>;
|
|
1461
|
+
body: import("zod").ZodString;
|
|
1462
|
+
}, import("zod/v4/core").$strip>>;
|
|
1463
|
+
requestState: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1464
|
+
captured: "captured";
|
|
1465
|
+
expired: "expired";
|
|
1466
|
+
not_captured: "not_captured";
|
|
1467
|
+
}>>;
|
|
1198
1468
|
responseHeaders: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1199
1469
|
name: import("zod").ZodString;
|
|
1200
1470
|
value: import("zod").ZodString;
|
|
@@ -1227,8 +1497,8 @@ export declare const attemptViewSchema: import("zod").ZodObject<{
|
|
|
1227
1497
|
delivery: import("zod").ZodString;
|
|
1228
1498
|
diagnostic: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1229
1499
|
rate_limited: "rate_limited";
|
|
1230
|
-
delivered: "delivered";
|
|
1231
1500
|
completion_timed_out: "completion_timed_out";
|
|
1501
|
+
delivered: "delivered";
|
|
1232
1502
|
duplicate_inflight: "duplicate_inflight";
|
|
1233
1503
|
endpoint_unavailable: "endpoint_unavailable";
|
|
1234
1504
|
endpoint_unsafe: "endpoint_unsafe";
|
|
@@ -1264,9 +1534,9 @@ export declare const scheduleViewSchema: import("zod").ZodObject<{
|
|
|
1264
1534
|
sequence: import("zod").ZodNumber;
|
|
1265
1535
|
settledAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1266
1536
|
state: import("zod").ZodEnum<{
|
|
1267
|
-
due: "due";
|
|
1268
1537
|
succeeded: "succeeded";
|
|
1269
1538
|
ambiguous: "ambiguous";
|
|
1539
|
+
due: "due";
|
|
1270
1540
|
cancelled: "cancelled";
|
|
1271
1541
|
planned: "planned";
|
|
1272
1542
|
dispatching: "dispatching";
|
|
@@ -1286,6 +1556,42 @@ export declare const scheduleViewSchema: import("zod").ZodObject<{
|
|
|
1286
1556
|
attemptCount: import("zod").ZodNumber;
|
|
1287
1557
|
}, import("zod/v4/core").$strip>;
|
|
1288
1558
|
schedule: import("zod").ZodObject<{
|
|
1559
|
+
autoPauseAfterFailures: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"never">]>>;
|
|
1560
|
+
consecutiveFailedRuns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1561
|
+
autoPauseReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
1562
|
+
failedRuns: import("zod").ZodNumber;
|
|
1563
|
+
status: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1564
|
+
diagnostic: import("zod").ZodString;
|
|
1565
|
+
pausedAt: import("zod").ZodString;
|
|
1566
|
+
}, import("zod/v4/core").$strip>>>;
|
|
1567
|
+
http: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1568
|
+
method: import("zod").ZodEnum<{
|
|
1569
|
+
POST: "POST";
|
|
1570
|
+
PUT: "PUT";
|
|
1571
|
+
GET: "GET";
|
|
1572
|
+
}>;
|
|
1573
|
+
body: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1574
|
+
mode: import("zod").ZodLiteral<"envelope">;
|
|
1575
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1576
|
+
mode: import("zod").ZodLiteral<"none">;
|
|
1577
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1578
|
+
mode: import("zod").ZodLiteral<"json">;
|
|
1579
|
+
value: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
1580
|
+
}, import("zod/v4/core").$strict>], "mode">;
|
|
1581
|
+
headers: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1582
|
+
name: import("zod").ZodString;
|
|
1583
|
+
secret: import("zod").ZodLiteral<false>;
|
|
1584
|
+
value: import("zod").ZodString;
|
|
1585
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1586
|
+
name: import("zod").ZodString;
|
|
1587
|
+
secret: import("zod").ZodLiteral<true>;
|
|
1588
|
+
configured: import("zod").ZodLiteral<true>;
|
|
1589
|
+
value: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
1590
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1591
|
+
name: import("zod").ZodString;
|
|
1592
|
+
suppressed: import("zod").ZodLiteral<true>;
|
|
1593
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
1594
|
+
}, import("zod/v4/core").$strict>>;
|
|
1289
1595
|
archivedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1290
1596
|
data: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
1291
1597
|
createdAt: import("zod").ZodString;
|
|
@@ -1329,16 +1635,147 @@ export declare const scheduleViewSchema: import("zod").ZodObject<{
|
|
|
1329
1635
|
timeZone: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
|
|
1330
1636
|
}, import("zod/v4/core").$strip>], "kind">;
|
|
1331
1637
|
status: import("zod").ZodEnum<{
|
|
1638
|
+
paused: "paused";
|
|
1332
1639
|
active: "active";
|
|
1640
|
+
cancelled: "cancelled";
|
|
1333
1641
|
completed: "completed";
|
|
1642
|
+
}>;
|
|
1643
|
+
updatedAt: import("zod").ZodString;
|
|
1644
|
+
version: import("zod").ZodNumber;
|
|
1645
|
+
}, import("zod/v4/core").$strip>;
|
|
1646
|
+
}, import("zod/v4/core").$strip>;
|
|
1647
|
+
export type ScheduleView = z.infer<typeof scheduleViewSchema>;
|
|
1648
|
+
/**
|
|
1649
|
+
* What a schedule create or replace answers: the schedule view, and — when the
|
|
1650
|
+
* request named its destination by `url` — where that endpoint's signing
|
|
1651
|
+
* secret is (W9-44). Present only then, because only then can the caller have
|
|
1652
|
+
* an endpoint whose secret it never held.
|
|
1653
|
+
*/
|
|
1654
|
+
export declare const scheduleWrittenViewSchema: import("zod").ZodObject<{
|
|
1655
|
+
occurrence: import("zod").ZodObject<{
|
|
1656
|
+
generation: import("zod").ZodNumber;
|
|
1657
|
+
id: import("zod").ZodString;
|
|
1658
|
+
plannedFor: import("zod").ZodString;
|
|
1659
|
+
schedule: import("zod").ZodString;
|
|
1660
|
+
sequence: import("zod").ZodNumber;
|
|
1661
|
+
settledAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1662
|
+
state: import("zod").ZodEnum<{
|
|
1663
|
+
succeeded: "succeeded";
|
|
1664
|
+
ambiguous: "ambiguous";
|
|
1665
|
+
due: "due";
|
|
1666
|
+
cancelled: "cancelled";
|
|
1667
|
+
planned: "planned";
|
|
1668
|
+
dispatching: "dispatching";
|
|
1669
|
+
retry_wait: "retry_wait";
|
|
1670
|
+
terminal_failed: "terminal_failed";
|
|
1671
|
+
skipped_stale: "skipped_stale";
|
|
1672
|
+
}>;
|
|
1673
|
+
firstAttemptLatenessMs: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
1674
|
+
firstAttemptStartedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1675
|
+
timingEligibility: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1676
|
+
customer_blocked: "customer_blocked";
|
|
1677
|
+
eligible: "eligible";
|
|
1678
|
+
platform_blocked: "platform_blocked";
|
|
1679
|
+
}>>;
|
|
1680
|
+
timingEligibilityReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1681
|
+
timingPolicyVersion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1682
|
+
attemptCount: import("zod").ZodNumber;
|
|
1683
|
+
}, import("zod/v4/core").$strip>;
|
|
1684
|
+
schedule: import("zod").ZodObject<{
|
|
1685
|
+
autoPauseAfterFailures: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"never">]>>;
|
|
1686
|
+
consecutiveFailedRuns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1687
|
+
autoPauseReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
1688
|
+
failedRuns: import("zod").ZodNumber;
|
|
1689
|
+
status: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1690
|
+
diagnostic: import("zod").ZodString;
|
|
1691
|
+
pausedAt: import("zod").ZodString;
|
|
1692
|
+
}, import("zod/v4/core").$strip>>>;
|
|
1693
|
+
http: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1694
|
+
method: import("zod").ZodEnum<{
|
|
1695
|
+
POST: "POST";
|
|
1696
|
+
PUT: "PUT";
|
|
1697
|
+
GET: "GET";
|
|
1698
|
+
}>;
|
|
1699
|
+
body: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1700
|
+
mode: import("zod").ZodLiteral<"envelope">;
|
|
1701
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1702
|
+
mode: import("zod").ZodLiteral<"none">;
|
|
1703
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1704
|
+
mode: import("zod").ZodLiteral<"json">;
|
|
1705
|
+
value: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
1706
|
+
}, import("zod/v4/core").$strict>], "mode">;
|
|
1707
|
+
headers: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1708
|
+
name: import("zod").ZodString;
|
|
1709
|
+
secret: import("zod").ZodLiteral<false>;
|
|
1710
|
+
value: import("zod").ZodString;
|
|
1711
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1712
|
+
name: import("zod").ZodString;
|
|
1713
|
+
secret: import("zod").ZodLiteral<true>;
|
|
1714
|
+
configured: import("zod").ZodLiteral<true>;
|
|
1715
|
+
value: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
1716
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1717
|
+
name: import("zod").ZodString;
|
|
1718
|
+
suppressed: import("zod").ZodLiteral<true>;
|
|
1719
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
1720
|
+
}, import("zod/v4/core").$strict>>;
|
|
1721
|
+
archivedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1722
|
+
data: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
1723
|
+
createdAt: import("zod").ZodString;
|
|
1724
|
+
delivery: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1725
|
+
completion: import("zod").ZodEnum<{
|
|
1726
|
+
response: "response";
|
|
1727
|
+
callback: "callback";
|
|
1728
|
+
}>;
|
|
1729
|
+
maxDurationSeconds: import("zod").ZodNumber;
|
|
1730
|
+
onOverlap: import("zod").ZodEnum<{
|
|
1731
|
+
skip: "skip";
|
|
1732
|
+
queue: "queue";
|
|
1733
|
+
}>;
|
|
1734
|
+
}, import("zod/v4/core").$strip>>;
|
|
1735
|
+
endpoint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1736
|
+
endpointUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1737
|
+
generation: import("zod").ZodNumber;
|
|
1738
|
+
id: import("zod").ZodString;
|
|
1739
|
+
latencyClass: import("zod").ZodEnum<{
|
|
1740
|
+
realtime: "realtime";
|
|
1741
|
+
bulk: "bulk";
|
|
1742
|
+
}>;
|
|
1743
|
+
lateness: import("zod").ZodObject<{
|
|
1744
|
+
maxStalenessSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1745
|
+
policy: import("zod").ZodEnum<{
|
|
1746
|
+
skipAhead: "skipAhead";
|
|
1747
|
+
catchUp: "catchUp";
|
|
1748
|
+
}>;
|
|
1749
|
+
}, import("zod/v4/core").$strict>;
|
|
1750
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1751
|
+
partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1752
|
+
nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1753
|
+
recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1754
|
+
kind: import("zod").ZodLiteral<"at">;
|
|
1755
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1756
|
+
everySeconds: import("zod").ZodNumber;
|
|
1757
|
+
kind: import("zod").ZodLiteral<"every">;
|
|
1758
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1759
|
+
cron: import("zod").ZodString;
|
|
1760
|
+
kind: import("zod").ZodLiteral<"cron">;
|
|
1761
|
+
timeZone: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
|
|
1762
|
+
}, import("zod/v4/core").$strip>], "kind">;
|
|
1763
|
+
status: import("zod").ZodEnum<{
|
|
1334
1764
|
paused: "paused";
|
|
1765
|
+
active: "active";
|
|
1335
1766
|
cancelled: "cancelled";
|
|
1767
|
+
completed: "completed";
|
|
1336
1768
|
}>;
|
|
1337
1769
|
updatedAt: import("zod").ZodString;
|
|
1338
1770
|
version: import("zod").ZodNumber;
|
|
1339
1771
|
}, import("zod/v4/core").$strip>;
|
|
1772
|
+
endpointSigningSecret: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1773
|
+
guidance: import("zod").ZodString;
|
|
1774
|
+
returned: import("zod").ZodLiteral<false>;
|
|
1775
|
+
revealUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1776
|
+
}, import("zod/v4/core").$strip>>;
|
|
1340
1777
|
}, import("zod/v4/core").$strip>;
|
|
1341
|
-
export type
|
|
1778
|
+
export type ScheduleWrittenView = z.infer<typeof scheduleWrittenViewSchema>;
|
|
1342
1779
|
/**
|
|
1343
1780
|
* The four ways a caller may say when a schedule happens.
|
|
1344
1781
|
*
|
|
@@ -1364,6 +1801,35 @@ export declare const RECURRENCE_REQUEST_FIELDS: readonly ["at", "cron", "delaySe
|
|
|
1364
1801
|
* a customer named is the worst kind of helpful.
|
|
1365
1802
|
*/
|
|
1366
1803
|
export declare const scheduleRequestSchema: import("zod").ZodObject<{
|
|
1804
|
+
autoPauseAfterFailures: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"never">]>>;
|
|
1805
|
+
http: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1806
|
+
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1807
|
+
POST: "POST";
|
|
1808
|
+
PUT: "PUT";
|
|
1809
|
+
GET: "GET";
|
|
1810
|
+
}>>;
|
|
1811
|
+
body: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1812
|
+
mode: import("zod").ZodLiteral<"envelope">;
|
|
1813
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1814
|
+
mode: import("zod").ZodLiteral<"json">;
|
|
1815
|
+
value: import("zod").ZodJSONSchema;
|
|
1816
|
+
}, import("zod/v4/core").$strict>], "mode">>;
|
|
1817
|
+
headers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1818
|
+
action: import("zod").ZodLiteral<"set">;
|
|
1819
|
+
name: import("zod").ZodString;
|
|
1820
|
+
value: import("zod").ZodString;
|
|
1821
|
+
secret: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1822
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1823
|
+
action: import("zod").ZodLiteral<"keep">;
|
|
1824
|
+
name: import("zod").ZodString;
|
|
1825
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1826
|
+
action: import("zod").ZodLiteral<"remove">;
|
|
1827
|
+
name: import("zod").ZodString;
|
|
1828
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1829
|
+
action: import("zod").ZodLiteral<"suppress">;
|
|
1830
|
+
name: import("zod").ZodString;
|
|
1831
|
+
}, import("zod/v4/core").$strict>], "action">>>;
|
|
1832
|
+
}, import("zod/v4/core").$strict>>;
|
|
1367
1833
|
at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1368
1834
|
cron: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1369
1835
|
data: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
@@ -1381,6 +1847,7 @@ export declare const scheduleRequestSchema: import("zod").ZodObject<{
|
|
|
1381
1847
|
}, import("zod/v4/core").$strict>>;
|
|
1382
1848
|
everySeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1383
1849
|
endpoint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1850
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1384
1851
|
latencyClass: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1385
1852
|
realtime: "realtime";
|
|
1386
1853
|
bulk: "bulk";
|