@zapier/zapier-sdk 0.115.1 → 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.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -2
- package/dist/beta.cjs +283 -279
- package/dist/beta.d.mts +2 -2
- package/dist/beta.d.ts +2 -2
- package/dist/beta.mjs +2 -2
- package/dist/{chunk-GQI5FACN.cjs → chunk-3N6GE4OC.cjs} +19 -2
- package/dist/{chunk-DNSSO7AI.cjs → chunk-6BEFHDL3.cjs} +4 -4
- package/dist/{chunk-RWJJBIN6.mjs → chunk-B3Q6BC55.mjs} +19 -3
- package/dist/{chunk-NOHDNPVD.mjs → chunk-RFZOAGNG.mjs} +1 -1
- package/dist/experimental.cjs +444 -424
- package/dist/experimental.d.mts +423 -5
- package/dist/experimental.d.ts +423 -5
- package/dist/experimental.mjs +60 -43
- package/dist/{index-BrhSgvFN.d.mts → index-C1APFQ3Q.d.mts} +13 -1
- package/dist/{index-BrhSgvFN.d.ts → index-C1APFQ3Q.d.ts} +13 -1
- package/dist/index.cjs +281 -277
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/experimental.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { zapierBetaSdkPlugin } from './chunk-
|
|
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-
|
|
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-
|
|
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,7 +12,7 @@ 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
|
|
15
|
+
function toWireWorkflowClientAttribution({
|
|
16
16
|
creationHarness,
|
|
17
17
|
creationAccessMethod
|
|
18
18
|
}) {
|
|
@@ -142,28 +142,23 @@ var AppVersionBindingSchema2 = z.object({
|
|
|
142
142
|
version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
|
|
143
143
|
}).describe("App-version binding: maps a single alias to an app version.");
|
|
144
144
|
var WorkflowDraftStatusSchema = z.enum(["open", "discarded"]).describe("Lifecycle status of a workflow draft.");
|
|
145
|
-
var
|
|
146
|
-
"Client access method
|
|
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."
|
|
147
147
|
);
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
-
var
|
|
151
|
-
harness: z.string().max(
|
|
152
|
-
access_method: z.string().describe(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"creationAccessMethod"
|
|
160
|
-
];
|
|
161
|
-
var WorkflowCreationClientInputSchema = z.object({
|
|
162
|
-
creationHarness: WorkflowCreationClientSchema.shape.harness.describe(
|
|
163
|
-
"Optional client harness that created this workflow; null means the client did not report a harness"
|
|
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"
|
|
164
159
|
).meta({ internal: true }),
|
|
165
|
-
creationAccessMethod:
|
|
166
|
-
|
|
160
|
+
creationAccessMethod: WorkflowClientAccessMethodSchema.optional().describe(
|
|
161
|
+
WorkflowClientAccessMethodSchema.description ?? "Client access method making this request"
|
|
167
162
|
).meta({ internal: true })
|
|
168
163
|
});
|
|
169
164
|
function hasAccessMethodForHarness({
|
|
@@ -210,7 +205,9 @@ var WorkflowDraftSchema = z.object({
|
|
|
210
205
|
"Trigger configuration held on this draft, or null for webhook-only workflows."
|
|
211
206
|
),
|
|
212
207
|
connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this draft (or null)."),
|
|
213
|
-
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
|
|
214
211
|
});
|
|
215
212
|
var WorkflowVersionSchema = z.object({
|
|
216
213
|
id: z.string().describe("Workflow version ID (UUID)"),
|
|
@@ -226,7 +223,8 @@ var WorkflowVersionSchema = z.object({
|
|
|
226
223
|
"Trigger configuration persisted on this version, or null for webhook-only workflows."
|
|
227
224
|
),
|
|
228
225
|
connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
|
|
229
|
-
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
|
|
230
228
|
});
|
|
231
229
|
var WorkflowTriggerStatusSchema = z.enum([
|
|
232
230
|
"unclaimed",
|
|
@@ -292,7 +290,7 @@ var WorkflowItemSchema = z.object({
|
|
|
292
290
|
),
|
|
293
291
|
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
294
292
|
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
|
|
295
|
-
creation_client:
|
|
293
|
+
creation_client: WorkflowClientAttributionFieldSchema
|
|
296
294
|
});
|
|
297
295
|
var ListWorkflowsOptionsSchema = z.object({
|
|
298
296
|
pageSize: z.number().int().min(1).max(100).optional().describe("Number of workflows per page (max 100)"),
|
|
@@ -360,7 +358,8 @@ var WorkflowVersionSchema2 = z.object({
|
|
|
360
358
|
"Trigger configuration persisted on this version, or null for webhook-only workflows."
|
|
361
359
|
),
|
|
362
360
|
connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
|
|
363
|
-
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
|
|
364
363
|
});
|
|
365
364
|
var GetWorkflowOptionsSchema = z.object({
|
|
366
365
|
workflow: z.string().uuid().describe("Durable workflow ID")
|
|
@@ -392,7 +391,7 @@ var GetWorkflowResponseSchema = z.object({
|
|
|
392
391
|
),
|
|
393
392
|
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
394
393
|
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
|
|
395
|
-
creation_client:
|
|
394
|
+
creation_client: WorkflowClientAttributionFieldSchema
|
|
396
395
|
});
|
|
397
396
|
|
|
398
397
|
// src/plugins/codeSubstrate/getWorkflow/index.ts
|
|
@@ -424,7 +423,7 @@ var CreateWorkflowOptionsSchema = z.object({
|
|
|
424
423
|
private: z.boolean().optional().describe(
|
|
425
424
|
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
426
425
|
),
|
|
427
|
-
...
|
|
426
|
+
...WorkflowClientAttributionInputSchema.shape,
|
|
428
427
|
/** @deprecated Use `private` instead. */
|
|
429
428
|
is_private: z.boolean().optional().describe(
|
|
430
429
|
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
@@ -446,7 +445,7 @@ var CreateWorkflowResponseSchema = z.object({
|
|
|
446
445
|
),
|
|
447
446
|
created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
|
|
448
447
|
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
449
|
-
creation_client:
|
|
448
|
+
creation_client: WorkflowClientAttributionFieldSchema
|
|
450
449
|
});
|
|
451
450
|
|
|
452
451
|
// src/plugins/codeSubstrate/createWorkflow/index.ts
|
|
@@ -470,7 +469,7 @@ var createWorkflowPlugin = defineMethod({
|
|
|
470
469
|
if (isPrivate !== void 0) {
|
|
471
470
|
body.is_private = isPrivate;
|
|
472
471
|
}
|
|
473
|
-
const creationClient =
|
|
472
|
+
const creationClient = toWireWorkflowClientAttribution(input);
|
|
474
473
|
if (creationClient !== void 0) {
|
|
475
474
|
body.creation_client = creationClient;
|
|
476
475
|
}
|
|
@@ -494,7 +493,7 @@ var ImportWorkflowOptionsSchema = z.object({
|
|
|
494
493
|
private: z.boolean().optional().describe(
|
|
495
494
|
"Restrict the created workflow to the creating user. Defaults to false, which makes it account-visible."
|
|
496
495
|
),
|
|
497
|
-
...
|
|
496
|
+
...WorkflowClientAttributionInputSchema.shape
|
|
498
497
|
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
|
|
499
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."
|
|
500
499
|
);
|
|
@@ -568,7 +567,7 @@ var importWorkflowPlugin = defineMethod({
|
|
|
568
567
|
if (input.private !== void 0) {
|
|
569
568
|
body.is_private = input.private;
|
|
570
569
|
}
|
|
571
|
-
const creationClient =
|
|
570
|
+
const creationClient = toWireWorkflowClientAttribution(input);
|
|
572
571
|
if (creationClient !== void 0) {
|
|
573
572
|
body.creation_client = creationClient;
|
|
574
573
|
}
|
|
@@ -1304,7 +1303,8 @@ var WorkflowVersionListItemSchema = z.object({
|
|
|
1304
1303
|
"Trigger configuration persisted on this version, or null for webhook-only workflows."
|
|
1305
1304
|
),
|
|
1306
1305
|
connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
|
|
1307
|
-
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
|
|
1308
1308
|
});
|
|
1309
1309
|
var ListWorkflowVersionsOptionsSchema = z.object({
|
|
1310
1310
|
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
@@ -1406,7 +1406,9 @@ var WorkflowDraftSummarySchema = z.object({
|
|
|
1406
1406
|
status: WorkflowDraftStatusSchema,
|
|
1407
1407
|
last_edited_by_user_id: z.string().nullable().describe("ID of the user who last saved this draft (or null)"),
|
|
1408
1408
|
last_edited_at: z.string().nullable().describe("When the draft was last edited (ISO-8601, or null)"),
|
|
1409
|
-
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
|
|
1410
1412
|
});
|
|
1411
1413
|
var ListWorkflowDraftsOptionsSchema = z.object({
|
|
1412
1414
|
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
@@ -1514,8 +1516,9 @@ var CreateWorkflowDraftOptionsSchema = z.object({
|
|
|
1514
1516
|
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
1515
1517
|
slug: z.string().min(1).max(128).optional().describe(
|
|
1516
1518
|
"Optional display name for the draft. When omitted, the server generates one. Need not be unique among the workflow's open drafts."
|
|
1517
|
-
)
|
|
1518
|
-
|
|
1519
|
+
),
|
|
1520
|
+
...WorkflowClientAttributionInputSchema.shape
|
|
1521
|
+
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
|
|
1519
1522
|
"Fork a new draft from the workflow's current live version (or a blank stub before the first publish)"
|
|
1520
1523
|
);
|
|
1521
1524
|
var CreateWorkflowDraftResponseSchema = WorkflowDraftSchema;
|
|
@@ -1538,6 +1541,10 @@ var createWorkflowDraftPlugin = defineMethod({
|
|
|
1538
1541
|
if (input.slug !== void 0) {
|
|
1539
1542
|
body.slug = input.slug;
|
|
1540
1543
|
}
|
|
1544
|
+
const creationClient = toWireWorkflowClientAttribution(input);
|
|
1545
|
+
if (creationClient !== void 0) {
|
|
1546
|
+
body.creation_client = creationClient;
|
|
1547
|
+
}
|
|
1541
1548
|
const raw = await api.post(
|
|
1542
1549
|
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts`,
|
|
1543
1550
|
body,
|
|
@@ -1574,10 +1581,11 @@ var UpdateWorkflowDraftOptionsSchema = z.object({
|
|
|
1574
1581
|
),
|
|
1575
1582
|
manual: z.boolean().optional().describe(
|
|
1576
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`."
|
|
1577
|
-
)
|
|
1584
|
+
),
|
|
1585
|
+
...WorkflowClientAttributionInputSchema.shape
|
|
1578
1586
|
}).refine(({ trigger, manual }) => manual !== true || trigger == null, {
|
|
1579
1587
|
message: TRIGGER_MANUAL_CONFLICT_MESSAGE2
|
|
1580
|
-
}).describe("Update (autosave) an open workflow draft");
|
|
1588
|
+
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe("Update (autosave) an open workflow draft");
|
|
1581
1589
|
var UpdateWorkflowDraftResponseSchema = WorkflowDraftSchema;
|
|
1582
1590
|
|
|
1583
1591
|
// src/plugins/codeSubstrate/updateWorkflowDraft/index.ts
|
|
@@ -1626,6 +1634,10 @@ var updateWorkflowDraftPlugin = defineMethod({
|
|
|
1626
1634
|
if (input.manual !== void 0) {
|
|
1627
1635
|
body.manual = input.manual;
|
|
1628
1636
|
}
|
|
1637
|
+
const creationClient = toWireWorkflowClientAttribution(input);
|
|
1638
|
+
if (creationClient !== void 0) {
|
|
1639
|
+
body.creation_client = creationClient;
|
|
1640
|
+
}
|
|
1629
1641
|
const raw = await api.put(
|
|
1630
1642
|
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}`,
|
|
1631
1643
|
body,
|
|
@@ -1704,8 +1716,9 @@ var PublishWorkflowDraftOptionsSchema = z.object({
|
|
|
1704
1716
|
),
|
|
1705
1717
|
manual: z.boolean().optional().describe(
|
|
1706
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)."
|
|
1707
|
-
)
|
|
1708
|
-
|
|
1719
|
+
),
|
|
1720
|
+
...WorkflowClientAttributionInputSchema.shape
|
|
1721
|
+
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
|
|
1709
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."
|
|
1710
1723
|
);
|
|
1711
1724
|
var PublishWorkflowDraftResponseSchema = z.object({
|
|
@@ -1747,6 +1760,10 @@ var publishWorkflowDraftPlugin = defineMethod({
|
|
|
1747
1760
|
if (input.manual !== void 0) {
|
|
1748
1761
|
body.manual = input.manual;
|
|
1749
1762
|
}
|
|
1763
|
+
const creationClient = toWireWorkflowClientAttribution(input);
|
|
1764
|
+
if (creationClient !== void 0) {
|
|
1765
|
+
body.creation_client = creationClient;
|
|
1766
|
+
}
|
|
1750
1767
|
const raw = await api.post(
|
|
1751
1768
|
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}/publish`,
|
|
1752
1769
|
body,
|
|
@@ -3412,4 +3429,4 @@ function createZapierSdk(options = {}) {
|
|
|
3412
3429
|
});
|
|
3413
3430
|
}
|
|
3414
3431
|
|
|
3415
|
-
export { CreateWorkflowOptionsSchema, CreateWorkflowResponseSchema,
|
|
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 };
|