@zapier/zapier-sdk 0.115.1 → 0.116.1
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 +18 -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-DNSSO7AI.cjs → chunk-2JWAWQSA.cjs} +4 -4
- package/dist/{chunk-GQI5FACN.cjs → chunk-QJLBUSRL.cjs} +24 -2
- package/dist/{chunk-RWJJBIN6.mjs → chunk-T62QPSDN.mjs} +24 -3
- package/dist/{chunk-NOHDNPVD.mjs → chunk-Y4Z3647P.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-CKzlo4Y-.d.mts} +17 -1
- package/dist/{index-BrhSgvFN.d.ts → index-CKzlo4Y-.d.ts} +17 -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/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-
|
|
2
|
-
export {
|
|
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-CKzlo4Y-.mjs';
|
|
2
|
+
export { ea as ACTION_RUNS_PATH, cN as API_ID, x as Action, cJ as ActionEntry, c3 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, au as ActionItem, b4 as ActionKeyProperty, aC as ActionKeyPropertySchema, b5 as ActionProperty, aD as ActionPropertySchema, ad as ActionResolverItem, bh as ActionTimeoutMillisecondsProperty, aP as ActionTimeoutMillisecondsPropertySchema, bg as ActionTimeoutSecondsProperty, aO as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b3 as ActionTypeProperty, aB as ActionTypePropertySchema, dA as ApiEvent, cM as ApiPluginOptions, y as App, c4 as AppFactoryInput, as as AppItem, b1 as AppKeyProperty, az as AppKeyPropertySchema, b2 as AppProperty, aA as AppPropertySchema, eF as ApplicationLifecycleEventData, bM as ApprovalStatus, bm as AppsProperty, aU as AppsPropertySchema, dz as AuthEvent, dk as AuthMechanism, b9 as AuthenticationIdProperty, aG as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, e0 as CONNECTIONS_ID, cq as CONTEXT_CACHE_MAX_SIZE, cp as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dF as ClientCredentialsObject, dQ as ClientCredentialsObjectSchema, Q as Connection, dY as ConnectionEntry, dX as ConnectionEntrySchema, b7 as ConnectionIdProperty, aF as ConnectionIdPropertySchema, at as ConnectionItem, b8 as ConnectionProperty, aH as ConnectionPropertySchema, d_ as ConnectionsMap, dZ as ConnectionsMapSchema, bo as ConnectionsProperty, aW as ConnectionsPropertySchema, S as ConnectionsResponse, cs as CreateActionRunPluginProvides, dC as Credentials, dV as CredentialsFunction, dU as CredentialsFunctionSchema, dE as CredentialsObject, dS as CredentialsObjectSchema, dW as CredentialsSchema, e9 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ej as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cH as DEFAULT_CONFIG_PATH, ek as DEFAULT_MAX_APPROVAL_RETRIES, e8 as DEFAULT_PAGE_SIZE, aq as DEPRECATION_NOTICE_EVENT, be as DebugProperty, aM as DebugPropertySchema, ar as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, eA as EVENT_EMISSION_ID, eG as EnhancedErrorEventData, bv as ErrorOptions, eE as EventContext, ey as EventEmissionContext, ez as EventEmitter, c5 as FetchPluginProvides, z as Field, bl as FieldsProperty, aT as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cu as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cL as GetProfilePluginProvides, aw as InfoFieldItem, av as InputFieldItem, b6 as InputFieldProperty, aE as InputFieldPropertySchema, ba as InputsProperty, aI as InputsPropertySchema, ap as JsonSseMessage, bu as LeaseLimitProperty, b0 as LeaseLimitPropertySchema, bs as LeaseProperty, a_ as LeasePropertySchema, bt as LeaseSecondsProperty, a$ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, bb as LimitProperty, aJ as LimitPropertySchema, cc as ListActionInputFieldsPluginProvides, ca as ListActionsPluginProvides, c8 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, cg as ListConnectionsPluginProvides, dB as LoadingEvent, cC as MANIFEST_ID, ed as MAX_CONCURRENCY_LIMIT, e7 as MAX_PAGE_LIMIT, cI as ManifestEntry, cy as ManifestPluginOptions, eN as MethodCalledEvent, eH as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, bc as OffsetProperty, aK as OffsetPropertySchema, bd as OutputProperty, aL as OutputPropertySchema, bf as ParamsProperty, aN as ParamsPropertySchema, dG as PkceCredentialsObject, dR as PkceCredentialsObjectSchema, ak as PollOptions, cQ as RESOLVE_CREDENTIALS_ID, bK as RateLimitInfo, bj as RecordProperty, aR as RecordPropertySchema, bk as RecordsProperty, aS as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, aj as RequestOptions, dj as ResolveAuthTokenOptions, d$ as ResolveConnection, dL as ResolveCredentialsOptions, af as ResolvedAppLocator, dl as ResolvedAuth, dD as ResolvedCredentials, dT as ResolvedCredentialsSchema, ax as RootFieldItem, cw as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dy as SdkEvent, ao as SseMessage, bi as TableProperty, aQ as TablePropertySchema, bn as TablesProperty, aV as TablesPropertySchema, bq as TriggerInboxKeyProperty, aY as TriggerInboxKeyPropertySchema, br as TriggerInboxNameProperty, aZ as TriggerInboxNamePropertySchema, bp as TriggerInboxProperty, aX as TriggerInboxPropertySchema, T as TriggerMessageStatus, cF as UpdateManifestEntryOptions, cG as UpdateManifestEntryResult, U as UserProfile, ay as UserProfileItem, e3 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bI as ZapierActionError, bB as ZapierApiError, bC as ZapierAppNotFoundError, bN as ZapierApprovalError, bz as ZapierAuthenticationError, bG as ZapierBundleError, dv as ZapierCacheEntry, dw as ZapierCacheSetOptions, bF as ZapierConfigurationError, bJ as ZapierConflictError, bw as ZapierError, bD as ZapierNotFoundError, bL as ZapierRateLimitError, bO as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bE as ZapierResourceNotFoundError, c0 as ZapierSignal, bH as ZapierTimeoutError, by as ZapierUnknownError, bx as ZapierValidationError, cV as actionKeyResolver, cU as actionTypeResolver, cP as apiPlugin, cO as apiPluginRef, cT as appKeyResolver, c2 as appsPlugin, a1 as batch, eI as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eK as buildErrorEvent, eJ as buildErrorEventWithContext, eM as buildMethodCalledEvent, ex as cleanupEventListeners, dm as clearTokenCache, c$ as clientCredentialsNameResolver, d0 as clientIdResolver, cX as connectionIdGenericResolver, cW as connectionIdResolver, e2 as connectionsPlugin, e1 as connectionsPluginRef, cr as createActionRunPlugin, eL as createBaseEvent, ci as createClientCredentialsPlugin, dx as createMemoryCache, eq as createTableFieldsPlugin, en as createTablePlugin, eu as createTableRecordsPlugin, al as createZapierApi, a8 as createZapierSdkWithoutRegistry, cj as deleteClientCredentialsPlugin, er as deleteTableFieldsPlugin, eo as deleteTablePlugin, ev as deleteTableRecordsPlugin, ah as descriptionFor, d4 as durableRunIdResolver, eD as eventEmissionHookPlugin, eC as eventEmissionPlugin, eB as eventEmissionPluginRef, c6 as fetchPlugin, cn as findFirstConnectionPlugin, cB as findManifestEntry, co as findUniqueConnectionPlugin, b$ as formatErrorMessage, ac as formatExtensionPluginFailure, eP as generateEventId, ce as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, ct as getActionRunPlugin, ag as getAgent, ck as getAppPlugin, dO as getBaseUrlFromCredentials, _ as getCallerContext, eV as getCiPlatform, dP as getClientIdFromCredentials, cm as getConnectionPlugin, eX as getCpuTime, eQ as getCurrentTimestamp, eW as getMemoryUsage, am as getOrCreateApiClient, eS as getOsInfo, eT as getPlatformVersions, cA as getPreferredManifestEntryKey, cK as getProfilePlugin, eR as getReleaseId, em as getTablePlugin, es as getTableRecordPlugin, dr as getTokenFromCliLogin, eY as getTtyContext, eg as getZapierApprovalMode, e6 as getZapierCausationId, e5 as getZapierCorrelationId, ei as getZapierDefaultApprovalMode, eh as getZapierOpenAutoModeApprovalsInBrowser, e4 as getZapierSdkService, dp as injectCliLogin, c_ as inputFieldKeyResolver, cZ as inputsAllOptionalResolver, cY as inputsResolver, dn as invalidateCachedToken, du as invalidateCredentialsToken, eU as isCi, dq as isCliLoginAvailable, dH as isClientCredentials, dK as isCredentialsFunction, dJ as isCredentialsObject, ai as isInternalField, an as isPermanentHttpError, dI as isPkceCredentials, o as isZapierAbortDrainSignal, bY as isZapierActionError, bS as isZapierAppNotFoundError, b_ as isZapierApprovalError, bR as isZapierAuthenticationError, bX as isZapierBundleError, bV as isZapierConflictError, bP as isZapierError, bT as isZapierNotFoundError, bZ as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bU as isZapierResourceNotFoundError, c1 as isZapierSignal, bW as isZapierTimeoutError, bQ as isZapierValidationError, cd as listActionInputFieldChoicesPlugin, cb as listActionInputFieldsPlugin, c9 as listActionsPlugin, c7 as listAppsPlugin, ch as listClientCredentialsPlugin, cf as listConnectionsPlugin, ep as listTableFieldsPlugin, et as listTableRecordsPlugin, el as listTablesPlugin, a4 as logDeprecation, cE as manifestPlugin, cD as manifestPluginRef, eO as operationAnnotatorPlugin, ee as parseConcurrencyEnvVar, cz as readManifestFromFile, cx as requestPlugin, a5 as resetDeprecationWarnings, ds as resolveAuth, dt as resolveAuthToken, dN as resolveCredentials, dM as resolveCredentialsFromEnv, cS as resolveCredentialsPlugin, cR as resolveCredentialsPluginRef, cv as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, dc as tableFieldIdsResolver, de as tableFieldsResolver, dh as tableFiltersResolver, d1 as tableIdResolver, dd as tableNameResolver, da as tableRecordIdResolver, db as tableRecordIdsResolver, df as tableRecordsResolver, di as tableSortResolver, dg as tableUpdateRecordsResolver, d2 as triggerInboxResolver, d9 as triggerMessagesResolver, ew as updateTableRecordsPlugin, d6 as workflowDraftIdResolver, d7 as workflowDraftRevisionResolver, d3 as workflowIdResolver, d8 as workflowRunIdResolver, d5 as workflowVersionIdResolver, bA as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-CKzlo4Y-.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-
|
|
2
|
-
export {
|
|
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-CKzlo4Y-.js';
|
|
2
|
+
export { ea as ACTION_RUNS_PATH, cN as API_ID, x as Action, cJ as ActionEntry, c3 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, au as ActionItem, b4 as ActionKeyProperty, aC as ActionKeyPropertySchema, b5 as ActionProperty, aD as ActionPropertySchema, ad as ActionResolverItem, bh as ActionTimeoutMillisecondsProperty, aP as ActionTimeoutMillisecondsPropertySchema, bg as ActionTimeoutSecondsProperty, aO as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b3 as ActionTypeProperty, aB as ActionTypePropertySchema, dA as ApiEvent, cM as ApiPluginOptions, y as App, c4 as AppFactoryInput, as as AppItem, b1 as AppKeyProperty, az as AppKeyPropertySchema, b2 as AppProperty, aA as AppPropertySchema, eF as ApplicationLifecycleEventData, bM as ApprovalStatus, bm as AppsProperty, aU as AppsPropertySchema, dz as AuthEvent, dk as AuthMechanism, b9 as AuthenticationIdProperty, aG as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, e0 as CONNECTIONS_ID, cq as CONTEXT_CACHE_MAX_SIZE, cp as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dF as ClientCredentialsObject, dQ as ClientCredentialsObjectSchema, Q as Connection, dY as ConnectionEntry, dX as ConnectionEntrySchema, b7 as ConnectionIdProperty, aF as ConnectionIdPropertySchema, at as ConnectionItem, b8 as ConnectionProperty, aH as ConnectionPropertySchema, d_ as ConnectionsMap, dZ as ConnectionsMapSchema, bo as ConnectionsProperty, aW as ConnectionsPropertySchema, S as ConnectionsResponse, cs as CreateActionRunPluginProvides, dC as Credentials, dV as CredentialsFunction, dU as CredentialsFunctionSchema, dE as CredentialsObject, dS as CredentialsObjectSchema, dW as CredentialsSchema, e9 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ej as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cH as DEFAULT_CONFIG_PATH, ek as DEFAULT_MAX_APPROVAL_RETRIES, e8 as DEFAULT_PAGE_SIZE, aq as DEPRECATION_NOTICE_EVENT, be as DebugProperty, aM as DebugPropertySchema, ar as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, eA as EVENT_EMISSION_ID, eG as EnhancedErrorEventData, bv as ErrorOptions, eE as EventContext, ey as EventEmissionContext, ez as EventEmitter, c5 as FetchPluginProvides, z as Field, bl as FieldsProperty, aT as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cu as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cL as GetProfilePluginProvides, aw as InfoFieldItem, av as InputFieldItem, b6 as InputFieldProperty, aE as InputFieldPropertySchema, ba as InputsProperty, aI as InputsPropertySchema, ap as JsonSseMessage, bu as LeaseLimitProperty, b0 as LeaseLimitPropertySchema, bs as LeaseProperty, a_ as LeasePropertySchema, bt as LeaseSecondsProperty, a$ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, bb as LimitProperty, aJ as LimitPropertySchema, cc as ListActionInputFieldsPluginProvides, ca as ListActionsPluginProvides, c8 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, cg as ListConnectionsPluginProvides, dB as LoadingEvent, cC as MANIFEST_ID, ed as MAX_CONCURRENCY_LIMIT, e7 as MAX_PAGE_LIMIT, cI as ManifestEntry, cy as ManifestPluginOptions, eN as MethodCalledEvent, eH as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, bc as OffsetProperty, aK as OffsetPropertySchema, bd as OutputProperty, aL as OutputPropertySchema, bf as ParamsProperty, aN as ParamsPropertySchema, dG as PkceCredentialsObject, dR as PkceCredentialsObjectSchema, ak as PollOptions, cQ as RESOLVE_CREDENTIALS_ID, bK as RateLimitInfo, bj as RecordProperty, aR as RecordPropertySchema, bk as RecordsProperty, aS as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, aj as RequestOptions, dj as ResolveAuthTokenOptions, d$ as ResolveConnection, dL as ResolveCredentialsOptions, af as ResolvedAppLocator, dl as ResolvedAuth, dD as ResolvedCredentials, dT as ResolvedCredentialsSchema, ax as RootFieldItem, cw as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dy as SdkEvent, ao as SseMessage, bi as TableProperty, aQ as TablePropertySchema, bn as TablesProperty, aV as TablesPropertySchema, bq as TriggerInboxKeyProperty, aY as TriggerInboxKeyPropertySchema, br as TriggerInboxNameProperty, aZ as TriggerInboxNamePropertySchema, bp as TriggerInboxProperty, aX as TriggerInboxPropertySchema, T as TriggerMessageStatus, cF as UpdateManifestEntryOptions, cG as UpdateManifestEntryResult, U as UserProfile, ay as UserProfileItem, e3 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bI as ZapierActionError, bB as ZapierApiError, bC as ZapierAppNotFoundError, bN as ZapierApprovalError, bz as ZapierAuthenticationError, bG as ZapierBundleError, dv as ZapierCacheEntry, dw as ZapierCacheSetOptions, bF as ZapierConfigurationError, bJ as ZapierConflictError, bw as ZapierError, bD as ZapierNotFoundError, bL as ZapierRateLimitError, bO as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bE as ZapierResourceNotFoundError, c0 as ZapierSignal, bH as ZapierTimeoutError, by as ZapierUnknownError, bx as ZapierValidationError, cV as actionKeyResolver, cU as actionTypeResolver, cP as apiPlugin, cO as apiPluginRef, cT as appKeyResolver, c2 as appsPlugin, a1 as batch, eI as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eK as buildErrorEvent, eJ as buildErrorEventWithContext, eM as buildMethodCalledEvent, ex as cleanupEventListeners, dm as clearTokenCache, c$ as clientCredentialsNameResolver, d0 as clientIdResolver, cX as connectionIdGenericResolver, cW as connectionIdResolver, e2 as connectionsPlugin, e1 as connectionsPluginRef, cr as createActionRunPlugin, eL as createBaseEvent, ci as createClientCredentialsPlugin, dx as createMemoryCache, eq as createTableFieldsPlugin, en as createTablePlugin, eu as createTableRecordsPlugin, al as createZapierApi, a8 as createZapierSdkWithoutRegistry, cj as deleteClientCredentialsPlugin, er as deleteTableFieldsPlugin, eo as deleteTablePlugin, ev as deleteTableRecordsPlugin, ah as descriptionFor, d4 as durableRunIdResolver, eD as eventEmissionHookPlugin, eC as eventEmissionPlugin, eB as eventEmissionPluginRef, c6 as fetchPlugin, cn as findFirstConnectionPlugin, cB as findManifestEntry, co as findUniqueConnectionPlugin, b$ as formatErrorMessage, ac as formatExtensionPluginFailure, eP as generateEventId, ce as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, ct as getActionRunPlugin, ag as getAgent, ck as getAppPlugin, dO as getBaseUrlFromCredentials, _ as getCallerContext, eV as getCiPlatform, dP as getClientIdFromCredentials, cm as getConnectionPlugin, eX as getCpuTime, eQ as getCurrentTimestamp, eW as getMemoryUsage, am as getOrCreateApiClient, eS as getOsInfo, eT as getPlatformVersions, cA as getPreferredManifestEntryKey, cK as getProfilePlugin, eR as getReleaseId, em as getTablePlugin, es as getTableRecordPlugin, dr as getTokenFromCliLogin, eY as getTtyContext, eg as getZapierApprovalMode, e6 as getZapierCausationId, e5 as getZapierCorrelationId, ei as getZapierDefaultApprovalMode, eh as getZapierOpenAutoModeApprovalsInBrowser, e4 as getZapierSdkService, dp as injectCliLogin, c_ as inputFieldKeyResolver, cZ as inputsAllOptionalResolver, cY as inputsResolver, dn as invalidateCachedToken, du as invalidateCredentialsToken, eU as isCi, dq as isCliLoginAvailable, dH as isClientCredentials, dK as isCredentialsFunction, dJ as isCredentialsObject, ai as isInternalField, an as isPermanentHttpError, dI as isPkceCredentials, o as isZapierAbortDrainSignal, bY as isZapierActionError, bS as isZapierAppNotFoundError, b_ as isZapierApprovalError, bR as isZapierAuthenticationError, bX as isZapierBundleError, bV as isZapierConflictError, bP as isZapierError, bT as isZapierNotFoundError, bZ as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bU as isZapierResourceNotFoundError, c1 as isZapierSignal, bW as isZapierTimeoutError, bQ as isZapierValidationError, cd as listActionInputFieldChoicesPlugin, cb as listActionInputFieldsPlugin, c9 as listActionsPlugin, c7 as listAppsPlugin, ch as listClientCredentialsPlugin, cf as listConnectionsPlugin, ep as listTableFieldsPlugin, et as listTableRecordsPlugin, el as listTablesPlugin, a4 as logDeprecation, cE as manifestPlugin, cD as manifestPluginRef, eO as operationAnnotatorPlugin, ee as parseConcurrencyEnvVar, cz as readManifestFromFile, cx as requestPlugin, a5 as resetDeprecationWarnings, ds as resolveAuth, dt as resolveAuthToken, dN as resolveCredentials, dM as resolveCredentialsFromEnv, cS as resolveCredentialsPlugin, cR as resolveCredentialsPluginRef, cv as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, dc as tableFieldIdsResolver, de as tableFieldsResolver, dh as tableFiltersResolver, d1 as tableIdResolver, dd as tableNameResolver, da as tableRecordIdResolver, db as tableRecordIdsResolver, df as tableRecordsResolver, di as tableSortResolver, dg as tableUpdateRecordsResolver, d2 as triggerInboxResolver, d9 as triggerMessagesResolver, ew as updateTableRecordsPlugin, d6 as workflowDraftIdResolver, d7 as workflowDraftRevisionResolver, d3 as workflowIdResolver, d8 as workflowRunIdResolver, d5 as workflowVersionIdResolver, bA as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-CKzlo4Y-.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-
|
|
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-
|
|
1
|
+
export { createZapierSdk, zapierBetaSdkPlugin } from './chunk-Y4Z3647P.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, 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-T62QPSDN.mjs';
|
|
3
3
|
import './chunk-Y6FXYEAI.mjs';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQJLBUSRL_cjs = require('./chunk-QJLBUSRL.cjs');
|
|
4
4
|
var kitcore = require('@zapier/kitcore');
|
|
5
5
|
|
|
6
6
|
var zapierBetaSdkPlugin = kitcore.definePlugin({
|
|
7
7
|
namespace: "zapier",
|
|
8
8
|
name: "beta-sdk",
|
|
9
|
-
exports: [
|
|
9
|
+
exports: [chunkQJLBUSRL_cjs.zapierSdkPlugin]
|
|
10
10
|
});
|
|
11
11
|
function createZapierSdk(options = {}) {
|
|
12
12
|
return kitcore.createSdk(zapierBetaSdkPlugin, {
|
|
13
13
|
configuration: {
|
|
14
|
-
[
|
|
15
|
-
[kitcore.CORE_OPTIONS_ID]:
|
|
14
|
+
[chunkQJLBUSRL_cjs.SDK_OPTIONS_ID]: options,
|
|
15
|
+
[kitcore.CORE_OPTIONS_ID]: chunkQJLBUSRL_cjs.zapierCoreOptions
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -273,6 +273,7 @@ var ZapierActionError = class extends ZapierError {
|
|
|
273
273
|
this.code = "ZAPIER_ACTION_ERROR";
|
|
274
274
|
this.appKey = options.appKey;
|
|
275
275
|
this.actionKey = options.actionKey;
|
|
276
|
+
this.connectionId = options.connectionId;
|
|
276
277
|
}
|
|
277
278
|
// Legacy accessor for backward compatibility
|
|
278
279
|
get actionErrors() {
|
|
@@ -316,6 +317,8 @@ var ZapierRelayError = class extends ZapierError {
|
|
|
316
317
|
this.name = "ZapierRelayError";
|
|
317
318
|
this.code = "ZAPIER_RELAY_ERROR";
|
|
318
319
|
if (options.retryable !== void 0) this.retryable = options.retryable;
|
|
320
|
+
if (options.connectionId !== void 0)
|
|
321
|
+
this.connectionId = options.connectionId;
|
|
319
322
|
}
|
|
320
323
|
};
|
|
321
324
|
function hasZapierErrorCode(value, code) {
|
|
@@ -2821,7 +2824,7 @@ function logRouteOverride({
|
|
|
2821
2824
|
}
|
|
2822
2825
|
|
|
2823
2826
|
// src/sdk-version.ts
|
|
2824
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2827
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.116.1" : void 0) || "unknown";
|
|
2825
2828
|
|
|
2826
2829
|
// src/utils/open-url.ts
|
|
2827
2830
|
var nodePrefix = "node:";
|
|
@@ -5163,7 +5166,7 @@ var connectionsPlugin = kitcore.defineProperty({
|
|
|
5163
5166
|
get: ({ state }) => state
|
|
5164
5167
|
});
|
|
5165
5168
|
var FetchUrlSchema = zod.z.union([zod.z.string(), zod.z.instanceof(URL)]).describe(
|
|
5166
|
-
"The full URL of the API endpoint to call (proxied through Zapier's
|
|
5169
|
+
"The full URL of the API endpoint to call (proxied through Zapier's API Proxy)"
|
|
5167
5170
|
);
|
|
5168
5171
|
var FetchInitZapierFieldsSchema = zod.z.object({
|
|
5169
5172
|
connectionId: ConnectionIdPropertySchema.optional().meta({
|
|
@@ -5175,6 +5178,9 @@ var FetchInitZapierFieldsSchema = zod.z.object({
|
|
|
5175
5178
|
deprecated: true
|
|
5176
5179
|
}),
|
|
5177
5180
|
callbackUrl: zod.z.string().optional().describe("URL to send async response to (makes request async)"),
|
|
5181
|
+
idempotencyKey: zod.z.string().min(1).max(256).optional().describe(
|
|
5182
|
+
"Key used to make API Proxy retries safe from duplicate side effects"
|
|
5183
|
+
),
|
|
5178
5184
|
maxTimeSeconds: zod.z.number().int().positive().optional().describe(
|
|
5179
5185
|
"Maximum seconds to wait for a response. Honored on a best-effort basis; the server may silently enforce a lower ceiling."
|
|
5180
5186
|
),
|
|
@@ -5317,6 +5323,7 @@ var fetchPlugin = kitcore.defineMethod({
|
|
|
5317
5323
|
connection,
|
|
5318
5324
|
authenticationId,
|
|
5319
5325
|
callbackUrl,
|
|
5326
|
+
idempotencyKey,
|
|
5320
5327
|
maxTimeSeconds: maxTimeSecondsInput,
|
|
5321
5328
|
maxTime,
|
|
5322
5329
|
...fetchInit
|
|
@@ -5350,6 +5357,9 @@ var fetchPlugin = kitcore.defineMethod({
|
|
|
5350
5357
|
if (callbackUrl) {
|
|
5351
5358
|
headers["X-Relay-Callback-Url"] = callbackUrl;
|
|
5352
5359
|
}
|
|
5360
|
+
if (idempotencyKey) {
|
|
5361
|
+
headers["X-Relay-Idempotency-Key"] = idempotencyKey;
|
|
5362
|
+
}
|
|
5353
5363
|
if (maxTimeSeconds !== void 0) {
|
|
5354
5364
|
headers["X-Zapier-Sdk-Max-Time"] = String(maxTimeSeconds);
|
|
5355
5365
|
}
|
|
@@ -5383,6 +5393,7 @@ var fetchPlugin = kitcore.defineMethod({
|
|
|
5383
5393
|
throw new ZapierRelayError(relayError, {
|
|
5384
5394
|
statusCode: result.status,
|
|
5385
5395
|
retryable,
|
|
5396
|
+
connectionId: resolvedConnectionId != null ? String(resolvedConnectionId) : void 0,
|
|
5386
5397
|
errors: relayErrorCode ? [
|
|
5387
5398
|
{
|
|
5388
5399
|
status: result.status,
|
|
@@ -7412,6 +7423,7 @@ var runActionPlugin = kitcore.defineMethod({
|
|
|
7412
7423
|
throw new ZapierActionError(`Action execution failed: ${errorMessage2}`, {
|
|
7413
7424
|
appKey,
|
|
7414
7425
|
actionKey,
|
|
7426
|
+
connectionId: resolvedConnectionId != null ? String(resolvedConnectionId) : void 0,
|
|
7415
7427
|
errors: errors.map(
|
|
7416
7428
|
(error) => ({
|
|
7417
7429
|
status: 200,
|
|
@@ -13404,6 +13416,15 @@ function descriptionFor(schema) {
|
|
|
13404
13416
|
}
|
|
13405
13417
|
return void 0;
|
|
13406
13418
|
}
|
|
13419
|
+
function isInternalField(schema) {
|
|
13420
|
+
let current = schema;
|
|
13421
|
+
while (current instanceof zod.z.ZodType) {
|
|
13422
|
+
if (current.meta()?.internal === true) return true;
|
|
13423
|
+
const def = current._zod.def;
|
|
13424
|
+
current = "innerType" in def ? def.innerType : void 0;
|
|
13425
|
+
}
|
|
13426
|
+
return false;
|
|
13427
|
+
}
|
|
13407
13428
|
|
|
13408
13429
|
Object.defineProperty(exports, "CONTEXT", {
|
|
13409
13430
|
enumerable: true,
|
|
@@ -13750,6 +13771,7 @@ exports.isCliLoginAvailable = isCliLoginAvailable;
|
|
|
13750
13771
|
exports.isClientCredentials = isClientCredentials;
|
|
13751
13772
|
exports.isCredentialsFunction = isCredentialsFunction;
|
|
13752
13773
|
exports.isCredentialsObject = isCredentialsObject;
|
|
13774
|
+
exports.isInternalField = isInternalField;
|
|
13753
13775
|
exports.isPermanentHttpError = isPermanentHttpError;
|
|
13754
13776
|
exports.isPkceCredentials = isPkceCredentials;
|
|
13755
13777
|
exports.isZapierAbortDrainSignal = isZapierAbortDrainSignal;
|
|
@@ -272,6 +272,7 @@ var ZapierActionError = class extends ZapierError {
|
|
|
272
272
|
this.code = "ZAPIER_ACTION_ERROR";
|
|
273
273
|
this.appKey = options.appKey;
|
|
274
274
|
this.actionKey = options.actionKey;
|
|
275
|
+
this.connectionId = options.connectionId;
|
|
275
276
|
}
|
|
276
277
|
// Legacy accessor for backward compatibility
|
|
277
278
|
get actionErrors() {
|
|
@@ -315,6 +316,8 @@ var ZapierRelayError = class extends ZapierError {
|
|
|
315
316
|
this.name = "ZapierRelayError";
|
|
316
317
|
this.code = "ZAPIER_RELAY_ERROR";
|
|
317
318
|
if (options.retryable !== void 0) this.retryable = options.retryable;
|
|
319
|
+
if (options.connectionId !== void 0)
|
|
320
|
+
this.connectionId = options.connectionId;
|
|
318
321
|
}
|
|
319
322
|
};
|
|
320
323
|
function hasZapierErrorCode(value, code) {
|
|
@@ -2820,7 +2823,7 @@ function logRouteOverride({
|
|
|
2820
2823
|
}
|
|
2821
2824
|
|
|
2822
2825
|
// src/sdk-version.ts
|
|
2823
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2826
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.116.1" : void 0) || "unknown";
|
|
2824
2827
|
|
|
2825
2828
|
// src/utils/open-url.ts
|
|
2826
2829
|
var nodePrefix = "node:";
|
|
@@ -5162,7 +5165,7 @@ var connectionsPlugin = defineProperty({
|
|
|
5162
5165
|
get: ({ state }) => state
|
|
5163
5166
|
});
|
|
5164
5167
|
var FetchUrlSchema = z.union([z.string(), z.instanceof(URL)]).describe(
|
|
5165
|
-
"The full URL of the API endpoint to call (proxied through Zapier's
|
|
5168
|
+
"The full URL of the API endpoint to call (proxied through Zapier's API Proxy)"
|
|
5166
5169
|
);
|
|
5167
5170
|
var FetchInitZapierFieldsSchema = z.object({
|
|
5168
5171
|
connectionId: ConnectionIdPropertySchema.optional().meta({
|
|
@@ -5174,6 +5177,9 @@ var FetchInitZapierFieldsSchema = z.object({
|
|
|
5174
5177
|
deprecated: true
|
|
5175
5178
|
}),
|
|
5176
5179
|
callbackUrl: z.string().optional().describe("URL to send async response to (makes request async)"),
|
|
5180
|
+
idempotencyKey: z.string().min(1).max(256).optional().describe(
|
|
5181
|
+
"Key used to make API Proxy retries safe from duplicate side effects"
|
|
5182
|
+
),
|
|
5177
5183
|
maxTimeSeconds: z.number().int().positive().optional().describe(
|
|
5178
5184
|
"Maximum seconds to wait for a response. Honored on a best-effort basis; the server may silently enforce a lower ceiling."
|
|
5179
5185
|
),
|
|
@@ -5316,6 +5322,7 @@ var fetchPlugin = defineMethod({
|
|
|
5316
5322
|
connection,
|
|
5317
5323
|
authenticationId,
|
|
5318
5324
|
callbackUrl,
|
|
5325
|
+
idempotencyKey,
|
|
5319
5326
|
maxTimeSeconds: maxTimeSecondsInput,
|
|
5320
5327
|
maxTime,
|
|
5321
5328
|
...fetchInit
|
|
@@ -5349,6 +5356,9 @@ var fetchPlugin = defineMethod({
|
|
|
5349
5356
|
if (callbackUrl) {
|
|
5350
5357
|
headers["X-Relay-Callback-Url"] = callbackUrl;
|
|
5351
5358
|
}
|
|
5359
|
+
if (idempotencyKey) {
|
|
5360
|
+
headers["X-Relay-Idempotency-Key"] = idempotencyKey;
|
|
5361
|
+
}
|
|
5352
5362
|
if (maxTimeSeconds !== void 0) {
|
|
5353
5363
|
headers["X-Zapier-Sdk-Max-Time"] = String(maxTimeSeconds);
|
|
5354
5364
|
}
|
|
@@ -5382,6 +5392,7 @@ var fetchPlugin = defineMethod({
|
|
|
5382
5392
|
throw new ZapierRelayError(relayError, {
|
|
5383
5393
|
statusCode: result.status,
|
|
5384
5394
|
retryable,
|
|
5395
|
+
connectionId: resolvedConnectionId != null ? String(resolvedConnectionId) : void 0,
|
|
5385
5396
|
errors: relayErrorCode ? [
|
|
5386
5397
|
{
|
|
5387
5398
|
status: result.status,
|
|
@@ -7411,6 +7422,7 @@ var runActionPlugin = defineMethod({
|
|
|
7411
7422
|
throw new ZapierActionError(`Action execution failed: ${errorMessage2}`, {
|
|
7412
7423
|
appKey,
|
|
7413
7424
|
actionKey,
|
|
7425
|
+
connectionId: resolvedConnectionId != null ? String(resolvedConnectionId) : void 0,
|
|
7414
7426
|
errors: errors.map(
|
|
7415
7427
|
(error) => ({
|
|
7416
7428
|
status: 200,
|
|
@@ -13403,5 +13415,14 @@ function descriptionFor(schema) {
|
|
|
13403
13415
|
}
|
|
13404
13416
|
return void 0;
|
|
13405
13417
|
}
|
|
13418
|
+
function isInternalField(schema) {
|
|
13419
|
+
let current = schema;
|
|
13420
|
+
while (current instanceof z.ZodType) {
|
|
13421
|
+
if (current.meta()?.internal === true) return true;
|
|
13422
|
+
const def = current._zod.def;
|
|
13423
|
+
current = "innerType" in def ? def.innerType : void 0;
|
|
13424
|
+
}
|
|
13425
|
+
return false;
|
|
13426
|
+
}
|
|
13406
13427
|
|
|
13407
|
-
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, SDK_VERSION, STABILITY_DEFINITIONS, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createMemoryCache, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, descriptionFor, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, extractErrorDetail, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, runActionPlugin, runWithCallerContext, sdkOptionsPluginRef, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|
|
13428
|
+
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, SDK_VERSION, STABILITY_DEFINITIONS, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createMemoryCache, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, descriptionFor, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, extractErrorDetail, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isInternalField, isPermanentHttpError, isPkceCredentials, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, runActionPlugin, runWithCallerContext, sdkOptionsPluginRef, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { zapierSdkPlugin, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-
|
|
1
|
+
import { zapierSdkPlugin, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-T62QPSDN.mjs';
|
|
2
2
|
import { definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
3
3
|
|
|
4
4
|
var zapierBetaSdkPlugin = definePlugin({
|