@zapier/zapier-sdk 0.60.0 → 0.62.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +229 -1
  3. package/dist/experimental.cjs +384 -10
  4. package/dist/experimental.d.mts +182 -2
  5. package/dist/experimental.d.ts +180 -0
  6. package/dist/experimental.d.ts.map +1 -1
  7. package/dist/experimental.js +14 -0
  8. package/dist/experimental.mjs +384 -11
  9. package/dist/{index-iKbnOz6r.d.mts → index-3fBEDEsp.d.mts} +25 -1
  10. package/dist/{index-iKbnOz6r.d.ts → index-3fBEDEsp.d.ts} +25 -1
  11. package/dist/index.cjs +19 -9
  12. package/dist/index.d.mts +1 -1
  13. package/dist/index.mjs +19 -10
  14. package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +45 -0
  15. package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts.map +1 -0
  16. package/dist/plugins/codeSubstrate/createWorkflow/index.js +19 -0
  17. package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts +16 -0
  18. package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts.map +1 -0
  19. package/dist/plugins/codeSubstrate/createWorkflow/schemas.js +25 -0
  20. package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +39 -0
  21. package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -0
  22. package/dist/plugins/codeSubstrate/deleteWorkflow/index.js +27 -0
  23. package/dist/plugins/codeSubstrate/deleteWorkflow/schemas.d.ts +6 -0
  24. package/dist/plugins/codeSubstrate/deleteWorkflow/schemas.d.ts.map +1 -0
  25. package/dist/plugins/codeSubstrate/deleteWorkflow/schemas.js +6 -0
  26. package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +40 -0
  27. package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -0
  28. package/dist/plugins/codeSubstrate/disableWorkflow/index.js +20 -0
  29. package/dist/plugins/codeSubstrate/disableWorkflow/schemas.d.ts +11 -0
  30. package/dist/plugins/codeSubstrate/disableWorkflow/schemas.d.ts.map +1 -0
  31. package/dist/plugins/codeSubstrate/disableWorkflow/schemas.js +12 -0
  32. package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +40 -0
  33. package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -0
  34. package/dist/plugins/codeSubstrate/enableWorkflow/index.js +20 -0
  35. package/dist/plugins/codeSubstrate/enableWorkflow/schemas.d.ts +11 -0
  36. package/dist/plugins/codeSubstrate/enableWorkflow/schemas.d.ts.map +1 -0
  37. package/dist/plugins/codeSubstrate/enableWorkflow/schemas.js +12 -0
  38. package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts +89 -0
  39. package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts.map +1 -0
  40. package/dist/plugins/codeSubstrate/getDurableRun/index.js +20 -0
  41. package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts +178 -0
  42. package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts.map +1 -0
  43. package/dist/plugins/codeSubstrate/getDurableRun/schemas.js +130 -0
  44. package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts +55 -0
  45. package/dist/plugins/codeSubstrate/listDurableRuns/index.d.ts.map +1 -0
  46. package/dist/plugins/codeSubstrate/listDurableRuns/index.js +27 -0
  47. package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts +73 -0
  48. package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts.map +1 -0
  49. package/dist/plugins/codeSubstrate/listDurableRuns/schemas.js +59 -0
  50. package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +47 -0
  51. package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -0
  52. package/dist/plugins/codeSubstrate/updateWorkflow/index.js +27 -0
  53. package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts +18 -0
  54. package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts.map +1 -0
  55. package/dist/plugins/codeSubstrate/updateWorkflow/schemas.js +30 -0
  56. package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
  57. package/dist/plugins/deleteClientCredentials/index.js +1 -4
  58. package/dist/resolvers/clientId.d.ts.map +1 -1
  59. package/dist/resolvers/clientId.js +2 -4
  60. package/dist/resolvers/durableRunId.d.ts +4 -0
  61. package/dist/resolvers/durableRunId.d.ts.map +1 -0
  62. package/dist/resolvers/durableRunId.js +14 -0
  63. package/dist/resolvers/index.d.ts +1 -0
  64. package/dist/resolvers/index.d.ts.map +1 -1
  65. package/dist/resolvers/index.js +1 -0
  66. package/package.json +1 -1
@@ -2887,7 +2887,7 @@ async function invalidateCredentialsToken(options) {
2887
2887
  }
2888
2888
 
2889
2889
  // src/sdk-version.ts
2890
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.60.0" : void 0) || "unknown";
2890
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.62.0" : void 0) || "unknown";
2891
2891
 
2892
2892
  // src/utils/open-url.ts
2893
2893
  var nodePrefix = "node:";
@@ -4206,10 +4206,7 @@ var clientCredentialsNameResolver = {
4206
4206
  // src/resolvers/clientId.ts
4207
4207
  var clientIdResolver = {
4208
4208
  type: "dynamic",
4209
- fetch: async (sdk) => {
4210
- const result = await sdk.listClientCredentials({ maxItems: 100 });
4211
- return result.data;
4212
- },
4209
+ fetch: async (sdk) => toIterable(sdk.listClientCredentials({})),
4213
4210
  prompt: (credentials) => ({
4214
4211
  type: "list",
4215
4212
  name: "clientId",
@@ -4287,6 +4284,21 @@ var workflowIdResolver = {
4287
4284
  })
4288
4285
  };
4289
4286
 
4287
+ // src/resolvers/durableRunId.ts
4288
+ var durableRunIdResolver = {
4289
+ type: "dynamic",
4290
+ fetch: async (sdk) => toIterable(sdk.listDurableRuns()),
4291
+ prompt: (runs) => ({
4292
+ type: "list",
4293
+ name: "run",
4294
+ message: "Select a run:",
4295
+ choices: runs.map((run) => ({
4296
+ name: `${run.id} \u2014 ${run.status}`,
4297
+ value: run.id
4298
+ }))
4299
+ })
4300
+ };
4301
+
4290
4302
  // src/resolvers/triggerMessages.ts
4291
4303
  var triggerMessagesResolver = {
4292
4304
  type: "dynamic",
@@ -6149,10 +6161,7 @@ var deleteClientCredentialsPlugin = definePlugin(
6149
6161
  {
6150
6162
  authRequired: true,
6151
6163
  requiredScopes: ["credentials"],
6152
- resource: {
6153
- type: "client-credential",
6154
- id: options.clientId
6155
- }
6164
+ resource: { type: "client-credential", id: options.clientId }
6156
6165
  }
6157
6166
  );
6158
6167
  return { success: true };
@@ -10644,6 +10653,370 @@ var getWorkflowPlugin = definePlugin(
10644
10653
  }
10645
10654
  })
10646
10655
  );
10656
+ var CreateWorkflowOptionsSchema = z.object({
10657
+ name: z.string().min(1).describe("Workflow name"),
10658
+ description: z.string().optional().describe("Optional description for the workflow")
10659
+ }).describe(
10660
+ "Create a durable workflow container. Starts disabled with no version; publish a version to add code."
10661
+ );
10662
+ var CreateWorkflowResponseSchema = z.object({
10663
+ id: z.string().describe("Workflow ID (UUID)"),
10664
+ name: z.string().describe("Workflow name"),
10665
+ description: z.string().nullable().describe("Workflow description (null if unset)"),
10666
+ trigger_url: z.string().describe(
10667
+ "Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
10668
+ ),
10669
+ enabled: z.boolean().describe(
10670
+ "Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
10671
+ ),
10672
+ created_at: z.string().describe("When the workflow was created (ISO-8601)")
10673
+ });
10674
+
10675
+ // src/plugins/codeSubstrate/createWorkflow/index.ts
10676
+ var createWorkflowPlugin = definePlugin(
10677
+ (sdk) => createPluginMethod(sdk, {
10678
+ ...codeSubstrateDefaults,
10679
+ name: "createWorkflow",
10680
+ type: "create",
10681
+ itemType: "Workflow",
10682
+ inputSchema: CreateWorkflowOptionsSchema,
10683
+ outputSchema: CreateWorkflowResponseSchema,
10684
+ handler: async ({ sdk: sdk2, options }) => {
10685
+ const body = { name: options.name };
10686
+ if (options.description !== void 0) {
10687
+ body.description = options.description;
10688
+ }
10689
+ const data = await sdk2.context.api.post(
10690
+ "/durableworkflowzaps/api/v0/workflows",
10691
+ body,
10692
+ { authRequired: true }
10693
+ );
10694
+ return { data };
10695
+ }
10696
+ })
10697
+ );
10698
+ var UpdateWorkflowOptionsSchema = z.object({
10699
+ workflow: z.string().uuid().describe("Durable workflow ID"),
10700
+ name: z.string().min(1).optional().describe("New name for the workflow"),
10701
+ description: z.string().nullish().describe("New description for the workflow (pass null to clear)")
10702
+ }).refine((data) => data.name !== void 0 || data.description !== void 0, {
10703
+ message: "Provide name or description (at least one is required)"
10704
+ }).describe("Update a durable workflow's name and/or description");
10705
+ var UpdateWorkflowResponseSchema = z.object({
10706
+ id: z.string().describe("Workflow ID (UUID)"),
10707
+ name: z.string().describe("Workflow name (post-update)"),
10708
+ description: z.string().nullable().describe("Workflow description, post-update (null if unset)"),
10709
+ trigger_url: z.string().describe(
10710
+ "Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
10711
+ ),
10712
+ enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
10713
+ created_at: z.string().describe("When the workflow was created (ISO-8601)"),
10714
+ updated_at: z.string().describe("When this update was applied (ISO-8601)")
10715
+ });
10716
+
10717
+ // src/plugins/codeSubstrate/updateWorkflow/index.ts
10718
+ var updateWorkflowPlugin = definePlugin(
10719
+ (sdk) => createPluginMethod(sdk, {
10720
+ ...codeSubstrateDefaults,
10721
+ name: "updateWorkflow",
10722
+ type: "update",
10723
+ itemType: "Workflow",
10724
+ inputSchema: UpdateWorkflowOptionsSchema,
10725
+ outputSchema: UpdateWorkflowResponseSchema,
10726
+ resolvers: { workflow: workflowIdResolver },
10727
+ handler: async ({ sdk: sdk2, options }) => {
10728
+ const body = {};
10729
+ if (options.name !== void 0) {
10730
+ body.name = options.name;
10731
+ }
10732
+ if (options.description !== void 0) {
10733
+ body.description = options.description;
10734
+ }
10735
+ const data = await sdk2.context.api.patch(
10736
+ `/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}`,
10737
+ body,
10738
+ {
10739
+ authRequired: true,
10740
+ resource: { type: "workflow", id: options.workflow }
10741
+ }
10742
+ );
10743
+ return { data };
10744
+ }
10745
+ })
10746
+ );
10747
+ var EnableWorkflowOptionsSchema = z.object({
10748
+ workflow: z.string().uuid().describe("Durable workflow ID")
10749
+ }).describe("Enable a durable workflow so it accepts triggers");
10750
+ var EnableWorkflowResponseSchema = z.object({
10751
+ id: z.string().describe("Workflow ID (UUID)"),
10752
+ enabled: z.boolean().describe("Workflow's enabled state after the operation (always true)")
10753
+ });
10754
+
10755
+ // src/plugins/codeSubstrate/enableWorkflow/index.ts
10756
+ var enableWorkflowPlugin = definePlugin(
10757
+ (sdk) => createPluginMethod(sdk, {
10758
+ ...codeSubstrateDefaults,
10759
+ name: "enableWorkflow",
10760
+ type: "update",
10761
+ itemType: "Workflow",
10762
+ inputSchema: EnableWorkflowOptionsSchema,
10763
+ outputSchema: EnableWorkflowResponseSchema,
10764
+ resolvers: { workflow: workflowIdResolver },
10765
+ handler: async ({ sdk: sdk2, options }) => {
10766
+ const data = await sdk2.context.api.post(
10767
+ `/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/enable`,
10768
+ void 0,
10769
+ {
10770
+ authRequired: true,
10771
+ resource: { type: "workflow", id: options.workflow }
10772
+ }
10773
+ );
10774
+ return { data };
10775
+ }
10776
+ })
10777
+ );
10778
+ var DisableWorkflowOptionsSchema = z.object({
10779
+ workflow: z.string().uuid().describe("Durable workflow ID")
10780
+ }).describe("Disable a durable workflow so it stops accepting triggers");
10781
+ var DisableWorkflowResponseSchema = z.object({
10782
+ id: z.string().describe("Workflow ID (UUID)"),
10783
+ enabled: z.boolean().describe(
10784
+ "Workflow's enabled state after the operation. Typically false; mirrors the row's true state in case a concurrent enable raced with this call."
10785
+ )
10786
+ });
10787
+
10788
+ // src/plugins/codeSubstrate/disableWorkflow/index.ts
10789
+ var disableWorkflowPlugin = definePlugin(
10790
+ (sdk) => createPluginMethod(sdk, {
10791
+ ...codeSubstrateDefaults,
10792
+ name: "disableWorkflow",
10793
+ type: "update",
10794
+ itemType: "Workflow",
10795
+ inputSchema: DisableWorkflowOptionsSchema,
10796
+ outputSchema: DisableWorkflowResponseSchema,
10797
+ resolvers: { workflow: workflowIdResolver },
10798
+ handler: async ({ sdk: sdk2, options }) => {
10799
+ const data = await sdk2.context.api.post(
10800
+ `/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/disable`,
10801
+ void 0,
10802
+ {
10803
+ authRequired: true,
10804
+ resource: { type: "workflow", id: options.workflow }
10805
+ }
10806
+ );
10807
+ return { data };
10808
+ }
10809
+ })
10810
+ );
10811
+ var DeleteWorkflowOptionsSchema = z.object({
10812
+ workflow: z.string().uuid().describe("Durable workflow ID")
10813
+ }).describe(
10814
+ "Delete a durable workflow. Throws `ZapierNotFoundError` if the workflow doesn't exist; callers wanting idempotency should catch that themselves."
10815
+ );
10816
+
10817
+ // src/plugins/codeSubstrate/deleteWorkflow/index.ts
10818
+ var deleteWorkflowPlugin = definePlugin(
10819
+ (sdk) => createPluginMethod(sdk, {
10820
+ ...codeSubstrateDefaults,
10821
+ name: "deleteWorkflow",
10822
+ type: "delete",
10823
+ itemType: "Workflow",
10824
+ confirm: "delete",
10825
+ inputSchema: DeleteWorkflowOptionsSchema,
10826
+ resolvers: { workflow: workflowIdResolver },
10827
+ handler: async ({ sdk: sdk2, options }) => {
10828
+ await sdk2.context.api.delete(
10829
+ `/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}`,
10830
+ void 0,
10831
+ {
10832
+ authRequired: true,
10833
+ resource: { type: "workflow", id: options.workflow }
10834
+ }
10835
+ );
10836
+ return { data: { id: options.workflow } };
10837
+ }
10838
+ })
10839
+ );
10840
+ var RunStatusSchema = z.enum(["initialized", "started", "finished", "failed", "cancelled"]).describe(
10841
+ "Run lifecycle status. `finished` / `failed` / `cancelled` are terminal."
10842
+ );
10843
+ var RunErrorSchema = z.object({
10844
+ code: z.string().describe("Machine-readable error category"),
10845
+ message: z.string().describe("Human-readable error summary")
10846
+ }).passthrough().describe(
10847
+ "Structured run error. Always carries `code` and `message`; additional keys may appear depending on the error type."
10848
+ );
10849
+ var RunItemSchema = z.object({
10850
+ id: z.string().describe("Run ID (UUID)"),
10851
+ status: RunStatusSchema,
10852
+ input: z.unknown().describe("Input data passed to the run"),
10853
+ output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
10854
+ error: RunErrorSchema.nullable().describe(
10855
+ "Structured error details when the run failed (null otherwise)"
10856
+ ),
10857
+ execution_id: z.string().nullable().describe(
10858
+ "Linked execution ID. Null until the run leaves the `initialized` state."
10859
+ ),
10860
+ is_private: z.boolean().describe(
10861
+ "When true, the run is visible only to the creating user; otherwise visible across the account."
10862
+ ),
10863
+ created_at: z.string().describe("When the run was created (ISO-8601)"),
10864
+ updated_at: z.string().describe("When the run was last updated (ISO-8601)")
10865
+ });
10866
+ var ListDurableRunsOptionsSchema = z.object({
10867
+ pageSize: z.number().min(1).max(100).optional().describe("Number of runs per page (max 100)"),
10868
+ cursor: z.string().optional().describe("Pagination cursor"),
10869
+ maxItems: z.number().min(1).optional().describe("Maximum total items to return across all pages")
10870
+ }).describe(
10871
+ "List run-once durable runs for the authenticated account, newest first"
10872
+ );
10873
+ z.object({
10874
+ results: z.array(RunItemSchema),
10875
+ meta: z.object({
10876
+ limit: z.number(),
10877
+ cursor: z.string().nullable().optional(),
10878
+ next_cursor: z.string().nullable().optional()
10879
+ }),
10880
+ links: z.object({
10881
+ next: z.string().nullable().optional()
10882
+ }).optional()
10883
+ });
10884
+
10885
+ // src/plugins/codeSubstrate/listDurableRuns/index.ts
10886
+ var listDurableRunsPlugin = definePlugin(
10887
+ (sdk) => createPaginatedPluginMethod(sdk, {
10888
+ ...codeSubstrateDefaults,
10889
+ name: "listDurableRuns",
10890
+ type: "list",
10891
+ itemType: "DurableRun",
10892
+ inputSchema: ListDurableRunsOptionsSchema,
10893
+ outputSchema: RunItemSchema,
10894
+ defaultPageSize: DEFAULT_PAGE_SIZE,
10895
+ handler: async ({ sdk: sdk2, options }) => {
10896
+ const searchParams = {};
10897
+ if (options.pageSize !== void 0) {
10898
+ searchParams.limit = options.pageSize.toString();
10899
+ }
10900
+ if (options.cursor) {
10901
+ searchParams.cursor = options.cursor;
10902
+ }
10903
+ const response = await sdk2.context.api.get(
10904
+ "/sdkdurableapi/api/v0/runs",
10905
+ { searchParams, authRequired: true }
10906
+ );
10907
+ return {
10908
+ data: response.results,
10909
+ nextCursor: response.meta.next_cursor ?? void 0
10910
+ };
10911
+ }
10912
+ })
10913
+ );
10914
+ var OperationTypeSchema = z.enum(["step", "wait", "callback"]).describe(
10915
+ "Operation kind: `step` is a journaled function call; `wait` is a time-based suspension; `callback` is a wait on an external callback."
10916
+ );
10917
+ var OperationStatusSchema = z.enum(["pending", "completed", "failed", "exhausted"]).describe(
10918
+ "Operation lifecycle status. `exhausted` means retries were exceeded."
10919
+ );
10920
+ var OperationSchema = z.object({
10921
+ id: z.string().describe("Operation ID (UUID)"),
10922
+ execution_id: z.string().describe("Parent execution ID"),
10923
+ name: z.string().describe("Operation name as declared by the workflow author"),
10924
+ type: OperationTypeSchema,
10925
+ status: OperationStatusSchema,
10926
+ result: z.unknown().optional().describe("Result value when the operation completed"),
10927
+ error: z.unknown().optional().describe("Error payload when the operation failed"),
10928
+ retry_count: z.number().describe("Number of retry attempts so far"),
10929
+ max_attempts: z.number().optional().describe(
10930
+ "Cap on total attempts for this operation. Absent if no cap applies."
10931
+ ),
10932
+ next_retry_at: z.string().optional().describe("When the next retry will be attempted (ISO-8601)"),
10933
+ resume_at: z.string().optional().describe(
10934
+ "When a `wait` operation resumes (ISO-8601). Set only for type=wait."
10935
+ ),
10936
+ callback_token: z.string().nullable().optional().describe(
10937
+ "Token for delivering a callback. Set only for type=callback; null until the callback URL is materialized."
10938
+ ),
10939
+ payload_schema: z.unknown().optional().describe("JSON Schema describing the expected callback payload"),
10940
+ payload: z.unknown().optional().describe("Payload delivered to a callback operation, when received"),
10941
+ expires_at: z.string().optional().describe("When a callback or wait operation expires (ISO-8601)"),
10942
+ completed_at: z.string().optional().describe("When the operation reached a terminal state (ISO-8601)"),
10943
+ created_at: z.string().describe("When the operation was created (ISO-8601)")
10944
+ });
10945
+ var ExecutionStatusSchema = z.enum(["running", "waiting", "completed", "failed"]).describe(
10946
+ "Execution lifecycle status. `waiting` means blocked on a wait or callback operation."
10947
+ );
10948
+ var ExecutionSummarySchema = z.object({
10949
+ id: z.string().describe("Execution ID (UUID)"),
10950
+ name: z.string().describe("Durable function name"),
10951
+ status: ExecutionStatusSchema,
10952
+ input: z.unknown().describe("Input passed when the execution was created"),
10953
+ output: z.unknown().optional().describe("Return value when status is `completed`"),
10954
+ error: z.unknown().optional().describe("Error details when status is `failed`"),
10955
+ metadata: z.record(z.string(), z.unknown()).optional().describe(
10956
+ "Caller-supplied tags (Zap ID, Step ID, Agent ID, etc.) carried alongside the execution"
10957
+ ),
10958
+ created_at: z.string().describe("When the execution was created (ISO-8601)"),
10959
+ summary: z.object({
10960
+ total_attempts: z.number().describe(
10961
+ "Total ticks attempted against this execution across all retries"
10962
+ ),
10963
+ last_error: z.object({
10964
+ code: z.string().describe("Machine-readable error category"),
10965
+ title: z.string().describe("Short error label"),
10966
+ detail: z.string().nullable().optional().describe("Longer-form error detail, when provided")
10967
+ }).passthrough().optional().describe("The most recent error, if the execution has failed once")
10968
+ }).passthrough().nullable().optional().describe(
10969
+ "Aggregate health summary. Null when no attempts have been recorded yet."
10970
+ ),
10971
+ operations: z.array(OperationSchema).optional().describe(
10972
+ "Operations journal \u2014 append-only record of every step/wait/callback the execution made"
10973
+ )
10974
+ });
10975
+ var GetDurableRunOptionsSchema = z.object({
10976
+ run: z.string().uuid().describe("Durable run ID")
10977
+ }).describe(
10978
+ "Get the full state of a run-once durable run, including its operations journal"
10979
+ );
10980
+ var GetDurableRunResponseSchema = z.object({
10981
+ id: z.string().describe("Run ID (UUID)"),
10982
+ status: RunStatusSchema,
10983
+ input: z.unknown().describe("Input data passed to the run"),
10984
+ output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
10985
+ error: RunErrorSchema.nullable().describe(
10986
+ "Structured error details when the run failed (null otherwise)"
10987
+ ),
10988
+ execution: ExecutionSummarySchema.nullable().describe(
10989
+ "Linked execution, including the operations journal. Null while the run is still in `initialized` state."
10990
+ ),
10991
+ is_private: z.boolean().describe(
10992
+ "When true, the run is visible only to the creating user; otherwise visible across the account."
10993
+ ),
10994
+ created_at: z.string().describe("When the run was created (ISO-8601)"),
10995
+ updated_at: z.string().describe("When the run was last updated (ISO-8601)")
10996
+ });
10997
+
10998
+ // src/plugins/codeSubstrate/getDurableRun/index.ts
10999
+ var getDurableRunPlugin = definePlugin(
11000
+ (sdk) => createPluginMethod(sdk, {
11001
+ ...codeSubstrateDefaults,
11002
+ name: "getDurableRun",
11003
+ type: "item",
11004
+ itemType: "DurableRun",
11005
+ inputSchema: GetDurableRunOptionsSchema,
11006
+ outputSchema: GetDurableRunResponseSchema,
11007
+ resolvers: { run: durableRunIdResolver },
11008
+ handler: async ({ sdk: sdk2, options }) => {
11009
+ const data = await sdk2.context.api.get(
11010
+ `/sdkdurableapi/api/v0/runs/${encodeURIComponent(options.run)}`,
11011
+ {
11012
+ authRequired: true,
11013
+ resource: { type: "run", id: options.run }
11014
+ }
11015
+ );
11016
+ return { data };
11017
+ }
11018
+ })
11019
+ );
10647
11020
 
10648
11021
  // src/utils/batch-utils.ts
10649
11022
  var DEFAULT_CONCURRENCY = 10;
@@ -10803,7 +11176,7 @@ var registryPlugin = definePlugin((_sdk) => {
10803
11176
 
10804
11177
  // src/experimental.ts
10805
11178
  function createZapierSdk2(options = {}) {
10806
- return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(listWorkflowsPlugin).addPlugin(getWorkflowPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
11179
+ return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(listWorkflowsPlugin).addPlugin(getWorkflowPlugin).addPlugin(createWorkflowPlugin).addPlugin(updateWorkflowPlugin).addPlugin(enableWorkflowPlugin).addPlugin(disableWorkflowPlugin).addPlugin(deleteWorkflowPlugin).addPlugin(listDurableRunsPlugin).addPlugin(getDurableRunPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
10807
11180
  }
10808
11181
 
10809
- export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver };
11182
+ export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver };
@@ -8596,6 +8596,30 @@ type WorkflowItem = z.infer<typeof WorkflowItemSchema>;
8596
8596
 
8597
8597
  declare const workflowIdResolver: DynamicResolver<WorkflowItem, {}>;
8598
8598
 
8599
+ declare const RunItemSchema: z.ZodObject<{
8600
+ id: z.ZodString;
8601
+ status: z.ZodEnum<{
8602
+ initialized: "initialized";
8603
+ started: "started";
8604
+ finished: "finished";
8605
+ failed: "failed";
8606
+ cancelled: "cancelled";
8607
+ }>;
8608
+ input: z.ZodUnknown;
8609
+ output: z.ZodNullable<z.ZodUnknown>;
8610
+ error: z.ZodNullable<z.ZodObject<{
8611
+ code: z.ZodString;
8612
+ message: z.ZodString;
8613
+ }, z.core.$loose>>;
8614
+ execution_id: z.ZodNullable<z.ZodString>;
8615
+ is_private: z.ZodBoolean;
8616
+ created_at: z.ZodString;
8617
+ updated_at: z.ZodString;
8618
+ }, z.core.$strip>;
8619
+ type RunItem = z.infer<typeof RunItemSchema>;
8620
+
8621
+ declare const durableRunIdResolver: DynamicResolver<RunItem, {}>;
8622
+
8599
8623
  declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
8600
8624
  inbox: string;
8601
8625
  }>;
@@ -9829,4 +9853,4 @@ declare const registryPlugin: (sdk: {
9829
9853
  };
9830
9854
  }) => {};
9831
9855
 
9832
- export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableNameResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, triggerMessagesResolver as cX, tableRecordIdResolver as cY, tableRecordIdsResolver as cZ, tableFieldIdsResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, DEFAULT_MAX_APPROVAL_RETRIES as d$, tableFieldsResolver as d0, tableRecordsResolver as d1, tableUpdateRecordsResolver as d2, tableFiltersResolver as d3, tableSortResolver as d4, type ResolveAuthTokenOptions as d5, clearTokenCache as d6, invalidateCachedToken as d7, injectCliLogin as d8, isCliLoginAvailable as d9, getClientIdFromCredentials as dA, ClientCredentialsObjectSchema as dB, PkceCredentialsObjectSchema as dC, CredentialsObjectSchema as dD, ResolvedCredentialsSchema as dE, CredentialsFunctionSchema as dF, type CredentialsFunction as dG, CredentialsSchema as dH, ConnectionEntrySchema as dI, type ConnectionEntry as dJ, ConnectionsMapSchema as dK, type ConnectionsMap as dL, connectionsPlugin as dM, type ConnectionsPluginProvides as dN, ZAPIER_BASE_URL as dO, getZapierSdkService as dP, MAX_PAGE_LIMIT as dQ, DEFAULT_PAGE_SIZE as dR, DEFAULT_ACTION_TIMEOUT_MS as dS, ZAPIER_MAX_NETWORK_RETRIES as dT, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dU, MAX_CONCURRENCY_LIMIT as dV, parseConcurrencyEnvVar as dW, ZAPIER_MAX_CONCURRENT_REQUESTS as dX, getZapierApprovalMode as dY, getZapierDefaultApprovalMode as dZ, DEFAULT_APPROVAL_TIMEOUT_MS as d_, getTokenFromCliLogin as da, resolveAuthToken as db, invalidateCredentialsToken as dc, type ZapierCache as dd, type ZapierCacheEntry as de, type ZapierCacheSetOptions as df, createMemoryCache as dg, type SdkEvent as dh, type AuthEvent as di, type ApiEvent as dj, type LoadingEvent as dk, type EventCallback as dl, type Credentials as dm, type ResolvedCredentials as dn, type CredentialsObject as dp, type ClientCredentialsObject as dq, type PkceCredentialsObject as dr, isClientCredentials as ds, isPkceCredentials as dt, isCredentialsObject as du, isCredentialsFunction as dv, type ResolveCredentialsOptions as dw, resolveCredentialsFromEnv as dx, resolveCredentials as dy, getBaseUrlFromCredentials as dz, type PaginatedSdkResult as e, listTablesPlugin as e0, type ListTablesPluginProvides as e1, getTablePlugin as e2, type GetTablePluginProvides as e3, createTablePlugin as e4, type CreateTablePluginProvides as e5, deleteTablePlugin as e6, type DeleteTablePluginProvides as e7, listTableFieldsPlugin as e8, type ListTableFieldsPluginProvides as e9, buildMethodCalledEvent as eA, type BaseEvent as eB, type MethodCalledEvent as eC, generateEventId as eD, getCurrentTimestamp as eE, getReleaseId as eF, getOsInfo as eG, getPlatformVersions as eH, isCi as eI, getCiPlatform as eJ, getMemoryUsage as eK, getCpuTime as eL, createZapierSdk as eM, type ZapierSdk as eN, createTableFieldsPlugin as ea, type CreateTableFieldsPluginProvides as eb, deleteTableFieldsPlugin as ec, type DeleteTableFieldsPluginProvides as ed, getTableRecordPlugin as ee, type GetTableRecordPluginProvides as ef, listTableRecordsPlugin as eg, type ListTableRecordsPluginProvides as eh, createTableRecordsPlugin as ei, type CreateTableRecordsPluginProvides as ej, deleteTableRecordsPlugin as ek, type DeleteTableRecordsPluginProvides as el, updateTableRecordsPlugin as em, type UpdateTableRecordsPluginProvides as en, cleanupEventListeners as eo, type EventEmissionConfig as ep, eventEmissionPlugin as eq, type EventEmissionProvides as er, type EventContext as es, type ApplicationLifecycleEventData as et, type EnhancedErrorEventData as eu, type MethodCalledEventData as ev, buildApplicationLifecycleEvent as ew, buildErrorEventWithContext as ex, buildErrorEvent as ey, createBaseEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
9856
+ export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableFieldIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, triggerMessagesResolver as cY, tableRecordIdResolver as cZ, tableRecordIdsResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, DEFAULT_APPROVAL_TIMEOUT_MS as d$, tableNameResolver as d0, tableFieldsResolver as d1, tableRecordsResolver as d2, tableUpdateRecordsResolver as d3, tableFiltersResolver as d4, tableSortResolver as d5, type ResolveAuthTokenOptions as d6, clearTokenCache as d7, invalidateCachedToken as d8, injectCliLogin as d9, getBaseUrlFromCredentials as dA, getClientIdFromCredentials as dB, ClientCredentialsObjectSchema as dC, PkceCredentialsObjectSchema as dD, CredentialsObjectSchema as dE, ResolvedCredentialsSchema as dF, CredentialsFunctionSchema as dG, type CredentialsFunction as dH, CredentialsSchema as dI, ConnectionEntrySchema as dJ, type ConnectionEntry as dK, ConnectionsMapSchema as dL, type ConnectionsMap as dM, connectionsPlugin as dN, type ConnectionsPluginProvides as dO, ZAPIER_BASE_URL as dP, getZapierSdkService as dQ, MAX_PAGE_LIMIT as dR, DEFAULT_PAGE_SIZE as dS, DEFAULT_ACTION_TIMEOUT_MS as dT, ZAPIER_MAX_NETWORK_RETRIES as dU, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dV, MAX_CONCURRENCY_LIMIT as dW, parseConcurrencyEnvVar as dX, ZAPIER_MAX_CONCURRENT_REQUESTS as dY, getZapierApprovalMode as dZ, getZapierDefaultApprovalMode as d_, isCliLoginAvailable as da, getTokenFromCliLogin as db, resolveAuthToken as dc, invalidateCredentialsToken as dd, type ZapierCache as de, type ZapierCacheEntry as df, type ZapierCacheSetOptions as dg, createMemoryCache as dh, type SdkEvent as di, type AuthEvent as dj, type ApiEvent as dk, type LoadingEvent as dl, type EventCallback as dm, type Credentials as dn, type ResolvedCredentials as dp, type CredentialsObject as dq, type ClientCredentialsObject as dr, type PkceCredentialsObject as ds, isClientCredentials as dt, isPkceCredentials as du, isCredentialsObject as dv, isCredentialsFunction as dw, type ResolveCredentialsOptions as dx, resolveCredentialsFromEnv as dy, resolveCredentials as dz, type PaginatedSdkResult as e, DEFAULT_MAX_APPROVAL_RETRIES as e0, listTablesPlugin as e1, type ListTablesPluginProvides as e2, getTablePlugin as e3, type GetTablePluginProvides as e4, createTablePlugin as e5, type CreateTablePluginProvides as e6, deleteTablePlugin as e7, type DeleteTablePluginProvides as e8, listTableFieldsPlugin as e9, createBaseEvent as eA, buildMethodCalledEvent as eB, type BaseEvent as eC, type MethodCalledEvent as eD, generateEventId as eE, getCurrentTimestamp as eF, getReleaseId as eG, getOsInfo as eH, getPlatformVersions as eI, isCi as eJ, getCiPlatform as eK, getMemoryUsage as eL, getCpuTime as eM, createZapierSdk as eN, type ZapierSdk as eO, type ListTableFieldsPluginProvides as ea, createTableFieldsPlugin as eb, type CreateTableFieldsPluginProvides as ec, deleteTableFieldsPlugin as ed, type DeleteTableFieldsPluginProvides as ee, getTableRecordPlugin as ef, type GetTableRecordPluginProvides as eg, listTableRecordsPlugin as eh, type ListTableRecordsPluginProvides as ei, createTableRecordsPlugin as ej, type CreateTableRecordsPluginProvides as ek, deleteTableRecordsPlugin as el, type DeleteTableRecordsPluginProvides as em, updateTableRecordsPlugin as en, type UpdateTableRecordsPluginProvides as eo, cleanupEventListeners as ep, type EventEmissionConfig as eq, eventEmissionPlugin as er, type EventEmissionProvides as es, type EventContext as et, type ApplicationLifecycleEventData as eu, type EnhancedErrorEventData as ev, type MethodCalledEventData as ew, buildApplicationLifecycleEvent as ex, buildErrorEventWithContext as ey, buildErrorEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
@@ -8596,6 +8596,30 @@ type WorkflowItem = z.infer<typeof WorkflowItemSchema>;
8596
8596
 
8597
8597
  declare const workflowIdResolver: DynamicResolver<WorkflowItem, {}>;
8598
8598
 
8599
+ declare const RunItemSchema: z.ZodObject<{
8600
+ id: z.ZodString;
8601
+ status: z.ZodEnum<{
8602
+ initialized: "initialized";
8603
+ started: "started";
8604
+ finished: "finished";
8605
+ failed: "failed";
8606
+ cancelled: "cancelled";
8607
+ }>;
8608
+ input: z.ZodUnknown;
8609
+ output: z.ZodNullable<z.ZodUnknown>;
8610
+ error: z.ZodNullable<z.ZodObject<{
8611
+ code: z.ZodString;
8612
+ message: z.ZodString;
8613
+ }, z.core.$loose>>;
8614
+ execution_id: z.ZodNullable<z.ZodString>;
8615
+ is_private: z.ZodBoolean;
8616
+ created_at: z.ZodString;
8617
+ updated_at: z.ZodString;
8618
+ }, z.core.$strip>;
8619
+ type RunItem = z.infer<typeof RunItemSchema>;
8620
+
8621
+ declare const durableRunIdResolver: DynamicResolver<RunItem, {}>;
8622
+
8599
8623
  declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
8600
8624
  inbox: string;
8601
8625
  }>;
@@ -9829,4 +9853,4 @@ declare const registryPlugin: (sdk: {
9829
9853
  };
9830
9854
  }) => {};
9831
9855
 
9832
- export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableNameResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, triggerMessagesResolver as cX, tableRecordIdResolver as cY, tableRecordIdsResolver as cZ, tableFieldIdsResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, DEFAULT_MAX_APPROVAL_RETRIES as d$, tableFieldsResolver as d0, tableRecordsResolver as d1, tableUpdateRecordsResolver as d2, tableFiltersResolver as d3, tableSortResolver as d4, type ResolveAuthTokenOptions as d5, clearTokenCache as d6, invalidateCachedToken as d7, injectCliLogin as d8, isCliLoginAvailable as d9, getClientIdFromCredentials as dA, ClientCredentialsObjectSchema as dB, PkceCredentialsObjectSchema as dC, CredentialsObjectSchema as dD, ResolvedCredentialsSchema as dE, CredentialsFunctionSchema as dF, type CredentialsFunction as dG, CredentialsSchema as dH, ConnectionEntrySchema as dI, type ConnectionEntry as dJ, ConnectionsMapSchema as dK, type ConnectionsMap as dL, connectionsPlugin as dM, type ConnectionsPluginProvides as dN, ZAPIER_BASE_URL as dO, getZapierSdkService as dP, MAX_PAGE_LIMIT as dQ, DEFAULT_PAGE_SIZE as dR, DEFAULT_ACTION_TIMEOUT_MS as dS, ZAPIER_MAX_NETWORK_RETRIES as dT, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dU, MAX_CONCURRENCY_LIMIT as dV, parseConcurrencyEnvVar as dW, ZAPIER_MAX_CONCURRENT_REQUESTS as dX, getZapierApprovalMode as dY, getZapierDefaultApprovalMode as dZ, DEFAULT_APPROVAL_TIMEOUT_MS as d_, getTokenFromCliLogin as da, resolveAuthToken as db, invalidateCredentialsToken as dc, type ZapierCache as dd, type ZapierCacheEntry as de, type ZapierCacheSetOptions as df, createMemoryCache as dg, type SdkEvent as dh, type AuthEvent as di, type ApiEvent as dj, type LoadingEvent as dk, type EventCallback as dl, type Credentials as dm, type ResolvedCredentials as dn, type CredentialsObject as dp, type ClientCredentialsObject as dq, type PkceCredentialsObject as dr, isClientCredentials as ds, isPkceCredentials as dt, isCredentialsObject as du, isCredentialsFunction as dv, type ResolveCredentialsOptions as dw, resolveCredentialsFromEnv as dx, resolveCredentials as dy, getBaseUrlFromCredentials as dz, type PaginatedSdkResult as e, listTablesPlugin as e0, type ListTablesPluginProvides as e1, getTablePlugin as e2, type GetTablePluginProvides as e3, createTablePlugin as e4, type CreateTablePluginProvides as e5, deleteTablePlugin as e6, type DeleteTablePluginProvides as e7, listTableFieldsPlugin as e8, type ListTableFieldsPluginProvides as e9, buildMethodCalledEvent as eA, type BaseEvent as eB, type MethodCalledEvent as eC, generateEventId as eD, getCurrentTimestamp as eE, getReleaseId as eF, getOsInfo as eG, getPlatformVersions as eH, isCi as eI, getCiPlatform as eJ, getMemoryUsage as eK, getCpuTime as eL, createZapierSdk as eM, type ZapierSdk as eN, createTableFieldsPlugin as ea, type CreateTableFieldsPluginProvides as eb, deleteTableFieldsPlugin as ec, type DeleteTableFieldsPluginProvides as ed, getTableRecordPlugin as ee, type GetTableRecordPluginProvides as ef, listTableRecordsPlugin as eg, type ListTableRecordsPluginProvides as eh, createTableRecordsPlugin as ei, type CreateTableRecordsPluginProvides as ej, deleteTableRecordsPlugin as ek, type DeleteTableRecordsPluginProvides as el, updateTableRecordsPlugin as em, type UpdateTableRecordsPluginProvides as en, cleanupEventListeners as eo, type EventEmissionConfig as ep, eventEmissionPlugin as eq, type EventEmissionProvides as er, type EventContext as es, type ApplicationLifecycleEventData as et, type EnhancedErrorEventData as eu, type MethodCalledEventData as ev, buildApplicationLifecycleEvent as ew, buildErrorEventWithContext as ex, buildErrorEvent as ey, createBaseEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
9856
+ export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableFieldIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, triggerMessagesResolver as cY, tableRecordIdResolver as cZ, tableRecordIdsResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, DEFAULT_APPROVAL_TIMEOUT_MS as d$, tableNameResolver as d0, tableFieldsResolver as d1, tableRecordsResolver as d2, tableUpdateRecordsResolver as d3, tableFiltersResolver as d4, tableSortResolver as d5, type ResolveAuthTokenOptions as d6, clearTokenCache as d7, invalidateCachedToken as d8, injectCliLogin as d9, getBaseUrlFromCredentials as dA, getClientIdFromCredentials as dB, ClientCredentialsObjectSchema as dC, PkceCredentialsObjectSchema as dD, CredentialsObjectSchema as dE, ResolvedCredentialsSchema as dF, CredentialsFunctionSchema as dG, type CredentialsFunction as dH, CredentialsSchema as dI, ConnectionEntrySchema as dJ, type ConnectionEntry as dK, ConnectionsMapSchema as dL, type ConnectionsMap as dM, connectionsPlugin as dN, type ConnectionsPluginProvides as dO, ZAPIER_BASE_URL as dP, getZapierSdkService as dQ, MAX_PAGE_LIMIT as dR, DEFAULT_PAGE_SIZE as dS, DEFAULT_ACTION_TIMEOUT_MS as dT, ZAPIER_MAX_NETWORK_RETRIES as dU, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dV, MAX_CONCURRENCY_LIMIT as dW, parseConcurrencyEnvVar as dX, ZAPIER_MAX_CONCURRENT_REQUESTS as dY, getZapierApprovalMode as dZ, getZapierDefaultApprovalMode as d_, isCliLoginAvailable as da, getTokenFromCliLogin as db, resolveAuthToken as dc, invalidateCredentialsToken as dd, type ZapierCache as de, type ZapierCacheEntry as df, type ZapierCacheSetOptions as dg, createMemoryCache as dh, type SdkEvent as di, type AuthEvent as dj, type ApiEvent as dk, type LoadingEvent as dl, type EventCallback as dm, type Credentials as dn, type ResolvedCredentials as dp, type CredentialsObject as dq, type ClientCredentialsObject as dr, type PkceCredentialsObject as ds, isClientCredentials as dt, isPkceCredentials as du, isCredentialsObject as dv, isCredentialsFunction as dw, type ResolveCredentialsOptions as dx, resolveCredentialsFromEnv as dy, resolveCredentials as dz, type PaginatedSdkResult as e, DEFAULT_MAX_APPROVAL_RETRIES as e0, listTablesPlugin as e1, type ListTablesPluginProvides as e2, getTablePlugin as e3, type GetTablePluginProvides as e4, createTablePlugin as e5, type CreateTablePluginProvides as e6, deleteTablePlugin as e7, type DeleteTablePluginProvides as e8, listTableFieldsPlugin as e9, createBaseEvent as eA, buildMethodCalledEvent as eB, type BaseEvent as eC, type MethodCalledEvent as eD, generateEventId as eE, getCurrentTimestamp as eF, getReleaseId as eG, getOsInfo as eH, getPlatformVersions as eI, isCi as eJ, getCiPlatform as eK, getMemoryUsage as eL, getCpuTime as eM, createZapierSdk as eN, type ZapierSdk as eO, type ListTableFieldsPluginProvides as ea, createTableFieldsPlugin as eb, type CreateTableFieldsPluginProvides as ec, deleteTableFieldsPlugin as ed, type DeleteTableFieldsPluginProvides as ee, getTableRecordPlugin as ef, type GetTableRecordPluginProvides as eg, listTableRecordsPlugin as eh, type ListTableRecordsPluginProvides as ei, createTableRecordsPlugin as ej, type CreateTableRecordsPluginProvides as ek, deleteTableRecordsPlugin as el, type DeleteTableRecordsPluginProvides as em, updateTableRecordsPlugin as en, type UpdateTableRecordsPluginProvides as eo, cleanupEventListeners as ep, type EventEmissionConfig as eq, eventEmissionPlugin as er, type EventEmissionProvides as es, type EventContext as et, type ApplicationLifecycleEventData as eu, type EnhancedErrorEventData as ev, type MethodCalledEventData as ew, buildApplicationLifecycleEvent as ex, buildErrorEventWithContext as ey, buildErrorEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };