@zapier/zapier-sdk 0.115.0 → 0.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-LO3VMFOP.cjs → chunk-3N6GE4OC.cjs} +19 -2
- package/dist/{chunk-24GCCCDH.cjs → chunk-6BEFHDL3.cjs} +4 -4
- package/dist/{chunk-NVVSKZ3Y.mjs → chunk-B3Q6BC55.mjs} +19 -3
- package/dist/{chunk-Q7ECOKIG.mjs → chunk-RFZOAGNG.mjs} +1 -1
- package/dist/experimental.cjs +476 -434
- package/dist/experimental.d.mts +545 -20
- package/dist/experimental.d.ts +545 -20
- package/dist/experimental.mjs +91 -54
- package/dist/{index-BrhSgvFN.d.mts → index-C1APFQ3Q.d.mts} +13 -1
- package/dist/{index-BrhSgvFN.d.ts → index-C1APFQ3Q.d.ts} +13 -1
- package/dist/index.cjs +281 -277
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/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-C1APFQ3Q.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-C1APFQ3Q.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-C1APFQ3Q.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-C1APFQ3Q.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-RFZOAGNG.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-B3Q6BC55.mjs';
|
|
3
3
|
import './chunk-Y6FXYEAI.mjs';
|
|
@@ -2821,7 +2821,7 @@ function logRouteOverride({
|
|
|
2821
2821
|
}
|
|
2822
2822
|
|
|
2823
2823
|
// src/sdk-version.ts
|
|
2824
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2824
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.116.0" : void 0) || "unknown";
|
|
2825
2825
|
|
|
2826
2826
|
// src/utils/open-url.ts
|
|
2827
2827
|
var nodePrefix = "node:";
|
|
@@ -5163,7 +5163,7 @@ var connectionsPlugin = kitcore.defineProperty({
|
|
|
5163
5163
|
get: ({ state }) => state
|
|
5164
5164
|
});
|
|
5165
5165
|
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
|
|
5166
|
+
"The full URL of the API endpoint to call (proxied through Zapier's API Proxy)"
|
|
5167
5167
|
);
|
|
5168
5168
|
var FetchInitZapierFieldsSchema = zod.z.object({
|
|
5169
5169
|
connectionId: ConnectionIdPropertySchema.optional().meta({
|
|
@@ -5175,6 +5175,9 @@ var FetchInitZapierFieldsSchema = zod.z.object({
|
|
|
5175
5175
|
deprecated: true
|
|
5176
5176
|
}),
|
|
5177
5177
|
callbackUrl: zod.z.string().optional().describe("URL to send async response to (makes request async)"),
|
|
5178
|
+
idempotencyKey: zod.z.string().min(1).max(256).optional().describe(
|
|
5179
|
+
"Key used to make API Proxy retries safe from duplicate side effects"
|
|
5180
|
+
),
|
|
5178
5181
|
maxTimeSeconds: zod.z.number().int().positive().optional().describe(
|
|
5179
5182
|
"Maximum seconds to wait for a response. Honored on a best-effort basis; the server may silently enforce a lower ceiling."
|
|
5180
5183
|
),
|
|
@@ -5317,6 +5320,7 @@ var fetchPlugin = kitcore.defineMethod({
|
|
|
5317
5320
|
connection,
|
|
5318
5321
|
authenticationId,
|
|
5319
5322
|
callbackUrl,
|
|
5323
|
+
idempotencyKey,
|
|
5320
5324
|
maxTimeSeconds: maxTimeSecondsInput,
|
|
5321
5325
|
maxTime,
|
|
5322
5326
|
...fetchInit
|
|
@@ -5350,6 +5354,9 @@ var fetchPlugin = kitcore.defineMethod({
|
|
|
5350
5354
|
if (callbackUrl) {
|
|
5351
5355
|
headers["X-Relay-Callback-Url"] = callbackUrl;
|
|
5352
5356
|
}
|
|
5357
|
+
if (idempotencyKey) {
|
|
5358
|
+
headers["X-Relay-Idempotency-Key"] = idempotencyKey;
|
|
5359
|
+
}
|
|
5353
5360
|
if (maxTimeSeconds !== void 0) {
|
|
5354
5361
|
headers["X-Zapier-Sdk-Max-Time"] = String(maxTimeSeconds);
|
|
5355
5362
|
}
|
|
@@ -13404,6 +13411,15 @@ function descriptionFor(schema) {
|
|
|
13404
13411
|
}
|
|
13405
13412
|
return void 0;
|
|
13406
13413
|
}
|
|
13414
|
+
function isInternalField(schema) {
|
|
13415
|
+
let current = schema;
|
|
13416
|
+
while (current instanceof zod.z.ZodType) {
|
|
13417
|
+
if (current.meta()?.internal === true) return true;
|
|
13418
|
+
const def = current._zod.def;
|
|
13419
|
+
current = "innerType" in def ? def.innerType : void 0;
|
|
13420
|
+
}
|
|
13421
|
+
return false;
|
|
13422
|
+
}
|
|
13407
13423
|
|
|
13408
13424
|
Object.defineProperty(exports, "CONTEXT", {
|
|
13409
13425
|
enumerable: true,
|
|
@@ -13750,6 +13766,7 @@ exports.isCliLoginAvailable = isCliLoginAvailable;
|
|
|
13750
13766
|
exports.isClientCredentials = isClientCredentials;
|
|
13751
13767
|
exports.isCredentialsFunction = isCredentialsFunction;
|
|
13752
13768
|
exports.isCredentialsObject = isCredentialsObject;
|
|
13769
|
+
exports.isInternalField = isInternalField;
|
|
13753
13770
|
exports.isPermanentHttpError = isPermanentHttpError;
|
|
13754
13771
|
exports.isPkceCredentials = isPkceCredentials;
|
|
13755
13772
|
exports.isZapierAbortDrainSignal = isZapierAbortDrainSignal;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3N6GE4OC_cjs = require('./chunk-3N6GE4OC.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: [chunk3N6GE4OC_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
|
+
[chunk3N6GE4OC_cjs.SDK_OPTIONS_ID]: options,
|
|
15
|
+
[kitcore.CORE_OPTIONS_ID]: chunk3N6GE4OC_cjs.zapierCoreOptions
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -2820,7 +2820,7 @@ function logRouteOverride({
|
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
2822
|
// src/sdk-version.ts
|
|
2823
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2823
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.116.0" : void 0) || "unknown";
|
|
2824
2824
|
|
|
2825
2825
|
// src/utils/open-url.ts
|
|
2826
2826
|
var nodePrefix = "node:";
|
|
@@ -5162,7 +5162,7 @@ var connectionsPlugin = defineProperty({
|
|
|
5162
5162
|
get: ({ state }) => state
|
|
5163
5163
|
});
|
|
5164
5164
|
var FetchUrlSchema = z.union([z.string(), z.instanceof(URL)]).describe(
|
|
5165
|
-
"The full URL of the API endpoint to call (proxied through Zapier's
|
|
5165
|
+
"The full URL of the API endpoint to call (proxied through Zapier's API Proxy)"
|
|
5166
5166
|
);
|
|
5167
5167
|
var FetchInitZapierFieldsSchema = z.object({
|
|
5168
5168
|
connectionId: ConnectionIdPropertySchema.optional().meta({
|
|
@@ -5174,6 +5174,9 @@ var FetchInitZapierFieldsSchema = z.object({
|
|
|
5174
5174
|
deprecated: true
|
|
5175
5175
|
}),
|
|
5176
5176
|
callbackUrl: z.string().optional().describe("URL to send async response to (makes request async)"),
|
|
5177
|
+
idempotencyKey: z.string().min(1).max(256).optional().describe(
|
|
5178
|
+
"Key used to make API Proxy retries safe from duplicate side effects"
|
|
5179
|
+
),
|
|
5177
5180
|
maxTimeSeconds: z.number().int().positive().optional().describe(
|
|
5178
5181
|
"Maximum seconds to wait for a response. Honored on a best-effort basis; the server may silently enforce a lower ceiling."
|
|
5179
5182
|
),
|
|
@@ -5316,6 +5319,7 @@ var fetchPlugin = defineMethod({
|
|
|
5316
5319
|
connection,
|
|
5317
5320
|
authenticationId,
|
|
5318
5321
|
callbackUrl,
|
|
5322
|
+
idempotencyKey,
|
|
5319
5323
|
maxTimeSeconds: maxTimeSecondsInput,
|
|
5320
5324
|
maxTime,
|
|
5321
5325
|
...fetchInit
|
|
@@ -5349,6 +5353,9 @@ var fetchPlugin = defineMethod({
|
|
|
5349
5353
|
if (callbackUrl) {
|
|
5350
5354
|
headers["X-Relay-Callback-Url"] = callbackUrl;
|
|
5351
5355
|
}
|
|
5356
|
+
if (idempotencyKey) {
|
|
5357
|
+
headers["X-Relay-Idempotency-Key"] = idempotencyKey;
|
|
5358
|
+
}
|
|
5352
5359
|
if (maxTimeSeconds !== void 0) {
|
|
5353
5360
|
headers["X-Zapier-Sdk-Max-Time"] = String(maxTimeSeconds);
|
|
5354
5361
|
}
|
|
@@ -13403,5 +13410,14 @@ function descriptionFor(schema) {
|
|
|
13403
13410
|
}
|
|
13404
13411
|
return void 0;
|
|
13405
13412
|
}
|
|
13413
|
+
function isInternalField(schema) {
|
|
13414
|
+
let current = schema;
|
|
13415
|
+
while (current instanceof z.ZodType) {
|
|
13416
|
+
if (current.meta()?.internal === true) return true;
|
|
13417
|
+
const def = current._zod.def;
|
|
13418
|
+
current = "innerType" in def ? def.innerType : void 0;
|
|
13419
|
+
}
|
|
13420
|
+
return false;
|
|
13421
|
+
}
|
|
13406
13422
|
|
|
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 };
|
|
13423
|
+
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-B3Q6BC55.mjs';
|
|
2
2
|
import { definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
3
3
|
|
|
4
4
|
var zapierBetaSdkPlugin = definePlugin({
|