@zapier/zapier-sdk 0.58.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +92 -0
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/client.js +12 -0
  5. package/dist/experimental.cjs +155 -2
  6. package/dist/experimental.d.mts +56 -2
  7. package/dist/experimental.d.ts +54 -0
  8. package/dist/experimental.d.ts.map +1 -1
  9. package/dist/experimental.js +5 -0
  10. package/dist/experimental.mjs +155 -3
  11. package/dist/{index-eliz1Uq3.d.mts → index-iKbnOz6r.d.mts} +15 -1
  12. package/dist/{index-eliz1Uq3.d.ts → index-iKbnOz6r.d.ts} +15 -1
  13. package/dist/index.cjs +33 -1
  14. package/dist/index.d.mts +1 -1
  15. package/dist/index.mjs +33 -2
  16. package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +54 -0
  17. package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -0
  18. package/dist/plugins/codeSubstrate/getWorkflow/index.js +21 -0
  19. package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +35 -0
  20. package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -0
  21. package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +45 -0
  22. package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +50 -0
  23. package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -0
  24. package/dist/plugins/codeSubstrate/listWorkflows/index.js +29 -0
  25. package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +40 -0
  26. package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -0
  27. package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +54 -0
  28. package/dist/plugins/codeSubstrate/shared.d.ts +16 -0
  29. package/dist/plugins/codeSubstrate/shared.d.ts.map +1 -0
  30. package/dist/plugins/codeSubstrate/shared.js +15 -0
  31. package/dist/registry.d.ts.map +1 -1
  32. package/dist/registry.js +4 -0
  33. package/dist/resolvers/index.d.ts +1 -0
  34. package/dist/resolvers/index.d.ts.map +1 -1
  35. package/dist/resolvers/index.js +1 -0
  36. package/dist/resolvers/workflowId.d.ts +4 -0
  37. package/dist/resolvers/workflowId.d.ts.map +1 -0
  38. package/dist/resolvers/workflowId.js +14 -0
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.60.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f12598a: Add the workflow-read experimental plugins: `listWorkflows` and `getWorkflow`. Both are registered only in `@zapier/zapier-sdk/experimental`; the stable subpath does not expose them. `listWorkflows` uses `createPaginatedPluginMethod` (page-iterator + `pageSize`/`cursor`/`maxItems` options) so callers can iterate via `for await (const page of sdk.listWorkflows())` or `toIterable(sdk.listWorkflows())`. The backend does not paginate today; the SDK treats a missing `next_cursor` as the last page, so server-side pagination drops in without an SDK API change. Introduces `packages/zapier-sdk/src/plugins/codeSubstrate/shared.ts` with `codeSubstrateDefaults` (`{ categories: ["code-workflow"], experimental: true }`) that subsequent code-workflow plugins spread into their `createPluginMethod` configs. Also adds `workflowIdResolver` in `src/resolvers/workflowId.ts` (mirrors `tableIdResolver` / `triggerInboxResolver`) so commands that take a workflow id present an interactive picker via `sdk.listWorkflows()` in the CLI. Workflow-write commands (`createWorkflow`, `updateWorkflow`, `enable/disable/deleteWorkflow`) land in a follow-up MR.
8
+
9
+ ## 0.59.0
10
+
11
+ ### Minor Changes
12
+
13
+ - e9da7e9: Register `/sdkdurableapi` and `/durableworkflowzaps` in the API client's path configuration so plugins can route to those services via the sdkapi proxy. Requests to `/sdkdurableapi/...` and `/durableworkflowzaps/...` now resolve under `https://sdkapi.zapier.com/api/v0/sdk/<service>/...` with the standard `Authorization` header, matching the existing `/zapier`, `/tables`, and `/trigger-inbox` entries. The existing `getAuthorizationHeader` auto-detects JWTs and formats them as `JWT <token>`. Enables in-tree plugins (e.g. forthcoming experimental code-substrate plugins) to call durable services through `sdk.context.api` without rolling their own HTTP client.
14
+
3
15
  ## 0.58.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -26,6 +26,9 @@
26
26
  - [`createClientCredentials`](#createclientcredentials)
27
27
  - [`deleteClientCredentials`](#deleteclientcredentials)
28
28
  - [`listClientCredentials`](#listclientcredentials)
29
+ - [Code Workflows (Experimental)](#code-workflows-experimental)
30
+ - [`getWorkflow`](#getworkflow--experimental)
31
+ - [`listWorkflows`](#listworkflows--experimental)
29
32
  - [Connections](#connections)
30
33
  - [`findFirstConnection`](#findfirstconnection)
31
34
  - [`findUniqueConnection`](#finduniqueconnection)
@@ -1080,6 +1083,95 @@ for await (const clientCredentials of zapier.listClientCredentials().items()) {
1080
1083
  }
1081
1084
  ```
1082
1085
 
1086
+ ### Code Workflows (Experimental)
1087
+
1088
+ > ℹ️ **Experimental.** Import from `"@zapier/zapier-sdk/experimental"` to use these methods. Methods and behavior may change.
1089
+
1090
+ #### `getWorkflow` 🧪 _experimental_
1091
+
1092
+ Get a durable workflow with its current version details and trigger claim status
1093
+
1094
+ **Parameters:**
1095
+
1096
+ | Name | Type | Required | Default | Possible Values | Description |
1097
+ | -------------- | -------- | -------- | ------- | --------------- | ------------------- |
1098
+ | `options` | `object` | ✅ | — | — | |
1099
+ | ​ ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
1100
+
1101
+ **Returns:** `Promise<WorkflowItem>`
1102
+
1103
+ | Name | Type | Required | Possible Values | Description |
1104
+ | ------------------------------ | --------- | -------- | --------------- | --------------------------------------------------------------------------------------------------------------------------- |
1105
+ | `data` | `object` | ✅ | — | |
1106
+ | ​ ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
1107
+ | ​ ↳ `name` | `string` | ✅ | — | Workflow name |
1108
+ | ​ ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset) |
1109
+ | ​ ↳ `trigger_url` | `string` | ✅ | — | Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path — treat as sensitive. |
1110
+ | ​ ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers |
1111
+ | ​ ↳ `current_version` | `object` | ❌ | — | The currently published version, if any. Absent for workflows with no version published yet. |
1112
+ | ​   ↳ `id` | `string` | ✅ | — | Workflow version ID (UUID) |
1113
+ | ​   ↳ `workflow_id` | `string` | ✅ | — | Parent workflow ID |
1114
+ | ​   ↳ `source_files` | `object` | ✅ | — | Source files keyed by filename → contents |
1115
+ | ​   ↳ `zapier_durable_version` | `string` | ✅ | — | Pinned semver of @zapier/zapier-durable used by this version's runs |
1116
+ | ​   ↳ `dependencies` | `object` | ✅ | — | Additional npm dependencies pinned for this version (or null) |
1117
+ | ​   ↳ `created_by_user_id` | `string` | ✅ | — | ID of the user who published this version |
1118
+ | ​   ↳ `created_at` | `string` | ✅ | — | When the version was published (ISO-8601) |
1119
+ | ​ ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
1120
+ | ​ ↳ `updated_at` | `string` | ✅ | — | When the workflow was last modified (ISO-8601) |
1121
+
1122
+ **Example:**
1123
+
1124
+ ```typescript
1125
+ const { data: workflow } = await zapier.getWorkflow({
1126
+ workflow: "example-workflow",
1127
+ });
1128
+ ```
1129
+
1130
+ #### `listWorkflows` 🧪 _experimental_
1131
+
1132
+ List all active durable workflows for the authenticated account
1133
+
1134
+ **Parameters:**
1135
+
1136
+ | Name | Type | Required | Default | Possible Values | Description |
1137
+ | -------------- | -------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------- |
1138
+ | `options` | `object` | ✅ | — | — | |
1139
+ | ​ ↳ `pageSize` | `number` | ❌ | — | — | Number of workflows per page (server-side pagination forthcoming; ignored until then) |
1140
+ | ​ ↳ `maxItems` | `number` | ❌ | — | — | Maximum total workflows to return across all pages |
1141
+ | ​ ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from for pagination (server-side pagination forthcoming; ignored until then) |
1142
+
1143
+ **Returns:** `Promise<PaginatedResult<WorkflowItem>>`
1144
+
1145
+ | Name | Type | Required | Possible Values | Description |
1146
+ | ------------------------ | ---------- | -------- | --------------- | --------------------------------------------------------------------------------------------------------------------------- |
1147
+ | `data[]` | `object[]` | ✅ | — | |
1148
+ | ​ ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
1149
+ | ​ ↳ `name` | `string` | ✅ | — | Workflow name |
1150
+ | ​ ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset) |
1151
+ | ​ ↳ `trigger_url` | `string` | ✅ | — | Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path — treat as sensitive. |
1152
+ | ​ ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers |
1153
+ | ​ ↳ `current_version_id` | `string` | ✅ | — | ID of the workflow version that runs handle. Null until a version is published. |
1154
+ | ​ ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
1155
+ | ​ ↳ `updated_at` | `string` | ✅ | — | When the workflow was last modified (ISO-8601) |
1156
+ | `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
1157
+
1158
+ **Example:**
1159
+
1160
+ ```typescript
1161
+ // Get first page and a cursor for the second page
1162
+ const { data: workflows, nextCursor } = await zapier.listWorkflows();
1163
+
1164
+ // Or iterate over all pages
1165
+ for await (const page of zapier.listWorkflows()) {
1166
+ // Do something with each page
1167
+ }
1168
+
1169
+ // Or iterate over individual items across all pages
1170
+ for await (const workflow of zapier.listWorkflows().items()) {
1171
+ // Do something with each workflow
1172
+ }
1173
+ ```
1174
+
1083
1175
  ### Connections
1084
1176
 
1085
1177
  #### `findFirstConnection`
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAGjB,MAAM,SAAS,CAAC;AA+pCjB,eAAO,MAAM,eAAe,GAAI,SAAS,gBAAgB,KAAG,SAW3D,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAGjB,MAAM,SAAS,CAAC;AA2qCjB,eAAO,MAAM,eAAe,GAAI,SAAS,gBAAgB,KAAG,SAW3D,CAAC"}
@@ -101,6 +101,18 @@ const pathConfig = {
101
101
  authHeader: "Authorization",
102
102
  pathPrefix: "/api/v0/sdk/trigger-inbox",
103
103
  },
104
+ // e.g. /sdkdurableapi -> https://sdkapi.zapier.com/api/v0/sdk/sdkdurableapi/...
105
+ // sdkapi proxies to the sdkdurableapi backend.
106
+ "/sdkdurableapi": {
107
+ authHeader: "Authorization",
108
+ pathPrefix: "/api/v0/sdk/sdkdurableapi",
109
+ },
110
+ // e.g. /durableworkflowzaps -> https://sdkapi.zapier.com/api/v0/sdk/durableworkflowzaps/...
111
+ // sdkapi proxies to the durableworkflowzaps backend.
112
+ "/durableworkflowzaps": {
113
+ authHeader: "Authorization",
114
+ pathPrefix: "/api/v0/sdk/durableworkflowzaps",
115
+ },
104
116
  };
105
117
  class ZapierApiClient {
106
118
  constructor(options) {
@@ -30,6 +30,10 @@ var categoryDefinitions = {
30
30
  },
31
31
  table: { title: "Table" },
32
32
  trigger: { title: "Trigger" },
33
+ "code-workflow": {
34
+ title: "Code Workflow",
35
+ titlePlural: "Code Workflows"
36
+ },
33
37
  http: { title: "HTTP Request" },
34
38
  utility: { title: "Utility", titlePlural: "Utilities" },
35
39
  other: { title: "Other" }
@@ -2885,7 +2889,7 @@ async function invalidateCredentialsToken(options) {
2885
2889
  }
2886
2890
 
2887
2891
  // src/sdk-version.ts
2888
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.58.0" : void 0) || "unknown";
2892
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.60.0" : void 0) || "unknown";
2889
2893
 
2890
2894
  // src/utils/open-url.ts
2891
2895
  var nodePrefix = "node:";
@@ -3030,6 +3034,18 @@ var pathConfig = {
3030
3034
  "/trigger-inbox": {
3031
3035
  authHeader: "Authorization",
3032
3036
  pathPrefix: "/api/v0/sdk/trigger-inbox"
3037
+ },
3038
+ // e.g. /sdkdurableapi -> https://sdkapi.zapier.com/api/v0/sdk/sdkdurableapi/...
3039
+ // sdkapi proxies to the sdkdurableapi backend.
3040
+ "/sdkdurableapi": {
3041
+ authHeader: "Authorization",
3042
+ pathPrefix: "/api/v0/sdk/sdkdurableapi"
3043
+ },
3044
+ // e.g. /durableworkflowzaps -> https://sdkapi.zapier.com/api/v0/sdk/durableworkflowzaps/...
3045
+ // sdkapi proxies to the durableworkflowzaps backend.
3046
+ "/durableworkflowzaps": {
3047
+ authHeader: "Authorization",
3048
+ pathPrefix: "/api/v0/sdk/durableworkflowzaps"
3033
3049
  }
3034
3050
  };
3035
3051
  var ZapierApiClient = class {
@@ -4258,6 +4274,21 @@ var triggerInboxResolver = {
4258
4274
  })
4259
4275
  };
4260
4276
 
4277
+ // src/resolvers/workflowId.ts
4278
+ var workflowIdResolver = {
4279
+ type: "dynamic",
4280
+ fetch: async (sdk) => toIterable(sdk.listWorkflows()),
4281
+ prompt: (workflows) => ({
4282
+ type: "list",
4283
+ name: "workflow",
4284
+ message: "Select a workflow:",
4285
+ choices: workflows.map((workflow) => ({
4286
+ name: workflow.enabled ? workflow.name : `${workflow.name} (disabled)`,
4287
+ value: workflow.id
4288
+ }))
4289
+ })
4290
+ };
4291
+
4261
4292
  // src/resolvers/triggerMessages.ts
4262
4293
  var triggerMessagesResolver = {
4263
4294
  type: "dynamic",
@@ -10495,6 +10526,127 @@ var getTriggerInputFieldsSchemaPlugin = definePlugin(
10495
10526
  })
10496
10527
  );
10497
10528
 
10529
+ // src/plugins/codeSubstrate/shared.ts
10530
+ var codeSubstrateDefaults = {
10531
+ categories: ["code-workflow"],
10532
+ experimental: true
10533
+ };
10534
+ var WorkflowItemSchema = zod.z.object({
10535
+ id: zod.z.string().describe("Workflow ID (UUID)"),
10536
+ name: zod.z.string().describe("Workflow name"),
10537
+ description: zod.z.string().nullable().describe("Optional workflow description (null if unset)"),
10538
+ trigger_url: zod.z.string().describe(
10539
+ "Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
10540
+ ),
10541
+ enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
10542
+ current_version_id: zod.z.string().nullable().describe(
10543
+ "ID of the workflow version that runs handle. Null until a version is published."
10544
+ ),
10545
+ created_at: zod.z.string().describe("When the workflow was created (ISO-8601)"),
10546
+ updated_at: zod.z.string().describe("When the workflow was last modified (ISO-8601)")
10547
+ });
10548
+ var ListWorkflowsOptionsSchema = zod.z.object({
10549
+ pageSize: zod.z.number().int().min(1).optional().describe(
10550
+ "Number of workflows per page (server-side pagination forthcoming; ignored until then)"
10551
+ ),
10552
+ maxItems: zod.z.number().int().min(1).optional().describe("Maximum total workflows to return across all pages"),
10553
+ cursor: zod.z.string().optional().describe(
10554
+ "Cursor to start from for pagination (server-side pagination forthcoming; ignored until then)"
10555
+ )
10556
+ }).describe("List all active durable workflows for the authenticated account");
10557
+ var ListWorkflowsApiResponseSchema = zod.z.object({
10558
+ workflows: zod.z.array(WorkflowItemSchema),
10559
+ next_cursor: zod.z.string().nullable().optional()
10560
+ });
10561
+
10562
+ // src/plugins/codeSubstrate/listWorkflows/index.ts
10563
+ var listWorkflowsPlugin = definePlugin(
10564
+ (sdk) => createPaginatedPluginMethod(sdk, {
10565
+ ...codeSubstrateDefaults,
10566
+ name: "listWorkflows",
10567
+ type: "list",
10568
+ itemType: "Workflow",
10569
+ inputSchema: ListWorkflowsOptionsSchema,
10570
+ outputSchema: WorkflowItemSchema,
10571
+ defaultPageSize: DEFAULT_PAGE_SIZE,
10572
+ handler: async ({ sdk: sdk2, options }) => {
10573
+ const searchParams = {};
10574
+ if (options.pageSize !== void 0) {
10575
+ searchParams.limit = options.pageSize.toString();
10576
+ }
10577
+ if (options.cursor) {
10578
+ searchParams.cursor = options.cursor;
10579
+ }
10580
+ const raw = await sdk2.context.api.get(
10581
+ "/durableworkflowzaps/api/v0/workflows",
10582
+ { searchParams, authRequired: true }
10583
+ );
10584
+ const response = ListWorkflowsApiResponseSchema.parse(raw);
10585
+ return {
10586
+ data: response.workflows,
10587
+ next: response.next_cursor ?? null
10588
+ };
10589
+ },
10590
+ extractCursor: (response) => response.next ?? void 0
10591
+ })
10592
+ );
10593
+ var WorkflowVersionSchema = zod.z.object({
10594
+ id: zod.z.string().describe("Workflow version ID (UUID)"),
10595
+ workflow_id: zod.z.string().describe("Parent workflow ID"),
10596
+ source_files: zod.z.record(zod.z.string(), zod.z.string()).describe("Source files keyed by filename \u2192 contents"),
10597
+ zapier_durable_version: zod.z.string().describe(
10598
+ "Pinned semver of @zapier/zapier-durable used by this version's runs"
10599
+ ),
10600
+ dependencies: zod.z.record(zod.z.string(), zod.z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
10601
+ // Backend column is NOT NULL (see durableworkflowzaps prisma schema:
10602
+ // workflow_versions.created_by_user_id), so this is always emitted.
10603
+ created_by_user_id: zod.z.string().describe("ID of the user who published this version"),
10604
+ created_at: zod.z.string().describe("When the version was published (ISO-8601)")
10605
+ });
10606
+ var GetWorkflowOptionsSchema = zod.z.object({
10607
+ workflow: zod.z.string().uuid().describe("Durable workflow ID")
10608
+ }).describe(
10609
+ "Get a durable workflow with its current version details and trigger claim status"
10610
+ );
10611
+ var GetWorkflowResponseSchema = zod.z.object({
10612
+ id: zod.z.string().describe("Workflow ID (UUID)"),
10613
+ name: zod.z.string().describe("Workflow name"),
10614
+ description: zod.z.string().nullable().describe("Optional workflow description (null if unset)"),
10615
+ trigger_url: zod.z.string().describe(
10616
+ "Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
10617
+ ),
10618
+ enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
10619
+ current_version: WorkflowVersionSchema.optional().describe(
10620
+ "The currently published version, if any. Absent for workflows with no version published yet."
10621
+ ),
10622
+ created_at: zod.z.string().describe("When the workflow was created (ISO-8601)"),
10623
+ updated_at: zod.z.string().describe("When the workflow was last modified (ISO-8601)")
10624
+ });
10625
+
10626
+ // src/plugins/codeSubstrate/getWorkflow/index.ts
10627
+ var getWorkflowPlugin = definePlugin(
10628
+ (sdk) => createPluginMethod(sdk, {
10629
+ ...codeSubstrateDefaults,
10630
+ name: "getWorkflow",
10631
+ type: "item",
10632
+ itemType: "Workflow",
10633
+ inputSchema: GetWorkflowOptionsSchema,
10634
+ outputSchema: GetWorkflowResponseSchema,
10635
+ resolvers: { workflow: workflowIdResolver },
10636
+ handler: async ({ sdk: sdk2, options }) => {
10637
+ const raw = await sdk2.context.api.get(
10638
+ `/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}`,
10639
+ {
10640
+ authRequired: true,
10641
+ resource: { type: "workflow", id: options.workflow }
10642
+ }
10643
+ );
10644
+ const data = GetWorkflowResponseSchema.parse(raw);
10645
+ return { data };
10646
+ }
10647
+ })
10648
+ );
10649
+
10498
10650
  // src/utils/batch-utils.ts
10499
10651
  var DEFAULT_CONCURRENCY = 10;
10500
10652
  var BATCH_START_DELAY_MS = 25;
@@ -10653,7 +10805,7 @@ var registryPlugin = definePlugin((_sdk) => {
10653
10805
 
10654
10806
  // src/experimental.ts
10655
10807
  function createZapierSdk2(options = {}) {
10656
- return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
10808
+ return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(listWorkflowsPlugin).addPlugin(getWorkflowPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
10657
10809
  }
10658
10810
 
10659
10811
  exports.ActionKeyPropertySchema = ActionKeyPropertySchema;
@@ -10845,3 +10997,4 @@ exports.toTitleCase = toTitleCase;
10845
10997
  exports.triggerInboxResolver = triggerInboxResolver;
10846
10998
  exports.triggerMessagesResolver = triggerMessagesResolver;
10847
10999
  exports.updateTableRecordsPlugin = updateTableRecordsPlugin;
11000
+ exports.workflowIdResolver = workflowIdResolver;
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-eliz1Uq3.mjs';
2
- export { u as Action, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, bB as ApiError, di as ApiEvent, cH as ApiPluginOptions, cJ as ApiPluginProvides, v as App, b_ as AppFactoryInput, az as AppItem, b9 as AppKeyProperty, aJ as AppKeyPropertySchema, ba as AppProperty, aK as AppPropertySchema, es as ApplicationLifecycleEventData, bS as ApprovalStatus, bY as AppsPluginProvides, bt as AppsProperty, b1 as AppsPropertySchema, a0 as ArrayResolver, dh as AuthEvent, bh as AuthenticationIdProperty, aQ as AuthenticationIdPropertySchema, eA as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MS, x as Choice, dp as ClientCredentialsObject, dA as ClientCredentialsObjectSchema, K as Connection, dI as ConnectionEntry, dH as ConnectionEntrySchema, bf as ConnectionIdProperty, aP as ConnectionIdPropertySchema, aA as ConnectionItem, bg as ConnectionProperty, aR as ConnectionPropertySchema, dK as ConnectionsMap, dJ as ConnectionsMapSchema, dM as ConnectionsPluginProvides, bv as ConnectionsProperty, b3 as ConnectionsPropertySchema, O as ConnectionsResponse, cg as CreateClientCredentialsPluginProvides, ea as CreateTableFieldsPluginProvides, e4 as CreateTablePluginProvides, ei as CreateTableRecordsPluginProvides, dl as Credentials, dF as CredentialsFunction, dE as CredentialsFunctionSchema, dn as CredentialsObject, dC as CredentialsObjectSchema, dG as CredentialsSchema, dR as DEFAULT_ACTION_TIMEOUT_MS, dZ as DEFAULT_APPROVAL_TIMEOUT_MS, cD as DEFAULT_CONFIG_PATH, d_ as DEFAULT_MAX_APPROVAL_RETRIES, dQ as DEFAULT_PAGE_SIZE, bm as DebugProperty, aW as DebugPropertySchema, ci as DeleteClientCredentialsPluginProvides, ec as DeleteTableFieldsPluginProvides, e6 as DeleteTablePluginProvides, ek as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, et as EnhancedErrorEventData, bC as ErrorOptions, dk as EventCallback, er as EventContext, eo as EventEmissionConfig, eq as EventEmissionProvides, c0 as FetchPluginProvides, w as Field, bs as FieldsProperty, b0 as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cq as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cs as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, aG as FunctionOptions, aj as FunctionRegistryEntry, ca as GetActionInputFieldsSchemaPluginProvides, cm as GetActionPluginProvides, ck as GetAppPluginProvides, G as GetAuthenticationPluginProvides, co as GetConnectionPluginProvides, cG as GetProfilePluginProvides, e2 as GetTablePluginProvides, ee as GetTableRecordPluginProvides, aD as InfoFieldItem, aC as InputFieldItem, be as InputFieldProperty, aO as InputFieldPropertySchema, bi as InputsProperty, aS as InputsPropertySchema, bA as LeaseLimitProperty, b8 as LeaseLimitPropertySchema, by as LeaseProperty, b6 as LeasePropertySchema, bz as LeaseSecondsProperty, b7 as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bj as LimitProperty, aT as LimitPropertySchema, c8 as ListActionInputFieldChoicesPluginProvides, c6 as ListActionInputFieldsPluginProvides, c4 as ListActionsPluginProvides, c2 as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, ce as ListClientCredentialsPluginProvides, cc as ListConnectionsPluginProvides, e8 as ListTableFieldsPluginProvides, eg as ListTableRecordsPluginProvides, e0 as ListTablesPluginProvides, dj as LoadingEvent, dU as MAX_CONCURRENCY_LIMIT, dP as MAX_PAGE_LIMIT, cE as ManifestEntry, cz as ManifestPluginOptions, cC as ManifestPluginProvides, eB as MethodCalledEvent, eu as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bk as OffsetProperty, aU as OffsetPropertySchema, _ as OutputFormatter, bl as OutputProperty, aV as OutputPropertySchema, aI as PaginatedSdkFunction, bn as ParamsProperty, aX as ParamsPropertySchema, dq as PkceCredentialsObject, dB as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, bQ as RateLimitInfo, bq as RecordProperty, a_ as RecordPropertySchema, br as RecordsProperty, a$ as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cy as RequestPluginProvides, d4 as ResolveAuthTokenOptions, dv as ResolveCredentialsOptions, dm as ResolvedCredentials, dD as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aE as RootFieldItem, cw as RunActionPluginProvides, dg as SdkEvent, aH as SdkPage, a2 as StaticResolver, bp as TableProperty, aZ as TablePropertySchema, bu as TablesProperty, b2 as TablesPropertySchema, bx as TriggerInboxNameProperty, b5 as TriggerInboxNamePropertySchema, bw as TriggerInboxProperty, b4 as TriggerInboxPropertySchema, T as TriggerMessageStatus, em as UpdateTableRecordsPluginProvides, Q as UserProfile, aF as UserProfileItem, dN as ZAPIER_BASE_URL, dW as ZAPIER_MAX_CONCURRENT_REQUESTS, dS as ZAPIER_MAX_NETWORK_RETRIES, dT as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, bO as ZapierActionError, bE as ZapierApiError, bF as ZapierAppNotFoundError, bT as ZapierApprovalError, bI as ZapierAuthenticationError, bM as ZapierBundleError, dc as ZapierCache, dd as ZapierCacheEntry, de as ZapierCacheSetOptions, bL as ZapierConfigurationError, bP as ZapierConflictError, bD as ZapierError, bJ as ZapierNotFoundError, bR as ZapierRateLimitError, bU as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bK as ZapierResourceNotFoundError, bW as ZapierSignal, bN as ZapierTimeoutError, bH as ZapierUnknownError, bG as ZapierValidationError, cM as actionKeyResolver, cL as actionTypeResolver, cI as apiPlugin, cK as appKeyResolver, bX as appsPlugin, cO as authenticationIdGenericResolver, cN as authenticationIdResolver, a9 as batch, ev as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, ex as buildErrorEvent, ew as buildErrorEventWithContext, ez as buildMethodCalledEvent, en as cleanupEventListeners, d5 as clearTokenCache, cS as clientCredentialsNameResolver, cT as clientIdResolver, ar as composePlugins, cO as connectionIdGenericResolver, cN as connectionIdResolver, dL as connectionsPlugin, ey as createBaseEvent, cf as createClientCredentialsPlugin, V as createFunction, df as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, e9 as createTableFieldsPlugin, e3 as createTablePlugin, eh as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, ch as deleteClientCredentialsPlugin, eb as deleteTableFieldsPlugin, e5 as deleteTablePlugin, ej as deleteTableRecordsPlugin, ep as eventEmissionPlugin, b$ as fetchPlugin, cp as findFirstConnectionPlugin, cr as findUniqueConnectionPlugin, bV as formatErrorMessage, eC as generateEventId, c9 as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, cj as getAppPlugin, dy as getBaseUrlFromCredentials, eI as getCiPlatform, dz as getClientIdFromCredentials, cn as getConnectionPlugin, eK as getCpuTime, eD as getCurrentTimestamp, eJ as getMemoryUsage, ay as getOrCreateApiClient, eF as getOsInfo, eG as getPlatformVersions, cA as getPreferredManifestEntryKey, cF as getProfilePlugin, eE as getReleaseId, e1 as getTablePlugin, ed as getTableRecordPlugin, d9 as getTokenFromCliLogin, dX as getZapierApprovalMode, dY as getZapierDefaultApprovalMode, dO as getZapierSdkService, d7 as injectCliLogin, cR as inputFieldKeyResolver, cQ as inputsAllOptionalResolver, cP as inputsResolver, d6 as invalidateCachedToken, db as invalidateCredentialsToken, eH as isCi, d8 as isCliLoginAvailable, dr as isClientCredentials, du as isCredentialsFunction, dt as isCredentialsObject, ds as isPkceCredentials, S as isPositional, c7 as listActionInputFieldChoicesPlugin, c5 as listActionInputFieldsPlugin, c3 as listActionsPlugin, c1 as listAppsPlugin, cd as listClientCredentialsPlugin, cb as listConnectionsPlugin, e7 as listTableFieldsPlugin, ef as listTableRecordsPlugin, d$ as listTablesPlugin, ac as logDeprecation, cB as manifestPlugin, dV as parseConcurrencyEnvVar, au as registryPlugin, cx as requestPlugin, ad as resetDeprecationWarnings, da as resolveAuthToken, dx as resolveCredentials, dw as resolveCredentialsFromEnv, cv as runActionPlugin, a6 as runWithTelemetryContext, cZ as tableFieldIdsResolver, c$ as tableFieldsResolver, d2 as tableFiltersResolver, cU as tableIdResolver, c_ as tableNameResolver, cX as tableRecordIdResolver, cY as tableRecordIdsResolver, d0 as tableRecordsResolver, d3 as tableSortResolver, d1 as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, cV as triggerInboxResolver, cW as triggerMessagesResolver, el as updateTableRecordsPlugin } from './index-eliz1Uq3.mjs';
1
+ import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-iKbnOz6r.mjs';
2
+ export { u as Action, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, bB as ApiError, dj as ApiEvent, cH as ApiPluginOptions, cJ as ApiPluginProvides, v as App, b_ as AppFactoryInput, az as AppItem, b9 as AppKeyProperty, aJ as AppKeyPropertySchema, ba as AppProperty, aK as AppPropertySchema, et as ApplicationLifecycleEventData, bS as ApprovalStatus, bY as AppsPluginProvides, bt as AppsProperty, b1 as AppsPropertySchema, a0 as ArrayResolver, di as AuthEvent, bh as AuthenticationIdProperty, aQ as AuthenticationIdPropertySchema, eB as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MS, x as Choice, dq as ClientCredentialsObject, dB as ClientCredentialsObjectSchema, K as Connection, dJ as ConnectionEntry, dI as ConnectionEntrySchema, bf as ConnectionIdProperty, aP as ConnectionIdPropertySchema, aA as ConnectionItem, bg as ConnectionProperty, aR as ConnectionPropertySchema, dL as ConnectionsMap, dK as ConnectionsMapSchema, dN as ConnectionsPluginProvides, bv as ConnectionsProperty, b3 as ConnectionsPropertySchema, O as ConnectionsResponse, cg as CreateClientCredentialsPluginProvides, eb as CreateTableFieldsPluginProvides, e5 as CreateTablePluginProvides, ej as CreateTableRecordsPluginProvides, dm as Credentials, dG as CredentialsFunction, dF as CredentialsFunctionSchema, dp as CredentialsObject, dD as CredentialsObjectSchema, dH as CredentialsSchema, dS as DEFAULT_ACTION_TIMEOUT_MS, d_ as DEFAULT_APPROVAL_TIMEOUT_MS, cD as DEFAULT_CONFIG_PATH, d$ as DEFAULT_MAX_APPROVAL_RETRIES, dR as DEFAULT_PAGE_SIZE, bm as DebugProperty, aW as DebugPropertySchema, ci as DeleteClientCredentialsPluginProvides, ed as DeleteTableFieldsPluginProvides, e7 as DeleteTablePluginProvides, el as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, eu as EnhancedErrorEventData, bC as ErrorOptions, dl as EventCallback, es as EventContext, ep as EventEmissionConfig, er as EventEmissionProvides, c0 as FetchPluginProvides, w as Field, bs as FieldsProperty, b0 as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cq as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cs as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, aG as FunctionOptions, aj as FunctionRegistryEntry, ca as GetActionInputFieldsSchemaPluginProvides, cm as GetActionPluginProvides, ck as GetAppPluginProvides, G as GetAuthenticationPluginProvides, co as GetConnectionPluginProvides, cG as GetProfilePluginProvides, e3 as GetTablePluginProvides, ef as GetTableRecordPluginProvides, aD as InfoFieldItem, aC as InputFieldItem, be as InputFieldProperty, aO as InputFieldPropertySchema, bi as InputsProperty, aS as InputsPropertySchema, bA as LeaseLimitProperty, b8 as LeaseLimitPropertySchema, by as LeaseProperty, b6 as LeasePropertySchema, bz as LeaseSecondsProperty, b7 as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bj as LimitProperty, aT as LimitPropertySchema, c8 as ListActionInputFieldChoicesPluginProvides, c6 as ListActionInputFieldsPluginProvides, c4 as ListActionsPluginProvides, c2 as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, ce as ListClientCredentialsPluginProvides, cc as ListConnectionsPluginProvides, e9 as ListTableFieldsPluginProvides, eh as ListTableRecordsPluginProvides, e1 as ListTablesPluginProvides, dk as LoadingEvent, dV as MAX_CONCURRENCY_LIMIT, dQ as MAX_PAGE_LIMIT, cE as ManifestEntry, cz as ManifestPluginOptions, cC as ManifestPluginProvides, eC as MethodCalledEvent, ev as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bk as OffsetProperty, aU as OffsetPropertySchema, _ as OutputFormatter, bl as OutputProperty, aV as OutputPropertySchema, aI as PaginatedSdkFunction, bn as ParamsProperty, aX as ParamsPropertySchema, dr as PkceCredentialsObject, dC as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, bQ as RateLimitInfo, bq as RecordProperty, a_ as RecordPropertySchema, br as RecordsProperty, a$ as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cy as RequestPluginProvides, d5 as ResolveAuthTokenOptions, dw as ResolveCredentialsOptions, dn as ResolvedCredentials, dE as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aE as RootFieldItem, cw as RunActionPluginProvides, dh as SdkEvent, aH as SdkPage, a2 as StaticResolver, bp as TableProperty, aZ as TablePropertySchema, bu as TablesProperty, b2 as TablesPropertySchema, bx as TriggerInboxNameProperty, b5 as TriggerInboxNamePropertySchema, bw as TriggerInboxProperty, b4 as TriggerInboxPropertySchema, T as TriggerMessageStatus, en as UpdateTableRecordsPluginProvides, Q as UserProfile, aF as UserProfileItem, dO as ZAPIER_BASE_URL, dX as ZAPIER_MAX_CONCURRENT_REQUESTS, dT as ZAPIER_MAX_NETWORK_RETRIES, dU as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, bO as ZapierActionError, bE as ZapierApiError, bF as ZapierAppNotFoundError, bT as ZapierApprovalError, bI as ZapierAuthenticationError, bM as ZapierBundleError, dd as ZapierCache, de as ZapierCacheEntry, df as ZapierCacheSetOptions, bL as ZapierConfigurationError, bP as ZapierConflictError, bD as ZapierError, bJ as ZapierNotFoundError, bR as ZapierRateLimitError, bU as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bK as ZapierResourceNotFoundError, bW as ZapierSignal, bN as ZapierTimeoutError, bH as ZapierUnknownError, bG as ZapierValidationError, cM as actionKeyResolver, cL as actionTypeResolver, cI as apiPlugin, cK as appKeyResolver, bX as appsPlugin, cO as authenticationIdGenericResolver, cN as authenticationIdResolver, a9 as batch, ew as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, ey as buildErrorEvent, ex as buildErrorEventWithContext, eA as buildMethodCalledEvent, eo as cleanupEventListeners, d6 as clearTokenCache, cS as clientCredentialsNameResolver, cT as clientIdResolver, ar as composePlugins, cO as connectionIdGenericResolver, cN as connectionIdResolver, dM as connectionsPlugin, ez as createBaseEvent, cf as createClientCredentialsPlugin, V as createFunction, dg as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, ea as createTableFieldsPlugin, e4 as createTablePlugin, ei as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, ch as deleteClientCredentialsPlugin, ec as deleteTableFieldsPlugin, e6 as deleteTablePlugin, ek as deleteTableRecordsPlugin, eq as eventEmissionPlugin, b$ as fetchPlugin, cp as findFirstConnectionPlugin, cr as findUniqueConnectionPlugin, bV as formatErrorMessage, eD as generateEventId, c9 as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, cj as getAppPlugin, dz as getBaseUrlFromCredentials, eJ as getCiPlatform, dA as getClientIdFromCredentials, cn as getConnectionPlugin, eL as getCpuTime, eE as getCurrentTimestamp, eK as getMemoryUsage, ay as getOrCreateApiClient, eG as getOsInfo, eH as getPlatformVersions, cA as getPreferredManifestEntryKey, cF as getProfilePlugin, eF as getReleaseId, e2 as getTablePlugin, ee as getTableRecordPlugin, da as getTokenFromCliLogin, dY as getZapierApprovalMode, dZ as getZapierDefaultApprovalMode, dP as getZapierSdkService, d8 as injectCliLogin, cR as inputFieldKeyResolver, cQ as inputsAllOptionalResolver, cP as inputsResolver, d7 as invalidateCachedToken, dc as invalidateCredentialsToken, eI as isCi, d9 as isCliLoginAvailable, ds as isClientCredentials, dv as isCredentialsFunction, du as isCredentialsObject, dt as isPkceCredentials, S as isPositional, c7 as listActionInputFieldChoicesPlugin, c5 as listActionInputFieldsPlugin, c3 as listActionsPlugin, c1 as listAppsPlugin, cd as listClientCredentialsPlugin, cb as listConnectionsPlugin, e8 as listTableFieldsPlugin, eg as listTableRecordsPlugin, e0 as listTablesPlugin, ac as logDeprecation, cB as manifestPlugin, dW as parseConcurrencyEnvVar, au as registryPlugin, cx as requestPlugin, ad as resetDeprecationWarnings, db as resolveAuthToken, dy as resolveCredentials, dx as resolveCredentialsFromEnv, cv as runActionPlugin, a6 as runWithTelemetryContext, c_ as tableFieldIdsResolver, d0 as tableFieldsResolver, d3 as tableFiltersResolver, cU as tableIdResolver, c$ as tableNameResolver, cY as tableRecordIdResolver, cZ as tableRecordIdsResolver, d1 as tableRecordsResolver, d4 as tableSortResolver, d2 as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, cV as triggerInboxResolver, cX as triggerMessagesResolver, em as updateTableRecordsPlugin, cW as workflowIdResolver } from './index-iKbnOz6r.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';
@@ -2277,6 +2277,60 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
2277
2277
  updateTableRecords: PluginMeta;
2278
2278
  };
2279
2279
  };
2280
+ } & {
2281
+ listWorkflows: (options?: ({
2282
+ pageSize?: number | undefined;
2283
+ maxItems?: number | undefined;
2284
+ cursor?: string | undefined;
2285
+ } & {
2286
+ cursor?: string;
2287
+ pageSize?: number;
2288
+ maxItems?: number;
2289
+ }) | undefined) => PaginatedSdkResult<{
2290
+ id: string;
2291
+ name: string;
2292
+ description: string | null;
2293
+ trigger_url: string;
2294
+ enabled: boolean;
2295
+ current_version_id: string | null;
2296
+ created_at: string;
2297
+ updated_at: string;
2298
+ }>;
2299
+ } & {
2300
+ context: {
2301
+ meta: {
2302
+ listWorkflows: PluginMeta;
2303
+ };
2304
+ };
2305
+ } & {
2306
+ getWorkflow: (options?: {
2307
+ workflow: string;
2308
+ } | undefined) => Promise<{
2309
+ data: {
2310
+ id: string;
2311
+ name: string;
2312
+ description: string | null;
2313
+ trigger_url: string;
2314
+ enabled: boolean;
2315
+ created_at: string;
2316
+ updated_at: string;
2317
+ current_version?: {
2318
+ id: string;
2319
+ workflow_id: string;
2320
+ source_files: Record<string, string>;
2321
+ zapier_durable_version: string;
2322
+ dependencies: Record<string, string> | null;
2323
+ created_by_user_id: string;
2324
+ created_at: string;
2325
+ } | undefined;
2326
+ };
2327
+ }>;
2328
+ } & {
2329
+ context: {
2330
+ meta: {
2331
+ getWorkflow: PluginMeta;
2332
+ };
2333
+ };
2280
2334
  } & {
2281
2335
  apps: ActionProxy & ZapierSdkApps;
2282
2336
  context: {
@@ -2292,6 +2292,60 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
2292
2292
  updateTableRecords: PluginMeta;
2293
2293
  };
2294
2294
  };
2295
+ } & {
2296
+ listWorkflows: (options?: ({
2297
+ pageSize?: number | undefined;
2298
+ maxItems?: number | undefined;
2299
+ cursor?: string | undefined;
2300
+ } & {
2301
+ cursor?: string;
2302
+ pageSize?: number;
2303
+ maxItems?: number;
2304
+ }) | undefined) => import("./index").PaginatedSdkResult<{
2305
+ id: string;
2306
+ name: string;
2307
+ description: string | null;
2308
+ trigger_url: string;
2309
+ enabled: boolean;
2310
+ current_version_id: string | null;
2311
+ created_at: string;
2312
+ updated_at: string;
2313
+ }>;
2314
+ } & {
2315
+ context: {
2316
+ meta: {
2317
+ listWorkflows: PluginMeta;
2318
+ };
2319
+ };
2320
+ } & {
2321
+ getWorkflow: (options?: {
2322
+ workflow: string;
2323
+ } | undefined) => Promise<{
2324
+ data: {
2325
+ id: string;
2326
+ name: string;
2327
+ description: string | null;
2328
+ trigger_url: string;
2329
+ enabled: boolean;
2330
+ created_at: string;
2331
+ updated_at: string;
2332
+ current_version?: {
2333
+ id: string;
2334
+ workflow_id: string;
2335
+ source_files: Record<string, string>;
2336
+ zapier_durable_version: string;
2337
+ dependencies: Record<string, string> | null;
2338
+ created_by_user_id: string;
2339
+ created_at: string;
2340
+ } | undefined;
2341
+ };
2342
+ }>;
2343
+ } & {
2344
+ context: {
2345
+ meta: {
2346
+ getWorkflow: PluginMeta;
2347
+ };
2348
+ };
2295
2349
  } & {
2296
2350
  apps: import("./plugins/apps/schemas").ActionProxy & import("./index").ZapierSdkApps;
2297
2351
  context: {
@@ -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,gBAAgB,CAAC;AAwEjD,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GATvpL;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAM3D,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -76,6 +76,8 @@ import { manifestPlugin } from "./plugins/manifest";
76
76
  import { capabilitiesPlugin } from "./plugins/capabilities";
77
77
  import { connectionsPlugin } from "./plugins/connections";
78
78
  import { eventEmissionPlugin } from "./plugins/eventEmission";
79
+ import { listWorkflowsPlugin } from "./plugins/codeSubstrate/listWorkflows";
80
+ import { getWorkflowPlugin } from "./plugins/codeSubstrate/getWorkflow";
79
81
  // Re-export everything from the stable index so callers importing from
80
82
  // the experimental subpath get the full API surface (types, helpers,
81
83
  // errors) without having to import from two paths.
@@ -150,6 +152,9 @@ export function createZapierSdk(options = {}) {
150
152
  .addPlugin(createTableRecordsPlugin)
151
153
  .addPlugin(deleteTableRecordsPlugin)
152
154
  .addPlugin(updateTableRecordsPlugin)
155
+ // Code substrate (experimental)
156
+ .addPlugin(listWorkflowsPlugin)
157
+ .addPlugin(getWorkflowPlugin)
153
158
  // Magic apps plugin
154
159
  .addPlugin(appsPlugin)
155
160
  // Profile