@zapier/zapier-sdk 0.114.4 → 0.115.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/dist/beta.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-BCJAutN8.mjs';
2
- export { e8 as ACTION_RUNS_PATH, cL as API_ID, x as Action, cH as ActionEntry, c1 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, as as ActionItem, b2 as ActionKeyProperty, aA as ActionKeyPropertySchema, b3 as ActionProperty, aB as ActionPropertySchema, ad as ActionResolverItem, bf as ActionTimeoutMillisecondsProperty, aN as ActionTimeoutMillisecondsPropertySchema, be as ActionTimeoutSecondsProperty, aM as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b1 as ActionTypeProperty, az as ActionTypePropertySchema, dy as ApiEvent, cK as ApiPluginOptions, y as App, c2 as AppFactoryInput, aq as AppItem, a$ as AppKeyProperty, ax as AppKeyPropertySchema, b0 as AppProperty, ay as AppPropertySchema, eD as ApplicationLifecycleEventData, bK as ApprovalStatus, bk as AppsProperty, aS as AppsPropertySchema, dx as AuthEvent, di as AuthMechanism, b7 as AuthenticationIdProperty, aE as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d_ as CONNECTIONS_ID, co as CONTEXT_CACHE_MAX_SIZE, cn as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dD as ClientCredentialsObject, dO as ClientCredentialsObjectSchema, Q as Connection, dW as ConnectionEntry, dV as ConnectionEntrySchema, b5 as ConnectionIdProperty, aD as ConnectionIdPropertySchema, ar as ConnectionItem, b6 as ConnectionProperty, aF as ConnectionPropertySchema, dY as ConnectionsMap, dX as ConnectionsMapSchema, bm as ConnectionsProperty, aU as ConnectionsPropertySchema, S as ConnectionsResponse, cq as CreateActionRunPluginProvides, dA as Credentials, dT as CredentialsFunction, dS as CredentialsFunctionSchema, dC as CredentialsObject, dQ as CredentialsObjectSchema, dU as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, eh as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cF as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, ao as DEPRECATION_NOTICE_EVENT, bc as DebugProperty, aK as DebugPropertySchema, ap as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ey as EVENT_EMISSION_ID, eE as EnhancedErrorEventData, bt as ErrorOptions, eC as EventContext, ew as EventEmissionContext, ex as EventEmitter, c3 as FetchPluginProvides, z as Field, bj as FieldsProperty, aR as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cs as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cJ as GetProfilePluginProvides, au as InfoFieldItem, at as InputFieldItem, b4 as InputFieldProperty, aC as InputFieldPropertySchema, b8 as InputsProperty, aG as InputsPropertySchema, an as JsonSseMessage, bs as LeaseLimitProperty, a_ as LeaseLimitPropertySchema, bq as LeaseProperty, aY as LeasePropertySchema, br as LeaseSecondsProperty, aZ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, b9 as LimitProperty, aH as LimitPropertySchema, ca as ListActionInputFieldsPluginProvides, c8 as ListActionsPluginProvides, c6 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, ce as ListConnectionsPluginProvides, dz as LoadingEvent, cA as MANIFEST_ID, eb as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cG as ManifestEntry, cw as ManifestPluginOptions, eL as MethodCalledEvent, eF as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, ba as OffsetProperty, aI as OffsetPropertySchema, bb as OutputProperty, aJ as OutputPropertySchema, bd as ParamsProperty, aL as ParamsPropertySchema, dE as PkceCredentialsObject, dP as PkceCredentialsObjectSchema, ai as PollOptions, cO as RESOLVE_CREDENTIALS_ID, bI as RateLimitInfo, bh as RecordProperty, aP as RecordPropertySchema, bi as RecordsProperty, aQ as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ah as RequestOptions, dh as ResolveAuthTokenOptions, dZ as ResolveConnection, dJ as ResolveCredentialsOptions, af as ResolvedAppLocator, dj as ResolvedAuth, dB as ResolvedCredentials, dR as ResolvedCredentialsSchema, av as RootFieldItem, cu as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dw as SdkEvent, am as SseMessage, bg as TableProperty, aO as TablePropertySchema, bl as TablesProperty, aT as TablesPropertySchema, bo as TriggerInboxKeyProperty, aW as TriggerInboxKeyPropertySchema, bp as TriggerInboxNameProperty, aX as TriggerInboxNamePropertySchema, bn as TriggerInboxProperty, aV as TriggerInboxPropertySchema, T as TriggerMessageStatus, cD as UpdateManifestEntryOptions, cE as UpdateManifestEntryResult, U as UserProfile, aw as UserProfileItem, e1 as ZAPIER_BASE_URL, ed as ZAPIER_MAX_CONCURRENT_REQUESTS, e9 as ZAPIER_MAX_NETWORK_RETRIES, ea as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bG as ZapierActionError, bz as ZapierApiError, bA as ZapierAppNotFoundError, bL as ZapierApprovalError, bx as ZapierAuthenticationError, bE as ZapierBundleError, dt as ZapierCacheEntry, du as ZapierCacheSetOptions, bD as ZapierConfigurationError, bH as ZapierConflictError, bu as ZapierError, bB as ZapierNotFoundError, bJ as ZapierRateLimitError, bM as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bC as ZapierResourceNotFoundError, b_ as ZapierSignal, bF as ZapierTimeoutError, bw as ZapierUnknownError, bv as ZapierValidationError, cT as actionKeyResolver, cS as actionTypeResolver, cN as apiPlugin, cM as apiPluginRef, cR as appKeyResolver, c0 as appsPlugin, a1 as batch, eG as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eI as buildErrorEvent, eH as buildErrorEventWithContext, eK as buildMethodCalledEvent, ev as cleanupEventListeners, dk as clearTokenCache, cZ as clientCredentialsNameResolver, c_ as clientIdResolver, cV as connectionIdGenericResolver, cU as connectionIdResolver, e0 as connectionsPlugin, d$ as connectionsPluginRef, cp as createActionRunPlugin, eJ as createBaseEvent, cg as createClientCredentialsPlugin, dv as createMemoryCache, eo as createTableFieldsPlugin, el as createTablePlugin, es as createTableRecordsPlugin, aj as createZapierApi, a8 as createZapierSdkWithoutRegistry, ch as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, em as deleteTablePlugin, et as deleteTableRecordsPlugin, d2 as durableRunIdResolver, eB as eventEmissionHookPlugin, eA as eventEmissionPlugin, ez as eventEmissionPluginRef, c4 as fetchPlugin, cl as findFirstConnectionPlugin, cz as findManifestEntry, cm as findUniqueConnectionPlugin, bZ as formatErrorMessage, ac as formatExtensionPluginFailure, eN as generateEventId, cc as getActionInputFieldsSchemaPlugin, cj as getActionPlugin, cr as getActionRunPlugin, ag as getAgent, ci as getAppPlugin, dM as getBaseUrlFromCredentials, _ as getCallerContext, eT as getCiPlatform, dN as getClientIdFromCredentials, ck as getConnectionPlugin, eV as getCpuTime, eO as getCurrentTimestamp, eU as getMemoryUsage, ak as getOrCreateApiClient, eQ as getOsInfo, eR as getPlatformVersions, cy as getPreferredManifestEntryKey, cI as getProfilePlugin, eP as getReleaseId, ek as getTablePlugin, eq as getTableRecordPlugin, dp as getTokenFromCliLogin, eW as getTtyContext, ee as getZapierApprovalMode, e4 as getZapierCausationId, e3 as getZapierCorrelationId, eg as getZapierDefaultApprovalMode, ef as getZapierOpenAutoModeApprovalsInBrowser, e2 as getZapierSdkService, dm as injectCliLogin, cY as inputFieldKeyResolver, cX as inputsAllOptionalResolver, cW as inputsResolver, dl as invalidateCachedToken, ds as invalidateCredentialsToken, eS as isCi, dn as isCliLoginAvailable, dF as isClientCredentials, dI as isCredentialsFunction, dH as isCredentialsObject, al as isPermanentHttpError, dG as isPkceCredentials, o as isZapierAbortDrainSignal, bW as isZapierActionError, bQ as isZapierAppNotFoundError, bY as isZapierApprovalError, bP as isZapierAuthenticationError, bV as isZapierBundleError, bT as isZapierConflictError, bN as isZapierError, bR as isZapierNotFoundError, bX as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bS as isZapierResourceNotFoundError, b$ as isZapierSignal, bU as isZapierTimeoutError, bO as isZapierValidationError, cb as listActionInputFieldChoicesPlugin, c9 as listActionInputFieldsPlugin, c7 as listActionsPlugin, c5 as listAppsPlugin, cf as listClientCredentialsPlugin, cd as listConnectionsPlugin, en as listTableFieldsPlugin, er as listTableRecordsPlugin, ej as listTablesPlugin, a4 as logDeprecation, cC as manifestPlugin, cB as manifestPluginRef, eM as operationAnnotatorPlugin, ec as parseConcurrencyEnvVar, cx as readManifestFromFile, cv as requestPlugin, a5 as resetDeprecationWarnings, dq as resolveAuth, dr as resolveAuthToken, dL as resolveCredentials, dK as resolveCredentialsFromEnv, cQ as resolveCredentialsPlugin, cP as resolveCredentialsPluginRef, ct as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, da as tableFieldIdsResolver, dc as tableFieldsResolver, df as tableFiltersResolver, c$ as tableIdResolver, db as tableNameResolver, d8 as tableRecordIdResolver, d9 as tableRecordIdsResolver, dd as tableRecordsResolver, dg as tableSortResolver, de as tableUpdateRecordsResolver, d0 as triggerInboxResolver, d7 as triggerMessagesResolver, eu as updateTableRecordsPlugin, d4 as workflowDraftIdResolver, d5 as workflowDraftRevisionResolver, d1 as workflowIdResolver, d6 as workflowRunIdResolver, d3 as workflowVersionIdResolver, by as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-BCJAutN8.mjs';
1
+ import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-BrhSgvFN.mjs';
2
+ export { e9 as ACTION_RUNS_PATH, cM as API_ID, x as Action, cI as ActionEntry, c2 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, at as ActionItem, b3 as ActionKeyProperty, aB as ActionKeyPropertySchema, b4 as ActionProperty, aC as ActionPropertySchema, ad as ActionResolverItem, bg as ActionTimeoutMillisecondsProperty, aO as ActionTimeoutMillisecondsPropertySchema, bf as ActionTimeoutSecondsProperty, aN as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b2 as ActionTypeProperty, aA as ActionTypePropertySchema, dz as ApiEvent, cL as ApiPluginOptions, y as App, c3 as AppFactoryInput, ar as AppItem, b0 as AppKeyProperty, ay as AppKeyPropertySchema, b1 as AppProperty, az as AppPropertySchema, eE as ApplicationLifecycleEventData, bL as ApprovalStatus, bl as AppsProperty, aT as AppsPropertySchema, dy as AuthEvent, dj as AuthMechanism, b8 as AuthenticationIdProperty, aF as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d$ as CONNECTIONS_ID, cp as CONTEXT_CACHE_MAX_SIZE, co as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dE as ClientCredentialsObject, dP as ClientCredentialsObjectSchema, Q as Connection, dX as ConnectionEntry, dW as ConnectionEntrySchema, b6 as ConnectionIdProperty, aE as ConnectionIdPropertySchema, as as ConnectionItem, b7 as ConnectionProperty, aG as ConnectionPropertySchema, dZ as ConnectionsMap, dY as ConnectionsMapSchema, bn as ConnectionsProperty, aV as ConnectionsPropertySchema, S as ConnectionsResponse, cr as CreateActionRunPluginProvides, dB as Credentials, dU as CredentialsFunction, dT as CredentialsFunctionSchema, dD as CredentialsObject, dR as CredentialsObjectSchema, dV as CredentialsSchema, e8 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ei as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cG as DEFAULT_CONFIG_PATH, ej as DEFAULT_MAX_APPROVAL_RETRIES, e7 as DEFAULT_PAGE_SIZE, ap as DEPRECATION_NOTICE_EVENT, bd as DebugProperty, aL as DebugPropertySchema, aq as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ez as EVENT_EMISSION_ID, eF as EnhancedErrorEventData, bu as ErrorOptions, eD as EventContext, ex as EventEmissionContext, ey as EventEmitter, c4 as FetchPluginProvides, z as Field, bk as FieldsProperty, aS as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, ct as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cK as GetProfilePluginProvides, av as InfoFieldItem, au as InputFieldItem, b5 as InputFieldProperty, aD as InputFieldPropertySchema, b9 as InputsProperty, aH as InputsPropertySchema, ao as JsonSseMessage, bt as LeaseLimitProperty, a$ as LeaseLimitPropertySchema, br as LeaseProperty, aZ as LeasePropertySchema, bs as LeaseSecondsProperty, a_ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, ba as LimitProperty, aI as LimitPropertySchema, cb as ListActionInputFieldsPluginProvides, c9 as ListActionsPluginProvides, c7 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, cf as ListConnectionsPluginProvides, dA as LoadingEvent, cB as MANIFEST_ID, ec as MAX_CONCURRENCY_LIMIT, e6 as MAX_PAGE_LIMIT, cH as ManifestEntry, cx as ManifestPluginOptions, eM as MethodCalledEvent, eG as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, bb as OffsetProperty, aJ as OffsetPropertySchema, bc as OutputProperty, aK as OutputPropertySchema, be as ParamsProperty, aM as ParamsPropertySchema, dF as PkceCredentialsObject, dQ as PkceCredentialsObjectSchema, aj as PollOptions, cP as RESOLVE_CREDENTIALS_ID, bJ as RateLimitInfo, bi as RecordProperty, aQ as RecordPropertySchema, bj as RecordsProperty, aR as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ai as RequestOptions, di as ResolveAuthTokenOptions, d_ as ResolveConnection, dK as ResolveCredentialsOptions, af as ResolvedAppLocator, dk as ResolvedAuth, dC as ResolvedCredentials, dS as ResolvedCredentialsSchema, aw as RootFieldItem, cv as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dx as SdkEvent, an as SseMessage, bh as TableProperty, aP as TablePropertySchema, bm as TablesProperty, aU as TablesPropertySchema, bp as TriggerInboxKeyProperty, aX as TriggerInboxKeyPropertySchema, bq as TriggerInboxNameProperty, aY as TriggerInboxNamePropertySchema, bo as TriggerInboxProperty, aW as TriggerInboxPropertySchema, T as TriggerMessageStatus, cE as UpdateManifestEntryOptions, cF as UpdateManifestEntryResult, U as UserProfile, ax as UserProfileItem, e2 as ZAPIER_BASE_URL, ee as ZAPIER_MAX_CONCURRENT_REQUESTS, ea as ZAPIER_MAX_NETWORK_RETRIES, eb as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bH as ZapierActionError, bA as ZapierApiError, bB as ZapierAppNotFoundError, bM as ZapierApprovalError, by as ZapierAuthenticationError, bF as ZapierBundleError, du as ZapierCacheEntry, dv as ZapierCacheSetOptions, bE as ZapierConfigurationError, bI as ZapierConflictError, bv as ZapierError, bC as ZapierNotFoundError, bK as ZapierRateLimitError, bN as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bD as ZapierResourceNotFoundError, b$ as ZapierSignal, bG as ZapierTimeoutError, bx as ZapierUnknownError, bw as ZapierValidationError, cU as actionKeyResolver, cT as actionTypeResolver, cO as apiPlugin, cN as apiPluginRef, cS as appKeyResolver, c1 as appsPlugin, a1 as batch, eH as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eJ as buildErrorEvent, eI as buildErrorEventWithContext, eL as buildMethodCalledEvent, ew as cleanupEventListeners, dl as clearTokenCache, c_ as clientCredentialsNameResolver, c$ as clientIdResolver, cW as connectionIdGenericResolver, cV as connectionIdResolver, e1 as connectionsPlugin, e0 as connectionsPluginRef, cq as createActionRunPlugin, eK as createBaseEvent, ch as createClientCredentialsPlugin, dw as createMemoryCache, ep as createTableFieldsPlugin, em as createTablePlugin, et as createTableRecordsPlugin, ak as createZapierApi, a8 as createZapierSdkWithoutRegistry, ci as deleteClientCredentialsPlugin, eq as deleteTableFieldsPlugin, en as deleteTablePlugin, eu as deleteTableRecordsPlugin, ah as descriptionFor, d3 as durableRunIdResolver, eC as eventEmissionHookPlugin, eB as eventEmissionPlugin, eA as eventEmissionPluginRef, c5 as fetchPlugin, cm as findFirstConnectionPlugin, cA as findManifestEntry, cn as findUniqueConnectionPlugin, b_ as formatErrorMessage, ac as formatExtensionPluginFailure, eO as generateEventId, cd as getActionInputFieldsSchemaPlugin, ck as getActionPlugin, cs as getActionRunPlugin, ag as getAgent, cj as getAppPlugin, dN as getBaseUrlFromCredentials, _ as getCallerContext, eU as getCiPlatform, dO as getClientIdFromCredentials, cl as getConnectionPlugin, eW as getCpuTime, eP as getCurrentTimestamp, eV as getMemoryUsage, al as getOrCreateApiClient, eR as getOsInfo, eS as getPlatformVersions, cz as getPreferredManifestEntryKey, cJ as getProfilePlugin, eQ as getReleaseId, el as getTablePlugin, er as getTableRecordPlugin, dq as getTokenFromCliLogin, eX as getTtyContext, ef as getZapierApprovalMode, e5 as getZapierCausationId, e4 as getZapierCorrelationId, eh as getZapierDefaultApprovalMode, eg as getZapierOpenAutoModeApprovalsInBrowser, e3 as getZapierSdkService, dn as injectCliLogin, cZ as inputFieldKeyResolver, cY as inputsAllOptionalResolver, cX as inputsResolver, dm as invalidateCachedToken, dt as invalidateCredentialsToken, eT as isCi, dp as isCliLoginAvailable, dG as isClientCredentials, dJ as isCredentialsFunction, dI as isCredentialsObject, am as isPermanentHttpError, dH as isPkceCredentials, o as isZapierAbortDrainSignal, bX as isZapierActionError, bR as isZapierAppNotFoundError, bZ as isZapierApprovalError, bQ as isZapierAuthenticationError, bW as isZapierBundleError, bU as isZapierConflictError, bO as isZapierError, bS as isZapierNotFoundError, bY as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bT as isZapierResourceNotFoundError, c0 as isZapierSignal, bV as isZapierTimeoutError, bP as isZapierValidationError, cc as listActionInputFieldChoicesPlugin, ca as listActionInputFieldsPlugin, c8 as listActionsPlugin, c6 as listAppsPlugin, cg as listClientCredentialsPlugin, ce as listConnectionsPlugin, eo as listTableFieldsPlugin, es as listTableRecordsPlugin, ek as listTablesPlugin, a4 as logDeprecation, cD as manifestPlugin, cC as manifestPluginRef, eN as operationAnnotatorPlugin, ed as parseConcurrencyEnvVar, cy as readManifestFromFile, cw as requestPlugin, a5 as resetDeprecationWarnings, dr as resolveAuth, ds as resolveAuthToken, dM as resolveCredentials, dL as resolveCredentialsFromEnv, cR as resolveCredentialsPlugin, cQ as resolveCredentialsPluginRef, cu as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, db as tableFieldIdsResolver, dd as tableFieldsResolver, dg as tableFiltersResolver, d0 as tableIdResolver, dc as tableNameResolver, d9 as tableRecordIdResolver, da as tableRecordIdsResolver, de as tableRecordsResolver, dh as tableSortResolver, df as tableUpdateRecordsResolver, d1 as triggerInboxResolver, d8 as triggerMessagesResolver, ev as updateTableRecordsPlugin, d5 as workflowDraftIdResolver, d6 as workflowDraftRevisionResolver, d2 as workflowIdResolver, d7 as workflowRunIdResolver, d4 as workflowVersionIdResolver, bz as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-BrhSgvFN.mjs';
3
3
  import * as zod from 'zod';
4
4
  import * as zod_v4_core from 'zod/v4/core';
5
5
  import * as _zapier_kitcore from '@zapier/kitcore';
package/dist/beta.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-BCJAutN8.js';
2
- export { e8 as ACTION_RUNS_PATH, cL as API_ID, x as Action, cH as ActionEntry, c1 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, as as ActionItem, b2 as ActionKeyProperty, aA as ActionKeyPropertySchema, b3 as ActionProperty, aB as ActionPropertySchema, ad as ActionResolverItem, bf as ActionTimeoutMillisecondsProperty, aN as ActionTimeoutMillisecondsPropertySchema, be as ActionTimeoutSecondsProperty, aM as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b1 as ActionTypeProperty, az as ActionTypePropertySchema, dy as ApiEvent, cK as ApiPluginOptions, y as App, c2 as AppFactoryInput, aq as AppItem, a$ as AppKeyProperty, ax as AppKeyPropertySchema, b0 as AppProperty, ay as AppPropertySchema, eD as ApplicationLifecycleEventData, bK as ApprovalStatus, bk as AppsProperty, aS as AppsPropertySchema, dx as AuthEvent, di as AuthMechanism, b7 as AuthenticationIdProperty, aE as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d_ as CONNECTIONS_ID, co as CONTEXT_CACHE_MAX_SIZE, cn as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dD as ClientCredentialsObject, dO as ClientCredentialsObjectSchema, Q as Connection, dW as ConnectionEntry, dV as ConnectionEntrySchema, b5 as ConnectionIdProperty, aD as ConnectionIdPropertySchema, ar as ConnectionItem, b6 as ConnectionProperty, aF as ConnectionPropertySchema, dY as ConnectionsMap, dX as ConnectionsMapSchema, bm as ConnectionsProperty, aU as ConnectionsPropertySchema, S as ConnectionsResponse, cq as CreateActionRunPluginProvides, dA as Credentials, dT as CredentialsFunction, dS as CredentialsFunctionSchema, dC as CredentialsObject, dQ as CredentialsObjectSchema, dU as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, eh as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cF as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, ao as DEPRECATION_NOTICE_EVENT, bc as DebugProperty, aK as DebugPropertySchema, ap as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ey as EVENT_EMISSION_ID, eE as EnhancedErrorEventData, bt as ErrorOptions, eC as EventContext, ew as EventEmissionContext, ex as EventEmitter, c3 as FetchPluginProvides, z as Field, bj as FieldsProperty, aR as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cs as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cJ as GetProfilePluginProvides, au as InfoFieldItem, at as InputFieldItem, b4 as InputFieldProperty, aC as InputFieldPropertySchema, b8 as InputsProperty, aG as InputsPropertySchema, an as JsonSseMessage, bs as LeaseLimitProperty, a_ as LeaseLimitPropertySchema, bq as LeaseProperty, aY as LeasePropertySchema, br as LeaseSecondsProperty, aZ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, b9 as LimitProperty, aH as LimitPropertySchema, ca as ListActionInputFieldsPluginProvides, c8 as ListActionsPluginProvides, c6 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, ce as ListConnectionsPluginProvides, dz as LoadingEvent, cA as MANIFEST_ID, eb as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cG as ManifestEntry, cw as ManifestPluginOptions, eL as MethodCalledEvent, eF as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, ba as OffsetProperty, aI as OffsetPropertySchema, bb as OutputProperty, aJ as OutputPropertySchema, bd as ParamsProperty, aL as ParamsPropertySchema, dE as PkceCredentialsObject, dP as PkceCredentialsObjectSchema, ai as PollOptions, cO as RESOLVE_CREDENTIALS_ID, bI as RateLimitInfo, bh as RecordProperty, aP as RecordPropertySchema, bi as RecordsProperty, aQ as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ah as RequestOptions, dh as ResolveAuthTokenOptions, dZ as ResolveConnection, dJ as ResolveCredentialsOptions, af as ResolvedAppLocator, dj as ResolvedAuth, dB as ResolvedCredentials, dR as ResolvedCredentialsSchema, av as RootFieldItem, cu as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dw as SdkEvent, am as SseMessage, bg as TableProperty, aO as TablePropertySchema, bl as TablesProperty, aT as TablesPropertySchema, bo as TriggerInboxKeyProperty, aW as TriggerInboxKeyPropertySchema, bp as TriggerInboxNameProperty, aX as TriggerInboxNamePropertySchema, bn as TriggerInboxProperty, aV as TriggerInboxPropertySchema, T as TriggerMessageStatus, cD as UpdateManifestEntryOptions, cE as UpdateManifestEntryResult, U as UserProfile, aw as UserProfileItem, e1 as ZAPIER_BASE_URL, ed as ZAPIER_MAX_CONCURRENT_REQUESTS, e9 as ZAPIER_MAX_NETWORK_RETRIES, ea as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bG as ZapierActionError, bz as ZapierApiError, bA as ZapierAppNotFoundError, bL as ZapierApprovalError, bx as ZapierAuthenticationError, bE as ZapierBundleError, dt as ZapierCacheEntry, du as ZapierCacheSetOptions, bD as ZapierConfigurationError, bH as ZapierConflictError, bu as ZapierError, bB as ZapierNotFoundError, bJ as ZapierRateLimitError, bM as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bC as ZapierResourceNotFoundError, b_ as ZapierSignal, bF as ZapierTimeoutError, bw as ZapierUnknownError, bv as ZapierValidationError, cT as actionKeyResolver, cS as actionTypeResolver, cN as apiPlugin, cM as apiPluginRef, cR as appKeyResolver, c0 as appsPlugin, a1 as batch, eG as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eI as buildErrorEvent, eH as buildErrorEventWithContext, eK as buildMethodCalledEvent, ev as cleanupEventListeners, dk as clearTokenCache, cZ as clientCredentialsNameResolver, c_ as clientIdResolver, cV as connectionIdGenericResolver, cU as connectionIdResolver, e0 as connectionsPlugin, d$ as connectionsPluginRef, cp as createActionRunPlugin, eJ as createBaseEvent, cg as createClientCredentialsPlugin, dv as createMemoryCache, eo as createTableFieldsPlugin, el as createTablePlugin, es as createTableRecordsPlugin, aj as createZapierApi, a8 as createZapierSdkWithoutRegistry, ch as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, em as deleteTablePlugin, et as deleteTableRecordsPlugin, d2 as durableRunIdResolver, eB as eventEmissionHookPlugin, eA as eventEmissionPlugin, ez as eventEmissionPluginRef, c4 as fetchPlugin, cl as findFirstConnectionPlugin, cz as findManifestEntry, cm as findUniqueConnectionPlugin, bZ as formatErrorMessage, ac as formatExtensionPluginFailure, eN as generateEventId, cc as getActionInputFieldsSchemaPlugin, cj as getActionPlugin, cr as getActionRunPlugin, ag as getAgent, ci as getAppPlugin, dM as getBaseUrlFromCredentials, _ as getCallerContext, eT as getCiPlatform, dN as getClientIdFromCredentials, ck as getConnectionPlugin, eV as getCpuTime, eO as getCurrentTimestamp, eU as getMemoryUsage, ak as getOrCreateApiClient, eQ as getOsInfo, eR as getPlatformVersions, cy as getPreferredManifestEntryKey, cI as getProfilePlugin, eP as getReleaseId, ek as getTablePlugin, eq as getTableRecordPlugin, dp as getTokenFromCliLogin, eW as getTtyContext, ee as getZapierApprovalMode, e4 as getZapierCausationId, e3 as getZapierCorrelationId, eg as getZapierDefaultApprovalMode, ef as getZapierOpenAutoModeApprovalsInBrowser, e2 as getZapierSdkService, dm as injectCliLogin, cY as inputFieldKeyResolver, cX as inputsAllOptionalResolver, cW as inputsResolver, dl as invalidateCachedToken, ds as invalidateCredentialsToken, eS as isCi, dn as isCliLoginAvailable, dF as isClientCredentials, dI as isCredentialsFunction, dH as isCredentialsObject, al as isPermanentHttpError, dG as isPkceCredentials, o as isZapierAbortDrainSignal, bW as isZapierActionError, bQ as isZapierAppNotFoundError, bY as isZapierApprovalError, bP as isZapierAuthenticationError, bV as isZapierBundleError, bT as isZapierConflictError, bN as isZapierError, bR as isZapierNotFoundError, bX as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bS as isZapierResourceNotFoundError, b$ as isZapierSignal, bU as isZapierTimeoutError, bO as isZapierValidationError, cb as listActionInputFieldChoicesPlugin, c9 as listActionInputFieldsPlugin, c7 as listActionsPlugin, c5 as listAppsPlugin, cf as listClientCredentialsPlugin, cd as listConnectionsPlugin, en as listTableFieldsPlugin, er as listTableRecordsPlugin, ej as listTablesPlugin, a4 as logDeprecation, cC as manifestPlugin, cB as manifestPluginRef, eM as operationAnnotatorPlugin, ec as parseConcurrencyEnvVar, cx as readManifestFromFile, cv as requestPlugin, a5 as resetDeprecationWarnings, dq as resolveAuth, dr as resolveAuthToken, dL as resolveCredentials, dK as resolveCredentialsFromEnv, cQ as resolveCredentialsPlugin, cP as resolveCredentialsPluginRef, ct as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, da as tableFieldIdsResolver, dc as tableFieldsResolver, df as tableFiltersResolver, c$ as tableIdResolver, db as tableNameResolver, d8 as tableRecordIdResolver, d9 as tableRecordIdsResolver, dd as tableRecordsResolver, dg as tableSortResolver, de as tableUpdateRecordsResolver, d0 as triggerInboxResolver, d7 as triggerMessagesResolver, eu as updateTableRecordsPlugin, d4 as workflowDraftIdResolver, d5 as workflowDraftRevisionResolver, d1 as workflowIdResolver, d6 as workflowRunIdResolver, d3 as workflowVersionIdResolver, by as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-BCJAutN8.js';
1
+ import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-BrhSgvFN.js';
2
+ export { e9 as ACTION_RUNS_PATH, cM as API_ID, x as Action, cI as ActionEntry, c2 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, at as ActionItem, b3 as ActionKeyProperty, aB as ActionKeyPropertySchema, b4 as ActionProperty, aC as ActionPropertySchema, ad as ActionResolverItem, bg as ActionTimeoutMillisecondsProperty, aO as ActionTimeoutMillisecondsPropertySchema, bf as ActionTimeoutSecondsProperty, aN as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b2 as ActionTypeProperty, aA as ActionTypePropertySchema, dz as ApiEvent, cL as ApiPluginOptions, y as App, c3 as AppFactoryInput, ar as AppItem, b0 as AppKeyProperty, ay as AppKeyPropertySchema, b1 as AppProperty, az as AppPropertySchema, eE as ApplicationLifecycleEventData, bL as ApprovalStatus, bl as AppsProperty, aT as AppsPropertySchema, dy as AuthEvent, dj as AuthMechanism, b8 as AuthenticationIdProperty, aF as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d$ as CONNECTIONS_ID, cp as CONTEXT_CACHE_MAX_SIZE, co as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dE as ClientCredentialsObject, dP as ClientCredentialsObjectSchema, Q as Connection, dX as ConnectionEntry, dW as ConnectionEntrySchema, b6 as ConnectionIdProperty, aE as ConnectionIdPropertySchema, as as ConnectionItem, b7 as ConnectionProperty, aG as ConnectionPropertySchema, dZ as ConnectionsMap, dY as ConnectionsMapSchema, bn as ConnectionsProperty, aV as ConnectionsPropertySchema, S as ConnectionsResponse, cr as CreateActionRunPluginProvides, dB as Credentials, dU as CredentialsFunction, dT as CredentialsFunctionSchema, dD as CredentialsObject, dR as CredentialsObjectSchema, dV as CredentialsSchema, e8 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ei as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cG as DEFAULT_CONFIG_PATH, ej as DEFAULT_MAX_APPROVAL_RETRIES, e7 as DEFAULT_PAGE_SIZE, ap as DEPRECATION_NOTICE_EVENT, bd as DebugProperty, aL as DebugPropertySchema, aq as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ez as EVENT_EMISSION_ID, eF as EnhancedErrorEventData, bu as ErrorOptions, eD as EventContext, ex as EventEmissionContext, ey as EventEmitter, c4 as FetchPluginProvides, z as Field, bk as FieldsProperty, aS as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, ct as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cK as GetProfilePluginProvides, av as InfoFieldItem, au as InputFieldItem, b5 as InputFieldProperty, aD as InputFieldPropertySchema, b9 as InputsProperty, aH as InputsPropertySchema, ao as JsonSseMessage, bt as LeaseLimitProperty, a$ as LeaseLimitPropertySchema, br as LeaseProperty, aZ as LeasePropertySchema, bs as LeaseSecondsProperty, a_ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, ba as LimitProperty, aI as LimitPropertySchema, cb as ListActionInputFieldsPluginProvides, c9 as ListActionsPluginProvides, c7 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, cf as ListConnectionsPluginProvides, dA as LoadingEvent, cB as MANIFEST_ID, ec as MAX_CONCURRENCY_LIMIT, e6 as MAX_PAGE_LIMIT, cH as ManifestEntry, cx as ManifestPluginOptions, eM as MethodCalledEvent, eG as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, bb as OffsetProperty, aJ as OffsetPropertySchema, bc as OutputProperty, aK as OutputPropertySchema, be as ParamsProperty, aM as ParamsPropertySchema, dF as PkceCredentialsObject, dQ as PkceCredentialsObjectSchema, aj as PollOptions, cP as RESOLVE_CREDENTIALS_ID, bJ as RateLimitInfo, bi as RecordProperty, aQ as RecordPropertySchema, bj as RecordsProperty, aR as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ai as RequestOptions, di as ResolveAuthTokenOptions, d_ as ResolveConnection, dK as ResolveCredentialsOptions, af as ResolvedAppLocator, dk as ResolvedAuth, dC as ResolvedCredentials, dS as ResolvedCredentialsSchema, aw as RootFieldItem, cv as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dx as SdkEvent, an as SseMessage, bh as TableProperty, aP as TablePropertySchema, bm as TablesProperty, aU as TablesPropertySchema, bp as TriggerInboxKeyProperty, aX as TriggerInboxKeyPropertySchema, bq as TriggerInboxNameProperty, aY as TriggerInboxNamePropertySchema, bo as TriggerInboxProperty, aW as TriggerInboxPropertySchema, T as TriggerMessageStatus, cE as UpdateManifestEntryOptions, cF as UpdateManifestEntryResult, U as UserProfile, ax as UserProfileItem, e2 as ZAPIER_BASE_URL, ee as ZAPIER_MAX_CONCURRENT_REQUESTS, ea as ZAPIER_MAX_NETWORK_RETRIES, eb as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bH as ZapierActionError, bA as ZapierApiError, bB as ZapierAppNotFoundError, bM as ZapierApprovalError, by as ZapierAuthenticationError, bF as ZapierBundleError, du as ZapierCacheEntry, dv as ZapierCacheSetOptions, bE as ZapierConfigurationError, bI as ZapierConflictError, bv as ZapierError, bC as ZapierNotFoundError, bK as ZapierRateLimitError, bN as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bD as ZapierResourceNotFoundError, b$ as ZapierSignal, bG as ZapierTimeoutError, bx as ZapierUnknownError, bw as ZapierValidationError, cU as actionKeyResolver, cT as actionTypeResolver, cO as apiPlugin, cN as apiPluginRef, cS as appKeyResolver, c1 as appsPlugin, a1 as batch, eH as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eJ as buildErrorEvent, eI as buildErrorEventWithContext, eL as buildMethodCalledEvent, ew as cleanupEventListeners, dl as clearTokenCache, c_ as clientCredentialsNameResolver, c$ as clientIdResolver, cW as connectionIdGenericResolver, cV as connectionIdResolver, e1 as connectionsPlugin, e0 as connectionsPluginRef, cq as createActionRunPlugin, eK as createBaseEvent, ch as createClientCredentialsPlugin, dw as createMemoryCache, ep as createTableFieldsPlugin, em as createTablePlugin, et as createTableRecordsPlugin, ak as createZapierApi, a8 as createZapierSdkWithoutRegistry, ci as deleteClientCredentialsPlugin, eq as deleteTableFieldsPlugin, en as deleteTablePlugin, eu as deleteTableRecordsPlugin, ah as descriptionFor, d3 as durableRunIdResolver, eC as eventEmissionHookPlugin, eB as eventEmissionPlugin, eA as eventEmissionPluginRef, c5 as fetchPlugin, cm as findFirstConnectionPlugin, cA as findManifestEntry, cn as findUniqueConnectionPlugin, b_ as formatErrorMessage, ac as formatExtensionPluginFailure, eO as generateEventId, cd as getActionInputFieldsSchemaPlugin, ck as getActionPlugin, cs as getActionRunPlugin, ag as getAgent, cj as getAppPlugin, dN as getBaseUrlFromCredentials, _ as getCallerContext, eU as getCiPlatform, dO as getClientIdFromCredentials, cl as getConnectionPlugin, eW as getCpuTime, eP as getCurrentTimestamp, eV as getMemoryUsage, al as getOrCreateApiClient, eR as getOsInfo, eS as getPlatformVersions, cz as getPreferredManifestEntryKey, cJ as getProfilePlugin, eQ as getReleaseId, el as getTablePlugin, er as getTableRecordPlugin, dq as getTokenFromCliLogin, eX as getTtyContext, ef as getZapierApprovalMode, e5 as getZapierCausationId, e4 as getZapierCorrelationId, eh as getZapierDefaultApprovalMode, eg as getZapierOpenAutoModeApprovalsInBrowser, e3 as getZapierSdkService, dn as injectCliLogin, cZ as inputFieldKeyResolver, cY as inputsAllOptionalResolver, cX as inputsResolver, dm as invalidateCachedToken, dt as invalidateCredentialsToken, eT as isCi, dp as isCliLoginAvailable, dG as isClientCredentials, dJ as isCredentialsFunction, dI as isCredentialsObject, am as isPermanentHttpError, dH as isPkceCredentials, o as isZapierAbortDrainSignal, bX as isZapierActionError, bR as isZapierAppNotFoundError, bZ as isZapierApprovalError, bQ as isZapierAuthenticationError, bW as isZapierBundleError, bU as isZapierConflictError, bO as isZapierError, bS as isZapierNotFoundError, bY as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bT as isZapierResourceNotFoundError, c0 as isZapierSignal, bV as isZapierTimeoutError, bP as isZapierValidationError, cc as listActionInputFieldChoicesPlugin, ca as listActionInputFieldsPlugin, c8 as listActionsPlugin, c6 as listAppsPlugin, cg as listClientCredentialsPlugin, ce as listConnectionsPlugin, eo as listTableFieldsPlugin, es as listTableRecordsPlugin, ek as listTablesPlugin, a4 as logDeprecation, cD as manifestPlugin, cC as manifestPluginRef, eN as operationAnnotatorPlugin, ed as parseConcurrencyEnvVar, cy as readManifestFromFile, cw as requestPlugin, a5 as resetDeprecationWarnings, dr as resolveAuth, ds as resolveAuthToken, dM as resolveCredentials, dL as resolveCredentialsFromEnv, cR as resolveCredentialsPlugin, cQ as resolveCredentialsPluginRef, cu as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, db as tableFieldIdsResolver, dd as tableFieldsResolver, dg as tableFiltersResolver, d0 as tableIdResolver, dc as tableNameResolver, d9 as tableRecordIdResolver, da as tableRecordIdsResolver, de as tableRecordsResolver, dh as tableSortResolver, df as tableUpdateRecordsResolver, d1 as triggerInboxResolver, d8 as triggerMessagesResolver, ev as updateTableRecordsPlugin, d5 as workflowDraftIdResolver, d6 as workflowDraftRevisionResolver, d2 as workflowIdResolver, d7 as workflowRunIdResolver, d4 as workflowVersionIdResolver, bz as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-BrhSgvFN.js';
3
3
  import * as zod from 'zod';
4
4
  import * as zod_v4_core from 'zod/v4/core';
5
5
  import * as _zapier_kitcore from '@zapier/kitcore';
package/dist/beta.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { createZapierSdk, zapierBetaSdkPlugin } from './chunk-ICFP2AO2.mjs';
2
- 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, 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, 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, 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-A2GMUMK3.mjs';
1
+ export { createZapierSdk, zapierBetaSdkPlugin } from './chunk-Q7ECOKIG.mjs';
2
+ 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, 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, 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';
3
3
  import './chunk-Y6FXYEAI.mjs';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkB4DVAMYI_cjs = require('./chunk-B4DVAMYI.cjs');
3
+ var chunkLO3VMFOP_cjs = require('./chunk-LO3VMFOP.cjs');
4
4
  var kitcore = require('@zapier/kitcore');
5
5
 
6
6
  var zapierBetaSdkPlugin = kitcore.definePlugin({
7
7
  namespace: "zapier",
8
8
  name: "beta-sdk",
9
- exports: [chunkB4DVAMYI_cjs.zapierSdkPlugin]
9
+ exports: [chunkLO3VMFOP_cjs.zapierSdkPlugin]
10
10
  });
11
11
  function createZapierSdk(options = {}) {
12
12
  return kitcore.createSdk(zapierBetaSdkPlugin, {
13
13
  configuration: {
14
- [chunkB4DVAMYI_cjs.SDK_OPTIONS_ID]: options,
15
- [kitcore.CORE_OPTIONS_ID]: chunkB4DVAMYI_cjs.zapierCoreOptions
14
+ [chunkLO3VMFOP_cjs.SDK_OPTIONS_ID]: options,
15
+ [kitcore.CORE_OPTIONS_ID]: chunkLO3VMFOP_cjs.zapierCoreOptions
16
16
  }
17
17
  });
18
18
  }
@@ -513,7 +513,9 @@ var WatchTriggerInboxSchema = TriggerInboxCommandBaseSchema.extend({
513
513
  "Continuously consume a trigger inbox: drain currently-available messages, then subscribe to SSE notifications for new arrivals, until aborted. Stop via the `signal` AbortSignal or by throwing `ZapierAbortDrainSignal` from a handler. Transient drain failures (5xx, 429, network blips) retry indefinitely with bounded backoff; real-time wake-up and drain health warnings print to stderr. Resolves cleanly on abort; rejects on a fatal error or a fail-fast handler error."
514
514
  );
515
515
  var ActionExecutionInputSchema = zod.z.object({
516
- inputs: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
516
+ inputs: InputsPropertySchema.optional().describe(
517
+ "Input parameters for the action"
518
+ ),
517
519
  /** @deprecated Use `connection` instead. */
518
520
  connectionId: ConnectionIdPropertySchema.optional().meta({
519
521
  deprecated: true
@@ -721,7 +723,7 @@ function createDebugLogger(enabled) {
721
723
  function censorHeaders(headers) {
722
724
  if (!headers) return headers;
723
725
  const headersObj = new Headers(headers);
724
- const authKeys = ["authorization", "x-api-key"];
726
+ const authKeys = ["authorization", "x-api-key", "x-zapier-approval-token"];
725
727
  for (const [key, value] of headersObj.entries()) {
726
728
  if (authKeys.some((authKey) => key.toLowerCase() === authKey)) {
727
729
  const spaceIndex = value.indexOf(" ");
@@ -2819,7 +2821,7 @@ function logRouteOverride({
2819
2821
  }
2820
2822
 
2821
2823
  // src/sdk-version.ts
2822
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.114.4" : void 0) || "unknown";
2824
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.115.0" : void 0) || "unknown";
2823
2825
 
2824
2826
  // src/utils/open-url.ts
2825
2827
  var nodePrefix = "node:";
@@ -2912,6 +2914,8 @@ var CreateApprovalResponseSchema = zod.z.object({
2912
2914
  approval_url: zod.z.string().url(),
2913
2915
  poll_url: zod.z.string().url(),
2914
2916
  stream_url: zod.z.string().url().optional(),
2917
+ // Present when the approval mints one-time tokens; absent on legacy/manual approvals.
2918
+ tokens_url: zod.z.string().url().optional(),
2915
2919
  reason: zod.z.string().optional()
2916
2920
  }).transform((approval, ctx) => {
2917
2921
  const id = approval.id ?? approval.approval_id;
@@ -2924,6 +2928,14 @@ var CreateApprovalResponseSchema = zod.z.object({
2924
2928
  }
2925
2929
  return { ...approval, id };
2926
2930
  });
2931
+ var APPROVAL_TOKEN_HANDLE_PATTERN = /^zat_[0-9A-Za-z]{24}$/;
2932
+ var MAX_APPROVAL_TOKEN_HANDLES = 20;
2933
+ var ApprovalTokenSchema = zod.z.object({
2934
+ handle: zod.z.string().regex(APPROVAL_TOKEN_HANDLE_PATTERN)
2935
+ });
2936
+ var ApprovalTokensResponseSchema = zod.z.object({
2937
+ tokens: zod.z.array(zod.z.unknown())
2938
+ });
2927
2939
  var PollApprovalResponseSchema = zod.z.object({
2928
2940
  id: zod.z.string().optional(),
2929
2941
  status: ApprovalStatusSchema,
@@ -3088,6 +3100,25 @@ var ZapierApiClient = class {
3088
3100
  return { response };
3089
3101
  }
3090
3102
  const errorType = response.headers.get("x-zapier-error-type");
3103
+ if (errorType === "approval_token_invalid") {
3104
+ const { data } = await this.parseResult(response);
3105
+ const { message, errors } = this.parseErrorResponse({
3106
+ status: response.status,
3107
+ statusText: response.statusText,
3108
+ data
3109
+ });
3110
+ return {
3111
+ response,
3112
+ approvalRoundError: new ZapierApprovalError(
3113
+ message || "Approval token rejected by the server",
3114
+ {
3115
+ status: "approval_token_invalid",
3116
+ statusCode: response.status,
3117
+ errors
3118
+ }
3119
+ )
3120
+ };
3121
+ }
3091
3122
  if (errorType !== "approval_required") {
3092
3123
  return { response };
3093
3124
  }
@@ -3104,8 +3135,9 @@ var ZapierApiClient = class {
3104
3135
  "x-zapier-ask-statement-ids"
3105
3136
  );
3106
3137
  const askStatementIds = askStatementIdsHeader ? JSON.parse(askStatementIdsHeader) : void 0;
3138
+ let approvalTokens;
3107
3139
  try {
3108
- await this.runOneApprovalRound({
3140
+ approvalTokens = await this.runOneApprovalRound({
3109
3141
  buildContext: approvalContext,
3110
3142
  mode: approvalMode,
3111
3143
  signal: init?.signal ?? void 0,
@@ -3115,6 +3147,13 @@ var ZapierApiClient = class {
3115
3147
  } catch (error) {
3116
3148
  return { response, approvalRoundError: error };
3117
3149
  }
3150
+ const nextHeaders = new Headers(init?.headers);
3151
+ if (approvalTokens.length > 0) {
3152
+ nextHeaders.set("x-zapier-approval-token", approvalTokens.join(","));
3153
+ } else {
3154
+ nextHeaders.delete("x-zapier-approval-token");
3155
+ }
3156
+ init = { ...init, headers: nextHeaders };
3118
3157
  }
3119
3158
  throw new ZapierApiError("Approval retry loop ended unexpectedly");
3120
3159
  };
@@ -3128,9 +3167,10 @@ var ZapierApiClient = class {
3128
3167
  * - `request_denied_by_policy` → a policy rule permanently blocks the
3129
3168
  * request; no human can approve it. Throw.
3130
3169
  * - `approval_required` → the request needs human approval; the
3131
- * SDK creates an approval, opens the URL
3132
- * (poll mode), waits for resolution, and
3133
- * retries the original request.
3170
+ * SDK creates an approval, waits for
3171
+ * resolution, then retries with any
3172
+ * minted one-time token(s) attached.
3173
+ * - `approval_token_invalid` → a retried token was rejected. Terminal.
3134
3174
  * - anything else → not our concern, pass through.
3135
3175
  *
3136
3176
  * The retry loop exists because a single user action can legitimately
@@ -3188,6 +3228,9 @@ var ZapierApiClient = class {
3188
3228
  );
3189
3229
  }
3190
3230
  if (errorType !== "approval_required") {
3231
+ if (approvalRoundError) {
3232
+ throw approvalRoundError;
3233
+ }
3191
3234
  return response;
3192
3235
  }
3193
3236
  if (approvalRoundError) {
@@ -3694,9 +3737,48 @@ var ZapierApiClient = class {
3694
3737
  }
3695
3738
  }
3696
3739
  /**
3697
- * Run a single approval round: create the approval, open the URL (poll mode)
3698
- * or throw (throw mode), poll until resolved, and emit events. Throws on
3699
- * denied/failed/timeout/unexpected status. Returns on approved.
3740
+ * Fetch every token handle minted for a resolved approval. Fails open
3741
+ * (returns [], emits approval:error) on any non-200, malformed body, or
3742
+ * network error, so a token-fetch failure never blocks the retry. Aborts
3743
+ * propagate.
3744
+ */
3745
+ async fetchApprovalTokens(approvalId, tokensUrl, signal, callId) {
3746
+ const failOpen = (message) => {
3747
+ this.emitEvent("approval:error", { approvalId, message });
3748
+ return [];
3749
+ };
3750
+ try {
3751
+ const response = await this.withSemaphore(
3752
+ { url: tokensUrl, method: "GET", signal },
3753
+ () => this.rawFetchUrl(tokensUrl, {
3754
+ method: "GET",
3755
+ headers: { Accept: "application/json" },
3756
+ signal,
3757
+ [CORRELATION_CALL_ID]: callId
3758
+ })
3759
+ );
3760
+ if (!response.ok) {
3761
+ return failOpen(`Failed to fetch approval tokens: ${response.status}`);
3762
+ }
3763
+ const { data } = await this.parseResult(response);
3764
+ const body = ApprovalTokensResponseSchema.safeParse(data);
3765
+ if (!body.success) {
3766
+ return failOpen("Failed to parse approval tokens response");
3767
+ }
3768
+ return body.data.tokens.map((t) => ApprovalTokenSchema.safeParse(t)).filter((parsed) => parsed.success).map((parsed) => parsed.data.handle).slice(0, MAX_APPROVAL_TOKEN_HANDLES);
3769
+ } catch (err) {
3770
+ if (signal?.aborted || isAbortError(err)) throw err;
3771
+ return failOpen(
3772
+ `Failed to fetch approval tokens: ${err instanceof Error ? err.message : String(err)}`
3773
+ );
3774
+ }
3775
+ }
3776
+ /**
3777
+ * Run a single approval round: create the approval, open the URL (poll
3778
+ * mode) or throw (throw mode), poll until resolved, and emit events.
3779
+ * Throws on denied/failed/timeout/unexpected status. Returns on approved
3780
+ * with every one-time token handle the approval minted (via tokens_url),
3781
+ * or [] when no tokens_url is present (legacy/manual policy-sync path).
3700
3782
  *
3701
3783
  * Caller is responsible for passing a non-"disabled" mode; this method
3702
3784
  * unconditionally creates an approval.
@@ -3786,6 +3868,13 @@ var ZapierApiClient = class {
3786
3868
  if (approval.stream_url) {
3787
3869
  assertApprovalOrigin(approval.stream_url, sdkapiOrigin, "stream_url");
3788
3870
  }
3871
+ if (approval.tokens_url) {
3872
+ assertApprovalOrigin(
3873
+ approval.tokens_url,
3874
+ approvalsOrigin,
3875
+ "tokens_url"
3876
+ );
3877
+ }
3789
3878
  assertApprovalOrigin(
3790
3879
  approval.approval_url,
3791
3880
  browserOrigin,
@@ -3807,7 +3896,12 @@ var ZapierApiClient = class {
3807
3896
  this.emitEvent("approval:approved", {
3808
3897
  approvalId: approval.id
3809
3898
  });
3810
- return;
3899
+ return approval.tokens_url ? this.fetchApprovalTokens(
3900
+ approval.id,
3901
+ approval.tokens_url,
3902
+ signal,
3903
+ callId
3904
+ ) : [];
3811
3905
  }
3812
3906
  if (approval.status === "denied") {
3813
3907
  this.emitEvent("approval:denied", {
@@ -3999,6 +4093,12 @@ var ZapierApiClient = class {
3999
4093
  this.emitEvent("approval:approved", {
4000
4094
  approvalId: approval.id
4001
4095
  });
4096
+ return approval.tokens_url ? this.fetchApprovalTokens(
4097
+ approval.id,
4098
+ approval.tokens_url,
4099
+ signal,
4100
+ callId
4101
+ ) : [];
4002
4102
  }
4003
4103
  throwApprovalFailed({
4004
4104
  approvalId,
@@ -13294,6 +13394,17 @@ function describeThrown(error) {
13294
13394
  }
13295
13395
  }
13296
13396
 
13397
+ // src/utils/schema-description.ts
13398
+ function descriptionFor(schema) {
13399
+ let current = schema;
13400
+ while (current) {
13401
+ const own = current.description;
13402
+ if (own) return own;
13403
+ current = current._zod?.def?.innerType;
13404
+ }
13405
+ return void 0;
13406
+ }
13407
+
13297
13408
  Object.defineProperty(exports, "CONTEXT", {
13298
13409
  enumerable: true,
13299
13410
  get: function () { return kitcore.CONTEXT; }
@@ -13586,6 +13697,7 @@ exports.deleteClientCredentialsPlugin = deleteClientCredentialsPlugin;
13586
13697
  exports.deleteTableFieldsPlugin = deleteTableFieldsPlugin;
13587
13698
  exports.deleteTablePlugin = deleteTablePlugin;
13588
13699
  exports.deleteTableRecordsPlugin = deleteTableRecordsPlugin;
13700
+ exports.descriptionFor = descriptionFor;
13589
13701
  exports.durableRunIdResolver = durableRunIdResolver;
13590
13702
  exports.eventEmissionHookPlugin = eventEmissionHookPlugin;
13591
13703
  exports.eventEmissionPlugin = eventEmissionPlugin;