@zapier/zapier-sdk 0.117.0 → 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.
@@ -119,6 +119,9 @@ var ActionTimeoutSecondsPropertySchema = zod.z.number().min(1).optional().descri
119
119
  var ActionTimeoutMillisecondsPropertySchema = zod.z.number().min(1e3).optional().describe(
120
120
  `Maximum time to wait for action completion in milliseconds (default: ${DEFAULT_ACTION_TIMEOUT_MILLISECONDS})`
121
121
  );
122
+ var ActionIdempotencyKeyPropertySchema = zod.z.string().min(1).max(255).optional().describe(
123
+ "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."
124
+ );
122
125
  var TablePropertySchema = kitcore.withPositional(
123
126
  zod.z.string().regex(/^[A-Z0-9]{26}$/, "Table ID must be a valid ULID").describe("The unique identifier of the table")
124
127
  );
@@ -532,7 +535,8 @@ var ActionExecutionInputSchema = zod.z.object({
532
535
  /** @deprecated Use `timeoutSeconds` instead. */
533
536
  timeoutMs: ActionTimeoutMillisecondsPropertySchema.meta({
534
537
  deprecated: true
535
- })
538
+ }),
539
+ idempotencyKey: ActionIdempotencyKeyPropertySchema
536
540
  }).describe(
537
541
  "Execute an action with the given inputs for the bound app, as an alternative to runAction"
538
542
  ).meta({
@@ -2824,7 +2828,7 @@ function logRouteOverride({
2824
2828
  }
2825
2829
 
2826
2830
  // src/sdk-version.ts
2827
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.117.0" : void 0) || "unknown";
2831
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.118.0" : void 0) || "unknown";
2828
2832
 
2829
2833
  // src/utils/open-url.ts
2830
2834
  var nodePrefix = "node:";
@@ -5499,6 +5503,7 @@ var RunActionBaseSchema = zod.z.object({
5499
5503
  timeoutSeconds: ActionTimeoutSecondsPropertySchema,
5500
5504
  /** @deprecated Use `timeoutSeconds` instead. */
5501
5505
  timeoutMs: ActionTimeoutMillisecondsPropertySchema.meta({ deprecated: true }),
5506
+ idempotencyKey: ActionIdempotencyKeyPropertySchema,
5502
5507
  pageSize: zod.z.number().min(1).optional().describe("Number of results per page"),
5503
5508
  maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
5504
5509
  cursor: zod.z.string().optional().describe("Cursor to start from")
@@ -7248,7 +7253,8 @@ var CreateActionRunSchema = zod.z.object({
7248
7253
  ),
7249
7254
  callbackUrl: zod.z.string().url().optional().describe(
7250
7255
  "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."
7251
- ).meta({ valueHint: "url" })
7256
+ ).meta({ valueHint: "url" }),
7257
+ idempotencyKey: ActionIdempotencyKeyPropertySchema
7252
7258
  }).describe(
7253
7259
  "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."
7254
7260
  );
@@ -7260,6 +7266,38 @@ var ActionRunStartedItemSchema = zod.z.object({
7260
7266
  "Versioned implementation ID the run was started against (e.g. 'SlackCLIAPI@1.21.1'). The versionless app key is the part before the `@`."
7261
7267
  )
7262
7268
  });
7269
+
7270
+ // src/utils/action-run-wire.ts
7271
+ var PAGE_IDEMPOTENCY_KEY_PREFIX = "sdk-page:";
7272
+ function actionRunPath(run) {
7273
+ return `${ACTION_RUNS_PATH}/${encodeURIComponent(run)}`;
7274
+ }
7275
+ function actionRunPayload(body) {
7276
+ return body?.data;
7277
+ }
7278
+ function isActionRunPending(body) {
7279
+ return actionRunPayload(body)?.status === "waiting";
7280
+ }
7281
+ async function derivePageIdempotencyKey({
7282
+ key,
7283
+ page
7284
+ }) {
7285
+ const subtle = globalThis.crypto?.subtle;
7286
+ if (!subtle) {
7287
+ throw new ZapierConfigurationError(
7288
+ "Paging an action run with an idempotencyKey requires Web Crypto (`crypto.subtle`): Node.js 19+, or a browser page served over HTTPS or localhost."
7289
+ );
7290
+ }
7291
+ const digest = await subtle.digest(
7292
+ "SHA-256",
7293
+ new TextEncoder().encode(`${key}\0${page}`)
7294
+ );
7295
+ const hex = Array.from(
7296
+ new Uint8Array(digest),
7297
+ (byte) => byte.toString(16).padStart(2, "0")
7298
+ ).join("");
7299
+ return `${PAGE_IDEMPOTENCY_KEY_PREFIX}${hex}`;
7300
+ }
7263
7301
  var CONTEXT_CACHE_TTL_MILLISECONDS = 6e4;
7264
7302
  var CONTEXT_CACHE_MAX_SIZE = 500;
7265
7303
  var createActionRunPlugin = kitcore.defineMethod({
@@ -7359,7 +7397,8 @@ var createActionRunPlugin = kitcore.defineMethod({
7359
7397
  connection,
7360
7398
  inputs = {},
7361
7399
  page,
7362
- callbackUrl
7400
+ callbackUrl,
7401
+ idempotencyKey
7363
7402
  } = input;
7364
7403
  const connectionId = await resolveConnectionId({
7365
7404
  connection,
@@ -7390,6 +7429,9 @@ var createActionRunPlugin = kitcore.defineMethod({
7390
7429
  if (callbackUrl) {
7391
7430
  runRequestData.callback_url = callbackUrl;
7392
7431
  }
7432
+ if (idempotencyKey) {
7433
+ runRequestData.idempotency_id = page ? await derivePageIdempotencyKey({ key: idempotencyKey, page }) : idempotencyKey;
7434
+ }
7393
7435
  const runData = await api.post(
7394
7436
  ACTION_RUNS_PATH,
7395
7437
  { data: runRequestData },
@@ -7415,17 +7457,6 @@ var createActionRunPlugin = kitcore.defineMethod({
7415
7457
  }
7416
7458
  });
7417
7459
 
7418
- // src/utils/action-run-wire.ts
7419
- function actionRunPath(run) {
7420
- return `${ACTION_RUNS_PATH}/${encodeURIComponent(run)}`;
7421
- }
7422
- function actionRunPayload(body) {
7423
- return body?.data;
7424
- }
7425
- function isActionRunPending(body) {
7426
- return actionRunPayload(body)?.status === "waiting";
7427
- }
7428
-
7429
7460
  // src/plugins/runAction/index.ts
7430
7461
  var runActionPlugin = kitcore.defineMethod({
7431
7462
  name: "runAction",
@@ -7455,7 +7486,8 @@ var runActionPlugin = kitcore.defineMethod({
7455
7486
  connection,
7456
7487
  authenticationId,
7457
7488
  inputs = {},
7458
- cursor
7489
+ cursor,
7490
+ idempotencyKey
7459
7491
  } = input;
7460
7492
  const timeoutMilliseconds = (input.timeoutSeconds != null ? input.timeoutSeconds * 1e3 : input.timeoutMs) ?? DEFAULT_ACTION_TIMEOUT_MILLISECONDS;
7461
7493
  const resolvedConnectionId = await resolveConnectionId({
@@ -7470,7 +7502,8 @@ var runActionPlugin = kitcore.defineMethod({
7470
7502
  action: actionKey,
7471
7503
  connection: resolvedConnectionId,
7472
7504
  inputs,
7473
- page: cursor
7505
+ page: cursor,
7506
+ idempotencyKey
7474
7507
  });
7475
7508
  annotate({ selectedApi: started.implementation_id });
7476
7509
  const run = await imports.api.poll(
@@ -7545,7 +7578,8 @@ function createActionFunction(appKey, actionType, actionKey, imports, pinnedAuth
7545
7578
  connection: providedConnection,
7546
7579
  authenticationId: providedAuthenticationId,
7547
7580
  timeoutSeconds,
7548
- timeoutMs
7581
+ timeoutMs,
7582
+ idempotencyKey
7549
7583
  } = actionOptions;
7550
7584
  const { connectionId, connection } = resolveProxyConnection({
7551
7585
  providedConnectionId,
@@ -7561,7 +7595,8 @@ function createActionFunction(appKey, actionType, actionKey, imports, pinnedAuth
7561
7595
  inputs,
7562
7596
  connection: connectionId ?? connection,
7563
7597
  timeoutSeconds,
7564
- timeoutMs
7598
+ timeoutMs,
7599
+ idempotencyKey
7565
7600
  });
7566
7601
  };
7567
7602
  }
@@ -13667,6 +13702,7 @@ Object.defineProperty(exports, "toTitleCase", {
13667
13702
  });
13668
13703
  exports.ACTION_RUNS_PATH = ACTION_RUNS_PATH;
13669
13704
  exports.API_ID = API_ID;
13705
+ exports.ActionIdempotencyKeyPropertySchema = ActionIdempotencyKeyPropertySchema;
13670
13706
  exports.ActionKeyPropertySchema = ActionKeyPropertySchema;
13671
13707
  exports.ActionPropertySchema = ActionPropertySchema;
13672
13708
  exports.ActionTimeoutMillisecondsPropertySchema = ActionTimeoutMillisecondsPropertySchema;
@@ -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.117.0" : void 0) || "unknown";
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:";
@@ -5498,6 +5502,7 @@ var RunActionBaseSchema = z.object({
5498
5502
  timeoutSeconds: ActionTimeoutSecondsPropertySchema,
5499
5503
  /** @deprecated Use `timeoutSeconds` instead. */
5500
5504
  timeoutMs: ActionTimeoutMillisecondsPropertySchema.meta({ deprecated: true }),
5505
+ idempotencyKey: ActionIdempotencyKeyPropertySchema,
5501
5506
  pageSize: z.number().min(1).optional().describe("Number of results per page"),
5502
5507
  maxItems: z.number().min(1).optional().describe("Maximum total items to return across all pages"),
5503
5508
  cursor: z.string().optional().describe("Cursor to start from")
@@ -7247,7 +7252,8 @@ var CreateActionRunSchema = z.object({
7247
7252
  ),
7248
7253
  callbackUrl: z.string().url().optional().describe(
7249
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."
7250
- ).meta({ valueHint: "url" })
7255
+ ).meta({ valueHint: "url" }),
7256
+ idempotencyKey: ActionIdempotencyKeyPropertySchema
7251
7257
  }).describe(
7252
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."
7253
7259
  );
@@ -7259,6 +7265,38 @@ var ActionRunStartedItemSchema = z.object({
7259
7265
  "Versioned implementation ID the run was started against (e.g. 'SlackCLIAPI@1.21.1'). The versionless app key is the part before the `@`."
7260
7266
  )
7261
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
+ }
7262
7300
  var CONTEXT_CACHE_TTL_MILLISECONDS = 6e4;
7263
7301
  var CONTEXT_CACHE_MAX_SIZE = 500;
7264
7302
  var createActionRunPlugin = defineMethod({
@@ -7358,7 +7396,8 @@ var createActionRunPlugin = defineMethod({
7358
7396
  connection,
7359
7397
  inputs = {},
7360
7398
  page,
7361
- callbackUrl
7399
+ callbackUrl,
7400
+ idempotencyKey
7362
7401
  } = input;
7363
7402
  const connectionId = await resolveConnectionId({
7364
7403
  connection,
@@ -7389,6 +7428,9 @@ var createActionRunPlugin = defineMethod({
7389
7428
  if (callbackUrl) {
7390
7429
  runRequestData.callback_url = callbackUrl;
7391
7430
  }
7431
+ if (idempotencyKey) {
7432
+ runRequestData.idempotency_id = page ? await derivePageIdempotencyKey({ key: idempotencyKey, page }) : idempotencyKey;
7433
+ }
7392
7434
  const runData = await api.post(
7393
7435
  ACTION_RUNS_PATH,
7394
7436
  { data: runRequestData },
@@ -7414,17 +7456,6 @@ var createActionRunPlugin = defineMethod({
7414
7456
  }
7415
7457
  });
7416
7458
 
7417
- // src/utils/action-run-wire.ts
7418
- function actionRunPath(run) {
7419
- return `${ACTION_RUNS_PATH}/${encodeURIComponent(run)}`;
7420
- }
7421
- function actionRunPayload(body) {
7422
- return body?.data;
7423
- }
7424
- function isActionRunPending(body) {
7425
- return actionRunPayload(body)?.status === "waiting";
7426
- }
7427
-
7428
7459
  // src/plugins/runAction/index.ts
7429
7460
  var runActionPlugin = defineMethod({
7430
7461
  name: "runAction",
@@ -7454,7 +7485,8 @@ var runActionPlugin = defineMethod({
7454
7485
  connection,
7455
7486
  authenticationId,
7456
7487
  inputs = {},
7457
- cursor
7488
+ cursor,
7489
+ idempotencyKey
7458
7490
  } = input;
7459
7491
  const timeoutMilliseconds = (input.timeoutSeconds != null ? input.timeoutSeconds * 1e3 : input.timeoutMs) ?? DEFAULT_ACTION_TIMEOUT_MILLISECONDS;
7460
7492
  const resolvedConnectionId = await resolveConnectionId({
@@ -7469,7 +7501,8 @@ var runActionPlugin = defineMethod({
7469
7501
  action: actionKey,
7470
7502
  connection: resolvedConnectionId,
7471
7503
  inputs,
7472
- page: cursor
7504
+ page: cursor,
7505
+ idempotencyKey
7473
7506
  });
7474
7507
  annotate({ selectedApi: started.implementation_id });
7475
7508
  const run = await imports.api.poll(
@@ -7544,7 +7577,8 @@ function createActionFunction(appKey, actionType, actionKey, imports, pinnedAuth
7544
7577
  connection: providedConnection,
7545
7578
  authenticationId: providedAuthenticationId,
7546
7579
  timeoutSeconds,
7547
- timeoutMs
7580
+ timeoutMs,
7581
+ idempotencyKey
7548
7582
  } = actionOptions;
7549
7583
  const { connectionId, connection } = resolveProxyConnection({
7550
7584
  providedConnectionId,
@@ -7560,7 +7594,8 @@ function createActionFunction(appKey, actionType, actionKey, imports, pinnedAuth
7560
7594
  inputs,
7561
7595
  connection: connectionId ?? connection,
7562
7596
  timeoutSeconds,
7563
- timeoutMs
7597
+ timeoutMs,
7598
+ idempotencyKey
7564
7599
  });
7565
7600
  };
7566
7601
  }
@@ -13492,4 +13527,4 @@ function isInternalField(schema) {
13492
13527
  return false;
13493
13528
  }
13494
13529
 
13495
- 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, taxonomy, 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-Z2SAHSI3.mjs';
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 chunkFDR2QEZI_cjs = require('./chunk-FDR2QEZI.cjs');
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: [chunkFDR2QEZI_cjs.zapierSdkPlugin]
9
+ exports: [chunkB3ZGHT7T_cjs.zapierSdkPlugin]
10
10
  });
11
11
  function createZapierSdk(options = {}) {
12
12
  return kitcore.createSdk(zapierBetaSdkPlugin, {
13
13
  configuration: {
14
- [chunkFDR2QEZI_cjs.SDK_OPTIONS_ID]: options,
15
- [kitcore.CORE_OPTIONS_ID]: chunkFDR2QEZI_cjs.zapierCoreOptions
14
+ [chunkB3ZGHT7T_cjs.SDK_OPTIONS_ID]: options,
15
+ [kitcore.CORE_OPTIONS_ID]: chunkB3ZGHT7T_cjs.zapierCoreOptions
16
16
  }
17
17
  });
18
18
  }