@zapier/zapier-sdk 0.62.0 → 0.64.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 +185 -0
- package/dist/experimental.cjs +310 -2
- package/dist/experimental.d.mts +114 -2
- package/dist/experimental.d.ts +112 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +10 -0
- package/dist/experimental.mjs +310 -3
- package/dist/{index-3fBEDEsp.d.mts → index-Bfvj0KLi.d.mts} +15 -1
- package/dist/{index-3fBEDEsp.d.ts → index-Bfvj0KLi.d.ts} +15 -1
- package/dist/index.cjs +22 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +22 -2
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts +40 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.js +27 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/schemas.d.ts +11 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/schemas.js +12 -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/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/plugins/codeSubstrate/runDurable/index.d.ts +53 -0
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/runDurable/index.js +36 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts +24 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.js +61 -0
- package/dist/resolvers/index.d.ts +1 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -0
- package/dist/resolvers/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.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.64.0" : void 0) || "unknown";
|
|
2891
2891
|
|
|
2892
2892
|
// src/utils/open-url.ts
|
|
2893
2893
|
var nodePrefix = "node:";
|
|
@@ -4299,6 +4299,26 @@ 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
|
+
|
|
4302
4322
|
// src/resolvers/triggerMessages.ts
|
|
4303
4323
|
var triggerMessagesResolver = {
|
|
4304
4324
|
type: "dynamic",
|
|
@@ -11017,6 +11037,293 @@ var getDurableRunPlugin = definePlugin(
|
|
|
11017
11037
|
}
|
|
11018
11038
|
})
|
|
11019
11039
|
);
|
|
11040
|
+
var ConnectionMapEntrySchema = z.object({
|
|
11041
|
+
connection_id: z.union([
|
|
11042
|
+
z.string().regex(/^[1-9][0-9]*$/, "must be a positive integer string"),
|
|
11043
|
+
z.string().uuid("must be a UUID"),
|
|
11044
|
+
z.number().int().positive()
|
|
11045
|
+
]).describe(
|
|
11046
|
+
"Zapier connection ID. Accepts a positive integer (legacy) or a UUID string (newer connections)."
|
|
11047
|
+
)
|
|
11048
|
+
});
|
|
11049
|
+
var AppVersionMapEntrySchema = z.object({
|
|
11050
|
+
implementation_name: z.string().min(1).describe("Zapier app implementation name (e.g. `SlackCLIAPI`)"),
|
|
11051
|
+
version: z.string().optional().describe("Pinned app version (e.g. `1.27.1`). Latest if omitted.")
|
|
11052
|
+
});
|
|
11053
|
+
var RunDurableOptionsSchema = z.object({
|
|
11054
|
+
source_files: z.record(z.string(), z.string()).refine((files) => Object.keys(files).length > 0, {
|
|
11055
|
+
message: "source_files must contain at least one file"
|
|
11056
|
+
}).describe("Source files keyed by filename \u2192 contents"),
|
|
11057
|
+
input: z.unknown().optional().describe("Input data passed to the run"),
|
|
11058
|
+
dependencies: z.record(z.string(), z.string()).optional().describe("Optional npm package dependencies"),
|
|
11059
|
+
zapier_durable_version: z.string().optional().describe(
|
|
11060
|
+
'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.'
|
|
11061
|
+
),
|
|
11062
|
+
connections: z.record(z.string(), ConnectionMapEntrySchema).optional().describe(
|
|
11063
|
+
"Named connection aliases. Maps alias names to Zapier connection IDs."
|
|
11064
|
+
),
|
|
11065
|
+
app_versions: z.record(z.string(), AppVersionMapEntrySchema).optional().describe(
|
|
11066
|
+
"Pinned app versions. Maps app keys (slugs) to implementation names and versions."
|
|
11067
|
+
),
|
|
11068
|
+
private: z.boolean().optional().describe("Only the creating user can see the run (default false)")
|
|
11069
|
+
}).describe(
|
|
11070
|
+
"Run a workflow source file as a run-once durable run on sdkdurableapi (no deployed workflow required). Returns the run ID immediately; poll via getDurableRun for terminal status."
|
|
11071
|
+
);
|
|
11072
|
+
var RunDurableResponseSchema = z.object({
|
|
11073
|
+
id: z.string().describe("Run ID (UUID) \u2014 server-generated, time-sortable"),
|
|
11074
|
+
status: z.literal("initialized").describe(
|
|
11075
|
+
"Always `initialized` on creation. Poll via getDurableRun to observe the run advancing to `started` / `finished` / `failed` / `cancelled`."
|
|
11076
|
+
),
|
|
11077
|
+
is_private: z.boolean().describe(
|
|
11078
|
+
"When true, the run is visible only to the creating user; otherwise visible across the account."
|
|
11079
|
+
),
|
|
11080
|
+
created_at: z.string().describe("When the run was created (ISO-8601)")
|
|
11081
|
+
});
|
|
11082
|
+
|
|
11083
|
+
// src/plugins/codeSubstrate/runDurable/index.ts
|
|
11084
|
+
var runDurablePlugin = definePlugin(
|
|
11085
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11086
|
+
...codeSubstrateDefaults,
|
|
11087
|
+
name: "runDurable",
|
|
11088
|
+
type: "create",
|
|
11089
|
+
itemType: "DurableRun",
|
|
11090
|
+
inputSchema: RunDurableOptionsSchema,
|
|
11091
|
+
outputSchema: RunDurableResponseSchema,
|
|
11092
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11093
|
+
const body = {
|
|
11094
|
+
source_files: options.source_files
|
|
11095
|
+
};
|
|
11096
|
+
if (options.input !== void 0) {
|
|
11097
|
+
body.input = options.input;
|
|
11098
|
+
}
|
|
11099
|
+
if (options.dependencies !== void 0) {
|
|
11100
|
+
body.dependencies = options.dependencies;
|
|
11101
|
+
}
|
|
11102
|
+
if (options.zapier_durable_version !== void 0) {
|
|
11103
|
+
body.zapier_durable_version = options.zapier_durable_version;
|
|
11104
|
+
}
|
|
11105
|
+
if (options.connections !== void 0) {
|
|
11106
|
+
body.connections = options.connections;
|
|
11107
|
+
}
|
|
11108
|
+
if (options.app_versions !== void 0) {
|
|
11109
|
+
body.app_versions = options.app_versions;
|
|
11110
|
+
}
|
|
11111
|
+
if (options.private !== void 0) {
|
|
11112
|
+
body.is_private = options.private;
|
|
11113
|
+
}
|
|
11114
|
+
const data = await sdk2.context.api.post(
|
|
11115
|
+
"/sdkdurableapi/api/v0/runs",
|
|
11116
|
+
body,
|
|
11117
|
+
{ authRequired: true }
|
|
11118
|
+
);
|
|
11119
|
+
return { data };
|
|
11120
|
+
}
|
|
11121
|
+
})
|
|
11122
|
+
);
|
|
11123
|
+
var CancelDurableRunOptionsSchema = z.object({
|
|
11124
|
+
run: z.string().uuid().describe("Durable run ID")
|
|
11125
|
+
}).describe(
|
|
11126
|
+
"Cancel a run-once durable run in initialized or started status. Returns 409 if the run is already terminal."
|
|
11127
|
+
);
|
|
11128
|
+
z.object({
|
|
11129
|
+
id: z.string().describe("Run ID that was targeted"),
|
|
11130
|
+
status: z.literal("cancelled").describe(
|
|
11131
|
+
"Always `cancelled` on a successful call. Synthesized client-side \u2014 the backend returns 204; callers needing the run's full state should follow up with getDurableRun."
|
|
11132
|
+
)
|
|
11133
|
+
});
|
|
11134
|
+
|
|
11135
|
+
// src/plugins/codeSubstrate/cancelDurableRun/index.ts
|
|
11136
|
+
var cancelDurableRunPlugin = definePlugin(
|
|
11137
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11138
|
+
...codeSubstrateDefaults,
|
|
11139
|
+
name: "cancelDurableRun",
|
|
11140
|
+
type: "update",
|
|
11141
|
+
itemType: "DurableRun",
|
|
11142
|
+
inputSchema: CancelDurableRunOptionsSchema,
|
|
11143
|
+
resolvers: { run: durableRunIdResolver },
|
|
11144
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11145
|
+
await sdk2.context.api.post(
|
|
11146
|
+
`/sdkdurableapi/api/v0/runs/${encodeURIComponent(options.run)}/cancel`,
|
|
11147
|
+
void 0,
|
|
11148
|
+
{
|
|
11149
|
+
authRequired: true,
|
|
11150
|
+
resource: { type: "run", id: options.run }
|
|
11151
|
+
}
|
|
11152
|
+
);
|
|
11153
|
+
return {
|
|
11154
|
+
data: { id: options.run, status: "cancelled" }
|
|
11155
|
+
};
|
|
11156
|
+
}
|
|
11157
|
+
})
|
|
11158
|
+
);
|
|
11159
|
+
var PublishWorkflowVersionOptionsSchema = z.object({
|
|
11160
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11161
|
+
source_files: z.record(z.string(), z.string()).refine((files) => Object.keys(files).length > 0, {
|
|
11162
|
+
message: "source_files must contain at least one file"
|
|
11163
|
+
}).describe("Source files keyed by filename \u2192 contents"),
|
|
11164
|
+
dependencies: z.record(z.string(), z.string()).optional().describe("Optional npm package dependencies"),
|
|
11165
|
+
zapier_durable_version: z.string().optional().describe(
|
|
11166
|
+
'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.'
|
|
11167
|
+
),
|
|
11168
|
+
enabled: z.boolean().optional().describe(
|
|
11169
|
+
"Enable the workflow after publishing. Defaults to true; pass false to publish without enabling."
|
|
11170
|
+
)
|
|
11171
|
+
}).describe(
|
|
11172
|
+
"Publish a new version of a durable workflow. Enables the workflow by default."
|
|
11173
|
+
);
|
|
11174
|
+
var PublishWorkflowVersionResponseSchema = z.object({
|
|
11175
|
+
id: z.string().describe("Workflow version ID (UUID)"),
|
|
11176
|
+
workflow_id: z.string().describe("Parent workflow ID (UUID)"),
|
|
11177
|
+
source_files: z.record(z.string(), z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
11178
|
+
zapier_durable_version: z.string().describe(
|
|
11179
|
+
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
11180
|
+
),
|
|
11181
|
+
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
11182
|
+
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
11183
|
+
created_at: z.string().describe("When the version was published (ISO-8601)")
|
|
11184
|
+
});
|
|
11185
|
+
|
|
11186
|
+
// src/plugins/codeSubstrate/publishWorkflowVersion/index.ts
|
|
11187
|
+
var publishWorkflowVersionPlugin = definePlugin(
|
|
11188
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11189
|
+
...codeSubstrateDefaults,
|
|
11190
|
+
name: "publishWorkflowVersion",
|
|
11191
|
+
type: "create",
|
|
11192
|
+
itemType: "WorkflowVersion",
|
|
11193
|
+
inputSchema: PublishWorkflowVersionOptionsSchema,
|
|
11194
|
+
outputSchema: PublishWorkflowVersionResponseSchema,
|
|
11195
|
+
resolvers: { workflow: workflowIdResolver },
|
|
11196
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11197
|
+
const body = {
|
|
11198
|
+
source_files: options.source_files
|
|
11199
|
+
};
|
|
11200
|
+
if (options.dependencies !== void 0) {
|
|
11201
|
+
body.dependencies = options.dependencies;
|
|
11202
|
+
}
|
|
11203
|
+
if (options.zapier_durable_version !== void 0) {
|
|
11204
|
+
body.zapier_durable_version = options.zapier_durable_version;
|
|
11205
|
+
}
|
|
11206
|
+
if (options.enabled !== void 0) {
|
|
11207
|
+
body.enabled = options.enabled;
|
|
11208
|
+
}
|
|
11209
|
+
const raw = await sdk2.context.api.post(
|
|
11210
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`,
|
|
11211
|
+
body,
|
|
11212
|
+
{
|
|
11213
|
+
authRequired: true,
|
|
11214
|
+
resource: { type: "workflow", id: options.workflow }
|
|
11215
|
+
}
|
|
11216
|
+
);
|
|
11217
|
+
const data = PublishWorkflowVersionResponseSchema.parse(raw);
|
|
11218
|
+
return { data };
|
|
11219
|
+
}
|
|
11220
|
+
})
|
|
11221
|
+
);
|
|
11222
|
+
var WorkflowVersionListItemSchema = z.object({
|
|
11223
|
+
id: z.string().describe("Workflow version ID (UUID)"),
|
|
11224
|
+
workflow_id: z.string().describe("Parent workflow ID (UUID)"),
|
|
11225
|
+
zapier_durable_version: z.string().describe(
|
|
11226
|
+
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
11227
|
+
),
|
|
11228
|
+
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
11229
|
+
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
11230
|
+
created_at: z.string().describe("When the version was published (ISO-8601)")
|
|
11231
|
+
});
|
|
11232
|
+
var ListWorkflowVersionsOptionsSchema = z.object({
|
|
11233
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11234
|
+
pageSize: z.number().int().min(1).max(100).optional().describe("Number of versions per page (max 100)"),
|
|
11235
|
+
cursor: z.string().optional().describe("Pagination cursor"),
|
|
11236
|
+
maxItems: z.number().int().min(1).optional().describe("Maximum total versions to return across all pages")
|
|
11237
|
+
}).describe("List published versions for a workflow, newest first");
|
|
11238
|
+
var ListWorkflowVersionsApiResponseSchema = z.object({
|
|
11239
|
+
results: z.array(WorkflowVersionListItemSchema),
|
|
11240
|
+
meta: z.object({
|
|
11241
|
+
limit: z.number(),
|
|
11242
|
+
cursor: z.string().nullable().optional(),
|
|
11243
|
+
next_cursor: z.string().nullable().optional()
|
|
11244
|
+
}),
|
|
11245
|
+
links: z.object({
|
|
11246
|
+
next: z.string().nullable().optional()
|
|
11247
|
+
}).optional()
|
|
11248
|
+
});
|
|
11249
|
+
|
|
11250
|
+
// src/plugins/codeSubstrate/listWorkflowVersions/index.ts
|
|
11251
|
+
var listWorkflowVersionsPlugin = definePlugin(
|
|
11252
|
+
(sdk) => createPaginatedPluginMethod(sdk, {
|
|
11253
|
+
...codeSubstrateDefaults,
|
|
11254
|
+
name: "listWorkflowVersions",
|
|
11255
|
+
type: "list",
|
|
11256
|
+
itemType: "WorkflowVersion",
|
|
11257
|
+
inputSchema: ListWorkflowVersionsOptionsSchema,
|
|
11258
|
+
outputSchema: WorkflowVersionListItemSchema,
|
|
11259
|
+
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
11260
|
+
resolvers: { workflow: workflowIdResolver },
|
|
11261
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11262
|
+
const searchParams = {};
|
|
11263
|
+
if (options.pageSize !== void 0) {
|
|
11264
|
+
searchParams.limit = options.pageSize.toString();
|
|
11265
|
+
}
|
|
11266
|
+
if (options.cursor) {
|
|
11267
|
+
searchParams.cursor = options.cursor;
|
|
11268
|
+
}
|
|
11269
|
+
const raw = await sdk2.context.api.get(
|
|
11270
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`,
|
|
11271
|
+
{
|
|
11272
|
+
searchParams,
|
|
11273
|
+
authRequired: true,
|
|
11274
|
+
resource: { type: "workflow", id: options.workflow }
|
|
11275
|
+
}
|
|
11276
|
+
);
|
|
11277
|
+
const response = ListWorkflowVersionsApiResponseSchema.parse(raw);
|
|
11278
|
+
return {
|
|
11279
|
+
data: response.results,
|
|
11280
|
+
nextCursor: response.meta.next_cursor ?? void 0
|
|
11281
|
+
};
|
|
11282
|
+
}
|
|
11283
|
+
})
|
|
11284
|
+
);
|
|
11285
|
+
var GetWorkflowVersionOptionsSchema = z.object({
|
|
11286
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11287
|
+
version: z.string().uuid().describe("Workflow version ID")
|
|
11288
|
+
}).describe("Get full details of a workflow version including source files");
|
|
11289
|
+
var GetWorkflowVersionResponseSchema = z.object({
|
|
11290
|
+
id: z.string().describe("Workflow version ID (UUID)"),
|
|
11291
|
+
workflow_id: z.string().describe("Parent workflow ID (UUID)"),
|
|
11292
|
+
source_files: z.record(z.string(), z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
11293
|
+
zapier_durable_version: z.string().describe(
|
|
11294
|
+
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
11295
|
+
),
|
|
11296
|
+
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
11297
|
+
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
11298
|
+
created_at: z.string().describe("When the version was published (ISO-8601)")
|
|
11299
|
+
});
|
|
11300
|
+
|
|
11301
|
+
// src/plugins/codeSubstrate/getWorkflowVersion/index.ts
|
|
11302
|
+
var getWorkflowVersionPlugin = definePlugin(
|
|
11303
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11304
|
+
...codeSubstrateDefaults,
|
|
11305
|
+
name: "getWorkflowVersion",
|
|
11306
|
+
type: "item",
|
|
11307
|
+
itemType: "WorkflowVersion",
|
|
11308
|
+
inputSchema: GetWorkflowVersionOptionsSchema,
|
|
11309
|
+
outputSchema: GetWorkflowVersionResponseSchema,
|
|
11310
|
+
resolvers: {
|
|
11311
|
+
workflow: workflowIdResolver,
|
|
11312
|
+
version: workflowVersionIdResolver
|
|
11313
|
+
},
|
|
11314
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11315
|
+
const raw = await sdk2.context.api.get(
|
|
11316
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions/${encodeURIComponent(options.version)}`,
|
|
11317
|
+
{
|
|
11318
|
+
authRequired: true,
|
|
11319
|
+
resource: { type: "workflow-version", id: options.version }
|
|
11320
|
+
}
|
|
11321
|
+
);
|
|
11322
|
+
const data = GetWorkflowVersionResponseSchema.parse(raw);
|
|
11323
|
+
return { data };
|
|
11324
|
+
}
|
|
11325
|
+
})
|
|
11326
|
+
);
|
|
11020
11327
|
|
|
11021
11328
|
// src/utils/batch-utils.ts
|
|
11022
11329
|
var DEFAULT_CONCURRENCY = 10;
|
|
@@ -11176,7 +11483,7 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
11176
11483
|
|
|
11177
11484
|
// src/experimental.ts
|
|
11178
11485
|
function createZapierSdk2(options = {}) {
|
|
11179
|
-
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(appsPlugin).addPlugin(getProfilePlugin);
|
|
11486
|
+
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(appsPlugin).addPlugin(getProfilePlugin);
|
|
11180
11487
|
}
|
|
11181
11488
|
|
|
11182
|
-
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 };
|
|
11489
|
+
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, workflowVersionIdResolver };
|
|
@@ -8620,6 +8620,20 @@ type RunItem = z.infer<typeof RunItemSchema>;
|
|
|
8620
8620
|
|
|
8621
8621
|
declare const durableRunIdResolver: DynamicResolver<RunItem, {}>;
|
|
8622
8622
|
|
|
8623
|
+
declare const WorkflowVersionListItemSchema: z.ZodObject<{
|
|
8624
|
+
id: z.ZodString;
|
|
8625
|
+
workflow_id: z.ZodString;
|
|
8626
|
+
zapier_durable_version: z.ZodString;
|
|
8627
|
+
dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8628
|
+
created_by_user_id: z.ZodString;
|
|
8629
|
+
created_at: z.ZodString;
|
|
8630
|
+
}, z.core.$strip>;
|
|
8631
|
+
type WorkflowVersionListItem = z.infer<typeof WorkflowVersionListItemSchema>;
|
|
8632
|
+
|
|
8633
|
+
declare const workflowVersionIdResolver: DynamicResolver<WorkflowVersionListItem, {
|
|
8634
|
+
workflow: string;
|
|
8635
|
+
}>;
|
|
8636
|
+
|
|
8623
8637
|
declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
|
|
8624
8638
|
inbox: string;
|
|
8625
8639
|
}>;
|
|
@@ -9853,4 +9867,4 @@ declare const registryPlugin: (sdk: {
|
|
|
9853
9867
|
};
|
|
9854
9868
|
}) => {};
|
|
9855
9869
|
|
|
9856
|
-
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableFieldIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, triggerMessagesResolver as cY, tableRecordIdResolver as cZ, tableRecordIdsResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, DEFAULT_APPROVAL_TIMEOUT_MS as d$, tableNameResolver as d0, tableFieldsResolver as d1, tableRecordsResolver as d2, tableUpdateRecordsResolver as d3, tableFiltersResolver as d4, tableSortResolver as d5, type ResolveAuthTokenOptions as d6, clearTokenCache as d7, invalidateCachedToken as d8, injectCliLogin as d9, getBaseUrlFromCredentials as dA, getClientIdFromCredentials as dB, ClientCredentialsObjectSchema as dC, PkceCredentialsObjectSchema as dD, CredentialsObjectSchema as dE, ResolvedCredentialsSchema as dF, CredentialsFunctionSchema as dG, type CredentialsFunction as dH, CredentialsSchema as dI, ConnectionEntrySchema as dJ, type ConnectionEntry as dK, ConnectionsMapSchema as dL, type ConnectionsMap as dM, connectionsPlugin as dN, type ConnectionsPluginProvides as dO, ZAPIER_BASE_URL as dP, getZapierSdkService as dQ, MAX_PAGE_LIMIT as dR, DEFAULT_PAGE_SIZE as dS, DEFAULT_ACTION_TIMEOUT_MS as dT, ZAPIER_MAX_NETWORK_RETRIES as dU, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dV, MAX_CONCURRENCY_LIMIT as dW, parseConcurrencyEnvVar as dX, ZAPIER_MAX_CONCURRENT_REQUESTS as dY, getZapierApprovalMode as dZ, getZapierDefaultApprovalMode as d_, isCliLoginAvailable as da, getTokenFromCliLogin as db, resolveAuthToken as dc, invalidateCredentialsToken as dd, type ZapierCache as de, type ZapierCacheEntry as df, type ZapierCacheSetOptions as dg, createMemoryCache as dh, type SdkEvent as di, type AuthEvent as dj, type ApiEvent as dk, type LoadingEvent as dl, type EventCallback as dm, type Credentials as dn, type ResolvedCredentials as dp, type CredentialsObject as dq, type ClientCredentialsObject as dr, type PkceCredentialsObject as ds, isClientCredentials as dt, isPkceCredentials as du, isCredentialsObject as dv, isCredentialsFunction as dw, type ResolveCredentialsOptions as dx, resolveCredentialsFromEnv as dy, resolveCredentials as dz, type PaginatedSdkResult as e, DEFAULT_MAX_APPROVAL_RETRIES as e0, listTablesPlugin as e1, type ListTablesPluginProvides as e2, getTablePlugin as e3, type GetTablePluginProvides as e4, createTablePlugin as e5, type CreateTablePluginProvides as e6, deleteTablePlugin as e7, type DeleteTablePluginProvides as e8, listTableFieldsPlugin as e9, createBaseEvent as eA, buildMethodCalledEvent as eB, type BaseEvent as eC, type MethodCalledEvent as eD, generateEventId as eE, getCurrentTimestamp as eF, getReleaseId as eG, getOsInfo as eH, getPlatformVersions as eI, isCi as eJ, getCiPlatform as eK, getMemoryUsage as eL, getCpuTime as eM, createZapierSdk as eN, type ZapierSdk as eO, type ListTableFieldsPluginProvides as ea, createTableFieldsPlugin as eb, type CreateTableFieldsPluginProvides as ec, deleteTableFieldsPlugin as ed, type DeleteTableFieldsPluginProvides as ee, getTableRecordPlugin as ef, type GetTableRecordPluginProvides as eg, listTableRecordsPlugin as eh, type ListTableRecordsPluginProvides as ei, createTableRecordsPlugin as ej, type CreateTableRecordsPluginProvides as ek, deleteTableRecordsPlugin as el, type DeleteTableRecordsPluginProvides as em, updateTableRecordsPlugin as en, type UpdateTableRecordsPluginProvides as eo, cleanupEventListeners as ep, type EventEmissionConfig as eq, eventEmissionPlugin as er, type EventEmissionProvides as es, type EventContext as et, type ApplicationLifecycleEventData as eu, type EnhancedErrorEventData as ev, type MethodCalledEventData as ew, buildApplicationLifecycleEvent as ex, buildErrorEventWithContext as ey, buildErrorEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
|
9870
|
+
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableRecordIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, workflowVersionIdResolver as cY, triggerMessagesResolver as cZ, tableRecordIdResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, getZapierDefaultApprovalMode as d$, tableFieldIdsResolver as d0, tableNameResolver as d1, tableFieldsResolver as d2, tableRecordsResolver as d3, tableUpdateRecordsResolver as d4, tableFiltersResolver as d5, tableSortResolver as d6, type ResolveAuthTokenOptions as d7, clearTokenCache as d8, invalidateCachedToken as d9, resolveCredentials as dA, getBaseUrlFromCredentials as dB, getClientIdFromCredentials as dC, ClientCredentialsObjectSchema as dD, PkceCredentialsObjectSchema as dE, CredentialsObjectSchema as dF, ResolvedCredentialsSchema as dG, CredentialsFunctionSchema as dH, type CredentialsFunction as dI, CredentialsSchema as dJ, ConnectionEntrySchema as dK, type ConnectionEntry as dL, ConnectionsMapSchema as dM, type ConnectionsMap as dN, connectionsPlugin as dO, type ConnectionsPluginProvides as dP, ZAPIER_BASE_URL as dQ, getZapierSdkService as dR, MAX_PAGE_LIMIT as dS, DEFAULT_PAGE_SIZE as dT, DEFAULT_ACTION_TIMEOUT_MS as dU, ZAPIER_MAX_NETWORK_RETRIES as dV, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dW, MAX_CONCURRENCY_LIMIT as dX, parseConcurrencyEnvVar as dY, ZAPIER_MAX_CONCURRENT_REQUESTS as dZ, getZapierApprovalMode as d_, injectCliLogin as da, isCliLoginAvailable as db, getTokenFromCliLogin as dc, resolveAuthToken as dd, invalidateCredentialsToken as de, type ZapierCache as df, type ZapierCacheEntry as dg, type ZapierCacheSetOptions as dh, createMemoryCache as di, type SdkEvent as dj, type AuthEvent as dk, type ApiEvent as dl, type LoadingEvent as dm, type EventCallback as dn, type Credentials as dp, type ResolvedCredentials as dq, type CredentialsObject as dr, type ClientCredentialsObject as ds, type PkceCredentialsObject as dt, isClientCredentials as du, isPkceCredentials as dv, isCredentialsObject as dw, isCredentialsFunction as dx, type ResolveCredentialsOptions as dy, resolveCredentialsFromEnv as dz, type PaginatedSdkResult as e, DEFAULT_APPROVAL_TIMEOUT_MS as e0, DEFAULT_MAX_APPROVAL_RETRIES as e1, listTablesPlugin as e2, type ListTablesPluginProvides as e3, getTablePlugin as e4, type GetTablePluginProvides as e5, createTablePlugin as e6, type CreateTablePluginProvides as e7, deleteTablePlugin as e8, type DeleteTablePluginProvides as e9, buildErrorEvent as eA, createBaseEvent as eB, buildMethodCalledEvent as eC, type BaseEvent as eD, type MethodCalledEvent as eE, generateEventId as eF, getCurrentTimestamp as eG, getReleaseId as eH, getOsInfo as eI, getPlatformVersions as eJ, isCi as eK, getCiPlatform as eL, getMemoryUsage as eM, getCpuTime as eN, createZapierSdk as eO, type ZapierSdk as eP, listTableFieldsPlugin as ea, type ListTableFieldsPluginProvides as eb, createTableFieldsPlugin as ec, type CreateTableFieldsPluginProvides as ed, deleteTableFieldsPlugin as ee, type DeleteTableFieldsPluginProvides as ef, getTableRecordPlugin as eg, type GetTableRecordPluginProvides as eh, listTableRecordsPlugin as ei, type ListTableRecordsPluginProvides as ej, createTableRecordsPlugin as ek, type CreateTableRecordsPluginProvides as el, deleteTableRecordsPlugin as em, type DeleteTableRecordsPluginProvides as en, updateTableRecordsPlugin as eo, type UpdateTableRecordsPluginProvides as ep, cleanupEventListeners as eq, type EventEmissionConfig as er, eventEmissionPlugin as es, type EventEmissionProvides as et, type EventContext as eu, type ApplicationLifecycleEventData as ev, type EnhancedErrorEventData as ew, type MethodCalledEventData as ex, buildApplicationLifecycleEvent as ey, buildErrorEventWithContext as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
|
@@ -8620,6 +8620,20 @@ type RunItem = z.infer<typeof RunItemSchema>;
|
|
|
8620
8620
|
|
|
8621
8621
|
declare const durableRunIdResolver: DynamicResolver<RunItem, {}>;
|
|
8622
8622
|
|
|
8623
|
+
declare const WorkflowVersionListItemSchema: z.ZodObject<{
|
|
8624
|
+
id: z.ZodString;
|
|
8625
|
+
workflow_id: z.ZodString;
|
|
8626
|
+
zapier_durable_version: z.ZodString;
|
|
8627
|
+
dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8628
|
+
created_by_user_id: z.ZodString;
|
|
8629
|
+
created_at: z.ZodString;
|
|
8630
|
+
}, z.core.$strip>;
|
|
8631
|
+
type WorkflowVersionListItem = z.infer<typeof WorkflowVersionListItemSchema>;
|
|
8632
|
+
|
|
8633
|
+
declare const workflowVersionIdResolver: DynamicResolver<WorkflowVersionListItem, {
|
|
8634
|
+
workflow: string;
|
|
8635
|
+
}>;
|
|
8636
|
+
|
|
8623
8637
|
declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
|
|
8624
8638
|
inbox: string;
|
|
8625
8639
|
}>;
|
|
@@ -9853,4 +9867,4 @@ declare const registryPlugin: (sdk: {
|
|
|
9853
9867
|
};
|
|
9854
9868
|
}) => {};
|
|
9855
9869
|
|
|
9856
|
-
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableFieldIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, triggerMessagesResolver as cY, tableRecordIdResolver as cZ, tableRecordIdsResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, DEFAULT_APPROVAL_TIMEOUT_MS as d$, tableNameResolver as d0, tableFieldsResolver as d1, tableRecordsResolver as d2, tableUpdateRecordsResolver as d3, tableFiltersResolver as d4, tableSortResolver as d5, type ResolveAuthTokenOptions as d6, clearTokenCache as d7, invalidateCachedToken as d8, injectCliLogin as d9, getBaseUrlFromCredentials as dA, getClientIdFromCredentials as dB, ClientCredentialsObjectSchema as dC, PkceCredentialsObjectSchema as dD, CredentialsObjectSchema as dE, ResolvedCredentialsSchema as dF, CredentialsFunctionSchema as dG, type CredentialsFunction as dH, CredentialsSchema as dI, ConnectionEntrySchema as dJ, type ConnectionEntry as dK, ConnectionsMapSchema as dL, type ConnectionsMap as dM, connectionsPlugin as dN, type ConnectionsPluginProvides as dO, ZAPIER_BASE_URL as dP, getZapierSdkService as dQ, MAX_PAGE_LIMIT as dR, DEFAULT_PAGE_SIZE as dS, DEFAULT_ACTION_TIMEOUT_MS as dT, ZAPIER_MAX_NETWORK_RETRIES as dU, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dV, MAX_CONCURRENCY_LIMIT as dW, parseConcurrencyEnvVar as dX, ZAPIER_MAX_CONCURRENT_REQUESTS as dY, getZapierApprovalMode as dZ, getZapierDefaultApprovalMode as d_, isCliLoginAvailable as da, getTokenFromCliLogin as db, resolveAuthToken as dc, invalidateCredentialsToken as dd, type ZapierCache as de, type ZapierCacheEntry as df, type ZapierCacheSetOptions as dg, createMemoryCache as dh, type SdkEvent as di, type AuthEvent as dj, type ApiEvent as dk, type LoadingEvent as dl, type EventCallback as dm, type Credentials as dn, type ResolvedCredentials as dp, type CredentialsObject as dq, type ClientCredentialsObject as dr, type PkceCredentialsObject as ds, isClientCredentials as dt, isPkceCredentials as du, isCredentialsObject as dv, isCredentialsFunction as dw, type ResolveCredentialsOptions as dx, resolveCredentialsFromEnv as dy, resolveCredentials as dz, type PaginatedSdkResult as e, DEFAULT_MAX_APPROVAL_RETRIES as e0, listTablesPlugin as e1, type ListTablesPluginProvides as e2, getTablePlugin as e3, type GetTablePluginProvides as e4, createTablePlugin as e5, type CreateTablePluginProvides as e6, deleteTablePlugin as e7, type DeleteTablePluginProvides as e8, listTableFieldsPlugin as e9, createBaseEvent as eA, buildMethodCalledEvent as eB, type BaseEvent as eC, type MethodCalledEvent as eD, generateEventId as eE, getCurrentTimestamp as eF, getReleaseId as eG, getOsInfo as eH, getPlatformVersions as eI, isCi as eJ, getCiPlatform as eK, getMemoryUsage as eL, getCpuTime as eM, createZapierSdk as eN, type ZapierSdk as eO, type ListTableFieldsPluginProvides as ea, createTableFieldsPlugin as eb, type CreateTableFieldsPluginProvides as ec, deleteTableFieldsPlugin as ed, type DeleteTableFieldsPluginProvides as ee, getTableRecordPlugin as ef, type GetTableRecordPluginProvides as eg, listTableRecordsPlugin as eh, type ListTableRecordsPluginProvides as ei, createTableRecordsPlugin as ej, type CreateTableRecordsPluginProvides as ek, deleteTableRecordsPlugin as el, type DeleteTableRecordsPluginProvides as em, updateTableRecordsPlugin as en, type UpdateTableRecordsPluginProvides as eo, cleanupEventListeners as ep, type EventEmissionConfig as eq, eventEmissionPlugin as er, type EventEmissionProvides as es, type EventContext as et, type ApplicationLifecycleEventData as eu, type EnhancedErrorEventData as ev, type MethodCalledEventData as ew, buildApplicationLifecycleEvent as ex, buildErrorEventWithContext as ey, buildErrorEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
|
9870
|
+
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableRecordIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, workflowVersionIdResolver as cY, triggerMessagesResolver as cZ, tableRecordIdResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, getZapierDefaultApprovalMode as d$, tableFieldIdsResolver as d0, tableNameResolver as d1, tableFieldsResolver as d2, tableRecordsResolver as d3, tableUpdateRecordsResolver as d4, tableFiltersResolver as d5, tableSortResolver as d6, type ResolveAuthTokenOptions as d7, clearTokenCache as d8, invalidateCachedToken as d9, resolveCredentials as dA, getBaseUrlFromCredentials as dB, getClientIdFromCredentials as dC, ClientCredentialsObjectSchema as dD, PkceCredentialsObjectSchema as dE, CredentialsObjectSchema as dF, ResolvedCredentialsSchema as dG, CredentialsFunctionSchema as dH, type CredentialsFunction as dI, CredentialsSchema as dJ, ConnectionEntrySchema as dK, type ConnectionEntry as dL, ConnectionsMapSchema as dM, type ConnectionsMap as dN, connectionsPlugin as dO, type ConnectionsPluginProvides as dP, ZAPIER_BASE_URL as dQ, getZapierSdkService as dR, MAX_PAGE_LIMIT as dS, DEFAULT_PAGE_SIZE as dT, DEFAULT_ACTION_TIMEOUT_MS as dU, ZAPIER_MAX_NETWORK_RETRIES as dV, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dW, MAX_CONCURRENCY_LIMIT as dX, parseConcurrencyEnvVar as dY, ZAPIER_MAX_CONCURRENT_REQUESTS as dZ, getZapierApprovalMode as d_, injectCliLogin as da, isCliLoginAvailable as db, getTokenFromCliLogin as dc, resolveAuthToken as dd, invalidateCredentialsToken as de, type ZapierCache as df, type ZapierCacheEntry as dg, type ZapierCacheSetOptions as dh, createMemoryCache as di, type SdkEvent as dj, type AuthEvent as dk, type ApiEvent as dl, type LoadingEvent as dm, type EventCallback as dn, type Credentials as dp, type ResolvedCredentials as dq, type CredentialsObject as dr, type ClientCredentialsObject as ds, type PkceCredentialsObject as dt, isClientCredentials as du, isPkceCredentials as dv, isCredentialsObject as dw, isCredentialsFunction as dx, type ResolveCredentialsOptions as dy, resolveCredentialsFromEnv as dz, type PaginatedSdkResult as e, DEFAULT_APPROVAL_TIMEOUT_MS as e0, DEFAULT_MAX_APPROVAL_RETRIES as e1, listTablesPlugin as e2, type ListTablesPluginProvides as e3, getTablePlugin as e4, type GetTablePluginProvides as e5, createTablePlugin as e6, type CreateTablePluginProvides as e7, deleteTablePlugin as e8, type DeleteTablePluginProvides as e9, buildErrorEvent as eA, createBaseEvent as eB, buildMethodCalledEvent as eC, type BaseEvent as eD, type MethodCalledEvent as eE, generateEventId as eF, getCurrentTimestamp as eG, getReleaseId as eH, getOsInfo as eI, getPlatformVersions as eJ, isCi as eK, getCiPlatform as eL, getMemoryUsage as eM, getCpuTime as eN, createZapierSdk as eO, type ZapierSdk as eP, listTableFieldsPlugin as ea, type ListTableFieldsPluginProvides as eb, createTableFieldsPlugin as ec, type CreateTableFieldsPluginProvides as ed, deleteTableFieldsPlugin as ee, type DeleteTableFieldsPluginProvides as ef, getTableRecordPlugin as eg, type GetTableRecordPluginProvides as eh, listTableRecordsPlugin as ei, type ListTableRecordsPluginProvides as ej, createTableRecordsPlugin as ek, type CreateTableRecordsPluginProvides as el, deleteTableRecordsPlugin as em, type DeleteTableRecordsPluginProvides as en, updateTableRecordsPlugin as eo, type UpdateTableRecordsPluginProvides as ep, cleanupEventListeners as eq, type EventEmissionConfig as er, eventEmissionPlugin as es, type EventEmissionProvides as et, type EventContext as eu, type ApplicationLifecycleEventData as ev, type EnhancedErrorEventData as ew, type MethodCalledEventData as ex, buildApplicationLifecycleEvent as ey, buildErrorEventWithContext as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
package/dist/index.cjs
CHANGED
|
@@ -2605,6 +2605,26 @@ var durableRunIdResolver = {
|
|
|
2605
2605
|
})
|
|
2606
2606
|
};
|
|
2607
2607
|
|
|
2608
|
+
// src/resolvers/workflowVersionId.ts
|
|
2609
|
+
var workflowVersionIdResolver = {
|
|
2610
|
+
type: "dynamic",
|
|
2611
|
+
depends: ["workflow"],
|
|
2612
|
+
fetch: async (sdk, params) => toIterable(
|
|
2613
|
+
sdk.listWorkflowVersions({
|
|
2614
|
+
workflow: params.workflow
|
|
2615
|
+
})
|
|
2616
|
+
),
|
|
2617
|
+
prompt: (versions) => ({
|
|
2618
|
+
type: "list",
|
|
2619
|
+
name: "version",
|
|
2620
|
+
message: "Select a workflow version:",
|
|
2621
|
+
choices: versions.map((v) => ({
|
|
2622
|
+
name: `${v.id} \u2014 ${v.zapier_durable_version}`,
|
|
2623
|
+
value: v.id
|
|
2624
|
+
}))
|
|
2625
|
+
})
|
|
2626
|
+
};
|
|
2627
|
+
|
|
2608
2628
|
// src/resolvers/triggerMessages.ts
|
|
2609
2629
|
var triggerMessagesResolver = {
|
|
2610
2630
|
type: "dynamic",
|
|
@@ -6354,7 +6374,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
6354
6374
|
}
|
|
6355
6375
|
|
|
6356
6376
|
// src/sdk-version.ts
|
|
6357
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6377
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.64.0" : void 0) || "unknown";
|
|
6358
6378
|
|
|
6359
6379
|
// src/utils/open-url.ts
|
|
6360
6380
|
var nodePrefix = "node:";
|
|
@@ -9407,3 +9427,4 @@ exports.triggerInboxResolver = triggerInboxResolver;
|
|
|
9407
9427
|
exports.triggerMessagesResolver = triggerMessagesResolver;
|
|
9408
9428
|
exports.updateTableRecordsPlugin = updateTableRecordsPlugin;
|
|
9409
9429
|
exports.workflowIdResolver = workflowIdResolver;
|
|
9430
|
+
exports.workflowVersionIdResolver = workflowVersionIdResolver;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { u as Action, d as ActionEntry, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bB as ApiError,
|
|
1
|
+
export { u as Action, d as ActionEntry, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bB as ApiError, dl as ApiEvent, cH as ApiPluginOptions, cJ as ApiPluginProvides, v as App, b_ as AppFactoryInput, az as AppItem, b9 as AppKeyProperty, aJ as AppKeyPropertySchema, ba as AppProperty, aK as AppPropertySchema, ev as ApplicationLifecycleEventData, bS as ApprovalStatus, bY as AppsPluginProvides, bt as AppsProperty, b1 as AppsPropertySchema, a0 as ArrayResolver, dk as AuthEvent, bh as AuthenticationIdProperty, aQ as AuthenticationIdPropertySchema, eD as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MS, x as Choice, ds as ClientCredentialsObject, dD as ClientCredentialsObjectSchema, K as Connection, dL as ConnectionEntry, dK as ConnectionEntrySchema, bf as ConnectionIdProperty, aP as ConnectionIdPropertySchema, aA as ConnectionItem, bg as ConnectionProperty, aR as ConnectionPropertySchema, dN as ConnectionsMap, dM as ConnectionsMapSchema, dP as ConnectionsPluginProvides, bv as ConnectionsProperty, b3 as ConnectionsPropertySchema, O as ConnectionsResponse, cg as CreateClientCredentialsPluginProvides, ed as CreateTableFieldsPluginProvides, e7 as CreateTablePluginProvides, el as CreateTableRecordsPluginProvides, dp as Credentials, dI as CredentialsFunction, dH as CredentialsFunctionSchema, dr as CredentialsObject, dF as CredentialsObjectSchema, dJ as CredentialsSchema, dU as DEFAULT_ACTION_TIMEOUT_MS, e0 as DEFAULT_APPROVAL_TIMEOUT_MS, cD as DEFAULT_CONFIG_PATH, e1 as DEFAULT_MAX_APPROVAL_RETRIES, dT as DEFAULT_PAGE_SIZE, bm as DebugProperty, aW as DebugPropertySchema, ci as DeleteClientCredentialsPluginProvides, ef as DeleteTableFieldsPluginProvides, e9 as DeleteTablePluginProvides, en as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a3 as DynamicListResolver, i as DynamicResolver, a4 as DynamicSearchResolver, ew as EnhancedErrorEventData, bC as ErrorOptions, dn as EventCallback, eu as EventContext, er as EventEmissionConfig, E as EventEmissionContext, et as EventEmissionProvides, c0 as FetchPluginProvides, w as Field, bs as FieldsProperty, b0 as FieldsPropertySchema, a5 as FieldsResolver, F as FieldsetItem, s as FindFirstAuthenticationPluginProvides, cq as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cs as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, aG as FunctionOptions, aj as FunctionRegistryEntry, ca as GetActionInputFieldsSchemaPluginProvides, cm as GetActionPluginProvides, ck as GetAppPluginProvides, G as GetAuthenticationPluginProvides, co as GetConnectionPluginProvides, cG as GetProfilePluginProvides, e5 as GetTablePluginProvides, eh as GetTableRecordPluginProvides, aD as InfoFieldItem, aC as InputFieldItem, be as InputFieldProperty, aO as InputFieldPropertySchema, bi as InputsProperty, aS as InputsPropertySchema, bA as LeaseLimitProperty, b8 as LeaseLimitPropertySchema, by as LeaseProperty, b6 as LeasePropertySchema, bz as LeaseSecondsProperty, b7 as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bj as LimitProperty, aT as LimitPropertySchema, c8 as ListActionInputFieldChoicesPluginProvides, c6 as ListActionInputFieldsPluginProvides, c4 as ListActionsPluginProvides, c2 as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, ce as ListClientCredentialsPluginProvides, cc as ListConnectionsPluginProvides, eb as ListTableFieldsPluginProvides, ej as ListTableRecordsPluginProvides, e3 as ListTablesPluginProvides, dm as LoadingEvent, dX as MAX_CONCURRENCY_LIMIT, dS as MAX_PAGE_LIMIT, M as Manifest, cE as ManifestEntry, cz as ManifestPluginOptions, cC as ManifestPluginProvides, eE as MethodCalledEvent, ex as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bk as OffsetProperty, aU as OffsetPropertySchema, _ as OutputFormatter, bl as OutputProperty, aV as OutputPropertySchema, aI as PaginatedSdkFunction, e as PaginatedSdkResult, bn as ParamsProperty, aX as ParamsPropertySchema, dt as PkceCredentialsObject, dE as PkceCredentialsObjectSchema, am as Plugin, P as PluginMeta, an as PluginProvides, aw as PollOptions, g as PositionalMetadata, bQ as RateLimitInfo, bq as RecordProperty, a_ as RecordPropertySchema, br as RecordsProperty, a$ as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cy as RequestPluginProvides, d7 as ResolveAuthTokenOptions, dy as ResolveCredentialsOptions, R as ResolvedAppLocator, dq as ResolvedCredentials, dG as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aE as RootFieldItem, cw as RunActionPluginProvides, dj as SdkEvent, aH as SdkPage, a2 as StaticResolver, bp as TableProperty, aZ as TablePropertySchema, bu as TablesProperty, b2 as TablesPropertySchema, bx as TriggerInboxNameProperty, b5 as TriggerInboxNamePropertySchema, bw as TriggerInboxProperty, b4 as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, ep as UpdateTableRecordsPluginProvides, Q as UserProfile, aF as UserProfileItem, j as WatchTriggerInboxOptions, W as WithAddPlugin, dQ as ZAPIER_BASE_URL, dZ as ZAPIER_MAX_CONCURRENT_REQUESTS, dV as ZAPIER_MAX_NETWORK_RETRIES, dW as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, bO as ZapierActionError, bE as ZapierApiError, bF as ZapierAppNotFoundError, bT as ZapierApprovalError, bI as ZapierAuthenticationError, bM as ZapierBundleError, df as ZapierCache, dg as ZapierCacheEntry, dh as ZapierCacheSetOptions, bL as ZapierConfigurationError, bP as ZapierConflictError, bD as ZapierError, h as ZapierFetchInitOptions, bJ as ZapierNotFoundError, bR as ZapierRateLimitError, bU as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bK as ZapierResourceNotFoundError, eP as ZapierSdk, l as ZapierSdkApps, Z as ZapierSdkOptions, bW as ZapierSignal, bN as ZapierTimeoutError, bH as ZapierUnknownError, bG as ZapierValidationError, cM as actionKeyResolver, cL as actionTypeResolver, cI as apiPlugin, cK as appKeyResolver, bX as appsPlugin, cO as authenticationIdGenericResolver, cN as authenticationIdResolver, a9 as batch, ey as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, eA as buildErrorEvent, ez as buildErrorEventWithContext, eC as buildMethodCalledEvent, eq as cleanupEventListeners, d8 as clearTokenCache, cS as clientCredentialsNameResolver, cT as clientIdResolver, ar as composePlugins, cO as connectionIdGenericResolver, cN as connectionIdResolver, dO as connectionsPlugin, eB as createBaseEvent, cf as createClientCredentialsPlugin, V as createFunction, di as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, ec as createTableFieldsPlugin, e6 as createTablePlugin, ek as createTableRecordsPlugin, ax as createZapierApi, eO as createZapierSdk, ag as createZapierSdkWithoutRegistry, ao as definePlugin, ch as deleteClientCredentialsPlugin, ee as deleteTableFieldsPlugin, e8 as deleteTablePlugin, em as deleteTableRecordsPlugin, cX as durableRunIdResolver, es as eventEmissionPlugin, b$ as fetchPlugin, cp as findFirstConnectionPlugin, f as findManifestEntry, cr as findUniqueConnectionPlugin, bV as formatErrorMessage, eF as generateEventId, c9 as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, cj as getAppPlugin, dB as getBaseUrlFromCredentials, eL as getCiPlatform, dC as getClientIdFromCredentials, cn as getConnectionPlugin, eN as getCpuTime, eG as getCurrentTimestamp, eM as getMemoryUsage, ay as getOrCreateApiClient, eI as getOsInfo, eJ as getPlatformVersions, cA as getPreferredManifestEntryKey, cF as getProfilePlugin, eH as getReleaseId, e4 as getTablePlugin, eg as getTableRecordPlugin, dc as getTokenFromCliLogin, d_ as getZapierApprovalMode, d$ as getZapierDefaultApprovalMode, dR as getZapierSdkService, da as injectCliLogin, cR as inputFieldKeyResolver, cQ as inputsAllOptionalResolver, cP as inputsResolver, d9 as invalidateCachedToken, de as invalidateCredentialsToken, eK as isCi, db as isCliLoginAvailable, du as isClientCredentials, dx as isCredentialsFunction, dw as isCredentialsObject, dv as isPkceCredentials, S as isPositional, c7 as listActionInputFieldChoicesPlugin, c5 as listActionInputFieldsPlugin, c3 as listActionsPlugin, c1 as listAppsPlugin, cd as listClientCredentialsPlugin, cb as listConnectionsPlugin, ea as listTableFieldsPlugin, ei as listTableRecordsPlugin, e2 as listTablesPlugin, ac as logDeprecation, cB as manifestPlugin, dY as parseConcurrencyEnvVar, r as readManifestFromFile, au as registryPlugin, cx as requestPlugin, ad as resetDeprecationWarnings, dd as resolveAuthToken, dA as resolveCredentials, dz as resolveCredentialsFromEnv, cv as runActionPlugin, a6 as runWithTelemetryContext, d0 as tableFieldIdsResolver, d2 as tableFieldsResolver, d5 as tableFiltersResolver, cU as tableIdResolver, d1 as tableNameResolver, c_ as tableRecordIdResolver, c$ as tableRecordIdsResolver, d3 as tableRecordsResolver, d6 as tableSortResolver, d4 as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, cV as triggerInboxResolver, cZ as triggerMessagesResolver, eo as updateTableRecordsPlugin, cW as workflowIdResolver, cY as workflowVersionIdResolver } from './index-Bfvj0KLi.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import '@zapier/policy-context';
|