@zapier/zapier-sdk 0.83.2 → 0.84.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 +12 -0
- package/README.md +4 -4
- package/dist/experimental.cjs +54 -30
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.mjs +54 -30
- package/dist/{index-C82Rvqg9.d.mts → index--H-bce1q.d.mts} +6 -5
- package/dist/{index-C82Rvqg9.d.ts → index--H-bce1q.d.ts} +6 -5
- package/dist/index.cjs +22 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +22 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.84.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e1896a3: Code Substrate methods now use the `/code-substrate-runner` and `/code-substrate-workflows` API path prefixes across the SDK, the CLI, and the MCP server, and `sdk.context.api` and the CLI `curl` command accept paths built on them. The previous `/sdkdurableapi` and `/durableworkflowzaps` prefixes remain supported.
|
|
8
|
+
|
|
9
|
+
## 0.83.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 90ac367: The app `version` field is now optional in `.zapierrc` manifest entries. A versionless entry resolves to the latest implementation at runtime. The CLI's `build-manifest` and `add` commands no longer error when an app has no version, writing a versionless entry instead.
|
|
14
|
+
|
|
3
15
|
## 0.83.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1300,7 +1300,7 @@ Get the workflow run associated with a deployed workflow's trigger. Useful immed
|
|
|
1300
1300
|
| ------------------------- | --------- | -------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
1301
1301
|
| `data` | `object` | ✅ | — | |
|
|
1302
1302
|
| ↳ `id` | `string` | ✅ | — | Workflow run ID (UUID) |
|
|
1303
|
-
| ↳ `durable_run_id` | `string` | ✅ | — | Linked
|
|
1303
|
+
| ↳ `durable_run_id` | `string` | ✅ | — | Linked code-substrate-runner run ID. Null until the durable run is created. |
|
|
1304
1304
|
| ↳ `workflow_version_id` | `string` | ✅ | — | Workflow version the run is bound to |
|
|
1305
1305
|
| ↳ `status` | `string` | ✅ | `initialized`, `started`, `finished`, `failed`, `cancelled` | Workflow run lifecycle status. `finished` / `failed` / `cancelled` are terminal. |
|
|
1306
1306
|
| ↳ `input` | `unknown` | ✅ | — | Input passed to the run |
|
|
@@ -1390,7 +1390,7 @@ Get the current state of a workflow run (a triggered execution of a deployed wor
|
|
|
1390
1390
|
| `data` | `object` | ✅ | — | |
|
|
1391
1391
|
| ↳ `id` | `string` | ✅ | — | Workflow run ID (UUID) |
|
|
1392
1392
|
| ↳ `trigger_id` | `string` | ✅ | — | ID of the trigger that fired this run, if any |
|
|
1393
|
-
| ↳ `durable_run_id` | `string` | ✅ | — | Linked
|
|
1393
|
+
| ↳ `durable_run_id` | `string` | ✅ | — | Linked code-substrate-runner run ID. Null until the durable run is created. |
|
|
1394
1394
|
| ↳ `workflow_version_id` | `string` | ✅ | — | Workflow version the run is bound to |
|
|
1395
1395
|
| ↳ `status` | `string` | ✅ | `initialized`, `started`, `finished`, `failed`, `cancelled` | Workflow run lifecycle status. `finished` / `failed` / `cancelled` are terminal. |
|
|
1396
1396
|
| ↳ `input` | `unknown` | ✅ | — | Input passed to the run |
|
|
@@ -1511,7 +1511,7 @@ List workflow runs (triggered executions) for a specific deployed workflow, newe
|
|
|
1511
1511
|
| `data[]` | `object[]` | ✅ | — | |
|
|
1512
1512
|
| ↳ `id` | `string` | ✅ | — | Workflow run ID (UUID) |
|
|
1513
1513
|
| ↳ `trigger_id` | `string` | ✅ | — | ID of the trigger that fired this run, if any. Null for runs created without a trigger. |
|
|
1514
|
-
| ↳ `durable_run_id` | `string` | ✅ | — | Linked
|
|
1514
|
+
| ↳ `durable_run_id` | `string` | ✅ | — | Linked code-substrate-runner run ID. Null until the durable run is created. |
|
|
1515
1515
|
| ↳ `workflow_version_id` | `string` | ✅ | — | Workflow version the run is bound to. Null in rare edge cases. |
|
|
1516
1516
|
| ↳ `status` | `string` | ✅ | `initialized`, `started`, `finished`, `failed`, `cancelled` | Workflow run lifecycle status. `finished` / `failed` / `cancelled` are terminal. |
|
|
1517
1517
|
| ↳ `input` | `unknown` | ✅ | — | Input passed to the run |
|
|
@@ -1706,7 +1706,7 @@ const { data: workflowVersion } = await zapier.publishWorkflowVersion({
|
|
|
1706
1706
|
|
|
1707
1707
|
#### `runDurable` 🧪 _experimental_
|
|
1708
1708
|
|
|
1709
|
-
Run a workflow source file as a run-once durable run on
|
|
1709
|
+
Run a workflow source file as a run-once durable run on code-substrate-runner (no deployed workflow required). Returns the run ID immediately; poll via getDurableRun for terminal status.
|
|
1710
1710
|
|
|
1711
1711
|
**Parameters:**
|
|
1712
1712
|
|
package/dist/experimental.cjs
CHANGED
|
@@ -3166,12 +3166,16 @@ async function advance(ctx, state) {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
3168
|
async function start(ctx, input = {}, interactive = true) {
|
|
3169
|
-
|
|
3169
|
+
const state = {
|
|
3170
3170
|
method: ctx.method,
|
|
3171
3171
|
resolved: { ...input },
|
|
3172
3172
|
settled: [],
|
|
3173
3173
|
interactive
|
|
3174
|
-
}
|
|
3174
|
+
};
|
|
3175
|
+
for (const [name, value] of Object.entries(input)) {
|
|
3176
|
+
if (value !== void 0) settle(state, [name]);
|
|
3177
|
+
}
|
|
3178
|
+
return advance(ctx, state);
|
|
3175
3179
|
}
|
|
3176
3180
|
async function step(ctx, prior, action) {
|
|
3177
3181
|
const state = clone(prior);
|
|
@@ -5194,7 +5198,7 @@ function parseDeprecationDate(value) {
|
|
|
5194
5198
|
}
|
|
5195
5199
|
|
|
5196
5200
|
// src/sdk-version.ts
|
|
5197
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
5201
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.0" : void 0) || "unknown";
|
|
5198
5202
|
|
|
5199
5203
|
// src/utils/open-url.ts
|
|
5200
5204
|
var nodePrefix = "node:";
|
|
@@ -5412,6 +5416,18 @@ var pathConfig = {
|
|
|
5412
5416
|
"/durableworkflowzaps": {
|
|
5413
5417
|
authHeader: "Authorization",
|
|
5414
5418
|
pathPrefix: "/api/v0/sdk/durableworkflowzaps"
|
|
5419
|
+
},
|
|
5420
|
+
// e.g. /code-substrate-runner -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-runner/...
|
|
5421
|
+
// sdkapi proxies to the code-substrate-runner backend.
|
|
5422
|
+
"/code-substrate-runner": {
|
|
5423
|
+
authHeader: "Authorization",
|
|
5424
|
+
pathPrefix: "/api/v0/sdk/code-substrate-runner"
|
|
5425
|
+
},
|
|
5426
|
+
// e.g. /code-substrate-workflows -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-workflows/...
|
|
5427
|
+
// sdkapi proxies to the code-substrate-workflows backend.
|
|
5428
|
+
"/code-substrate-workflows": {
|
|
5429
|
+
authHeader: "Authorization",
|
|
5430
|
+
pathPrefix: "/api/v0/sdk/code-substrate-workflows"
|
|
5415
5431
|
}
|
|
5416
5432
|
};
|
|
5417
5433
|
var ZapierApiClient = class {
|
|
@@ -6791,7 +6807,9 @@ var ConnectionsMapSchema = zod.z.record(zod.z.string(), ConnectionEntrySchema);
|
|
|
6791
6807
|
var DEFAULT_CONFIG_PATH = ".zapierrc";
|
|
6792
6808
|
var ManifestEntrySchema = zod.z.object({
|
|
6793
6809
|
implementationName: zod.z.string().describe("Base implementation name without version (e.g., 'SlackCLIAPI')"),
|
|
6794
|
-
version: zod.z.string().describe(
|
|
6810
|
+
version: zod.z.string().optional().describe(
|
|
6811
|
+
"Version string (e.g., '1.21.1'); resolves to latest when absent"
|
|
6812
|
+
)
|
|
6795
6813
|
});
|
|
6796
6814
|
var ActionEntrySchema = zod.z.object({
|
|
6797
6815
|
appKey: zod.z.string().describe("App key (slug or implementation name)"),
|
|
@@ -14669,6 +14687,8 @@ var codeSubstrateDefaults = {
|
|
|
14669
14687
|
categories: ["code-workflow"],
|
|
14670
14688
|
experimental: true
|
|
14671
14689
|
};
|
|
14690
|
+
var CODE_SUBSTRATE_RUNNER_API = "/code-substrate-runner/api/v0";
|
|
14691
|
+
var CODE_SUBSTRATE_WORKFLOWS_API = "/code-substrate-workflows/api/v0";
|
|
14672
14692
|
var JsonPayloadSchema = zod.z.preprocess((val) => {
|
|
14673
14693
|
if (typeof val === "string") {
|
|
14674
14694
|
const trimmed = val.trim();
|
|
@@ -14861,7 +14881,7 @@ var listWorkflowsPlugin = defineMethod({
|
|
|
14861
14881
|
if (input.cursor) {
|
|
14862
14882
|
searchParams.cursor = input.cursor;
|
|
14863
14883
|
}
|
|
14864
|
-
const raw = await api.get(
|
|
14884
|
+
const raw = await api.get(`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`, {
|
|
14865
14885
|
searchParams,
|
|
14866
14886
|
authRequired: true
|
|
14867
14887
|
});
|
|
@@ -14880,7 +14900,7 @@ var WorkflowVersionSchema = zod.z.object({
|
|
|
14880
14900
|
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
14881
14901
|
),
|
|
14882
14902
|
dependencies: zod.z.record(zod.z.string(), zod.z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
14883
|
-
// Backend column is NOT NULL (see
|
|
14903
|
+
// Backend column is NOT NULL (see code-substrate-workflows prisma schema:
|
|
14884
14904
|
// workflow_versions.created_by_user_id), so this is always emitted.
|
|
14885
14905
|
created_by_user_id: zod.z.string().describe("ID of the user who published this version"),
|
|
14886
14906
|
created_at: zod.z.string().describe("When the version was published (ISO-8601)"),
|
|
@@ -14934,7 +14954,7 @@ var getWorkflowPlugin = defineMethod({
|
|
|
14934
14954
|
run: async ({ imports, input }) => {
|
|
14935
14955
|
const api = imports.api;
|
|
14936
14956
|
const raw = await api.get(
|
|
14937
|
-
|
|
14957
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
14938
14958
|
{
|
|
14939
14959
|
authRequired: true,
|
|
14940
14960
|
resource: { type: "workflow", id: input.workflow }
|
|
@@ -14991,9 +15011,13 @@ var createWorkflowPlugin = defineMethod({
|
|
|
14991
15011
|
if (isPrivate !== void 0) {
|
|
14992
15012
|
body.is_private = isPrivate;
|
|
14993
15013
|
}
|
|
14994
|
-
const raw = await api.post(
|
|
14995
|
-
|
|
14996
|
-
|
|
15014
|
+
const raw = await api.post(
|
|
15015
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`,
|
|
15016
|
+
body,
|
|
15017
|
+
{
|
|
15018
|
+
authRequired: true
|
|
15019
|
+
}
|
|
15020
|
+
);
|
|
14997
15021
|
return CreateWorkflowResponseSchema.parse(raw);
|
|
14998
15022
|
}
|
|
14999
15023
|
});
|
|
@@ -15039,7 +15063,7 @@ var updateWorkflowPlugin = defineMethod({
|
|
|
15039
15063
|
body.description = input.description;
|
|
15040
15064
|
}
|
|
15041
15065
|
const raw = await api.patch(
|
|
15042
|
-
|
|
15066
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
15043
15067
|
body,
|
|
15044
15068
|
{
|
|
15045
15069
|
authRequired: true,
|
|
@@ -15071,7 +15095,7 @@ var enableWorkflowPlugin = defineMethod({
|
|
|
15071
15095
|
run: async ({ imports, input }) => {
|
|
15072
15096
|
const api = imports.api;
|
|
15073
15097
|
const raw = await api.post(
|
|
15074
|
-
|
|
15098
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/enable`,
|
|
15075
15099
|
void 0,
|
|
15076
15100
|
{
|
|
15077
15101
|
authRequired: true,
|
|
@@ -15105,7 +15129,7 @@ var disableWorkflowPlugin = defineMethod({
|
|
|
15105
15129
|
run: async ({ imports, input }) => {
|
|
15106
15130
|
const api = imports.api;
|
|
15107
15131
|
const raw = await api.post(
|
|
15108
|
-
|
|
15132
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/disable`,
|
|
15109
15133
|
void 0,
|
|
15110
15134
|
{
|
|
15111
15135
|
authRequired: true,
|
|
@@ -15139,7 +15163,7 @@ var deleteWorkflowPlugin = defineMethod({
|
|
|
15139
15163
|
run: async ({ imports, input }) => {
|
|
15140
15164
|
const api = imports.api;
|
|
15141
15165
|
await api.delete(
|
|
15142
|
-
|
|
15166
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
15143
15167
|
void 0,
|
|
15144
15168
|
{
|
|
15145
15169
|
authRequired: true,
|
|
@@ -15216,7 +15240,7 @@ var listDurableRunsPlugin = defineMethod({
|
|
|
15216
15240
|
if (input.cursor) {
|
|
15217
15241
|
searchParams.cursor = input.cursor;
|
|
15218
15242
|
}
|
|
15219
|
-
const raw = await api.get(
|
|
15243
|
+
const raw = await api.get(`${CODE_SUBSTRATE_RUNNER_API}/runs`, {
|
|
15220
15244
|
searchParams,
|
|
15221
15245
|
authRequired: true
|
|
15222
15246
|
});
|
|
@@ -15329,7 +15353,7 @@ var getDurableRunPlugin = defineMethod({
|
|
|
15329
15353
|
run: async ({ imports, input }) => {
|
|
15330
15354
|
const api = imports.api;
|
|
15331
15355
|
const raw = await api.get(
|
|
15332
|
-
|
|
15356
|
+
`${CODE_SUBSTRATE_RUNNER_API}/runs/${encodeURIComponent(input.run)}`,
|
|
15333
15357
|
{
|
|
15334
15358
|
authRequired: true,
|
|
15335
15359
|
resource: { type: "run", id: input.run }
|
|
@@ -15374,7 +15398,7 @@ var RunDurableBaseSchema = zod.z.object({
|
|
|
15374
15398
|
"Webhook subscribers for run lifecycle events. Each entry specifies a URL and the events it subscribes to."
|
|
15375
15399
|
)
|
|
15376
15400
|
});
|
|
15377
|
-
var RunDurableDescription = "Run a workflow source file as a run-once durable run on
|
|
15401
|
+
var RunDurableDescription = "Run a workflow source file as a run-once durable run on code-substrate-runner (no deployed workflow required). Returns the run ID immediately; poll via getDurableRun for terminal status.";
|
|
15378
15402
|
var RunDurableSchema = zod.z.object({ sourceFiles: SourceFilesSchema }).merge(RunDurableBaseSchema).describe(RunDurableDescription).meta({
|
|
15379
15403
|
aliases: {
|
|
15380
15404
|
source_files: "sourceFiles",
|
|
@@ -15432,7 +15456,7 @@ var runDurablePlugin = defineMethod({
|
|
|
15432
15456
|
if (input.notifications !== void 0) {
|
|
15433
15457
|
body.notifications = input.notifications;
|
|
15434
15458
|
}
|
|
15435
|
-
const raw = await api.post(
|
|
15459
|
+
const raw = await api.post(`${CODE_SUBSTRATE_RUNNER_API}/runs`, body, {
|
|
15436
15460
|
authRequired: true
|
|
15437
15461
|
});
|
|
15438
15462
|
return RunDurableResponseSchema.parse(raw);
|
|
@@ -15464,7 +15488,7 @@ var cancelDurableRunPlugin = defineMethod({
|
|
|
15464
15488
|
run: async ({ imports, input }) => {
|
|
15465
15489
|
const api = imports.api;
|
|
15466
15490
|
await api.post(
|
|
15467
|
-
|
|
15491
|
+
`${CODE_SUBSTRATE_RUNNER_API}/runs/${encodeURIComponent(input.run)}/cancel`,
|
|
15468
15492
|
void 0,
|
|
15469
15493
|
{
|
|
15470
15494
|
authRequired: true,
|
|
@@ -15605,7 +15629,7 @@ var publishWorkflowVersionPlugin = defineMethod({
|
|
|
15605
15629
|
body.trigger = toWireTrigger(input.trigger);
|
|
15606
15630
|
}
|
|
15607
15631
|
const raw = await api.post(
|
|
15608
|
-
|
|
15632
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions`,
|
|
15609
15633
|
body,
|
|
15610
15634
|
{
|
|
15611
15635
|
authRequired: true,
|
|
@@ -15671,7 +15695,7 @@ var listWorkflowVersionsPlugin = defineMethod({
|
|
|
15671
15695
|
searchParams.cursor = input.cursor;
|
|
15672
15696
|
}
|
|
15673
15697
|
const raw = await api.get(
|
|
15674
|
-
|
|
15698
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions`,
|
|
15675
15699
|
{
|
|
15676
15700
|
searchParams,
|
|
15677
15701
|
authRequired: true,
|
|
@@ -15722,7 +15746,7 @@ var getWorkflowVersionPlugin = defineMethod({
|
|
|
15722
15746
|
run: async ({ imports, input }) => {
|
|
15723
15747
|
const api = imports.api;
|
|
15724
15748
|
const raw = await api.get(
|
|
15725
|
-
|
|
15749
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions/${encodeURIComponent(input.version)}`,
|
|
15726
15750
|
{
|
|
15727
15751
|
authRequired: true,
|
|
15728
15752
|
resource: { type: "workflow-version", id: input.version }
|
|
@@ -15743,7 +15767,7 @@ var WorkflowRunListItemSchema = zod.z.object({
|
|
|
15743
15767
|
"ID of the trigger that fired this run, if any. Null for runs created without a trigger."
|
|
15744
15768
|
),
|
|
15745
15769
|
durable_run_id: zod.z.string().nullable().describe(
|
|
15746
|
-
"Linked
|
|
15770
|
+
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
15747
15771
|
),
|
|
15748
15772
|
workflow_version_id: zod.z.string().nullable().describe("Workflow version the run is bound to. Null in rare edge cases."),
|
|
15749
15773
|
status: WorkflowRunStatusSchema,
|
|
@@ -15799,7 +15823,7 @@ var listWorkflowRunsPlugin = defineMethod({
|
|
|
15799
15823
|
searchParams.cursor = input.cursor;
|
|
15800
15824
|
}
|
|
15801
15825
|
const raw = await api.get(
|
|
15802
|
-
|
|
15826
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/runs`,
|
|
15803
15827
|
{
|
|
15804
15828
|
searchParams,
|
|
15805
15829
|
authRequired: true,
|
|
@@ -15829,7 +15853,7 @@ var GetWorkflowRunResponseSchema = zod.z.object({
|
|
|
15829
15853
|
id: zod.z.string().describe("Workflow run ID (UUID)"),
|
|
15830
15854
|
trigger_id: zod.z.string().nullable().describe("ID of the trigger that fired this run, if any"),
|
|
15831
15855
|
durable_run_id: zod.z.string().nullable().describe(
|
|
15832
|
-
"Linked
|
|
15856
|
+
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
15833
15857
|
),
|
|
15834
15858
|
workflow_version_id: zod.z.string().nullable().describe("Workflow version the run is bound to"),
|
|
15835
15859
|
status: WorkflowRunStatusSchema,
|
|
@@ -15856,7 +15880,7 @@ var getWorkflowRunPlugin = defineMethod({
|
|
|
15856
15880
|
run: async ({ imports, input }) => {
|
|
15857
15881
|
const api = imports.api;
|
|
15858
15882
|
const raw = await api.get(
|
|
15859
|
-
|
|
15883
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/runs/${encodeURIComponent(input.run)}`,
|
|
15860
15884
|
{
|
|
15861
15885
|
authRequired: true,
|
|
15862
15886
|
resource: { type: "workflow-run", id: input.run }
|
|
@@ -15873,7 +15897,7 @@ var GetTriggerRunOptionsSchema = zod.z.object({
|
|
|
15873
15897
|
var GetTriggerRunResponseSchema = zod.z.object({
|
|
15874
15898
|
id: zod.z.string().describe("Workflow run ID (UUID)"),
|
|
15875
15899
|
durable_run_id: zod.z.string().nullable().describe(
|
|
15876
|
-
"Linked
|
|
15900
|
+
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
15877
15901
|
),
|
|
15878
15902
|
workflow_version_id: zod.z.string().nullable().describe("Workflow version the run is bound to"),
|
|
15879
15903
|
status: WorkflowRunStatusSchema,
|
|
@@ -15900,7 +15924,7 @@ var getTriggerRunPlugin = defineMethod({
|
|
|
15900
15924
|
run: async ({ imports, input }) => {
|
|
15901
15925
|
const api = imports.api;
|
|
15902
15926
|
const raw = await api.get(
|
|
15903
|
-
|
|
15927
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/triggers/${encodeURIComponent(input.trigger)}/run`,
|
|
15904
15928
|
{
|
|
15905
15929
|
authRequired: true,
|
|
15906
15930
|
resource: { type: "workflow-trigger", id: input.trigger }
|
|
@@ -15940,7 +15964,7 @@ var triggerWorkflowPlugin = defineMethod({
|
|
|
15940
15964
|
run: async ({ imports, input }) => {
|
|
15941
15965
|
const api = imports.api;
|
|
15942
15966
|
const rawWorkflow = await api.get(
|
|
15943
|
-
|
|
15967
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
15944
15968
|
{
|
|
15945
15969
|
authRequired: true,
|
|
15946
15970
|
resource: { type: "workflow", id: input.workflow }
|
|
@@ -15956,7 +15980,7 @@ var triggerWorkflowPlugin = defineMethod({
|
|
|
15956
15980
|
);
|
|
15957
15981
|
}
|
|
15958
15982
|
const raw = await api.post(
|
|
15959
|
-
|
|
15983
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/trigger/${encodeURIComponent(triggerToken)}`,
|
|
15960
15984
|
input.input,
|
|
15961
15985
|
{
|
|
15962
15986
|
authRequired: true,
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-
|
|
2
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.mjs';
|
|
1
|
+
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index--H-bce1q.mjs';
|
|
2
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index--H-bce1q.mjs';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-
|
|
2
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.js';
|
|
1
|
+
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index--H-bce1q.js';
|
|
2
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index--H-bce1q.js';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
package/dist/experimental.mjs
CHANGED
|
@@ -3164,12 +3164,16 @@ async function advance(ctx, state) {
|
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
3166
3166
|
async function start(ctx, input = {}, interactive = true) {
|
|
3167
|
-
|
|
3167
|
+
const state = {
|
|
3168
3168
|
method: ctx.method,
|
|
3169
3169
|
resolved: { ...input },
|
|
3170
3170
|
settled: [],
|
|
3171
3171
|
interactive
|
|
3172
|
-
}
|
|
3172
|
+
};
|
|
3173
|
+
for (const [name, value] of Object.entries(input)) {
|
|
3174
|
+
if (value !== void 0) settle(state, [name]);
|
|
3175
|
+
}
|
|
3176
|
+
return advance(ctx, state);
|
|
3173
3177
|
}
|
|
3174
3178
|
async function step(ctx, prior, action) {
|
|
3175
3179
|
const state = clone(prior);
|
|
@@ -5192,7 +5196,7 @@ function parseDeprecationDate(value) {
|
|
|
5192
5196
|
}
|
|
5193
5197
|
|
|
5194
5198
|
// src/sdk-version.ts
|
|
5195
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
5199
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.0" : void 0) || "unknown";
|
|
5196
5200
|
|
|
5197
5201
|
// src/utils/open-url.ts
|
|
5198
5202
|
var nodePrefix = "node:";
|
|
@@ -5410,6 +5414,18 @@ var pathConfig = {
|
|
|
5410
5414
|
"/durableworkflowzaps": {
|
|
5411
5415
|
authHeader: "Authorization",
|
|
5412
5416
|
pathPrefix: "/api/v0/sdk/durableworkflowzaps"
|
|
5417
|
+
},
|
|
5418
|
+
// e.g. /code-substrate-runner -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-runner/...
|
|
5419
|
+
// sdkapi proxies to the code-substrate-runner backend.
|
|
5420
|
+
"/code-substrate-runner": {
|
|
5421
|
+
authHeader: "Authorization",
|
|
5422
|
+
pathPrefix: "/api/v0/sdk/code-substrate-runner"
|
|
5423
|
+
},
|
|
5424
|
+
// e.g. /code-substrate-workflows -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-workflows/...
|
|
5425
|
+
// sdkapi proxies to the code-substrate-workflows backend.
|
|
5426
|
+
"/code-substrate-workflows": {
|
|
5427
|
+
authHeader: "Authorization",
|
|
5428
|
+
pathPrefix: "/api/v0/sdk/code-substrate-workflows"
|
|
5413
5429
|
}
|
|
5414
5430
|
};
|
|
5415
5431
|
var ZapierApiClient = class {
|
|
@@ -6789,7 +6805,9 @@ var ConnectionsMapSchema = z.record(z.string(), ConnectionEntrySchema);
|
|
|
6789
6805
|
var DEFAULT_CONFIG_PATH = ".zapierrc";
|
|
6790
6806
|
var ManifestEntrySchema = z.object({
|
|
6791
6807
|
implementationName: z.string().describe("Base implementation name without version (e.g., 'SlackCLIAPI')"),
|
|
6792
|
-
version: z.string().describe(
|
|
6808
|
+
version: z.string().optional().describe(
|
|
6809
|
+
"Version string (e.g., '1.21.1'); resolves to latest when absent"
|
|
6810
|
+
)
|
|
6793
6811
|
});
|
|
6794
6812
|
var ActionEntrySchema = z.object({
|
|
6795
6813
|
appKey: z.string().describe("App key (slug or implementation name)"),
|
|
@@ -14667,6 +14685,8 @@ var codeSubstrateDefaults = {
|
|
|
14667
14685
|
categories: ["code-workflow"],
|
|
14668
14686
|
experimental: true
|
|
14669
14687
|
};
|
|
14688
|
+
var CODE_SUBSTRATE_RUNNER_API = "/code-substrate-runner/api/v0";
|
|
14689
|
+
var CODE_SUBSTRATE_WORKFLOWS_API = "/code-substrate-workflows/api/v0";
|
|
14670
14690
|
var JsonPayloadSchema = z.preprocess((val) => {
|
|
14671
14691
|
if (typeof val === "string") {
|
|
14672
14692
|
const trimmed = val.trim();
|
|
@@ -14859,7 +14879,7 @@ var listWorkflowsPlugin = defineMethod({
|
|
|
14859
14879
|
if (input.cursor) {
|
|
14860
14880
|
searchParams.cursor = input.cursor;
|
|
14861
14881
|
}
|
|
14862
|
-
const raw = await api.get(
|
|
14882
|
+
const raw = await api.get(`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`, {
|
|
14863
14883
|
searchParams,
|
|
14864
14884
|
authRequired: true
|
|
14865
14885
|
});
|
|
@@ -14878,7 +14898,7 @@ var WorkflowVersionSchema = z.object({
|
|
|
14878
14898
|
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
14879
14899
|
),
|
|
14880
14900
|
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
14881
|
-
// Backend column is NOT NULL (see
|
|
14901
|
+
// Backend column is NOT NULL (see code-substrate-workflows prisma schema:
|
|
14882
14902
|
// workflow_versions.created_by_user_id), so this is always emitted.
|
|
14883
14903
|
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
14884
14904
|
created_at: z.string().describe("When the version was published (ISO-8601)"),
|
|
@@ -14932,7 +14952,7 @@ var getWorkflowPlugin = defineMethod({
|
|
|
14932
14952
|
run: async ({ imports, input }) => {
|
|
14933
14953
|
const api = imports.api;
|
|
14934
14954
|
const raw = await api.get(
|
|
14935
|
-
|
|
14955
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
14936
14956
|
{
|
|
14937
14957
|
authRequired: true,
|
|
14938
14958
|
resource: { type: "workflow", id: input.workflow }
|
|
@@ -14989,9 +15009,13 @@ var createWorkflowPlugin = defineMethod({
|
|
|
14989
15009
|
if (isPrivate !== void 0) {
|
|
14990
15010
|
body.is_private = isPrivate;
|
|
14991
15011
|
}
|
|
14992
|
-
const raw = await api.post(
|
|
14993
|
-
|
|
14994
|
-
|
|
15012
|
+
const raw = await api.post(
|
|
15013
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`,
|
|
15014
|
+
body,
|
|
15015
|
+
{
|
|
15016
|
+
authRequired: true
|
|
15017
|
+
}
|
|
15018
|
+
);
|
|
14995
15019
|
return CreateWorkflowResponseSchema.parse(raw);
|
|
14996
15020
|
}
|
|
14997
15021
|
});
|
|
@@ -15037,7 +15061,7 @@ var updateWorkflowPlugin = defineMethod({
|
|
|
15037
15061
|
body.description = input.description;
|
|
15038
15062
|
}
|
|
15039
15063
|
const raw = await api.patch(
|
|
15040
|
-
|
|
15064
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
15041
15065
|
body,
|
|
15042
15066
|
{
|
|
15043
15067
|
authRequired: true,
|
|
@@ -15069,7 +15093,7 @@ var enableWorkflowPlugin = defineMethod({
|
|
|
15069
15093
|
run: async ({ imports, input }) => {
|
|
15070
15094
|
const api = imports.api;
|
|
15071
15095
|
const raw = await api.post(
|
|
15072
|
-
|
|
15096
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/enable`,
|
|
15073
15097
|
void 0,
|
|
15074
15098
|
{
|
|
15075
15099
|
authRequired: true,
|
|
@@ -15103,7 +15127,7 @@ var disableWorkflowPlugin = defineMethod({
|
|
|
15103
15127
|
run: async ({ imports, input }) => {
|
|
15104
15128
|
const api = imports.api;
|
|
15105
15129
|
const raw = await api.post(
|
|
15106
|
-
|
|
15130
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/disable`,
|
|
15107
15131
|
void 0,
|
|
15108
15132
|
{
|
|
15109
15133
|
authRequired: true,
|
|
@@ -15137,7 +15161,7 @@ var deleteWorkflowPlugin = defineMethod({
|
|
|
15137
15161
|
run: async ({ imports, input }) => {
|
|
15138
15162
|
const api = imports.api;
|
|
15139
15163
|
await api.delete(
|
|
15140
|
-
|
|
15164
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
15141
15165
|
void 0,
|
|
15142
15166
|
{
|
|
15143
15167
|
authRequired: true,
|
|
@@ -15214,7 +15238,7 @@ var listDurableRunsPlugin = defineMethod({
|
|
|
15214
15238
|
if (input.cursor) {
|
|
15215
15239
|
searchParams.cursor = input.cursor;
|
|
15216
15240
|
}
|
|
15217
|
-
const raw = await api.get(
|
|
15241
|
+
const raw = await api.get(`${CODE_SUBSTRATE_RUNNER_API}/runs`, {
|
|
15218
15242
|
searchParams,
|
|
15219
15243
|
authRequired: true
|
|
15220
15244
|
});
|
|
@@ -15327,7 +15351,7 @@ var getDurableRunPlugin = defineMethod({
|
|
|
15327
15351
|
run: async ({ imports, input }) => {
|
|
15328
15352
|
const api = imports.api;
|
|
15329
15353
|
const raw = await api.get(
|
|
15330
|
-
|
|
15354
|
+
`${CODE_SUBSTRATE_RUNNER_API}/runs/${encodeURIComponent(input.run)}`,
|
|
15331
15355
|
{
|
|
15332
15356
|
authRequired: true,
|
|
15333
15357
|
resource: { type: "run", id: input.run }
|
|
@@ -15372,7 +15396,7 @@ var RunDurableBaseSchema = z.object({
|
|
|
15372
15396
|
"Webhook subscribers for run lifecycle events. Each entry specifies a URL and the events it subscribes to."
|
|
15373
15397
|
)
|
|
15374
15398
|
});
|
|
15375
|
-
var RunDurableDescription = "Run a workflow source file as a run-once durable run on
|
|
15399
|
+
var RunDurableDescription = "Run a workflow source file as a run-once durable run on code-substrate-runner (no deployed workflow required). Returns the run ID immediately; poll via getDurableRun for terminal status.";
|
|
15376
15400
|
var RunDurableSchema = z.object({ sourceFiles: SourceFilesSchema }).merge(RunDurableBaseSchema).describe(RunDurableDescription).meta({
|
|
15377
15401
|
aliases: {
|
|
15378
15402
|
source_files: "sourceFiles",
|
|
@@ -15430,7 +15454,7 @@ var runDurablePlugin = defineMethod({
|
|
|
15430
15454
|
if (input.notifications !== void 0) {
|
|
15431
15455
|
body.notifications = input.notifications;
|
|
15432
15456
|
}
|
|
15433
|
-
const raw = await api.post(
|
|
15457
|
+
const raw = await api.post(`${CODE_SUBSTRATE_RUNNER_API}/runs`, body, {
|
|
15434
15458
|
authRequired: true
|
|
15435
15459
|
});
|
|
15436
15460
|
return RunDurableResponseSchema.parse(raw);
|
|
@@ -15462,7 +15486,7 @@ var cancelDurableRunPlugin = defineMethod({
|
|
|
15462
15486
|
run: async ({ imports, input }) => {
|
|
15463
15487
|
const api = imports.api;
|
|
15464
15488
|
await api.post(
|
|
15465
|
-
|
|
15489
|
+
`${CODE_SUBSTRATE_RUNNER_API}/runs/${encodeURIComponent(input.run)}/cancel`,
|
|
15466
15490
|
void 0,
|
|
15467
15491
|
{
|
|
15468
15492
|
authRequired: true,
|
|
@@ -15603,7 +15627,7 @@ var publishWorkflowVersionPlugin = defineMethod({
|
|
|
15603
15627
|
body.trigger = toWireTrigger(input.trigger);
|
|
15604
15628
|
}
|
|
15605
15629
|
const raw = await api.post(
|
|
15606
|
-
|
|
15630
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions`,
|
|
15607
15631
|
body,
|
|
15608
15632
|
{
|
|
15609
15633
|
authRequired: true,
|
|
@@ -15669,7 +15693,7 @@ var listWorkflowVersionsPlugin = defineMethod({
|
|
|
15669
15693
|
searchParams.cursor = input.cursor;
|
|
15670
15694
|
}
|
|
15671
15695
|
const raw = await api.get(
|
|
15672
|
-
|
|
15696
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions`,
|
|
15673
15697
|
{
|
|
15674
15698
|
searchParams,
|
|
15675
15699
|
authRequired: true,
|
|
@@ -15720,7 +15744,7 @@ var getWorkflowVersionPlugin = defineMethod({
|
|
|
15720
15744
|
run: async ({ imports, input }) => {
|
|
15721
15745
|
const api = imports.api;
|
|
15722
15746
|
const raw = await api.get(
|
|
15723
|
-
|
|
15747
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions/${encodeURIComponent(input.version)}`,
|
|
15724
15748
|
{
|
|
15725
15749
|
authRequired: true,
|
|
15726
15750
|
resource: { type: "workflow-version", id: input.version }
|
|
@@ -15741,7 +15765,7 @@ var WorkflowRunListItemSchema = z.object({
|
|
|
15741
15765
|
"ID of the trigger that fired this run, if any. Null for runs created without a trigger."
|
|
15742
15766
|
),
|
|
15743
15767
|
durable_run_id: z.string().nullable().describe(
|
|
15744
|
-
"Linked
|
|
15768
|
+
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
15745
15769
|
),
|
|
15746
15770
|
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to. Null in rare edge cases."),
|
|
15747
15771
|
status: WorkflowRunStatusSchema,
|
|
@@ -15797,7 +15821,7 @@ var listWorkflowRunsPlugin = defineMethod({
|
|
|
15797
15821
|
searchParams.cursor = input.cursor;
|
|
15798
15822
|
}
|
|
15799
15823
|
const raw = await api.get(
|
|
15800
|
-
|
|
15824
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/runs`,
|
|
15801
15825
|
{
|
|
15802
15826
|
searchParams,
|
|
15803
15827
|
authRequired: true,
|
|
@@ -15827,7 +15851,7 @@ var GetWorkflowRunResponseSchema = z.object({
|
|
|
15827
15851
|
id: z.string().describe("Workflow run ID (UUID)"),
|
|
15828
15852
|
trigger_id: z.string().nullable().describe("ID of the trigger that fired this run, if any"),
|
|
15829
15853
|
durable_run_id: z.string().nullable().describe(
|
|
15830
|
-
"Linked
|
|
15854
|
+
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
15831
15855
|
),
|
|
15832
15856
|
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to"),
|
|
15833
15857
|
status: WorkflowRunStatusSchema,
|
|
@@ -15854,7 +15878,7 @@ var getWorkflowRunPlugin = defineMethod({
|
|
|
15854
15878
|
run: async ({ imports, input }) => {
|
|
15855
15879
|
const api = imports.api;
|
|
15856
15880
|
const raw = await api.get(
|
|
15857
|
-
|
|
15881
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/runs/${encodeURIComponent(input.run)}`,
|
|
15858
15882
|
{
|
|
15859
15883
|
authRequired: true,
|
|
15860
15884
|
resource: { type: "workflow-run", id: input.run }
|
|
@@ -15871,7 +15895,7 @@ var GetTriggerRunOptionsSchema = z.object({
|
|
|
15871
15895
|
var GetTriggerRunResponseSchema = z.object({
|
|
15872
15896
|
id: z.string().describe("Workflow run ID (UUID)"),
|
|
15873
15897
|
durable_run_id: z.string().nullable().describe(
|
|
15874
|
-
"Linked
|
|
15898
|
+
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
15875
15899
|
),
|
|
15876
15900
|
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to"),
|
|
15877
15901
|
status: WorkflowRunStatusSchema,
|
|
@@ -15898,7 +15922,7 @@ var getTriggerRunPlugin = defineMethod({
|
|
|
15898
15922
|
run: async ({ imports, input }) => {
|
|
15899
15923
|
const api = imports.api;
|
|
15900
15924
|
const raw = await api.get(
|
|
15901
|
-
|
|
15925
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/triggers/${encodeURIComponent(input.trigger)}/run`,
|
|
15902
15926
|
{
|
|
15903
15927
|
authRequired: true,
|
|
15904
15928
|
resource: { type: "workflow-trigger", id: input.trigger }
|
|
@@ -15938,7 +15962,7 @@ var triggerWorkflowPlugin = defineMethod({
|
|
|
15938
15962
|
run: async ({ imports, input }) => {
|
|
15939
15963
|
const api = imports.api;
|
|
15940
15964
|
const rawWorkflow = await api.get(
|
|
15941
|
-
|
|
15965
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
15942
15966
|
{
|
|
15943
15967
|
authRequired: true,
|
|
15944
15968
|
resource: { type: "workflow", id: input.workflow }
|
|
@@ -15954,7 +15978,7 @@ var triggerWorkflowPlugin = defineMethod({
|
|
|
15954
15978
|
);
|
|
15955
15979
|
}
|
|
15956
15980
|
const raw = await api.post(
|
|
15957
|
-
|
|
15981
|
+
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/trigger/${encodeURIComponent(triggerToken)}`,
|
|
15958
15982
|
input.input,
|
|
15959
15983
|
{
|
|
15960
15984
|
authRequired: true,
|
|
@@ -4938,10 +4938,11 @@ interface ResolvedAppLocator extends AppLocator {
|
|
|
4938
4938
|
}
|
|
4939
4939
|
|
|
4940
4940
|
declare const DEFAULT_CONFIG_PATH: ".zapierrc";
|
|
4941
|
-
|
|
4942
|
-
implementationName:
|
|
4943
|
-
version
|
|
4944
|
-
}
|
|
4941
|
+
declare const ManifestEntrySchema: z.ZodObject<{
|
|
4942
|
+
implementationName: z.ZodString;
|
|
4943
|
+
version: z.ZodOptional<z.ZodString>;
|
|
4944
|
+
}, z.core.$strip>;
|
|
4945
|
+
type ManifestEntry = z.infer<typeof ManifestEntrySchema>;
|
|
4945
4946
|
type GetVersionedImplementationId = (appKey: string) => Promise<string | null>;
|
|
4946
4947
|
/**
|
|
4947
4948
|
* Action entry for storing saved action configurations
|
|
@@ -5000,7 +5001,7 @@ declare const ManifestPluginOptionsSchema: z.ZodObject<{
|
|
|
5000
5001
|
manifest: z.ZodOptional<z.ZodObject<{
|
|
5001
5002
|
apps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5002
5003
|
implementationName: z.ZodString;
|
|
5003
|
-
version: z.ZodString
|
|
5004
|
+
version: z.ZodOptional<z.ZodString>;
|
|
5004
5005
|
}, z.core.$strip>>>;
|
|
5005
5006
|
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5006
5007
|
appKey: z.ZodString;
|
|
@@ -4938,10 +4938,11 @@ interface ResolvedAppLocator extends AppLocator {
|
|
|
4938
4938
|
}
|
|
4939
4939
|
|
|
4940
4940
|
declare const DEFAULT_CONFIG_PATH: ".zapierrc";
|
|
4941
|
-
|
|
4942
|
-
implementationName:
|
|
4943
|
-
version
|
|
4944
|
-
}
|
|
4941
|
+
declare const ManifestEntrySchema: z.ZodObject<{
|
|
4942
|
+
implementationName: z.ZodString;
|
|
4943
|
+
version: z.ZodOptional<z.ZodString>;
|
|
4944
|
+
}, z.core.$strip>;
|
|
4945
|
+
type ManifestEntry = z.infer<typeof ManifestEntrySchema>;
|
|
4945
4946
|
type GetVersionedImplementationId = (appKey: string) => Promise<string | null>;
|
|
4946
4947
|
/**
|
|
4947
4948
|
* Action entry for storing saved action configurations
|
|
@@ -5000,7 +5001,7 @@ declare const ManifestPluginOptionsSchema: z.ZodObject<{
|
|
|
5000
5001
|
manifest: z.ZodOptional<z.ZodObject<{
|
|
5001
5002
|
apps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5002
5003
|
implementationName: z.ZodString;
|
|
5003
|
-
version: z.ZodString
|
|
5004
|
+
version: z.ZodOptional<z.ZodString>;
|
|
5004
5005
|
}, z.core.$strip>>>;
|
|
5005
5006
|
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5006
5007
|
appKey: z.ZodString;
|
package/dist/index.cjs
CHANGED
|
@@ -3166,12 +3166,16 @@ async function advance(ctx, state) {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
3168
|
async function start(ctx, input = {}, interactive = true) {
|
|
3169
|
-
|
|
3169
|
+
const state = {
|
|
3170
3170
|
method: ctx.method,
|
|
3171
3171
|
resolved: { ...input },
|
|
3172
3172
|
settled: [],
|
|
3173
3173
|
interactive
|
|
3174
|
-
}
|
|
3174
|
+
};
|
|
3175
|
+
for (const [name, value] of Object.entries(input)) {
|
|
3176
|
+
if (value !== void 0) settle(state, [name]);
|
|
3177
|
+
}
|
|
3178
|
+
return advance(ctx, state);
|
|
3175
3179
|
}
|
|
3176
3180
|
async function step(ctx, prior, action) {
|
|
3177
3181
|
const state = clone(prior);
|
|
@@ -5340,7 +5344,7 @@ function parseDeprecationDate(value) {
|
|
|
5340
5344
|
}
|
|
5341
5345
|
|
|
5342
5346
|
// src/sdk-version.ts
|
|
5343
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
5347
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.0" : void 0) || "unknown";
|
|
5344
5348
|
|
|
5345
5349
|
// src/utils/open-url.ts
|
|
5346
5350
|
var nodePrefix = "node:";
|
|
@@ -5558,6 +5562,18 @@ var pathConfig = {
|
|
|
5558
5562
|
"/durableworkflowzaps": {
|
|
5559
5563
|
authHeader: "Authorization",
|
|
5560
5564
|
pathPrefix: "/api/v0/sdk/durableworkflowzaps"
|
|
5565
|
+
},
|
|
5566
|
+
// e.g. /code-substrate-runner -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-runner/...
|
|
5567
|
+
// sdkapi proxies to the code-substrate-runner backend.
|
|
5568
|
+
"/code-substrate-runner": {
|
|
5569
|
+
authHeader: "Authorization",
|
|
5570
|
+
pathPrefix: "/api/v0/sdk/code-substrate-runner"
|
|
5571
|
+
},
|
|
5572
|
+
// e.g. /code-substrate-workflows -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-workflows/...
|
|
5573
|
+
// sdkapi proxies to the code-substrate-workflows backend.
|
|
5574
|
+
"/code-substrate-workflows": {
|
|
5575
|
+
authHeader: "Authorization",
|
|
5576
|
+
pathPrefix: "/api/v0/sdk/code-substrate-workflows"
|
|
5561
5577
|
}
|
|
5562
5578
|
};
|
|
5563
5579
|
var ZapierApiClient = class {
|
|
@@ -6781,7 +6797,9 @@ var ConnectionsMapSchema = zod.z.record(zod.z.string(), ConnectionEntrySchema);
|
|
|
6781
6797
|
var DEFAULT_CONFIG_PATH = ".zapierrc";
|
|
6782
6798
|
var ManifestEntrySchema = zod.z.object({
|
|
6783
6799
|
implementationName: zod.z.string().describe("Base implementation name without version (e.g., 'SlackCLIAPI')"),
|
|
6784
|
-
version: zod.z.string().describe(
|
|
6800
|
+
version: zod.z.string().optional().describe(
|
|
6801
|
+
"Version string (e.g., '1.21.1'); resolves to latest when absent"
|
|
6802
|
+
)
|
|
6785
6803
|
});
|
|
6786
6804
|
var ActionEntrySchema = zod.z.object({
|
|
6787
6805
|
appKey: zod.z.string().describe("App key (slug or implementation name)"),
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.mjs';
|
|
1
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index--H-bce1q.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import '@zapier/policy-context';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.js';
|
|
1
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index--H-bce1q.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import '@zapier/policy-context';
|
package/dist/index.mjs
CHANGED
|
@@ -3164,12 +3164,16 @@ async function advance(ctx, state) {
|
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
3166
3166
|
async function start(ctx, input = {}, interactive = true) {
|
|
3167
|
-
|
|
3167
|
+
const state = {
|
|
3168
3168
|
method: ctx.method,
|
|
3169
3169
|
resolved: { ...input },
|
|
3170
3170
|
settled: [],
|
|
3171
3171
|
interactive
|
|
3172
|
-
}
|
|
3172
|
+
};
|
|
3173
|
+
for (const [name, value] of Object.entries(input)) {
|
|
3174
|
+
if (value !== void 0) settle(state, [name]);
|
|
3175
|
+
}
|
|
3176
|
+
return advance(ctx, state);
|
|
3173
3177
|
}
|
|
3174
3178
|
async function step(ctx, prior, action) {
|
|
3175
3179
|
const state = clone(prior);
|
|
@@ -5338,7 +5342,7 @@ function parseDeprecationDate(value) {
|
|
|
5338
5342
|
}
|
|
5339
5343
|
|
|
5340
5344
|
// src/sdk-version.ts
|
|
5341
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
5345
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.0" : void 0) || "unknown";
|
|
5342
5346
|
|
|
5343
5347
|
// src/utils/open-url.ts
|
|
5344
5348
|
var nodePrefix = "node:";
|
|
@@ -5556,6 +5560,18 @@ var pathConfig = {
|
|
|
5556
5560
|
"/durableworkflowzaps": {
|
|
5557
5561
|
authHeader: "Authorization",
|
|
5558
5562
|
pathPrefix: "/api/v0/sdk/durableworkflowzaps"
|
|
5563
|
+
},
|
|
5564
|
+
// e.g. /code-substrate-runner -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-runner/...
|
|
5565
|
+
// sdkapi proxies to the code-substrate-runner backend.
|
|
5566
|
+
"/code-substrate-runner": {
|
|
5567
|
+
authHeader: "Authorization",
|
|
5568
|
+
pathPrefix: "/api/v0/sdk/code-substrate-runner"
|
|
5569
|
+
},
|
|
5570
|
+
// e.g. /code-substrate-workflows -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-workflows/...
|
|
5571
|
+
// sdkapi proxies to the code-substrate-workflows backend.
|
|
5572
|
+
"/code-substrate-workflows": {
|
|
5573
|
+
authHeader: "Authorization",
|
|
5574
|
+
pathPrefix: "/api/v0/sdk/code-substrate-workflows"
|
|
5559
5575
|
}
|
|
5560
5576
|
};
|
|
5561
5577
|
var ZapierApiClient = class {
|
|
@@ -6779,7 +6795,9 @@ var ConnectionsMapSchema = z.record(z.string(), ConnectionEntrySchema);
|
|
|
6779
6795
|
var DEFAULT_CONFIG_PATH = ".zapierrc";
|
|
6780
6796
|
var ManifestEntrySchema = z.object({
|
|
6781
6797
|
implementationName: z.string().describe("Base implementation name without version (e.g., 'SlackCLIAPI')"),
|
|
6782
|
-
version: z.string().describe(
|
|
6798
|
+
version: z.string().optional().describe(
|
|
6799
|
+
"Version string (e.g., '1.21.1'); resolves to latest when absent"
|
|
6800
|
+
)
|
|
6783
6801
|
});
|
|
6784
6802
|
var ActionEntrySchema = z.object({
|
|
6785
6803
|
appKey: z.string().describe("App key (slug or implementation name)"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zapier/zapier-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"description": "Complete Zapier SDK - combines all Zapier SDK packages",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"tsup": "^8.5.0",
|
|
96
96
|
"typescript": "^5.8.3",
|
|
97
97
|
"vitest": "^4.1.4",
|
|
98
|
-
"@zapier/kitcore": "0.5.
|
|
98
|
+
"@zapier/kitcore": "0.5.1"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "tsup",
|