@zapier/zapier-sdk 0.88.1 → 0.90.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 +17 -0
- package/README.md +250 -0
- package/dist/{chunk-BLFXMYSW.mjs → chunk-J7Z7UHXP.mjs} +25 -2
- package/dist/{chunk-KQTYZL5Y.cjs → chunk-LQEV6ICY.cjs} +26 -1
- package/dist/experimental.cjs +696 -377
- package/dist/experimental.d.mts +374 -3
- package/dist/experimental.d.ts +374 -3
- package/dist/experimental.mjs +352 -37
- package/dist/{index-DeefnmJr.d.mts → index-BBBkZ80x.d.mts} +3 -1
- package/dist/{index-DeefnmJr.d.ts → index-BBBkZ80x.d.ts} +3 -1
- package/dist/index.cjs +275 -271
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-
|
|
2
|
-
export { e1 as API_ID, N as Action, dZ as ActionEntry, dm as ActionExecutionOptions, X as ActionExecutionResult, Y as ActionField, _ as ActionFieldChoice, bK as ActionItem, cm as ActionKeyProperty, bU as ActionKeyPropertySchema, cn as ActionProperty, bV as ActionPropertySchema, bu as ActionResolverItem, cz as ActionTimeoutMillisecondsProperty, c5 as ActionTimeoutMillisecondsPropertySchema, cy as ActionTimeoutSecondsProperty, c4 as ActionTimeoutSecondsPropertySchema, bv as ActionTypeItem, cl as ActionTypeProperty, bT as ActionTypePropertySchema, di as ApiError, eN as ApiEvent, d$ as ApiPluginOptions, O as App, dn as AppFactoryInput, bI as AppItem, cj as AppKeyProperty, bR as AppKeyPropertySchema, ck as AppProperty, bS as AppPropertySchema, fQ as ApplicationLifecycleEventData, d2 as ApprovalStatus, cE as AppsProperty, ca as AppsPropertySchema, aD as ArrayResolver, eM as AuthEvent, ey as AuthMechanism, cr as AuthenticationIdProperty, bY as AuthenticationIdPropertySchema, fY as BaseEvent, bc as BaseSdkOptionsSchema, b1 as BatchOptions, az as BoundFormatter, fd as CONNECTIONS_ID, ae as CONTEXT, dK as CONTEXT_CACHE_MAX_SIZE, dJ as CONTEXT_CACHE_TTL_MILLISECONDS, bg as CORE_ERROR_SYMBOL, b9 as CORE_OPTIONS_ID, bm as CORE_SIGNAL_SYMBOL, aZ as CallerContext, V as Choice, eS as ClientCredentialsObject, f1 as ClientCredentialsObjectSchema, a1 as Connection, f9 as ConnectionEntry, f8 as ConnectionEntrySchema, cp as ConnectionIdProperty, bX as ConnectionIdPropertySchema, bJ as ConnectionItem, cq as ConnectionProperty, bZ as ConnectionPropertySchema, fb as ConnectionsMap, fa as ConnectionsMapSchema, cG as ConnectionsProperty, cc as ConnectionsPropertySchema, a2 as ConnectionsResponse, aP as ControllerAction, aQ as ControllerAnswerFn, aR as ControllerChoice, aT as ControllerMethodDescription, aS as ControllerMethodSummary, aU as ControllerParameterDescription, aO as ControllerQuestion, bj as CoreCancelledSignal, ac as CoreDisposeError, bh as CoreErrorCode, bi as CoreSignal, eP as Credentials, f6 as CredentialsFunction, f5 as CredentialsFunctionSchema, eR as CredentialsObject, f3 as CredentialsObjectSchema, f7 as CredentialsSchema, fk as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ft as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dX as DEFAULT_CONFIG_PATH, fu as DEFAULT_MAX_APPROVAL_RETRIES, fj as DEFAULT_PAGE_SIZE, bG as DEPRECATION_NOTICE_EVENT, cw as DebugProperty, c2 as DebugPropertySchema, bH as DeprecationNoticePayload, w as DrainTriggerInboxCallback, x as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aH as DynamicListResolver, aL as DynamicMember, aG as DynamicResolver, aI as DynamicSearchResolver, fK as EVENT_EMISSION_ID, fR as EnhancedErrorEventData, cN as ErrorOptions, fP as EventContext, fI as EventEmissionContext, fJ as EventEmitter, fO as EventTransport, dp as FetchPluginProvides, U as Field, cD as FieldsProperty, c9 as FieldsPropertySchema, aJ as FieldsResolver, J as FindFirstAuthenticationPluginProvides, K as FindUniqueAuthenticationPluginProvides, ay as FormattedItem, aA as Formatter, bb as FunctionDeprecation, ba as FunctionRegistryEntry, I as GetAuthenticationPluginProvides, bM as InfoFieldItem, bL as InputFieldItem, co as InputFieldProperty, bW as InputFieldPropertySchema, cs as InputsProperty, b_ as InputsPropertySchema, bF as JsonSseMessage, cM as LeaseLimitProperty, ci as LeaseLimitPropertySchema, cK as LeaseProperty, cg as LeasePropertySchema, cL as LeaseSecondsProperty, ch as LeaseSecondsPropertySchema, y as LeasedTriggerMessageItem, ct as LimitProperty, b$ as LimitPropertySchema, dw as ListActionInputFieldsPluginProvides, du as ListActionsPluginProvides, ds as ListAppsPluginProvides, H as ListAuthenticationsPluginProvides, dA as ListConnectionsPluginProvides, eO as LoadingEvent, dS as MANIFEST_ID, fn as MAX_CONCURRENCY_LIMIT, fi as MAX_PAGE_LIMIT, dY as ManifestEntry, dO as ManifestPluginOptions, fZ as MethodCalledEvent, fS as MethodCalledEventData, bp as MethodOverridePlugin, aK as ModelResolver, Q as Need, $ as NeedsRequest, a0 as NeedsResponse, cu as OffsetProperty, c0 as OffsetPropertySchema, aB as OutputFormatter, cv as OutputProperty, c1 as OutputPropertySchema, bQ as PaginatedSdkFunction, cx as ParamsProperty, c3 as ParamsPropertySchema, eT as PkceCredentialsObject, f2 as PkceCredentialsObjectSchema, bn as Plugin, p as PluginMeta, bo as PluginProvides, aM as PluginSurface, bA as PollOptions, a5 as PositionalMetadata, e4 as RESOLVE_CREDENTIALS_ID, d0 as RateLimitInfo, cB as RecordProperty, c7 as RecordPropertySchema, cC as RecordsProperty, c8 as RecordsPropertySchema, b6 as RelayFetchSchema, b5 as RelayRequestSchema, bz as RequestOptions, ex as ResolveAuthTokenOptions, fc as ResolveConnection, e0 as ResolveCredentialsFn, eY as ResolveCredentialsOptions, bw as ResolvedAppLocator, ez as ResolvedAuth, eQ as ResolvedCredentials, f4 as ResolvedCredentialsSchema, aC as Resolver, aE as ResolverMetadata, bN as RootFieldItem, dM as RunActionPluginProvides, aw as SDK_OPTIONS_ID, eL as SdkEvent, bP as SdkPage, bE as SseMessage, aF as StaticResolver, cA as TableProperty, c6 as TablePropertySchema, cF as TablesProperty, cb as TablesPropertySchema, cI as TriggerInboxKeyProperty, ce as TriggerInboxKeyPropertySchema, cJ as TriggerInboxNameProperty, cf as TriggerInboxNamePropertySchema, cH as TriggerInboxProperty, cd as TriggerInboxPropertySchema, z as TriggerMessageStatus, dV as UpdateManifestEntryOptions, dW as UpdateManifestEntryResult, a3 as UserProfile, bO as UserProfileItem, r as WatchTriggerInboxSchema, fg as ZAPIER_BASE_URL, fp as ZAPIER_MAX_CONCURRENT_REQUESTS, fl as ZAPIER_MAX_NETWORK_RETRIES, fm as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, s as ZapierAbortDrainSignal, c_ as ZapierActionError, cT as ZapierApiError, cU as ZapierAppNotFoundError, d3 as ZapierApprovalError, cR as ZapierAuthenticationError, cY as ZapierBundleError, eI as ZapierCacheEntry, eJ as ZapierCacheSetOptions, cX as ZapierConfigurationError, c$ as ZapierConflictError, cO as ZapierError, cV as ZapierNotFoundError, d1 as ZapierRateLimitError, d4 as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cW as ZapierResourceNotFoundError, dj as ZapierSignal, cZ as ZapierTimeoutError, cQ as ZapierUnknownError, cP as ZapierValidationError, e9 as actionKeyResolver, e8 as actionTypeResolver, aa as addPlugin, e3 as apiPlugin, e2 as apiPluginRef, e7 as appKeyResolver, dl as appsPlugin, b0 as batch, fT as buildApplicationLifecycleEvent, b2 as buildCapabilityMessage, fV as buildErrorEvent, fU as buildErrorEventWithContext, fX as buildMethodCalledEvent, fH as cleanupEventListeners, eA as clearTokenCache, ef as clientCredentialsNameResolver, eg as clientIdResolver, bt as composePlugins, eb as connectionIdGenericResolver, ea as connectionIdResolver, ff as connectionsPlugin, fe as connectionsPluginRef, fW as createBaseEvent, dC as createClientCredentialsPlugin, aN as createController, a9 as createCorePlugin, a6 as createFunction, eK as createMemoryCache, a7 as createPaginatedFunction, bs as createPaginatedPluginMethod, br as createPluginMethod, a8 as createPluginStack, ad as createSdk, fA as createTableFieldsPlugin, fx as createTablePlugin, fE as createTableRecordsPlugin, bB as createZapierApi, b7 as createZapierSdkWithoutRegistry, ap as declareMethod, ar as declareOptionalProperty, aj as declarePlugin, aq as declareProperty, ao as defineFormatter, ah as defineLegacyMerge, ak as defineMethod, al as defineMethodOverride, bq as definePlugin, am as defineProperty, an as defineResolver, dD as deleteClientCredentialsPlugin, fB as deleteTableFieldsPlugin, fy as deleteTablePlugin, fF as deleteTableRecordsPlugin, ab as disposeSdk, ek as durableRunIdResolver, fN as eventEmissionHookPlugin, fM as eventEmissionPlugin, fL as eventEmissionPluginRef, dq as fetchPlugin, dH as findFirstConnectionPlugin, dR as findManifestEntry, dI as findUniqueConnectionPlugin, dh as formatErrorMessage, ag as fromFunctionPlugin, f$ as generateEventId, dy as getActionInputFieldsSchemaPlugin, dF as getActionPlugin, bx as getAgent, dE as getAppPlugin, e$ as getBaseUrlFromCredentials, aX as getCallerContext, g5 as getCiPlatform, f0 as getClientIdFromCredentials, dG as getConnectionPlugin, ai as getContext, bf as getCoreErrorCause, be as getCoreErrorCode, g7 as getCpuTime, g0 as getCurrentTimestamp, g6 as getMemoryUsage, bC as getOrCreateApiClient, g2 as getOsInfo, g3 as getPlatformVersions, dQ as getPreferredManifestEntryKey, d_ as getProfilePlugin, au as getRegistryPlugin, g1 as getReleaseId, fw as getTablePlugin, fC as getTableRecordPlugin, eE as getTokenFromCliLogin, g8 as getTtyContext, fq as getZapierApprovalMode, fs as getZapierDefaultApprovalMode, fr as getZapierOpenAutoModeApprovalsInBrowser, fh as getZapierSdkService, eC as injectCliLogin, ee as inputFieldKeyResolver, ed as inputsAllOptionalResolver, ec as inputsResolver, eB as invalidateCachedToken, eH as invalidateCredentialsToken, g4 as isCi, eD as isCliLoginAvailable, eU as isClientCredentials, bl as isCoreCancelledSignal, bd as isCoreError, bk as isCoreSignal, eX as isCredentialsFunction, eW as isCredentialsObject, bD as isPermanentHttpError, eV as isPkceCredentials, a4 as isPositional, u as isZapierAbortDrainSignal, de as isZapierActionError, d8 as isZapierAppNotFoundError, dg as isZapierApprovalError, d7 as isZapierAuthenticationError, dd as isZapierBundleError, db as isZapierConflictError, d5 as isZapierError, d9 as isZapierNotFoundError, df as isZapierRateLimitError, v as isZapierReleaseTriggerMessageSignal, da as isZapierResourceNotFoundError, dk as isZapierSignal, dc as isZapierTimeoutError, d6 as isZapierValidationError, dx as listActionInputFieldChoicesPlugin, dv as listActionInputFieldsPlugin, dt as listActionsPlugin, dr as listAppsPlugin, dB as listClientCredentialsPlugin, dz as listConnectionsPlugin, fz as listTableFieldsPlugin, fD as listTableRecordsPlugin, fv as listTablesPlugin, b3 as logDeprecation, dU as manifestPlugin, dT as manifestPluginRef, at as omitExports, f_ as operationAnnotatorPlugin, fo as parseConcurrencyEnvVar, dP as readManifestFromFile, by as registryPlugin, dN as requestPlugin, b4 as resetDeprecationWarnings, eF as resolveAuth, eG as resolveAuthToken, e_ as resolveCredentials, eZ as resolveCredentialsFromEnv, e6 as resolveCredentialsPlugin, e5 as resolveCredentialsPluginRef, af as resolvePlugin, dL as runActionPlugin, aV as runInMethodScope, aY as runWithCallerContext, aW as runWithTelemetryContext, ax as sdkOptionsPluginRef, as as selectExports, eq as tableFieldIdsResolver, es as tableFieldsResolver, ev as tableFiltersResolver, eh as tableIdResolver, er as tableNameResolver, eo as tableRecordIdResolver, ep as tableRecordIdsResolver, et as tableRecordsResolver, ew as tableSortResolver, eu as tableUpdateRecordsResolver, a_ as toSnakeCase, a$ as toTitleCase, ei as triggerInboxResolver, en as triggerMessagesResolver, fG as updateTableRecordsPlugin, ej as workflowIdResolver, em as workflowRunIdResolver, el as workflowVersionIdResolver, cS as zapierAdaptError, b8 as zapierCoreOptions, av as zapierSdkPlugin } from './index-DeefnmJr.mjs';
|
|
1
|
+
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-BBBkZ80x.mjs';
|
|
2
|
+
export { e1 as API_ID, N as Action, dZ as ActionEntry, dm as ActionExecutionOptions, X as ActionExecutionResult, Y as ActionField, _ as ActionFieldChoice, bK as ActionItem, cm as ActionKeyProperty, bU as ActionKeyPropertySchema, cn as ActionProperty, bV as ActionPropertySchema, bu as ActionResolverItem, cz as ActionTimeoutMillisecondsProperty, c5 as ActionTimeoutMillisecondsPropertySchema, cy as ActionTimeoutSecondsProperty, c4 as ActionTimeoutSecondsPropertySchema, bv as ActionTypeItem, cl as ActionTypeProperty, bT as ActionTypePropertySchema, di as ApiError, eO as ApiEvent, d$ as ApiPluginOptions, O as App, dn as AppFactoryInput, bI as AppItem, cj as AppKeyProperty, bR as AppKeyPropertySchema, ck as AppProperty, bS as AppPropertySchema, fR as ApplicationLifecycleEventData, d2 as ApprovalStatus, cE as AppsProperty, ca as AppsPropertySchema, aD as ArrayResolver, eN as AuthEvent, ez as AuthMechanism, cr as AuthenticationIdProperty, bY as AuthenticationIdPropertySchema, fZ as BaseEvent, bc as BaseSdkOptionsSchema, b1 as BatchOptions, az as BoundFormatter, fe as CONNECTIONS_ID, ae as CONTEXT, dK as CONTEXT_CACHE_MAX_SIZE, dJ as CONTEXT_CACHE_TTL_MILLISECONDS, bg as CORE_ERROR_SYMBOL, b9 as CORE_OPTIONS_ID, bm as CORE_SIGNAL_SYMBOL, aZ as CallerContext, V as Choice, eT as ClientCredentialsObject, f2 as ClientCredentialsObjectSchema, a1 as Connection, fa as ConnectionEntry, f9 as ConnectionEntrySchema, cp as ConnectionIdProperty, bX as ConnectionIdPropertySchema, bJ as ConnectionItem, cq as ConnectionProperty, bZ as ConnectionPropertySchema, fc as ConnectionsMap, fb as ConnectionsMapSchema, cG as ConnectionsProperty, cc as ConnectionsPropertySchema, a2 as ConnectionsResponse, aP as ControllerAction, aQ as ControllerAnswerFn, aR as ControllerChoice, aT as ControllerMethodDescription, aS as ControllerMethodSummary, aU as ControllerParameterDescription, aO as ControllerQuestion, bj as CoreCancelledSignal, ac as CoreDisposeError, bh as CoreErrorCode, bi as CoreSignal, eQ as Credentials, f7 as CredentialsFunction, f6 as CredentialsFunctionSchema, eS as CredentialsObject, f4 as CredentialsObjectSchema, f8 as CredentialsSchema, fl as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, fu as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dX as DEFAULT_CONFIG_PATH, fv as DEFAULT_MAX_APPROVAL_RETRIES, fk as DEFAULT_PAGE_SIZE, bG as DEPRECATION_NOTICE_EVENT, cw as DebugProperty, c2 as DebugPropertySchema, bH as DeprecationNoticePayload, w as DrainTriggerInboxCallback, x as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aH as DynamicListResolver, aL as DynamicMember, aG as DynamicResolver, aI as DynamicSearchResolver, fL as EVENT_EMISSION_ID, fS as EnhancedErrorEventData, cN as ErrorOptions, fQ as EventContext, fJ as EventEmissionContext, fK as EventEmitter, fP as EventTransport, dp as FetchPluginProvides, U as Field, cD as FieldsProperty, c9 as FieldsPropertySchema, aJ as FieldsResolver, J as FindFirstAuthenticationPluginProvides, K as FindUniqueAuthenticationPluginProvides, ay as FormattedItem, aA as Formatter, bb as FunctionDeprecation, ba as FunctionRegistryEntry, I as GetAuthenticationPluginProvides, bM as InfoFieldItem, bL as InputFieldItem, co as InputFieldProperty, bW as InputFieldPropertySchema, cs as InputsProperty, b_ as InputsPropertySchema, bF as JsonSseMessage, cM as LeaseLimitProperty, ci as LeaseLimitPropertySchema, cK as LeaseProperty, cg as LeasePropertySchema, cL as LeaseSecondsProperty, ch as LeaseSecondsPropertySchema, y as LeasedTriggerMessageItem, ct as LimitProperty, b$ as LimitPropertySchema, dw as ListActionInputFieldsPluginProvides, du as ListActionsPluginProvides, ds as ListAppsPluginProvides, H as ListAuthenticationsPluginProvides, dA as ListConnectionsPluginProvides, eP as LoadingEvent, dS as MANIFEST_ID, fo as MAX_CONCURRENCY_LIMIT, fj as MAX_PAGE_LIMIT, dY as ManifestEntry, dO as ManifestPluginOptions, f_ as MethodCalledEvent, fT as MethodCalledEventData, bp as MethodOverridePlugin, aK as ModelResolver, Q as Need, $ as NeedsRequest, a0 as NeedsResponse, cu as OffsetProperty, c0 as OffsetPropertySchema, aB as OutputFormatter, cv as OutputProperty, c1 as OutputPropertySchema, bQ as PaginatedSdkFunction, cx as ParamsProperty, c3 as ParamsPropertySchema, eU as PkceCredentialsObject, f3 as PkceCredentialsObjectSchema, bn as Plugin, p as PluginMeta, bo as PluginProvides, aM as PluginSurface, bA as PollOptions, a5 as PositionalMetadata, e4 as RESOLVE_CREDENTIALS_ID, d0 as RateLimitInfo, cB as RecordProperty, c7 as RecordPropertySchema, cC as RecordsProperty, c8 as RecordsPropertySchema, b6 as RelayFetchSchema, b5 as RelayRequestSchema, bz as RequestOptions, ey as ResolveAuthTokenOptions, fd as ResolveConnection, e0 as ResolveCredentialsFn, eZ as ResolveCredentialsOptions, bw as ResolvedAppLocator, eA as ResolvedAuth, eR as ResolvedCredentials, f5 as ResolvedCredentialsSchema, aC as Resolver, aE as ResolverMetadata, bN as RootFieldItem, dM as RunActionPluginProvides, aw as SDK_OPTIONS_ID, eM as SdkEvent, bP as SdkPage, bE as SseMessage, aF as StaticResolver, cA as TableProperty, c6 as TablePropertySchema, cF as TablesProperty, cb as TablesPropertySchema, cI as TriggerInboxKeyProperty, ce as TriggerInboxKeyPropertySchema, cJ as TriggerInboxNameProperty, cf as TriggerInboxNamePropertySchema, cH as TriggerInboxProperty, cd as TriggerInboxPropertySchema, z as TriggerMessageStatus, dV as UpdateManifestEntryOptions, dW as UpdateManifestEntryResult, a3 as UserProfile, bO as UserProfileItem, r as WatchTriggerInboxSchema, fh as ZAPIER_BASE_URL, fq as ZAPIER_MAX_CONCURRENT_REQUESTS, fm as ZAPIER_MAX_NETWORK_RETRIES, fn as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, s as ZapierAbortDrainSignal, c_ as ZapierActionError, cT as ZapierApiError, cU as ZapierAppNotFoundError, d3 as ZapierApprovalError, cR as ZapierAuthenticationError, cY as ZapierBundleError, eJ as ZapierCacheEntry, eK as ZapierCacheSetOptions, cX as ZapierConfigurationError, c$ as ZapierConflictError, cO as ZapierError, cV as ZapierNotFoundError, d1 as ZapierRateLimitError, d4 as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cW as ZapierResourceNotFoundError, dj as ZapierSignal, cZ as ZapierTimeoutError, cQ as ZapierUnknownError, cP as ZapierValidationError, e9 as actionKeyResolver, e8 as actionTypeResolver, aa as addPlugin, e3 as apiPlugin, e2 as apiPluginRef, e7 as appKeyResolver, dl as appsPlugin, b0 as batch, fU as buildApplicationLifecycleEvent, b2 as buildCapabilityMessage, fW as buildErrorEvent, fV as buildErrorEventWithContext, fY as buildMethodCalledEvent, fI as cleanupEventListeners, eB as clearTokenCache, ef as clientCredentialsNameResolver, eg as clientIdResolver, bt as composePlugins, eb as connectionIdGenericResolver, ea as connectionIdResolver, fg as connectionsPlugin, ff as connectionsPluginRef, fX as createBaseEvent, dC as createClientCredentialsPlugin, aN as createController, a9 as createCorePlugin, a6 as createFunction, eL as createMemoryCache, a7 as createPaginatedFunction, bs as createPaginatedPluginMethod, br as createPluginMethod, a8 as createPluginStack, ad as createSdk, fB as createTableFieldsPlugin, fy as createTablePlugin, fF as createTableRecordsPlugin, bB as createZapierApi, b7 as createZapierSdkWithoutRegistry, ap as declareMethod, ar as declareOptionalProperty, aj as declarePlugin, aq as declareProperty, ao as defineFormatter, ah as defineLegacyMerge, ak as defineMethod, al as defineMethodOverride, bq as definePlugin, am as defineProperty, an as defineResolver, dD as deleteClientCredentialsPlugin, fC as deleteTableFieldsPlugin, fz as deleteTablePlugin, fG as deleteTableRecordsPlugin, ab as disposeSdk, ek as durableRunIdResolver, fO as eventEmissionHookPlugin, fN as eventEmissionPlugin, fM as eventEmissionPluginRef, dq as fetchPlugin, dH as findFirstConnectionPlugin, dR as findManifestEntry, dI as findUniqueConnectionPlugin, dh as formatErrorMessage, ag as fromFunctionPlugin, g0 as generateEventId, dy as getActionInputFieldsSchemaPlugin, dF as getActionPlugin, bx as getAgent, dE as getAppPlugin, f0 as getBaseUrlFromCredentials, aX as getCallerContext, g6 as getCiPlatform, f1 as getClientIdFromCredentials, dG as getConnectionPlugin, ai as getContext, bf as getCoreErrorCause, be as getCoreErrorCode, g8 as getCpuTime, g1 as getCurrentTimestamp, g7 as getMemoryUsage, bC as getOrCreateApiClient, g3 as getOsInfo, g4 as getPlatformVersions, dQ as getPreferredManifestEntryKey, d_ as getProfilePlugin, au as getRegistryPlugin, g2 as getReleaseId, fx as getTablePlugin, fD as getTableRecordPlugin, eF as getTokenFromCliLogin, g9 as getTtyContext, fr as getZapierApprovalMode, ft as getZapierDefaultApprovalMode, fs as getZapierOpenAutoModeApprovalsInBrowser, fi as getZapierSdkService, eD as injectCliLogin, ee as inputFieldKeyResolver, ed as inputsAllOptionalResolver, ec as inputsResolver, eC as invalidateCachedToken, eI as invalidateCredentialsToken, g5 as isCi, eE as isCliLoginAvailable, eV as isClientCredentials, bl as isCoreCancelledSignal, bd as isCoreError, bk as isCoreSignal, eY as isCredentialsFunction, eX as isCredentialsObject, bD as isPermanentHttpError, eW as isPkceCredentials, a4 as isPositional, u as isZapierAbortDrainSignal, de as isZapierActionError, d8 as isZapierAppNotFoundError, dg as isZapierApprovalError, d7 as isZapierAuthenticationError, dd as isZapierBundleError, db as isZapierConflictError, d5 as isZapierError, d9 as isZapierNotFoundError, df as isZapierRateLimitError, v as isZapierReleaseTriggerMessageSignal, da as isZapierResourceNotFoundError, dk as isZapierSignal, dc as isZapierTimeoutError, d6 as isZapierValidationError, dx as listActionInputFieldChoicesPlugin, dv as listActionInputFieldsPlugin, dt as listActionsPlugin, dr as listAppsPlugin, dB as listClientCredentialsPlugin, dz as listConnectionsPlugin, fA as listTableFieldsPlugin, fE as listTableRecordsPlugin, fw as listTablesPlugin, b3 as logDeprecation, dU as manifestPlugin, dT as manifestPluginRef, at as omitExports, f$ as operationAnnotatorPlugin, fp as parseConcurrencyEnvVar, dP as readManifestFromFile, by as registryPlugin, dN as requestPlugin, b4 as resetDeprecationWarnings, eG as resolveAuth, eH as resolveAuthToken, e$ as resolveCredentials, e_ as resolveCredentialsFromEnv, e6 as resolveCredentialsPlugin, e5 as resolveCredentialsPluginRef, af as resolvePlugin, dL as runActionPlugin, aV as runInMethodScope, aY as runWithCallerContext, aW as runWithTelemetryContext, ax as sdkOptionsPluginRef, as as selectExports, er as tableFieldIdsResolver, et as tableFieldsResolver, ew as tableFiltersResolver, eh as tableIdResolver, es as tableNameResolver, ep as tableRecordIdResolver, eq as tableRecordIdsResolver, eu as tableRecordsResolver, ex as tableSortResolver, ev as tableUpdateRecordsResolver, a_ as toSnakeCase, a$ as toTitleCase, ei as triggerInboxResolver, eo as triggerMessagesResolver, fH as updateTableRecordsPlugin, em as workflowDraftIdResolver, ej as workflowIdResolver, en as workflowRunIdResolver, el as workflowVersionIdResolver, cS as zapierAdaptError, b8 as zapierCoreOptions, av as zapierSdkPlugin } from './index-BBBkZ80x.mjs';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -3077,6 +3077,194 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3077
3077
|
}> | null;
|
|
3078
3078
|
};
|
|
3079
3079
|
}>, readonly []> & LeafSummary<"", "publishWorkflowVersion", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3080
|
+
} & {
|
|
3081
|
+
listWorkflowDrafts: MethodPlugin<"listWorkflowDrafts", {
|
|
3082
|
+
workflow: string;
|
|
3083
|
+
status?: "open" | "discarded" | undefined;
|
|
3084
|
+
slug?: string | undefined;
|
|
3085
|
+
pageSize?: number | undefined;
|
|
3086
|
+
cursor?: string | undefined;
|
|
3087
|
+
maxItems?: number | undefined;
|
|
3088
|
+
} & {
|
|
3089
|
+
cursor?: string;
|
|
3090
|
+
pageSize?: number;
|
|
3091
|
+
} & {
|
|
3092
|
+
maxItems?: number;
|
|
3093
|
+
}, PaginatedSdkResult<{
|
|
3094
|
+
id: string;
|
|
3095
|
+
workflow_id: string;
|
|
3096
|
+
slug: string;
|
|
3097
|
+
base_version_id: string | null;
|
|
3098
|
+
status: "open" | "discarded";
|
|
3099
|
+
last_edited_by_user_id: string | null;
|
|
3100
|
+
last_edited_at: string | null;
|
|
3101
|
+
created_at: string;
|
|
3102
|
+
}>, readonly []> & LeafSummary<"", "listWorkflowDrafts", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3103
|
+
} & {
|
|
3104
|
+
getWorkflowDraft: MethodPlugin<"getWorkflowDraft", {
|
|
3105
|
+
workflow: string;
|
|
3106
|
+
draft: string;
|
|
3107
|
+
}, Promise<{
|
|
3108
|
+
data: {
|
|
3109
|
+
id: string;
|
|
3110
|
+
workflow_id: string;
|
|
3111
|
+
slug: string;
|
|
3112
|
+
base_version_id: string | null;
|
|
3113
|
+
source_files: Record<string, string>;
|
|
3114
|
+
zapier_durable_version: string;
|
|
3115
|
+
dependencies: Record<string, string> | null;
|
|
3116
|
+
draft_revision: number;
|
|
3117
|
+
status: "open" | "discarded";
|
|
3118
|
+
created_by_user_id: string;
|
|
3119
|
+
last_edited_by_user_id: string | null;
|
|
3120
|
+
last_edited_at: string | null;
|
|
3121
|
+
discarded_at: string | null;
|
|
3122
|
+
created_at: string;
|
|
3123
|
+
updated_at: string;
|
|
3124
|
+
trigger: {
|
|
3125
|
+
selected_api: string;
|
|
3126
|
+
action: string;
|
|
3127
|
+
authentication_id?: string | null | undefined;
|
|
3128
|
+
params?: Record<string, unknown> | undefined;
|
|
3129
|
+
} | null;
|
|
3130
|
+
connections: Record<string, {
|
|
3131
|
+
connection_id: string | number;
|
|
3132
|
+
}> | null;
|
|
3133
|
+
app_versions: Record<string, {
|
|
3134
|
+
implementation_name: string;
|
|
3135
|
+
version?: string | undefined;
|
|
3136
|
+
}> | null;
|
|
3137
|
+
};
|
|
3138
|
+
}>, readonly []> & LeafSummary<"", "getWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3139
|
+
} & {
|
|
3140
|
+
createWorkflowDraft: MethodPlugin<"createWorkflowDraft", {
|
|
3141
|
+
workflow: string;
|
|
3142
|
+
slug?: string | undefined;
|
|
3143
|
+
}, Promise<{
|
|
3144
|
+
data: {
|
|
3145
|
+
id: string;
|
|
3146
|
+
workflow_id: string;
|
|
3147
|
+
slug: string;
|
|
3148
|
+
base_version_id: string | null;
|
|
3149
|
+
source_files: Record<string, string>;
|
|
3150
|
+
zapier_durable_version: string;
|
|
3151
|
+
dependencies: Record<string, string> | null;
|
|
3152
|
+
draft_revision: number;
|
|
3153
|
+
status: "open" | "discarded";
|
|
3154
|
+
created_by_user_id: string;
|
|
3155
|
+
last_edited_by_user_id: string | null;
|
|
3156
|
+
last_edited_at: string | null;
|
|
3157
|
+
discarded_at: string | null;
|
|
3158
|
+
created_at: string;
|
|
3159
|
+
updated_at: string;
|
|
3160
|
+
trigger: {
|
|
3161
|
+
selected_api: string;
|
|
3162
|
+
action: string;
|
|
3163
|
+
authentication_id?: string | null | undefined;
|
|
3164
|
+
params?: Record<string, unknown> | undefined;
|
|
3165
|
+
} | null;
|
|
3166
|
+
connections: Record<string, {
|
|
3167
|
+
connection_id: string | number;
|
|
3168
|
+
}> | null;
|
|
3169
|
+
app_versions: Record<string, {
|
|
3170
|
+
implementation_name: string;
|
|
3171
|
+
version?: string | undefined;
|
|
3172
|
+
}> | null;
|
|
3173
|
+
};
|
|
3174
|
+
}>, readonly []> & LeafSummary<"", "createWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3175
|
+
} & {
|
|
3176
|
+
updateWorkflowDraft: MethodPlugin<"updateWorkflowDraft", {
|
|
3177
|
+
workflow: string;
|
|
3178
|
+
draft: string;
|
|
3179
|
+
sourceFiles: Record<string, string>;
|
|
3180
|
+
zapierDurableVersion?: string | undefined;
|
|
3181
|
+
dependencies?: Record<string, string> | undefined;
|
|
3182
|
+
draftRevision?: number | undefined;
|
|
3183
|
+
trigger?: {
|
|
3184
|
+
action: string;
|
|
3185
|
+
selectedApi?: string | undefined;
|
|
3186
|
+
selected_api?: string | undefined;
|
|
3187
|
+
authenticationId?: string | null | undefined;
|
|
3188
|
+
authentication_id?: string | null | undefined;
|
|
3189
|
+
params?: Record<string, unknown> | undefined;
|
|
3190
|
+
} | null | undefined;
|
|
3191
|
+
connections?: Record<string, {
|
|
3192
|
+
connectionId?: string | number | undefined;
|
|
3193
|
+
connection_id?: string | number | undefined;
|
|
3194
|
+
}> | null | undefined;
|
|
3195
|
+
appVersions?: Record<string, {
|
|
3196
|
+
implementationName?: string | undefined;
|
|
3197
|
+
implementation_name?: string | undefined;
|
|
3198
|
+
version?: string | undefined;
|
|
3199
|
+
}> | null | undefined;
|
|
3200
|
+
}, Promise<{
|
|
3201
|
+
data: {
|
|
3202
|
+
id: string;
|
|
3203
|
+
workflow_id: string;
|
|
3204
|
+
slug: string;
|
|
3205
|
+
base_version_id: string | null;
|
|
3206
|
+
source_files: Record<string, string>;
|
|
3207
|
+
zapier_durable_version: string;
|
|
3208
|
+
dependencies: Record<string, string> | null;
|
|
3209
|
+
draft_revision: number;
|
|
3210
|
+
status: "open" | "discarded";
|
|
3211
|
+
created_by_user_id: string;
|
|
3212
|
+
last_edited_by_user_id: string | null;
|
|
3213
|
+
last_edited_at: string | null;
|
|
3214
|
+
discarded_at: string | null;
|
|
3215
|
+
created_at: string;
|
|
3216
|
+
updated_at: string;
|
|
3217
|
+
trigger: {
|
|
3218
|
+
selected_api: string;
|
|
3219
|
+
action: string;
|
|
3220
|
+
authentication_id?: string | null | undefined;
|
|
3221
|
+
params?: Record<string, unknown> | undefined;
|
|
3222
|
+
} | null;
|
|
3223
|
+
connections: Record<string, {
|
|
3224
|
+
connection_id: string | number;
|
|
3225
|
+
}> | null;
|
|
3226
|
+
app_versions: Record<string, {
|
|
3227
|
+
implementation_name: string;
|
|
3228
|
+
version?: string | undefined;
|
|
3229
|
+
}> | null;
|
|
3230
|
+
};
|
|
3231
|
+
}>, readonly []> & LeafSummary<"", "updateWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3232
|
+
} & {
|
|
3233
|
+
discardWorkflowDraft: MethodPlugin<"discardWorkflowDraft", {
|
|
3234
|
+
workflow: string;
|
|
3235
|
+
draft: string;
|
|
3236
|
+
}, Promise<{
|
|
3237
|
+
data: {
|
|
3238
|
+
id: string;
|
|
3239
|
+
workflow_id: string;
|
|
3240
|
+
slug: string;
|
|
3241
|
+
base_version_id: string | null;
|
|
3242
|
+
source_files: Record<string, string>;
|
|
3243
|
+
zapier_durable_version: string;
|
|
3244
|
+
dependencies: Record<string, string> | null;
|
|
3245
|
+
draft_revision: number;
|
|
3246
|
+
status: "open" | "discarded";
|
|
3247
|
+
created_by_user_id: string;
|
|
3248
|
+
last_edited_by_user_id: string | null;
|
|
3249
|
+
last_edited_at: string | null;
|
|
3250
|
+
discarded_at: string | null;
|
|
3251
|
+
created_at: string;
|
|
3252
|
+
updated_at: string;
|
|
3253
|
+
trigger: {
|
|
3254
|
+
selected_api: string;
|
|
3255
|
+
action: string;
|
|
3256
|
+
authentication_id?: string | null | undefined;
|
|
3257
|
+
params?: Record<string, unknown> | undefined;
|
|
3258
|
+
} | null;
|
|
3259
|
+
connections: Record<string, {
|
|
3260
|
+
connection_id: string | number;
|
|
3261
|
+
}> | null;
|
|
3262
|
+
app_versions: Record<string, {
|
|
3263
|
+
implementation_name: string;
|
|
3264
|
+
version?: string | undefined;
|
|
3265
|
+
}> | null;
|
|
3266
|
+
};
|
|
3267
|
+
}>, readonly []> & LeafSummary<"", "discardWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3080
3268
|
} & {
|
|
3081
3269
|
listWorkflowRuns: MethodPlugin<"listWorkflowRuns", {
|
|
3082
3270
|
workflow: string;
|
|
@@ -3299,7 +3487,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3299
3487
|
updated_at: string;
|
|
3300
3488
|
};
|
|
3301
3489
|
}>, readonly []> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3302
|
-
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3490
|
+
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3303
3491
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
3304
3492
|
getRegistry: (input?: {
|
|
3305
3493
|
package?: string | undefined;
|
|
@@ -5020,6 +5208,189 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
5020
5208
|
}> | null;
|
|
5021
5209
|
};
|
|
5022
5210
|
}>;
|
|
5211
|
+
listWorkflowDrafts: (input: {
|
|
5212
|
+
workflow: string;
|
|
5213
|
+
status?: "open" | "discarded" | undefined;
|
|
5214
|
+
slug?: string | undefined;
|
|
5215
|
+
pageSize?: number | undefined;
|
|
5216
|
+
cursor?: string | undefined;
|
|
5217
|
+
maxItems?: number | undefined;
|
|
5218
|
+
} & {
|
|
5219
|
+
cursor?: string;
|
|
5220
|
+
pageSize?: number;
|
|
5221
|
+
} & {
|
|
5222
|
+
maxItems?: number;
|
|
5223
|
+
}) => PaginatedSdkResult<{
|
|
5224
|
+
id: string;
|
|
5225
|
+
workflow_id: string;
|
|
5226
|
+
slug: string;
|
|
5227
|
+
base_version_id: string | null;
|
|
5228
|
+
status: "open" | "discarded";
|
|
5229
|
+
last_edited_by_user_id: string | null;
|
|
5230
|
+
last_edited_at: string | null;
|
|
5231
|
+
created_at: string;
|
|
5232
|
+
}>;
|
|
5233
|
+
getWorkflowDraft: (input: {
|
|
5234
|
+
workflow: string;
|
|
5235
|
+
draft: string;
|
|
5236
|
+
}) => Promise<{
|
|
5237
|
+
data: {
|
|
5238
|
+
id: string;
|
|
5239
|
+
workflow_id: string;
|
|
5240
|
+
slug: string;
|
|
5241
|
+
base_version_id: string | null;
|
|
5242
|
+
source_files: Record<string, string>;
|
|
5243
|
+
zapier_durable_version: string;
|
|
5244
|
+
dependencies: Record<string, string> | null;
|
|
5245
|
+
draft_revision: number;
|
|
5246
|
+
status: "open" | "discarded";
|
|
5247
|
+
created_by_user_id: string;
|
|
5248
|
+
last_edited_by_user_id: string | null;
|
|
5249
|
+
last_edited_at: string | null;
|
|
5250
|
+
discarded_at: string | null;
|
|
5251
|
+
created_at: string;
|
|
5252
|
+
updated_at: string;
|
|
5253
|
+
trigger: {
|
|
5254
|
+
selected_api: string;
|
|
5255
|
+
action: string;
|
|
5256
|
+
authentication_id?: string | null | undefined;
|
|
5257
|
+
params?: Record<string, unknown> | undefined;
|
|
5258
|
+
} | null;
|
|
5259
|
+
connections: Record<string, {
|
|
5260
|
+
connection_id: string | number;
|
|
5261
|
+
}> | null;
|
|
5262
|
+
app_versions: Record<string, {
|
|
5263
|
+
implementation_name: string;
|
|
5264
|
+
version?: string | undefined;
|
|
5265
|
+
}> | null;
|
|
5266
|
+
};
|
|
5267
|
+
}>;
|
|
5268
|
+
createWorkflowDraft: (input: {
|
|
5269
|
+
workflow: string;
|
|
5270
|
+
slug?: string | undefined;
|
|
5271
|
+
}) => Promise<{
|
|
5272
|
+
data: {
|
|
5273
|
+
id: string;
|
|
5274
|
+
workflow_id: string;
|
|
5275
|
+
slug: string;
|
|
5276
|
+
base_version_id: string | null;
|
|
5277
|
+
source_files: Record<string, string>;
|
|
5278
|
+
zapier_durable_version: string;
|
|
5279
|
+
dependencies: Record<string, string> | null;
|
|
5280
|
+
draft_revision: number;
|
|
5281
|
+
status: "open" | "discarded";
|
|
5282
|
+
created_by_user_id: string;
|
|
5283
|
+
last_edited_by_user_id: string | null;
|
|
5284
|
+
last_edited_at: string | null;
|
|
5285
|
+
discarded_at: string | null;
|
|
5286
|
+
created_at: string;
|
|
5287
|
+
updated_at: string;
|
|
5288
|
+
trigger: {
|
|
5289
|
+
selected_api: string;
|
|
5290
|
+
action: string;
|
|
5291
|
+
authentication_id?: string | null | undefined;
|
|
5292
|
+
params?: Record<string, unknown> | undefined;
|
|
5293
|
+
} | null;
|
|
5294
|
+
connections: Record<string, {
|
|
5295
|
+
connection_id: string | number;
|
|
5296
|
+
}> | null;
|
|
5297
|
+
app_versions: Record<string, {
|
|
5298
|
+
implementation_name: string;
|
|
5299
|
+
version?: string | undefined;
|
|
5300
|
+
}> | null;
|
|
5301
|
+
};
|
|
5302
|
+
}>;
|
|
5303
|
+
updateWorkflowDraft: (input: {
|
|
5304
|
+
workflow: string;
|
|
5305
|
+
draft: string;
|
|
5306
|
+
sourceFiles: Record<string, string>;
|
|
5307
|
+
zapierDurableVersion?: string | undefined;
|
|
5308
|
+
dependencies?: Record<string, string> | undefined;
|
|
5309
|
+
draftRevision?: number | undefined;
|
|
5310
|
+
trigger?: {
|
|
5311
|
+
action: string;
|
|
5312
|
+
selectedApi?: string | undefined;
|
|
5313
|
+
selected_api?: string | undefined;
|
|
5314
|
+
authenticationId?: string | null | undefined;
|
|
5315
|
+
authentication_id?: string | null | undefined;
|
|
5316
|
+
params?: Record<string, unknown> | undefined;
|
|
5317
|
+
} | null | undefined;
|
|
5318
|
+
connections?: Record<string, {
|
|
5319
|
+
connectionId?: string | number | undefined;
|
|
5320
|
+
connection_id?: string | number | undefined;
|
|
5321
|
+
}> | null | undefined;
|
|
5322
|
+
appVersions?: Record<string, {
|
|
5323
|
+
implementationName?: string | undefined;
|
|
5324
|
+
implementation_name?: string | undefined;
|
|
5325
|
+
version?: string | undefined;
|
|
5326
|
+
}> | null | undefined;
|
|
5327
|
+
}) => Promise<{
|
|
5328
|
+
data: {
|
|
5329
|
+
id: string;
|
|
5330
|
+
workflow_id: string;
|
|
5331
|
+
slug: string;
|
|
5332
|
+
base_version_id: string | null;
|
|
5333
|
+
source_files: Record<string, string>;
|
|
5334
|
+
zapier_durable_version: string;
|
|
5335
|
+
dependencies: Record<string, string> | null;
|
|
5336
|
+
draft_revision: number;
|
|
5337
|
+
status: "open" | "discarded";
|
|
5338
|
+
created_by_user_id: string;
|
|
5339
|
+
last_edited_by_user_id: string | null;
|
|
5340
|
+
last_edited_at: string | null;
|
|
5341
|
+
discarded_at: string | null;
|
|
5342
|
+
created_at: string;
|
|
5343
|
+
updated_at: string;
|
|
5344
|
+
trigger: {
|
|
5345
|
+
selected_api: string;
|
|
5346
|
+
action: string;
|
|
5347
|
+
authentication_id?: string | null | undefined;
|
|
5348
|
+
params?: Record<string, unknown> | undefined;
|
|
5349
|
+
} | null;
|
|
5350
|
+
connections: Record<string, {
|
|
5351
|
+
connection_id: string | number;
|
|
5352
|
+
}> | null;
|
|
5353
|
+
app_versions: Record<string, {
|
|
5354
|
+
implementation_name: string;
|
|
5355
|
+
version?: string | undefined;
|
|
5356
|
+
}> | null;
|
|
5357
|
+
};
|
|
5358
|
+
}>;
|
|
5359
|
+
discardWorkflowDraft: (input: {
|
|
5360
|
+
workflow: string;
|
|
5361
|
+
draft: string;
|
|
5362
|
+
}) => Promise<{
|
|
5363
|
+
data: {
|
|
5364
|
+
id: string;
|
|
5365
|
+
workflow_id: string;
|
|
5366
|
+
slug: string;
|
|
5367
|
+
base_version_id: string | null;
|
|
5368
|
+
source_files: Record<string, string>;
|
|
5369
|
+
zapier_durable_version: string;
|
|
5370
|
+
dependencies: Record<string, string> | null;
|
|
5371
|
+
draft_revision: number;
|
|
5372
|
+
status: "open" | "discarded";
|
|
5373
|
+
created_by_user_id: string;
|
|
5374
|
+
last_edited_by_user_id: string | null;
|
|
5375
|
+
last_edited_at: string | null;
|
|
5376
|
+
discarded_at: string | null;
|
|
5377
|
+
created_at: string;
|
|
5378
|
+
updated_at: string;
|
|
5379
|
+
trigger: {
|
|
5380
|
+
selected_api: string;
|
|
5381
|
+
action: string;
|
|
5382
|
+
authentication_id?: string | null | undefined;
|
|
5383
|
+
params?: Record<string, unknown> | undefined;
|
|
5384
|
+
} | null;
|
|
5385
|
+
connections: Record<string, {
|
|
5386
|
+
connection_id: string | number;
|
|
5387
|
+
}> | null;
|
|
5388
|
+
app_versions: Record<string, {
|
|
5389
|
+
implementation_name: string;
|
|
5390
|
+
version?: string | undefined;
|
|
5391
|
+
}> | null;
|
|
5392
|
+
};
|
|
5393
|
+
}>;
|
|
5023
5394
|
listWorkflowRuns: (input: {
|
|
5024
5395
|
workflow: string;
|
|
5025
5396
|
pageSize?: number | undefined;
|