@zapier/zapier-sdk 0.69.1 → 0.69.3

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 (30) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +32 -22
  3. package/dist/api/index.d.ts.map +1 -1
  4. package/dist/api/index.js +1 -2
  5. package/dist/experimental.cjs +59 -2
  6. package/dist/experimental.d.mts +34 -2
  7. package/dist/experimental.d.ts +32 -0
  8. package/dist/experimental.d.ts.map +1 -1
  9. package/dist/experimental.mjs +59 -3
  10. package/dist/{index-BWdR4HBe.d.mts → index-DuFFW71E.d.mts} +13 -1
  11. package/dist/{index-BWdR4HBe.d.ts → index-DuFFW71E.d.ts} +13 -1
  12. package/dist/index.cjs +8 -1
  13. package/dist/index.d.mts +1 -1
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +1 -0
  17. package/dist/index.mjs +8 -2
  18. package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +3 -0
  19. package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts.map +1 -1
  20. package/dist/plugins/codeSubstrate/createWorkflow/index.js +3 -0
  21. package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts +3 -0
  22. package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts.map +1 -1
  23. package/dist/plugins/codeSubstrate/createWorkflow/schemas.js +11 -0
  24. package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +13 -0
  25. package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
  26. package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +9 -0
  27. package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +13 -0
  28. package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -1
  29. package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +52 -0
  30. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.69.3
4
+
5
+ ### Patch Changes
6
+
7
+ - c4df375: Restore `connections`, `app_versions`, and `trigger` input fields on the
8
+ experimental `publishWorkflowVersion` plugin. The fields were dropped
9
+ during the port from `@zapier/zapier-sdk-code-substrate`, leaving
10
+ workflows published via the in-tree plugin unable to bind connection
11
+ aliases or wire a trigger. Shape matches the durableworkflowzaps
12
+ backend: connections as `{alias: {connection_id: ...}}`, app_versions as
13
+ `{alias: {implementation_name, version?}}`, and trigger as a nested
14
+ object with `selected_api` + `action` required.
15
+
16
+ ## 0.69.2
17
+
18
+ ### Patch Changes
19
+
20
+ - c50db26: Fixed logout so it reliably clears local authentication state even when the server cannot revoke the credential. Previously a failed revocation could abort logout and strand the user with credentials they could not remove. Re-login flows are unaffected; they still surface revocation failures before replacing credentials.
21
+
3
22
  ## 0.69.1
4
23
 
5
24
  ### Patch Changes
package/README.md CHANGED
@@ -1130,23 +1130,26 @@ Create a durable workflow container. Starts disabled with no version; publish a
1130
1130
 
1131
1131
  **Parameters:**
1132
1132
 
1133
- | Name | Type | Required | Default | Possible Values | Description |
1134
- | ----------------- | -------- | -------- | ------- | --------------- | ------------------------------------- |
1135
- | `options` | `object` | ✅ | — | — | |
1136
- | ​ ↳ `name` | `string` | ✅ | — | — | Workflow name |
1137
- | ​ ↳ `description` | `string` | ❌ | — | — | Optional description for the workflow |
1133
+ | Name | Type | Required | Default | Possible Values | Description |
1134
+ | ----------------- | --------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------------------- |
1135
+ | `options` | `object` | ✅ | — | — | |
1136
+ | ​ ↳ `name` | `string` | ✅ | — | — | Workflow name |
1137
+ | ​ ↳ `description` | `string` | ❌ | — | — | Optional description for the workflow |
1138
+ | ​ ↳ `is_private` | `boolean` | ❌ | — | — | If true, only the creating user can see or manage this workflow. Defaults to false (account-visible). |
1138
1139
 
1139
1140
  **Returns:** `Promise<WorkflowItem>`
1140
1141
 
1141
- | Name | Type | Required | Possible Values | Description |
1142
- | ----------------- | --------- | -------- | --------------- | --------------------------------------------------------------------------------------------------------------------------- |
1143
- | `data` | `object` | ✅ | — | |
1144
- | ​ ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
1145
- | ​ ↳ `name` | `string` | ✅ | — | Workflow name |
1146
- | ​ ↳ `description` | `string` | ✅ | — | Workflow description (null if unset) |
1147
- | ​ ↳ `trigger_url` | `string` | ✅ | — | Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path — treat as sensitive. |
1148
- | ​ ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers. Always false on a new workflow until enabled. |
1149
- | ​ ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
1142
+ | Name | Type | Required | Possible Values | Description |
1143
+ | ------------------------ | --------- | -------- | --------------- | --------------------------------------------------------------------------------------------------------------------------- |
1144
+ | `data` | `object` | ✅ | — | |
1145
+ | ​ ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
1146
+ | ​ ↳ `name` | `string` | ✅ | — | Workflow name |
1147
+ | ​ ↳ `description` | `string` | ✅ | — | Workflow description (null if unset) |
1148
+ | ​ ↳ `trigger_url` | `string` | ✅ | — | Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path — treat as sensitive. |
1149
+ | ​ ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers. Always false on a new workflow until enabled. |
1150
+ | ​ ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible. |
1151
+ | ​ ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data) |
1152
+ | ​ ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
1150
1153
 
1151
1154
  **Example:**
1152
1155
 
@@ -1615,14 +1618,21 @@ Publish a new version of a durable workflow. Enables the workflow by default.
1615
1618
 
1616
1619
  **Parameters:**
1617
1620
 
1618
- | Name | Type | Required | Default | Possible Values | Description |
1619
- | ---------------------------- | --------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------------------------------- |
1620
- | `options` | `object` | ✅ | — | — | |
1621
- | ​ ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
1622
- | ​ ↳ `source_files` | `object` | ✅ | — | — | Source files keyed by filename → contents |
1623
- | ​ ↳ `dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
1624
- | ​ ↳ `zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
1625
- | ​ ↳ `enabled` | `boolean` | ❌ | — | — | Enable the workflow after publishing. Defaults to true; pass false to publish without enabling. |
1621
+ | Name | Type | Required | Default | Possible Values | Description |
1622
+ | ---------------------------- | --------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------------------------------- |
1623
+ | `options` | `object` | ✅ | — | — | |
1624
+ | ​ ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
1625
+ | ​ ↳ `source_files` | `object` | ✅ | — | — | Source files keyed by filename → contents |
1626
+ | ​ ↳ `dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
1627
+ | ​ ↳ `zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
1628
+ | ​ ↳ `enabled` | `boolean` | ❌ | — | — | Enable the workflow after publishing. Defaults to true; pass false to publish without enabling. |
1629
+ | ​ ↳ `connections` | `object` | ❌ | — | — | Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding. |
1630
+ | ​ ↳ `app_versions` | `object` | ❌ | — | — | Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding. |
1631
+ | ​ ↳ `trigger` | `object` | ❌ | — | — | Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; omit for webhook-only workflows. |
1632
+ | ​   ↳ `selected_api` | `string` | ✅ | — | — | Zapier app/API identifier (e.g. 'GoogleSheetsAPI') |
1633
+ | ​   ↳ `action` | `string` | ✅ | — | — | Trigger action key (e.g. 'new_row') |
1634
+ | ​   ↳ `authentication_id` | `string` | ❌ | — | — | Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier). |
1635
+ | ​   ↳ `params` | `object` | ❌ | — | — | Trigger parameters as a JSON object |
1626
1636
 
1627
1637
  **Returns:** `Promise<WorkflowVersionItem>`
1628
1638
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EAEV,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,WAAW,EAEX,MAAM,EACN,KAAK,EACL,MAAM,EACN,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKxD,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAG9E,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAM9D,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,OAAO,CAAC,E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A4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;CACjC,GAAG,SAAS,CAsBZ"}
package/dist/api/index.js CHANGED
@@ -14,8 +14,7 @@ export { createDebugLogger, createDebugFetch } from "./debug";
14
14
  export { pollUntilComplete } from "./polling";
15
15
  // Re-export the main client factory
16
16
  export { createZapierApi } from "./client";
17
- // Re-export HTTP error classification (SDK-internal: not surfaced at the
18
- // package root, which cherry-picks named exports from this module).
17
+ // Re-export HTTP error classification
19
18
  export { isPermanentHttpError } from "./error-classification";
20
19
  // Import for local use
21
20
  import { createZapierApi } from "./client";
@@ -3171,7 +3171,7 @@ function createSseParserStream() {
3171
3171
  }
3172
3172
 
3173
3173
  // src/sdk-version.ts
3174
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.1" : void 0) || "unknown";
3174
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.3" : void 0) || "unknown";
3175
3175
 
3176
3176
  // src/utils/open-url.ts
3177
3177
  var nodePrefix = "node:";
@@ -11177,7 +11177,10 @@ var getWorkflowPlugin = definePlugin(
11177
11177
  );
11178
11178
  var CreateWorkflowOptionsSchema = zod.z.object({
11179
11179
  name: zod.z.string().min(1).describe("Workflow name"),
11180
- description: zod.z.string().optional().describe("Optional description for the workflow")
11180
+ description: zod.z.string().optional().describe("Optional description for the workflow"),
11181
+ is_private: zod.z.boolean().optional().describe(
11182
+ "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
11183
+ )
11181
11184
  }).describe(
11182
11185
  "Create a durable workflow container. Starts disabled with no version; publish a version to add code."
11183
11186
  );
@@ -11191,6 +11194,10 @@ var CreateWorkflowResponseSchema = zod.z.object({
11191
11194
  enabled: zod.z.boolean().describe(
11192
11195
  "Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
11193
11196
  ),
11197
+ is_private: zod.z.boolean().describe(
11198
+ "Whether the workflow is private to the creating user. False means account-visible."
11199
+ ),
11200
+ created_by_user_id: zod.z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
11194
11201
  created_at: zod.z.string().describe("When the workflow was created (ISO-8601)")
11195
11202
  });
11196
11203
 
@@ -11208,6 +11215,9 @@ var createWorkflowPlugin = definePlugin(
11208
11215
  if (options.description !== void 0) {
11209
11216
  body.description = options.description;
11210
11217
  }
11218
+ if (options.is_private !== void 0) {
11219
+ body.is_private = options.is_private;
11220
+ }
11211
11221
  const data = await sdk2.context.api.post(
11212
11222
  "/durableworkflowzaps/api/v0/workflows",
11213
11223
  body,
@@ -11658,6 +11668,34 @@ var cancelDurableRunPlugin = definePlugin(
11658
11668
  }
11659
11669
  })
11660
11670
  );
11671
+ var CONNECTION_ID_PATTERN = /^([1-9][0-9]*|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
11672
+ var ConnectionBindingSchema = zod.z.object({
11673
+ connection_id: zod.z.union([
11674
+ zod.z.number().int().positive(),
11675
+ zod.z.string().regex(
11676
+ CONNECTION_ID_PATTERN,
11677
+ "connection_id must be a positive integer string or UUID"
11678
+ )
11679
+ ]).describe(
11680
+ "Zapier connection ID. Positive integer (legacy) or UUID string (newer)."
11681
+ )
11682
+ }).describe(
11683
+ "Connection binding: maps a single alias to a concrete connection."
11684
+ );
11685
+ var AppVersionBindingSchema = zod.z.object({
11686
+ implementation_name: zod.z.string().describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
11687
+ version: zod.z.string().optional().describe("App implementation version (e.g. '1.27.1')")
11688
+ }).describe("App-version binding: maps a single alias to an app version.");
11689
+ var TriggerConfigSchema = zod.z.object({
11690
+ selected_api: zod.z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
11691
+ action: zod.z.string().describe("Trigger action key (e.g. 'new_row')"),
11692
+ authentication_id: zod.z.string().nullish().describe(
11693
+ "Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."
11694
+ ),
11695
+ params: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe("Trigger parameters as a JSON object")
11696
+ }).describe(
11697
+ "Zapier trigger configuration. When set, the workflow subscribes to trigger events."
11698
+ );
11661
11699
  var PublishWorkflowVersionOptionsSchema = zod.z.object({
11662
11700
  workflow: zod.z.string().uuid().describe("Durable workflow ID"),
11663
11701
  source_files: zod.z.record(zod.z.string(), zod.z.string()).refine((files) => Object.keys(files).length > 0, {
@@ -11669,6 +11707,15 @@ var PublishWorkflowVersionOptionsSchema = zod.z.object({
11669
11707
  ),
11670
11708
  enabled: zod.z.boolean().optional().describe(
11671
11709
  "Enable the workflow after publishing. Defaults to true; pass false to publish without enabling."
11710
+ ),
11711
+ connections: zod.z.record(zod.z.string(), ConnectionBindingSchema).nullish().describe(
11712
+ "Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding."
11713
+ ),
11714
+ app_versions: zod.z.record(zod.z.string(), AppVersionBindingSchema).nullish().describe(
11715
+ "Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding."
11716
+ ),
11717
+ trigger: TriggerConfigSchema.optional().describe(
11718
+ "Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; omit for webhook-only workflows."
11672
11719
  )
11673
11720
  }).describe(
11674
11721
  "Publish a new version of a durable workflow. Enables the workflow by default."
@@ -11708,6 +11755,15 @@ var publishWorkflowVersionPlugin = definePlugin(
11708
11755
  if (options.enabled !== void 0) {
11709
11756
  body.enabled = options.enabled;
11710
11757
  }
11758
+ if (options.connections !== void 0) {
11759
+ body.connections = options.connections;
11760
+ }
11761
+ if (options.app_versions !== void 0) {
11762
+ body.app_versions = options.app_versions;
11763
+ }
11764
+ if (options.trigger !== void 0) {
11765
+ body.trigger = options.trigger;
11766
+ }
11711
11767
  const raw = await sdk2.context.api.post(
11712
11768
  `/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`,
11713
11769
  body,
@@ -12396,6 +12452,7 @@ exports.isClientCredentials = isClientCredentials;
12396
12452
  exports.isCoreError = isCoreError;
12397
12453
  exports.isCredentialsFunction = isCredentialsFunction;
12398
12454
  exports.isCredentialsObject = isCredentialsObject;
12455
+ exports.isPermanentHttpError = isPermanentHttpError;
12399
12456
  exports.isPkceCredentials = isPkceCredentials;
12400
12457
  exports.isPositional = isPositional;
12401
12458
  exports.listActionInputFieldChoicesPlugin = listActionInputFieldChoicesPlugin;
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, F as FieldsetItem, j as PositionalMetadata, O as OutputFormatter, k as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, l as DynamicResolver, W as WatchTriggerInboxOptions, m as ActionProxy, n as ZapierSdkApps, o as WithAddPlugin } from './index-BWdR4HBe.mjs';
2
- export { x as Action, ca as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, aO as ActionItem, bo as ActionKeyProperty, aY as ActionKeyPropertySchema, bp as ActionProperty, aZ as ActionPropertySchema, aE as ActionResolverItem, bA as ActionTimeoutMsProperty, b8 as ActionTimeoutMsPropertySchema, aF as ActionTypeItem, bn as ActionTypeProperty, aX as ActionTypePropertySchema, c6 as ApiError, dA as ApiEvent, cU as ApiPluginOptions, cW as ApiPluginProvides, y as App, cb as AppFactoryInput, aM as AppItem, bl as AppKeyProperty, aV as AppKeyPropertySchema, bm as AppProperty, aW as AppPropertySchema, eJ as ApplicationLifecycleEventData, c2 as ApprovalStatus, c9 as AppsPluginProvides, bF as AppsProperty, bd as AppsPropertySchema, a5 as ArrayResolver, dz as AuthEvent, bt as AuthenticationIdProperty, b0 as AuthenticationIdPropertySchema, eR as BaseEvent, as as BaseSdkOptionsSchema, ag as BatchOptions, cH as CONTEXT_CACHE_MAX_SIZE, cG as CONTEXT_CACHE_TTL_MS, aw as CORE_ERROR_SYMBOL, H as Choice, dG as ClientCredentialsObject, dR as ClientCredentialsObjectSchema, V as Connection, dZ as ConnectionEntry, dY as ConnectionEntrySchema, br as ConnectionIdProperty, a$ as ConnectionIdPropertySchema, aN as ConnectionItem, bs as ConnectionProperty, b1 as ConnectionPropertySchema, d$ as ConnectionsMap, d_ as ConnectionsMapSchema, e1 as ConnectionsPluginProvides, bH as ConnectionsProperty, bf as ConnectionsPropertySchema, X as ConnectionsResponse, ax as CoreErrorCode, ct as CreateClientCredentialsPluginProvides, er as CreateTableFieldsPluginProvides, el as CreateTablePluginProvides, ez as CreateTableRecordsPluginProvides, dD as Credentials, dW as CredentialsFunction, dV as CredentialsFunctionSchema, dF as CredentialsObject, dT as CredentialsObjectSchema, dX as CredentialsSchema, e6 as DEFAULT_ACTION_TIMEOUT_MS, ee as DEFAULT_APPROVAL_TIMEOUT_MS, cQ as DEFAULT_CONFIG_PATH, ef as DEFAULT_MAX_APPROVAL_RETRIES, e5 as DEFAULT_PAGE_SIZE, by as DebugProperty, b6 as DebugPropertySchema, cv as DeleteClientCredentialsPluginProvides, et as DeleteTableFieldsPluginProvides, en as DeleteTablePluginProvides, eB as DeleteTableRecordsPluginProvides, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, a8 as DynamicListResolver, a9 as DynamicSearchResolver, eK as EnhancedErrorEventData, bN as ErrorOptions, dC as EventCallback, eI as EventContext, eF as EventEmissionConfig, eH as EventEmissionProvides, cd as FetchPluginProvides, z as Field, bE as FieldsProperty, bc as FieldsPropertySchema, aa as FieldsResolver, v as FindFirstAuthenticationPluginProvides, cD as FindFirstConnectionPluginProvides, w as FindUniqueAuthenticationPluginProvides, cF as FindUniqueConnectionPluginProvides, a3 as FormattedItem, ar as FunctionDeprecation, aq as FunctionRegistryEntry, cn as GetActionInputFieldsSchemaPluginProvides, cz as GetActionPluginProvides, cx as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cB as GetConnectionPluginProvides, cT as GetProfilePluginProvides, ej as GetTablePluginProvides, ev as GetTableRecordPluginProvides, aQ as InfoFieldItem, aP as InputFieldItem, bq as InputFieldProperty, a_ as InputFieldPropertySchema, bu as InputsProperty, b2 as InputsPropertySchema, bM as LeaseLimitProperty, bk as LeaseLimitPropertySchema, bK as LeaseProperty, bi as LeasePropertySchema, bL as LeaseSecondsProperty, bj as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bv as LimitProperty, b3 as LimitPropertySchema, cl as ListActionInputFieldChoicesPluginProvides, cj as ListActionInputFieldsPluginProvides, ch as ListActionsPluginProvides, cf as ListAppsPluginProvides, u as ListAuthenticationsPluginProvides, cr as ListClientCredentialsPluginProvides, cp as ListConnectionsPluginProvides, ep as ListTableFieldsPluginProvides, ex as ListTableRecordsPluginProvides, eh as ListTablesPluginProvides, dB as LoadingEvent, e9 as MAX_CONCURRENCY_LIMIT, e4 as MAX_PAGE_LIMIT, cR as ManifestEntry, cM as ManifestPluginOptions, cP as ManifestPluginProvides, eS as MethodCalledEvent, eL as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bw as OffsetProperty, b4 as OffsetPropertySchema, bx as OutputProperty, b5 as OutputPropertySchema, aU as PaginatedSdkFunction, bz as ParamsProperty, b7 as ParamsPropertySchema, dH as PkceCredentialsObject, dS as PkceCredentialsObjectSchema, ay as Plugin, az as PluginProvides, aI as PollOptions, c0 as RateLimitInfo, bC as RecordProperty, ba as RecordPropertySchema, bD as RecordsProperty, bb as RecordsPropertySchema, al as RelayFetchSchema, ak as RelayRequestSchema, aH as RequestOptions, cL as RequestPluginProvides, dl as ResolveAuthTokenOptions, dM as ResolveCredentialsOptions, dE as ResolvedCredentials, dU as ResolvedCredentialsSchema, a4 as Resolver, a6 as ResolverMetadata, aR as RootFieldItem, cJ as RunActionPluginProvides, dy as SdkEvent, aT as SdkPage, aL as SseMessage, a7 as StaticResolver, bB as TableProperty, b9 as TablePropertySchema, bG as TablesProperty, be as TablesPropertySchema, bJ as TriggerInboxNameProperty, bh as TriggerInboxNamePropertySchema, bI as TriggerInboxProperty, bg as TriggerInboxPropertySchema, T as TriggerMessageStatus, eD as UpdateTableRecordsPluginProvides, Y as UserProfile, aS as UserProfileItem, e2 as ZAPIER_BASE_URL, eb as ZAPIER_MAX_CONCURRENT_REQUESTS, e7 as ZAPIER_MAX_NETWORK_RETRIES, e8 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, p as ZapierAbortDrainSignal, b_ as ZapierActionError, bT as ZapierApiError, bU as ZapierAppNotFoundError, c3 as ZapierApprovalError, bR as ZapierAuthenticationError, bY as ZapierBundleError, du as ZapierCache, dv as ZapierCacheEntry, dw as ZapierCacheSetOptions, bX as ZapierConfigurationError, b$ as ZapierConflictError, bO as ZapierError, bV as ZapierNotFoundError, c1 as ZapierRateLimitError, c4 as ZapierRelayError, q as ZapierReleaseTriggerMessageSignal, bW as ZapierResourceNotFoundError, c7 as ZapierSignal, bZ as ZapierTimeoutError, bQ as ZapierUnknownError, bP as ZapierValidationError, cZ as actionKeyResolver, cY as actionTypeResolver, a2 as addPlugin, cV as apiPlugin, cX as appKeyResolver, c8 as appsPlugin, c$ as authenticationIdGenericResolver, c_ as authenticationIdResolver, af as batch, eM as buildApplicationLifecycleEvent, ah as buildCapabilityMessage, eO as buildErrorEvent, eN as buildErrorEventWithContext, eQ as buildMethodCalledEvent, eE as cleanupEventListeners, dm as clearTokenCache, d3 as clientCredentialsNameResolver, d4 as clientIdResolver, aD as composePlugins, c$ as connectionIdGenericResolver, c_ as connectionIdResolver, e0 as connectionsPlugin, eP as createBaseEvent, cs as createClientCredentialsPlugin, a1 as createCorePlugin, $ as createFunction, dx as createMemoryCache, ao as createOptionsPlugin, aC as createPaginatedPluginMethod, aB as createPluginMethod, a0 as createPluginStack, an as createSdk, eq as createTableFieldsPlugin, ek as createTablePlugin, ey as createTableRecordsPlugin, aJ as createZapierApi, ap as createZapierCoreStack, am as createZapierSdkWithoutRegistry, aA as definePlugin, cu as deleteClientCredentialsPlugin, es as deleteTableFieldsPlugin, em as deleteTablePlugin, eA as deleteTableRecordsPlugin, d8 as durableRunIdResolver, eG as eventEmissionPlugin, cc as fetchPlugin, cC as findFirstConnectionPlugin, cE as findUniqueConnectionPlugin, c5 as formatErrorMessage, eT as generateEventId, cm as getActionInputFieldsSchemaPlugin, cy as getActionPlugin, cw as getAppPlugin, dP as getBaseUrlFromCredentials, eZ as getCiPlatform, dQ as getClientIdFromCredentials, cA as getConnectionPlugin, av as getCoreErrorCause, au as getCoreErrorCode, e$ as getCpuTime, eU as getCurrentTimestamp, e_ as getMemoryUsage, aK as getOrCreateApiClient, eW as getOsInfo, eX as getPlatformVersions, cN as getPreferredManifestEntryKey, cS as getProfilePlugin, eV as getReleaseId, ei as getTablePlugin, eu as getTableRecordPlugin, dr as getTokenFromCliLogin, ec as getZapierApprovalMode, ed as getZapierDefaultApprovalMode, e3 as getZapierSdkService, dp as injectCliLogin, d2 as inputFieldKeyResolver, d1 as inputsAllOptionalResolver, d0 as inputsResolver, dn as invalidateCachedToken, dt as invalidateCredentialsToken, eY as isCi, dq as isCliLoginAvailable, dI as isClientCredentials, at as isCoreError, dL as isCredentialsFunction, dK as isCredentialsObject, dJ as isPkceCredentials, _ as isPositional, ck as listActionInputFieldChoicesPlugin, ci as listActionInputFieldsPlugin, cg as listActionsPlugin, ce as listAppsPlugin, cq as listClientCredentialsPlugin, co as listConnectionsPlugin, eo as listTableFieldsPlugin, ew as listTableRecordsPlugin, eg as listTablesPlugin, ai as logDeprecation, cO as manifestPlugin, ea as parseConcurrencyEnvVar, aG as registryPlugin, cK as requestPlugin, aj as resetDeprecationWarnings, ds as resolveAuthToken, dO as resolveCredentials, dN as resolveCredentialsFromEnv, cI as runActionPlugin, ab as runInMethodScope, ac as runWithTelemetryContext, de as tableFieldIdsResolver, dg as tableFieldsResolver, dj as tableFiltersResolver, d5 as tableIdResolver, df as tableNameResolver, dc as tableRecordIdResolver, dd as tableRecordIdsResolver, dh as tableRecordsResolver, dk as tableSortResolver, di as tableUpdateRecordsResolver, ad as toSnakeCase, ae as toTitleCase, d6 as triggerInboxResolver, db as triggerMessagesResolver, eC as updateTableRecordsPlugin, d7 as workflowIdResolver, da as workflowRunIdResolver, d9 as workflowVersionIdResolver, bS as zapierAdaptError } from './index-BWdR4HBe.mjs';
1
+ import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, F as FieldsetItem, j as PositionalMetadata, O as OutputFormatter, k as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, l as DynamicResolver, W as WatchTriggerInboxOptions, m as ActionProxy, n as ZapierSdkApps, o as WithAddPlugin } from './index-DuFFW71E.mjs';
2
+ export { x as Action, cb as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, aP as ActionItem, bp as ActionKeyProperty, aZ as ActionKeyPropertySchema, bq as ActionProperty, a_ as ActionPropertySchema, aE as ActionResolverItem, bB as ActionTimeoutMsProperty, b9 as ActionTimeoutMsPropertySchema, aF as ActionTypeItem, bo as ActionTypeProperty, aY as ActionTypePropertySchema, c7 as ApiError, dB as ApiEvent, cV as ApiPluginOptions, cX as ApiPluginProvides, y as App, cc as AppFactoryInput, aN as AppItem, bm as AppKeyProperty, aW as AppKeyPropertySchema, bn as AppProperty, aX as AppPropertySchema, eK as ApplicationLifecycleEventData, c3 as ApprovalStatus, ca as AppsPluginProvides, bG as AppsProperty, be as AppsPropertySchema, a5 as ArrayResolver, dA as AuthEvent, bu as AuthenticationIdProperty, b1 as AuthenticationIdPropertySchema, eS as BaseEvent, as as BaseSdkOptionsSchema, ag as BatchOptions, cI as CONTEXT_CACHE_MAX_SIZE, cH as CONTEXT_CACHE_TTL_MS, aw as CORE_ERROR_SYMBOL, H as Choice, dH as ClientCredentialsObject, dS as ClientCredentialsObjectSchema, V as Connection, d_ as ConnectionEntry, dZ as ConnectionEntrySchema, bs as ConnectionIdProperty, b0 as ConnectionIdPropertySchema, aO as ConnectionItem, bt as ConnectionProperty, b2 as ConnectionPropertySchema, e0 as ConnectionsMap, d$ as ConnectionsMapSchema, e2 as ConnectionsPluginProvides, bI as ConnectionsProperty, bg as ConnectionsPropertySchema, X as ConnectionsResponse, ax as CoreErrorCode, cu as CreateClientCredentialsPluginProvides, es as CreateTableFieldsPluginProvides, em as CreateTablePluginProvides, eA as CreateTableRecordsPluginProvides, dE as Credentials, dX as CredentialsFunction, dW as CredentialsFunctionSchema, dG as CredentialsObject, dU as CredentialsObjectSchema, dY as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MS, ef as DEFAULT_APPROVAL_TIMEOUT_MS, cR as DEFAULT_CONFIG_PATH, eg as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, bz as DebugProperty, b7 as DebugPropertySchema, cw as DeleteClientCredentialsPluginProvides, eu as DeleteTableFieldsPluginProvides, eo as DeleteTablePluginProvides, eC as DeleteTableRecordsPluginProvides, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, a8 as DynamicListResolver, a9 as DynamicSearchResolver, eL as EnhancedErrorEventData, bO as ErrorOptions, dD as EventCallback, eJ as EventContext, eG as EventEmissionConfig, eI as EventEmissionProvides, ce as FetchPluginProvides, z as Field, bF as FieldsProperty, bd as FieldsPropertySchema, aa as FieldsResolver, v as FindFirstAuthenticationPluginProvides, cE as FindFirstConnectionPluginProvides, w as FindUniqueAuthenticationPluginProvides, cG as FindUniqueConnectionPluginProvides, a3 as FormattedItem, ar as FunctionDeprecation, aq as FunctionRegistryEntry, co as GetActionInputFieldsSchemaPluginProvides, cA as GetActionPluginProvides, cy as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cC as GetConnectionPluginProvides, cU as GetProfilePluginProvides, ek as GetTablePluginProvides, ew as GetTableRecordPluginProvides, aR as InfoFieldItem, aQ as InputFieldItem, br as InputFieldProperty, a$ as InputFieldPropertySchema, bv as InputsProperty, b3 as InputsPropertySchema, bN as LeaseLimitProperty, bl as LeaseLimitPropertySchema, bL as LeaseProperty, bj as LeasePropertySchema, bM as LeaseSecondsProperty, bk as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bw as LimitProperty, b4 as LimitPropertySchema, cm as ListActionInputFieldChoicesPluginProvides, ck as ListActionInputFieldsPluginProvides, ci as ListActionsPluginProvides, cg as ListAppsPluginProvides, u as ListAuthenticationsPluginProvides, cs as ListClientCredentialsPluginProvides, cq as ListConnectionsPluginProvides, eq as ListTableFieldsPluginProvides, ey as ListTableRecordsPluginProvides, ei as ListTablesPluginProvides, dC as LoadingEvent, ea as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cS as ManifestEntry, cN as ManifestPluginOptions, cQ as ManifestPluginProvides, eT as MethodCalledEvent, eM as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bx as OffsetProperty, b5 as OffsetPropertySchema, by as OutputProperty, b6 as OutputPropertySchema, aV as PaginatedSdkFunction, bA as ParamsProperty, b8 as ParamsPropertySchema, dI as PkceCredentialsObject, dT as PkceCredentialsObjectSchema, ay as Plugin, az as PluginProvides, aI as PollOptions, c1 as RateLimitInfo, bD as RecordProperty, bb as RecordPropertySchema, bE as RecordsProperty, bc as RecordsPropertySchema, al as RelayFetchSchema, ak as RelayRequestSchema, aH as RequestOptions, cM as RequestPluginProvides, dm as ResolveAuthTokenOptions, dN as ResolveCredentialsOptions, dF as ResolvedCredentials, dV as ResolvedCredentialsSchema, a4 as Resolver, a6 as ResolverMetadata, aS as RootFieldItem, cK as RunActionPluginProvides, dz as SdkEvent, aU as SdkPage, aM as SseMessage, a7 as StaticResolver, bC as TableProperty, ba as TablePropertySchema, bH as TablesProperty, bf as TablesPropertySchema, bK as TriggerInboxNameProperty, bi as TriggerInboxNamePropertySchema, bJ as TriggerInboxProperty, bh as TriggerInboxPropertySchema, T as TriggerMessageStatus, eE as UpdateTableRecordsPluginProvides, Y as UserProfile, aT as UserProfileItem, e3 as ZAPIER_BASE_URL, ec as ZAPIER_MAX_CONCURRENT_REQUESTS, e8 as ZAPIER_MAX_NETWORK_RETRIES, e9 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, p as ZapierAbortDrainSignal, b$ as ZapierActionError, bU as ZapierApiError, bV as ZapierAppNotFoundError, c4 as ZapierApprovalError, bS as ZapierAuthenticationError, bZ as ZapierBundleError, dv as ZapierCache, dw as ZapierCacheEntry, dx as ZapierCacheSetOptions, bY as ZapierConfigurationError, c0 as ZapierConflictError, bP as ZapierError, bW as ZapierNotFoundError, c2 as ZapierRateLimitError, c5 as ZapierRelayError, q as ZapierReleaseTriggerMessageSignal, bX as ZapierResourceNotFoundError, c8 as ZapierSignal, b_ as ZapierTimeoutError, bR as ZapierUnknownError, bQ as ZapierValidationError, c_ as actionKeyResolver, cZ as actionTypeResolver, a2 as addPlugin, cW as apiPlugin, cY as appKeyResolver, c9 as appsPlugin, d0 as authenticationIdGenericResolver, c$ as authenticationIdResolver, af as batch, eN as buildApplicationLifecycleEvent, ah as buildCapabilityMessage, eP as buildErrorEvent, eO as buildErrorEventWithContext, eR as buildMethodCalledEvent, eF as cleanupEventListeners, dn as clearTokenCache, d4 as clientCredentialsNameResolver, d5 as clientIdResolver, aD as composePlugins, d0 as connectionIdGenericResolver, c$ as connectionIdResolver, e1 as connectionsPlugin, eQ as createBaseEvent, ct as createClientCredentialsPlugin, a1 as createCorePlugin, $ as createFunction, dy as createMemoryCache, ao as createOptionsPlugin, aC as createPaginatedPluginMethod, aB as createPluginMethod, a0 as createPluginStack, an as createSdk, er as createTableFieldsPlugin, el as createTablePlugin, ez as createTableRecordsPlugin, aJ as createZapierApi, ap as createZapierCoreStack, am as createZapierSdkWithoutRegistry, aA as definePlugin, cv as deleteClientCredentialsPlugin, et as deleteTableFieldsPlugin, en as deleteTablePlugin, eB as deleteTableRecordsPlugin, d9 as durableRunIdResolver, eH as eventEmissionPlugin, cd as fetchPlugin, cD as findFirstConnectionPlugin, cF as findUniqueConnectionPlugin, c6 as formatErrorMessage, eU as generateEventId, cn as getActionInputFieldsSchemaPlugin, cz as getActionPlugin, cx as getAppPlugin, dQ as getBaseUrlFromCredentials, e_ as getCiPlatform, dR as getClientIdFromCredentials, cB as getConnectionPlugin, av as getCoreErrorCause, au as getCoreErrorCode, f0 as getCpuTime, eV as getCurrentTimestamp, e$ as getMemoryUsage, aK as getOrCreateApiClient, eX as getOsInfo, eY as getPlatformVersions, cO as getPreferredManifestEntryKey, cT as getProfilePlugin, eW as getReleaseId, ej as getTablePlugin, ev as getTableRecordPlugin, ds as getTokenFromCliLogin, ed as getZapierApprovalMode, ee as getZapierDefaultApprovalMode, e4 as getZapierSdkService, dq as injectCliLogin, d3 as inputFieldKeyResolver, d2 as inputsAllOptionalResolver, d1 as inputsResolver, dp as invalidateCachedToken, du as invalidateCredentialsToken, eZ as isCi, dr as isCliLoginAvailable, dJ as isClientCredentials, at as isCoreError, dM as isCredentialsFunction, dL as isCredentialsObject, aL as isPermanentHttpError, dK as isPkceCredentials, _ as isPositional, cl as listActionInputFieldChoicesPlugin, cj as listActionInputFieldsPlugin, ch as listActionsPlugin, cf as listAppsPlugin, cr as listClientCredentialsPlugin, cp as listConnectionsPlugin, ep as listTableFieldsPlugin, ex as listTableRecordsPlugin, eh as listTablesPlugin, ai as logDeprecation, cP as manifestPlugin, eb as parseConcurrencyEnvVar, aG as registryPlugin, cL as requestPlugin, aj as resetDeprecationWarnings, dt as resolveAuthToken, dP as resolveCredentials, dO as resolveCredentialsFromEnv, cJ as runActionPlugin, ab as runInMethodScope, ac as runWithTelemetryContext, df as tableFieldIdsResolver, dh as tableFieldsResolver, dk as tableFiltersResolver, d6 as tableIdResolver, dg as tableNameResolver, dd as tableRecordIdResolver, de as tableRecordIdsResolver, di as tableRecordsResolver, dl as tableSortResolver, dj as tableUpdateRecordsResolver, ad as toSnakeCase, ae as toTitleCase, d7 as triggerInboxResolver, dc as triggerMessagesResolver, eD as updateTableRecordsPlugin, d8 as workflowIdResolver, db as workflowRunIdResolver, da as workflowVersionIdResolver, bT as zapierAdaptError } from './index-DuFFW71E.mjs';
3
3
  import * as zod_v4_core from 'zod/v4/core';
4
4
  import * as zod from 'zod';
5
5
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
@@ -2580,6 +2580,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2580
2580
  createWorkflow: (options?: {
2581
2581
  name: string;
2582
2582
  description?: string | undefined;
2583
+ is_private?: boolean | undefined;
2583
2584
  } | undefined) => Promise<{
2584
2585
  data: {
2585
2586
  id: string;
@@ -2587,6 +2588,8 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2587
2588
  description: string | null;
2588
2589
  trigger_url: string;
2589
2590
  enabled: boolean;
2591
+ is_private: boolean;
2592
+ created_by_user_id: string | null;
2590
2593
  created_at: string;
2591
2594
  };
2592
2595
  }>;
@@ -2806,6 +2809,19 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2806
2809
  dependencies?: Record<string, string> | undefined;
2807
2810
  zapier_durable_version?: string | undefined;
2808
2811
  enabled?: boolean | undefined;
2812
+ connections?: Record<string, {
2813
+ connection_id: string | number;
2814
+ }> | null | undefined;
2815
+ app_versions?: Record<string, {
2816
+ implementation_name: string;
2817
+ version?: string | undefined;
2818
+ }> | null | undefined;
2819
+ trigger?: {
2820
+ selected_api: string;
2821
+ action: string;
2822
+ authentication_id?: string | null | undefined;
2823
+ params?: Record<string, unknown> | undefined;
2824
+ } | undefined;
2809
2825
  } | undefined) => Promise<{
2810
2826
  data: {
2811
2827
  id: string;
@@ -5569,6 +5585,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
5569
5585
  createWorkflow: (options?: {
5570
5586
  name: string;
5571
5587
  description?: string | undefined;
5588
+ is_private?: boolean | undefined;
5572
5589
  } | undefined) => Promise<{
5573
5590
  data: {
5574
5591
  id: string;
@@ -5576,6 +5593,8 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
5576
5593
  description: string | null;
5577
5594
  trigger_url: string;
5578
5595
  enabled: boolean;
5596
+ is_private: boolean;
5597
+ created_by_user_id: string | null;
5579
5598
  created_at: string;
5580
5599
  };
5581
5600
  }>;
@@ -5795,6 +5814,19 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
5795
5814
  dependencies?: Record<string, string> | undefined;
5796
5815
  zapier_durable_version?: string | undefined;
5797
5816
  enabled?: boolean | undefined;
5817
+ connections?: Record<string, {
5818
+ connection_id: string | number;
5819
+ }> | null | undefined;
5820
+ app_versions?: Record<string, {
5821
+ implementation_name: string;
5822
+ version?: string | undefined;
5823
+ }> | null | undefined;
5824
+ trigger?: {
5825
+ selected_api: string;
5826
+ action: string;
5827
+ authentication_id?: string | null | undefined;
5828
+ params?: Record<string, unknown> | undefined;
5829
+ } | undefined;
5798
5830
  } | undefined) => Promise<{
5799
5831
  data: {
5800
5832
  id: string;
@@ -2595,6 +2595,7 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
2595
2595
  createWorkflow: (options?: {
2596
2596
  name: string;
2597
2597
  description?: string | undefined;
2598
+ is_private?: boolean | undefined;
2598
2599
  } | undefined) => Promise<{
2599
2600
  data: {
2600
2601
  id: string;
@@ -2602,6 +2603,8 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
2602
2603
  description: string | null;
2603
2604
  trigger_url: string;
2604
2605
  enabled: boolean;
2606
+ is_private: boolean;
2607
+ created_by_user_id: string | null;
2605
2608
  created_at: string;
2606
2609
  };
2607
2610
  }>;
@@ -2821,6 +2824,19 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
2821
2824
  dependencies?: Record<string, string> | undefined;
2822
2825
  zapier_durable_version?: string | undefined;
2823
2826
  enabled?: boolean | undefined;
2827
+ connections?: Record<string, {
2828
+ connection_id: string | number;
2829
+ }> | null | undefined;
2830
+ app_versions?: Record<string, {
2831
+ implementation_name: string;
2832
+ version?: string | undefined;
2833
+ }> | null | undefined;
2834
+ trigger?: {
2835
+ selected_api: string;
2836
+ action: string;
2837
+ authentication_id?: string | null | undefined;
2838
+ params?: Record<string, unknown> | undefined;
2839
+ } | undefined;
2824
2840
  } | undefined) => Promise<{
2825
2841
  data: {
2826
2842
  id: string;
@@ -5584,6 +5600,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
5584
5600
  createWorkflow: (options?: {
5585
5601
  name: string;
5586
5602
  description?: string | undefined;
5603
+ is_private?: boolean | undefined;
5587
5604
  } | undefined) => Promise<{
5588
5605
  data: {
5589
5606
  id: string;
@@ -5591,6 +5608,8 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
5591
5608
  description: string | null;
5592
5609
  trigger_url: string;
5593
5610
  enabled: boolean;
5611
+ is_private: boolean;
5612
+ created_by_user_id: string | null;
5594
5613
  created_at: string;
5595
5614
  };
5596
5615
  }>;
@@ -5810,6 +5829,19 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
5810
5829
  dependencies?: Record<string, string> | undefined;
5811
5830
  zapier_durable_version?: string | undefined;
5812
5831
  enabled?: boolean | undefined;
5832
+ connections?: Record<string, {
5833
+ connection_id: string | number;
5834
+ }> | null | undefined;
5835
+ app_versions?: Record<string, {
5836
+ implementation_name: string;
5837
+ version?: string | undefined;
5838
+ }> | null | undefined;
5839
+ trigger?: {
5840
+ selected_api: string;
5841
+ action: string;
5842
+ authentication_id?: string | null | undefined;
5843
+ params?: Record<string, unknown> | undefined;
5844
+ } | undefined;
5813
5845
  } | undefined) => Promise<{
5814
5846
  data: {
5815
5847
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA4F1C,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA2IqrD,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAhBpoE;AASD,MAAM,WAAW,SAAU,SAAQ,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAMxE,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -3169,7 +3169,7 @@ function createSseParserStream() {
3169
3169
  }
3170
3170
 
3171
3171
  // src/sdk-version.ts
3172
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.1" : void 0) || "unknown";
3172
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.3" : void 0) || "unknown";
3173
3173
 
3174
3174
  // src/utils/open-url.ts
3175
3175
  var nodePrefix = "node:";
@@ -11175,7 +11175,10 @@ var getWorkflowPlugin = definePlugin(
11175
11175
  );
11176
11176
  var CreateWorkflowOptionsSchema = z.object({
11177
11177
  name: z.string().min(1).describe("Workflow name"),
11178
- description: z.string().optional().describe("Optional description for the workflow")
11178
+ description: z.string().optional().describe("Optional description for the workflow"),
11179
+ is_private: z.boolean().optional().describe(
11180
+ "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
11181
+ )
11179
11182
  }).describe(
11180
11183
  "Create a durable workflow container. Starts disabled with no version; publish a version to add code."
11181
11184
  );
@@ -11189,6 +11192,10 @@ var CreateWorkflowResponseSchema = z.object({
11189
11192
  enabled: z.boolean().describe(
11190
11193
  "Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
11191
11194
  ),
11195
+ is_private: z.boolean().describe(
11196
+ "Whether the workflow is private to the creating user. False means account-visible."
11197
+ ),
11198
+ created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
11192
11199
  created_at: z.string().describe("When the workflow was created (ISO-8601)")
11193
11200
  });
11194
11201
 
@@ -11206,6 +11213,9 @@ var createWorkflowPlugin = definePlugin(
11206
11213
  if (options.description !== void 0) {
11207
11214
  body.description = options.description;
11208
11215
  }
11216
+ if (options.is_private !== void 0) {
11217
+ body.is_private = options.is_private;
11218
+ }
11209
11219
  const data = await sdk2.context.api.post(
11210
11220
  "/durableworkflowzaps/api/v0/workflows",
11211
11221
  body,
@@ -11656,6 +11666,34 @@ var cancelDurableRunPlugin = definePlugin(
11656
11666
  }
11657
11667
  })
11658
11668
  );
11669
+ var CONNECTION_ID_PATTERN = /^([1-9][0-9]*|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
11670
+ var ConnectionBindingSchema = z.object({
11671
+ connection_id: z.union([
11672
+ z.number().int().positive(),
11673
+ z.string().regex(
11674
+ CONNECTION_ID_PATTERN,
11675
+ "connection_id must be a positive integer string or UUID"
11676
+ )
11677
+ ]).describe(
11678
+ "Zapier connection ID. Positive integer (legacy) or UUID string (newer)."
11679
+ )
11680
+ }).describe(
11681
+ "Connection binding: maps a single alias to a concrete connection."
11682
+ );
11683
+ var AppVersionBindingSchema = z.object({
11684
+ implementation_name: z.string().describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
11685
+ version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
11686
+ }).describe("App-version binding: maps a single alias to an app version.");
11687
+ var TriggerConfigSchema = z.object({
11688
+ selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
11689
+ action: z.string().describe("Trigger action key (e.g. 'new_row')"),
11690
+ authentication_id: z.string().nullish().describe(
11691
+ "Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."
11692
+ ),
11693
+ params: z.record(z.string(), z.unknown()).optional().describe("Trigger parameters as a JSON object")
11694
+ }).describe(
11695
+ "Zapier trigger configuration. When set, the workflow subscribes to trigger events."
11696
+ );
11659
11697
  var PublishWorkflowVersionOptionsSchema = z.object({
11660
11698
  workflow: z.string().uuid().describe("Durable workflow ID"),
11661
11699
  source_files: z.record(z.string(), z.string()).refine((files) => Object.keys(files).length > 0, {
@@ -11667,6 +11705,15 @@ var PublishWorkflowVersionOptionsSchema = z.object({
11667
11705
  ),
11668
11706
  enabled: z.boolean().optional().describe(
11669
11707
  "Enable the workflow after publishing. Defaults to true; pass false to publish without enabling."
11708
+ ),
11709
+ connections: z.record(z.string(), ConnectionBindingSchema).nullish().describe(
11710
+ "Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding."
11711
+ ),
11712
+ app_versions: z.record(z.string(), AppVersionBindingSchema).nullish().describe(
11713
+ "Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding."
11714
+ ),
11715
+ trigger: TriggerConfigSchema.optional().describe(
11716
+ "Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; omit for webhook-only workflows."
11670
11717
  )
11671
11718
  }).describe(
11672
11719
  "Publish a new version of a durable workflow. Enables the workflow by default."
@@ -11706,6 +11753,15 @@ var publishWorkflowVersionPlugin = definePlugin(
11706
11753
  if (options.enabled !== void 0) {
11707
11754
  body.enabled = options.enabled;
11708
11755
  }
11756
+ if (options.connections !== void 0) {
11757
+ body.connections = options.connections;
11758
+ }
11759
+ if (options.app_versions !== void 0) {
11760
+ body.app_versions = options.app_versions;
11761
+ }
11762
+ if (options.trigger !== void 0) {
11763
+ body.trigger = options.trigger;
11764
+ }
11709
11765
  const raw = await sdk2.context.api.post(
11710
11766
  `/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`,
11711
11767
  body,
@@ -12232,4 +12288,4 @@ function createZapierSdk2(options = {}) {
12232
12288
  return withDeprecatedAddPlugin(createZapierSdkStack2(options).toSdk());
12233
12289
  }
12234
12290
 
12235
- export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, 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, addPlugin, 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, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as createZapierSdkStack, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError };
12291
+ export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, 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, addPlugin, 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, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as createZapierSdkStack, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError };
@@ -2627,6 +2627,18 @@ interface ZapierSdkApps {
2627
2627
 
2628
2628
  declare const createZapierApi: (options: ApiClientOptions) => ApiClient;
2629
2629
 
2630
+ /**
2631
+ * Classifies an HTTP error by status code. A 4xx is permanent for now
2632
+ * (auth/permission/bad request); 5xx and network errors are transient. We read
2633
+ * `statusCode` off any `ZapierError`, not just `ZapierApiError`: a policy denial
2634
+ * escapes `api.fetch` as a `ZapierApprovalError` (a sibling subclass) carrying a
2635
+ * 403, and it must be treated as permanent too. 429 stays transient —
2636
+ * `api.fetch` already backed off and retried it upstream, so a
2637
+ * `ZapierRateLimitError` (also a `ZapierError`) that escapes should be retried
2638
+ * on the normal cadence rather than treated as permanent.
2639
+ */
2640
+ declare function isPermanentHttpError(err: unknown): boolean;
2641
+
2630
2642
  /**
2631
2643
  * Zapier API Client Module
2632
2644
  *
@@ -15223,4 +15235,4 @@ declare const registryPlugin: (sdk: {
15223
15235
  };
15224
15236
  }) => {};
15225
15237
 
15226
- 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, ConnectionIdPropertySchema 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, type SseMessage as aL, type AppItem as aM, type ConnectionItem as aN, type ActionItem$1 as aO, type InputFieldItem as aP, type InfoFieldItem as aQ, type RootFieldItem as aR, type UserProfileItem as aS, type SdkPage as aT, type PaginatedSdkFunction as aU, AppKeyPropertySchema as aV, AppPropertySchema as aW, ActionTypePropertySchema as aX, ActionKeyPropertySchema as aY, ActionPropertySchema as aZ, InputFieldPropertySchema 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, ZapierConflictError as b$, AuthenticationIdPropertySchema as b0, ConnectionPropertySchema as b1, InputsPropertySchema as b2, LimitPropertySchema as b3, OffsetPropertySchema as b4, OutputPropertySchema as b5, DebugPropertySchema as b6, ParamsPropertySchema as b7, ActionTimeoutMsPropertySchema as b8, TablePropertySchema as b9, type ActionTimeoutMsProperty as bA, type TableProperty as bB, type RecordProperty as bC, type RecordsProperty as bD, type FieldsProperty as bE, type AppsProperty as bF, type TablesProperty as bG, type ConnectionsProperty as bH, type TriggerInboxProperty as bI, type TriggerInboxNameProperty as bJ, type LeaseProperty as bK, type LeaseSecondsProperty as bL, type LeaseLimitProperty as bM, type ErrorOptions as bN, ZapierError as bO, ZapierValidationError as bP, ZapierUnknownError as bQ, ZapierAuthenticationError as bR, zapierAdaptError as bS, ZapierApiError as bT, ZapierAppNotFoundError as bU, ZapierNotFoundError as bV, ZapierResourceNotFoundError as bW, ZapierConfigurationError as bX, ZapierBundleError as bY, ZapierTimeoutError as bZ, ZapierActionError as b_, RecordPropertySchema as ba, RecordsPropertySchema as bb, FieldsPropertySchema as bc, AppsPropertySchema as bd, TablesPropertySchema as be, ConnectionsPropertySchema as bf, TriggerInboxPropertySchema as bg, TriggerInboxNamePropertySchema as bh, LeasePropertySchema as bi, LeaseSecondsPropertySchema as bj, LeaseLimitPropertySchema as bk, type AppKeyProperty as bl, type AppProperty as bm, type ActionTypeProperty as bn, type ActionKeyProperty as bo, type ActionProperty as bp, type InputFieldProperty as bq, type ConnectionIdProperty as br, type ConnectionProperty as bs, type AuthenticationIdProperty as bt, type InputsProperty as bu, type LimitProperty as bv, type OffsetProperty as bw, type OutputProperty as bx, type DebugProperty as by, type ParamsProperty as bz, type UpdateManifestEntryResult as c, connectionIdGenericResolver as c$, type RateLimitInfo as c0, ZapierRateLimitError as c1, type ApprovalStatus as c2, ZapierApprovalError as c3, ZapierRelayError as c4, formatErrorMessage as c5, type ApiError as c6, ZapierSignal as c7, appsPlugin as c8, type AppsPluginProvides as c9, getConnectionPlugin as cA, type GetConnectionPluginProvides as cB, findFirstConnectionPlugin as cC, type FindFirstConnectionPluginProvides as cD, findUniqueConnectionPlugin as cE, type FindUniqueConnectionPluginProvides as cF, CONTEXT_CACHE_TTL_MS as cG, CONTEXT_CACHE_MAX_SIZE as cH, runActionPlugin as cI, type RunActionPluginProvides as cJ, requestPlugin as cK, type RequestPluginProvides as cL, type ManifestPluginOptions as cM, getPreferredManifestEntryKey as cN, manifestPlugin as cO, type ManifestPluginProvides as cP, DEFAULT_CONFIG_PATH as cQ, type ManifestEntry as cR, getProfilePlugin as cS, type GetProfilePluginProvides as cT, type ApiPluginOptions as cU, apiPlugin as cV, type ApiPluginProvides as cW, appKeyResolver as cX, actionTypeResolver as cY, actionKeyResolver as cZ, connectionIdResolver as c_, type ActionExecutionOptions as ca, type AppFactoryInput as cb, fetchPlugin as cc, type FetchPluginProvides as cd, listAppsPlugin as ce, type ListAppsPluginProvides as cf, listActionsPlugin as cg, type ListActionsPluginProvides as ch, listActionInputFieldsPlugin as ci, type ListActionInputFieldsPluginProvides as cj, listActionInputFieldChoicesPlugin as ck, type ListActionInputFieldChoicesPluginProvides as cl, getActionInputFieldsSchemaPlugin as cm, type GetActionInputFieldsSchemaPluginProvides as cn, listConnectionsPlugin as co, type ListConnectionsPluginProvides as cp, listClientCredentialsPlugin as cq, type ListClientCredentialsPluginProvides as cr, createClientCredentialsPlugin as cs, type CreateClientCredentialsPluginProvides as ct, deleteClientCredentialsPlugin as cu, type DeleteClientCredentialsPluginProvides as cv, getAppPlugin as cw, type GetAppPluginProvides as cx, getActionPlugin as cy, type GetActionPluginProvides as cz, type AddActionEntryOptions as d, type ConnectionsMap as d$, inputsResolver as d0, inputsAllOptionalResolver as d1, inputFieldKeyResolver as d2, clientCredentialsNameResolver as d3, clientIdResolver as d4, tableIdResolver as d5, triggerInboxResolver as d6, workflowIdResolver as d7, durableRunIdResolver as d8, workflowVersionIdResolver as d9, type ApiEvent as dA, type LoadingEvent as dB, type EventCallback as dC, type Credentials as dD, type ResolvedCredentials as dE, type CredentialsObject as dF, type ClientCredentialsObject as dG, type PkceCredentialsObject as dH, isClientCredentials as dI, isPkceCredentials as dJ, isCredentialsObject as dK, isCredentialsFunction as dL, type ResolveCredentialsOptions as dM, resolveCredentialsFromEnv as dN, resolveCredentials as dO, getBaseUrlFromCredentials as dP, getClientIdFromCredentials as dQ, ClientCredentialsObjectSchema as dR, PkceCredentialsObjectSchema as dS, CredentialsObjectSchema as dT, ResolvedCredentialsSchema as dU, CredentialsFunctionSchema as dV, type CredentialsFunction as dW, CredentialsSchema as dX, ConnectionEntrySchema as dY, type ConnectionEntry as dZ, ConnectionsMapSchema as d_, workflowRunIdResolver as da, triggerMessagesResolver as db, tableRecordIdResolver as dc, tableRecordIdsResolver as dd, tableFieldIdsResolver as de, tableNameResolver as df, tableFieldsResolver as dg, tableRecordsResolver as dh, tableUpdateRecordsResolver as di, tableFiltersResolver as dj, tableSortResolver as dk, type ResolveAuthTokenOptions as dl, clearTokenCache as dm, invalidateCachedToken as dn, injectCliLogin as dp, isCliLoginAvailable as dq, getTokenFromCliLogin as dr, resolveAuthToken as ds, invalidateCredentialsToken as dt, type ZapierCache as du, type ZapierCacheEntry as dv, type ZapierCacheSetOptions as dw, createMemoryCache as dx, type SdkEvent as dy, type AuthEvent as dz, type AddActionEntryResult as e, getCpuTime as e$, connectionsPlugin as e0, type ConnectionsPluginProvides as e1, ZAPIER_BASE_URL as e2, getZapierSdkService as e3, MAX_PAGE_LIMIT as e4, DEFAULT_PAGE_SIZE as e5, DEFAULT_ACTION_TIMEOUT_MS as e6, ZAPIER_MAX_NETWORK_RETRIES as e7, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as e8, MAX_CONCURRENCY_LIMIT as e9, deleteTableRecordsPlugin as eA, type DeleteTableRecordsPluginProvides as eB, updateTableRecordsPlugin as eC, type UpdateTableRecordsPluginProvides as eD, cleanupEventListeners as eE, type EventEmissionConfig as eF, eventEmissionPlugin as eG, type EventEmissionProvides as eH, type EventContext as eI, type ApplicationLifecycleEventData as eJ, type EnhancedErrorEventData as eK, type MethodCalledEventData as eL, buildApplicationLifecycleEvent as eM, buildErrorEventWithContext as eN, buildErrorEvent as eO, createBaseEvent as eP, buildMethodCalledEvent as eQ, type BaseEvent as eR, type MethodCalledEvent as eS, generateEventId as eT, getCurrentTimestamp as eU, getReleaseId as eV, getOsInfo as eW, getPlatformVersions as eX, isCi as eY, getCiPlatform as eZ, getMemoryUsage as e_, parseConcurrencyEnvVar as ea, ZAPIER_MAX_CONCURRENT_REQUESTS as eb, getZapierApprovalMode as ec, getZapierDefaultApprovalMode as ed, DEFAULT_APPROVAL_TIMEOUT_MS as ee, DEFAULT_MAX_APPROVAL_RETRIES as ef, listTablesPlugin as eg, type ListTablesPluginProvides as eh, getTablePlugin as ei, type GetTablePluginProvides as ej, createTablePlugin as ek, type CreateTablePluginProvides as el, deleteTablePlugin as em, type DeleteTablePluginProvides as en, listTableFieldsPlugin as eo, type ListTableFieldsPluginProvides as ep, createTableFieldsPlugin as eq, type CreateTableFieldsPluginProvides as er, deleteTableFieldsPlugin as es, type DeleteTableFieldsPluginProvides as et, getTableRecordPlugin as eu, type GetTableRecordPluginProvides as ev, listTableRecordsPlugin as ew, type ListTableRecordsPluginProvides as ex, createTableRecordsPlugin as ey, type CreateTableRecordsPluginProvides as ez, type ActionEntry as f, createZapierSdk as f0, createZapierSdkStack as f1, type ZapierSdk as f2, 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 };
15238
+ 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, InputFieldPropertySchema 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 AppItem as aN, type ConnectionItem as aO, type ActionItem$1 as aP, type InputFieldItem as aQ, type InfoFieldItem as aR, type RootFieldItem as aS, type UserProfileItem as aT, type SdkPage as aU, type PaginatedSdkFunction as aV, AppKeyPropertySchema as aW, AppPropertySchema as aX, ActionTypePropertySchema as aY, ActionKeyPropertySchema as aZ, ActionPropertySchema 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, ZapierActionError as b$, ConnectionIdPropertySchema as b0, AuthenticationIdPropertySchema as b1, ConnectionPropertySchema as b2, InputsPropertySchema as b3, LimitPropertySchema as b4, OffsetPropertySchema as b5, OutputPropertySchema as b6, DebugPropertySchema as b7, ParamsPropertySchema as b8, ActionTimeoutMsPropertySchema as b9, type ParamsProperty as bA, type ActionTimeoutMsProperty as bB, type TableProperty as bC, type RecordProperty as bD, type RecordsProperty as bE, type FieldsProperty as bF, type AppsProperty as bG, type TablesProperty as bH, type ConnectionsProperty as bI, type TriggerInboxProperty as bJ, type TriggerInboxNameProperty as bK, type LeaseProperty as bL, type LeaseSecondsProperty as bM, type LeaseLimitProperty as bN, type ErrorOptions as bO, ZapierError as bP, ZapierValidationError as bQ, ZapierUnknownError as bR, ZapierAuthenticationError as bS, zapierAdaptError as bT, ZapierApiError as bU, ZapierAppNotFoundError as bV, ZapierNotFoundError as bW, ZapierResourceNotFoundError as bX, ZapierConfigurationError as bY, ZapierBundleError as bZ, ZapierTimeoutError as b_, TablePropertySchema as ba, RecordPropertySchema as bb, RecordsPropertySchema as bc, FieldsPropertySchema as bd, AppsPropertySchema as be, TablesPropertySchema as bf, ConnectionsPropertySchema as bg, TriggerInboxPropertySchema as bh, TriggerInboxNamePropertySchema as bi, LeasePropertySchema as bj, LeaseSecondsPropertySchema as bk, LeaseLimitPropertySchema as bl, type AppKeyProperty as bm, type AppProperty as bn, type ActionTypeProperty as bo, type ActionKeyProperty as bp, type ActionProperty as bq, type InputFieldProperty as br, type ConnectionIdProperty as bs, type ConnectionProperty as bt, type AuthenticationIdProperty as bu, type InputsProperty as bv, type LimitProperty as bw, type OffsetProperty as bx, type OutputProperty as by, type DebugProperty as bz, type UpdateManifestEntryResult as c, connectionIdResolver as c$, ZapierConflictError as c0, type RateLimitInfo as c1, ZapierRateLimitError as c2, type ApprovalStatus as c3, ZapierApprovalError as c4, ZapierRelayError as c5, formatErrorMessage as c6, type ApiError as c7, ZapierSignal as c8, appsPlugin as c9, type GetActionPluginProvides as cA, getConnectionPlugin as cB, type GetConnectionPluginProvides as cC, findFirstConnectionPlugin as cD, type FindFirstConnectionPluginProvides as cE, findUniqueConnectionPlugin as cF, type FindUniqueConnectionPluginProvides as cG, CONTEXT_CACHE_TTL_MS as cH, CONTEXT_CACHE_MAX_SIZE as cI, runActionPlugin as cJ, type RunActionPluginProvides as cK, requestPlugin as cL, type RequestPluginProvides as cM, type ManifestPluginOptions as cN, getPreferredManifestEntryKey as cO, manifestPlugin as cP, type ManifestPluginProvides as cQ, DEFAULT_CONFIG_PATH as cR, type ManifestEntry as cS, getProfilePlugin as cT, type GetProfilePluginProvides as cU, type ApiPluginOptions as cV, apiPlugin as cW, type ApiPluginProvides as cX, appKeyResolver as cY, actionTypeResolver as cZ, actionKeyResolver as c_, type AppsPluginProvides as ca, type ActionExecutionOptions as cb, type AppFactoryInput as cc, fetchPlugin as cd, type FetchPluginProvides as ce, listAppsPlugin as cf, type ListAppsPluginProvides as cg, listActionsPlugin as ch, type ListActionsPluginProvides as ci, listActionInputFieldsPlugin as cj, type ListActionInputFieldsPluginProvides as ck, listActionInputFieldChoicesPlugin as cl, type ListActionInputFieldChoicesPluginProvides as cm, getActionInputFieldsSchemaPlugin as cn, type GetActionInputFieldsSchemaPluginProvides as co, listConnectionsPlugin as cp, type ListConnectionsPluginProvides as cq, listClientCredentialsPlugin as cr, type ListClientCredentialsPluginProvides as cs, createClientCredentialsPlugin as ct, type CreateClientCredentialsPluginProvides as cu, deleteClientCredentialsPlugin as cv, type DeleteClientCredentialsPluginProvides as cw, getAppPlugin as cx, type GetAppPluginProvides as cy, getActionPlugin as cz, type AddActionEntryOptions as d, ConnectionsMapSchema as d$, connectionIdGenericResolver as d0, inputsResolver as d1, inputsAllOptionalResolver as d2, inputFieldKeyResolver as d3, clientCredentialsNameResolver as d4, clientIdResolver as d5, tableIdResolver as d6, triggerInboxResolver as d7, workflowIdResolver as d8, durableRunIdResolver as d9, type AuthEvent as dA, type ApiEvent as dB, type LoadingEvent as dC, type EventCallback as dD, type Credentials as dE, type ResolvedCredentials as dF, type CredentialsObject as dG, type ClientCredentialsObject as dH, type PkceCredentialsObject as dI, isClientCredentials as dJ, isPkceCredentials as dK, isCredentialsObject as dL, isCredentialsFunction as dM, type ResolveCredentialsOptions as dN, resolveCredentialsFromEnv as dO, resolveCredentials as dP, getBaseUrlFromCredentials as dQ, getClientIdFromCredentials as dR, ClientCredentialsObjectSchema as dS, PkceCredentialsObjectSchema as dT, CredentialsObjectSchema as dU, ResolvedCredentialsSchema as dV, CredentialsFunctionSchema as dW, type CredentialsFunction as dX, CredentialsSchema as dY, ConnectionEntrySchema as dZ, type ConnectionEntry as d_, workflowVersionIdResolver as da, workflowRunIdResolver as db, triggerMessagesResolver as dc, tableRecordIdResolver as dd, tableRecordIdsResolver as de, tableFieldIdsResolver as df, tableNameResolver as dg, tableFieldsResolver as dh, tableRecordsResolver as di, tableUpdateRecordsResolver as dj, tableFiltersResolver as dk, tableSortResolver as dl, type ResolveAuthTokenOptions as dm, clearTokenCache as dn, invalidateCachedToken as dp, injectCliLogin as dq, isCliLoginAvailable as dr, getTokenFromCliLogin as ds, resolveAuthToken as dt, invalidateCredentialsToken as du, type ZapierCache as dv, type ZapierCacheEntry as dw, type ZapierCacheSetOptions as dx, createMemoryCache as dy, type SdkEvent as dz, type AddActionEntryResult as e, getMemoryUsage as e$, type ConnectionsMap as e0, connectionsPlugin as e1, type ConnectionsPluginProvides as e2, ZAPIER_BASE_URL as e3, getZapierSdkService as e4, MAX_PAGE_LIMIT as e5, DEFAULT_PAGE_SIZE as e6, DEFAULT_ACTION_TIMEOUT_MS as e7, ZAPIER_MAX_NETWORK_RETRIES as e8, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as e9, type CreateTableRecordsPluginProvides as eA, deleteTableRecordsPlugin as eB, type DeleteTableRecordsPluginProvides as eC, updateTableRecordsPlugin as eD, type UpdateTableRecordsPluginProvides as eE, cleanupEventListeners as eF, type EventEmissionConfig as eG, eventEmissionPlugin as eH, type EventEmissionProvides as eI, type EventContext as eJ, type ApplicationLifecycleEventData as eK, type EnhancedErrorEventData as eL, type MethodCalledEventData as eM, buildApplicationLifecycleEvent as eN, buildErrorEventWithContext as eO, buildErrorEvent as eP, createBaseEvent as eQ, buildMethodCalledEvent as eR, type BaseEvent as eS, type MethodCalledEvent as eT, generateEventId as eU, getCurrentTimestamp as eV, getReleaseId as eW, getOsInfo as eX, getPlatformVersions as eY, isCi as eZ, getCiPlatform as e_, MAX_CONCURRENCY_LIMIT as ea, parseConcurrencyEnvVar as eb, ZAPIER_MAX_CONCURRENT_REQUESTS as ec, getZapierApprovalMode as ed, getZapierDefaultApprovalMode as ee, DEFAULT_APPROVAL_TIMEOUT_MS as ef, DEFAULT_MAX_APPROVAL_RETRIES as eg, listTablesPlugin as eh, type ListTablesPluginProvides as ei, getTablePlugin as ej, type GetTablePluginProvides as ek, createTablePlugin as el, type CreateTablePluginProvides as em, deleteTablePlugin as en, type DeleteTablePluginProvides as eo, listTableFieldsPlugin as ep, type ListTableFieldsPluginProvides as eq, createTableFieldsPlugin as er, type CreateTableFieldsPluginProvides as es, deleteTableFieldsPlugin as et, type DeleteTableFieldsPluginProvides as eu, getTableRecordPlugin as ev, type GetTableRecordPluginProvides as ew, listTableRecordsPlugin as ex, type ListTableRecordsPluginProvides as ey, createTableRecordsPlugin as ez, type ActionEntry as f, getCpuTime as f0, createZapierSdk as f1, createZapierSdkStack as f2, type ZapierSdk as f3, 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 };
@@ -2627,6 +2627,18 @@ interface ZapierSdkApps {
2627
2627
 
2628
2628
  declare const createZapierApi: (options: ApiClientOptions) => ApiClient;
2629
2629
 
2630
+ /**
2631
+ * Classifies an HTTP error by status code. A 4xx is permanent for now
2632
+ * (auth/permission/bad request); 5xx and network errors are transient. We read
2633
+ * `statusCode` off any `ZapierError`, not just `ZapierApiError`: a policy denial
2634
+ * escapes `api.fetch` as a `ZapierApprovalError` (a sibling subclass) carrying a
2635
+ * 403, and it must be treated as permanent too. 429 stays transient —
2636
+ * `api.fetch` already backed off and retried it upstream, so a
2637
+ * `ZapierRateLimitError` (also a `ZapierError`) that escapes should be retried
2638
+ * on the normal cadence rather than treated as permanent.
2639
+ */
2640
+ declare function isPermanentHttpError(err: unknown): boolean;
2641
+
2630
2642
  /**
2631
2643
  * Zapier API Client Module
2632
2644
  *
@@ -15223,4 +15235,4 @@ declare const registryPlugin: (sdk: {
15223
15235
  };
15224
15236
  }) => {};
15225
15237
 
15226
- 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, ConnectionIdPropertySchema 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, type SseMessage as aL, type AppItem as aM, type ConnectionItem as aN, type ActionItem$1 as aO, type InputFieldItem as aP, type InfoFieldItem as aQ, type RootFieldItem as aR, type UserProfileItem as aS, type SdkPage as aT, type PaginatedSdkFunction as aU, AppKeyPropertySchema as aV, AppPropertySchema as aW, ActionTypePropertySchema as aX, ActionKeyPropertySchema as aY, ActionPropertySchema as aZ, InputFieldPropertySchema 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, ZapierConflictError as b$, AuthenticationIdPropertySchema as b0, ConnectionPropertySchema as b1, InputsPropertySchema as b2, LimitPropertySchema as b3, OffsetPropertySchema as b4, OutputPropertySchema as b5, DebugPropertySchema as b6, ParamsPropertySchema as b7, ActionTimeoutMsPropertySchema as b8, TablePropertySchema as b9, type ActionTimeoutMsProperty as bA, type TableProperty as bB, type RecordProperty as bC, type RecordsProperty as bD, type FieldsProperty as bE, type AppsProperty as bF, type TablesProperty as bG, type ConnectionsProperty as bH, type TriggerInboxProperty as bI, type TriggerInboxNameProperty as bJ, type LeaseProperty as bK, type LeaseSecondsProperty as bL, type LeaseLimitProperty as bM, type ErrorOptions as bN, ZapierError as bO, ZapierValidationError as bP, ZapierUnknownError as bQ, ZapierAuthenticationError as bR, zapierAdaptError as bS, ZapierApiError as bT, ZapierAppNotFoundError as bU, ZapierNotFoundError as bV, ZapierResourceNotFoundError as bW, ZapierConfigurationError as bX, ZapierBundleError as bY, ZapierTimeoutError as bZ, ZapierActionError as b_, RecordPropertySchema as ba, RecordsPropertySchema as bb, FieldsPropertySchema as bc, AppsPropertySchema as bd, TablesPropertySchema as be, ConnectionsPropertySchema as bf, TriggerInboxPropertySchema as bg, TriggerInboxNamePropertySchema as bh, LeasePropertySchema as bi, LeaseSecondsPropertySchema as bj, LeaseLimitPropertySchema as bk, type AppKeyProperty as bl, type AppProperty as bm, type ActionTypeProperty as bn, type ActionKeyProperty as bo, type ActionProperty as bp, type InputFieldProperty as bq, type ConnectionIdProperty as br, type ConnectionProperty as bs, type AuthenticationIdProperty as bt, type InputsProperty as bu, type LimitProperty as bv, type OffsetProperty as bw, type OutputProperty as bx, type DebugProperty as by, type ParamsProperty as bz, type UpdateManifestEntryResult as c, connectionIdGenericResolver as c$, type RateLimitInfo as c0, ZapierRateLimitError as c1, type ApprovalStatus as c2, ZapierApprovalError as c3, ZapierRelayError as c4, formatErrorMessage as c5, type ApiError as c6, ZapierSignal as c7, appsPlugin as c8, type AppsPluginProvides as c9, getConnectionPlugin as cA, type GetConnectionPluginProvides as cB, findFirstConnectionPlugin as cC, type FindFirstConnectionPluginProvides as cD, findUniqueConnectionPlugin as cE, type FindUniqueConnectionPluginProvides as cF, CONTEXT_CACHE_TTL_MS as cG, CONTEXT_CACHE_MAX_SIZE as cH, runActionPlugin as cI, type RunActionPluginProvides as cJ, requestPlugin as cK, type RequestPluginProvides as cL, type ManifestPluginOptions as cM, getPreferredManifestEntryKey as cN, manifestPlugin as cO, type ManifestPluginProvides as cP, DEFAULT_CONFIG_PATH as cQ, type ManifestEntry as cR, getProfilePlugin as cS, type GetProfilePluginProvides as cT, type ApiPluginOptions as cU, apiPlugin as cV, type ApiPluginProvides as cW, appKeyResolver as cX, actionTypeResolver as cY, actionKeyResolver as cZ, connectionIdResolver as c_, type ActionExecutionOptions as ca, type AppFactoryInput as cb, fetchPlugin as cc, type FetchPluginProvides as cd, listAppsPlugin as ce, type ListAppsPluginProvides as cf, listActionsPlugin as cg, type ListActionsPluginProvides as ch, listActionInputFieldsPlugin as ci, type ListActionInputFieldsPluginProvides as cj, listActionInputFieldChoicesPlugin as ck, type ListActionInputFieldChoicesPluginProvides as cl, getActionInputFieldsSchemaPlugin as cm, type GetActionInputFieldsSchemaPluginProvides as cn, listConnectionsPlugin as co, type ListConnectionsPluginProvides as cp, listClientCredentialsPlugin as cq, type ListClientCredentialsPluginProvides as cr, createClientCredentialsPlugin as cs, type CreateClientCredentialsPluginProvides as ct, deleteClientCredentialsPlugin as cu, type DeleteClientCredentialsPluginProvides as cv, getAppPlugin as cw, type GetAppPluginProvides as cx, getActionPlugin as cy, type GetActionPluginProvides as cz, type AddActionEntryOptions as d, type ConnectionsMap as d$, inputsResolver as d0, inputsAllOptionalResolver as d1, inputFieldKeyResolver as d2, clientCredentialsNameResolver as d3, clientIdResolver as d4, tableIdResolver as d5, triggerInboxResolver as d6, workflowIdResolver as d7, durableRunIdResolver as d8, workflowVersionIdResolver as d9, type ApiEvent as dA, type LoadingEvent as dB, type EventCallback as dC, type Credentials as dD, type ResolvedCredentials as dE, type CredentialsObject as dF, type ClientCredentialsObject as dG, type PkceCredentialsObject as dH, isClientCredentials as dI, isPkceCredentials as dJ, isCredentialsObject as dK, isCredentialsFunction as dL, type ResolveCredentialsOptions as dM, resolveCredentialsFromEnv as dN, resolveCredentials as dO, getBaseUrlFromCredentials as dP, getClientIdFromCredentials as dQ, ClientCredentialsObjectSchema as dR, PkceCredentialsObjectSchema as dS, CredentialsObjectSchema as dT, ResolvedCredentialsSchema as dU, CredentialsFunctionSchema as dV, type CredentialsFunction as dW, CredentialsSchema as dX, ConnectionEntrySchema as dY, type ConnectionEntry as dZ, ConnectionsMapSchema as d_, workflowRunIdResolver as da, triggerMessagesResolver as db, tableRecordIdResolver as dc, tableRecordIdsResolver as dd, tableFieldIdsResolver as de, tableNameResolver as df, tableFieldsResolver as dg, tableRecordsResolver as dh, tableUpdateRecordsResolver as di, tableFiltersResolver as dj, tableSortResolver as dk, type ResolveAuthTokenOptions as dl, clearTokenCache as dm, invalidateCachedToken as dn, injectCliLogin as dp, isCliLoginAvailable as dq, getTokenFromCliLogin as dr, resolveAuthToken as ds, invalidateCredentialsToken as dt, type ZapierCache as du, type ZapierCacheEntry as dv, type ZapierCacheSetOptions as dw, createMemoryCache as dx, type SdkEvent as dy, type AuthEvent as dz, type AddActionEntryResult as e, getCpuTime as e$, connectionsPlugin as e0, type ConnectionsPluginProvides as e1, ZAPIER_BASE_URL as e2, getZapierSdkService as e3, MAX_PAGE_LIMIT as e4, DEFAULT_PAGE_SIZE as e5, DEFAULT_ACTION_TIMEOUT_MS as e6, ZAPIER_MAX_NETWORK_RETRIES as e7, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as e8, MAX_CONCURRENCY_LIMIT as e9, deleteTableRecordsPlugin as eA, type DeleteTableRecordsPluginProvides as eB, updateTableRecordsPlugin as eC, type UpdateTableRecordsPluginProvides as eD, cleanupEventListeners as eE, type EventEmissionConfig as eF, eventEmissionPlugin as eG, type EventEmissionProvides as eH, type EventContext as eI, type ApplicationLifecycleEventData as eJ, type EnhancedErrorEventData as eK, type MethodCalledEventData as eL, buildApplicationLifecycleEvent as eM, buildErrorEventWithContext as eN, buildErrorEvent as eO, createBaseEvent as eP, buildMethodCalledEvent as eQ, type BaseEvent as eR, type MethodCalledEvent as eS, generateEventId as eT, getCurrentTimestamp as eU, getReleaseId as eV, getOsInfo as eW, getPlatformVersions as eX, isCi as eY, getCiPlatform as eZ, getMemoryUsage as e_, parseConcurrencyEnvVar as ea, ZAPIER_MAX_CONCURRENT_REQUESTS as eb, getZapierApprovalMode as ec, getZapierDefaultApprovalMode as ed, DEFAULT_APPROVAL_TIMEOUT_MS as ee, DEFAULT_MAX_APPROVAL_RETRIES as ef, listTablesPlugin as eg, type ListTablesPluginProvides as eh, getTablePlugin as ei, type GetTablePluginProvides as ej, createTablePlugin as ek, type CreateTablePluginProvides as el, deleteTablePlugin as em, type DeleteTablePluginProvides as en, listTableFieldsPlugin as eo, type ListTableFieldsPluginProvides as ep, createTableFieldsPlugin as eq, type CreateTableFieldsPluginProvides as er, deleteTableFieldsPlugin as es, type DeleteTableFieldsPluginProvides as et, getTableRecordPlugin as eu, type GetTableRecordPluginProvides as ev, listTableRecordsPlugin as ew, type ListTableRecordsPluginProvides as ex, createTableRecordsPlugin as ey, type CreateTableRecordsPluginProvides as ez, type ActionEntry as f, createZapierSdk as f0, createZapierSdkStack as f1, type ZapierSdk as f2, 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 };
15238
+ 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, InputFieldPropertySchema 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 AppItem as aN, type ConnectionItem as aO, type ActionItem$1 as aP, type InputFieldItem as aQ, type InfoFieldItem as aR, type RootFieldItem as aS, type UserProfileItem as aT, type SdkPage as aU, type PaginatedSdkFunction as aV, AppKeyPropertySchema as aW, AppPropertySchema as aX, ActionTypePropertySchema as aY, ActionKeyPropertySchema as aZ, ActionPropertySchema 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, ZapierActionError as b$, ConnectionIdPropertySchema as b0, AuthenticationIdPropertySchema as b1, ConnectionPropertySchema as b2, InputsPropertySchema as b3, LimitPropertySchema as b4, OffsetPropertySchema as b5, OutputPropertySchema as b6, DebugPropertySchema as b7, ParamsPropertySchema as b8, ActionTimeoutMsPropertySchema as b9, type ParamsProperty as bA, type ActionTimeoutMsProperty as bB, type TableProperty as bC, type RecordProperty as bD, type RecordsProperty as bE, type FieldsProperty as bF, type AppsProperty as bG, type TablesProperty as bH, type ConnectionsProperty as bI, type TriggerInboxProperty as bJ, type TriggerInboxNameProperty as bK, type LeaseProperty as bL, type LeaseSecondsProperty as bM, type LeaseLimitProperty as bN, type ErrorOptions as bO, ZapierError as bP, ZapierValidationError as bQ, ZapierUnknownError as bR, ZapierAuthenticationError as bS, zapierAdaptError as bT, ZapierApiError as bU, ZapierAppNotFoundError as bV, ZapierNotFoundError as bW, ZapierResourceNotFoundError as bX, ZapierConfigurationError as bY, ZapierBundleError as bZ, ZapierTimeoutError as b_, TablePropertySchema as ba, RecordPropertySchema as bb, RecordsPropertySchema as bc, FieldsPropertySchema as bd, AppsPropertySchema as be, TablesPropertySchema as bf, ConnectionsPropertySchema as bg, TriggerInboxPropertySchema as bh, TriggerInboxNamePropertySchema as bi, LeasePropertySchema as bj, LeaseSecondsPropertySchema as bk, LeaseLimitPropertySchema as bl, type AppKeyProperty as bm, type AppProperty as bn, type ActionTypeProperty as bo, type ActionKeyProperty as bp, type ActionProperty as bq, type InputFieldProperty as br, type ConnectionIdProperty as bs, type ConnectionProperty as bt, type AuthenticationIdProperty as bu, type InputsProperty as bv, type LimitProperty as bw, type OffsetProperty as bx, type OutputProperty as by, type DebugProperty as bz, type UpdateManifestEntryResult as c, connectionIdResolver as c$, ZapierConflictError as c0, type RateLimitInfo as c1, ZapierRateLimitError as c2, type ApprovalStatus as c3, ZapierApprovalError as c4, ZapierRelayError as c5, formatErrorMessage as c6, type ApiError as c7, ZapierSignal as c8, appsPlugin as c9, type GetActionPluginProvides as cA, getConnectionPlugin as cB, type GetConnectionPluginProvides as cC, findFirstConnectionPlugin as cD, type FindFirstConnectionPluginProvides as cE, findUniqueConnectionPlugin as cF, type FindUniqueConnectionPluginProvides as cG, CONTEXT_CACHE_TTL_MS as cH, CONTEXT_CACHE_MAX_SIZE as cI, runActionPlugin as cJ, type RunActionPluginProvides as cK, requestPlugin as cL, type RequestPluginProvides as cM, type ManifestPluginOptions as cN, getPreferredManifestEntryKey as cO, manifestPlugin as cP, type ManifestPluginProvides as cQ, DEFAULT_CONFIG_PATH as cR, type ManifestEntry as cS, getProfilePlugin as cT, type GetProfilePluginProvides as cU, type ApiPluginOptions as cV, apiPlugin as cW, type ApiPluginProvides as cX, appKeyResolver as cY, actionTypeResolver as cZ, actionKeyResolver as c_, type AppsPluginProvides as ca, type ActionExecutionOptions as cb, type AppFactoryInput as cc, fetchPlugin as cd, type FetchPluginProvides as ce, listAppsPlugin as cf, type ListAppsPluginProvides as cg, listActionsPlugin as ch, type ListActionsPluginProvides as ci, listActionInputFieldsPlugin as cj, type ListActionInputFieldsPluginProvides as ck, listActionInputFieldChoicesPlugin as cl, type ListActionInputFieldChoicesPluginProvides as cm, getActionInputFieldsSchemaPlugin as cn, type GetActionInputFieldsSchemaPluginProvides as co, listConnectionsPlugin as cp, type ListConnectionsPluginProvides as cq, listClientCredentialsPlugin as cr, type ListClientCredentialsPluginProvides as cs, createClientCredentialsPlugin as ct, type CreateClientCredentialsPluginProvides as cu, deleteClientCredentialsPlugin as cv, type DeleteClientCredentialsPluginProvides as cw, getAppPlugin as cx, type GetAppPluginProvides as cy, getActionPlugin as cz, type AddActionEntryOptions as d, ConnectionsMapSchema as d$, connectionIdGenericResolver as d0, inputsResolver as d1, inputsAllOptionalResolver as d2, inputFieldKeyResolver as d3, clientCredentialsNameResolver as d4, clientIdResolver as d5, tableIdResolver as d6, triggerInboxResolver as d7, workflowIdResolver as d8, durableRunIdResolver as d9, type AuthEvent as dA, type ApiEvent as dB, type LoadingEvent as dC, type EventCallback as dD, type Credentials as dE, type ResolvedCredentials as dF, type CredentialsObject as dG, type ClientCredentialsObject as dH, type PkceCredentialsObject as dI, isClientCredentials as dJ, isPkceCredentials as dK, isCredentialsObject as dL, isCredentialsFunction as dM, type ResolveCredentialsOptions as dN, resolveCredentialsFromEnv as dO, resolveCredentials as dP, getBaseUrlFromCredentials as dQ, getClientIdFromCredentials as dR, ClientCredentialsObjectSchema as dS, PkceCredentialsObjectSchema as dT, CredentialsObjectSchema as dU, ResolvedCredentialsSchema as dV, CredentialsFunctionSchema as dW, type CredentialsFunction as dX, CredentialsSchema as dY, ConnectionEntrySchema as dZ, type ConnectionEntry as d_, workflowVersionIdResolver as da, workflowRunIdResolver as db, triggerMessagesResolver as dc, tableRecordIdResolver as dd, tableRecordIdsResolver as de, tableFieldIdsResolver as df, tableNameResolver as dg, tableFieldsResolver as dh, tableRecordsResolver as di, tableUpdateRecordsResolver as dj, tableFiltersResolver as dk, tableSortResolver as dl, type ResolveAuthTokenOptions as dm, clearTokenCache as dn, invalidateCachedToken as dp, injectCliLogin as dq, isCliLoginAvailable as dr, getTokenFromCliLogin as ds, resolveAuthToken as dt, invalidateCredentialsToken as du, type ZapierCache as dv, type ZapierCacheEntry as dw, type ZapierCacheSetOptions as dx, createMemoryCache as dy, type SdkEvent as dz, type AddActionEntryResult as e, getMemoryUsage as e$, type ConnectionsMap as e0, connectionsPlugin as e1, type ConnectionsPluginProvides as e2, ZAPIER_BASE_URL as e3, getZapierSdkService as e4, MAX_PAGE_LIMIT as e5, DEFAULT_PAGE_SIZE as e6, DEFAULT_ACTION_TIMEOUT_MS as e7, ZAPIER_MAX_NETWORK_RETRIES as e8, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as e9, type CreateTableRecordsPluginProvides as eA, deleteTableRecordsPlugin as eB, type DeleteTableRecordsPluginProvides as eC, updateTableRecordsPlugin as eD, type UpdateTableRecordsPluginProvides as eE, cleanupEventListeners as eF, type EventEmissionConfig as eG, eventEmissionPlugin as eH, type EventEmissionProvides as eI, type EventContext as eJ, type ApplicationLifecycleEventData as eK, type EnhancedErrorEventData as eL, type MethodCalledEventData as eM, buildApplicationLifecycleEvent as eN, buildErrorEventWithContext as eO, buildErrorEvent as eP, createBaseEvent as eQ, buildMethodCalledEvent as eR, type BaseEvent as eS, type MethodCalledEvent as eT, generateEventId as eU, getCurrentTimestamp as eV, getReleaseId as eW, getOsInfo as eX, getPlatformVersions as eY, isCi as eZ, getCiPlatform as e_, MAX_CONCURRENCY_LIMIT as ea, parseConcurrencyEnvVar as eb, ZAPIER_MAX_CONCURRENT_REQUESTS as ec, getZapierApprovalMode as ed, getZapierDefaultApprovalMode as ee, DEFAULT_APPROVAL_TIMEOUT_MS as ef, DEFAULT_MAX_APPROVAL_RETRIES as eg, listTablesPlugin as eh, type ListTablesPluginProvides as ei, getTablePlugin as ej, type GetTablePluginProvides as ek, createTablePlugin as el, type CreateTablePluginProvides as em, deleteTablePlugin as en, type DeleteTablePluginProvides as eo, listTableFieldsPlugin as ep, type ListTableFieldsPluginProvides as eq, createTableFieldsPlugin as er, type CreateTableFieldsPluginProvides as es, deleteTableFieldsPlugin as et, type DeleteTableFieldsPluginProvides as eu, getTableRecordPlugin as ev, type GetTableRecordPluginProvides as ew, listTableRecordsPlugin as ex, type ListTableRecordsPluginProvides as ey, createTableRecordsPlugin as ez, type ActionEntry as f, getCpuTime as f0, createZapierSdk as f1, createZapierSdkStack as f2, type ZapierSdk as f3, 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 };
package/dist/index.cjs CHANGED
@@ -6764,7 +6764,7 @@ function createSseParserStream() {
6764
6764
  }
6765
6765
 
6766
6766
  // src/sdk-version.ts
6767
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.1" : void 0) || "unknown";
6767
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.3" : void 0) || "unknown";
6768
6768
 
6769
6769
  // src/utils/open-url.ts
6770
6770
  var nodePrefix = "node:";
@@ -7702,6 +7702,12 @@ var createZapierApi = (options) => {
7702
7702
  });
7703
7703
  };
7704
7704
 
7705
+ // src/api/error-classification.ts
7706
+ function isPermanentHttpError(err) {
7707
+ const statusCode = err instanceof ZapierError ? err.statusCode : void 0;
7708
+ return statusCode !== void 0 && statusCode >= 400 && statusCode < 500 && statusCode !== 429;
7709
+ }
7710
+
7705
7711
  // src/api/index.ts
7706
7712
  function getOrCreateApiClient(config) {
7707
7713
  const {
@@ -9789,6 +9795,7 @@ exports.isClientCredentials = isClientCredentials;
9789
9795
  exports.isCoreError = isCoreError;
9790
9796
  exports.isCredentialsFunction = isCredentialsFunction;
9791
9797
  exports.isCredentialsObject = isCredentialsObject;
9798
+ exports.isPermanentHttpError = isPermanentHttpError;
9792
9799
  exports.isPkceCredentials = isPkceCredentials;
9793
9800
  exports.isPositional = isPositional;
9794
9801
  exports.listActionInputFieldChoicesPlugin = listActionInputFieldChoicesPlugin;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { x as Action, f as ActionEntry, ca as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, aO as ActionItem, bo as ActionKeyProperty, aY as ActionKeyPropertySchema, bp as ActionProperty, aZ as ActionPropertySchema, aE as ActionResolverItem, bA as ActionTimeoutMsProperty, b8 as ActionTimeoutMsPropertySchema, aF as ActionTypeItem, bn as ActionTypeProperty, aX as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, c6 as ApiError, dA as ApiEvent, cU as ApiPluginOptions, cW as ApiPluginProvides, y as App, cb as AppFactoryInput, aM as AppItem, bl as AppKeyProperty, aV as AppKeyPropertySchema, bm as AppProperty, aW as AppPropertySchema, eJ as ApplicationLifecycleEventData, c2 as ApprovalStatus, c9 as AppsPluginProvides, bF as AppsProperty, bd as AppsPropertySchema, a5 as ArrayResolver, dz as AuthEvent, bt as AuthenticationIdProperty, b0 as AuthenticationIdPropertySchema, eR as BaseEvent, as as BaseSdkOptionsSchema, ag as BatchOptions, cH as CONTEXT_CACHE_MAX_SIZE, cG as CONTEXT_CACHE_TTL_MS, aw as CORE_ERROR_SYMBOL, H as Choice, dG as ClientCredentialsObject, dR as ClientCredentialsObjectSchema, V as Connection, dZ as ConnectionEntry, dY as ConnectionEntrySchema, br as ConnectionIdProperty, a$ as ConnectionIdPropertySchema, aN as ConnectionItem, bs as ConnectionProperty, b1 as ConnectionPropertySchema, d$ as ConnectionsMap, d_ as ConnectionsMapSchema, e1 as ConnectionsPluginProvides, bH as ConnectionsProperty, bf as ConnectionsPropertySchema, X as ConnectionsResponse, ax as CoreErrorCode, ct as CreateClientCredentialsPluginProvides, er as CreateTableFieldsPluginProvides, el as CreateTablePluginProvides, ez as CreateTableRecordsPluginProvides, dD as Credentials, dW as CredentialsFunction, dV as CredentialsFunctionSchema, dF as CredentialsObject, dT as CredentialsObjectSchema, dX as CredentialsSchema, e6 as DEFAULT_ACTION_TIMEOUT_MS, ee as DEFAULT_APPROVAL_TIMEOUT_MS, cQ as DEFAULT_CONFIG_PATH, ef as DEFAULT_MAX_APPROVAL_RETRIES, e5 as DEFAULT_PAGE_SIZE, by as DebugProperty, b6 as DebugPropertySchema, cv as DeleteClientCredentialsPluginProvides, et as DeleteTableFieldsPluginProvides, en as DeleteTablePluginProvides, eB as DeleteTableRecordsPluginProvides, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a8 as DynamicListResolver, l as DynamicResolver, a9 as DynamicSearchResolver, eK as EnhancedErrorEventData, bN as ErrorOptions, dC as EventCallback, eI as EventContext, eF as EventEmissionConfig, E as EventEmissionContext, eH as EventEmissionProvides, cd as FetchPluginProvides, z as Field, bE as FieldsProperty, bc as FieldsPropertySchema, aa as FieldsResolver, F as FieldsetItem, v as FindFirstAuthenticationPluginProvides, cD as FindFirstConnectionPluginProvides, w as FindUniqueAuthenticationPluginProvides, cF as FindUniqueConnectionPluginProvides, a3 as FormattedItem, ar as FunctionDeprecation, aq as FunctionRegistryEntry, cn as GetActionInputFieldsSchemaPluginProvides, cz as GetActionPluginProvides, cx as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cB as GetConnectionPluginProvides, cT as GetProfilePluginProvides, ej as GetTablePluginProvides, ev as GetTableRecordPluginProvides, aQ as InfoFieldItem, aP as InputFieldItem, bq as InputFieldProperty, a_ as InputFieldPropertySchema, bu as InputsProperty, b2 as InputsPropertySchema, bM as LeaseLimitProperty, bk as LeaseLimitPropertySchema, bK as LeaseProperty, bi as LeasePropertySchema, bL as LeaseSecondsProperty, bj as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bv as LimitProperty, b3 as LimitPropertySchema, cl as ListActionInputFieldChoicesPluginProvides, cj as ListActionInputFieldsPluginProvides, ch as ListActionsPluginProvides, cf as ListAppsPluginProvides, u as ListAuthenticationsPluginProvides, cr as ListClientCredentialsPluginProvides, cp as ListConnectionsPluginProvides, ep as ListTableFieldsPluginProvides, ex as ListTableRecordsPluginProvides, eh as ListTablesPluginProvides, dB as LoadingEvent, e9 as MAX_CONCURRENCY_LIMIT, e4 as MAX_PAGE_LIMIT, b as Manifest, cR as ManifestEntry, cM as ManifestPluginOptions, cP as ManifestPluginProvides, eS as MethodCalledEvent, eL as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bw as OffsetProperty, b4 as OffsetPropertySchema, O as OutputFormatter, bx as OutputProperty, b5 as OutputPropertySchema, aU as PaginatedSdkFunction, i as PaginatedSdkResult, bz as ParamsProperty, b7 as ParamsPropertySchema, dH as PkceCredentialsObject, dS as PkceCredentialsObjectSchema, ay as Plugin, a as PluginMeta, az as PluginProvides, aI as PollOptions, j as PositionalMetadata, c0 as RateLimitInfo, bC as RecordProperty, ba as RecordPropertySchema, bD as RecordsProperty, bb as RecordsPropertySchema, al as RelayFetchSchema, ak as RelayRequestSchema, aH as RequestOptions, cL as RequestPluginProvides, dl as ResolveAuthTokenOptions, dM as ResolveCredentialsOptions, R as ResolvedAppLocator, dE as ResolvedCredentials, dU as ResolvedCredentialsSchema, a4 as Resolver, a6 as ResolverMetadata, aR as RootFieldItem, cJ as RunActionPluginProvides, dy as SdkEvent, aT as SdkPage, aL as SseMessage, a7 as StaticResolver, bB as TableProperty, b9 as TablePropertySchema, bG as TablesProperty, be as TablesPropertySchema, bJ as TriggerInboxNameProperty, bh as TriggerInboxNamePropertySchema, bI as TriggerInboxProperty, bg as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, eD as UpdateTableRecordsPluginProvides, Y as UserProfile, aS as UserProfileItem, W as WatchTriggerInboxOptions, o as WithAddPlugin, e2 as ZAPIER_BASE_URL, eb as ZAPIER_MAX_CONCURRENT_REQUESTS, e7 as ZAPIER_MAX_NETWORK_RETRIES, e8 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, p as ZapierAbortDrainSignal, b_ as ZapierActionError, bT as ZapierApiError, bU as ZapierAppNotFoundError, c3 as ZapierApprovalError, bR as ZapierAuthenticationError, bY as ZapierBundleError, du as ZapierCache, dv as ZapierCacheEntry, dw as ZapierCacheSetOptions, bX as ZapierConfigurationError, b$ as ZapierConflictError, bO as ZapierError, k as ZapierFetchInitOptions, bV as ZapierNotFoundError, c1 as ZapierRateLimitError, c4 as ZapierRelayError, q as ZapierReleaseTriggerMessageSignal, bW as ZapierResourceNotFoundError, f2 as ZapierSdk, n as ZapierSdkApps, Z as ZapierSdkOptions, c7 as ZapierSignal, bZ as ZapierTimeoutError, bQ as ZapierUnknownError, bP as ZapierValidationError, cZ as actionKeyResolver, cY as actionTypeResolver, a2 as addPlugin, cV as apiPlugin, cX as appKeyResolver, c8 as appsPlugin, c$ as authenticationIdGenericResolver, c_ as authenticationIdResolver, af as batch, eM as buildApplicationLifecycleEvent, ah as buildCapabilityMessage, eO as buildErrorEvent, eN as buildErrorEventWithContext, eQ as buildMethodCalledEvent, eE as cleanupEventListeners, dm as clearTokenCache, d3 as clientCredentialsNameResolver, d4 as clientIdResolver, aD as composePlugins, c$ as connectionIdGenericResolver, c_ as connectionIdResolver, e0 as connectionsPlugin, eP as createBaseEvent, cs as createClientCredentialsPlugin, a1 as createCorePlugin, $ as createFunction, dx as createMemoryCache, ao as createOptionsPlugin, aC as createPaginatedPluginMethod, aB as createPluginMethod, a0 as createPluginStack, an as createSdk, eq as createTableFieldsPlugin, ek as createTablePlugin, ey as createTableRecordsPlugin, aJ as createZapierApi, ap as createZapierCoreStack, f0 as createZapierSdk, f1 as createZapierSdkStack, am as createZapierSdkWithoutRegistry, aA as definePlugin, cu as deleteClientCredentialsPlugin, es as deleteTableFieldsPlugin, em as deleteTablePlugin, eA as deleteTableRecordsPlugin, d8 as durableRunIdResolver, eG as eventEmissionPlugin, cc as fetchPlugin, cC as findFirstConnectionPlugin, g as findManifestEntry, cE as findUniqueConnectionPlugin, c5 as formatErrorMessage, eT as generateEventId, cm as getActionInputFieldsSchemaPlugin, cy as getActionPlugin, cw as getAppPlugin, dP as getBaseUrlFromCredentials, eZ as getCiPlatform, dQ as getClientIdFromCredentials, cA as getConnectionPlugin, av as getCoreErrorCause, au as getCoreErrorCode, e$ as getCpuTime, eU as getCurrentTimestamp, e_ as getMemoryUsage, aK as getOrCreateApiClient, eW as getOsInfo, eX as getPlatformVersions, cN as getPreferredManifestEntryKey, cS as getProfilePlugin, eV as getReleaseId, ei as getTablePlugin, eu as getTableRecordPlugin, dr as getTokenFromCliLogin, ec as getZapierApprovalMode, ed as getZapierDefaultApprovalMode, e3 as getZapierSdkService, dp as injectCliLogin, d2 as inputFieldKeyResolver, d1 as inputsAllOptionalResolver, d0 as inputsResolver, dn as invalidateCachedToken, dt as invalidateCredentialsToken, eY as isCi, dq as isCliLoginAvailable, dI as isClientCredentials, at as isCoreError, dL as isCredentialsFunction, dK as isCredentialsObject, dJ as isPkceCredentials, _ as isPositional, ck as listActionInputFieldChoicesPlugin, ci as listActionInputFieldsPlugin, cg as listActionsPlugin, ce as listAppsPlugin, cq as listClientCredentialsPlugin, co as listConnectionsPlugin, eo as listTableFieldsPlugin, ew as listTableRecordsPlugin, eg as listTablesPlugin, ai as logDeprecation, cO as manifestPlugin, ea as parseConcurrencyEnvVar, r as readManifestFromFile, aG as registryPlugin, cK as requestPlugin, aj as resetDeprecationWarnings, ds as resolveAuthToken, dO as resolveCredentials, dN as resolveCredentialsFromEnv, cI as runActionPlugin, ab as runInMethodScope, ac as runWithTelemetryContext, de as tableFieldIdsResolver, dg as tableFieldsResolver, dj as tableFiltersResolver, d5 as tableIdResolver, df as tableNameResolver, dc as tableRecordIdResolver, dd as tableRecordIdsResolver, dh as tableRecordsResolver, dk as tableSortResolver, di as tableUpdateRecordsResolver, ad as toSnakeCase, ae as toTitleCase, d6 as triggerInboxResolver, db as triggerMessagesResolver, eC as updateTableRecordsPlugin, d7 as workflowIdResolver, da as workflowRunIdResolver, d9 as workflowVersionIdResolver, bS as zapierAdaptError } from './index-BWdR4HBe.mjs';
1
+ export { x as Action, f as ActionEntry, cb as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, aP as ActionItem, bp as ActionKeyProperty, aZ as ActionKeyPropertySchema, bq as ActionProperty, a_ as ActionPropertySchema, aE as ActionResolverItem, bB as ActionTimeoutMsProperty, b9 as ActionTimeoutMsPropertySchema, aF as ActionTypeItem, bo as ActionTypeProperty, aY as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, c7 as ApiError, dB as ApiEvent, cV as ApiPluginOptions, cX as ApiPluginProvides, y as App, cc as AppFactoryInput, aN as AppItem, bm as AppKeyProperty, aW as AppKeyPropertySchema, bn as AppProperty, aX as AppPropertySchema, eK as ApplicationLifecycleEventData, c3 as ApprovalStatus, ca as AppsPluginProvides, bG as AppsProperty, be as AppsPropertySchema, a5 as ArrayResolver, dA as AuthEvent, bu as AuthenticationIdProperty, b1 as AuthenticationIdPropertySchema, eS as BaseEvent, as as BaseSdkOptionsSchema, ag as BatchOptions, cI as CONTEXT_CACHE_MAX_SIZE, cH as CONTEXT_CACHE_TTL_MS, aw as CORE_ERROR_SYMBOL, H as Choice, dH as ClientCredentialsObject, dS as ClientCredentialsObjectSchema, V as Connection, d_ as ConnectionEntry, dZ as ConnectionEntrySchema, bs as ConnectionIdProperty, b0 as ConnectionIdPropertySchema, aO as ConnectionItem, bt as ConnectionProperty, b2 as ConnectionPropertySchema, e0 as ConnectionsMap, d$ as ConnectionsMapSchema, e2 as ConnectionsPluginProvides, bI as ConnectionsProperty, bg as ConnectionsPropertySchema, X as ConnectionsResponse, ax as CoreErrorCode, cu as CreateClientCredentialsPluginProvides, es as CreateTableFieldsPluginProvides, em as CreateTablePluginProvides, eA as CreateTableRecordsPluginProvides, dE as Credentials, dX as CredentialsFunction, dW as CredentialsFunctionSchema, dG as CredentialsObject, dU as CredentialsObjectSchema, dY as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MS, ef as DEFAULT_APPROVAL_TIMEOUT_MS, cR as DEFAULT_CONFIG_PATH, eg as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, bz as DebugProperty, b7 as DebugPropertySchema, cw as DeleteClientCredentialsPluginProvides, eu as DeleteTableFieldsPluginProvides, eo as DeleteTablePluginProvides, eC as DeleteTableRecordsPluginProvides, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a8 as DynamicListResolver, l as DynamicResolver, a9 as DynamicSearchResolver, eL as EnhancedErrorEventData, bO as ErrorOptions, dD as EventCallback, eJ as EventContext, eG as EventEmissionConfig, E as EventEmissionContext, eI as EventEmissionProvides, ce as FetchPluginProvides, z as Field, bF as FieldsProperty, bd as FieldsPropertySchema, aa as FieldsResolver, F as FieldsetItem, v as FindFirstAuthenticationPluginProvides, cE as FindFirstConnectionPluginProvides, w as FindUniqueAuthenticationPluginProvides, cG as FindUniqueConnectionPluginProvides, a3 as FormattedItem, ar as FunctionDeprecation, aq as FunctionRegistryEntry, co as GetActionInputFieldsSchemaPluginProvides, cA as GetActionPluginProvides, cy as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cC as GetConnectionPluginProvides, cU as GetProfilePluginProvides, ek as GetTablePluginProvides, ew as GetTableRecordPluginProvides, aR as InfoFieldItem, aQ as InputFieldItem, br as InputFieldProperty, a$ as InputFieldPropertySchema, bv as InputsProperty, b3 as InputsPropertySchema, bN as LeaseLimitProperty, bl as LeaseLimitPropertySchema, bL as LeaseProperty, bj as LeasePropertySchema, bM as LeaseSecondsProperty, bk as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bw as LimitProperty, b4 as LimitPropertySchema, cm as ListActionInputFieldChoicesPluginProvides, ck as ListActionInputFieldsPluginProvides, ci as ListActionsPluginProvides, cg as ListAppsPluginProvides, u as ListAuthenticationsPluginProvides, cs as ListClientCredentialsPluginProvides, cq as ListConnectionsPluginProvides, eq as ListTableFieldsPluginProvides, ey as ListTableRecordsPluginProvides, ei as ListTablesPluginProvides, dC as LoadingEvent, ea as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, b as Manifest, cS as ManifestEntry, cN as ManifestPluginOptions, cQ as ManifestPluginProvides, eT as MethodCalledEvent, eM as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bx as OffsetProperty, b5 as OffsetPropertySchema, O as OutputFormatter, by as OutputProperty, b6 as OutputPropertySchema, aV as PaginatedSdkFunction, i as PaginatedSdkResult, bA as ParamsProperty, b8 as ParamsPropertySchema, dI as PkceCredentialsObject, dT as PkceCredentialsObjectSchema, ay as Plugin, a as PluginMeta, az as PluginProvides, aI as PollOptions, j as PositionalMetadata, c1 as RateLimitInfo, bD as RecordProperty, bb as RecordPropertySchema, bE as RecordsProperty, bc as RecordsPropertySchema, al as RelayFetchSchema, ak as RelayRequestSchema, aH as RequestOptions, cM as RequestPluginProvides, dm as ResolveAuthTokenOptions, dN as ResolveCredentialsOptions, R as ResolvedAppLocator, dF as ResolvedCredentials, dV as ResolvedCredentialsSchema, a4 as Resolver, a6 as ResolverMetadata, aS as RootFieldItem, cK as RunActionPluginProvides, dz as SdkEvent, aU as SdkPage, aM as SseMessage, a7 as StaticResolver, bC as TableProperty, ba as TablePropertySchema, bH as TablesProperty, bf as TablesPropertySchema, bK as TriggerInboxNameProperty, bi as TriggerInboxNamePropertySchema, bJ as TriggerInboxProperty, bh as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, eE as UpdateTableRecordsPluginProvides, Y as UserProfile, aT as UserProfileItem, W as WatchTriggerInboxOptions, o as WithAddPlugin, e3 as ZAPIER_BASE_URL, ec as ZAPIER_MAX_CONCURRENT_REQUESTS, e8 as ZAPIER_MAX_NETWORK_RETRIES, e9 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, p as ZapierAbortDrainSignal, b$ as ZapierActionError, bU as ZapierApiError, bV as ZapierAppNotFoundError, c4 as ZapierApprovalError, bS as ZapierAuthenticationError, bZ as ZapierBundleError, dv as ZapierCache, dw as ZapierCacheEntry, dx as ZapierCacheSetOptions, bY as ZapierConfigurationError, c0 as ZapierConflictError, bP as ZapierError, k as ZapierFetchInitOptions, bW as ZapierNotFoundError, c2 as ZapierRateLimitError, c5 as ZapierRelayError, q as ZapierReleaseTriggerMessageSignal, bX as ZapierResourceNotFoundError, f3 as ZapierSdk, n as ZapierSdkApps, Z as ZapierSdkOptions, c8 as ZapierSignal, b_ as ZapierTimeoutError, bR as ZapierUnknownError, bQ as ZapierValidationError, c_ as actionKeyResolver, cZ as actionTypeResolver, a2 as addPlugin, cW as apiPlugin, cY as appKeyResolver, c9 as appsPlugin, d0 as authenticationIdGenericResolver, c$ as authenticationIdResolver, af as batch, eN as buildApplicationLifecycleEvent, ah as buildCapabilityMessage, eP as buildErrorEvent, eO as buildErrorEventWithContext, eR as buildMethodCalledEvent, eF as cleanupEventListeners, dn as clearTokenCache, d4 as clientCredentialsNameResolver, d5 as clientIdResolver, aD as composePlugins, d0 as connectionIdGenericResolver, c$ as connectionIdResolver, e1 as connectionsPlugin, eQ as createBaseEvent, ct as createClientCredentialsPlugin, a1 as createCorePlugin, $ as createFunction, dy as createMemoryCache, ao as createOptionsPlugin, aC as createPaginatedPluginMethod, aB as createPluginMethod, a0 as createPluginStack, an as createSdk, er as createTableFieldsPlugin, el as createTablePlugin, ez as createTableRecordsPlugin, aJ as createZapierApi, ap as createZapierCoreStack, f1 as createZapierSdk, f2 as createZapierSdkStack, am as createZapierSdkWithoutRegistry, aA as definePlugin, cv as deleteClientCredentialsPlugin, et as deleteTableFieldsPlugin, en as deleteTablePlugin, eB as deleteTableRecordsPlugin, d9 as durableRunIdResolver, eH as eventEmissionPlugin, cd as fetchPlugin, cD as findFirstConnectionPlugin, g as findManifestEntry, cF as findUniqueConnectionPlugin, c6 as formatErrorMessage, eU as generateEventId, cn as getActionInputFieldsSchemaPlugin, cz as getActionPlugin, cx as getAppPlugin, dQ as getBaseUrlFromCredentials, e_ as getCiPlatform, dR as getClientIdFromCredentials, cB as getConnectionPlugin, av as getCoreErrorCause, au as getCoreErrorCode, f0 as getCpuTime, eV as getCurrentTimestamp, e$ as getMemoryUsage, aK as getOrCreateApiClient, eX as getOsInfo, eY as getPlatformVersions, cO as getPreferredManifestEntryKey, cT as getProfilePlugin, eW as getReleaseId, ej as getTablePlugin, ev as getTableRecordPlugin, ds as getTokenFromCliLogin, ed as getZapierApprovalMode, ee as getZapierDefaultApprovalMode, e4 as getZapierSdkService, dq as injectCliLogin, d3 as inputFieldKeyResolver, d2 as inputsAllOptionalResolver, d1 as inputsResolver, dp as invalidateCachedToken, du as invalidateCredentialsToken, eZ as isCi, dr as isCliLoginAvailable, dJ as isClientCredentials, at as isCoreError, dM as isCredentialsFunction, dL as isCredentialsObject, aL as isPermanentHttpError, dK as isPkceCredentials, _ as isPositional, cl as listActionInputFieldChoicesPlugin, cj as listActionInputFieldsPlugin, ch as listActionsPlugin, cf as listAppsPlugin, cr as listClientCredentialsPlugin, cp as listConnectionsPlugin, ep as listTableFieldsPlugin, ex as listTableRecordsPlugin, eh as listTablesPlugin, ai as logDeprecation, cP as manifestPlugin, eb as parseConcurrencyEnvVar, r as readManifestFromFile, aG as registryPlugin, cL as requestPlugin, aj as resetDeprecationWarnings, dt as resolveAuthToken, dP as resolveCredentials, dO as resolveCredentialsFromEnv, cJ as runActionPlugin, ab as runInMethodScope, ac as runWithTelemetryContext, df as tableFieldIdsResolver, dh as tableFieldsResolver, dk as tableFiltersResolver, d6 as tableIdResolver, dg as tableNameResolver, dd as tableRecordIdResolver, de as tableRecordIdsResolver, di as tableRecordsResolver, dl as tableSortResolver, dj as tableUpdateRecordsResolver, ad as toSnakeCase, ae as toTitleCase, d7 as triggerInboxResolver, dc as triggerMessagesResolver, eD as updateTableRecordsPlugin, d8 as workflowIdResolver, db as workflowRunIdResolver, da as workflowVersionIdResolver, bT as zapierAdaptError } from './index-DuFFW71E.mjs';
2
2
  import 'zod';
3
3
  import 'zod/v4/core';
4
4
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
package/dist/index.d.ts CHANGED
@@ -72,6 +72,7 @@ export type { ResolvedAppLocator } from "./utils/domain-utils";
72
72
  export { registryPlugin } from "./plugins/registry";
73
73
  export type { ApiClient, RequestOptions, PollOptions } from "./api/types";
74
74
  export { createZapierApi, getOrCreateApiClient } from "./api";
75
+ export { isPermanentHttpError } from "./api";
75
76
  export type { SseMessage } from "./api";
76
77
  export type { ZapierSdk } from "./sdk";
77
78
  export * from "./plugins/eventEmission";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,8CAA8C,CAAC;AACtD,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,8CAA8C,CAAC;AACtD,YAAY,EACV,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,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YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -88,4 +88,5 @@ export { definePlugin, createPluginMethod, createPaginatedPluginMethod, composeP
88
88
  // Export registry plugin for manual use
89
89
  export { registryPlugin } from "./plugins/registry";
90
90
  export { createZapierApi, getOrCreateApiClient } from "./api";
91
+ export { isPermanentHttpError } from "./api";
91
92
  export * from "./plugins/eventEmission";
package/dist/index.mjs CHANGED
@@ -6762,7 +6762,7 @@ function createSseParserStream() {
6762
6762
  }
6763
6763
 
6764
6764
  // src/sdk-version.ts
6765
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.1" : void 0) || "unknown";
6765
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.69.3" : void 0) || "unknown";
6766
6766
 
6767
6767
  // src/utils/open-url.ts
6768
6768
  var nodePrefix = "node:";
@@ -7700,6 +7700,12 @@ var createZapierApi = (options) => {
7700
7700
  });
7701
7701
  };
7702
7702
 
7703
+ // src/api/error-classification.ts
7704
+ function isPermanentHttpError(err) {
7705
+ const statusCode = err instanceof ZapierError ? err.statusCode : void 0;
7706
+ return statusCode !== void 0 && statusCode >= 400 && statusCode < 500 && statusCode !== 429;
7707
+ }
7708
+
7703
7709
  // src/api/index.ts
7704
7710
  function getOrCreateApiClient(config) {
7705
7711
  const {
@@ -9625,4 +9631,4 @@ var registryPlugin = definePlugin((_sdk) => {
9625
9631
  return {};
9626
9632
  });
9627
9633
 
9628
- export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, 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, addPlugin, 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, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk, createZapierSdkStack, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError };
9634
+ export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, 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, addPlugin, 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, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk, createZapierSdkStack, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError };
@@ -24,6 +24,7 @@ export declare const createWorkflowPlugin: (sdk: {
24
24
  createWorkflow: (options?: {
25
25
  name: string;
26
26
  description?: string | undefined;
27
+ is_private?: boolean | undefined;
27
28
  } | undefined) => Promise<{
28
29
  data: {
29
30
  id: string;
@@ -31,6 +32,8 @@ export declare const createWorkflowPlugin: (sdk: {
31
32
  description: string | null;
32
33
  trigger_url: string;
33
34
  enabled: boolean;
35
+ is_private: boolean;
36
+ created_by_user_id: string | null;
34
37
  created_at: string;
35
38
  };
36
39
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
@@ -13,6 +13,9 @@ export const createWorkflowPlugin = definePlugin((sdk) => createPluginMethod(sdk
13
13
  if (options.description !== undefined) {
14
14
  body.description = options.description;
15
15
  }
16
+ if (options.is_private !== undefined) {
17
+ body.is_private = options.is_private;
18
+ }
16
19
  const data = await sdk.context.api.post("/durableworkflowzaps/api/v0/workflows", body, { authRequired: true });
17
20
  return { data };
18
21
  },
@@ -2,6 +2,7 @@ import { z } from "zod";
2
2
  export declare const CreateWorkflowOptionsSchema: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  description: z.ZodOptional<z.ZodString>;
5
+ is_private: z.ZodOptional<z.ZodBoolean>;
5
6
  }, z.core.$strip>;
6
7
  export type CreateWorkflowOptions = z.infer<typeof CreateWorkflowOptionsSchema>;
7
8
  export declare const CreateWorkflowResponseSchema: z.ZodObject<{
@@ -10,6 +11,8 @@ export declare const CreateWorkflowResponseSchema: z.ZodObject<{
10
11
  description: z.ZodNullable<z.ZodString>;
11
12
  trigger_url: z.ZodString;
12
13
  enabled: z.ZodBoolean;
14
+ is_private: z.ZodBoolean;
15
+ created_by_user_id: z.ZodNullable<z.ZodString>;
13
16
  created_at: z.ZodString;
14
17
  }, z.core.$strip>;
15
18
  export type CreateWorkflowResponse = z.infer<typeof CreateWorkflowResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;iBAUrC,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B;;;;;;;iBAkBvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;iBAgBrC,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B;;;;;;;;;iBA2BvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
@@ -6,6 +6,10 @@ export const CreateWorkflowOptionsSchema = z
6
6
  .string()
7
7
  .optional()
8
8
  .describe("Optional description for the workflow"),
9
+ is_private: z
10
+ .boolean()
11
+ .optional()
12
+ .describe("If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."),
9
13
  })
10
14
  .describe("Create a durable workflow container. Starts disabled with no version; publish a version to add code.");
11
15
  export const CreateWorkflowResponseSchema = z.object({
@@ -21,5 +25,12 @@ export const CreateWorkflowResponseSchema = z.object({
21
25
  enabled: z
22
26
  .boolean()
23
27
  .describe("Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."),
28
+ is_private: z
29
+ .boolean()
30
+ .describe("Whether the workflow is private to the creating user. False means account-visible."),
31
+ created_by_user_id: z
32
+ .string()
33
+ .nullable()
34
+ .describe("User ID of the workflow creator (null in legacy data)"),
24
35
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
25
36
  });
@@ -52,6 +52,19 @@ export declare const publishWorkflowVersionPlugin: (sdk: {
52
52
  dependencies?: Record<string, string> | undefined;
53
53
  zapier_durable_version?: string | undefined;
54
54
  enabled?: boolean | undefined;
55
+ connections?: Record<string, {
56
+ connection_id: string | number;
57
+ }> | null | undefined;
58
+ app_versions?: Record<string, {
59
+ implementation_name: string;
60
+ version?: string | undefined;
61
+ }> | null | undefined;
62
+ trigger?: {
63
+ selected_api: string;
64
+ action: string;
65
+ authentication_id?: string | null | undefined;
66
+ params?: Record<string, unknown> | undefined;
67
+ } | undefined;
55
68
  } | undefined) => Promise<{
56
69
  data: {
57
70
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/publishWorkflowVersion/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCxC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,4BAA4B,CACpC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/publishWorkflowVersion/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDxC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,4BAA4B,CACpC,CAAC"}
@@ -23,6 +23,15 @@ export const publishWorkflowVersionPlugin = definePlugin((sdk) => createPluginMe
23
23
  if (options.enabled !== undefined) {
24
24
  body.enabled = options.enabled;
25
25
  }
26
+ if (options.connections !== undefined) {
27
+ body.connections = options.connections;
28
+ }
29
+ if (options.app_versions !== undefined) {
30
+ body.app_versions = options.app_versions;
31
+ }
32
+ if (options.trigger !== undefined) {
33
+ body.trigger = options.trigger;
34
+ }
26
35
  const raw = await sdk.context.api.post(`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`, body, {
27
36
  authRequired: true,
28
37
  resource: { type: "workflow", id: options.workflow },
@@ -5,6 +5,19 @@ export declare const PublishWorkflowVersionOptionsSchema: z.ZodObject<{
5
5
  dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
6
  zapier_durable_version: z.ZodOptional<z.ZodString>;
7
7
  enabled: z.ZodOptional<z.ZodBoolean>;
8
+ connections: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
9
+ connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
10
+ }, z.core.$strip>>>>;
11
+ app_versions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
12
+ implementation_name: z.ZodString;
13
+ version: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>>>>;
15
+ trigger: z.ZodOptional<z.ZodObject<{
16
+ selected_api: z.ZodString;
17
+ action: z.ZodString;
18
+ authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20
+ }, z.core.$strip>>;
8
21
  }, z.core.$strip>;
9
22
  export type PublishWorkflowVersionOptions = z.infer<typeof PublishWorkflowVersionOptionsSchema>;
10
23
  export declare const PublishWorkflowVersionResponseSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/publishWorkflowVersion/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mCAAmC;;;;;;iBA4B7C,CAAC;AAEJ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;iBAmB/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/publishWorkflowVersion/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6DxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;iBA2C7C,CAAC;AAEJ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;iBAmB/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC"}
@@ -1,4 +1,47 @@
1
1
  import { z } from "zod";
2
+ // Connection ID accepts the same two forms the backend does:
3
+ // positive integer (legacy) or UUID string (newer). Matches the regex
4
+ // on durableworkflowzaps's CreateWorkflowVersionRequest schema.
5
+ const CONNECTION_ID_PATTERN = /^([1-9][0-9]*|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
6
+ const ConnectionBindingSchema = z
7
+ .object({
8
+ connection_id: z
9
+ .union([
10
+ z.number().int().positive(),
11
+ z
12
+ .string()
13
+ .regex(CONNECTION_ID_PATTERN, "connection_id must be a positive integer string or UUID"),
14
+ ])
15
+ .describe("Zapier connection ID. Positive integer (legacy) or UUID string (newer)."),
16
+ })
17
+ .describe("Connection binding: maps a single alias to a concrete connection.");
18
+ const AppVersionBindingSchema = z
19
+ .object({
20
+ implementation_name: z
21
+ .string()
22
+ .describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
23
+ version: z
24
+ .string()
25
+ .optional()
26
+ .describe("App implementation version (e.g. '1.27.1')"),
27
+ })
28
+ .describe("App-version binding: maps a single alias to an app version.");
29
+ const TriggerConfigSchema = z
30
+ .object({
31
+ selected_api: z
32
+ .string()
33
+ .describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
34
+ action: z.string().describe("Trigger action key (e.g. 'new_row')"),
35
+ authentication_id: z
36
+ .string()
37
+ .nullish()
38
+ .describe("Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."),
39
+ params: z
40
+ .record(z.string(), z.unknown())
41
+ .optional()
42
+ .describe("Trigger parameters as a JSON object"),
43
+ })
44
+ .describe("Zapier trigger configuration. When set, the workflow subscribes to trigger events.");
2
45
  export const PublishWorkflowVersionOptionsSchema = z
3
46
  .object({
4
47
  workflow: z.string().uuid().describe("Durable workflow ID"),
@@ -20,6 +63,15 @@ export const PublishWorkflowVersionOptionsSchema = z
20
63
  .boolean()
21
64
  .optional()
22
65
  .describe("Enable the workflow after publishing. Defaults to true; pass false to publish without enabling."),
66
+ connections: z
67
+ .record(z.string(), ConnectionBindingSchema)
68
+ .nullish()
69
+ .describe("Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding."),
70
+ app_versions: z
71
+ .record(z.string(), AppVersionBindingSchema)
72
+ .nullish()
73
+ .describe("Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding."),
74
+ trigger: TriggerConfigSchema.optional().describe("Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; omit for webhook-only workflows."),
23
75
  })
24
76
  .describe("Publish a new version of a durable workflow. Enables the workflow by default.");
25
77
  export const PublishWorkflowVersionResponseSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.69.1",
3
+ "version": "0.69.3",
4
4
  "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",