@zapier/zapier-sdk 0.70.4 → 0.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +149 -31
  3. package/dist/api/approval-review-stream.d.ts +25 -0
  4. package/dist/api/approval-review-stream.d.ts.map +1 -0
  5. package/dist/api/approval-review-stream.js +104 -0
  6. package/dist/api/client.d.ts.map +1 -1
  7. package/dist/api/client.js +215 -27
  8. package/dist/api/types.d.ts +13 -3
  9. package/dist/api/types.d.ts.map +1 -1
  10. package/dist/constants.d.ts +1 -0
  11. package/dist/constants.d.ts.map +1 -1
  12. package/dist/constants.js +6 -0
  13. package/dist/experimental.cjs +602 -37
  14. package/dist/experimental.d.mts +88 -2
  15. package/dist/experimental.d.ts +90 -4
  16. package/dist/experimental.d.ts.map +1 -1
  17. package/dist/experimental.js +10 -0
  18. package/dist/experimental.mjs +602 -38
  19. package/dist/{index-BNaiNmM-.d.mts → index-B43uST61.d.mts} +181 -12
  20. package/dist/{index-BNaiNmM-.d.ts → index-B43uST61.d.ts} +181 -12
  21. package/dist/index.cjs +592 -32
  22. package/dist/index.d.mts +1 -1
  23. package/dist/index.mjs +592 -33
  24. package/dist/plugins/api/index.d.ts.map +1 -1
  25. package/dist/plugins/api/index.js +2 -1
  26. package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +1 -0
  27. package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts.map +1 -1
  28. package/dist/plugins/codeSubstrate/createWorkflow/index.js +3 -2
  29. package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts +1 -0
  30. package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts.map +1 -1
  31. package/dist/plugins/codeSubstrate/createWorkflow/schemas.js +7 -1
  32. package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +1 -1
  33. package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +1 -1
  34. package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +1 -1
  35. package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts +4 -4
  36. package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +2 -2
  37. package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +1 -1
  38. package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +1 -1
  39. package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +1 -1
  40. package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +1 -1
  41. package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +1 -1
  42. package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +1 -1
  43. package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +2 -2
  44. package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +1 -1
  45. package/dist/plugins/codeSubstrate/runDurable/schemas.js +1 -1
  46. package/dist/plugins/codeSubstrate/shared-schemas.d.ts +2 -2
  47. package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +1 -1
  48. package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +1 -1
  49. package/dist/plugins/createConnection/index.d.ts +189 -0
  50. package/dist/plugins/createConnection/index.d.ts.map +1 -0
  51. package/dist/plugins/createConnection/index.js +71 -0
  52. package/dist/plugins/createConnection/schemas.d.ts +21 -0
  53. package/dist/plugins/createConnection/schemas.d.ts.map +1 -0
  54. package/dist/plugins/createConnection/schemas.js +38 -0
  55. package/dist/plugins/getConnectionStartUrl/index.d.ts +206 -0
  56. package/dist/plugins/getConnectionStartUrl/index.d.ts.map +1 -0
  57. package/dist/plugins/getConnectionStartUrl/index.js +39 -0
  58. package/dist/plugins/getConnectionStartUrl/schemas.d.ts +15 -0
  59. package/dist/plugins/getConnectionStartUrl/schemas.d.ts.map +1 -0
  60. package/dist/plugins/getConnectionStartUrl/schemas.js +23 -0
  61. package/dist/plugins/waitForNewConnection/index.d.ts +209 -0
  62. package/dist/plugins/waitForNewConnection/index.d.ts.map +1 -0
  63. package/dist/plugins/waitForNewConnection/index.js +75 -0
  64. package/dist/plugins/waitForNewConnection/schemas.d.ts +17 -0
  65. package/dist/plugins/waitForNewConnection/schemas.d.ts.map +1 -0
  66. package/dist/plugins/waitForNewConnection/schemas.js +39 -0
  67. package/dist/sdk.d.ts +126 -0
  68. package/dist/sdk.d.ts.map +1 -1
  69. package/dist/sdk.js +8 -0
  70. package/dist/types/errors.d.ts +13 -4
  71. package/dist/types/errors.d.ts.map +1 -1
  72. package/dist/types/errors.js +2 -0
  73. package/dist/types/sdk.d.ts +1 -0
  74. package/dist/types/sdk.d.ts.map +1 -1
  75. package/dist/types/sdk.js +5 -1
  76. package/dist/utils/open-url.d.ts.map +1 -1
  77. package/dist/utils/open-url.js +7 -0
  78. package/dist/utils/should-open-browser.d.ts +24 -0
  79. package/dist/utils/should-open-browser.d.ts.map +1 -0
  80. package/dist/utils/should-open-browser.js +55 -0
  81. package/package.json +1 -1
@@ -1566,9 +1566,11 @@ declare class ZapierRateLimitError extends ZapierError {
1566
1566
  /**
1567
1567
  * Terminal status of an approval attempt, exposed on `ZapierApprovalError.approvalStatus`.
1568
1568
  *
1569
- * - `pending`: The approval was created but not yet resolved. Only thrown in
1570
- * `approvalMode: "throw"` — the caller is expected to surface the approval URL
1571
- * to an end user (e.g. an LLM instructing its user to click the link).
1569
+ * - `pending`: A manual approval was created but not yet resolved. Only thrown
1570
+ * in `approvalMode: "throw"` — the caller is expected to surface the approval
1571
+ * URL to an end user (e.g. an LLM instructing its user to click the link).
1572
+ * Auto-mode approvals are polled to terminal resolution instead of throwing
1573
+ * `pending`.
1572
1574
  * - `denied`: A human explicitly rejected the approval in the UI.
1573
1575
  * - `policy_denied`: A policy rule blocked the request before (or instead of)
1574
1576
  * creating an approval. Cannot be approved by a human.
@@ -1576,12 +1578,15 @@ declare class ZapierRateLimitError extends ZapierError {
1576
1578
  * `"disabled"` (the default) so the SDK did not create an approval. Set
1577
1579
  * `approvalMode` to `"poll"` or `"throw"` (or the `ZAPIER_APPROVAL_MODE` env
1578
1580
  * var) to enable the approval flow.
1581
+ * - `failed`: The approval reached a terminal processing failure after it was
1582
+ * created, such as the approved policy being rejected by the permissions
1583
+ * service.
1579
1584
  * - `timeout`: Poll mode exceeded `approvalTimeoutMs` without the approval
1580
1585
  * being resolved.
1581
1586
  * - `max_retries_exceeded`: A single request triggered more sequential approval
1582
1587
  * rounds than `maxApprovalRetries` allows (runaway-loop safeguard).
1583
1588
  */
1584
- type ApprovalStatus = "denied" | "timeout" | "pending" | "policy_denied" | "approval_required" | "max_retries_exceeded";
1589
+ type ApprovalStatus = "denied" | "failed" | "timeout" | "pending" | "policy_denied" | "approval_required" | "max_retries_exceeded";
1585
1590
  /**
1586
1591
  * Error thrown when a request requires approval and the approval is denied, times out,
1587
1592
  * or the auth type doesn't support the approval flow.
@@ -1593,11 +1598,15 @@ declare class ZapierApprovalError extends ZapierError {
1593
1598
  approvalStatus?: ApprovalStatus;
1594
1599
  approvalUrl?: string;
1595
1600
  pollUrl?: string;
1601
+ streamUrl?: string;
1602
+ reason?: string;
1596
1603
  constructor(message: string, options?: ErrorOptions & {
1597
1604
  approvalId?: string;
1598
1605
  status?: ApprovalStatus;
1599
1606
  approvalUrl?: string;
1600
1607
  pollUrl?: string;
1608
+ streamUrl?: string;
1609
+ reason?: string;
1601
1610
  });
1602
1611
  }
1603
1612
  /**
@@ -2389,17 +2398,27 @@ interface ApiClientOptions {
2389
2398
  */
2390
2399
  maxConcurrentRequests?: number;
2391
2400
  /**
2392
- * Controls how the approval flow is handled.
2401
+ * Controls how manual approvals are handled.
2393
2402
  * - "poll": Create the approval, open the URL in a browser, poll until
2394
2403
  * resolved, and retry the original request on success.
2395
- * - "throw": Create the approval and throw a ZapierApprovalError immediately
2396
- * with the approval URL so the caller can surface it.
2404
+ * - "throw": Create the manual approval and throw a ZapierApprovalError
2405
+ * immediately with the approval URL so the caller can surface it.
2397
2406
  * - "disabled": Throw a ZapierApprovalError on approval-required responses
2398
2407
  * without creating an approval.
2408
+ * Server-created auto-mode approvals always poll until terminal resolution
2409
+ * and retry the original request on success, even when this option is
2410
+ * "throw".
2399
2411
  * Resolution order is: explicit option, then ZAPIER_APPROVAL_MODE, then a
2400
2412
  * TTY-based default ("poll" if interactive, "throw" otherwise).
2401
2413
  */
2402
2414
  approvalMode?: "disabled" | "poll" | "throw";
2415
+ /**
2416
+ * By default, auto-mode approvals do not open in a browser. Enable this
2417
+ * option to open the approval URL and watch the approval process.
2418
+ * Resolution order is: explicit option, then
2419
+ * ZAPIER_OPEN_AUTO_MODE_APPROVALS_IN_BROWSER, then false.
2420
+ */
2421
+ openAutoModeApprovalsInBrowser?: boolean;
2403
2422
  /**
2404
2423
  * Timeout in ms for approval polling. Default: 600000 (10 minutes).
2405
2424
  */
@@ -3061,6 +3080,7 @@ declare const BaseSdkOptionsSchema: z.ZodObject<{
3061
3080
  poll: "poll";
3062
3081
  throw: "throw";
3063
3082
  }>>;
3083
+ openAutoModeApprovalsInBrowser: z.ZodOptional<z.ZodBoolean>;
3064
3084
  manifestPath: z.ZodOptional<z.ZodString>;
3065
3085
  manifest: z.ZodOptional<z.ZodCustom<Manifest, Manifest>>;
3066
3086
  onEvent: z.ZodOptional<z.ZodCustom<EventCallback, EventCallback>>;
@@ -7536,7 +7556,7 @@ declare const listWorkflowsPlugin: (sdk: {
7536
7556
  triggers: {
7537
7557
  selected_api: string;
7538
7558
  action: string;
7539
- status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
7559
+ status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
7540
7560
  authentication_id?: string | null | undefined;
7541
7561
  params?: Record<string, unknown> | undefined;
7542
7562
  }[];
@@ -7567,12 +7587,12 @@ declare const WorkflowItemSchema: z.ZodObject<{
7567
7587
  authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7568
7588
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7569
7589
  status: z.ZodEnum<{
7590
+ failed: "failed";
7570
7591
  pending: "pending";
7571
7592
  active: "active";
7572
7593
  unclaimed: "unclaimed";
7573
7594
  releasing: "releasing";
7574
7595
  released: "released";
7575
- failed: "failed";
7576
7596
  }>;
7577
7597
  }, z.core.$strip>>;
7578
7598
  created_at: z.ZodString;
@@ -7700,7 +7720,7 @@ declare const listWorkflowVersionsPlugin: (sdk: {
7700
7720
  triggers: {
7701
7721
  selected_api: string;
7702
7722
  action: string;
7703
- status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
7723
+ status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
7704
7724
  authentication_id?: string | null | undefined;
7705
7725
  params?: Record<string, unknown> | undefined;
7706
7726
  }[];
@@ -7823,7 +7843,7 @@ declare const listWorkflowRunsPlugin: (sdk: {
7823
7843
  triggers: {
7824
7844
  selected_api: string;
7825
7845
  action: string;
7826
- status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
7846
+ status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
7827
7847
  authentication_id?: string | null | undefined;
7828
7848
  params?: Record<string, unknown> | undefined;
7829
7849
  }[];
@@ -8524,6 +8544,7 @@ declare const ZAPIER_MAX_CONCURRENT_REQUESTS: number;
8524
8544
  * Read lazily so tests can set env vars after module import.
8525
8545
  */
8526
8546
  declare function getZapierApprovalMode(): "disabled" | "poll" | "throw" | undefined;
8547
+ declare function getZapierOpenAutoModeApprovalsInBrowser(): boolean | undefined;
8527
8548
  /**
8528
8549
  * Returns the default approval mode based on whether the process is running in
8529
8550
  * an interactive terminal. If both stdin and stdout are TTYs the user can act
@@ -9424,6 +9445,28 @@ declare const updateTableRecordsPlugin: (sdk: {
9424
9445
  };
9425
9446
  type UpdateTableRecordsPluginProvides = ReturnType<typeof updateTableRecordsPlugin>;
9426
9447
 
9448
+ declare const CreateConnectionItemSchema: z.ZodObject<{
9449
+ id: z.ZodString;
9450
+ app: z.ZodString;
9451
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9452
+ }, z.core.$strip>;
9453
+ type CreateConnectionItem = z.infer<typeof CreateConnectionItemSchema>;
9454
+
9455
+ declare const WaitForNewConnectionItemSchema: z.ZodObject<{
9456
+ id: z.ZodString;
9457
+ app: z.ZodString;
9458
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9459
+ }, z.core.$strip>;
9460
+ type WaitForNewConnectionItem = z.infer<typeof WaitForNewConnectionItemSchema>;
9461
+
9462
+ declare const GetConnectionStartUrlItemSchema: z.ZodObject<{
9463
+ url: z.ZodString;
9464
+ expiresAt: z.ZodNumber;
9465
+ startedAt: z.ZodNumber;
9466
+ app: z.ZodString;
9467
+ }, z.core.$strip>;
9468
+ type GetConnectionStartUrlItem = z.infer<typeof GetConnectionStartUrlItemSchema>;
9469
+
9427
9470
  interface ZapierSdkOptions extends BaseSdkOptions {
9428
9471
  }
9429
9472
  declare function createOptionsPlugin(options: ZapierSdkOptions): () => {
@@ -9868,6 +9911,48 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
9868
9911
  findUniqueConnection: PluginMeta<unknown>;
9869
9912
  };
9870
9913
  };
9914
+ } & {
9915
+ getConnectionStartUrl: (options?: {
9916
+ app: string;
9917
+ } | undefined) => Promise<{
9918
+ data: GetConnectionStartUrlItem;
9919
+ }>;
9920
+ } & {
9921
+ context: {
9922
+ meta: {
9923
+ getConnectionStartUrl: PluginMeta<unknown>;
9924
+ };
9925
+ };
9926
+ } & {
9927
+ waitForNewConnection: (options?: {
9928
+ app: string;
9929
+ startedAt: number;
9930
+ timeoutMs?: number | undefined;
9931
+ pollIntervalMs?: number | undefined;
9932
+ } | undefined) => Promise<{
9933
+ data: WaitForNewConnectionItem;
9934
+ }>;
9935
+ } & {
9936
+ context: {
9937
+ meta: {
9938
+ waitForNewConnection: PluginMeta<unknown>;
9939
+ };
9940
+ };
9941
+ } & {
9942
+ createConnection: (options?: {
9943
+ app: string;
9944
+ browser: "never" | "auto" | "always";
9945
+ timeoutMs?: number | undefined;
9946
+ pollIntervalMs?: number | undefined;
9947
+ } | undefined) => Promise<{
9948
+ data: CreateConnectionItem;
9949
+ }>;
9950
+ } & {
9951
+ context: {
9952
+ meta: {
9953
+ createConnection: PluginMeta<unknown>;
9954
+ };
9955
+ };
9871
9956
  } & {
9872
9957
  listActions: (options?: (({
9873
9958
  app: string;
@@ -11842,6 +11927,48 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
11842
11927
  findUniqueConnection: PluginMeta<unknown>;
11843
11928
  };
11844
11929
  };
11930
+ } & {
11931
+ getConnectionStartUrl: (options?: {
11932
+ app: string;
11933
+ } | undefined) => Promise<{
11934
+ data: GetConnectionStartUrlItem;
11935
+ }>;
11936
+ } & {
11937
+ context: {
11938
+ meta: {
11939
+ getConnectionStartUrl: PluginMeta<unknown>;
11940
+ };
11941
+ };
11942
+ } & {
11943
+ waitForNewConnection: (options?: {
11944
+ app: string;
11945
+ startedAt: number;
11946
+ timeoutMs?: number | undefined;
11947
+ pollIntervalMs?: number | undefined;
11948
+ } | undefined) => Promise<{
11949
+ data: WaitForNewConnectionItem;
11950
+ }>;
11951
+ } & {
11952
+ context: {
11953
+ meta: {
11954
+ waitForNewConnection: PluginMeta<unknown>;
11955
+ };
11956
+ };
11957
+ } & {
11958
+ createConnection: (options?: {
11959
+ app: string;
11960
+ browser: "never" | "auto" | "always";
11961
+ timeoutMs?: number | undefined;
11962
+ pollIntervalMs?: number | undefined;
11963
+ } | undefined) => Promise<{
11964
+ data: CreateConnectionItem;
11965
+ }>;
11966
+ } & {
11967
+ context: {
11968
+ meta: {
11969
+ createConnection: PluginMeta<unknown>;
11970
+ };
11971
+ };
11845
11972
  } & {
11846
11973
  listActions: (options?: (({
11847
11974
  app: string;
@@ -13804,6 +13931,48 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
13804
13931
  findUniqueConnection: PluginMeta<unknown>;
13805
13932
  };
13806
13933
  };
13934
+ } & {
13935
+ getConnectionStartUrl: (options?: {
13936
+ app: string;
13937
+ } | undefined) => Promise<{
13938
+ data: GetConnectionStartUrlItem;
13939
+ }>;
13940
+ } & {
13941
+ context: {
13942
+ meta: {
13943
+ getConnectionStartUrl: PluginMeta<unknown>;
13944
+ };
13945
+ };
13946
+ } & {
13947
+ waitForNewConnection: (options?: {
13948
+ app: string;
13949
+ startedAt: number;
13950
+ timeoutMs?: number | undefined;
13951
+ pollIntervalMs?: number | undefined;
13952
+ } | undefined) => Promise<{
13953
+ data: WaitForNewConnectionItem;
13954
+ }>;
13955
+ } & {
13956
+ context: {
13957
+ meta: {
13958
+ waitForNewConnection: PluginMeta<unknown>;
13959
+ };
13960
+ };
13961
+ } & {
13962
+ createConnection: (options?: {
13963
+ app: string;
13964
+ browser: "never" | "auto" | "always";
13965
+ timeoutMs?: number | undefined;
13966
+ pollIntervalMs?: number | undefined;
13967
+ } | undefined) => Promise<{
13968
+ data: CreateConnectionItem;
13969
+ }>;
13970
+ } & {
13971
+ context: {
13972
+ meta: {
13973
+ createConnection: PluginMeta<unknown>;
13974
+ };
13975
+ };
13807
13976
  } & {
13808
13977
  listActions: (options?: (({
13809
13978
  app: string;
@@ -15397,4 +15566,4 @@ declare const registryPlugin: (sdk: {
15397
15566
  };
15398
15567
  }) => {};
15399
15568
 
15400
- export { createFunction as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type NeedsRequest as Q, type ResolvedAppLocator as R, type NeedsResponse as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type Connection as V, type WatchTriggerInboxOptions as W, type ConnectionsResponse as X, type UserProfile as Y, type ZapierSdkOptions as Z, isPositional as _, type PluginMeta as a, ActionPropertySchema as a$, createPluginStack as a0, createCorePlugin as a1, addPlugin as a2, type FormattedItem as a3, type Resolver as a4, type ArrayResolver as a5, type ResolverMetadata as a6, type StaticResolver as a7, type DynamicListResolver as a8, type DynamicSearchResolver as a9, definePlugin as aA, createPluginMethod as aB, createPaginatedPluginMethod as aC, composePlugins as aD, type ActionItem as aE, type ActionTypeItem as aF, registryPlugin as aG, type RequestOptions as aH, type PollOptions as aI, createZapierApi as aJ, getOrCreateApiClient as aK, isPermanentHttpError as aL, type SseMessage as aM, type JsonSseMessage as aN, type AppItem as aO, type ConnectionItem as aP, type ActionItem$1 as aQ, type InputFieldItem as aR, type InfoFieldItem as aS, type RootFieldItem as aT, type UserProfileItem as aU, type SdkPage as aV, type PaginatedSdkFunction as aW, AppKeyPropertySchema as aX, AppPropertySchema as aY, ActionTypePropertySchema as aZ, ActionKeyPropertySchema as a_, type FieldsResolver as aa, runInMethodScope as ab, runWithTelemetryContext as ac, toSnakeCase as ad, toTitleCase as ae, batch as af, type BatchOptions as ag, buildCapabilityMessage as ah, logDeprecation as ai, resetDeprecationWarnings as aj, RelayRequestSchema as ak, RelayFetchSchema as al, createZapierSdkWithoutRegistry as am, createSdk as an, createOptionsPlugin as ao, createZapierCoreStack as ap, type FunctionRegistryEntry as aq, type FunctionDeprecation as ar, BaseSdkOptionsSchema as as, isCoreError as at, getCoreErrorCode as au, getCoreErrorCause as av, CORE_ERROR_SYMBOL as aw, CoreErrorCode as ax, type Plugin as ay, type PluginProvides as az, type Manifest as b, ZapierTimeoutError as b$, InputFieldPropertySchema as b0, ConnectionIdPropertySchema as b1, AuthenticationIdPropertySchema as b2, ConnectionPropertySchema as b3, InputsPropertySchema as b4, LimitPropertySchema as b5, OffsetPropertySchema as b6, OutputPropertySchema as b7, DebugPropertySchema as b8, ParamsPropertySchema as b9, type DebugProperty as bA, type ParamsProperty as bB, type ActionTimeoutMsProperty as bC, type TableProperty as bD, type RecordProperty as bE, type RecordsProperty as bF, type FieldsProperty as bG, type AppsProperty as bH, type TablesProperty as bI, type ConnectionsProperty as bJ, type TriggerInboxProperty as bK, type TriggerInboxNameProperty as bL, type LeaseProperty as bM, type LeaseSecondsProperty as bN, type LeaseLimitProperty as bO, type ErrorOptions as bP, ZapierError as bQ, ZapierValidationError as bR, ZapierUnknownError as bS, ZapierAuthenticationError as bT, zapierAdaptError as bU, ZapierApiError as bV, ZapierAppNotFoundError as bW, ZapierNotFoundError as bX, ZapierResourceNotFoundError as bY, ZapierConfigurationError as bZ, ZapierBundleError as b_, ActionTimeoutMsPropertySchema as ba, TablePropertySchema as bb, RecordPropertySchema as bc, RecordsPropertySchema as bd, FieldsPropertySchema as be, AppsPropertySchema as bf, TablesPropertySchema as bg, ConnectionsPropertySchema as bh, TriggerInboxPropertySchema as bi, TriggerInboxNamePropertySchema as bj, LeasePropertySchema as bk, LeaseSecondsPropertySchema as bl, LeaseLimitPropertySchema as bm, type AppKeyProperty as bn, type AppProperty as bo, type ActionTypeProperty as bp, type ActionKeyProperty as bq, type ActionProperty as br, type InputFieldProperty as bs, type ConnectionIdProperty as bt, type ConnectionProperty as bu, type AuthenticationIdProperty as bv, type InputsProperty as bw, type LimitProperty as bx, type OffsetProperty as by, type OutputProperty as bz, type UpdateManifestEntryResult as c, actionKeyResolver as c$, ZapierActionError as c0, ZapierConflictError as c1, type RateLimitInfo as c2, ZapierRateLimitError as c3, type ApprovalStatus as c4, ZapierApprovalError as c5, ZapierRelayError as c6, formatErrorMessage as c7, type ApiError as c8, ZapierSignal as c9, getActionPlugin as cA, type GetActionPluginProvides as cB, getConnectionPlugin as cC, type GetConnectionPluginProvides as cD, findFirstConnectionPlugin as cE, type FindFirstConnectionPluginProvides as cF, findUniqueConnectionPlugin as cG, type FindUniqueConnectionPluginProvides as cH, CONTEXT_CACHE_TTL_MS as cI, CONTEXT_CACHE_MAX_SIZE as cJ, runActionPlugin as cK, type RunActionPluginProvides as cL, requestPlugin as cM, type RequestPluginProvides as cN, type ManifestPluginOptions as cO, getPreferredManifestEntryKey as cP, manifestPlugin as cQ, type ManifestPluginProvides as cR, DEFAULT_CONFIG_PATH as cS, type ManifestEntry as cT, getProfilePlugin as cU, type GetProfilePluginProvides as cV, type ApiPluginOptions as cW, apiPlugin as cX, type ApiPluginProvides as cY, appKeyResolver as cZ, actionTypeResolver as c_, appsPlugin as ca, type AppsPluginProvides as cb, type ActionExecutionOptions as cc, type AppFactoryInput as cd, fetchPlugin as ce, type FetchPluginProvides as cf, listAppsPlugin as cg, type ListAppsPluginProvides as ch, listActionsPlugin as ci, type ListActionsPluginProvides as cj, listActionInputFieldsPlugin as ck, type ListActionInputFieldsPluginProvides as cl, listActionInputFieldChoicesPlugin as cm, type ListActionInputFieldChoicesPluginProvides as cn, getActionInputFieldsSchemaPlugin as co, type GetActionInputFieldsSchemaPluginProvides as cp, listConnectionsPlugin as cq, type ListConnectionsPluginProvides as cr, listClientCredentialsPlugin as cs, type ListClientCredentialsPluginProvides as ct, createClientCredentialsPlugin as cu, type CreateClientCredentialsPluginProvides as cv, deleteClientCredentialsPlugin as cw, type DeleteClientCredentialsPluginProvides as cx, getAppPlugin as cy, type GetAppPluginProvides as cz, type AddActionEntryOptions as d, type ConnectionEntry as d$, connectionIdResolver as d0, connectionIdGenericResolver as d1, inputsResolver as d2, inputsAllOptionalResolver as d3, inputFieldKeyResolver as d4, clientCredentialsNameResolver as d5, clientIdResolver as d6, tableIdResolver as d7, triggerInboxResolver as d8, workflowIdResolver as d9, type SdkEvent as dA, type AuthEvent as dB, type ApiEvent as dC, type LoadingEvent as dD, type EventCallback as dE, type Credentials as dF, type ResolvedCredentials as dG, type CredentialsObject as dH, type ClientCredentialsObject as dI, type PkceCredentialsObject as dJ, isClientCredentials as dK, isPkceCredentials as dL, isCredentialsObject as dM, isCredentialsFunction as dN, type ResolveCredentialsOptions as dO, resolveCredentialsFromEnv as dP, resolveCredentials as dQ, getBaseUrlFromCredentials as dR, getClientIdFromCredentials as dS, ClientCredentialsObjectSchema as dT, PkceCredentialsObjectSchema as dU, CredentialsObjectSchema as dV, ResolvedCredentialsSchema as dW, CredentialsFunctionSchema as dX, type CredentialsFunction as dY, CredentialsSchema as dZ, ConnectionEntrySchema as d_, durableRunIdResolver as da, workflowVersionIdResolver as db, workflowRunIdResolver as dc, triggerMessagesResolver as dd, tableRecordIdResolver as de, tableRecordIdsResolver as df, tableFieldIdsResolver as dg, tableNameResolver as dh, tableFieldsResolver as di, tableRecordsResolver as dj, tableUpdateRecordsResolver as dk, tableFiltersResolver as dl, tableSortResolver as dm, type ResolveAuthTokenOptions as dn, clearTokenCache as dp, invalidateCachedToken as dq, injectCliLogin as dr, isCliLoginAvailable as ds, getTokenFromCliLogin as dt, resolveAuthToken as du, invalidateCredentialsToken as dv, type ZapierCache as dw, type ZapierCacheEntry as dx, type ZapierCacheSetOptions as dy, createMemoryCache as dz, type AddActionEntryResult as e, getCiPlatform as e$, ConnectionsMapSchema as e0, type ConnectionsMap as e1, connectionsPlugin as e2, type ConnectionsPluginProvides as e3, ZAPIER_BASE_URL as e4, getZapierSdkService as e5, MAX_PAGE_LIMIT as e6, DEFAULT_PAGE_SIZE as e7, DEFAULT_ACTION_TIMEOUT_MS as e8, ZAPIER_MAX_NETWORK_RETRIES as e9, createTableRecordsPlugin as eA, type CreateTableRecordsPluginProvides as eB, deleteTableRecordsPlugin as eC, type DeleteTableRecordsPluginProvides as eD, updateTableRecordsPlugin as eE, type UpdateTableRecordsPluginProvides as eF, cleanupEventListeners as eG, type EventEmissionConfig as eH, eventEmissionPlugin as eI, type EventEmissionProvides as eJ, type EventContext as eK, type ApplicationLifecycleEventData as eL, type EnhancedErrorEventData as eM, type MethodCalledEventData as eN, buildApplicationLifecycleEvent as eO, buildErrorEventWithContext as eP, buildErrorEvent as eQ, createBaseEvent as eR, buildMethodCalledEvent as eS, type BaseEvent as eT, type MethodCalledEvent as eU, generateEventId as eV, getCurrentTimestamp as eW, getReleaseId as eX, getOsInfo as eY, getPlatformVersions as eZ, isCi as e_, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ea, MAX_CONCURRENCY_LIMIT as eb, parseConcurrencyEnvVar as ec, ZAPIER_MAX_CONCURRENT_REQUESTS as ed, getZapierApprovalMode as ee, getZapierDefaultApprovalMode as ef, DEFAULT_APPROVAL_TIMEOUT_MS as eg, DEFAULT_MAX_APPROVAL_RETRIES as eh, listTablesPlugin as ei, type ListTablesPluginProvides as ej, getTablePlugin as ek, type GetTablePluginProvides as el, createTablePlugin as em, type CreateTablePluginProvides as en, deleteTablePlugin as eo, type DeleteTablePluginProvides as ep, listTableFieldsPlugin as eq, type ListTableFieldsPluginProvides as er, createTableFieldsPlugin as es, type CreateTableFieldsPluginProvides as et, deleteTableFieldsPlugin as eu, type DeleteTableFieldsPluginProvides as ev, getTableRecordPlugin as ew, type GetTableRecordPluginProvides as ex, listTableRecordsPlugin as ey, type ListTableRecordsPluginProvides as ez, type ActionEntry as f, getMemoryUsage as f0, getCpuTime as f1, getTtyContext as f2, getAgent as f3, createZapierSdk as f4, createZapierSdkStack as f5, type ZapierSdk as f6, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type PositionalMetadata as j, type ZapierFetchInitOptions as k, type DynamicResolver as l, type ActionProxy as m, type ZapierSdkApps as n, type WithAddPlugin as o, ZapierAbortDrainSignal as p, ZapierReleaseTriggerMessageSignal as q, readManifestFromFile as r, type DrainTriggerInboxCallback as s, type DrainTriggerInboxErrorObserver as t, type ListAuthenticationsPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };
15569
+ export { type ConnectionsResponse as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetConnectionStartUrlItem as G, type Action as H, type App as I, type Field as J, type Choice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type ActionExecutionResult as Q, type ResolvedAppLocator as R, type ActionField as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionFieldChoice as V, type WaitForNewConnectionItem as W, type NeedsRequest as X, type NeedsResponse as Y, type ZapierSdkOptions as Z, type Connection as _, type PluginMeta as a, AppPropertySchema as a$, type UserProfile as a0, isPositional as a1, createFunction as a2, createPluginStack as a3, createCorePlugin as a4, addPlugin as a5, type FormattedItem as a6, type Resolver as a7, type ArrayResolver as a8, type ResolverMetadata as a9, CoreErrorCode as aA, type Plugin as aB, type PluginProvides as aC, definePlugin as aD, createPluginMethod as aE, createPaginatedPluginMethod as aF, composePlugins as aG, type ActionItem as aH, type ActionTypeItem as aI, registryPlugin as aJ, type RequestOptions as aK, type PollOptions as aL, createZapierApi as aM, getOrCreateApiClient as aN, isPermanentHttpError as aO, type SseMessage as aP, type JsonSseMessage as aQ, type AppItem as aR, type ConnectionItem as aS, type ActionItem$1 as aT, type InputFieldItem as aU, type InfoFieldItem as aV, type RootFieldItem as aW, type UserProfileItem as aX, type SdkPage as aY, type PaginatedSdkFunction as aZ, AppKeyPropertySchema as a_, type StaticResolver as aa, type DynamicListResolver as ab, type DynamicSearchResolver as ac, type FieldsResolver as ad, runInMethodScope as ae, runWithTelemetryContext as af, toSnakeCase as ag, toTitleCase as ah, batch as ai, type BatchOptions as aj, buildCapabilityMessage as ak, logDeprecation as al, resetDeprecationWarnings as am, RelayRequestSchema as an, RelayFetchSchema as ao, createZapierSdkWithoutRegistry as ap, createSdk as aq, createOptionsPlugin as ar, createZapierCoreStack as as, type FunctionRegistryEntry as at, type FunctionDeprecation as au, BaseSdkOptionsSchema as av, isCoreError as aw, getCoreErrorCode as ax, getCoreErrorCause as ay, CORE_ERROR_SYMBOL as az, type Manifest as b, ZapierResourceNotFoundError as b$, ActionTypePropertySchema as b0, ActionKeyPropertySchema as b1, ActionPropertySchema as b2, InputFieldPropertySchema as b3, ConnectionIdPropertySchema as b4, AuthenticationIdPropertySchema as b5, ConnectionPropertySchema as b6, InputsPropertySchema as b7, LimitPropertySchema as b8, OffsetPropertySchema as b9, type LimitProperty as bA, type OffsetProperty as bB, type OutputProperty as bC, type DebugProperty as bD, type ParamsProperty as bE, type ActionTimeoutMsProperty as bF, type TableProperty as bG, type RecordProperty as bH, type RecordsProperty as bI, type FieldsProperty as bJ, type AppsProperty as bK, type TablesProperty as bL, type ConnectionsProperty as bM, type TriggerInboxProperty as bN, type TriggerInboxNameProperty as bO, type LeaseProperty as bP, type LeaseSecondsProperty as bQ, type LeaseLimitProperty as bR, type ErrorOptions as bS, ZapierError as bT, ZapierValidationError as bU, ZapierUnknownError as bV, ZapierAuthenticationError as bW, zapierAdaptError as bX, ZapierApiError as bY, ZapierAppNotFoundError as bZ, ZapierNotFoundError as b_, OutputPropertySchema as ba, DebugPropertySchema as bb, ParamsPropertySchema as bc, ActionTimeoutMsPropertySchema as bd, TablePropertySchema as be, RecordPropertySchema as bf, RecordsPropertySchema as bg, FieldsPropertySchema as bh, AppsPropertySchema as bi, TablesPropertySchema as bj, ConnectionsPropertySchema as bk, TriggerInboxPropertySchema as bl, TriggerInboxNamePropertySchema as bm, LeasePropertySchema as bn, LeaseSecondsPropertySchema as bo, LeaseLimitPropertySchema as bp, type AppKeyProperty as bq, type AppProperty as br, type ActionTypeProperty as bs, type ActionKeyProperty as bt, type ActionProperty as bu, type InputFieldProperty as bv, type ConnectionIdProperty as bw, type ConnectionProperty as bx, type AuthenticationIdProperty as by, type InputsProperty as bz, type UpdateManifestEntryResult as c, type ApiPluginProvides as c$, ZapierConfigurationError as c0, ZapierBundleError as c1, ZapierTimeoutError as c2, ZapierActionError as c3, ZapierConflictError as c4, type RateLimitInfo as c5, ZapierRateLimitError as c6, type ApprovalStatus as c7, ZapierApprovalError as c8, ZapierRelayError as c9, type DeleteClientCredentialsPluginProvides as cA, getAppPlugin as cB, type GetAppPluginProvides as cC, getActionPlugin as cD, type GetActionPluginProvides as cE, getConnectionPlugin as cF, type GetConnectionPluginProvides as cG, findFirstConnectionPlugin as cH, type FindFirstConnectionPluginProvides as cI, findUniqueConnectionPlugin as cJ, type FindUniqueConnectionPluginProvides as cK, CONTEXT_CACHE_TTL_MS as cL, CONTEXT_CACHE_MAX_SIZE as cM, runActionPlugin as cN, type RunActionPluginProvides as cO, requestPlugin as cP, type RequestPluginProvides as cQ, type ManifestPluginOptions as cR, getPreferredManifestEntryKey as cS, manifestPlugin as cT, type ManifestPluginProvides as cU, DEFAULT_CONFIG_PATH as cV, type ManifestEntry as cW, getProfilePlugin as cX, type GetProfilePluginProvides as cY, type ApiPluginOptions as cZ, apiPlugin as c_, formatErrorMessage as ca, type ApiError as cb, ZapierSignal as cc, appsPlugin as cd, type AppsPluginProvides as ce, type ActionExecutionOptions as cf, type AppFactoryInput as cg, fetchPlugin as ch, type FetchPluginProvides as ci, listAppsPlugin as cj, type ListAppsPluginProvides as ck, listActionsPlugin as cl, type ListActionsPluginProvides as cm, listActionInputFieldsPlugin as cn, type ListActionInputFieldsPluginProvides as co, listActionInputFieldChoicesPlugin as cp, type ListActionInputFieldChoicesPluginProvides as cq, getActionInputFieldsSchemaPlugin as cr, type GetActionInputFieldsSchemaPluginProvides as cs, listConnectionsPlugin as ct, type ListConnectionsPluginProvides as cu, listClientCredentialsPlugin as cv, type ListClientCredentialsPluginProvides as cw, createClientCredentialsPlugin as cx, type CreateClientCredentialsPluginProvides as cy, deleteClientCredentialsPlugin as cz, type AddActionEntryOptions as d, type CredentialsFunction as d$, appKeyResolver as d0, actionTypeResolver as d1, actionKeyResolver as d2, connectionIdResolver as d3, connectionIdGenericResolver as d4, inputsResolver as d5, inputsAllOptionalResolver as d6, inputFieldKeyResolver as d7, clientCredentialsNameResolver as d8, clientIdResolver as d9, type ZapierCacheEntry as dA, type ZapierCacheSetOptions as dB, createMemoryCache as dC, type SdkEvent as dD, type AuthEvent as dE, type ApiEvent as dF, type LoadingEvent as dG, type EventCallback as dH, type Credentials as dI, type ResolvedCredentials as dJ, type CredentialsObject as dK, type ClientCredentialsObject as dL, type PkceCredentialsObject as dM, isClientCredentials as dN, isPkceCredentials as dO, isCredentialsObject as dP, isCredentialsFunction as dQ, type ResolveCredentialsOptions as dR, resolveCredentialsFromEnv as dS, resolveCredentials as dT, getBaseUrlFromCredentials as dU, getClientIdFromCredentials as dV, ClientCredentialsObjectSchema as dW, PkceCredentialsObjectSchema as dX, CredentialsObjectSchema as dY, ResolvedCredentialsSchema as dZ, CredentialsFunctionSchema as d_, tableIdResolver as da, triggerInboxResolver as db, workflowIdResolver as dc, durableRunIdResolver as dd, workflowVersionIdResolver as de, workflowRunIdResolver as df, triggerMessagesResolver as dg, tableRecordIdResolver as dh, tableRecordIdsResolver as di, tableFieldIdsResolver as dj, tableNameResolver as dk, tableFieldsResolver as dl, tableRecordsResolver as dm, tableUpdateRecordsResolver as dn, tableFiltersResolver as dp, tableSortResolver as dq, type ResolveAuthTokenOptions as dr, clearTokenCache as ds, invalidateCachedToken as dt, injectCliLogin as du, isCliLoginAvailable as dv, getTokenFromCliLogin as dw, resolveAuthToken as dx, invalidateCredentialsToken as dy, type ZapierCache as dz, type AddActionEntryResult as e, getReleaseId as e$, CredentialsSchema as e0, ConnectionEntrySchema as e1, type ConnectionEntry as e2, ConnectionsMapSchema as e3, type ConnectionsMap as e4, connectionsPlugin as e5, type ConnectionsPluginProvides as e6, ZAPIER_BASE_URL as e7, getZapierSdkService as e8, MAX_PAGE_LIMIT as e9, getTableRecordPlugin as eA, type GetTableRecordPluginProvides as eB, listTableRecordsPlugin as eC, type ListTableRecordsPluginProvides as eD, createTableRecordsPlugin as eE, type CreateTableRecordsPluginProvides as eF, deleteTableRecordsPlugin as eG, type DeleteTableRecordsPluginProvides as eH, updateTableRecordsPlugin as eI, type UpdateTableRecordsPluginProvides as eJ, cleanupEventListeners as eK, type EventEmissionConfig as eL, eventEmissionPlugin as eM, type EventEmissionProvides as eN, type EventContext as eO, type ApplicationLifecycleEventData as eP, type EnhancedErrorEventData as eQ, type MethodCalledEventData as eR, buildApplicationLifecycleEvent as eS, buildErrorEventWithContext as eT, buildErrorEvent as eU, createBaseEvent as eV, buildMethodCalledEvent as eW, type BaseEvent as eX, type MethodCalledEvent as eY, generateEventId as eZ, getCurrentTimestamp as e_, DEFAULT_PAGE_SIZE as ea, DEFAULT_ACTION_TIMEOUT_MS as eb, ZAPIER_MAX_NETWORK_RETRIES as ec, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ed, MAX_CONCURRENCY_LIMIT as ee, parseConcurrencyEnvVar as ef, ZAPIER_MAX_CONCURRENT_REQUESTS as eg, getZapierApprovalMode as eh, getZapierOpenAutoModeApprovalsInBrowser as ei, getZapierDefaultApprovalMode as ej, DEFAULT_APPROVAL_TIMEOUT_MS as ek, DEFAULT_MAX_APPROVAL_RETRIES as el, listTablesPlugin as em, type ListTablesPluginProvides as en, getTablePlugin as eo, type GetTablePluginProvides as ep, createTablePlugin as eq, type CreateTablePluginProvides as er, deleteTablePlugin as es, type DeleteTablePluginProvides as et, listTableFieldsPlugin as eu, type ListTableFieldsPluginProvides as ev, createTableFieldsPlugin as ew, type CreateTableFieldsPluginProvides as ex, deleteTableFieldsPlugin as ey, type DeleteTableFieldsPluginProvides as ez, type ActionEntry as f, getOsInfo as f0, getPlatformVersions as f1, isCi as f2, getCiPlatform as f3, getMemoryUsage as f4, getCpuTime as f5, getTtyContext as f6, getAgent as f7, createZapierSdk as f8, createZapierSdkStack as f9, type ZapierSdk as fa, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type CreateConnectionItem as j, type PositionalMetadata as k, type ZapierFetchInitOptions as l, type DynamicResolver as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type WithAddPlugin as q, readManifestFromFile as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, type DrainTriggerInboxCallback as u, type DrainTriggerInboxErrorObserver as v, type ListAuthenticationsPluginProvides as w, type GetAuthenticationPluginProvides as x, type FindFirstAuthenticationPluginProvides as y, type FindUniqueAuthenticationPluginProvides as z };