@zapier/zapier-sdk 0.115.0 → 0.116.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.
@@ -1,6 +1,6 @@
1
- import { zapierBetaSdkPlugin } from './chunk-Q7ECOKIG.mjs';
2
- import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, SDK_VERSION, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-NVVSKZ3Y.mjs';
3
- export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, 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, STABILITY_DEFINITIONS, STABILITY_LEVELS, STABILITY_TITLES, 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, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, applyStabilityLabel, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createMemoryCache, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, descriptionFor, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistry, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, 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, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-NVVSKZ3Y.mjs';
1
+ import { zapierBetaSdkPlugin } from './chunk-RFZOAGNG.mjs';
2
+ import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, SDK_VERSION, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-B3Q6BC55.mjs';
3
+ export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, 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, STABILITY_DEFINITIONS, STABILITY_LEVELS, STABILITY_TITLES, 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, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, applyStabilityLabel, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createMemoryCache, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, descriptionFor, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistry, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isInternalField, isPermanentHttpError, isPkceCredentials, isPositional, 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, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-B3Q6BC55.mjs';
4
4
  import './chunk-Y6FXYEAI.mjs';
5
5
  import { defineMethod, openEnum, defineResolver, defineFormatter, definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
6
6
  import { z } from 'zod';
@@ -12,6 +12,17 @@ var codeSubstrateDefaults = {
12
12
  var CODE_SUBSTRATE_ANALYZER_API = "/code-substrate-analyzer";
13
13
  var CODE_SUBSTRATE_RUNNER_API = "/code-substrate-runner/api/v0";
14
14
  var CODE_SUBSTRATE_WORKFLOWS_API = "/code-substrate-workflows/api/v0";
15
+ function toWireWorkflowClientAttribution({
16
+ creationHarness,
17
+ creationAccessMethod
18
+ }) {
19
+ if (creationAccessMethod === void 0) return void 0;
20
+ return {
21
+ ...creationHarness === void 0 ? {} : { harness: creationHarness },
22
+ access_method: creationAccessMethod,
23
+ sdk_version: SDK_VERSION
24
+ };
25
+ }
15
26
  var JsonPayloadSchema = z.preprocess((val) => {
16
27
  if (typeof val === "string") {
17
28
  const trimmed = val.trim();
@@ -131,18 +142,35 @@ var AppVersionBindingSchema2 = z.object({
131
142
  version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
132
143
  }).describe("App-version binding: maps a single alias to an app version.");
133
144
  var WorkflowDraftStatusSchema = z.enum(["open", "discarded"]).describe("Lifecycle status of a workflow draft.");
134
- var WorkflowCreationAccessMethodSchema = z.enum(["sdk_cli", "sdk_mcp", "zapier_mcp", "editor", "api", "unknown"]).describe(
135
- "Client access method that created this workflow. `sdk_mcp` is package-derived attribution from `@zapier/zapier-sdk-mcp`; `zapier_mcp` is caller-declared attribution."
145
+ var WorkflowClientAccessMethodSchema = z.enum(["sdk_cli", "sdk_mcp", "zapier_mcp", "editor", "api", "unknown"]).describe(
146
+ "Client access method making this request. `sdk_cli` and `sdk_mcp` are derived by the server from the calling package; `zapier_mcp` is caller-declared."
136
147
  );
137
- var WORKFLOW_CREATION_CLIENT_HARNESS_MAX_LENGTH = 64;
138
- var WORKFLOW_CREATION_CLIENT_SDK_VERSION_MAX_LENGTH = 64;
139
- var WorkflowCreationClientSchema = z.object({
140
- harness: z.string().max(WORKFLOW_CREATION_CLIENT_HARNESS_MAX_LENGTH).nullable().optional().describe("Client harness that created this workflow"),
141
- access_method: z.string().describe(
142
- "Client access method that created this workflow (SDK, MCP, etc)"
143
- ),
144
- sdk_version: z.string().max(WORKFLOW_CREATION_CLIENT_SDK_VERSION_MAX_LENGTH).nullable().optional().describe("SDK version used to create this workflow")
145
- }).describe("Client identity recorded when this workflow was created");
148
+ var WORKFLOW_CLIENT_ATTRIBUTION_HARNESS_MAX_LENGTH = 64;
149
+ var WORKFLOW_CLIENT_ATTRIBUTION_SDK_VERSION_MAX_LENGTH = 64;
150
+ var WorkflowClientAttributionSchema = z.object({
151
+ harness: z.string().max(WORKFLOW_CLIENT_ATTRIBUTION_HARNESS_MAX_LENGTH).nullable().optional().describe("Client harness that made the request"),
152
+ access_method: z.string().describe("Client access method that made the request (SDK, MCP, etc)"),
153
+ sdk_version: z.string().max(WORKFLOW_CLIENT_ATTRIBUTION_SDK_VERSION_MAX_LENGTH).nullable().optional().describe("Version of the client package or SDK that made the request")
154
+ }).describe("Client identity recorded for a workflow, draft or version write");
155
+ var WorkflowClientAttributionFieldSchema = WorkflowClientAttributionSchema.nullable().optional().describe("Client that made the request").meta({ internal: true });
156
+ var WorkflowClientAttributionInputSchema = z.object({
157
+ creationHarness: WorkflowClientAttributionSchema.shape.harness.describe(
158
+ "Optional client harness making this request; null means the client did not report a harness"
159
+ ).meta({ internal: true }),
160
+ creationAccessMethod: WorkflowClientAccessMethodSchema.optional().describe(
161
+ WorkflowClientAccessMethodSchema.description ?? "Client access method making this request"
162
+ ).meta({ internal: true })
163
+ });
164
+ function hasAccessMethodForHarness({
165
+ creationHarness,
166
+ creationAccessMethod
167
+ }) {
168
+ return creationHarness === void 0 || creationAccessMethod !== void 0;
169
+ }
170
+ var HARNESS_WITHOUT_ACCESS_METHOD_ISSUE = {
171
+ message: "creationAccessMethod is required when creationHarness is provided",
172
+ path: ["creationAccessMethod"]
173
+ };
146
174
  var WorkflowVersionTriggerConfigSchema = z.object({
147
175
  selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
148
176
  action: z.string().describe("Trigger action key (e.g. 'new_row')"),
@@ -177,7 +205,9 @@ var WorkflowDraftSchema = z.object({
177
205
  "Trigger configuration held on this draft, or null for webhook-only workflows."
178
206
  ),
179
207
  connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this draft (or null)."),
180
- app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this draft (or null).")
208
+ app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this draft (or null)."),
209
+ creation_client: WorkflowClientAttributionFieldSchema,
210
+ last_edited_client: WorkflowClientAttributionFieldSchema
181
211
  });
182
212
  var WorkflowVersionSchema = z.object({
183
213
  id: z.string().describe("Workflow version ID (UUID)"),
@@ -193,7 +223,8 @@ var WorkflowVersionSchema = z.object({
193
223
  "Trigger configuration persisted on this version, or null for webhook-only workflows."
194
224
  ),
195
225
  connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
196
- app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null).")
226
+ app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null)."),
227
+ creation_client: WorkflowClientAttributionFieldSchema
197
228
  });
198
229
  var WorkflowTriggerStatusSchema = z.enum([
199
230
  "unclaimed",
@@ -259,7 +290,7 @@ var WorkflowItemSchema = z.object({
259
290
  ),
260
291
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
261
292
  updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
262
- creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
293
+ creation_client: WorkflowClientAttributionFieldSchema
263
294
  });
264
295
  var ListWorkflowsOptionsSchema = z.object({
265
296
  pageSize: z.number().int().min(1).max(100).optional().describe("Number of workflows per page (max 100)"),
@@ -327,7 +358,8 @@ var WorkflowVersionSchema2 = z.object({
327
358
  "Trigger configuration persisted on this version, or null for webhook-only workflows."
328
359
  ),
329
360
  connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
330
- app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null).")
361
+ app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null)."),
362
+ creation_client: WorkflowClientAttributionFieldSchema
331
363
  });
332
364
  var GetWorkflowOptionsSchema = z.object({
333
365
  workflow: z.string().uuid().describe("Durable workflow ID")
@@ -359,7 +391,7 @@ var GetWorkflowResponseSchema = z.object({
359
391
  ),
360
392
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
361
393
  updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
362
- creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
394
+ creation_client: WorkflowClientAttributionFieldSchema
363
395
  });
364
396
 
365
397
  // src/plugins/codeSubstrate/getWorkflow/index.ts
@@ -385,33 +417,18 @@ var getWorkflowPlugin = defineMethod({
385
417
  return { data: GetWorkflowResponseSchema.parse(raw) };
386
418
  }
387
419
  });
388
- var INTERNAL_CREATE_WORKFLOW_FIELDS = [
389
- "creationHarness",
390
- "creationAccessMethod"
391
- ];
392
420
  var CreateWorkflowOptionsSchema = z.object({
393
421
  name: z.string().min(1).describe("Workflow name"),
394
422
  description: z.string().optional().describe("Optional description for the workflow"),
395
423
  private: z.boolean().optional().describe(
396
424
  "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
397
425
  ),
398
- creationHarness: WorkflowCreationClientSchema.shape.harness.describe(
399
- "Optional client harness that created this workflow; null means the client did not report a harness"
400
- ).meta({ internal: true }),
401
- creationAccessMethod: WorkflowCreationAccessMethodSchema.optional().describe(
402
- WorkflowCreationAccessMethodSchema.description ?? "Client access method that created this workflow"
403
- ).meta({ internal: true }),
426
+ ...WorkflowClientAttributionInputSchema.shape,
404
427
  /** @deprecated Use `private` instead. */
405
428
  is_private: z.boolean().optional().describe(
406
429
  "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
407
430
  ).meta({ deprecated: true })
408
- }).refine(
409
- ({ creationHarness, creationAccessMethod }) => creationHarness === void 0 || creationAccessMethod !== void 0,
410
- {
411
- message: "creationAccessMethod is required when creationHarness is provided",
412
- path: ["creationAccessMethod"]
413
- }
414
- ).describe(
431
+ }).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
415
432
  "Create a durable workflow container. Starts disabled with no version; publish a version to add code."
416
433
  );
417
434
  var CreateWorkflowResponseSchema = z.object({
@@ -428,7 +445,7 @@ var CreateWorkflowResponseSchema = z.object({
428
445
  ),
429
446
  created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
430
447
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
431
- creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
448
+ creation_client: WorkflowClientAttributionFieldSchema
432
449
  });
433
450
 
434
451
  // src/plugins/codeSubstrate/createWorkflow/index.ts
@@ -452,12 +469,9 @@ var createWorkflowPlugin = defineMethod({
452
469
  if (isPrivate !== void 0) {
453
470
  body.is_private = isPrivate;
454
471
  }
455
- if (input.creationAccessMethod !== void 0) {
456
- body.creation_client = {
457
- ...input.creationHarness === void 0 ? {} : { harness: input.creationHarness },
458
- access_method: input.creationAccessMethod,
459
- sdk_version: SDK_VERSION
460
- };
472
+ const creationClient = toWireWorkflowClientAttribution(input);
473
+ if (creationClient !== void 0) {
474
+ body.creation_client = creationClient;
461
475
  }
462
476
  const raw = await api.post(
463
477
  `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`,
@@ -478,8 +492,9 @@ var ImportWorkflowOptionsSchema = z.object({
478
492
  ),
479
493
  private: z.boolean().optional().describe(
480
494
  "Restrict the created workflow to the creating user. Defaults to false, which makes it account-visible."
481
- )
482
- }).describe(
495
+ ),
496
+ ...WorkflowClientAttributionInputSchema.shape
497
+ }).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
483
498
  "Convert an existing Zap into a durable workflow. Transforms the Zap's latest published version (falling back to its draft only when the Zap has never been published) and puts the resulting source in an open draft. The workflow is created disabled with no published version, so publish the draft to make it live. The original Zap is untouched and keeps running."
484
499
  );
485
500
  var TranslationIssueSchema = z.object({
@@ -552,6 +567,10 @@ var importWorkflowPlugin = defineMethod({
552
567
  if (input.private !== void 0) {
553
568
  body.is_private = input.private;
554
569
  }
570
+ const creationClient = toWireWorkflowClientAttribution(input);
571
+ if (creationClient !== void 0) {
572
+ body.creation_client = creationClient;
573
+ }
555
574
  const raw = await api.post(
556
575
  `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/import`,
557
576
  body,
@@ -1284,7 +1303,8 @@ var WorkflowVersionListItemSchema = z.object({
1284
1303
  "Trigger configuration persisted on this version, or null for webhook-only workflows."
1285
1304
  ),
1286
1305
  connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
1287
- app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null).")
1306
+ app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null)."),
1307
+ creation_client: WorkflowClientAttributionFieldSchema
1288
1308
  });
1289
1309
  var ListWorkflowVersionsOptionsSchema = z.object({
1290
1310
  workflow: z.string().uuid().describe("Durable workflow ID"),
@@ -1386,7 +1406,9 @@ var WorkflowDraftSummarySchema = z.object({
1386
1406
  status: WorkflowDraftStatusSchema,
1387
1407
  last_edited_by_user_id: z.string().nullable().describe("ID of the user who last saved this draft (or null)"),
1388
1408
  last_edited_at: z.string().nullable().describe("When the draft was last edited (ISO-8601, or null)"),
1389
- created_at: z.string().describe("When the draft was created (ISO-8601)")
1409
+ created_at: z.string().describe("When the draft was created (ISO-8601)"),
1410
+ creation_client: WorkflowClientAttributionFieldSchema,
1411
+ last_edited_client: WorkflowClientAttributionFieldSchema
1390
1412
  });
1391
1413
  var ListWorkflowDraftsOptionsSchema = z.object({
1392
1414
  workflow: z.string().uuid().describe("Durable workflow ID"),
@@ -1494,8 +1516,9 @@ var CreateWorkflowDraftOptionsSchema = z.object({
1494
1516
  workflow: z.string().uuid().describe("Durable workflow ID"),
1495
1517
  slug: z.string().min(1).max(128).optional().describe(
1496
1518
  "Optional display name for the draft. When omitted, the server generates one. Need not be unique among the workflow's open drafts."
1497
- )
1498
- }).describe(
1519
+ ),
1520
+ ...WorkflowClientAttributionInputSchema.shape
1521
+ }).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
1499
1522
  "Fork a new draft from the workflow's current live version (or a blank stub before the first publish)"
1500
1523
  );
1501
1524
  var CreateWorkflowDraftResponseSchema = WorkflowDraftSchema;
@@ -1518,6 +1541,10 @@ var createWorkflowDraftPlugin = defineMethod({
1518
1541
  if (input.slug !== void 0) {
1519
1542
  body.slug = input.slug;
1520
1543
  }
1544
+ const creationClient = toWireWorkflowClientAttribution(input);
1545
+ if (creationClient !== void 0) {
1546
+ body.creation_client = creationClient;
1547
+ }
1521
1548
  const raw = await api.post(
1522
1549
  `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts`,
1523
1550
  body,
@@ -1554,10 +1581,11 @@ var UpdateWorkflowDraftOptionsSchema = z.object({
1554
1581
  ),
1555
1582
  manual: z.boolean().optional().describe(
1556
1583
  "Declare this draft on-demand and triggerless. Pass `manual: true` only when omitting `trigger` (or clearing it with `trigger: null`); passing both is a contradiction the API rejects with a 400. Setting a `trigger` later clears a previously stored `manual: true`."
1557
- )
1584
+ ),
1585
+ ...WorkflowClientAttributionInputSchema.shape
1558
1586
  }).refine(({ trigger, manual }) => manual !== true || trigger == null, {
1559
1587
  message: TRIGGER_MANUAL_CONFLICT_MESSAGE2
1560
- }).describe("Update (autosave) an open workflow draft");
1588
+ }).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe("Update (autosave) an open workflow draft");
1561
1589
  var UpdateWorkflowDraftResponseSchema = WorkflowDraftSchema;
1562
1590
 
1563
1591
  // src/plugins/codeSubstrate/updateWorkflowDraft/index.ts
@@ -1606,6 +1634,10 @@ var updateWorkflowDraftPlugin = defineMethod({
1606
1634
  if (input.manual !== void 0) {
1607
1635
  body.manual = input.manual;
1608
1636
  }
1637
+ const creationClient = toWireWorkflowClientAttribution(input);
1638
+ if (creationClient !== void 0) {
1639
+ body.creation_client = creationClient;
1640
+ }
1609
1641
  const raw = await api.put(
1610
1642
  `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}`,
1611
1643
  body,
@@ -1684,8 +1716,9 @@ var PublishWorkflowDraftOptionsSchema = z.object({
1684
1716
  ),
1685
1717
  manual: z.boolean().optional().describe(
1686
1718
  "Declare this publish on-demand and triggerless, overriding the draft's stored intent for this publish only. Pass `manual: true` only when the draft has no trigger configured; the API rejects a draft with a trigger published as `manual: true` as a contradiction (400)."
1687
- )
1688
- }).describe(
1719
+ ),
1720
+ ...WorkflowClientAttributionInputSchema.shape
1721
+ }).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
1689
1722
  "Publish an open draft as a new immutable workflow version. Advances the workflow's live pointer and discards the draft \u2014 publish consumes it, so an open draft always means unpublished work. Continue editing by creating a new draft, which forks from the just-published version."
1690
1723
  );
1691
1724
  var PublishWorkflowDraftResponseSchema = z.object({
@@ -1727,6 +1760,10 @@ var publishWorkflowDraftPlugin = defineMethod({
1727
1760
  if (input.manual !== void 0) {
1728
1761
  body.manual = input.manual;
1729
1762
  }
1763
+ const creationClient = toWireWorkflowClientAttribution(input);
1764
+ if (creationClient !== void 0) {
1765
+ body.creation_client = creationClient;
1766
+ }
1730
1767
  const raw = await api.post(
1731
1768
  `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}/publish`,
1732
1769
  body,
@@ -3392,4 +3429,4 @@ function createZapierSdk(options = {}) {
3392
3429
  });
3393
3430
  }
3394
3431
 
3395
- export { CreateWorkflowOptionsSchema, CreateWorkflowResponseSchema, INTERNAL_CREATE_WORKFLOW_FIELDS, createZapierSdk, zapierExperimentalSdkPlugin };
3432
+ export { CreateWorkflowOptionsSchema, CreateWorkflowResponseSchema, ImportWorkflowOptionsSchema, ImportWorkflowResponseSchema, createZapierSdk, zapierExperimentalSdkPlugin };
@@ -2855,6 +2855,8 @@ interface ZapierFetchInitOptions extends RequestInit {
2855
2855
  /** @deprecated Use `connection` instead. */
2856
2856
  authenticationId?: string | number;
2857
2857
  callbackUrl?: string;
2858
+ /** Deduplicates retried Relay requests with the same method, URL, and body. */
2859
+ idempotencyKey?: string;
2858
2860
  /** Maximum seconds to wait for a response, subject to a server-side limit. */
2859
2861
  maxTimeSeconds?: number;
2860
2862
  /** @deprecated Use `maxTimeSeconds` instead. */
@@ -20736,4 +20738,14 @@ declare function getAgent(): string | null;
20736
20738
  */
20737
20739
  declare function descriptionFor(schema: unknown): string | undefined;
20738
20740
 
20739
- export { runWithCallerContext as $, type ApiClient as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type ListActionsOptions as L, type ManifestProvider as M, type Need as N, type NeedsRequest as O, type NeedsResponse as P, type Connection as Q, type ResolveCredentialsFn as R, type ConnectionsResponse as S, type TriggerMessageStatus as T, type UserProfile as U, zapierSdkPlugin as V, type WatchTriggerInboxOptions as W, SDK_OPTIONS_ID as X, sdkOptionsPluginRef as Y, type ZapierCache as Z, getCallerContext as _, type Manifest as a, LeaseLimitPropertySchema as a$, type CallerContext as a0, batch as a1, type BatchOptions as a2, buildCapabilityMessage as a3, logDeprecation as a4, resetDeprecationWarnings as a5, RelayRequestSchema as a6, RelayFetchSchema as a7, createZapierSdkWithoutRegistry as a8, zapierCoreOptions as a9, ActionTypePropertySchema as aA, ActionKeyPropertySchema as aB, ActionPropertySchema as aC, InputFieldPropertySchema as aD, ConnectionIdPropertySchema as aE, AuthenticationIdPropertySchema as aF, ConnectionPropertySchema as aG, InputsPropertySchema as aH, LimitPropertySchema as aI, OffsetPropertySchema as aJ, OutputPropertySchema as aK, DebugPropertySchema as aL, ParamsPropertySchema as aM, ActionTimeoutSecondsPropertySchema as aN, ActionTimeoutMillisecondsPropertySchema as aO, TablePropertySchema as aP, RecordPropertySchema as aQ, RecordsPropertySchema as aR, FieldsPropertySchema as aS, AppsPropertySchema as aT, TablesPropertySchema as aU, ConnectionsPropertySchema as aV, TriggerInboxPropertySchema as aW, TriggerInboxKeyPropertySchema as aX, TriggerInboxNamePropertySchema as aY, LeasePropertySchema as aZ, LeaseSecondsPropertySchema as a_, BaseSdkOptionsSchema as aa, STABILITY_DEFINITIONS as ab, formatExtensionPluginFailure as ac, type ActionItem as ad, type ActionTypeItem as ae, type ResolvedAppLocator as af, getAgent as ag, descriptionFor as ah, type RequestOptions as ai, type PollOptions as aj, createZapierApi as ak, getOrCreateApiClient as al, isPermanentHttpError as am, type SseMessage as an, type JsonSseMessage as ao, DEPRECATION_NOTICE_EVENT as ap, type DeprecationNoticePayload as aq, type AppItem as ar, type ConnectionItem as as, type ActionItem$1 as at, type InputFieldItem as au, type InfoFieldItem as av, type RootFieldItem as aw, type UserProfileItem as ax, AppKeyPropertySchema as ay, AppPropertySchema as az, type EventEmissionConfig as b, ZapierSignal as b$, type AppKeyProperty as b0, type AppProperty as b1, type ActionTypeProperty as b2, type ActionKeyProperty as b3, type ActionProperty as b4, type InputFieldProperty as b5, type ConnectionIdProperty as b6, type ConnectionProperty as b7, type AuthenticationIdProperty as b8, type InputsProperty as b9, ZapierApiError as bA, ZapierAppNotFoundError as bB, ZapierNotFoundError as bC, ZapierResourceNotFoundError as bD, ZapierConfigurationError as bE, ZapierBundleError as bF, ZapierTimeoutError as bG, ZapierActionError as bH, ZapierConflictError as bI, type RateLimitInfo as bJ, ZapierRateLimitError as bK, type ApprovalStatus as bL, ZapierApprovalError as bM, ZapierRelayError as bN, isZapierError as bO, isZapierValidationError as bP, isZapierAuthenticationError as bQ, isZapierAppNotFoundError as bR, isZapierNotFoundError as bS, isZapierResourceNotFoundError as bT, isZapierConflictError as bU, isZapierTimeoutError as bV, isZapierBundleError as bW, isZapierActionError as bX, isZapierRateLimitError as bY, isZapierApprovalError as bZ, formatErrorMessage as b_, type LimitProperty as ba, type OffsetProperty as bb, type OutputProperty as bc, type DebugProperty as bd, type ParamsProperty as be, type ActionTimeoutSecondsProperty as bf, type ActionTimeoutMillisecondsProperty as bg, type TableProperty as bh, type RecordProperty as bi, type RecordsProperty as bj, type FieldsProperty as bk, type AppsProperty as bl, type TablesProperty as bm, type ConnectionsProperty as bn, type TriggerInboxProperty as bo, type TriggerInboxKeyProperty as bp, type TriggerInboxNameProperty as bq, type LeaseProperty as br, type LeaseSecondsProperty as bs, type LeaseLimitProperty as bt, type ErrorOptions as bu, ZapierError as bv, ZapierValidationError as bw, ZapierUnknownError as bx, ZapierAuthenticationError as by, zapierAdaptError as bz, type CapabilitiesContext as c, clientIdResolver as c$, isZapierSignal as c0, appsPlugin as c1, type ActionExecutionOptions as c2, type AppFactoryInput as c3, type FetchPluginProvides as c4, fetchPlugin as c5, listAppsPlugin as c6, type ListAppsPluginProvides as c7, listActionsPlugin as c8, type ListActionsPluginProvides as c9, findManifestEntry as cA, MANIFEST_ID as cB, manifestPluginRef as cC, manifestPlugin as cD, type UpdateManifestEntryOptions as cE, type UpdateManifestEntryResult as cF, DEFAULT_CONFIG_PATH as cG, type ManifestEntry as cH, type ActionEntry as cI, getProfilePlugin as cJ, type GetProfilePluginProvides as cK, type ApiPluginOptions as cL, API_ID as cM, apiPluginRef as cN, apiPlugin as cO, RESOLVE_CREDENTIALS_ID as cP, resolveCredentialsPluginRef as cQ, resolveCredentialsPlugin as cR, appKeyResolver as cS, actionTypeResolver as cT, actionKeyResolver as cU, connectionIdResolver as cV, connectionIdGenericResolver as cW, inputsResolver as cX, inputsAllOptionalResolver as cY, inputFieldKeyResolver as cZ, clientCredentialsNameResolver as c_, listActionInputFieldsPlugin as ca, type ListActionInputFieldsPluginProvides as cb, listActionInputFieldChoicesPlugin as cc, getActionInputFieldsSchemaPlugin as cd, listConnectionsPlugin as ce, type ListConnectionsPluginProvides as cf, listClientCredentialsPlugin as cg, createClientCredentialsPlugin as ch, deleteClientCredentialsPlugin as ci, getAppPlugin as cj, getActionPlugin as ck, getConnectionPlugin as cl, findFirstConnectionPlugin as cm, findUniqueConnectionPlugin as cn, CONTEXT_CACHE_TTL_MILLISECONDS as co, CONTEXT_CACHE_MAX_SIZE as cp, createActionRunPlugin as cq, type CreateActionRunPluginProvides as cr, getActionRunPlugin as cs, type GetActionRunPluginProvides as ct, runActionPlugin as cu, type RunActionPluginProvides as cv, requestPlugin as cw, type ManifestPluginOptions as cx, readManifestFromFile as cy, getPreferredManifestEntryKey as cz, type ZapierFetchInitOptions as d, CONNECTIONS_ID as d$, tableIdResolver as d0, triggerInboxResolver as d1, workflowIdResolver as d2, durableRunIdResolver as d3, workflowVersionIdResolver as d4, workflowDraftIdResolver as d5, workflowDraftRevisionResolver as d6, workflowRunIdResolver as d7, triggerMessagesResolver as d8, tableRecordIdResolver as d9, type LoadingEvent as dA, type Credentials as dB, type ResolvedCredentials as dC, type CredentialsObject as dD, type ClientCredentialsObject as dE, type PkceCredentialsObject as dF, isClientCredentials as dG, isPkceCredentials as dH, isCredentialsObject as dI, isCredentialsFunction as dJ, type ResolveCredentialsOptions as dK, resolveCredentialsFromEnv as dL, resolveCredentials as dM, getBaseUrlFromCredentials as dN, getClientIdFromCredentials as dO, ClientCredentialsObjectSchema as dP, PkceCredentialsObjectSchema as dQ, CredentialsObjectSchema as dR, ResolvedCredentialsSchema as dS, CredentialsFunctionSchema as dT, type CredentialsFunction as dU, CredentialsSchema as dV, ConnectionEntrySchema as dW, type ConnectionEntry as dX, ConnectionsMapSchema as dY, type ConnectionsMap as dZ, type ResolveConnection as d_, tableRecordIdsResolver as da, tableFieldIdsResolver as db, tableNameResolver as dc, tableFieldsResolver as dd, tableRecordsResolver as de, tableUpdateRecordsResolver as df, tableFiltersResolver as dg, tableSortResolver as dh, type ResolveAuthTokenOptions as di, AuthMechanism as dj, type ResolvedAuth as dk, clearTokenCache as dl, invalidateCachedToken as dm, injectCliLogin as dn, isCliLoginAvailable as dp, getTokenFromCliLogin as dq, resolveAuth as dr, resolveAuthToken as ds, invalidateCredentialsToken as dt, type ZapierCacheEntry as du, type ZapierCacheSetOptions as dv, createMemoryCache as dw, type SdkEvent as dx, type AuthEvent as dy, type ApiEvent as dz, type ActionProxy as e, type ZapierSdkOptions as e$, connectionsPluginRef as e0, connectionsPlugin as e1, ZAPIER_BASE_URL as e2, getZapierSdkService as e3, getZapierCorrelationId as e4, getZapierCausationId as e5, MAX_PAGE_LIMIT as e6, DEFAULT_PAGE_SIZE as e7, DEFAULT_ACTION_TIMEOUT_MILLISECONDS as e8, ACTION_RUNS_PATH as e9, eventEmissionPluginRef as eA, eventEmissionPlugin as eB, eventEmissionHookPlugin as eC, type EventContext as eD, type ApplicationLifecycleEventData as eE, type EnhancedErrorEventData as eF, type MethodCalledEventData as eG, buildApplicationLifecycleEvent as eH, buildErrorEventWithContext as eI, buildErrorEvent as eJ, createBaseEvent as eK, buildMethodCalledEvent as eL, type MethodCalledEvent as eM, operationAnnotatorPlugin as eN, generateEventId as eO, getCurrentTimestamp as eP, getReleaseId as eQ, getOsInfo as eR, getPlatformVersions as eS, isCi as eT, getCiPlatform as eU, getMemoryUsage as eV, getCpuTime as eW, getTtyContext as eX, DrainTriggerInboxSchema as eY, WatchTriggerInboxSchema as eZ, createZapierSdk as e_, ZAPIER_MAX_NETWORK_RETRIES as ea, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS as eb, MAX_CONCURRENCY_LIMIT as ec, parseConcurrencyEnvVar as ed, ZAPIER_MAX_CONCURRENT_REQUESTS as ee, getZapierApprovalMode as ef, getZapierOpenAutoModeApprovalsInBrowser as eg, getZapierDefaultApprovalMode as eh, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS as ei, DEFAULT_MAX_APPROVAL_RETRIES as ej, listTablesPlugin as ek, getTablePlugin as el, createTablePlugin as em, deleteTablePlugin as en, listTableFieldsPlugin as eo, createTableFieldsPlugin as ep, deleteTableFieldsPlugin as eq, getTableRecordPlugin as er, listTableRecordsPlugin as es, createTableRecordsPlugin as et, deleteTableRecordsPlugin as eu, updateTableRecordsPlugin as ev, cleanupEventListeners as ew, type EventEmissionContext as ex, type EventEmitter as ey, EVENT_EMISSION_ID as ez, type ZapierSdkApps as f, type ZapierSdk as f0, type DrainTriggerInboxOptions as g, type ListActionInputFieldsOptions as h, type ListActionInputFieldChoicesOptions as i, type ApiClientDurationOptions as j, type EventTransport as k, type BaseEvent as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, isZapierAbortDrainSignal as o, isZapierReleaseTriggerMessageSignal as p, type DrainTriggerInboxCallback as q, type DrainTriggerInboxErrorObserver as r, type LeasedTriggerMessageItem as s, type ListAuthenticationsPluginProvides as t, type GetAuthenticationPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };
20741
+ /**
20742
+ * Whether a field is marked `.meta({ internal: true })`: declared only by
20743
+ * programmatic callers, so generated docs, CLI help and MCP tool schemas leave
20744
+ * it out. Zod keeps metadata on the one instance it was set on, so the mark
20745
+ * may sit on any layer that wraps an inner schema (`.optional()`,
20746
+ * `.nullable()`, `.default()`, `.readonly()`, `.catch()`, ...); every surface
20747
+ * reads it through this one check to stay in step.
20748
+ */
20749
+ declare function isInternalField(schema: z.ZodType): boolean;
20750
+
20751
+ export { runWithCallerContext as $, type ApiClient as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type ListActionsOptions as L, type ManifestProvider as M, type Need as N, type NeedsRequest as O, type NeedsResponse as P, type Connection as Q, type ResolveCredentialsFn as R, type ConnectionsResponse as S, type TriggerMessageStatus as T, type UserProfile as U, zapierSdkPlugin as V, type WatchTriggerInboxOptions as W, SDK_OPTIONS_ID as X, sdkOptionsPluginRef as Y, type ZapierCache as Z, getCallerContext as _, type Manifest as a, LeaseSecondsPropertySchema as a$, type CallerContext as a0, batch as a1, type BatchOptions as a2, buildCapabilityMessage as a3, logDeprecation as a4, resetDeprecationWarnings as a5, RelayRequestSchema as a6, RelayFetchSchema as a7, createZapierSdkWithoutRegistry as a8, zapierCoreOptions as a9, AppPropertySchema as aA, ActionTypePropertySchema as aB, ActionKeyPropertySchema as aC, ActionPropertySchema as aD, InputFieldPropertySchema as aE, ConnectionIdPropertySchema as aF, AuthenticationIdPropertySchema as aG, ConnectionPropertySchema as aH, InputsPropertySchema as aI, LimitPropertySchema as aJ, OffsetPropertySchema as aK, OutputPropertySchema as aL, DebugPropertySchema as aM, ParamsPropertySchema as aN, ActionTimeoutSecondsPropertySchema as aO, ActionTimeoutMillisecondsPropertySchema as aP, TablePropertySchema as aQ, RecordPropertySchema as aR, RecordsPropertySchema as aS, FieldsPropertySchema as aT, AppsPropertySchema as aU, TablesPropertySchema as aV, ConnectionsPropertySchema as aW, TriggerInboxPropertySchema as aX, TriggerInboxKeyPropertySchema as aY, TriggerInboxNamePropertySchema as aZ, LeasePropertySchema as a_, BaseSdkOptionsSchema as aa, STABILITY_DEFINITIONS as ab, formatExtensionPluginFailure as ac, type ActionItem as ad, type ActionTypeItem as ae, type ResolvedAppLocator as af, getAgent as ag, descriptionFor as ah, isInternalField as ai, type RequestOptions as aj, type PollOptions as ak, createZapierApi as al, getOrCreateApiClient as am, isPermanentHttpError as an, type SseMessage as ao, type JsonSseMessage as ap, DEPRECATION_NOTICE_EVENT as aq, type DeprecationNoticePayload as ar, type AppItem as as, type ConnectionItem as at, type ActionItem$1 as au, type InputFieldItem as av, type InfoFieldItem as aw, type RootFieldItem as ax, type UserProfileItem as ay, AppKeyPropertySchema as az, type EventEmissionConfig as b, formatErrorMessage as b$, LeaseLimitPropertySchema as b0, type AppKeyProperty as b1, type AppProperty as b2, type ActionTypeProperty as b3, type ActionKeyProperty as b4, type ActionProperty as b5, type InputFieldProperty as b6, type ConnectionIdProperty as b7, type ConnectionProperty as b8, type AuthenticationIdProperty as b9, zapierAdaptError as bA, ZapierApiError as bB, ZapierAppNotFoundError as bC, ZapierNotFoundError as bD, ZapierResourceNotFoundError as bE, ZapierConfigurationError as bF, ZapierBundleError as bG, ZapierTimeoutError as bH, ZapierActionError as bI, ZapierConflictError as bJ, type RateLimitInfo as bK, ZapierRateLimitError as bL, type ApprovalStatus as bM, ZapierApprovalError as bN, ZapierRelayError as bO, isZapierError as bP, isZapierValidationError as bQ, isZapierAuthenticationError as bR, isZapierAppNotFoundError as bS, isZapierNotFoundError as bT, isZapierResourceNotFoundError as bU, isZapierConflictError as bV, isZapierTimeoutError as bW, isZapierBundleError as bX, isZapierActionError as bY, isZapierRateLimitError as bZ, isZapierApprovalError as b_, type InputsProperty as ba, type LimitProperty as bb, type OffsetProperty as bc, type OutputProperty as bd, type DebugProperty as be, type ParamsProperty as bf, type ActionTimeoutSecondsProperty as bg, type ActionTimeoutMillisecondsProperty as bh, type TableProperty as bi, type RecordProperty as bj, type RecordsProperty as bk, type FieldsProperty as bl, type AppsProperty as bm, type TablesProperty as bn, type ConnectionsProperty as bo, type TriggerInboxProperty as bp, type TriggerInboxKeyProperty as bq, type TriggerInboxNameProperty as br, type LeaseProperty as bs, type LeaseSecondsProperty as bt, type LeaseLimitProperty as bu, type ErrorOptions as bv, ZapierError as bw, ZapierValidationError as bx, ZapierUnknownError as by, ZapierAuthenticationError as bz, type CapabilitiesContext as c, clientCredentialsNameResolver as c$, ZapierSignal as c0, isZapierSignal as c1, appsPlugin as c2, type ActionExecutionOptions as c3, type AppFactoryInput as c4, type FetchPluginProvides as c5, fetchPlugin as c6, listAppsPlugin as c7, type ListAppsPluginProvides as c8, listActionsPlugin as c9, getPreferredManifestEntryKey as cA, findManifestEntry as cB, MANIFEST_ID as cC, manifestPluginRef as cD, manifestPlugin as cE, type UpdateManifestEntryOptions as cF, type UpdateManifestEntryResult as cG, DEFAULT_CONFIG_PATH as cH, type ManifestEntry as cI, type ActionEntry as cJ, getProfilePlugin as cK, type GetProfilePluginProvides as cL, type ApiPluginOptions as cM, API_ID as cN, apiPluginRef as cO, apiPlugin as cP, RESOLVE_CREDENTIALS_ID as cQ, resolveCredentialsPluginRef as cR, resolveCredentialsPlugin as cS, appKeyResolver as cT, actionTypeResolver as cU, actionKeyResolver as cV, connectionIdResolver as cW, connectionIdGenericResolver as cX, inputsResolver as cY, inputsAllOptionalResolver as cZ, inputFieldKeyResolver as c_, type ListActionsPluginProvides as ca, listActionInputFieldsPlugin as cb, type ListActionInputFieldsPluginProvides as cc, listActionInputFieldChoicesPlugin as cd, getActionInputFieldsSchemaPlugin as ce, listConnectionsPlugin as cf, type ListConnectionsPluginProvides as cg, listClientCredentialsPlugin as ch, createClientCredentialsPlugin as ci, deleteClientCredentialsPlugin as cj, getAppPlugin as ck, getActionPlugin as cl, getConnectionPlugin as cm, findFirstConnectionPlugin as cn, findUniqueConnectionPlugin as co, CONTEXT_CACHE_TTL_MILLISECONDS as cp, CONTEXT_CACHE_MAX_SIZE as cq, createActionRunPlugin as cr, type CreateActionRunPluginProvides as cs, getActionRunPlugin as ct, type GetActionRunPluginProvides as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type ManifestPluginOptions as cy, readManifestFromFile as cz, type ZapierFetchInitOptions as d, type ResolveConnection as d$, clientIdResolver as d0, tableIdResolver as d1, triggerInboxResolver as d2, workflowIdResolver as d3, durableRunIdResolver as d4, workflowVersionIdResolver as d5, workflowDraftIdResolver as d6, workflowDraftRevisionResolver as d7, workflowRunIdResolver as d8, triggerMessagesResolver as d9, type ApiEvent as dA, type LoadingEvent as dB, type Credentials as dC, type ResolvedCredentials as dD, type CredentialsObject as dE, type ClientCredentialsObject as dF, type PkceCredentialsObject as dG, isClientCredentials as dH, isPkceCredentials as dI, isCredentialsObject as dJ, isCredentialsFunction as dK, type ResolveCredentialsOptions as dL, resolveCredentialsFromEnv as dM, resolveCredentials as dN, getBaseUrlFromCredentials as dO, getClientIdFromCredentials as dP, ClientCredentialsObjectSchema as dQ, PkceCredentialsObjectSchema as dR, CredentialsObjectSchema as dS, ResolvedCredentialsSchema as dT, CredentialsFunctionSchema as dU, type CredentialsFunction as dV, CredentialsSchema as dW, ConnectionEntrySchema as dX, type ConnectionEntry as dY, ConnectionsMapSchema as dZ, type ConnectionsMap as d_, tableRecordIdResolver as da, tableRecordIdsResolver as db, tableFieldIdsResolver as dc, tableNameResolver as dd, tableFieldsResolver as de, tableRecordsResolver as df, tableUpdateRecordsResolver as dg, tableFiltersResolver as dh, tableSortResolver as di, type ResolveAuthTokenOptions as dj, AuthMechanism as dk, type ResolvedAuth as dl, clearTokenCache as dm, invalidateCachedToken as dn, injectCliLogin as dp, isCliLoginAvailable as dq, getTokenFromCliLogin as dr, resolveAuth as ds, resolveAuthToken as dt, invalidateCredentialsToken as du, type ZapierCacheEntry as dv, type ZapierCacheSetOptions as dw, createMemoryCache as dx, type SdkEvent as dy, type AuthEvent as dz, type ActionProxy as e, createZapierSdk as e$, CONNECTIONS_ID as e0, connectionsPluginRef as e1, connectionsPlugin as e2, ZAPIER_BASE_URL as e3, getZapierSdkService as e4, getZapierCorrelationId as e5, getZapierCausationId as e6, MAX_PAGE_LIMIT as e7, DEFAULT_PAGE_SIZE as e8, DEFAULT_ACTION_TIMEOUT_MILLISECONDS as e9, EVENT_EMISSION_ID as eA, eventEmissionPluginRef as eB, eventEmissionPlugin as eC, eventEmissionHookPlugin as eD, type EventContext as eE, type ApplicationLifecycleEventData as eF, type EnhancedErrorEventData as eG, type MethodCalledEventData as eH, buildApplicationLifecycleEvent as eI, buildErrorEventWithContext as eJ, buildErrorEvent as eK, createBaseEvent as eL, buildMethodCalledEvent as eM, type MethodCalledEvent as eN, operationAnnotatorPlugin as eO, generateEventId as eP, getCurrentTimestamp as eQ, getReleaseId as eR, getOsInfo as eS, getPlatformVersions as eT, isCi as eU, getCiPlatform as eV, getMemoryUsage as eW, getCpuTime as eX, getTtyContext as eY, DrainTriggerInboxSchema as eZ, WatchTriggerInboxSchema as e_, ACTION_RUNS_PATH as ea, ZAPIER_MAX_NETWORK_RETRIES as eb, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS as ec, MAX_CONCURRENCY_LIMIT as ed, parseConcurrencyEnvVar as ee, ZAPIER_MAX_CONCURRENT_REQUESTS as ef, getZapierApprovalMode as eg, getZapierOpenAutoModeApprovalsInBrowser as eh, getZapierDefaultApprovalMode as ei, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS as ej, DEFAULT_MAX_APPROVAL_RETRIES as ek, listTablesPlugin as el, getTablePlugin as em, createTablePlugin as en, deleteTablePlugin as eo, listTableFieldsPlugin as ep, createTableFieldsPlugin as eq, deleteTableFieldsPlugin as er, getTableRecordPlugin as es, listTableRecordsPlugin as et, createTableRecordsPlugin as eu, deleteTableRecordsPlugin as ev, updateTableRecordsPlugin as ew, cleanupEventListeners as ex, type EventEmissionContext as ey, type EventEmitter as ez, type ZapierSdkApps as f, type ZapierSdkOptions as f0, type ZapierSdk as f1, type DrainTriggerInboxOptions as g, type ListActionInputFieldsOptions as h, type ListActionInputFieldChoicesOptions as i, type ApiClientDurationOptions as j, type EventTransport as k, type BaseEvent as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, isZapierAbortDrainSignal as o, isZapierReleaseTriggerMessageSignal as p, type DrainTriggerInboxCallback as q, type DrainTriggerInboxErrorObserver as r, type LeasedTriggerMessageItem as s, type ListAuthenticationsPluginProvides as t, type GetAuthenticationPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };
@@ -2855,6 +2855,8 @@ interface ZapierFetchInitOptions extends RequestInit {
2855
2855
  /** @deprecated Use `connection` instead. */
2856
2856
  authenticationId?: string | number;
2857
2857
  callbackUrl?: string;
2858
+ /** Deduplicates retried Relay requests with the same method, URL, and body. */
2859
+ idempotencyKey?: string;
2858
2860
  /** Maximum seconds to wait for a response, subject to a server-side limit. */
2859
2861
  maxTimeSeconds?: number;
2860
2862
  /** @deprecated Use `maxTimeSeconds` instead. */
@@ -20736,4 +20738,14 @@ declare function getAgent(): string | null;
20736
20738
  */
20737
20739
  declare function descriptionFor(schema: unknown): string | undefined;
20738
20740
 
20739
- export { runWithCallerContext as $, type ApiClient as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type ListActionsOptions as L, type ManifestProvider as M, type Need as N, type NeedsRequest as O, type NeedsResponse as P, type Connection as Q, type ResolveCredentialsFn as R, type ConnectionsResponse as S, type TriggerMessageStatus as T, type UserProfile as U, zapierSdkPlugin as V, type WatchTriggerInboxOptions as W, SDK_OPTIONS_ID as X, sdkOptionsPluginRef as Y, type ZapierCache as Z, getCallerContext as _, type Manifest as a, LeaseLimitPropertySchema as a$, type CallerContext as a0, batch as a1, type BatchOptions as a2, buildCapabilityMessage as a3, logDeprecation as a4, resetDeprecationWarnings as a5, RelayRequestSchema as a6, RelayFetchSchema as a7, createZapierSdkWithoutRegistry as a8, zapierCoreOptions as a9, ActionTypePropertySchema as aA, ActionKeyPropertySchema as aB, ActionPropertySchema as aC, InputFieldPropertySchema as aD, ConnectionIdPropertySchema as aE, AuthenticationIdPropertySchema as aF, ConnectionPropertySchema as aG, InputsPropertySchema as aH, LimitPropertySchema as aI, OffsetPropertySchema as aJ, OutputPropertySchema as aK, DebugPropertySchema as aL, ParamsPropertySchema as aM, ActionTimeoutSecondsPropertySchema as aN, ActionTimeoutMillisecondsPropertySchema as aO, TablePropertySchema as aP, RecordPropertySchema as aQ, RecordsPropertySchema as aR, FieldsPropertySchema as aS, AppsPropertySchema as aT, TablesPropertySchema as aU, ConnectionsPropertySchema as aV, TriggerInboxPropertySchema as aW, TriggerInboxKeyPropertySchema as aX, TriggerInboxNamePropertySchema as aY, LeasePropertySchema as aZ, LeaseSecondsPropertySchema as a_, BaseSdkOptionsSchema as aa, STABILITY_DEFINITIONS as ab, formatExtensionPluginFailure as ac, type ActionItem as ad, type ActionTypeItem as ae, type ResolvedAppLocator as af, getAgent as ag, descriptionFor as ah, type RequestOptions as ai, type PollOptions as aj, createZapierApi as ak, getOrCreateApiClient as al, isPermanentHttpError as am, type SseMessage as an, type JsonSseMessage as ao, DEPRECATION_NOTICE_EVENT as ap, type DeprecationNoticePayload as aq, type AppItem as ar, type ConnectionItem as as, type ActionItem$1 as at, type InputFieldItem as au, type InfoFieldItem as av, type RootFieldItem as aw, type UserProfileItem as ax, AppKeyPropertySchema as ay, AppPropertySchema as az, type EventEmissionConfig as b, ZapierSignal as b$, type AppKeyProperty as b0, type AppProperty as b1, type ActionTypeProperty as b2, type ActionKeyProperty as b3, type ActionProperty as b4, type InputFieldProperty as b5, type ConnectionIdProperty as b6, type ConnectionProperty as b7, type AuthenticationIdProperty as b8, type InputsProperty as b9, ZapierApiError as bA, ZapierAppNotFoundError as bB, ZapierNotFoundError as bC, ZapierResourceNotFoundError as bD, ZapierConfigurationError as bE, ZapierBundleError as bF, ZapierTimeoutError as bG, ZapierActionError as bH, ZapierConflictError as bI, type RateLimitInfo as bJ, ZapierRateLimitError as bK, type ApprovalStatus as bL, ZapierApprovalError as bM, ZapierRelayError as bN, isZapierError as bO, isZapierValidationError as bP, isZapierAuthenticationError as bQ, isZapierAppNotFoundError as bR, isZapierNotFoundError as bS, isZapierResourceNotFoundError as bT, isZapierConflictError as bU, isZapierTimeoutError as bV, isZapierBundleError as bW, isZapierActionError as bX, isZapierRateLimitError as bY, isZapierApprovalError as bZ, formatErrorMessage as b_, type LimitProperty as ba, type OffsetProperty as bb, type OutputProperty as bc, type DebugProperty as bd, type ParamsProperty as be, type ActionTimeoutSecondsProperty as bf, type ActionTimeoutMillisecondsProperty as bg, type TableProperty as bh, type RecordProperty as bi, type RecordsProperty as bj, type FieldsProperty as bk, type AppsProperty as bl, type TablesProperty as bm, type ConnectionsProperty as bn, type TriggerInboxProperty as bo, type TriggerInboxKeyProperty as bp, type TriggerInboxNameProperty as bq, type LeaseProperty as br, type LeaseSecondsProperty as bs, type LeaseLimitProperty as bt, type ErrorOptions as bu, ZapierError as bv, ZapierValidationError as bw, ZapierUnknownError as bx, ZapierAuthenticationError as by, zapierAdaptError as bz, type CapabilitiesContext as c, clientIdResolver as c$, isZapierSignal as c0, appsPlugin as c1, type ActionExecutionOptions as c2, type AppFactoryInput as c3, type FetchPluginProvides as c4, fetchPlugin as c5, listAppsPlugin as c6, type ListAppsPluginProvides as c7, listActionsPlugin as c8, type ListActionsPluginProvides as c9, findManifestEntry as cA, MANIFEST_ID as cB, manifestPluginRef as cC, manifestPlugin as cD, type UpdateManifestEntryOptions as cE, type UpdateManifestEntryResult as cF, DEFAULT_CONFIG_PATH as cG, type ManifestEntry as cH, type ActionEntry as cI, getProfilePlugin as cJ, type GetProfilePluginProvides as cK, type ApiPluginOptions as cL, API_ID as cM, apiPluginRef as cN, apiPlugin as cO, RESOLVE_CREDENTIALS_ID as cP, resolveCredentialsPluginRef as cQ, resolveCredentialsPlugin as cR, appKeyResolver as cS, actionTypeResolver as cT, actionKeyResolver as cU, connectionIdResolver as cV, connectionIdGenericResolver as cW, inputsResolver as cX, inputsAllOptionalResolver as cY, inputFieldKeyResolver as cZ, clientCredentialsNameResolver as c_, listActionInputFieldsPlugin as ca, type ListActionInputFieldsPluginProvides as cb, listActionInputFieldChoicesPlugin as cc, getActionInputFieldsSchemaPlugin as cd, listConnectionsPlugin as ce, type ListConnectionsPluginProvides as cf, listClientCredentialsPlugin as cg, createClientCredentialsPlugin as ch, deleteClientCredentialsPlugin as ci, getAppPlugin as cj, getActionPlugin as ck, getConnectionPlugin as cl, findFirstConnectionPlugin as cm, findUniqueConnectionPlugin as cn, CONTEXT_CACHE_TTL_MILLISECONDS as co, CONTEXT_CACHE_MAX_SIZE as cp, createActionRunPlugin as cq, type CreateActionRunPluginProvides as cr, getActionRunPlugin as cs, type GetActionRunPluginProvides as ct, runActionPlugin as cu, type RunActionPluginProvides as cv, requestPlugin as cw, type ManifestPluginOptions as cx, readManifestFromFile as cy, getPreferredManifestEntryKey as cz, type ZapierFetchInitOptions as d, CONNECTIONS_ID as d$, tableIdResolver as d0, triggerInboxResolver as d1, workflowIdResolver as d2, durableRunIdResolver as d3, workflowVersionIdResolver as d4, workflowDraftIdResolver as d5, workflowDraftRevisionResolver as d6, workflowRunIdResolver as d7, triggerMessagesResolver as d8, tableRecordIdResolver as d9, type LoadingEvent as dA, type Credentials as dB, type ResolvedCredentials as dC, type CredentialsObject as dD, type ClientCredentialsObject as dE, type PkceCredentialsObject as dF, isClientCredentials as dG, isPkceCredentials as dH, isCredentialsObject as dI, isCredentialsFunction as dJ, type ResolveCredentialsOptions as dK, resolveCredentialsFromEnv as dL, resolveCredentials as dM, getBaseUrlFromCredentials as dN, getClientIdFromCredentials as dO, ClientCredentialsObjectSchema as dP, PkceCredentialsObjectSchema as dQ, CredentialsObjectSchema as dR, ResolvedCredentialsSchema as dS, CredentialsFunctionSchema as dT, type CredentialsFunction as dU, CredentialsSchema as dV, ConnectionEntrySchema as dW, type ConnectionEntry as dX, ConnectionsMapSchema as dY, type ConnectionsMap as dZ, type ResolveConnection as d_, tableRecordIdsResolver as da, tableFieldIdsResolver as db, tableNameResolver as dc, tableFieldsResolver as dd, tableRecordsResolver as de, tableUpdateRecordsResolver as df, tableFiltersResolver as dg, tableSortResolver as dh, type ResolveAuthTokenOptions as di, AuthMechanism as dj, type ResolvedAuth as dk, clearTokenCache as dl, invalidateCachedToken as dm, injectCliLogin as dn, isCliLoginAvailable as dp, getTokenFromCliLogin as dq, resolveAuth as dr, resolveAuthToken as ds, invalidateCredentialsToken as dt, type ZapierCacheEntry as du, type ZapierCacheSetOptions as dv, createMemoryCache as dw, type SdkEvent as dx, type AuthEvent as dy, type ApiEvent as dz, type ActionProxy as e, type ZapierSdkOptions as e$, connectionsPluginRef as e0, connectionsPlugin as e1, ZAPIER_BASE_URL as e2, getZapierSdkService as e3, getZapierCorrelationId as e4, getZapierCausationId as e5, MAX_PAGE_LIMIT as e6, DEFAULT_PAGE_SIZE as e7, DEFAULT_ACTION_TIMEOUT_MILLISECONDS as e8, ACTION_RUNS_PATH as e9, eventEmissionPluginRef as eA, eventEmissionPlugin as eB, eventEmissionHookPlugin as eC, type EventContext as eD, type ApplicationLifecycleEventData as eE, type EnhancedErrorEventData as eF, type MethodCalledEventData as eG, buildApplicationLifecycleEvent as eH, buildErrorEventWithContext as eI, buildErrorEvent as eJ, createBaseEvent as eK, buildMethodCalledEvent as eL, type MethodCalledEvent as eM, operationAnnotatorPlugin as eN, generateEventId as eO, getCurrentTimestamp as eP, getReleaseId as eQ, getOsInfo as eR, getPlatformVersions as eS, isCi as eT, getCiPlatform as eU, getMemoryUsage as eV, getCpuTime as eW, getTtyContext as eX, DrainTriggerInboxSchema as eY, WatchTriggerInboxSchema as eZ, createZapierSdk as e_, ZAPIER_MAX_NETWORK_RETRIES as ea, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS as eb, MAX_CONCURRENCY_LIMIT as ec, parseConcurrencyEnvVar as ed, ZAPIER_MAX_CONCURRENT_REQUESTS as ee, getZapierApprovalMode as ef, getZapierOpenAutoModeApprovalsInBrowser as eg, getZapierDefaultApprovalMode as eh, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS as ei, DEFAULT_MAX_APPROVAL_RETRIES as ej, listTablesPlugin as ek, getTablePlugin as el, createTablePlugin as em, deleteTablePlugin as en, listTableFieldsPlugin as eo, createTableFieldsPlugin as ep, deleteTableFieldsPlugin as eq, getTableRecordPlugin as er, listTableRecordsPlugin as es, createTableRecordsPlugin as et, deleteTableRecordsPlugin as eu, updateTableRecordsPlugin as ev, cleanupEventListeners as ew, type EventEmissionContext as ex, type EventEmitter as ey, EVENT_EMISSION_ID as ez, type ZapierSdkApps as f, type ZapierSdk as f0, type DrainTriggerInboxOptions as g, type ListActionInputFieldsOptions as h, type ListActionInputFieldChoicesOptions as i, type ApiClientDurationOptions as j, type EventTransport as k, type BaseEvent as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, isZapierAbortDrainSignal as o, isZapierReleaseTriggerMessageSignal as p, type DrainTriggerInboxCallback as q, type DrainTriggerInboxErrorObserver as r, type LeasedTriggerMessageItem as s, type ListAuthenticationsPluginProvides as t, type GetAuthenticationPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };
20741
+ /**
20742
+ * Whether a field is marked `.meta({ internal: true })`: declared only by
20743
+ * programmatic callers, so generated docs, CLI help and MCP tool schemas leave
20744
+ * it out. Zod keeps metadata on the one instance it was set on, so the mark
20745
+ * may sit on any layer that wraps an inner schema (`.optional()`,
20746
+ * `.nullable()`, `.default()`, `.readonly()`, `.catch()`, ...); every surface
20747
+ * reads it through this one check to stay in step.
20748
+ */
20749
+ declare function isInternalField(schema: z.ZodType): boolean;
20750
+
20751
+ export { runWithCallerContext as $, type ApiClient as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type ListActionsOptions as L, type ManifestProvider as M, type Need as N, type NeedsRequest as O, type NeedsResponse as P, type Connection as Q, type ResolveCredentialsFn as R, type ConnectionsResponse as S, type TriggerMessageStatus as T, type UserProfile as U, zapierSdkPlugin as V, type WatchTriggerInboxOptions as W, SDK_OPTIONS_ID as X, sdkOptionsPluginRef as Y, type ZapierCache as Z, getCallerContext as _, type Manifest as a, LeaseSecondsPropertySchema as a$, type CallerContext as a0, batch as a1, type BatchOptions as a2, buildCapabilityMessage as a3, logDeprecation as a4, resetDeprecationWarnings as a5, RelayRequestSchema as a6, RelayFetchSchema as a7, createZapierSdkWithoutRegistry as a8, zapierCoreOptions as a9, AppPropertySchema as aA, ActionTypePropertySchema as aB, ActionKeyPropertySchema as aC, ActionPropertySchema as aD, InputFieldPropertySchema as aE, ConnectionIdPropertySchema as aF, AuthenticationIdPropertySchema as aG, ConnectionPropertySchema as aH, InputsPropertySchema as aI, LimitPropertySchema as aJ, OffsetPropertySchema as aK, OutputPropertySchema as aL, DebugPropertySchema as aM, ParamsPropertySchema as aN, ActionTimeoutSecondsPropertySchema as aO, ActionTimeoutMillisecondsPropertySchema as aP, TablePropertySchema as aQ, RecordPropertySchema as aR, RecordsPropertySchema as aS, FieldsPropertySchema as aT, AppsPropertySchema as aU, TablesPropertySchema as aV, ConnectionsPropertySchema as aW, TriggerInboxPropertySchema as aX, TriggerInboxKeyPropertySchema as aY, TriggerInboxNamePropertySchema as aZ, LeasePropertySchema as a_, BaseSdkOptionsSchema as aa, STABILITY_DEFINITIONS as ab, formatExtensionPluginFailure as ac, type ActionItem as ad, type ActionTypeItem as ae, type ResolvedAppLocator as af, getAgent as ag, descriptionFor as ah, isInternalField as ai, type RequestOptions as aj, type PollOptions as ak, createZapierApi as al, getOrCreateApiClient as am, isPermanentHttpError as an, type SseMessage as ao, type JsonSseMessage as ap, DEPRECATION_NOTICE_EVENT as aq, type DeprecationNoticePayload as ar, type AppItem as as, type ConnectionItem as at, type ActionItem$1 as au, type InputFieldItem as av, type InfoFieldItem as aw, type RootFieldItem as ax, type UserProfileItem as ay, AppKeyPropertySchema as az, type EventEmissionConfig as b, formatErrorMessage as b$, LeaseLimitPropertySchema as b0, type AppKeyProperty as b1, type AppProperty as b2, type ActionTypeProperty as b3, type ActionKeyProperty as b4, type ActionProperty as b5, type InputFieldProperty as b6, type ConnectionIdProperty as b7, type ConnectionProperty as b8, type AuthenticationIdProperty as b9, zapierAdaptError as bA, ZapierApiError as bB, ZapierAppNotFoundError as bC, ZapierNotFoundError as bD, ZapierResourceNotFoundError as bE, ZapierConfigurationError as bF, ZapierBundleError as bG, ZapierTimeoutError as bH, ZapierActionError as bI, ZapierConflictError as bJ, type RateLimitInfo as bK, ZapierRateLimitError as bL, type ApprovalStatus as bM, ZapierApprovalError as bN, ZapierRelayError as bO, isZapierError as bP, isZapierValidationError as bQ, isZapierAuthenticationError as bR, isZapierAppNotFoundError as bS, isZapierNotFoundError as bT, isZapierResourceNotFoundError as bU, isZapierConflictError as bV, isZapierTimeoutError as bW, isZapierBundleError as bX, isZapierActionError as bY, isZapierRateLimitError as bZ, isZapierApprovalError as b_, type InputsProperty as ba, type LimitProperty as bb, type OffsetProperty as bc, type OutputProperty as bd, type DebugProperty as be, type ParamsProperty as bf, type ActionTimeoutSecondsProperty as bg, type ActionTimeoutMillisecondsProperty as bh, type TableProperty as bi, type RecordProperty as bj, type RecordsProperty as bk, type FieldsProperty as bl, type AppsProperty as bm, type TablesProperty as bn, type ConnectionsProperty as bo, type TriggerInboxProperty as bp, type TriggerInboxKeyProperty as bq, type TriggerInboxNameProperty as br, type LeaseProperty as bs, type LeaseSecondsProperty as bt, type LeaseLimitProperty as bu, type ErrorOptions as bv, ZapierError as bw, ZapierValidationError as bx, ZapierUnknownError as by, ZapierAuthenticationError as bz, type CapabilitiesContext as c, clientCredentialsNameResolver as c$, ZapierSignal as c0, isZapierSignal as c1, appsPlugin as c2, type ActionExecutionOptions as c3, type AppFactoryInput as c4, type FetchPluginProvides as c5, fetchPlugin as c6, listAppsPlugin as c7, type ListAppsPluginProvides as c8, listActionsPlugin as c9, getPreferredManifestEntryKey as cA, findManifestEntry as cB, MANIFEST_ID as cC, manifestPluginRef as cD, manifestPlugin as cE, type UpdateManifestEntryOptions as cF, type UpdateManifestEntryResult as cG, DEFAULT_CONFIG_PATH as cH, type ManifestEntry as cI, type ActionEntry as cJ, getProfilePlugin as cK, type GetProfilePluginProvides as cL, type ApiPluginOptions as cM, API_ID as cN, apiPluginRef as cO, apiPlugin as cP, RESOLVE_CREDENTIALS_ID as cQ, resolveCredentialsPluginRef as cR, resolveCredentialsPlugin as cS, appKeyResolver as cT, actionTypeResolver as cU, actionKeyResolver as cV, connectionIdResolver as cW, connectionIdGenericResolver as cX, inputsResolver as cY, inputsAllOptionalResolver as cZ, inputFieldKeyResolver as c_, type ListActionsPluginProvides as ca, listActionInputFieldsPlugin as cb, type ListActionInputFieldsPluginProvides as cc, listActionInputFieldChoicesPlugin as cd, getActionInputFieldsSchemaPlugin as ce, listConnectionsPlugin as cf, type ListConnectionsPluginProvides as cg, listClientCredentialsPlugin as ch, createClientCredentialsPlugin as ci, deleteClientCredentialsPlugin as cj, getAppPlugin as ck, getActionPlugin as cl, getConnectionPlugin as cm, findFirstConnectionPlugin as cn, findUniqueConnectionPlugin as co, CONTEXT_CACHE_TTL_MILLISECONDS as cp, CONTEXT_CACHE_MAX_SIZE as cq, createActionRunPlugin as cr, type CreateActionRunPluginProvides as cs, getActionRunPlugin as ct, type GetActionRunPluginProvides as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type ManifestPluginOptions as cy, readManifestFromFile as cz, type ZapierFetchInitOptions as d, type ResolveConnection as d$, clientIdResolver as d0, tableIdResolver as d1, triggerInboxResolver as d2, workflowIdResolver as d3, durableRunIdResolver as d4, workflowVersionIdResolver as d5, workflowDraftIdResolver as d6, workflowDraftRevisionResolver as d7, workflowRunIdResolver as d8, triggerMessagesResolver as d9, type ApiEvent as dA, type LoadingEvent as dB, type Credentials as dC, type ResolvedCredentials as dD, type CredentialsObject as dE, type ClientCredentialsObject as dF, type PkceCredentialsObject as dG, isClientCredentials as dH, isPkceCredentials as dI, isCredentialsObject as dJ, isCredentialsFunction as dK, type ResolveCredentialsOptions as dL, resolveCredentialsFromEnv as dM, resolveCredentials as dN, getBaseUrlFromCredentials as dO, getClientIdFromCredentials as dP, ClientCredentialsObjectSchema as dQ, PkceCredentialsObjectSchema as dR, CredentialsObjectSchema as dS, ResolvedCredentialsSchema as dT, CredentialsFunctionSchema as dU, type CredentialsFunction as dV, CredentialsSchema as dW, ConnectionEntrySchema as dX, type ConnectionEntry as dY, ConnectionsMapSchema as dZ, type ConnectionsMap as d_, tableRecordIdResolver as da, tableRecordIdsResolver as db, tableFieldIdsResolver as dc, tableNameResolver as dd, tableFieldsResolver as de, tableRecordsResolver as df, tableUpdateRecordsResolver as dg, tableFiltersResolver as dh, tableSortResolver as di, type ResolveAuthTokenOptions as dj, AuthMechanism as dk, type ResolvedAuth as dl, clearTokenCache as dm, invalidateCachedToken as dn, injectCliLogin as dp, isCliLoginAvailable as dq, getTokenFromCliLogin as dr, resolveAuth as ds, resolveAuthToken as dt, invalidateCredentialsToken as du, type ZapierCacheEntry as dv, type ZapierCacheSetOptions as dw, createMemoryCache as dx, type SdkEvent as dy, type AuthEvent as dz, type ActionProxy as e, createZapierSdk as e$, CONNECTIONS_ID as e0, connectionsPluginRef as e1, connectionsPlugin as e2, ZAPIER_BASE_URL as e3, getZapierSdkService as e4, getZapierCorrelationId as e5, getZapierCausationId as e6, MAX_PAGE_LIMIT as e7, DEFAULT_PAGE_SIZE as e8, DEFAULT_ACTION_TIMEOUT_MILLISECONDS as e9, EVENT_EMISSION_ID as eA, eventEmissionPluginRef as eB, eventEmissionPlugin as eC, eventEmissionHookPlugin as eD, type EventContext as eE, type ApplicationLifecycleEventData as eF, type EnhancedErrorEventData as eG, type MethodCalledEventData as eH, buildApplicationLifecycleEvent as eI, buildErrorEventWithContext as eJ, buildErrorEvent as eK, createBaseEvent as eL, buildMethodCalledEvent as eM, type MethodCalledEvent as eN, operationAnnotatorPlugin as eO, generateEventId as eP, getCurrentTimestamp as eQ, getReleaseId as eR, getOsInfo as eS, getPlatformVersions as eT, isCi as eU, getCiPlatform as eV, getMemoryUsage as eW, getCpuTime as eX, getTtyContext as eY, DrainTriggerInboxSchema as eZ, WatchTriggerInboxSchema as e_, ACTION_RUNS_PATH as ea, ZAPIER_MAX_NETWORK_RETRIES as eb, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS as ec, MAX_CONCURRENCY_LIMIT as ed, parseConcurrencyEnvVar as ee, ZAPIER_MAX_CONCURRENT_REQUESTS as ef, getZapierApprovalMode as eg, getZapierOpenAutoModeApprovalsInBrowser as eh, getZapierDefaultApprovalMode as ei, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS as ej, DEFAULT_MAX_APPROVAL_RETRIES as ek, listTablesPlugin as el, getTablePlugin as em, createTablePlugin as en, deleteTablePlugin as eo, listTableFieldsPlugin as ep, createTableFieldsPlugin as eq, deleteTableFieldsPlugin as er, getTableRecordPlugin as es, listTableRecordsPlugin as et, createTableRecordsPlugin as eu, deleteTableRecordsPlugin as ev, updateTableRecordsPlugin as ew, cleanupEventListeners as ex, type EventEmissionContext as ey, type EventEmitter as ez, type ZapierSdkApps as f, type ZapierSdkOptions as f0, type ZapierSdk as f1, type DrainTriggerInboxOptions as g, type ListActionInputFieldsOptions as h, type ListActionInputFieldChoicesOptions as i, type ApiClientDurationOptions as j, type EventTransport as k, type BaseEvent as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, isZapierAbortDrainSignal as o, isZapierReleaseTriggerMessageSignal as p, type DrainTriggerInboxCallback as q, type DrainTriggerInboxErrorObserver as r, type LeasedTriggerMessageItem as s, type ListAuthenticationsPluginProvides as t, type GetAuthenticationPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };