@zapier/zapier-sdk 0.116.2 → 0.118.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 +17 -0
- package/README.md +1410 -1385
- package/dist/beta.cjs +288 -280
- package/dist/beta.d.mts +61 -34
- package/dist/beta.d.ts +61 -34
- package/dist/beta.mjs +2 -2
- package/dist/{chunk-ITO7PPY7.cjs → chunk-B3ZGHT7T.cjs} +157 -53
- package/dist/{chunk-VGHAYAI2.mjs → chunk-DH2I3KFA.mjs} +156 -54
- package/dist/{chunk-G7AIFCV6.mjs → chunk-LZ65RRUJ.mjs} +1 -1
- package/dist/{chunk-OEFIDWC6.cjs → chunk-XNPIHDWS.cjs} +4 -4
- package/dist/experimental.cjs +397 -397
- package/dist/experimental.d.mts +67 -40
- package/dist/experimental.d.ts +67 -40
- package/dist/experimental.mjs +7 -15
- package/dist/{index-CKzlo4Y-.d.mts → index-BhbmZ5gy.d.mts} +90 -2
- package/dist/{index-CKzlo4Y-.d.ts → index-BhbmZ5gy.d.ts} +90 -2
- package/dist/index.cjs +286 -278
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
|
@@ -118,6 +118,9 @@ var ActionTimeoutSecondsPropertySchema = z.number().min(1).optional().describe(
|
|
|
118
118
|
var ActionTimeoutMillisecondsPropertySchema = z.number().min(1e3).optional().describe(
|
|
119
119
|
`Maximum time to wait for action completion in milliseconds (default: ${DEFAULT_ACTION_TIMEOUT_MILLISECONDS})`
|
|
120
120
|
);
|
|
121
|
+
var ActionIdempotencyKeyPropertySchema = z.string().min(1).max(255).optional().describe(
|
|
122
|
+
"Key that makes retrying a run safe. Another run with the same key within 72 hours returns the original run instead of starting a new one, even if its inputs differ, so use a fresh key per distinct run. A paged run is sent with a key derived from this key and the page, so one key covers every page and retrying a page replays that page's run."
|
|
123
|
+
);
|
|
121
124
|
var TablePropertySchema = withPositional(
|
|
122
125
|
z.string().regex(/^[A-Z0-9]{26}$/, "Table ID must be a valid ULID").describe("The unique identifier of the table")
|
|
123
126
|
);
|
|
@@ -531,7 +534,8 @@ var ActionExecutionInputSchema = z.object({
|
|
|
531
534
|
/** @deprecated Use `timeoutSeconds` instead. */
|
|
532
535
|
timeoutMs: ActionTimeoutMillisecondsPropertySchema.meta({
|
|
533
536
|
deprecated: true
|
|
534
|
-
})
|
|
537
|
+
}),
|
|
538
|
+
idempotencyKey: ActionIdempotencyKeyPropertySchema
|
|
535
539
|
}).describe(
|
|
536
540
|
"Execute an action with the given inputs for the bound app, as an alternative to runAction"
|
|
537
541
|
).meta({
|
|
@@ -2823,7 +2827,7 @@ function logRouteOverride({
|
|
|
2823
2827
|
}
|
|
2824
2828
|
|
|
2825
2829
|
// src/sdk-version.ts
|
|
2826
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2830
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.118.0" : void 0) || "unknown";
|
|
2827
2831
|
|
|
2828
2832
|
// src/utils/open-url.ts
|
|
2829
2833
|
var nodePrefix = "node:";
|
|
@@ -5212,6 +5216,73 @@ var FetchInputSchema = z.object({
|
|
|
5212
5216
|
url: FetchUrlSchema,
|
|
5213
5217
|
init: FetchInitSchema
|
|
5214
5218
|
});
|
|
5219
|
+
|
|
5220
|
+
// src/taxonomy.json
|
|
5221
|
+
var taxonomy_default = {
|
|
5222
|
+
categories: {
|
|
5223
|
+
account: {
|
|
5224
|
+
key: "account",
|
|
5225
|
+
description: "Your Zapier user account, the one the SDK is signed in as. Use these to check who that is."
|
|
5226
|
+
},
|
|
5227
|
+
action: {
|
|
5228
|
+
key: "action",
|
|
5229
|
+
description: "An action is something an app can do, like sending an email or creating a contact. Use these to find an app's actions, see what inputs they need, and run them directly, outside a Zap."
|
|
5230
|
+
},
|
|
5231
|
+
app: {
|
|
5232
|
+
key: "app",
|
|
5233
|
+
description: "An app is a web service that connects with Zapier, like Gmail or Slack. Use these to find apps and the keys other methods use to refer to them."
|
|
5234
|
+
},
|
|
5235
|
+
"client-credentials": {
|
|
5236
|
+
key: "client-credentials",
|
|
5237
|
+
description: "SDK client credentials are a client ID and client secret that authenticate your code to the Zapier SDK, separate from the connections that authenticate apps. Use these to create, list, and revoke them."
|
|
5238
|
+
},
|
|
5239
|
+
"code-workflow": {
|
|
5240
|
+
key: "code-workflow",
|
|
5241
|
+
title: "Next Gen Zaps",
|
|
5242
|
+
titlePlural: "Next Gen Zaps",
|
|
5243
|
+
description: "Next Gen Zaps are a new version of Zaps that run on code, which makes them easier for agents and AI tools to understand. Use these to build, test, publish, and run Next Gen Zaps, and to check on their runs."
|
|
5244
|
+
},
|
|
5245
|
+
connection: {
|
|
5246
|
+
key: "connection",
|
|
5247
|
+
description: "A connection is an authenticated link between Zapier and your account in an app, like your company's Slack workspace, made with OAuth or an API key. Use these to find existing connections or create new ones for actions, triggers, and API requests to use."
|
|
5248
|
+
},
|
|
5249
|
+
http: {
|
|
5250
|
+
key: "http",
|
|
5251
|
+
title: "HTTP Request",
|
|
5252
|
+
description: "Make authenticated requests to an app's API through Zapier's API proxy, using a connection's credentials so your code never handles tokens or keys. Useful when an app's actions don't cover what you need."
|
|
5253
|
+
},
|
|
5254
|
+
"human-input": {
|
|
5255
|
+
key: "human-input",
|
|
5256
|
+
description: "Collect information from people with Zapier Forms. Use these to create a form and share its link to gather responses."
|
|
5257
|
+
},
|
|
5258
|
+
table: {
|
|
5259
|
+
key: "table",
|
|
5260
|
+
description: "Tables is Zapier's database tool for storing and managing data. Use these to manage tables, their fields, and their records."
|
|
5261
|
+
},
|
|
5262
|
+
trigger: {
|
|
5263
|
+
key: "trigger",
|
|
5264
|
+
description: "A trigger is an event in an app that starts your automation, like a new email received. Use these to find an app's triggers and receive their events directly in your code, outside a Zap."
|
|
5265
|
+
},
|
|
5266
|
+
utility: {
|
|
5267
|
+
key: "utility",
|
|
5268
|
+
description: "Commands for setting up and working with the SDK in a project, like creating a project, adding apps, and generating TypeScript types."
|
|
5269
|
+
},
|
|
5270
|
+
vfs: {
|
|
5271
|
+
key: "vfs",
|
|
5272
|
+
title: "Virtual File System",
|
|
5273
|
+
titlePlural: "Virtual File System",
|
|
5274
|
+
description: "The Virtual File System is file storage hosted by Zapier. Use these to read, write, and organize files and folders."
|
|
5275
|
+
}
|
|
5276
|
+
}
|
|
5277
|
+
};
|
|
5278
|
+
|
|
5279
|
+
// src/taxonomy.ts
|
|
5280
|
+
var taxonomy = taxonomy_default;
|
|
5281
|
+
Object.values(taxonomy.categories).forEach((entry) => Object.freeze(entry));
|
|
5282
|
+
Object.freeze(taxonomy.categories);
|
|
5283
|
+
Object.freeze(taxonomy);
|
|
5284
|
+
|
|
5285
|
+
// src/plugins/fetch/index.ts
|
|
5215
5286
|
function transformUrlToRelayPath(url) {
|
|
5216
5287
|
const targetUrl = new URL(url);
|
|
5217
5288
|
return `/relay/${targetUrl.host}${targetUrl.pathname}${targetUrl.search}${targetUrl.hash}`;
|
|
@@ -5292,7 +5363,7 @@ var fetchPlugin = defineMethod({
|
|
|
5292
5363
|
// title explicitly so the registry renders "HTTP Request". Other plugins in
|
|
5293
5364
|
// this category use the bare string "http"; the object form wins regardless
|
|
5294
5365
|
// of order.
|
|
5295
|
-
categories: [
|
|
5366
|
+
categories: [taxonomy.categories.http],
|
|
5296
5367
|
returnType: "Response",
|
|
5297
5368
|
// The CLI, controller, and MCP all derive fetch's `(url, init)` shape from
|
|
5298
5369
|
// `inputSchema` + `positional`; the CLI flattens `init`'s fields into
|
|
@@ -5431,6 +5502,7 @@ var RunActionBaseSchema = z.object({
|
|
|
5431
5502
|
timeoutSeconds: ActionTimeoutSecondsPropertySchema,
|
|
5432
5503
|
/** @deprecated Use `timeoutSeconds` instead. */
|
|
5433
5504
|
timeoutMs: ActionTimeoutMillisecondsPropertySchema.meta({ deprecated: true }),
|
|
5505
|
+
idempotencyKey: ActionIdempotencyKeyPropertySchema,
|
|
5434
5506
|
pageSize: z.number().min(1).optional().describe("Number of results per page"),
|
|
5435
5507
|
maxItems: z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
5436
5508
|
cursor: z.string().optional().describe("Cursor to start from")
|
|
@@ -7103,7 +7175,7 @@ async function fetchAppActions({
|
|
|
7103
7175
|
var listActionsPlugin = defineMethod({
|
|
7104
7176
|
name: "listActions",
|
|
7105
7177
|
imports: [manifestPluginRef, apiPluginRef],
|
|
7106
|
-
categories: [
|
|
7178
|
+
categories: [taxonomy.categories.action],
|
|
7107
7179
|
itemType: "Action",
|
|
7108
7180
|
inputSchema: ListActionsInputSchema,
|
|
7109
7181
|
outputSchema: ActionItemSchema,
|
|
@@ -7138,7 +7210,7 @@ var getActionPlugin = defineMethod({
|
|
|
7138
7210
|
// `listActionsPlugin` is here for the action-type and action-key resolvers,
|
|
7139
7211
|
// which reach it through a stand-in; the lookup itself doesn't use it.
|
|
7140
7212
|
imports: [listActionsPlugin, manifestPluginRef, apiPluginRef],
|
|
7141
|
-
categories: [
|
|
7213
|
+
categories: [taxonomy.categories.action],
|
|
7142
7214
|
itemType: "Action",
|
|
7143
7215
|
inputSchema: GetActionInputSchema,
|
|
7144
7216
|
outputSchema: ActionItemSchema,
|
|
@@ -7180,7 +7252,8 @@ var CreateActionRunSchema = z.object({
|
|
|
7180
7252
|
),
|
|
7181
7253
|
callbackUrl: z.string().url().optional().describe(
|
|
7182
7254
|
"URL Zapier posts the finished run to, so you do not have to poll for it. Must use HTTPS and resolve to a public host, so a local receiver needs a tunnel. The body matches what `getActionRun` returns. Verify the `Zapier-Callback-Signature` header, and expect the same run to arrive more than once."
|
|
7183
|
-
).meta({ valueHint: "url" })
|
|
7255
|
+
).meta({ valueHint: "url" }),
|
|
7256
|
+
idempotencyKey: ActionIdempotencyKeyPropertySchema
|
|
7184
7257
|
}).describe(
|
|
7185
7258
|
"Start an action run and return its ID without waiting for the result. Running an action is asynchronous: this hands back a run ID immediately, and `getActionRun` fetches the outcome. Reach for this pair when you want to start work and collect it later (fan out many runs, hand the ID to another process, survive a restart). `runAction` is the one-call form that starts a run and waits for its result."
|
|
7186
7259
|
);
|
|
@@ -7192,6 +7265,38 @@ var ActionRunStartedItemSchema = z.object({
|
|
|
7192
7265
|
"Versioned implementation ID the run was started against (e.g. 'SlackCLIAPI@1.21.1'). The versionless app key is the part before the `@`."
|
|
7193
7266
|
)
|
|
7194
7267
|
});
|
|
7268
|
+
|
|
7269
|
+
// src/utils/action-run-wire.ts
|
|
7270
|
+
var PAGE_IDEMPOTENCY_KEY_PREFIX = "sdk-page:";
|
|
7271
|
+
function actionRunPath(run) {
|
|
7272
|
+
return `${ACTION_RUNS_PATH}/${encodeURIComponent(run)}`;
|
|
7273
|
+
}
|
|
7274
|
+
function actionRunPayload(body) {
|
|
7275
|
+
return body?.data;
|
|
7276
|
+
}
|
|
7277
|
+
function isActionRunPending(body) {
|
|
7278
|
+
return actionRunPayload(body)?.status === "waiting";
|
|
7279
|
+
}
|
|
7280
|
+
async function derivePageIdempotencyKey({
|
|
7281
|
+
key,
|
|
7282
|
+
page
|
|
7283
|
+
}) {
|
|
7284
|
+
const subtle = globalThis.crypto?.subtle;
|
|
7285
|
+
if (!subtle) {
|
|
7286
|
+
throw new ZapierConfigurationError(
|
|
7287
|
+
"Paging an action run with an idempotencyKey requires Web Crypto (`crypto.subtle`): Node.js 19+, or a browser page served over HTTPS or localhost."
|
|
7288
|
+
);
|
|
7289
|
+
}
|
|
7290
|
+
const digest = await subtle.digest(
|
|
7291
|
+
"SHA-256",
|
|
7292
|
+
new TextEncoder().encode(`${key}\0${page}`)
|
|
7293
|
+
);
|
|
7294
|
+
const hex = Array.from(
|
|
7295
|
+
new Uint8Array(digest),
|
|
7296
|
+
(byte) => byte.toString(16).padStart(2, "0")
|
|
7297
|
+
).join("");
|
|
7298
|
+
return `${PAGE_IDEMPOTENCY_KEY_PREFIX}${hex}`;
|
|
7299
|
+
}
|
|
7195
7300
|
var CONTEXT_CACHE_TTL_MILLISECONDS = 6e4;
|
|
7196
7301
|
var CONTEXT_CACHE_MAX_SIZE = 500;
|
|
7197
7302
|
var createActionRunPlugin = defineMethod({
|
|
@@ -7202,7 +7307,7 @@ var createActionRunPlugin = defineMethod({
|
|
|
7202
7307
|
apiPluginRef,
|
|
7203
7308
|
getActionPlugin
|
|
7204
7309
|
],
|
|
7205
|
-
categories: [
|
|
7310
|
+
categories: [taxonomy.categories.action],
|
|
7206
7311
|
type: "create",
|
|
7207
7312
|
itemType: "StartedActionRun",
|
|
7208
7313
|
inputSchema: CreateActionRunSchema,
|
|
@@ -7291,7 +7396,8 @@ var createActionRunPlugin = defineMethod({
|
|
|
7291
7396
|
connection,
|
|
7292
7397
|
inputs = {},
|
|
7293
7398
|
page,
|
|
7294
|
-
callbackUrl
|
|
7399
|
+
callbackUrl,
|
|
7400
|
+
idempotencyKey
|
|
7295
7401
|
} = input;
|
|
7296
7402
|
const connectionId = await resolveConnectionId({
|
|
7297
7403
|
connection,
|
|
@@ -7322,6 +7428,9 @@ var createActionRunPlugin = defineMethod({
|
|
|
7322
7428
|
if (callbackUrl) {
|
|
7323
7429
|
runRequestData.callback_url = callbackUrl;
|
|
7324
7430
|
}
|
|
7431
|
+
if (idempotencyKey) {
|
|
7432
|
+
runRequestData.idempotency_id = page ? await derivePageIdempotencyKey({ key: idempotencyKey, page }) : idempotencyKey;
|
|
7433
|
+
}
|
|
7325
7434
|
const runData = await api.post(
|
|
7326
7435
|
ACTION_RUNS_PATH,
|
|
7327
7436
|
{ data: runRequestData },
|
|
@@ -7347,22 +7456,11 @@ var createActionRunPlugin = defineMethod({
|
|
|
7347
7456
|
}
|
|
7348
7457
|
});
|
|
7349
7458
|
|
|
7350
|
-
// src/utils/action-run-wire.ts
|
|
7351
|
-
function actionRunPath(run) {
|
|
7352
|
-
return `${ACTION_RUNS_PATH}/${encodeURIComponent(run)}`;
|
|
7353
|
-
}
|
|
7354
|
-
function actionRunPayload(body) {
|
|
7355
|
-
return body?.data;
|
|
7356
|
-
}
|
|
7357
|
-
function isActionRunPending(body) {
|
|
7358
|
-
return actionRunPayload(body)?.status === "waiting";
|
|
7359
|
-
}
|
|
7360
|
-
|
|
7361
7459
|
// src/plugins/runAction/index.ts
|
|
7362
7460
|
var runActionPlugin = defineMethod({
|
|
7363
7461
|
name: "runAction",
|
|
7364
7462
|
imports: [apiPluginRef, connectionsPluginRef, createActionRunPlugin],
|
|
7365
|
-
categories: [
|
|
7463
|
+
categories: [taxonomy.categories.action],
|
|
7366
7464
|
itemType: "ActionResult",
|
|
7367
7465
|
inputSchema: RunActionInputSchema,
|
|
7368
7466
|
outputSchema: ActionResultItemSchema,
|
|
@@ -7387,7 +7485,8 @@ var runActionPlugin = defineMethod({
|
|
|
7387
7485
|
connection,
|
|
7388
7486
|
authenticationId,
|
|
7389
7487
|
inputs = {},
|
|
7390
|
-
cursor
|
|
7488
|
+
cursor,
|
|
7489
|
+
idempotencyKey
|
|
7391
7490
|
} = input;
|
|
7392
7491
|
const timeoutMilliseconds = (input.timeoutSeconds != null ? input.timeoutSeconds * 1e3 : input.timeoutMs) ?? DEFAULT_ACTION_TIMEOUT_MILLISECONDS;
|
|
7393
7492
|
const resolvedConnectionId = await resolveConnectionId({
|
|
@@ -7402,7 +7501,8 @@ var runActionPlugin = defineMethod({
|
|
|
7402
7501
|
action: actionKey,
|
|
7403
7502
|
connection: resolvedConnectionId,
|
|
7404
7503
|
inputs,
|
|
7405
|
-
page: cursor
|
|
7504
|
+
page: cursor,
|
|
7505
|
+
idempotencyKey
|
|
7406
7506
|
});
|
|
7407
7507
|
annotate({ selectedApi: started.implementation_id });
|
|
7408
7508
|
const run = await imports.api.poll(
|
|
@@ -7477,7 +7577,8 @@ function createActionFunction(appKey, actionType, actionKey, imports, pinnedAuth
|
|
|
7477
7577
|
connection: providedConnection,
|
|
7478
7578
|
authenticationId: providedAuthenticationId,
|
|
7479
7579
|
timeoutSeconds,
|
|
7480
|
-
timeoutMs
|
|
7580
|
+
timeoutMs,
|
|
7581
|
+
idempotencyKey
|
|
7481
7582
|
} = actionOptions;
|
|
7482
7583
|
const { connectionId, connection } = resolveProxyConnection({
|
|
7483
7584
|
providedConnectionId,
|
|
@@ -7493,7 +7594,8 @@ function createActionFunction(appKey, actionType, actionKey, imports, pinnedAuth
|
|
|
7493
7594
|
inputs,
|
|
7494
7595
|
connection: connectionId ?? connection,
|
|
7495
7596
|
timeoutSeconds,
|
|
7496
|
-
timeoutMs
|
|
7597
|
+
timeoutMs,
|
|
7598
|
+
idempotencyKey
|
|
7497
7599
|
});
|
|
7498
7600
|
};
|
|
7499
7601
|
}
|
|
@@ -7607,7 +7709,7 @@ var appsPlugin = defineProperty({
|
|
|
7607
7709
|
dynamicMembers: [
|
|
7608
7710
|
{
|
|
7609
7711
|
path: ["apps", { param: "appKey" }],
|
|
7610
|
-
categories: [
|
|
7712
|
+
categories: [taxonomy.categories.app],
|
|
7611
7713
|
packages: ["sdk"],
|
|
7612
7714
|
type: "function",
|
|
7613
7715
|
inputSchema: AppFactoryInputSchema,
|
|
@@ -7620,7 +7722,7 @@ var appsPlugin = defineProperty({
|
|
|
7620
7722
|
{ param: "actionType" },
|
|
7621
7723
|
{ param: "actionKey" }
|
|
7622
7724
|
],
|
|
7623
|
-
categories: [
|
|
7725
|
+
categories: [taxonomy.categories.app],
|
|
7624
7726
|
packages: ["sdk"],
|
|
7625
7727
|
type: "list",
|
|
7626
7728
|
inputSchema: ActionExecutionInputSchema,
|
|
@@ -7927,7 +8029,7 @@ var listAppsPlugin = defineMethod({
|
|
|
7927
8029
|
sdkOptionsPluginRef,
|
|
7928
8030
|
coreOptionsPluginRef
|
|
7929
8031
|
],
|
|
7930
|
-
categories: [
|
|
8032
|
+
categories: [taxonomy.categories.app],
|
|
7931
8033
|
itemType: "App",
|
|
7932
8034
|
inputSchema: ListAppsSchema,
|
|
7933
8035
|
outputSchema: AppItemSchema,
|
|
@@ -8273,7 +8375,7 @@ var listActionInputFieldsPlugin = defineMethod({
|
|
|
8273
8375
|
apiPluginRef,
|
|
8274
8376
|
getActionPlugin
|
|
8275
8377
|
],
|
|
8276
|
-
categories: [
|
|
8378
|
+
categories: [taxonomy.categories.action],
|
|
8277
8379
|
itemType: "RootField",
|
|
8278
8380
|
inputSchema: ListActionInputFieldsInputSchema,
|
|
8279
8381
|
outputSchema: RootFieldItemSchema,
|
|
@@ -8408,7 +8510,7 @@ var listActionInputFieldChoicesPlugin = defineMethod({
|
|
|
8408
8510
|
apiPluginRef,
|
|
8409
8511
|
getActionPlugin
|
|
8410
8512
|
],
|
|
8411
|
-
categories: [
|
|
8513
|
+
categories: [taxonomy.categories.action],
|
|
8412
8514
|
itemType: "InputFieldChoice",
|
|
8413
8515
|
inputSchema: ListActionInputFieldChoicesInputSchema,
|
|
8414
8516
|
outputSchema: InputFieldChoiceItemSchema,
|
|
@@ -8572,7 +8674,7 @@ var getActionInputFieldsSchemaPlugin = defineMethod({
|
|
|
8572
8674
|
apiPluginRef,
|
|
8573
8675
|
getActionPlugin
|
|
8574
8676
|
],
|
|
8575
|
-
categories: [
|
|
8677
|
+
categories: [taxonomy.categories.action],
|
|
8576
8678
|
itemType: "InputSchema",
|
|
8577
8679
|
inputSchema: GetActionInputFieldsSchemaInputSchema,
|
|
8578
8680
|
output: "item",
|
|
@@ -8732,7 +8834,7 @@ var listConnectionsPlugin = defineMethod({
|
|
|
8732
8834
|
capabilitiesPluginRef,
|
|
8733
8835
|
coreOptionsPluginRef
|
|
8734
8836
|
],
|
|
8735
|
-
categories: [
|
|
8837
|
+
categories: [taxonomy.categories.connection],
|
|
8736
8838
|
itemType: "Connection",
|
|
8737
8839
|
inputSchema: ListConnectionsQuerySchema,
|
|
8738
8840
|
outputSchema: ConnectionItemSchema,
|
|
@@ -8888,7 +8990,7 @@ var clientCredentialsCreatedItemFormatter = defineFormatter({
|
|
|
8888
8990
|
var listClientCredentialsPlugin = defineMethod({
|
|
8889
8991
|
name: "listClientCredentials",
|
|
8890
8992
|
imports: [apiPluginRef],
|
|
8891
|
-
categories: ["client-credentials"],
|
|
8993
|
+
categories: [taxonomy.categories["client-credentials"]],
|
|
8892
8994
|
itemType: "ClientCredentials",
|
|
8893
8995
|
inputSchema: ListClientCredentialsQuerySchema,
|
|
8894
8996
|
outputSchema: ClientCredentialsItemSchema,
|
|
@@ -8928,7 +9030,7 @@ var CreateClientCredentialsSchema = CreateClientCredentialsRequestSchema.omit({
|
|
|
8928
9030
|
var createClientCredentialsPlugin = defineMethod({
|
|
8929
9031
|
name: "createClientCredentials",
|
|
8930
9032
|
imports: [apiPluginRef],
|
|
8931
|
-
categories: ["client-credentials"],
|
|
9033
|
+
categories: [taxonomy.categories["client-credentials"]],
|
|
8932
9034
|
type: "create",
|
|
8933
9035
|
itemType: "ClientCredentials",
|
|
8934
9036
|
inputSchema: CreateClientCredentialsSchema,
|
|
@@ -8963,7 +9065,7 @@ var DeleteClientCredentialsSchema = z.object({
|
|
|
8963
9065
|
var deleteClientCredentialsPlugin = defineMethod({
|
|
8964
9066
|
name: "deleteClientCredentials",
|
|
8965
9067
|
imports: [apiPluginRef],
|
|
8966
|
-
categories: ["client-credentials"],
|
|
9068
|
+
categories: [taxonomy.categories["client-credentials"]],
|
|
8967
9069
|
itemType: "ClientCredentials",
|
|
8968
9070
|
type: "delete",
|
|
8969
9071
|
inputSchema: DeleteClientCredentialsSchema,
|
|
@@ -8996,7 +9098,7 @@ var GetAppInputSchema = z.union([GetAppSchema, GetAppSchemaDeprecated]).describe
|
|
|
8996
9098
|
var getAppPlugin = defineMethod({
|
|
8997
9099
|
name: "getApp",
|
|
8998
9100
|
imports: [listAppsPlugin],
|
|
8999
|
-
categories: [
|
|
9101
|
+
categories: [taxonomy.categories.app],
|
|
9000
9102
|
itemType: "App",
|
|
9001
9103
|
inputSchema: GetAppInputSchema,
|
|
9002
9104
|
outputSchema: AppItemSchema,
|
|
@@ -9034,7 +9136,7 @@ var GetConnectionInputSchema = z.union([
|
|
|
9034
9136
|
var getConnectionPlugin = defineMethod({
|
|
9035
9137
|
name: "getConnection",
|
|
9036
9138
|
imports: [apiPluginRef, coreOptionsPluginRef],
|
|
9037
|
-
categories: [
|
|
9139
|
+
categories: [taxonomy.categories.connection],
|
|
9038
9140
|
itemType: "Connection",
|
|
9039
9141
|
inputSchema: GetConnectionInputSchema,
|
|
9040
9142
|
outputSchema: ConnectionItemSchema,
|
|
@@ -9079,7 +9181,7 @@ var FindFirstConnectionSchema = ListConnectionsQuerySchema.omit({
|
|
|
9079
9181
|
var findFirstConnectionPlugin = defineMethod({
|
|
9080
9182
|
name: "findFirstConnection",
|
|
9081
9183
|
imports: [listConnectionsPlugin],
|
|
9082
|
-
categories: [
|
|
9184
|
+
categories: [taxonomy.categories.connection],
|
|
9083
9185
|
itemType: "Connection",
|
|
9084
9186
|
inputSchema: FindFirstConnectionSchema,
|
|
9085
9187
|
outputSchema: ConnectionItemSchema,
|
|
@@ -9115,7 +9217,7 @@ var FindUniqueConnectionSchema = ListConnectionsQuerySchema.omit({
|
|
|
9115
9217
|
var findUniqueConnectionPlugin = defineMethod({
|
|
9116
9218
|
name: "findUniqueConnection",
|
|
9117
9219
|
imports: [listConnectionsPlugin],
|
|
9118
|
-
categories: [
|
|
9220
|
+
categories: [taxonomy.categories.connection],
|
|
9119
9221
|
itemType: "Connection",
|
|
9120
9222
|
inputSchema: FindUniqueConnectionSchema,
|
|
9121
9223
|
outputSchema: ConnectionItemSchema,
|
|
@@ -9188,7 +9290,7 @@ function toActionRun(runId, payload) {
|
|
|
9188
9290
|
var getActionRunPlugin = defineMethod({
|
|
9189
9291
|
name: "getActionRun",
|
|
9190
9292
|
imports: [apiPluginRef],
|
|
9191
|
-
categories: [
|
|
9293
|
+
categories: [taxonomy.categories.action],
|
|
9192
9294
|
itemType: "ActionRun",
|
|
9193
9295
|
inputSchema: GetActionRunSchema,
|
|
9194
9296
|
outputSchema: ActionRunItemSchema,
|
|
@@ -9232,7 +9334,7 @@ var requestPlugin = defineMethod({
|
|
|
9232
9334
|
inputSchema: RelayRequestSchema,
|
|
9233
9335
|
skipInputValidation: true,
|
|
9234
9336
|
packages: ["cli", "mcp"],
|
|
9235
|
-
categories: [
|
|
9337
|
+
categories: [taxonomy.categories.http],
|
|
9236
9338
|
deprecation: { message: "Use fetch() instead." },
|
|
9237
9339
|
returnType: "Response",
|
|
9238
9340
|
setup: ({ imports }) => {
|
|
@@ -9302,7 +9404,7 @@ var getProfilePlugin = defineMethod({
|
|
|
9302
9404
|
inputSchema: GetProfileSchema,
|
|
9303
9405
|
output: "item",
|
|
9304
9406
|
formatter: userProfileItemFormatter,
|
|
9305
|
-
categories: [
|
|
9407
|
+
categories: [taxonomy.categories.account],
|
|
9306
9408
|
itemType: "Profile",
|
|
9307
9409
|
outputSchema: UserProfileItemSchema,
|
|
9308
9410
|
skipOutputValidation: true,
|
|
@@ -9376,7 +9478,7 @@ var START_PATH = "/zapier/api/authentications/v1/sdk/connections/start";
|
|
|
9376
9478
|
var getConnectionStartUrlPlugin = defineMethod({
|
|
9377
9479
|
name: "getConnectionStartUrl",
|
|
9378
9480
|
imports: [manifestPluginRef, apiPluginRef],
|
|
9379
|
-
categories: [
|
|
9481
|
+
categories: [taxonomy.categories.connection],
|
|
9380
9482
|
type: "create",
|
|
9381
9483
|
itemType: "ConnectionStartUrl",
|
|
9382
9484
|
inputSchema: GetConnectionStartUrlSchema,
|
|
@@ -9452,7 +9554,7 @@ var CONNECTIONS_PATH = "/zapier/api/v4/authentications";
|
|
|
9452
9554
|
var waitForNewConnectionPlugin = defineMethod({
|
|
9453
9555
|
name: "waitForNewConnection",
|
|
9454
9556
|
imports: [manifestPluginRef, apiPluginRef, coreOptionsPluginRef],
|
|
9455
|
-
categories: [
|
|
9557
|
+
categories: [taxonomy.categories.connection],
|
|
9456
9558
|
itemType: "Connection",
|
|
9457
9559
|
inputSchema: WaitForNewConnectionSchema,
|
|
9458
9560
|
outputSchema: WaitForNewConnectionItemSchema,
|
|
@@ -9569,7 +9671,7 @@ var createConnectionPlugin = defineMethod({
|
|
|
9569
9671
|
// Composes the two low-level connection methods at runtime, so it imports
|
|
9570
9672
|
// them (they materialize + dedup against their own module exports).
|
|
9571
9673
|
imports: [getConnectionStartUrlPlugin, waitForNewConnectionPlugin],
|
|
9572
|
-
categories: [
|
|
9674
|
+
categories: [taxonomy.categories.connection],
|
|
9573
9675
|
type: "create",
|
|
9574
9676
|
itemType: "Connection",
|
|
9575
9677
|
inputSchema: CreateConnectionSchema,
|
|
@@ -9634,7 +9736,7 @@ var listAuthenticationsPlugin = defineMethod({
|
|
|
9634
9736
|
output: { type: "list", adaptPage: toSdkPageInput },
|
|
9635
9737
|
inputSchema: ListConnectionsQuerySchema,
|
|
9636
9738
|
packages: ["cli", "mcp"],
|
|
9637
|
-
categories: [
|
|
9739
|
+
categories: [taxonomy.categories.connection],
|
|
9638
9740
|
deprecation: { message: "Use listConnections instead." },
|
|
9639
9741
|
itemType: "Connection",
|
|
9640
9742
|
outputSchema: ConnectionItemSchema,
|
|
@@ -9654,7 +9756,7 @@ var getAuthenticationPlugin = defineMethod({
|
|
|
9654
9756
|
inputSchema: GetConnectionInputSchema,
|
|
9655
9757
|
skipInputValidation: true,
|
|
9656
9758
|
packages: ["cli", "mcp"],
|
|
9657
|
-
categories: [
|
|
9759
|
+
categories: [taxonomy.categories.connection],
|
|
9658
9760
|
deprecation: { message: "Use getConnection instead." },
|
|
9659
9761
|
type: "item",
|
|
9660
9762
|
itemType: "Connection",
|
|
@@ -9675,7 +9777,7 @@ var findFirstAuthenticationPlugin = defineMethod({
|
|
|
9675
9777
|
inputSchema: FindFirstConnectionSchema,
|
|
9676
9778
|
skipInputValidation: true,
|
|
9677
9779
|
packages: ["cli", "mcp"],
|
|
9678
|
-
categories: [
|
|
9780
|
+
categories: [taxonomy.categories.connection],
|
|
9679
9781
|
deprecation: { message: "Use findFirstConnection instead." },
|
|
9680
9782
|
type: "item",
|
|
9681
9783
|
itemType: "Connection",
|
|
@@ -9693,7 +9795,7 @@ var findUniqueAuthenticationPlugin = defineMethod({
|
|
|
9693
9795
|
inputSchema: FindUniqueConnectionSchema,
|
|
9694
9796
|
skipInputValidation: true,
|
|
9695
9797
|
packages: ["cli", "mcp"],
|
|
9696
|
-
categories: [
|
|
9798
|
+
categories: [taxonomy.categories.connection],
|
|
9697
9799
|
deprecation: { message: "Use findUniqueConnection instead." },
|
|
9698
9800
|
type: "item",
|
|
9699
9801
|
itemType: "Connection",
|
|
@@ -9718,7 +9820,7 @@ var listInputFieldsDeprecatedPlugin = defineMethod({
|
|
|
9718
9820
|
defaultPageSize: DEFAULT_PAGE_SIZE
|
|
9719
9821
|
},
|
|
9720
9822
|
inputSchema: ListActionInputFieldsInputSchema,
|
|
9721
|
-
categories: [
|
|
9823
|
+
categories: [taxonomy.categories.action],
|
|
9722
9824
|
deprecation: { message: "Use listActionInputFields instead." },
|
|
9723
9825
|
itemType: "RootField",
|
|
9724
9826
|
outputSchema: RootFieldItemSchema,
|
|
@@ -9740,7 +9842,7 @@ var listInputFieldChoicesDeprecatedPlugin = defineMethod({
|
|
|
9740
9842
|
defaultPageSize: DEFAULT_PAGE_SIZE
|
|
9741
9843
|
},
|
|
9742
9844
|
inputSchema: ListActionInputFieldChoicesInputSchema,
|
|
9743
|
-
categories: [
|
|
9845
|
+
categories: [taxonomy.categories.action],
|
|
9744
9846
|
deprecation: { message: "Use listActionInputFieldChoices instead." },
|
|
9745
9847
|
itemType: "InputFieldChoiceItem",
|
|
9746
9848
|
outputSchema: InputFieldChoiceItemSchema,
|
|
@@ -9757,7 +9859,7 @@ var getInputFieldsSchemaDeprecatedPlugin = defineMethod({
|
|
|
9757
9859
|
output: "raw",
|
|
9758
9860
|
inputSchema: GetActionInputFieldsSchemaInputSchema,
|
|
9759
9861
|
skipInputValidation: true,
|
|
9760
|
-
categories: [
|
|
9862
|
+
categories: [taxonomy.categories.action],
|
|
9761
9863
|
deprecation: { message: "Use getActionInputFieldsSchema instead." },
|
|
9762
9864
|
type: "function",
|
|
9763
9865
|
run: ({ imports, input }) => {
|
|
@@ -9863,7 +9965,7 @@ var triggerInboxItemFormatter = defineFormatter({
|
|
|
9863
9965
|
});
|
|
9864
9966
|
|
|
9865
9967
|
// src/plugins/triggers/shared.ts
|
|
9866
|
-
var triggerCategories = [
|
|
9968
|
+
var triggerCategories = [taxonomy.categories.trigger];
|
|
9867
9969
|
function deriveReadOperation() {
|
|
9868
9970
|
const annotations = { operationType: "read" };
|
|
9869
9971
|
return { ...annotations };
|
|
@@ -11674,7 +11776,7 @@ var listTablesInternalPlugin = defineMethod({
|
|
|
11674
11776
|
});
|
|
11675
11777
|
|
|
11676
11778
|
// src/plugins/tables/shared.ts
|
|
11677
|
-
var tableCategories = [
|
|
11779
|
+
var tableCategories = [taxonomy.categories.table];
|
|
11678
11780
|
|
|
11679
11781
|
// src/plugins/tables/listTables/index.ts
|
|
11680
11782
|
var listTablesPlugin = defineMethod({
|
|
@@ -13425,4 +13527,4 @@ function isInternalField(schema) {
|
|
|
13425
13527
|
return false;
|
|
13426
13528
|
}
|
|
13427
13529
|
|
|
13428
|
-
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, SDK_VERSION, STABILITY_DEFINITIONS, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createMemoryCache, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, descriptionFor, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, extractErrorDetail, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isInternalField, isPermanentHttpError, isPkceCredentials, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, runActionPlugin, runWithCallerContext, sdkOptionsPluginRef, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|
|
13530
|
+
export { ACTION_RUNS_PATH, API_ID, ActionIdempotencyKeyPropertySchema, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, SDK_VERSION, STABILITY_DEFINITIONS, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createMemoryCache, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, descriptionFor, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, extractErrorDetail, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isInternalField, isPermanentHttpError, isPkceCredentials, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, runActionPlugin, runWithCallerContext, sdkOptionsPluginRef, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, taxonomy, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { zapierSdkPlugin, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-
|
|
1
|
+
import { zapierSdkPlugin, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-DH2I3KFA.mjs';
|
|
2
2
|
import { definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
3
3
|
|
|
4
4
|
var zapierBetaSdkPlugin = definePlugin({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB3ZGHT7T_cjs = require('./chunk-B3ZGHT7T.cjs');
|
|
4
4
|
var kitcore = require('@zapier/kitcore');
|
|
5
5
|
|
|
6
6
|
var zapierBetaSdkPlugin = kitcore.definePlugin({
|
|
7
7
|
namespace: "zapier",
|
|
8
8
|
name: "beta-sdk",
|
|
9
|
-
exports: [
|
|
9
|
+
exports: [chunkB3ZGHT7T_cjs.zapierSdkPlugin]
|
|
10
10
|
});
|
|
11
11
|
function createZapierSdk(options = {}) {
|
|
12
12
|
return kitcore.createSdk(zapierBetaSdkPlugin, {
|
|
13
13
|
configuration: {
|
|
14
|
-
[
|
|
15
|
-
[kitcore.CORE_OPTIONS_ID]:
|
|
14
|
+
[chunkB3ZGHT7T_cjs.SDK_OPTIONS_ID]: options,
|
|
15
|
+
[kitcore.CORE_OPTIONS_ID]: chunkB3ZGHT7T_cjs.zapierCoreOptions
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}
|