@zapier/zapier-sdk 0.63.0 → 0.65.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 +256 -0
- package/dist/experimental.cjs +387 -2
- package/dist/experimental.d.mts +145 -2
- package/dist/experimental.d.ts +143 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +12 -0
- package/dist/experimental.mjs +386 -3
- package/dist/{index-3fBEDEsp.d.mts → index-JhNxS_mq.d.mts} +39 -1
- package/dist/{index-3fBEDEsp.d.ts → index-JhNxS_mq.d.ts} +39 -1
- package/dist/index.cjs +43 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +42 -2
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts +47 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +23 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +24 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.js +30 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +49 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +25 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.js +43 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +46 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.js +25 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts +17 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.js +25 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +53 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +34 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +65 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.js +69 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +49 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.js +34 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts +37 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.js +48 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +49 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +33 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +20 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +42 -0
- package/dist/resolvers/index.d.ts +2 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +2 -0
- package/dist/resolvers/workflowRunId.d.ts +6 -0
- package/dist/resolvers/workflowRunId.d.ts.map +1 -0
- package/dist/resolvers/workflowRunId.js +20 -0
- package/dist/resolvers/workflowVersionId.d.ts +6 -0
- package/dist/resolvers/workflowVersionId.d.ts.map +1 -0
- package/dist/resolvers/workflowVersionId.js +20 -0
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -2569,6 +2569,149 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2569
2569
|
cancelDurableRun: PluginMeta;
|
|
2570
2570
|
};
|
|
2571
2571
|
};
|
|
2572
|
+
} & {
|
|
2573
|
+
publishWorkflowVersion: (options?: {
|
|
2574
|
+
workflow: string;
|
|
2575
|
+
source_files: Record<string, string>;
|
|
2576
|
+
dependencies?: Record<string, string> | undefined;
|
|
2577
|
+
zapier_durable_version?: string | undefined;
|
|
2578
|
+
enabled?: boolean | undefined;
|
|
2579
|
+
} | undefined) => Promise<{
|
|
2580
|
+
data: {
|
|
2581
|
+
id: string;
|
|
2582
|
+
workflow_id: string;
|
|
2583
|
+
source_files: Record<string, string>;
|
|
2584
|
+
zapier_durable_version: string;
|
|
2585
|
+
dependencies: Record<string, string> | null;
|
|
2586
|
+
created_by_user_id: string;
|
|
2587
|
+
created_at: string;
|
|
2588
|
+
};
|
|
2589
|
+
}>;
|
|
2590
|
+
} & {
|
|
2591
|
+
context: {
|
|
2592
|
+
meta: {
|
|
2593
|
+
publishWorkflowVersion: PluginMeta;
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2596
|
+
} & {
|
|
2597
|
+
listWorkflowVersions: (options?: ({
|
|
2598
|
+
workflow: string;
|
|
2599
|
+
pageSize?: number | undefined;
|
|
2600
|
+
cursor?: string | undefined;
|
|
2601
|
+
maxItems?: number | undefined;
|
|
2602
|
+
} & {
|
|
2603
|
+
cursor?: string;
|
|
2604
|
+
pageSize?: number;
|
|
2605
|
+
maxItems?: number;
|
|
2606
|
+
}) | undefined) => import("./index").PaginatedSdkResult<{
|
|
2607
|
+
id: string;
|
|
2608
|
+
workflow_id: string;
|
|
2609
|
+
zapier_durable_version: string;
|
|
2610
|
+
dependencies: Record<string, string> | null;
|
|
2611
|
+
created_by_user_id: string;
|
|
2612
|
+
created_at: string;
|
|
2613
|
+
}>;
|
|
2614
|
+
} & {
|
|
2615
|
+
context: {
|
|
2616
|
+
meta: {
|
|
2617
|
+
listWorkflowVersions: PluginMeta;
|
|
2618
|
+
};
|
|
2619
|
+
};
|
|
2620
|
+
} & {
|
|
2621
|
+
getWorkflowVersion: (options?: {
|
|
2622
|
+
workflow: string;
|
|
2623
|
+
version: string;
|
|
2624
|
+
} | undefined) => Promise<{
|
|
2625
|
+
data: {
|
|
2626
|
+
id: string;
|
|
2627
|
+
workflow_id: string;
|
|
2628
|
+
source_files: Record<string, string>;
|
|
2629
|
+
zapier_durable_version: string;
|
|
2630
|
+
dependencies: Record<string, string> | null;
|
|
2631
|
+
created_by_user_id: string;
|
|
2632
|
+
created_at: string;
|
|
2633
|
+
};
|
|
2634
|
+
}>;
|
|
2635
|
+
} & {
|
|
2636
|
+
context: {
|
|
2637
|
+
meta: {
|
|
2638
|
+
getWorkflowVersion: PluginMeta;
|
|
2639
|
+
};
|
|
2640
|
+
};
|
|
2641
|
+
} & {
|
|
2642
|
+
listWorkflowRuns: (options?: ({
|
|
2643
|
+
workflow: string;
|
|
2644
|
+
pageSize?: number | undefined;
|
|
2645
|
+
cursor?: string | undefined;
|
|
2646
|
+
maxItems?: number | undefined;
|
|
2647
|
+
} & {
|
|
2648
|
+
cursor?: string;
|
|
2649
|
+
pageSize?: number;
|
|
2650
|
+
maxItems?: number;
|
|
2651
|
+
}) | undefined) => import("./index").PaginatedSdkResult<{
|
|
2652
|
+
id: string;
|
|
2653
|
+
trigger_id: string | null;
|
|
2654
|
+
durable_run_id: string | null;
|
|
2655
|
+
workflow_version_id: string | null;
|
|
2656
|
+
status: string;
|
|
2657
|
+
input: unknown;
|
|
2658
|
+
output: unknown;
|
|
2659
|
+
error: unknown;
|
|
2660
|
+
created_at: string;
|
|
2661
|
+
updated_at: string;
|
|
2662
|
+
}>;
|
|
2663
|
+
} & {
|
|
2664
|
+
context: {
|
|
2665
|
+
meta: {
|
|
2666
|
+
listWorkflowRuns: PluginMeta;
|
|
2667
|
+
};
|
|
2668
|
+
};
|
|
2669
|
+
} & {
|
|
2670
|
+
getWorkflowRun: (options?: {
|
|
2671
|
+
run: string;
|
|
2672
|
+
workflow?: string | undefined;
|
|
2673
|
+
} | undefined) => Promise<{
|
|
2674
|
+
data: {
|
|
2675
|
+
id: string;
|
|
2676
|
+
trigger_id: string | null;
|
|
2677
|
+
durable_run_id: string | null;
|
|
2678
|
+
workflow_version_id: string | null;
|
|
2679
|
+
status: string;
|
|
2680
|
+
input: unknown;
|
|
2681
|
+
output: unknown;
|
|
2682
|
+
error: unknown;
|
|
2683
|
+
created_at: string;
|
|
2684
|
+
updated_at: string;
|
|
2685
|
+
};
|
|
2686
|
+
}>;
|
|
2687
|
+
} & {
|
|
2688
|
+
context: {
|
|
2689
|
+
meta: {
|
|
2690
|
+
getWorkflowRun: PluginMeta;
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
} & {
|
|
2694
|
+
getTriggerRun: (options?: {
|
|
2695
|
+
trigger: string;
|
|
2696
|
+
} | undefined) => Promise<{
|
|
2697
|
+
data: {
|
|
2698
|
+
id: string;
|
|
2699
|
+
durable_run_id: string | null;
|
|
2700
|
+
workflow_version_id: string | null;
|
|
2701
|
+
status: string;
|
|
2702
|
+
input: unknown;
|
|
2703
|
+
output: unknown;
|
|
2704
|
+
error: unknown;
|
|
2705
|
+
created_at: string;
|
|
2706
|
+
updated_at: string;
|
|
2707
|
+
};
|
|
2708
|
+
}>;
|
|
2709
|
+
} & {
|
|
2710
|
+
context: {
|
|
2711
|
+
meta: {
|
|
2712
|
+
getTriggerRun: PluginMeta;
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2572
2715
|
} & {
|
|
2573
2716
|
apps: import("./plugins/apps/schemas").ActionProxy & import("./index").ZapierSdkApps;
|
|
2574
2717
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GATv3H;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAM3D,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/experimental.js
CHANGED
|
@@ -87,6 +87,12 @@ import { listDurableRunsPlugin } from "./plugins/codeSubstrate/listDurableRuns";
|
|
|
87
87
|
import { getDurableRunPlugin } from "./plugins/codeSubstrate/getDurableRun";
|
|
88
88
|
import { runDurablePlugin } from "./plugins/codeSubstrate/runDurable";
|
|
89
89
|
import { cancelDurableRunPlugin } from "./plugins/codeSubstrate/cancelDurableRun";
|
|
90
|
+
import { publishWorkflowVersionPlugin } from "./plugins/codeSubstrate/publishWorkflowVersion";
|
|
91
|
+
import { listWorkflowVersionsPlugin } from "./plugins/codeSubstrate/listWorkflowVersions";
|
|
92
|
+
import { getWorkflowVersionPlugin } from "./plugins/codeSubstrate/getWorkflowVersion";
|
|
93
|
+
import { listWorkflowRunsPlugin } from "./plugins/codeSubstrate/listWorkflowRuns";
|
|
94
|
+
import { getWorkflowRunPlugin } from "./plugins/codeSubstrate/getWorkflowRun";
|
|
95
|
+
import { getTriggerRunPlugin } from "./plugins/codeSubstrate/getTriggerRun";
|
|
90
96
|
// Re-export everything from the stable index so callers importing from
|
|
91
97
|
// the experimental subpath get the full API surface (types, helpers,
|
|
92
98
|
// errors) without having to import from two paths.
|
|
@@ -173,6 +179,12 @@ export function createZapierSdk(options = {}) {
|
|
|
173
179
|
.addPlugin(getDurableRunPlugin)
|
|
174
180
|
.addPlugin(runDurablePlugin)
|
|
175
181
|
.addPlugin(cancelDurableRunPlugin)
|
|
182
|
+
.addPlugin(publishWorkflowVersionPlugin)
|
|
183
|
+
.addPlugin(listWorkflowVersionsPlugin)
|
|
184
|
+
.addPlugin(getWorkflowVersionPlugin)
|
|
185
|
+
.addPlugin(listWorkflowRunsPlugin)
|
|
186
|
+
.addPlugin(getWorkflowRunPlugin)
|
|
187
|
+
.addPlugin(getTriggerRunPlugin)
|
|
176
188
|
// Magic apps plugin
|
|
177
189
|
.addPlugin(appsPlugin)
|
|
178
190
|
// Profile
|
package/dist/experimental.mjs
CHANGED
|
@@ -2887,7 +2887,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
|
|
2889
2889
|
// src/sdk-version.ts
|
|
2890
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2890
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.65.0" : void 0) || "unknown";
|
|
2891
2891
|
|
|
2892
2892
|
// src/utils/open-url.ts
|
|
2893
2893
|
var nodePrefix = "node:";
|
|
@@ -4299,6 +4299,46 @@ var durableRunIdResolver = {
|
|
|
4299
4299
|
})
|
|
4300
4300
|
};
|
|
4301
4301
|
|
|
4302
|
+
// src/resolvers/workflowVersionId.ts
|
|
4303
|
+
var workflowVersionIdResolver = {
|
|
4304
|
+
type: "dynamic",
|
|
4305
|
+
depends: ["workflow"],
|
|
4306
|
+
fetch: async (sdk, params) => toIterable(
|
|
4307
|
+
sdk.listWorkflowVersions({
|
|
4308
|
+
workflow: params.workflow
|
|
4309
|
+
})
|
|
4310
|
+
),
|
|
4311
|
+
prompt: (versions) => ({
|
|
4312
|
+
type: "list",
|
|
4313
|
+
name: "version",
|
|
4314
|
+
message: "Select a workflow version:",
|
|
4315
|
+
choices: versions.map((v) => ({
|
|
4316
|
+
name: `${v.id} \u2014 ${v.zapier_durable_version}`,
|
|
4317
|
+
value: v.id
|
|
4318
|
+
}))
|
|
4319
|
+
})
|
|
4320
|
+
};
|
|
4321
|
+
|
|
4322
|
+
// src/resolvers/workflowRunId.ts
|
|
4323
|
+
var workflowRunIdResolver = {
|
|
4324
|
+
type: "dynamic",
|
|
4325
|
+
depends: ["workflow"],
|
|
4326
|
+
fetch: async (sdk, params) => toIterable(
|
|
4327
|
+
sdk.listWorkflowRuns({
|
|
4328
|
+
workflow: params.workflow
|
|
4329
|
+
})
|
|
4330
|
+
),
|
|
4331
|
+
prompt: (runs) => ({
|
|
4332
|
+
type: "list",
|
|
4333
|
+
name: "run",
|
|
4334
|
+
message: "Select a workflow run:",
|
|
4335
|
+
choices: runs.map((r) => ({
|
|
4336
|
+
name: `${r.id} \u2014 ${r.status}`,
|
|
4337
|
+
value: r.id
|
|
4338
|
+
}))
|
|
4339
|
+
})
|
|
4340
|
+
};
|
|
4341
|
+
|
|
4302
4342
|
// src/resolvers/triggerMessages.ts
|
|
4303
4343
|
var triggerMessagesResolver = {
|
|
4304
4344
|
type: "dynamic",
|
|
@@ -11136,6 +11176,349 @@ var cancelDurableRunPlugin = definePlugin(
|
|
|
11136
11176
|
}
|
|
11137
11177
|
})
|
|
11138
11178
|
);
|
|
11179
|
+
var PublishWorkflowVersionOptionsSchema = z.object({
|
|
11180
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11181
|
+
source_files: z.record(z.string(), z.string()).refine((files) => Object.keys(files).length > 0, {
|
|
11182
|
+
message: "source_files must contain at least one file"
|
|
11183
|
+
}).describe("Source files keyed by filename \u2192 contents"),
|
|
11184
|
+
dependencies: z.record(z.string(), z.string()).optional().describe("Optional npm package dependencies"),
|
|
11185
|
+
zapier_durable_version: z.string().optional().describe(
|
|
11186
|
+
'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.'
|
|
11187
|
+
),
|
|
11188
|
+
enabled: z.boolean().optional().describe(
|
|
11189
|
+
"Enable the workflow after publishing. Defaults to true; pass false to publish without enabling."
|
|
11190
|
+
)
|
|
11191
|
+
}).describe(
|
|
11192
|
+
"Publish a new version of a durable workflow. Enables the workflow by default."
|
|
11193
|
+
);
|
|
11194
|
+
var PublishWorkflowVersionResponseSchema = z.object({
|
|
11195
|
+
id: z.string().describe("Workflow version ID (UUID)"),
|
|
11196
|
+
workflow_id: z.string().describe("Parent workflow ID (UUID)"),
|
|
11197
|
+
source_files: z.record(z.string(), z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
11198
|
+
zapier_durable_version: z.string().describe(
|
|
11199
|
+
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
11200
|
+
),
|
|
11201
|
+
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
11202
|
+
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
11203
|
+
created_at: z.string().describe("When the version was published (ISO-8601)")
|
|
11204
|
+
});
|
|
11205
|
+
|
|
11206
|
+
// src/plugins/codeSubstrate/publishWorkflowVersion/index.ts
|
|
11207
|
+
var publishWorkflowVersionPlugin = definePlugin(
|
|
11208
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11209
|
+
...codeSubstrateDefaults,
|
|
11210
|
+
name: "publishWorkflowVersion",
|
|
11211
|
+
type: "create",
|
|
11212
|
+
itemType: "WorkflowVersion",
|
|
11213
|
+
inputSchema: PublishWorkflowVersionOptionsSchema,
|
|
11214
|
+
outputSchema: PublishWorkflowVersionResponseSchema,
|
|
11215
|
+
resolvers: { workflow: workflowIdResolver },
|
|
11216
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11217
|
+
const body = {
|
|
11218
|
+
source_files: options.source_files
|
|
11219
|
+
};
|
|
11220
|
+
if (options.dependencies !== void 0) {
|
|
11221
|
+
body.dependencies = options.dependencies;
|
|
11222
|
+
}
|
|
11223
|
+
if (options.zapier_durable_version !== void 0) {
|
|
11224
|
+
body.zapier_durable_version = options.zapier_durable_version;
|
|
11225
|
+
}
|
|
11226
|
+
if (options.enabled !== void 0) {
|
|
11227
|
+
body.enabled = options.enabled;
|
|
11228
|
+
}
|
|
11229
|
+
const raw = await sdk2.context.api.post(
|
|
11230
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`,
|
|
11231
|
+
body,
|
|
11232
|
+
{
|
|
11233
|
+
authRequired: true,
|
|
11234
|
+
resource: { type: "workflow", id: options.workflow }
|
|
11235
|
+
}
|
|
11236
|
+
);
|
|
11237
|
+
const data = PublishWorkflowVersionResponseSchema.parse(raw);
|
|
11238
|
+
return { data };
|
|
11239
|
+
}
|
|
11240
|
+
})
|
|
11241
|
+
);
|
|
11242
|
+
var WorkflowVersionListItemSchema = z.object({
|
|
11243
|
+
id: z.string().describe("Workflow version ID (UUID)"),
|
|
11244
|
+
workflow_id: z.string().describe("Parent workflow ID (UUID)"),
|
|
11245
|
+
zapier_durable_version: z.string().describe(
|
|
11246
|
+
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
11247
|
+
),
|
|
11248
|
+
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
11249
|
+
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
11250
|
+
created_at: z.string().describe("When the version was published (ISO-8601)")
|
|
11251
|
+
});
|
|
11252
|
+
var ListWorkflowVersionsOptionsSchema = z.object({
|
|
11253
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11254
|
+
pageSize: z.number().int().min(1).max(100).optional().describe("Number of versions per page (max 100)"),
|
|
11255
|
+
cursor: z.string().optional().describe("Pagination cursor"),
|
|
11256
|
+
maxItems: z.number().int().min(1).optional().describe("Maximum total versions to return across all pages")
|
|
11257
|
+
}).describe("List published versions for a workflow, newest first");
|
|
11258
|
+
var ListWorkflowVersionsApiResponseSchema = z.object({
|
|
11259
|
+
results: z.array(WorkflowVersionListItemSchema),
|
|
11260
|
+
meta: z.object({
|
|
11261
|
+
limit: z.number(),
|
|
11262
|
+
cursor: z.string().nullable().optional(),
|
|
11263
|
+
next_cursor: z.string().nullable().optional()
|
|
11264
|
+
}),
|
|
11265
|
+
links: z.object({
|
|
11266
|
+
next: z.string().nullable().optional()
|
|
11267
|
+
}).optional()
|
|
11268
|
+
});
|
|
11269
|
+
|
|
11270
|
+
// src/plugins/codeSubstrate/listWorkflowVersions/index.ts
|
|
11271
|
+
var listWorkflowVersionsPlugin = definePlugin(
|
|
11272
|
+
(sdk) => createPaginatedPluginMethod(sdk, {
|
|
11273
|
+
...codeSubstrateDefaults,
|
|
11274
|
+
name: "listWorkflowVersions",
|
|
11275
|
+
type: "list",
|
|
11276
|
+
itemType: "WorkflowVersion",
|
|
11277
|
+
inputSchema: ListWorkflowVersionsOptionsSchema,
|
|
11278
|
+
outputSchema: WorkflowVersionListItemSchema,
|
|
11279
|
+
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
11280
|
+
resolvers: { workflow: workflowIdResolver },
|
|
11281
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11282
|
+
const searchParams = {};
|
|
11283
|
+
if (options.pageSize !== void 0) {
|
|
11284
|
+
searchParams.limit = options.pageSize.toString();
|
|
11285
|
+
}
|
|
11286
|
+
if (options.cursor) {
|
|
11287
|
+
searchParams.cursor = options.cursor;
|
|
11288
|
+
}
|
|
11289
|
+
const raw = await sdk2.context.api.get(
|
|
11290
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`,
|
|
11291
|
+
{
|
|
11292
|
+
searchParams,
|
|
11293
|
+
authRequired: true,
|
|
11294
|
+
resource: { type: "workflow", id: options.workflow }
|
|
11295
|
+
}
|
|
11296
|
+
);
|
|
11297
|
+
const response = ListWorkflowVersionsApiResponseSchema.parse(raw);
|
|
11298
|
+
return {
|
|
11299
|
+
data: response.results,
|
|
11300
|
+
nextCursor: response.meta.next_cursor ?? void 0
|
|
11301
|
+
};
|
|
11302
|
+
}
|
|
11303
|
+
})
|
|
11304
|
+
);
|
|
11305
|
+
var GetWorkflowVersionOptionsSchema = z.object({
|
|
11306
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11307
|
+
version: z.string().uuid().describe("Workflow version ID")
|
|
11308
|
+
}).describe("Get full details of a workflow version including source files");
|
|
11309
|
+
var GetWorkflowVersionResponseSchema = z.object({
|
|
11310
|
+
id: z.string().describe("Workflow version ID (UUID)"),
|
|
11311
|
+
workflow_id: z.string().describe("Parent workflow ID (UUID)"),
|
|
11312
|
+
source_files: z.record(z.string(), z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
11313
|
+
zapier_durable_version: z.string().describe(
|
|
11314
|
+
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
11315
|
+
),
|
|
11316
|
+
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
11317
|
+
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
11318
|
+
created_at: z.string().describe("When the version was published (ISO-8601)")
|
|
11319
|
+
});
|
|
11320
|
+
|
|
11321
|
+
// src/plugins/codeSubstrate/getWorkflowVersion/index.ts
|
|
11322
|
+
var getWorkflowVersionPlugin = definePlugin(
|
|
11323
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11324
|
+
...codeSubstrateDefaults,
|
|
11325
|
+
name: "getWorkflowVersion",
|
|
11326
|
+
type: "item",
|
|
11327
|
+
itemType: "WorkflowVersion",
|
|
11328
|
+
inputSchema: GetWorkflowVersionOptionsSchema,
|
|
11329
|
+
outputSchema: GetWorkflowVersionResponseSchema,
|
|
11330
|
+
resolvers: {
|
|
11331
|
+
workflow: workflowIdResolver,
|
|
11332
|
+
version: workflowVersionIdResolver
|
|
11333
|
+
},
|
|
11334
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11335
|
+
const raw = await sdk2.context.api.get(
|
|
11336
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions/${encodeURIComponent(options.version)}`,
|
|
11337
|
+
{
|
|
11338
|
+
authRequired: true,
|
|
11339
|
+
resource: { type: "workflow-version", id: options.version }
|
|
11340
|
+
}
|
|
11341
|
+
);
|
|
11342
|
+
const data = GetWorkflowVersionResponseSchema.parse(raw);
|
|
11343
|
+
return { data };
|
|
11344
|
+
}
|
|
11345
|
+
})
|
|
11346
|
+
);
|
|
11347
|
+
var WorkflowRunStatusSchema = z.union([
|
|
11348
|
+
z.enum(["initialized", "started", "finished", "failed", "cancelled"]),
|
|
11349
|
+
z.string()
|
|
11350
|
+
]).describe(
|
|
11351
|
+
"Workflow run lifecycle status. `finished` / `failed` / `cancelled` are terminal."
|
|
11352
|
+
);
|
|
11353
|
+
var WorkflowRunListItemSchema = z.object({
|
|
11354
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
11355
|
+
trigger_id: z.string().nullable().describe(
|
|
11356
|
+
"ID of the trigger that fired this run, if any. Null for runs created without a trigger."
|
|
11357
|
+
),
|
|
11358
|
+
durable_run_id: z.string().nullable().describe(
|
|
11359
|
+
"Linked sdkdurableapi run ID. Null until the durable run is created."
|
|
11360
|
+
),
|
|
11361
|
+
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to. Null in rare edge cases."),
|
|
11362
|
+
status: WorkflowRunStatusSchema,
|
|
11363
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
11364
|
+
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
11365
|
+
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
11366
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
11367
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
11368
|
+
});
|
|
11369
|
+
var ListWorkflowRunsOptionsSchema = z.object({
|
|
11370
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11371
|
+
pageSize: z.number().int().min(1).max(100).optional().describe("Number of runs per page (max 100)"),
|
|
11372
|
+
cursor: z.string().optional().describe("Pagination cursor"),
|
|
11373
|
+
maxItems: z.number().int().min(1).optional().describe("Maximum total runs to return across all pages")
|
|
11374
|
+
}).describe(
|
|
11375
|
+
"List workflow runs (triggered executions) for a specific deployed workflow, newest first"
|
|
11376
|
+
);
|
|
11377
|
+
var ListWorkflowRunsApiResponseSchema = z.object({
|
|
11378
|
+
results: z.array(WorkflowRunListItemSchema),
|
|
11379
|
+
meta: z.object({
|
|
11380
|
+
limit: z.number(),
|
|
11381
|
+
cursor: z.string().nullable().optional(),
|
|
11382
|
+
next_cursor: z.string().nullable().optional()
|
|
11383
|
+
}),
|
|
11384
|
+
links: z.object({
|
|
11385
|
+
next: z.string().nullable().optional()
|
|
11386
|
+
}).optional()
|
|
11387
|
+
});
|
|
11388
|
+
|
|
11389
|
+
// src/plugins/codeSubstrate/listWorkflowRuns/index.ts
|
|
11390
|
+
var listWorkflowRunsPlugin = definePlugin(
|
|
11391
|
+
(sdk) => createPaginatedPluginMethod(sdk, {
|
|
11392
|
+
...codeSubstrateDefaults,
|
|
11393
|
+
name: "listWorkflowRuns",
|
|
11394
|
+
type: "list",
|
|
11395
|
+
itemType: "WorkflowRun",
|
|
11396
|
+
inputSchema: ListWorkflowRunsOptionsSchema,
|
|
11397
|
+
outputSchema: WorkflowRunListItemSchema,
|
|
11398
|
+
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
11399
|
+
resolvers: { workflow: workflowIdResolver },
|
|
11400
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11401
|
+
const searchParams = {};
|
|
11402
|
+
if (options.pageSize !== void 0) {
|
|
11403
|
+
searchParams.limit = options.pageSize.toString();
|
|
11404
|
+
}
|
|
11405
|
+
if (options.cursor) {
|
|
11406
|
+
searchParams.cursor = options.cursor;
|
|
11407
|
+
}
|
|
11408
|
+
const raw = await sdk2.context.api.get(
|
|
11409
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/runs`,
|
|
11410
|
+
{
|
|
11411
|
+
searchParams,
|
|
11412
|
+
authRequired: true,
|
|
11413
|
+
resource: { type: "workflow", id: options.workflow }
|
|
11414
|
+
}
|
|
11415
|
+
);
|
|
11416
|
+
const response = ListWorkflowRunsApiResponseSchema.parse(raw);
|
|
11417
|
+
return {
|
|
11418
|
+
data: response.results,
|
|
11419
|
+
nextCursor: response.meta.next_cursor ?? void 0
|
|
11420
|
+
};
|
|
11421
|
+
}
|
|
11422
|
+
})
|
|
11423
|
+
);
|
|
11424
|
+
var GetWorkflowRunOptionsSchema = z.object({
|
|
11425
|
+
// Picker-only field — the API endpoint is /workflows/runs/:id and
|
|
11426
|
+
// does not take a workflow id, but the run-id picker is scoped to a
|
|
11427
|
+
// parent workflow so the user can browse runs without enumerating
|
|
11428
|
+
// every run across every workflow on the account.
|
|
11429
|
+
workflow: z.string().uuid().optional().describe(
|
|
11430
|
+
"Parent workflow ID \u2014 used only to scope the CLI run-id picker; ignored by the API call."
|
|
11431
|
+
),
|
|
11432
|
+
run: z.string().uuid().describe("Workflow run ID")
|
|
11433
|
+
}).describe(
|
|
11434
|
+
"Get the current state of a workflow run (a triggered execution of a deployed workflow)"
|
|
11435
|
+
);
|
|
11436
|
+
var GetWorkflowRunResponseSchema = z.object({
|
|
11437
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
11438
|
+
trigger_id: z.string().nullable().describe("ID of the trigger that fired this run, if any"),
|
|
11439
|
+
durable_run_id: z.string().nullable().describe(
|
|
11440
|
+
"Linked sdkdurableapi run ID. Null until the durable run is created."
|
|
11441
|
+
),
|
|
11442
|
+
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to"),
|
|
11443
|
+
status: WorkflowRunStatusSchema,
|
|
11444
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
11445
|
+
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
11446
|
+
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
11447
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
11448
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
11449
|
+
});
|
|
11450
|
+
|
|
11451
|
+
// src/plugins/codeSubstrate/getWorkflowRun/index.ts
|
|
11452
|
+
var getWorkflowRunPlugin = definePlugin(
|
|
11453
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11454
|
+
...codeSubstrateDefaults,
|
|
11455
|
+
name: "getWorkflowRun",
|
|
11456
|
+
type: "item",
|
|
11457
|
+
itemType: "WorkflowRun",
|
|
11458
|
+
inputSchema: GetWorkflowRunOptionsSchema,
|
|
11459
|
+
outputSchema: GetWorkflowRunResponseSchema,
|
|
11460
|
+
resolvers: {
|
|
11461
|
+
workflow: workflowIdResolver,
|
|
11462
|
+
run: workflowRunIdResolver
|
|
11463
|
+
},
|
|
11464
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11465
|
+
const raw = await sdk2.context.api.get(
|
|
11466
|
+
`/durableworkflowzaps/api/v0/workflows/runs/${encodeURIComponent(options.run)}`,
|
|
11467
|
+
{
|
|
11468
|
+
authRequired: true,
|
|
11469
|
+
resource: { type: "workflow-run", id: options.run }
|
|
11470
|
+
}
|
|
11471
|
+
);
|
|
11472
|
+
const data = GetWorkflowRunResponseSchema.parse(raw);
|
|
11473
|
+
return { data };
|
|
11474
|
+
}
|
|
11475
|
+
})
|
|
11476
|
+
);
|
|
11477
|
+
var GetTriggerRunOptionsSchema = z.object({
|
|
11478
|
+
trigger: z.string().uuid().describe("Workflow trigger ID")
|
|
11479
|
+
}).describe(
|
|
11480
|
+
"Get the workflow run associated with a deployed workflow's trigger. Useful immediately after firing a trigger, when you have the trigger ID but not yet the run ID."
|
|
11481
|
+
);
|
|
11482
|
+
var GetTriggerRunResponseSchema = z.object({
|
|
11483
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
11484
|
+
durable_run_id: z.string().nullable().describe(
|
|
11485
|
+
"Linked sdkdurableapi run ID. Null until the durable run is created."
|
|
11486
|
+
),
|
|
11487
|
+
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to"),
|
|
11488
|
+
status: WorkflowRunStatusSchema,
|
|
11489
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
11490
|
+
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
11491
|
+
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
11492
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
11493
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
11494
|
+
});
|
|
11495
|
+
|
|
11496
|
+
// src/plugins/codeSubstrate/getTriggerRun/index.ts
|
|
11497
|
+
var getTriggerRunPlugin = definePlugin(
|
|
11498
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11499
|
+
...codeSubstrateDefaults,
|
|
11500
|
+
name: "getTriggerRun",
|
|
11501
|
+
type: "item",
|
|
11502
|
+
itemType: "WorkflowRun",
|
|
11503
|
+
inputSchema: GetTriggerRunOptionsSchema,
|
|
11504
|
+
outputSchema: GetTriggerRunResponseSchema,
|
|
11505
|
+
// No resolver for `trigger` — users typically have the trigger id
|
|
11506
|
+
// from a recent trigger fire and pass it directly. Authoring a
|
|
11507
|
+
// picker would require listing triggers across all workflows,
|
|
11508
|
+
// which has no clean entry point today.
|
|
11509
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11510
|
+
const raw = await sdk2.context.api.get(
|
|
11511
|
+
`/durableworkflowzaps/api/v0/workflows/triggers/${encodeURIComponent(options.trigger)}/run`,
|
|
11512
|
+
{
|
|
11513
|
+
authRequired: true,
|
|
11514
|
+
resource: { type: "workflow-trigger", id: options.trigger }
|
|
11515
|
+
}
|
|
11516
|
+
);
|
|
11517
|
+
const data = GetTriggerRunResponseSchema.parse(raw);
|
|
11518
|
+
return { data };
|
|
11519
|
+
}
|
|
11520
|
+
})
|
|
11521
|
+
);
|
|
11139
11522
|
|
|
11140
11523
|
// src/utils/batch-utils.ts
|
|
11141
11524
|
var DEFAULT_CONCURRENCY = 10;
|
|
@@ -11295,7 +11678,7 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
11295
11678
|
|
|
11296
11679
|
// src/experimental.ts
|
|
11297
11680
|
function createZapierSdk2(options = {}) {
|
|
11298
|
-
return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(listWorkflowsPlugin).addPlugin(getWorkflowPlugin).addPlugin(createWorkflowPlugin).addPlugin(updateWorkflowPlugin).addPlugin(enableWorkflowPlugin).addPlugin(disableWorkflowPlugin).addPlugin(deleteWorkflowPlugin).addPlugin(listDurableRunsPlugin).addPlugin(getDurableRunPlugin).addPlugin(runDurablePlugin).addPlugin(cancelDurableRunPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
|
|
11681
|
+
return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(listWorkflowsPlugin).addPlugin(getWorkflowPlugin).addPlugin(createWorkflowPlugin).addPlugin(updateWorkflowPlugin).addPlugin(enableWorkflowPlugin).addPlugin(disableWorkflowPlugin).addPlugin(deleteWorkflowPlugin).addPlugin(listDurableRunsPlugin).addPlugin(getDurableRunPlugin).addPlugin(runDurablePlugin).addPlugin(cancelDurableRunPlugin).addPlugin(publishWorkflowVersionPlugin).addPlugin(listWorkflowVersionsPlugin).addPlugin(getWorkflowVersionPlugin).addPlugin(listWorkflowRunsPlugin).addPlugin(getWorkflowRunPlugin).addPlugin(getTriggerRunPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
|
|
11299
11682
|
}
|
|
11300
11683
|
|
|
11301
|
-
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver };
|
|
11684
|
+
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver };
|