@zapier/zapier-sdk 0.59.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.
- package/CHANGELOG.md +6 -0
- package/README.md +92 -0
- package/dist/experimental.cjs +143 -2
- package/dist/experimental.d.mts +56 -2
- package/dist/experimental.d.ts +54 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -0
- package/dist/experimental.mjs +143 -3
- package/dist/{index-eliz1Uq3.d.mts → index-iKbnOz6r.d.mts} +15 -1
- package/dist/{index-eliz1Uq3.d.ts → index-iKbnOz6r.d.ts} +15 -1
- package/dist/index.cjs +21 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +21 -2
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +54 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.js +21 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +35 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +45 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +50 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.js +29 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +40 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +54 -0
- package/dist/plugins/codeSubstrate/shared.d.ts +16 -0
- package/dist/plugins/codeSubstrate/shared.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/shared.js +15 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +4 -0
- package/dist/resolvers/index.d.ts +1 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -0
- package/dist/resolvers/workflowId.d.ts +4 -0
- package/dist/resolvers/workflowId.d.ts.map +1 -0
- package/dist/resolvers/workflowId.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.59.0
|
|
4
10
|
|
|
5
11
|
### 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`
|
package/dist/experimental.cjs
CHANGED
|
@@ -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.
|
|
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:";
|
|
@@ -4270,6 +4274,21 @@ var triggerInboxResolver = {
|
|
|
4270
4274
|
})
|
|
4271
4275
|
};
|
|
4272
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
|
+
|
|
4273
4292
|
// src/resolvers/triggerMessages.ts
|
|
4274
4293
|
var triggerMessagesResolver = {
|
|
4275
4294
|
type: "dynamic",
|
|
@@ -10507,6 +10526,127 @@ var getTriggerInputFieldsSchemaPlugin = definePlugin(
|
|
|
10507
10526
|
})
|
|
10508
10527
|
);
|
|
10509
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
|
+
|
|
10510
10650
|
// src/utils/batch-utils.ts
|
|
10511
10651
|
var DEFAULT_CONCURRENCY = 10;
|
|
10512
10652
|
var BATCH_START_DELAY_MS = 25;
|
|
@@ -10665,7 +10805,7 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
10665
10805
|
|
|
10666
10806
|
// src/experimental.ts
|
|
10667
10807
|
function createZapierSdk2(options = {}) {
|
|
10668
|
-
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);
|
|
10669
10809
|
}
|
|
10670
10810
|
|
|
10671
10811
|
exports.ActionKeyPropertySchema = ActionKeyPropertySchema;
|
|
@@ -10857,3 +10997,4 @@ exports.toTitleCase = toTitleCase;
|
|
|
10857
10997
|
exports.triggerInboxResolver = triggerInboxResolver;
|
|
10858
10998
|
exports.triggerMessagesResolver = triggerMessagesResolver;
|
|
10859
10999
|
exports.updateTableRecordsPlugin = updateTableRecordsPlugin;
|
|
11000
|
+
exports.workflowIdResolver = workflowIdResolver;
|
package/dist/experimental.d.mts
CHANGED
|
@@ -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-
|
|
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,
|
|
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: {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"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"}
|
package/dist/experimental.js
CHANGED
|
@@ -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
|