@zapier/zapier-sdk 0.118.0 → 0.119.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.
@@ -1,168 +1,13 @@
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-BhbmZ5gy.js';
2
- export { ec as ACTION_RUNS_PATH, cP as API_ID, x as Action, cL as ActionEntry, c5 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, aR as ActionIdempotencyKeyPropertySchema, av as ActionItem, b6 as ActionKeyProperty, aD as ActionKeyPropertySchema, b7 as ActionProperty, aE as ActionPropertySchema, ae as ActionResolverItem, bj as ActionTimeoutMillisecondsProperty, aQ as ActionTimeoutMillisecondsPropertySchema, bi as ActionTimeoutSecondsProperty, aP as ActionTimeoutSecondsPropertySchema, af as ActionTypeItem, b5 as ActionTypeProperty, aC as ActionTypePropertySchema, dC as ApiEvent, cO as ApiPluginOptions, y as App, c6 as AppFactoryInput, at as AppItem, b3 as AppKeyProperty, aA as AppKeyPropertySchema, b4 as AppProperty, aB as AppPropertySchema, eH as ApplicationLifecycleEventData, bO as ApprovalStatus, bo as AppsProperty, aW as AppsPropertySchema, dB as AuthEvent, dm as AuthMechanism, bb as AuthenticationIdProperty, aH as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, e2 as CONNECTIONS_ID, cs as CONTEXT_CACHE_MAX_SIZE, cr as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dH as ClientCredentialsObject, dS as ClientCredentialsObjectSchema, Q as Connection, d_ as ConnectionEntry, dZ as ConnectionEntrySchema, b9 as ConnectionIdProperty, aG as ConnectionIdPropertySchema, au as ConnectionItem, ba as ConnectionProperty, aI as ConnectionPropertySchema, e0 as ConnectionsMap, d$ as ConnectionsMapSchema, bq as ConnectionsProperty, aY as ConnectionsPropertySchema, S as ConnectionsResponse, cu as CreateActionRunPluginProvides, dE as Credentials, dX as CredentialsFunction, dW as CredentialsFunctionSchema, dG as CredentialsObject, dU as CredentialsObjectSchema, dY as CredentialsSchema, eb as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, el as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cJ as DEFAULT_CONFIG_PATH, em as DEFAULT_MAX_APPROVAL_RETRIES, ea as DEFAULT_PAGE_SIZE, ar as DEPRECATION_NOTICE_EVENT, bg as DebugProperty, aN as DebugPropertySchema, as as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, e$ as DrainTriggerInboxSchema, eC as EVENT_EMISSION_ID, eI as EnhancedErrorEventData, bx as ErrorOptions, eG as EventContext, eA as EventEmissionContext, eB as EventEmitter, c7 as FetchPluginProvides, z as Field, bn as FieldsProperty, aV as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cw as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cN as GetProfilePluginProvides, ax as InfoFieldItem, aw as InputFieldItem, b8 as InputFieldProperty, aF as InputFieldPropertySchema, bc as InputsProperty, aJ as InputsPropertySchema, aq as JsonSseMessage, bw as LeaseLimitProperty, b2 as LeaseLimitPropertySchema, bu as LeaseProperty, b0 as LeasePropertySchema, bv as LeaseSecondsProperty, b1 as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, bd as LimitProperty, aK as LimitPropertySchema, ce as ListActionInputFieldsPluginProvides, cc as ListActionsPluginProvides, ca as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, ci as ListConnectionsPluginProvides, dD as LoadingEvent, cE as MANIFEST_ID, ef as MAX_CONCURRENCY_LIMIT, e9 as MAX_PAGE_LIMIT, cK as ManifestEntry, cA as ManifestPluginOptions, eP as MethodCalledEvent, eJ as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, be as OffsetProperty, aL as OffsetPropertySchema, bf as OutputProperty, aM as OutputPropertySchema, bh as ParamsProperty, aO as ParamsPropertySchema, dI as PkceCredentialsObject, dT as PkceCredentialsObjectSchema, al as PollOptions, cS as RESOLVE_CREDENTIALS_ID, bM as RateLimitInfo, bl as RecordProperty, aT as RecordPropertySchema, bm as RecordsProperty, aU as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ak as RequestOptions, dl as ResolveAuthTokenOptions, e1 as ResolveConnection, dN as ResolveCredentialsOptions, ag as ResolvedAppLocator, dn as ResolvedAuth, dF as ResolvedCredentials, dV as ResolvedCredentialsSchema, ay as RootFieldItem, cy as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dA as SdkEvent, ap as SseMessage, bk as TableProperty, aS as TablePropertySchema, bp as TablesProperty, aX as TablesPropertySchema, bs as TriggerInboxKeyProperty, a_ as TriggerInboxKeyPropertySchema, bt as TriggerInboxNameProperty, a$ as TriggerInboxNamePropertySchema, br as TriggerInboxProperty, aZ as TriggerInboxPropertySchema, T as TriggerMessageStatus, cH as UpdateManifestEntryOptions, cI as UpdateManifestEntryResult, U as UserProfile, az as UserProfileItem, f0 as WatchTriggerInboxSchema, e5 as ZAPIER_BASE_URL, eh as ZAPIER_MAX_CONCURRENT_REQUESTS, ed as ZAPIER_MAX_NETWORK_RETRIES, ee as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bK as ZapierActionError, bD as ZapierApiError, bE as ZapierAppNotFoundError, bP as ZapierApprovalError, bB as ZapierAuthenticationError, bI as ZapierBundleError, dx as ZapierCacheEntry, dy as ZapierCacheSetOptions, bH as ZapierConfigurationError, bL as ZapierConflictError, by as ZapierError, bF as ZapierNotFoundError, bN as ZapierRateLimitError, bQ as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bG as ZapierResourceNotFoundError, c2 as ZapierSignal, bJ as ZapierTimeoutError, bA as ZapierUnknownError, bz as ZapierValidationError, cX as actionKeyResolver, cW as actionTypeResolver, cR as apiPlugin, cQ as apiPluginRef, cV as appKeyResolver, c4 as appsPlugin, a1 as batch, eK as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eM as buildErrorEvent, eL as buildErrorEventWithContext, eO as buildMethodCalledEvent, ez as cleanupEventListeners, dp as clearTokenCache, d1 as clientCredentialsNameResolver, d2 as clientIdResolver, cZ as connectionIdGenericResolver, cY as connectionIdResolver, e4 as connectionsPlugin, e3 as connectionsPluginRef, ct as createActionRunPlugin, eN as createBaseEvent, ck as createClientCredentialsPlugin, dz as createMemoryCache, es as createTableFieldsPlugin, ep as createTablePlugin, ew as createTableRecordsPlugin, am as createZapierApi, a8 as createZapierSdkWithoutRegistry, cl as deleteClientCredentialsPlugin, et as deleteTableFieldsPlugin, eq as deleteTablePlugin, ex as deleteTableRecordsPlugin, ai as descriptionFor, d6 as durableRunIdResolver, eF as eventEmissionHookPlugin, eE as eventEmissionPlugin, eD as eventEmissionPluginRef, c8 as fetchPlugin, cp as findFirstConnectionPlugin, cD as findManifestEntry, cq as findUniqueConnectionPlugin, c1 as formatErrorMessage, ad as formatExtensionPluginFailure, eR as generateEventId, cg as getActionInputFieldsSchemaPlugin, cn as getActionPlugin, cv as getActionRunPlugin, ah as getAgent, cm as getAppPlugin, dQ as getBaseUrlFromCredentials, _ as getCallerContext, eX as getCiPlatform, dR as getClientIdFromCredentials, co as getConnectionPlugin, eZ as getCpuTime, eS as getCurrentTimestamp, eY as getMemoryUsage, an as getOrCreateApiClient, eU as getOsInfo, eV as getPlatformVersions, cC as getPreferredManifestEntryKey, cM as getProfilePlugin, eT as getReleaseId, eo as getTablePlugin, eu as getTableRecordPlugin, dt as getTokenFromCliLogin, e_ as getTtyContext, ei as getZapierApprovalMode, e8 as getZapierCausationId, e7 as getZapierCorrelationId, ek as getZapierDefaultApprovalMode, ej as getZapierOpenAutoModeApprovalsInBrowser, e6 as getZapierSdkService, dr as injectCliLogin, d0 as inputFieldKeyResolver, c$ as inputsAllOptionalResolver, c_ as inputsResolver, dq as invalidateCachedToken, dw as invalidateCredentialsToken, eW as isCi, ds as isCliLoginAvailable, dJ as isClientCredentials, dM as isCredentialsFunction, dL as isCredentialsObject, aj as isInternalField, ao as isPermanentHttpError, dK as isPkceCredentials, o as isZapierAbortDrainSignal, b_ as isZapierActionError, bU as isZapierAppNotFoundError, c0 as isZapierApprovalError, bT as isZapierAuthenticationError, bZ as isZapierBundleError, bX as isZapierConflictError, bR as isZapierError, bV as isZapierNotFoundError, b$ as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bW as isZapierResourceNotFoundError, c3 as isZapierSignal, bY as isZapierTimeoutError, bS as isZapierValidationError, cf as listActionInputFieldChoicesPlugin, cd as listActionInputFieldsPlugin, cb as listActionsPlugin, c9 as listAppsPlugin, cj as listClientCredentialsPlugin, ch as listConnectionsPlugin, er as listTableFieldsPlugin, ev as listTableRecordsPlugin, en as listTablesPlugin, a4 as logDeprecation, cG as manifestPlugin, cF as manifestPluginRef, eQ as operationAnnotatorPlugin, eg as parseConcurrencyEnvVar, cB as readManifestFromFile, cz as requestPlugin, a5 as resetDeprecationWarnings, du as resolveAuth, dv as resolveAuthToken, dP as resolveCredentials, dO as resolveCredentialsFromEnv, cU as resolveCredentialsPlugin, cT as resolveCredentialsPluginRef, cx as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, de as tableFieldIdsResolver, dg as tableFieldsResolver, dj as tableFiltersResolver, d3 as tableIdResolver, df as tableNameResolver, dc as tableRecordIdResolver, dd as tableRecordIdsResolver, dh as tableRecordsResolver, dk as tableSortResolver, di as tableUpdateRecordsResolver, ac as taxonomy, d4 as triggerInboxResolver, db as triggerMessagesResolver, ey as updateTableRecordsPlugin, d8 as workflowDraftIdResolver, d9 as workflowDraftRevisionResolver, d5 as workflowIdResolver, da as workflowRunIdResolver, d7 as workflowVersionIdResolver, bC as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-BhbmZ5gy.js';
1
+ import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-DIWpTc5e.js';
2
+ export { ee as ACTION_RUNS_PATH, cR as API_ID, z as Action, cN as ActionEntry, c7 as ActionExecutionOptions, K as ActionExecutionResult, O as ActionField, P as ActionFieldChoice, aT as ActionIdempotencyKeyPropertySchema, ax as ActionItem, b8 as ActionKeyProperty, aF as ActionKeyPropertySchema, b9 as ActionProperty, aG as ActionPropertySchema, ag as ActionResolverItem, bl as ActionTimeoutMillisecondsProperty, aS as ActionTimeoutMillisecondsPropertySchema, bk as ActionTimeoutSecondsProperty, aR as ActionTimeoutSecondsPropertySchema, ah as ActionTypeItem, b7 as ActionTypeProperty, aE as ActionTypePropertySchema, dE as ApiEvent, cQ as ApiPluginOptions, H as App, c8 as AppFactoryInput, av as AppItem, b5 as AppKeyProperty, aC as AppKeyPropertySchema, b6 as AppProperty, aD as AppPropertySchema, eJ as ApplicationLifecycleEventData, bQ as ApprovalStatus, bq as AppsProperty, aY as AppsPropertySchema, dD as AuthEvent, dp as AuthMechanism, bd as AuthenticationIdProperty, aJ as AuthenticationIdPropertySchema, ac as BaseSdkOptionsSchema, a4 as BatchOptions, e4 as CONNECTIONS_ID, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MILLISECONDS, a2 as CallerContext, J as Choice, dJ as ClientCredentialsObject, dU as ClientCredentialsObjectSchema, U as Connection, e0 as ConnectionEntry, d$ as ConnectionEntrySchema, bb as ConnectionIdProperty, aI as ConnectionIdPropertySchema, aw as ConnectionItem, bc as ConnectionProperty, aK as ConnectionPropertySchema, e2 as ConnectionsMap, e1 as ConnectionsMapSchema, bs as ConnectionsProperty, a_ as ConnectionsPropertySchema, V as ConnectionsResponse, cw as CreateActionRunPluginProvides, dG as Credentials, dZ as CredentialsFunction, dY as CredentialsFunctionSchema, dI as CredentialsObject, dW as CredentialsObjectSchema, d_ as CredentialsSchema, ed as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, en as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cL as DEFAULT_CONFIG_PATH, eo as DEFAULT_MAX_APPROVAL_RETRIES, ec as DEFAULT_PAGE_SIZE, at as DEPRECATION_NOTICE_EVENT, bi as DebugProperty, aP as DebugPropertySchema, au as DeprecationNoticePayload, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, m as DrainTriggerInboxSchema, eE as EVENT_EMISSION_ID, eK as EnhancedErrorEventData, bz as ErrorOptions, eI as EventContext, eC as EventEmissionContext, eD as EventEmitter, c9 as FetchPluginProvides, I as Field, bp as FieldsProperty, aX as FieldsPropertySchema, x as FindFirstAuthenticationPluginProvides, y as FindUniqueAuthenticationPluginProvides, cy as GetActionRunPluginProvides, w as GetAuthenticationPluginProvides, cP as GetProfilePluginProvides, az as InfoFieldItem, ay as InputFieldItem, ba as InputFieldProperty, aH as InputFieldPropertySchema, be as InputsProperty, aL as InputsPropertySchema, as as JsonSseMessage, by as LeaseLimitProperty, b4 as LeaseLimitPropertySchema, bw as LeaseProperty, b2 as LeasePropertySchema, bx as LeaseSecondsProperty, b3 as LeaseSecondsPropertySchema, u as LeasedTriggerMessageItem, bf as LimitProperty, aM as LimitPropertySchema, cg as ListActionInputFieldsPluginProvides, ce as ListActionsPluginProvides, cc as ListAppsPluginProvides, v as ListAuthenticationsPluginProvides, ck as ListConnectionsPluginProvides, dF as LoadingEvent, cG as MANIFEST_ID, eh as MAX_CONCURRENCY_LIMIT, eb as MAX_PAGE_LIMIT, cM as ManifestEntry, cC as ManifestPluginOptions, eR as MethodCalledEvent, eL as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bg as OffsetProperty, aN as OffsetPropertySchema, bh as OutputProperty, aO as OutputPropertySchema, bj as ParamsProperty, aQ as ParamsPropertySchema, dK as PkceCredentialsObject, dV as PkceCredentialsObjectSchema, an as PollOptions, cU as RESOLVE_CREDENTIALS_ID, bO as RateLimitInfo, bn as RecordProperty, aV as RecordPropertySchema, bo as RecordsProperty, aW as RecordsPropertySchema, a9 as RelayFetchSchema, a8 as RelayRequestSchema, am as RequestOptions, dn as ResolveAuthTokenOptions, e3 as ResolveConnection, dP as ResolveCredentialsOptions, ai as ResolvedAppLocator, dq as ResolvedAuth, dH as ResolvedCredentials, dX as ResolvedCredentialsSchema, aA as RootFieldItem, cA as RunActionPluginProvides, _ as SDK_OPTIONS_ID, ad as STABILITY_DEFINITIONS, dC as SdkEvent, ar as SseMessage, bm as TableProperty, aU as TablePropertySchema, br as TablesProperty, aZ as TablesPropertySchema, bu as TriggerInboxKeyProperty, b0 as TriggerInboxKeyPropertySchema, bv as TriggerInboxNameProperty, b1 as TriggerInboxNamePropertySchema, bt as TriggerInboxProperty, a$ as TriggerInboxPropertySchema, T as TriggerMessageStatus, cJ as UpdateManifestEntryOptions, cK as UpdateManifestEntryResult, X as UserProfile, aB as UserProfileItem, n as WatchTriggerInboxSchema, e7 as ZAPIER_BASE_URL, ej as ZAPIER_MAX_CONCURRENT_REQUESTS, ef as ZAPIER_MAX_NETWORK_RETRIES, eg as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, o as ZapierAbortDrainSignal, bM as ZapierActionError, bF as ZapierApiError, bG as ZapierAppNotFoundError, bR as ZapierApprovalError, bD as ZapierAuthenticationError, bK as ZapierBundleError, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, bJ as ZapierConfigurationError, bN as ZapierConflictError, bA as ZapierError, bH as ZapierNotFoundError, bP as ZapierRateLimitError, bS as ZapierRelayError, p as ZapierReleaseTriggerMessageSignal, bI as ZapierResourceNotFoundError, c4 as ZapierSignal, bL as ZapierTimeoutError, bC as ZapierUnknownError, bB as ZapierValidationError, cZ as actionKeyResolver, cY as actionTypeResolver, cT as apiPlugin, cS as apiPluginRef, cX as appKeyResolver, c6 as appsPlugin, a3 as batch, eM as buildApplicationLifecycleEvent, a5 as buildCapabilityMessage, eO as buildErrorEvent, eN as buildErrorEventWithContext, eQ as buildMethodCalledEvent, eB as cleanupEventListeners, dr as clearTokenCache, d3 as clientCredentialsNameResolver, d4 as clientIdResolver, c$ as connectionIdGenericResolver, c_ as connectionIdResolver, e6 as connectionsPlugin, e5 as connectionsPluginRef, cv as createActionRunPlugin, eP as createBaseEvent, cm as createClientCredentialsPlugin, dB as createMemoryCache, eu as createTableFieldsPlugin, er as createTablePlugin, ey as createTableRecordsPlugin, ao as createZapierApi, aa as createZapierSdkWithoutRegistry, cn as deleteClientCredentialsPlugin, ev as deleteTableFieldsPlugin, es as deleteTablePlugin, ez as deleteTableRecordsPlugin, ak as descriptionFor, d8 as durableRunIdResolver, eH as eventEmissionHookPlugin, eG as eventEmissionPlugin, eF as eventEmissionPluginRef, ca as fetchPlugin, cr as findFirstConnectionPlugin, cF as findManifestEntry, cs as findUniqueConnectionPlugin, c3 as formatErrorMessage, af as formatExtensionPluginFailure, eT as generateEventId, ci as getActionInputFieldsSchemaPlugin, cp as getActionPlugin, cx as getActionRunPlugin, aj as getAgent, co as getAppPlugin, dS as getBaseUrlFromCredentials, a0 as getCallerContext, eZ as getCiPlatform, dT as getClientIdFromCredentials, cq as getConnectionPlugin, e$ as getCpuTime, eU as getCurrentTimestamp, e_ as getMemoryUsage, ap as getOrCreateApiClient, eW as getOsInfo, eX as getPlatformVersions, cE as getPreferredManifestEntryKey, cO as getProfilePlugin, eV as getReleaseId, eq as getTablePlugin, ew as getTableRecordPlugin, dv as getTokenFromCliLogin, f0 as getTtyContext, ek as getZapierApprovalMode, ea as getZapierCausationId, e9 as getZapierCorrelationId, em as getZapierDefaultApprovalMode, el as getZapierOpenAutoModeApprovalsInBrowser, e8 as getZapierSdkService, dt as injectCliLogin, d2 as inputFieldKeyResolver, d1 as inputsAllOptionalResolver, d0 as inputsResolver, ds as invalidateCachedToken, dy as invalidateCredentialsToken, eY as isCi, du as isCliLoginAvailable, dL as isClientCredentials, dO as isCredentialsFunction, dN as isCredentialsObject, al as isInternalField, aq as isPermanentHttpError, dM as isPkceCredentials, q as isZapierAbortDrainSignal, c0 as isZapierActionError, bW as isZapierAppNotFoundError, c2 as isZapierApprovalError, bV as isZapierAuthenticationError, b$ as isZapierBundleError, bZ as isZapierConflictError, bT as isZapierError, bX as isZapierNotFoundError, c1 as isZapierRateLimitError, r as isZapierReleaseTriggerMessageSignal, bY as isZapierResourceNotFoundError, c5 as isZapierSignal, b_ as isZapierTimeoutError, bU as isZapierValidationError, ch as listActionInputFieldChoicesPlugin, cf as listActionInputFieldsPlugin, cd as listActionsPlugin, cb as listAppsPlugin, cl as listClientCredentialsPlugin, cj as listConnectionsPlugin, et as listTableFieldsPlugin, ex as listTableRecordsPlugin, ep as listTablesPlugin, a6 as logDeprecation, cI as manifestPlugin, cH as manifestPluginRef, eS as operationAnnotatorPlugin, ei as parseConcurrencyEnvVar, cD as readManifestFromFile, cB as requestPlugin, a7 as resetDeprecationWarnings, dw as resolveAuth, dx as resolveAuthToken, dR as resolveCredentials, dQ as resolveCredentialsFromEnv, cW as resolveCredentialsPlugin, cV as resolveCredentialsPluginRef, cz as runActionPlugin, a1 as runWithCallerContext, $ as sdkOptionsPluginRef, dg as tableFieldIdsResolver, di as tableFieldsResolver, dl as tableFiltersResolver, d5 as tableIdResolver, dh as tableNameResolver, de as tableRecordIdResolver, df as tableRecordIdsResolver, dj as tableRecordsResolver, dm as tableSortResolver, dk as tableUpdateRecordsResolver, ae as taxonomy, d6 as triggerInboxResolver, dd as triggerMessagesResolver, eA as updateTableRecordsPlugin, da as workflowDraftIdResolver, db as workflowDraftRevisionResolver, d7 as workflowIdResolver, dc as workflowRunIdResolver, d9 as workflowVersionIdResolver, bE as zapierAdaptError, ab as zapierCoreOptions, Y as zapierSdkPlugin } from './index-DIWpTc5e.js';
3
3
  import * as zod from 'zod';
4
- import { z } from 'zod';
5
4
  import * as zod_v4_core from 'zod/v4/core';
6
5
  import * as _zapier_kitcore from '@zapier/kitcore';
7
6
  export { AggregatePlugin, CoreApiError as ApiError, ArrayResolver, BoundFormatter, CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ContractEntry, ControllerAction, ControllerAnswerFn, ControllerChoice, ControllerMethodDescription, ControllerMethodSummary, ControllerParameterDescription, ControllerQuestion, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, DeclarationSummary, DynamicListResolver, DynamicMember, DynamicResolver, DynamicSearchResolver, FieldsResolver, FormattedItem, Formatter, FunctionDeprecation, FunctionRegistryEntry, LeafSummary, MethodContract, MethodMeta, MethodOverridePlugin, MethodPlugin, ModelResolver, NegatableMetadata, OptionalDeclarationSummary, PaginatedSdkFunction, PaginatedSdkResult, Plugin, PluginMeta, PluginSummary, PluginSurface, PositionalMetadata, PropertyMeta, PropertyPlugin, RegistryResult, Resolver, ResolverMetadata, STABILITY_LEVELS, STABILITY_TITLES, SdkPage, StabilityLevel, StandInId, StaticResolver, addPlugin, applyStabilityLabel, createController, createSdk, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, disposeSdk, getContext, getCoreErrorCause, getCoreErrorCode, getNegatable, getRegistry, getRegistryPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isPositional, omitExports, resolvePlugin, runInMethodScope, runWithTelemetryContext, selectExports, toSnakeCase, toTitleCase } from '@zapier/kitcore';
7
+ export { CreateWorkflowOptions, CreateWorkflowOptionsSchema, CreateWorkflowResponse, CreateWorkflowResponseSchema, ImportWorkflowOptions, ImportWorkflowOptionsSchema, ImportWorkflowResponse, ImportWorkflowResponseSchema, OpenDraftRef, zapierBetaSdkPlugin } from './beta.js';
8
8
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
9
9
  import '@zapier/policy-context';
10
10
 
11
- declare const CreateWorkflowOptionsSchema: z.ZodObject<{
12
- is_private: z.ZodOptional<z.ZodBoolean>;
13
- creationHarness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- creationAccessMethod: z.ZodOptional<z.ZodEnum<{
15
- unknown: "unknown";
16
- api: "api";
17
- sdk_cli: "sdk_cli";
18
- sdk_mcp: "sdk_mcp";
19
- zapier_mcp: "zapier_mcp";
20
- editor: "editor";
21
- }>>;
22
- name: z.ZodString;
23
- description: z.ZodOptional<z.ZodString>;
24
- private: z.ZodOptional<z.ZodBoolean>;
25
- }, z.core.$strip>;
26
- type CreateWorkflowOptions = z.infer<typeof CreateWorkflowOptionsSchema>;
27
- declare const CreateWorkflowResponseSchema: z.ZodObject<{
28
- id: z.ZodString;
29
- name: z.ZodString;
30
- description: z.ZodNullable<z.ZodString>;
31
- trigger_url: z.ZodString;
32
- editor_url: z.ZodString;
33
- enabled: z.ZodBoolean;
34
- is_private: z.ZodBoolean;
35
- created_by_user_id: z.ZodNullable<z.ZodString>;
36
- created_at: z.ZodString;
37
- creation_client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
38
- harness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
- access_method: z.ZodString;
40
- sdk_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
- }, z.core.$strip>>>;
42
- }, z.core.$strip>;
43
- type CreateWorkflowResponse = z.infer<typeof CreateWorkflowResponseSchema>;
44
-
45
- declare const ImportWorkflowOptionsSchema: z.ZodObject<{
46
- creationHarness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
- creationAccessMethod: z.ZodOptional<z.ZodEnum<{
48
- unknown: "unknown";
49
- api: "api";
50
- sdk_cli: "sdk_cli";
51
- sdk_mcp: "sdk_mcp";
52
- zapier_mcp: "zapier_mcp";
53
- editor: "editor";
54
- }>>;
55
- zap: z.ZodString;
56
- name: z.ZodOptional<z.ZodString>;
57
- private: z.ZodOptional<z.ZodBoolean>;
58
- }, z.core.$strip>;
59
- type ImportWorkflowOptions = z.infer<typeof ImportWorkflowOptionsSchema>;
60
- declare const ImportWorkflowResponseSchema: z.ZodObject<{
61
- workflow: z.ZodObject<{
62
- id: z.ZodString;
63
- name: z.ZodString;
64
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- trigger_url: z.ZodString;
66
- editor_url: z.ZodString;
67
- enabled: z.ZodBoolean;
68
- disabled_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
69
- trigger_claim_failed: "trigger_claim_failed";
70
- }>>>;
71
- is_private: z.ZodBoolean;
72
- source_zap_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
- created_by_user_id: z.ZodString;
74
- updated_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
- current_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
- triggers: z.ZodArray<z.ZodObject<{
77
- selected_api: z.ZodString;
78
- action: z.ZodString;
79
- authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
81
- status: z.ZodEnum<{
82
- active: "active";
83
- unclaimed: "unclaimed";
84
- pending: "pending";
85
- releasing: "releasing";
86
- released: "released";
87
- failed: "failed";
88
- }>;
89
- error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
- details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
91
- webhook_url: z.ZodOptional<z.ZodString>;
92
- }, z.core.$strip>>>;
93
- }, z.core.$strip>>;
94
- created_at: z.ZodString;
95
- updated_at: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strip>;
97
- draft: z.ZodObject<{
98
- id: z.ZodString;
99
- workflow_id: z.ZodString;
100
- slug: z.ZodString;
101
- base_version_id: z.ZodNullable<z.ZodString>;
102
- source_files: z.ZodRecord<z.ZodString, z.ZodString>;
103
- zapier_durable_version: z.ZodString;
104
- dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
105
- draft_revision: z.ZodNumber;
106
- status: z.ZodEnum<{
107
- open: "open";
108
- discarded: "discarded";
109
- }>;
110
- created_by_user_id: z.ZodString;
111
- last_edited_by_user_id: z.ZodNullable<z.ZodString>;
112
- last_edited_at: z.ZodNullable<z.ZodString>;
113
- discarded_at: z.ZodNullable<z.ZodString>;
114
- created_at: z.ZodString;
115
- updated_at: z.ZodString;
116
- trigger: z.ZodNullable<z.ZodObject<{
117
- selected_api: z.ZodString;
118
- action: z.ZodString;
119
- authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
121
- }, z.core.$strip>>;
122
- connections: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
123
- connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>;
124
- }, z.core.$strip>>>;
125
- app_versions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
126
- implementation_name: z.ZodString;
127
- version: z.ZodOptional<z.ZodString>;
128
- }, z.core.$strip>>>;
129
- creation_client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
- harness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
- access_method: z.ZodString;
132
- sdk_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
- }, z.core.$strip>>>;
134
- last_edited_client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
135
- harness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
- access_method: z.ZodString;
137
- sdk_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
- }, z.core.$strip>>>;
139
- }, z.core.$strip>;
140
- issues: z.ZodArray<z.ZodObject<{
141
- line: z.ZodNumber;
142
- column: z.ZodNumber;
143
- node_kind: z.ZodString;
144
- step_name: z.ZodOptional<z.ZodString>;
145
- message: z.ZodString;
146
- blocking: z.ZodBoolean;
147
- }, z.core.$strip>>;
148
- }, z.core.$strip>;
149
- type ImportWorkflowResponse = z.infer<typeof ImportWorkflowResponseSchema>;
150
-
151
- /**
152
- * A blocking draft as listed by the 409's `meta.open_drafts` — the element
153
- * type of `ZapierConflictError.meta.open_drafts` on the open-draft publish
154
- * conflict. Exported (and re-exported from `@zapier/zapier-sdk/experimental`)
155
- * so a TS consumer can read the structured list without hand-writing the
156
- * shape, following the `RateLimitInfo` precedent of exporting an
157
- * error-payload type while keeping `ZapierConflictError.meta` generic.
158
- */
159
- interface OpenDraftRef {
160
- id: string;
161
- slug?: string;
162
- last_edited_at?: string | null;
163
- last_edited_by_user_id?: string | null;
164
- }
165
-
166
11
  interface ZapierSdkOptions extends BaseSdkOptions {
167
12
  }
168
13
  /**
@@ -8221,8 +8066,7 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
8221
8066
  };
8222
8067
  }>>;
8223
8068
  } & {
8224
- listWorkflowVersions: _zapier_kitcore.MethodPlugin<"listWorkflowVersions", {
8225
- workflow: string;
8069
+ listDurableRuns: _zapier_kitcore.MethodPlugin<"listDurableRuns", {
8226
8070
  pageSize?: number | undefined;
8227
8071
  cursor?: string | undefined;
8228
8072
  maxItems?: number | undefined;
@@ -8235,39 +8079,26 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
8235
8079
  skipOutputDataValidation?: boolean;
8236
8080
  }, _zapier_kitcore.PaginatedSdkResult<{
8237
8081
  id: string;
8238
- workflow_id: string;
8239
- zapier_durable_version: string;
8240
- dependencies: Record<string, string> | null;
8241
- created_by_user_id: string;
8242
- created_at: string;
8243
- trigger: {
8244
- selected_api: string;
8245
- action: string;
8246
- authentication_id?: string | null | undefined;
8247
- params?: Record<string, unknown> | undefined;
8082
+ status: string;
8083
+ input: unknown;
8084
+ output: unknown;
8085
+ error: {
8086
+ [x: string]: unknown;
8087
+ code: string;
8088
+ message: string;
8248
8089
  } | null;
8249
- connections: Record<string, {
8250
- connection_id: string | number;
8251
- }> | null;
8252
- app_versions: Record<string, {
8253
- implementation_name: string;
8254
- version?: string | undefined;
8255
- }> | null;
8256
- creation_client?: {
8257
- access_method: string;
8258
- harness?: string | null | undefined;
8259
- sdk_version?: string | null | undefined;
8260
- } | null | undefined;
8090
+ execution_id: string | null;
8091
+ is_private: boolean;
8092
+ created_at: string;
8093
+ updated_at: string;
8261
8094
  }>, readonly [], Omit<{
8262
- workflow: string;
8263
8095
  pageSize?: number | undefined;
8264
8096
  cursor?: string | undefined;
8265
8097
  maxItems?: number | undefined;
8266
8098
  }, "skipOutputDataValidation" | "maxItems"> & {
8267
8099
  cursor?: string;
8268
8100
  pageSize?: number;
8269
- }> & _zapier_kitcore.LeafSummary<"", "listWorkflowVersions", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8270
- workflow: string;
8101
+ }> & _zapier_kitcore.LeafSummary<"", "listDurableRuns", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input?: ({
8271
8102
  pageSize?: number | undefined;
8272
8103
  cursor?: string | undefined;
8273
8104
  maxItems?: number | undefined;
@@ -8278,130 +8109,350 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
8278
8109
  maxItems?: number;
8279
8110
  } & {
8280
8111
  skipOutputDataValidation?: boolean;
8281
- }) => _zapier_kitcore.PaginatedSdkResult<{
8112
+ }) | undefined) => _zapier_kitcore.PaginatedSdkResult<{
8282
8113
  id: string;
8283
- workflow_id: string;
8284
- zapier_durable_version: string;
8285
- dependencies: Record<string, string> | null;
8286
- created_by_user_id: string;
8287
- created_at: string;
8288
- trigger: {
8289
- selected_api: string;
8290
- action: string;
8291
- authentication_id?: string | null | undefined;
8292
- params?: Record<string, unknown> | undefined;
8114
+ status: string;
8115
+ input: unknown;
8116
+ output: unknown;
8117
+ error: {
8118
+ [x: string]: unknown;
8119
+ code: string;
8120
+ message: string;
8293
8121
  } | null;
8294
- connections: Record<string, {
8295
- connection_id: string | number;
8296
- }> | null;
8297
- app_versions: Record<string, {
8298
- implementation_name: string;
8299
- version?: string | undefined;
8300
- }> | null;
8301
- creation_client?: {
8302
- access_method: string;
8303
- harness?: string | null | undefined;
8304
- sdk_version?: string | null | undefined;
8305
- } | null | undefined;
8122
+ execution_id: string | null;
8123
+ is_private: boolean;
8124
+ created_at: string;
8125
+ updated_at: string;
8306
8126
  }>>;
8307
8127
  } & {
8308
- getWorkflowVersion: _zapier_kitcore.MethodPlugin<"getWorkflowVersion", {
8309
- workflow: string;
8310
- version: string;
8128
+ getDurableRun: _zapier_kitcore.MethodPlugin<"getDurableRun", {
8129
+ run: string;
8311
8130
  } & {
8312
8131
  skipOutputDataValidation?: boolean;
8313
8132
  }, Promise<{
8314
8133
  data: {
8315
8134
  id: string;
8316
- workflow_id: string;
8317
- source_files: Record<string, string>;
8318
- zapier_durable_version: string;
8319
- dependencies: Record<string, string> | null;
8320
- created_by_user_id: string;
8321
- created_at: string;
8322
- trigger: {
8323
- selected_api: string;
8324
- action: string;
8325
- authentication_id?: string | null | undefined;
8326
- params?: Record<string, unknown> | undefined;
8135
+ status: string;
8136
+ input: unknown;
8137
+ output: unknown;
8138
+ error: {
8139
+ [x: string]: unknown;
8140
+ code: string;
8141
+ message: string;
8327
8142
  } | null;
8328
- connections: Record<string, {
8329
- connection_id: string | number;
8330
- }> | null;
8331
- app_versions: Record<string, {
8332
- implementation_name: string;
8333
- version?: string | undefined;
8334
- }> | null;
8335
- creation_client?: {
8336
- access_method: string;
8337
- harness?: string | null | undefined;
8338
- sdk_version?: string | null | undefined;
8339
- } | null | undefined;
8143
+ execution: {
8144
+ id: string;
8145
+ name: string;
8146
+ status: string;
8147
+ input: unknown;
8148
+ created_at: string;
8149
+ output?: unknown;
8150
+ error?: unknown;
8151
+ metadata?: Record<string, unknown> | undefined;
8152
+ summary?: {
8153
+ [x: string]: unknown;
8154
+ total_attempts: number;
8155
+ last_error?: {
8156
+ [x: string]: unknown;
8157
+ code: string;
8158
+ title: string;
8159
+ detail?: string | null | undefined;
8160
+ } | null | undefined;
8161
+ } | null | undefined;
8162
+ operations?: {
8163
+ id: string;
8164
+ execution_id: string;
8165
+ name: string;
8166
+ type: string;
8167
+ status: string;
8168
+ retry_count: number;
8169
+ created_at: string;
8170
+ result?: unknown;
8171
+ error?: unknown;
8172
+ max_attempts?: number | undefined;
8173
+ next_retry_at?: string | null | undefined;
8174
+ resume_at?: string | null | undefined;
8175
+ callback_token?: string | null | undefined;
8176
+ payload_schema?: unknown;
8177
+ payload?: unknown;
8178
+ expires_at?: string | null | undefined;
8179
+ timeout_seconds?: number | null | undefined;
8180
+ completed_at?: string | null | undefined;
8181
+ }[] | undefined;
8182
+ } | null;
8183
+ is_private: boolean;
8184
+ created_at: string;
8185
+ updated_at: string;
8340
8186
  };
8341
8187
  meta?: _zapier_kitcore.ResponseMeta;
8342
8188
  }>, readonly [], {
8343
- version: string;
8344
- workflow: string;
8345
- }> & _zapier_kitcore.LeafSummary<"", "getWorkflowVersion", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8346
- workflow: string;
8347
- version: string;
8189
+ run: string;
8190
+ }> & _zapier_kitcore.LeafSummary<"", "getDurableRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8191
+ run: string;
8348
8192
  } & {
8349
8193
  skipOutputDataValidation?: boolean;
8350
8194
  }) => Promise<{
8351
8195
  data: {
8352
8196
  id: string;
8353
- workflow_id: string;
8354
- source_files: Record<string, string>;
8355
- zapier_durable_version: string;
8356
- dependencies: Record<string, string> | null;
8357
- created_by_user_id: string;
8358
- created_at: string;
8359
- trigger: {
8360
- selected_api: string;
8361
- action: string;
8362
- authentication_id?: string | null | undefined;
8363
- params?: Record<string, unknown> | undefined;
8197
+ status: string;
8198
+ input: unknown;
8199
+ output: unknown;
8200
+ error: {
8201
+ [x: string]: unknown;
8202
+ code: string;
8203
+ message: string;
8364
8204
  } | null;
8365
- connections: Record<string, {
8366
- connection_id: string | number;
8367
- }> | null;
8368
- app_versions: Record<string, {
8369
- implementation_name: string;
8370
- version?: string | undefined;
8371
- }> | null;
8372
- creation_client?: {
8373
- access_method: string;
8374
- harness?: string | null | undefined;
8375
- sdk_version?: string | null | undefined;
8376
- } | null | undefined;
8205
+ execution: {
8206
+ id: string;
8207
+ name: string;
8208
+ status: string;
8209
+ input: unknown;
8210
+ created_at: string;
8211
+ output?: unknown;
8212
+ error?: unknown;
8213
+ metadata?: Record<string, unknown> | undefined;
8214
+ summary?: {
8215
+ [x: string]: unknown;
8216
+ total_attempts: number;
8217
+ last_error?: {
8218
+ [x: string]: unknown;
8219
+ code: string;
8220
+ title: string;
8221
+ detail?: string | null | undefined;
8222
+ } | null | undefined;
8223
+ } | null | undefined;
8224
+ operations?: {
8225
+ id: string;
8226
+ execution_id: string;
8227
+ name: string;
8228
+ type: string;
8229
+ status: string;
8230
+ retry_count: number;
8231
+ created_at: string;
8232
+ result?: unknown;
8233
+ error?: unknown;
8234
+ max_attempts?: number | undefined;
8235
+ next_retry_at?: string | null | undefined;
8236
+ resume_at?: string | null | undefined;
8237
+ callback_token?: string | null | undefined;
8238
+ payload_schema?: unknown;
8239
+ payload?: unknown;
8240
+ expires_at?: string | null | undefined;
8241
+ timeout_seconds?: number | null | undefined;
8242
+ completed_at?: string | null | undefined;
8243
+ }[] | undefined;
8244
+ } | null;
8245
+ is_private: boolean;
8246
+ created_at: string;
8247
+ updated_at: string;
8377
8248
  };
8378
8249
  meta?: _zapier_kitcore.ResponseMeta;
8379
8250
  }>>;
8380
8251
  } & {
8381
- publishWorkflowVersion: _zapier_kitcore.MethodPlugin<"publishWorkflowVersion", ({
8382
- workflow: string;
8252
+ runDurable: _zapier_kitcore.MethodPlugin<"runDurable", ({
8383
8253
  sourceFiles: Record<string, string>;
8254
+ input?: unknown;
8384
8255
  dependencies?: Record<string, string> | undefined;
8385
8256
  zapierDurableVersion?: string | undefined;
8386
8257
  zapier_durable_version?: string | undefined;
8387
- enabled?: boolean | undefined;
8388
- ignoreOpenDrafts?: boolean | undefined;
8389
8258
  connections?: Record<string, {
8390
8259
  connectionId?: string | number | undefined;
8391
8260
  connection_id?: string | number | undefined;
8392
- }> | null | undefined;
8261
+ }> | undefined;
8393
8262
  appVersions?: Record<string, {
8394
8263
  implementationName?: string | undefined;
8395
8264
  implementation_name?: string | undefined;
8396
8265
  version?: string | undefined;
8397
- }> | null | undefined;
8266
+ }> | undefined;
8398
8267
  app_versions?: Record<string, {
8399
8268
  implementationName?: string | undefined;
8400
8269
  implementation_name?: string | undefined;
8401
8270
  version?: string | undefined;
8402
- }> | null | undefined;
8403
- trigger?: {
8404
- action: string;
8271
+ }> | undefined;
8272
+ private?: boolean | undefined;
8273
+ notifications?: {
8274
+ url: string;
8275
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
8276
+ type?: "webhook" | undefined;
8277
+ max_retries?: number | undefined;
8278
+ }[] | undefined;
8279
+ } | {
8280
+ source_files: Record<string, string>;
8281
+ input?: unknown;
8282
+ dependencies?: Record<string, string> | undefined;
8283
+ zapierDurableVersion?: string | undefined;
8284
+ zapier_durable_version?: string | undefined;
8285
+ connections?: Record<string, {
8286
+ connectionId?: string | number | undefined;
8287
+ connection_id?: string | number | undefined;
8288
+ }> | undefined;
8289
+ appVersions?: Record<string, {
8290
+ implementationName?: string | undefined;
8291
+ implementation_name?: string | undefined;
8292
+ version?: string | undefined;
8293
+ }> | undefined;
8294
+ app_versions?: Record<string, {
8295
+ implementationName?: string | undefined;
8296
+ implementation_name?: string | undefined;
8297
+ version?: string | undefined;
8298
+ }> | undefined;
8299
+ private?: boolean | undefined;
8300
+ notifications?: {
8301
+ url: string;
8302
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
8303
+ type?: "webhook" | undefined;
8304
+ max_retries?: number | undefined;
8305
+ }[] | undefined;
8306
+ }) & {
8307
+ skipOutputDataValidation?: boolean;
8308
+ }, Promise<{
8309
+ data: {
8310
+ id: string;
8311
+ status: "initialized";
8312
+ is_private: boolean;
8313
+ created_at: string;
8314
+ };
8315
+ meta?: _zapier_kitcore.ResponseMeta;
8316
+ }>, readonly [], {
8317
+ input?: unknown;
8318
+ connections?: Record<string, {
8319
+ connectionId?: string | number | undefined;
8320
+ connection_id?: string | number | undefined;
8321
+ }> | undefined;
8322
+ zapier_durable_version?: string | undefined;
8323
+ dependencies?: Record<string, string> | undefined;
8324
+ app_versions?: Record<string, {
8325
+ implementationName?: string | undefined;
8326
+ implementation_name?: string | undefined;
8327
+ version?: string | undefined;
8328
+ }> | undefined;
8329
+ private?: boolean | undefined;
8330
+ zapierDurableVersion?: string | undefined;
8331
+ appVersions?: Record<string, {
8332
+ implementationName?: string | undefined;
8333
+ implementation_name?: string | undefined;
8334
+ version?: string | undefined;
8335
+ }> | undefined;
8336
+ notifications?: {
8337
+ url: string;
8338
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
8339
+ type?: "webhook" | undefined;
8340
+ max_retries?: number | undefined;
8341
+ }[] | undefined;
8342
+ }> & _zapier_kitcore.LeafSummary<"", "runDurable", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
8343
+ sourceFiles: Record<string, string>;
8344
+ input?: unknown;
8345
+ dependencies?: Record<string, string> | undefined;
8346
+ zapierDurableVersion?: string | undefined;
8347
+ zapier_durable_version?: string | undefined;
8348
+ connections?: Record<string, {
8349
+ connectionId?: string | number | undefined;
8350
+ connection_id?: string | number | undefined;
8351
+ }> | undefined;
8352
+ appVersions?: Record<string, {
8353
+ implementationName?: string | undefined;
8354
+ implementation_name?: string | undefined;
8355
+ version?: string | undefined;
8356
+ }> | undefined;
8357
+ app_versions?: Record<string, {
8358
+ implementationName?: string | undefined;
8359
+ implementation_name?: string | undefined;
8360
+ version?: string | undefined;
8361
+ }> | undefined;
8362
+ private?: boolean | undefined;
8363
+ notifications?: {
8364
+ url: string;
8365
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
8366
+ type?: "webhook" | undefined;
8367
+ max_retries?: number | undefined;
8368
+ }[] | undefined;
8369
+ } | {
8370
+ source_files: Record<string, string>;
8371
+ input?: unknown;
8372
+ dependencies?: Record<string, string> | undefined;
8373
+ zapierDurableVersion?: string | undefined;
8374
+ zapier_durable_version?: string | undefined;
8375
+ connections?: Record<string, {
8376
+ connectionId?: string | number | undefined;
8377
+ connection_id?: string | number | undefined;
8378
+ }> | undefined;
8379
+ appVersions?: Record<string, {
8380
+ implementationName?: string | undefined;
8381
+ implementation_name?: string | undefined;
8382
+ version?: string | undefined;
8383
+ }> | undefined;
8384
+ app_versions?: Record<string, {
8385
+ implementationName?: string | undefined;
8386
+ implementation_name?: string | undefined;
8387
+ version?: string | undefined;
8388
+ }> | undefined;
8389
+ private?: boolean | undefined;
8390
+ notifications?: {
8391
+ url: string;
8392
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
8393
+ type?: "webhook" | undefined;
8394
+ max_retries?: number | undefined;
8395
+ }[] | undefined;
8396
+ }) & {
8397
+ skipOutputDataValidation?: boolean;
8398
+ }) => Promise<{
8399
+ data: {
8400
+ id: string;
8401
+ status: "initialized";
8402
+ is_private: boolean;
8403
+ created_at: string;
8404
+ };
8405
+ meta?: _zapier_kitcore.ResponseMeta;
8406
+ }>>;
8407
+ } & {
8408
+ cancelDurableRun: _zapier_kitcore.MethodPlugin<"cancelDurableRun", {
8409
+ run: string;
8410
+ } & {
8411
+ skipOutputDataValidation?: boolean;
8412
+ }, Promise<{
8413
+ data: {
8414
+ id: string;
8415
+ status: "cancelled";
8416
+ };
8417
+ meta?: _zapier_kitcore.ResponseMeta;
8418
+ }>, readonly [], {
8419
+ run: string;
8420
+ }> & _zapier_kitcore.LeafSummary<"", "cancelDurableRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8421
+ run: string;
8422
+ } & {
8423
+ skipOutputDataValidation?: boolean;
8424
+ }) => Promise<{
8425
+ data: {
8426
+ id: string;
8427
+ status: "cancelled";
8428
+ };
8429
+ meta?: _zapier_kitcore.ResponseMeta;
8430
+ }>>;
8431
+ } & {
8432
+ publishWorkflowVersion: _zapier_kitcore.MethodPlugin<"publishWorkflowVersion", ({
8433
+ workflow: string;
8434
+ sourceFiles: Record<string, string>;
8435
+ dependencies?: Record<string, string> | undefined;
8436
+ zapierDurableVersion?: string | undefined;
8437
+ zapier_durable_version?: string | undefined;
8438
+ enabled?: boolean | undefined;
8439
+ ignoreOpenDrafts?: boolean | undefined;
8440
+ connections?: Record<string, {
8441
+ connectionId?: string | number | undefined;
8442
+ connection_id?: string | number | undefined;
8443
+ }> | null | undefined;
8444
+ appVersions?: Record<string, {
8445
+ implementationName?: string | undefined;
8446
+ implementation_name?: string | undefined;
8447
+ version?: string | undefined;
8448
+ }> | null | undefined;
8449
+ app_versions?: Record<string, {
8450
+ implementationName?: string | undefined;
8451
+ implementation_name?: string | undefined;
8452
+ version?: string | undefined;
8453
+ }> | null | undefined;
8454
+ trigger?: {
8455
+ action: string;
8405
8456
  selectedApi?: string | undefined;
8406
8457
  selected_api?: string | undefined;
8407
8458
  authenticationId?: string | null | undefined;
@@ -8494,12 +8545,12 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
8494
8545
  version?: string | undefined;
8495
8546
  }> | null | undefined;
8496
8547
  zapierDurableVersion?: string | undefined;
8497
- ignoreOpenDrafts?: boolean | undefined;
8498
8548
  appVersions?: Record<string, {
8499
8549
  implementationName?: string | undefined;
8500
8550
  implementation_name?: string | undefined;
8501
8551
  version?: string | undefined;
8502
8552
  }> | null | undefined;
8553
+ ignoreOpenDrafts?: boolean | undefined;
8503
8554
  manual?: boolean | undefined;
8504
8555
  }> & _zapier_kitcore.LeafSummary<"", "publishWorkflowVersion", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
8505
8556
  workflow: string;
@@ -8596,10 +8647,8 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
8596
8647
  meta?: _zapier_kitcore.ResponseMeta;
8597
8648
  }>>;
8598
8649
  } & {
8599
- listWorkflowDrafts: _zapier_kitcore.MethodPlugin<"listWorkflowDrafts", {
8650
+ listWorkflowVersions: _zapier_kitcore.MethodPlugin<"listWorkflowVersions", {
8600
8651
  workflow: string;
8601
- status?: "open" | "discarded" | undefined;
8602
- slug?: string | undefined;
8603
8652
  pageSize?: number | undefined;
8604
8653
  cursor?: string | undefined;
8605
8654
  maxItems?: number | undefined;
@@ -8613,36 +8662,38 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
8613
8662
  }, _zapier_kitcore.PaginatedSdkResult<{
8614
8663
  id: string;
8615
8664
  workflow_id: string;
8616
- slug: string;
8617
- base_version_id: string | null;
8618
- status: "open" | "discarded";
8619
- last_edited_by_user_id: string | null;
8620
- last_edited_at: string | null;
8665
+ zapier_durable_version: string;
8666
+ dependencies: Record<string, string> | null;
8667
+ created_by_user_id: string;
8621
8668
  created_at: string;
8669
+ trigger: {
8670
+ selected_api: string;
8671
+ action: string;
8672
+ authentication_id?: string | null | undefined;
8673
+ params?: Record<string, unknown> | undefined;
8674
+ } | null;
8675
+ connections: Record<string, {
8676
+ connection_id: string | number;
8677
+ }> | null;
8678
+ app_versions: Record<string, {
8679
+ implementation_name: string;
8680
+ version?: string | undefined;
8681
+ }> | null;
8622
8682
  creation_client?: {
8623
8683
  access_method: string;
8624
8684
  harness?: string | null | undefined;
8625
8685
  sdk_version?: string | null | undefined;
8626
8686
  } | null | undefined;
8627
- last_edited_client?: {
8628
- access_method: string;
8629
- harness?: string | null | undefined;
8630
- sdk_version?: string | null | undefined;
8631
- } | null | undefined;
8632
8687
  }>, readonly [], Omit<{
8633
8688
  workflow: string;
8634
- status?: "open" | "discarded" | undefined;
8635
- slug?: string | undefined;
8636
8689
  pageSize?: number | undefined;
8637
8690
  cursor?: string | undefined;
8638
8691
  maxItems?: number | undefined;
8639
8692
  }, "skipOutputDataValidation" | "maxItems"> & {
8640
8693
  cursor?: string;
8641
8694
  pageSize?: number;
8642
- }> & _zapier_kitcore.LeafSummary<"", "listWorkflowDrafts", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8695
+ }> & _zapier_kitcore.LeafSummary<"", "listWorkflowVersions", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8643
8696
  workflow: string;
8644
- status?: "open" | "discarded" | undefined;
8645
- slug?: string | undefined;
8646
8697
  pageSize?: number | undefined;
8647
8698
  cursor?: string | undefined;
8648
8699
  maxItems?: number | undefined;
@@ -8656,39 +8707,196 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
8656
8707
  }) => _zapier_kitcore.PaginatedSdkResult<{
8657
8708
  id: string;
8658
8709
  workflow_id: string;
8659
- slug: string;
8660
- base_version_id: string | null;
8661
- status: "open" | "discarded";
8662
- last_edited_by_user_id: string | null;
8663
- last_edited_at: string | null;
8710
+ zapier_durable_version: string;
8711
+ dependencies: Record<string, string> | null;
8712
+ created_by_user_id: string;
8664
8713
  created_at: string;
8714
+ trigger: {
8715
+ selected_api: string;
8716
+ action: string;
8717
+ authentication_id?: string | null | undefined;
8718
+ params?: Record<string, unknown> | undefined;
8719
+ } | null;
8720
+ connections: Record<string, {
8721
+ connection_id: string | number;
8722
+ }> | null;
8723
+ app_versions: Record<string, {
8724
+ implementation_name: string;
8725
+ version?: string | undefined;
8726
+ }> | null;
8665
8727
  creation_client?: {
8666
8728
  access_method: string;
8667
8729
  harness?: string | null | undefined;
8668
8730
  sdk_version?: string | null | undefined;
8669
8731
  } | null | undefined;
8670
- last_edited_client?: {
8671
- access_method: string;
8672
- harness?: string | null | undefined;
8673
- sdk_version?: string | null | undefined;
8674
- } | null | undefined;
8675
8732
  }>>;
8676
8733
  } & {
8677
- getWorkflowDraft: _zapier_kitcore.MethodPlugin<"getWorkflowDraft", {
8734
+ getWorkflowVersion: _zapier_kitcore.MethodPlugin<"getWorkflowVersion", {
8678
8735
  workflow: string;
8679
- draft: string;
8736
+ version: string;
8680
8737
  } & {
8681
8738
  skipOutputDataValidation?: boolean;
8682
8739
  }, Promise<{
8683
8740
  data: {
8684
8741
  id: string;
8685
8742
  workflow_id: string;
8686
- slug: string;
8687
- base_version_id: string | null;
8688
8743
  source_files: Record<string, string>;
8689
8744
  zapier_durable_version: string;
8690
8745
  dependencies: Record<string, string> | null;
8691
- draft_revision: number;
8746
+ created_by_user_id: string;
8747
+ created_at: string;
8748
+ trigger: {
8749
+ selected_api: string;
8750
+ action: string;
8751
+ authentication_id?: string | null | undefined;
8752
+ params?: Record<string, unknown> | undefined;
8753
+ } | null;
8754
+ connections: Record<string, {
8755
+ connection_id: string | number;
8756
+ }> | null;
8757
+ app_versions: Record<string, {
8758
+ implementation_name: string;
8759
+ version?: string | undefined;
8760
+ }> | null;
8761
+ creation_client?: {
8762
+ access_method: string;
8763
+ harness?: string | null | undefined;
8764
+ sdk_version?: string | null | undefined;
8765
+ } | null | undefined;
8766
+ };
8767
+ meta?: _zapier_kitcore.ResponseMeta;
8768
+ }>, readonly [], {
8769
+ version: string;
8770
+ workflow: string;
8771
+ }> & _zapier_kitcore.LeafSummary<"", "getWorkflowVersion", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8772
+ workflow: string;
8773
+ version: string;
8774
+ } & {
8775
+ skipOutputDataValidation?: boolean;
8776
+ }) => Promise<{
8777
+ data: {
8778
+ id: string;
8779
+ workflow_id: string;
8780
+ source_files: Record<string, string>;
8781
+ zapier_durable_version: string;
8782
+ dependencies: Record<string, string> | null;
8783
+ created_by_user_id: string;
8784
+ created_at: string;
8785
+ trigger: {
8786
+ selected_api: string;
8787
+ action: string;
8788
+ authentication_id?: string | null | undefined;
8789
+ params?: Record<string, unknown> | undefined;
8790
+ } | null;
8791
+ connections: Record<string, {
8792
+ connection_id: string | number;
8793
+ }> | null;
8794
+ app_versions: Record<string, {
8795
+ implementation_name: string;
8796
+ version?: string | undefined;
8797
+ }> | null;
8798
+ creation_client?: {
8799
+ access_method: string;
8800
+ harness?: string | null | undefined;
8801
+ sdk_version?: string | null | undefined;
8802
+ } | null | undefined;
8803
+ };
8804
+ meta?: _zapier_kitcore.ResponseMeta;
8805
+ }>>;
8806
+ } & {
8807
+ listWorkflowDrafts: _zapier_kitcore.MethodPlugin<"listWorkflowDrafts", {
8808
+ workflow: string;
8809
+ status?: "open" | "discarded" | undefined;
8810
+ slug?: string | undefined;
8811
+ pageSize?: number | undefined;
8812
+ cursor?: string | undefined;
8813
+ maxItems?: number | undefined;
8814
+ } & {
8815
+ cursor?: string;
8816
+ pageSize?: number;
8817
+ } & {
8818
+ maxItems?: number;
8819
+ } & {
8820
+ skipOutputDataValidation?: boolean;
8821
+ }, _zapier_kitcore.PaginatedSdkResult<{
8822
+ id: string;
8823
+ workflow_id: string;
8824
+ slug: string;
8825
+ base_version_id: string | null;
8826
+ status: "open" | "discarded";
8827
+ last_edited_by_user_id: string | null;
8828
+ last_edited_at: string | null;
8829
+ created_at: string;
8830
+ creation_client?: {
8831
+ access_method: string;
8832
+ harness?: string | null | undefined;
8833
+ sdk_version?: string | null | undefined;
8834
+ } | null | undefined;
8835
+ last_edited_client?: {
8836
+ access_method: string;
8837
+ harness?: string | null | undefined;
8838
+ sdk_version?: string | null | undefined;
8839
+ } | null | undefined;
8840
+ }>, readonly [], Omit<{
8841
+ workflow: string;
8842
+ status?: "open" | "discarded" | undefined;
8843
+ slug?: string | undefined;
8844
+ pageSize?: number | undefined;
8845
+ cursor?: string | undefined;
8846
+ maxItems?: number | undefined;
8847
+ }, "skipOutputDataValidation" | "maxItems"> & {
8848
+ cursor?: string;
8849
+ pageSize?: number;
8850
+ }> & _zapier_kitcore.LeafSummary<"", "listWorkflowDrafts", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
8851
+ workflow: string;
8852
+ status?: "open" | "discarded" | undefined;
8853
+ slug?: string | undefined;
8854
+ pageSize?: number | undefined;
8855
+ cursor?: string | undefined;
8856
+ maxItems?: number | undefined;
8857
+ } & {
8858
+ cursor?: string;
8859
+ pageSize?: number;
8860
+ } & {
8861
+ maxItems?: number;
8862
+ } & {
8863
+ skipOutputDataValidation?: boolean;
8864
+ }) => _zapier_kitcore.PaginatedSdkResult<{
8865
+ id: string;
8866
+ workflow_id: string;
8867
+ slug: string;
8868
+ base_version_id: string | null;
8869
+ status: "open" | "discarded";
8870
+ last_edited_by_user_id: string | null;
8871
+ last_edited_at: string | null;
8872
+ created_at: string;
8873
+ creation_client?: {
8874
+ access_method: string;
8875
+ harness?: string | null | undefined;
8876
+ sdk_version?: string | null | undefined;
8877
+ } | null | undefined;
8878
+ last_edited_client?: {
8879
+ access_method: string;
8880
+ harness?: string | null | undefined;
8881
+ sdk_version?: string | null | undefined;
8882
+ } | null | undefined;
8883
+ }>>;
8884
+ } & {
8885
+ getWorkflowDraft: _zapier_kitcore.MethodPlugin<"getWorkflowDraft", {
8886
+ workflow: string;
8887
+ draft: string;
8888
+ } & {
8889
+ skipOutputDataValidation?: boolean;
8890
+ }, Promise<{
8891
+ data: {
8892
+ id: string;
8893
+ workflow_id: string;
8894
+ slug: string;
8895
+ base_version_id: string | null;
8896
+ source_files: Record<string, string>;
8897
+ zapier_durable_version: string;
8898
+ dependencies: Record<string, string> | null;
8899
+ draft_revision: number;
8692
8900
  status: "open" | "discarded";
8693
8901
  created_by_user_id: string;
8694
8902
  last_edited_by_user_id: string | null;
@@ -9325,6 +9533,7 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9325
9533
  draft: string;
9326
9534
  draftRevision: number;
9327
9535
  input?: unknown;
9536
+ waitSeconds?: number | undefined;
9328
9537
  } & {
9329
9538
  skipOutputDataValidation?: boolean;
9330
9539
  }, Promise<{
@@ -9348,11 +9557,87 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9348
9557
  workflow: string;
9349
9558
  draft: string;
9350
9559
  draftRevision: number;
9351
- }> & _zapier_kitcore.LeafSummary<"", "runWorkflowDraft", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9560
+ waitSeconds?: number | undefined;
9561
+ }> & _zapier_kitcore.LeafSummary<"", "runWorkflowDraft", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">, _zapier_kitcore.MethodPlugin<"getWorkflowRun", {
9562
+ run: string;
9563
+ workflow?: string | undefined;
9564
+ waitSeconds?: number | undefined;
9565
+ } & {
9566
+ skipOutputDataValidation?: boolean;
9567
+ }, Promise<{
9568
+ data: {
9569
+ id: string;
9570
+ workflow_id: string;
9571
+ durable_run_id: string | null;
9572
+ status: string;
9573
+ input: unknown;
9574
+ output: unknown;
9575
+ error: unknown;
9576
+ created_at: string;
9577
+ updated_at: string;
9578
+ kind: "live";
9579
+ trigger_id: string | null;
9580
+ workflow_version_id: string | null;
9581
+ } | {
9582
+ id: string;
9583
+ workflow_id: string;
9584
+ durable_run_id: string | null;
9585
+ status: string;
9586
+ input: unknown;
9587
+ output: unknown;
9588
+ error: unknown;
9589
+ created_at: string;
9590
+ updated_at: string;
9591
+ kind: "draft";
9592
+ workflow_draft_id: string | null;
9593
+ draft_revision: number;
9594
+ };
9595
+ meta?: _zapier_kitcore.ResponseMeta;
9596
+ }>, readonly [], {
9597
+ run: string;
9598
+ workflow?: string | undefined;
9599
+ waitSeconds?: number | undefined;
9600
+ }> & _zapier_kitcore.LeafSummary<"", "getWorkflowRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9601
+ run: string;
9602
+ workflow?: string | undefined;
9603
+ waitSeconds?: number | undefined;
9604
+ } & {
9605
+ skipOutputDataValidation?: boolean;
9606
+ }) => Promise<{
9607
+ data: {
9608
+ id: string;
9609
+ workflow_id: string;
9610
+ durable_run_id: string | null;
9611
+ status: string;
9612
+ input: unknown;
9613
+ output: unknown;
9614
+ error: unknown;
9615
+ created_at: string;
9616
+ updated_at: string;
9617
+ kind: "live";
9618
+ trigger_id: string | null;
9619
+ workflow_version_id: string | null;
9620
+ } | {
9621
+ id: string;
9622
+ workflow_id: string;
9623
+ durable_run_id: string | null;
9624
+ status: string;
9625
+ input: unknown;
9626
+ output: unknown;
9627
+ error: unknown;
9628
+ created_at: string;
9629
+ updated_at: string;
9630
+ kind: "draft";
9631
+ workflow_draft_id: string | null;
9632
+ draft_revision: number;
9633
+ };
9634
+ meta?: _zapier_kitcore.ResponseMeta;
9635
+ }>>], (input: {
9352
9636
  workflow: string;
9353
9637
  draft: string;
9354
9638
  draftRevision: number;
9355
9639
  input?: unknown;
9640
+ waitSeconds?: number | undefined;
9356
9641
  } & {
9357
9642
  skipOutputDataValidation?: boolean;
9358
9643
  }) => Promise<{
@@ -9457,6 +9742,7 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9457
9742
  getWorkflowRun: _zapier_kitcore.MethodPlugin<"getWorkflowRun", {
9458
9743
  run: string;
9459
9744
  workflow?: string | undefined;
9745
+ waitSeconds?: number | undefined;
9460
9746
  } & {
9461
9747
  skipOutputDataValidation?: boolean;
9462
9748
  }, Promise<{
@@ -9491,406 +9777,139 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9491
9777
  }>, readonly [], {
9492
9778
  run: string;
9493
9779
  workflow?: string | undefined;
9780
+ waitSeconds?: number | undefined;
9494
9781
  }> & _zapier_kitcore.LeafSummary<"", "getWorkflowRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9495
9782
  run: string;
9496
9783
  workflow?: string | undefined;
9784
+ waitSeconds?: number | undefined;
9497
9785
  } & {
9498
9786
  skipOutputDataValidation?: boolean;
9499
- }) => Promise<{
9500
- data: {
9501
- id: string;
9502
- workflow_id: string;
9503
- durable_run_id: string | null;
9504
- status: string;
9505
- input: unknown;
9506
- output: unknown;
9507
- error: unknown;
9508
- created_at: string;
9509
- updated_at: string;
9510
- kind: "live";
9511
- trigger_id: string | null;
9512
- workflow_version_id: string | null;
9513
- } | {
9514
- id: string;
9515
- workflow_id: string;
9516
- durable_run_id: string | null;
9517
- status: string;
9518
- input: unknown;
9519
- output: unknown;
9520
- error: unknown;
9521
- created_at: string;
9522
- updated_at: string;
9523
- kind: "draft";
9524
- workflow_draft_id: string | null;
9525
- draft_revision: number;
9526
- };
9527
- meta?: _zapier_kitcore.ResponseMeta;
9528
- }>>;
9529
- } & {
9530
- listDurableRuns: _zapier_kitcore.MethodPlugin<"listDurableRuns", {
9531
- pageSize?: number | undefined;
9532
- cursor?: string | undefined;
9533
- maxItems?: number | undefined;
9534
- } & {
9535
- cursor?: string;
9536
- pageSize?: number;
9537
- } & {
9538
- maxItems?: number;
9539
- } & {
9540
- skipOutputDataValidation?: boolean;
9541
- }, _zapier_kitcore.PaginatedSdkResult<{
9542
- id: string;
9543
- status: string;
9544
- input: unknown;
9545
- output: unknown;
9546
- error: {
9547
- [x: string]: unknown;
9548
- code: string;
9549
- message: string;
9550
- } | null;
9551
- execution_id: string | null;
9552
- is_private: boolean;
9553
- created_at: string;
9554
- updated_at: string;
9555
- }>, readonly [], Omit<{
9556
- pageSize?: number | undefined;
9557
- cursor?: string | undefined;
9558
- maxItems?: number | undefined;
9559
- }, "skipOutputDataValidation" | "maxItems"> & {
9560
- cursor?: string;
9561
- pageSize?: number;
9562
- }> & _zapier_kitcore.LeafSummary<"", "listDurableRuns", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input?: ({
9563
- pageSize?: number | undefined;
9564
- cursor?: string | undefined;
9565
- maxItems?: number | undefined;
9566
- } & {
9567
- cursor?: string;
9568
- pageSize?: number;
9569
- } & {
9570
- maxItems?: number;
9571
- } & {
9572
- skipOutputDataValidation?: boolean;
9573
- }) | undefined) => _zapier_kitcore.PaginatedSdkResult<{
9574
- id: string;
9575
- status: string;
9576
- input: unknown;
9577
- output: unknown;
9578
- error: {
9579
- [x: string]: unknown;
9580
- code: string;
9581
- message: string;
9582
- } | null;
9583
- execution_id: string | null;
9584
- is_private: boolean;
9585
- created_at: string;
9586
- updated_at: string;
9587
- }>>;
9588
- } & {
9589
- getDurableRun: _zapier_kitcore.MethodPlugin<"getDurableRun", {
9590
- run: string;
9591
- } & {
9592
- skipOutputDataValidation?: boolean;
9593
- }, Promise<{
9594
- data: {
9595
- id: string;
9596
- status: string;
9597
- input: unknown;
9598
- output: unknown;
9599
- error: {
9600
- [x: string]: unknown;
9601
- code: string;
9602
- message: string;
9603
- } | null;
9604
- execution: {
9605
- id: string;
9606
- name: string;
9607
- status: string;
9608
- input: unknown;
9609
- created_at: string;
9610
- output?: unknown;
9611
- error?: unknown;
9612
- metadata?: Record<string, unknown> | undefined;
9613
- summary?: {
9614
- [x: string]: unknown;
9615
- total_attempts: number;
9616
- last_error?: {
9617
- [x: string]: unknown;
9618
- code: string;
9619
- title: string;
9620
- detail?: string | null | undefined;
9621
- } | null | undefined;
9622
- } | null | undefined;
9623
- operations?: {
9624
- id: string;
9625
- execution_id: string;
9626
- name: string;
9627
- type: string;
9628
- status: string;
9629
- retry_count: number;
9630
- created_at: string;
9631
- result?: unknown;
9632
- error?: unknown;
9633
- max_attempts?: number | undefined;
9634
- next_retry_at?: string | null | undefined;
9635
- resume_at?: string | null | undefined;
9636
- callback_token?: string | null | undefined;
9637
- payload_schema?: unknown;
9638
- payload?: unknown;
9639
- expires_at?: string | null | undefined;
9640
- timeout_seconds?: number | null | undefined;
9641
- completed_at?: string | null | undefined;
9642
- }[] | undefined;
9643
- } | null;
9644
- is_private: boolean;
9645
- created_at: string;
9646
- updated_at: string;
9647
- };
9648
- meta?: _zapier_kitcore.ResponseMeta;
9649
- }>, readonly [], {
9650
- run: string;
9651
- }> & _zapier_kitcore.LeafSummary<"", "getDurableRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9652
- run: string;
9653
- } & {
9654
- skipOutputDataValidation?: boolean;
9655
- }) => Promise<{
9656
- data: {
9657
- id: string;
9658
- status: string;
9659
- input: unknown;
9660
- output: unknown;
9661
- error: {
9662
- [x: string]: unknown;
9663
- code: string;
9664
- message: string;
9665
- } | null;
9666
- execution: {
9667
- id: string;
9668
- name: string;
9669
- status: string;
9670
- input: unknown;
9671
- created_at: string;
9672
- output?: unknown;
9673
- error?: unknown;
9674
- metadata?: Record<string, unknown> | undefined;
9675
- summary?: {
9676
- [x: string]: unknown;
9677
- total_attempts: number;
9678
- last_error?: {
9679
- [x: string]: unknown;
9680
- code: string;
9681
- title: string;
9682
- detail?: string | null | undefined;
9683
- } | null | undefined;
9684
- } | null | undefined;
9685
- operations?: {
9686
- id: string;
9687
- execution_id: string;
9688
- name: string;
9689
- type: string;
9690
- status: string;
9691
- retry_count: number;
9692
- created_at: string;
9693
- result?: unknown;
9694
- error?: unknown;
9695
- max_attempts?: number | undefined;
9696
- next_retry_at?: string | null | undefined;
9697
- resume_at?: string | null | undefined;
9698
- callback_token?: string | null | undefined;
9699
- payload_schema?: unknown;
9700
- payload?: unknown;
9701
- expires_at?: string | null | undefined;
9702
- timeout_seconds?: number | null | undefined;
9703
- completed_at?: string | null | undefined;
9704
- }[] | undefined;
9705
- } | null;
9706
- is_private: boolean;
9707
- created_at: string;
9708
- updated_at: string;
9709
- };
9710
- meta?: _zapier_kitcore.ResponseMeta;
9711
- }>>;
9712
- } & {
9713
- runDurable: _zapier_kitcore.MethodPlugin<"runDurable", ({
9714
- sourceFiles: Record<string, string>;
9715
- input?: unknown;
9716
- dependencies?: Record<string, string> | undefined;
9717
- zapierDurableVersion?: string | undefined;
9718
- zapier_durable_version?: string | undefined;
9719
- connections?: Record<string, {
9720
- connectionId?: string | number | undefined;
9721
- connection_id?: string | number | undefined;
9722
- }> | undefined;
9723
- appVersions?: Record<string, {
9724
- implementationName?: string | undefined;
9725
- implementation_name?: string | undefined;
9726
- version?: string | undefined;
9727
- }> | undefined;
9728
- app_versions?: Record<string, {
9729
- implementationName?: string | undefined;
9730
- implementation_name?: string | undefined;
9731
- version?: string | undefined;
9732
- }> | undefined;
9733
- private?: boolean | undefined;
9734
- notifications?: {
9735
- url: string;
9736
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
9737
- type?: "webhook" | undefined;
9738
- max_retries?: number | undefined;
9739
- }[] | undefined;
9740
- } | {
9741
- source_files: Record<string, string>;
9742
- input?: unknown;
9743
- dependencies?: Record<string, string> | undefined;
9744
- zapierDurableVersion?: string | undefined;
9745
- zapier_durable_version?: string | undefined;
9746
- connections?: Record<string, {
9747
- connectionId?: string | number | undefined;
9748
- connection_id?: string | number | undefined;
9749
- }> | undefined;
9750
- appVersions?: Record<string, {
9751
- implementationName?: string | undefined;
9752
- implementation_name?: string | undefined;
9753
- version?: string | undefined;
9754
- }> | undefined;
9755
- app_versions?: Record<string, {
9756
- implementationName?: string | undefined;
9757
- implementation_name?: string | undefined;
9758
- version?: string | undefined;
9759
- }> | undefined;
9760
- private?: boolean | undefined;
9761
- notifications?: {
9762
- url: string;
9763
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
9764
- type?: "webhook" | undefined;
9765
- max_retries?: number | undefined;
9766
- }[] | undefined;
9767
- }) & {
9787
+ }) => Promise<{
9788
+ data: {
9789
+ id: string;
9790
+ workflow_id: string;
9791
+ durable_run_id: string | null;
9792
+ status: string;
9793
+ input: unknown;
9794
+ output: unknown;
9795
+ error: unknown;
9796
+ created_at: string;
9797
+ updated_at: string;
9798
+ kind: "live";
9799
+ trigger_id: string | null;
9800
+ workflow_version_id: string | null;
9801
+ } | {
9802
+ id: string;
9803
+ workflow_id: string;
9804
+ durable_run_id: string | null;
9805
+ status: string;
9806
+ input: unknown;
9807
+ output: unknown;
9808
+ error: unknown;
9809
+ created_at: string;
9810
+ updated_at: string;
9811
+ kind: "draft";
9812
+ workflow_draft_id: string | null;
9813
+ draft_revision: number;
9814
+ };
9815
+ meta?: _zapier_kitcore.ResponseMeta;
9816
+ }>>;
9817
+ } & {
9818
+ getTriggerRun: _zapier_kitcore.MethodPlugin<"getTriggerRun", {
9819
+ trigger: string;
9820
+ waitSeconds?: number | undefined;
9821
+ } & {
9768
9822
  skipOutputDataValidation?: boolean;
9769
9823
  }, Promise<{
9770
9824
  data: {
9771
9825
  id: string;
9772
- status: "initialized";
9773
- is_private: boolean;
9826
+ durable_run_id: string | null;
9827
+ workflow_version_id: string | null;
9828
+ status: string;
9829
+ input: unknown;
9830
+ output: unknown;
9831
+ error: unknown;
9774
9832
  created_at: string;
9833
+ updated_at: string;
9775
9834
  };
9776
9835
  meta?: _zapier_kitcore.ResponseMeta;
9777
9836
  }>, readonly [], {
9778
- input?: unknown;
9779
- connections?: Record<string, {
9780
- connectionId?: string | number | undefined;
9781
- connection_id?: string | number | undefined;
9782
- }> | undefined;
9783
- zapier_durable_version?: string | undefined;
9784
- dependencies?: Record<string, string> | undefined;
9785
- app_versions?: Record<string, {
9786
- implementationName?: string | undefined;
9787
- implementation_name?: string | undefined;
9788
- version?: string | undefined;
9789
- }> | undefined;
9790
- private?: boolean | undefined;
9791
- zapierDurableVersion?: string | undefined;
9792
- appVersions?: Record<string, {
9793
- implementationName?: string | undefined;
9794
- implementation_name?: string | undefined;
9795
- version?: string | undefined;
9796
- }> | undefined;
9797
- notifications?: {
9798
- url: string;
9799
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
9800
- type?: "webhook" | undefined;
9801
- max_retries?: number | undefined;
9802
- }[] | undefined;
9803
- }> & _zapier_kitcore.LeafSummary<"", "runDurable", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
9804
- sourceFiles: Record<string, string>;
9805
- input?: unknown;
9806
- dependencies?: Record<string, string> | undefined;
9807
- zapierDurableVersion?: string | undefined;
9808
- zapier_durable_version?: string | undefined;
9809
- connections?: Record<string, {
9810
- connectionId?: string | number | undefined;
9811
- connection_id?: string | number | undefined;
9812
- }> | undefined;
9813
- appVersions?: Record<string, {
9814
- implementationName?: string | undefined;
9815
- implementation_name?: string | undefined;
9816
- version?: string | undefined;
9817
- }> | undefined;
9818
- app_versions?: Record<string, {
9819
- implementationName?: string | undefined;
9820
- implementation_name?: string | undefined;
9821
- version?: string | undefined;
9822
- }> | undefined;
9823
- private?: boolean | undefined;
9824
- notifications?: {
9825
- url: string;
9826
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
9827
- type?: "webhook" | undefined;
9828
- max_retries?: number | undefined;
9829
- }[] | undefined;
9830
- } | {
9831
- source_files: Record<string, string>;
9832
- input?: unknown;
9833
- dependencies?: Record<string, string> | undefined;
9834
- zapierDurableVersion?: string | undefined;
9835
- zapier_durable_version?: string | undefined;
9836
- connections?: Record<string, {
9837
- connectionId?: string | number | undefined;
9838
- connection_id?: string | number | undefined;
9839
- }> | undefined;
9840
- appVersions?: Record<string, {
9841
- implementationName?: string | undefined;
9842
- implementation_name?: string | undefined;
9843
- version?: string | undefined;
9844
- }> | undefined;
9845
- app_versions?: Record<string, {
9846
- implementationName?: string | undefined;
9847
- implementation_name?: string | undefined;
9848
- version?: string | undefined;
9849
- }> | undefined;
9850
- private?: boolean | undefined;
9851
- notifications?: {
9852
- url: string;
9853
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
9854
- type?: "webhook" | undefined;
9855
- max_retries?: number | undefined;
9856
- }[] | undefined;
9857
- }) & {
9837
+ trigger: string;
9838
+ waitSeconds?: number | undefined;
9839
+ }> & _zapier_kitcore.LeafSummary<"", "getTriggerRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9840
+ trigger: string;
9841
+ waitSeconds?: number | undefined;
9842
+ } & {
9858
9843
  skipOutputDataValidation?: boolean;
9859
9844
  }) => Promise<{
9860
9845
  data: {
9861
9846
  id: string;
9862
- status: "initialized";
9863
- is_private: boolean;
9847
+ durable_run_id: string | null;
9848
+ workflow_version_id: string | null;
9849
+ status: string;
9850
+ input: unknown;
9851
+ output: unknown;
9852
+ error: unknown;
9864
9853
  created_at: string;
9854
+ updated_at: string;
9865
9855
  };
9866
9856
  meta?: _zapier_kitcore.ResponseMeta;
9867
9857
  }>>;
9868
9858
  } & {
9869
- cancelDurableRun: _zapier_kitcore.MethodPlugin<"cancelDurableRun", {
9870
- run: string;
9859
+ triggerWorkflow: _zapier_kitcore.MethodPlugin<"triggerWorkflow", {
9860
+ workflow: string;
9861
+ input?: unknown;
9871
9862
  } & {
9872
9863
  skipOutputDataValidation?: boolean;
9873
9864
  }, Promise<{
9874
9865
  data: {
9875
9866
  id: string;
9876
- status: "cancelled";
9867
+ workflow_id: string;
9868
+ created_at: string;
9877
9869
  };
9878
9870
  meta?: _zapier_kitcore.ResponseMeta;
9879
9871
  }>, readonly [], {
9880
- run: string;
9881
- }> & _zapier_kitcore.LeafSummary<"", "cancelDurableRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9882
- run: string;
9872
+ input?: unknown;
9873
+ workflow: string;
9874
+ }> & _zapier_kitcore.LeafSummary<"", "triggerWorkflow", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9875
+ workflow: string;
9876
+ input?: unknown;
9883
9877
  } & {
9884
9878
  skipOutputDataValidation?: boolean;
9885
9879
  }) => Promise<{
9886
9880
  data: {
9887
9881
  id: string;
9888
- status: "cancelled";
9882
+ workflow_id: string;
9883
+ created_at: string;
9889
9884
  };
9890
9885
  meta?: _zapier_kitcore.ResponseMeta;
9891
9886
  }>>;
9892
9887
  } & {
9893
- triggerWorkflow: _zapier_kitcore.MethodPlugin<"triggerWorkflow", {
9888
+ runWorkflow: _zapier_kitcore.MethodPlugin<"runWorkflow", {
9889
+ workflow: string;
9890
+ input?: unknown;
9891
+ waitSeconds?: number | undefined;
9892
+ } & {
9893
+ skipOutputDataValidation?: boolean;
9894
+ }, Promise<{
9895
+ data: {
9896
+ trigger_id: string;
9897
+ id: string;
9898
+ durable_run_id: string | null;
9899
+ workflow_version_id: string | null;
9900
+ status: string;
9901
+ input: unknown;
9902
+ output: unknown;
9903
+ error: unknown;
9904
+ created_at: string;
9905
+ updated_at: string;
9906
+ };
9907
+ meta?: _zapier_kitcore.ResponseMeta;
9908
+ }>, readonly [], {
9909
+ input?: unknown;
9910
+ workflow: string;
9911
+ waitSeconds?: number | undefined;
9912
+ }> & _zapier_kitcore.LeafSummary<"", "runWorkflow", readonly [_zapier_kitcore.MethodPlugin<"triggerWorkflow", {
9894
9913
  workflow: string;
9895
9914
  input?: unknown;
9896
9915
  } & {
@@ -9917,10 +9936,9 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9917
9936
  created_at: string;
9918
9937
  };
9919
9938
  meta?: _zapier_kitcore.ResponseMeta;
9920
- }>>;
9921
- } & {
9922
- getTriggerRun: _zapier_kitcore.MethodPlugin<"getTriggerRun", {
9939
+ }>>, _zapier_kitcore.MethodPlugin<"getTriggerRun", {
9923
9940
  trigger: string;
9941
+ waitSeconds?: number | undefined;
9924
9942
  } & {
9925
9943
  skipOutputDataValidation?: boolean;
9926
9944
  }, Promise<{
@@ -9938,12 +9956,34 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
9938
9956
  meta?: _zapier_kitcore.ResponseMeta;
9939
9957
  }>, readonly [], {
9940
9958
  trigger: string;
9959
+ waitSeconds?: number | undefined;
9941
9960
  }> & _zapier_kitcore.LeafSummary<"", "getTriggerRun", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
9942
9961
  trigger: string;
9962
+ waitSeconds?: number | undefined;
9963
+ } & {
9964
+ skipOutputDataValidation?: boolean;
9965
+ }) => Promise<{
9966
+ data: {
9967
+ id: string;
9968
+ durable_run_id: string | null;
9969
+ workflow_version_id: string | null;
9970
+ status: string;
9971
+ input: unknown;
9972
+ output: unknown;
9973
+ error: unknown;
9974
+ created_at: string;
9975
+ updated_at: string;
9976
+ };
9977
+ meta?: _zapier_kitcore.ResponseMeta;
9978
+ }>>], (input: {
9979
+ workflow: string;
9980
+ input?: unknown;
9981
+ waitSeconds?: number | undefined;
9943
9982
  } & {
9944
9983
  skipOutputDataValidation?: boolean;
9945
9984
  }) => Promise<{
9946
9985
  data: {
9986
+ trigger_id: string;
9947
9987
  id: string;
9948
9988
  durable_run_id: string | null;
9949
9989
  workflow_version_id: string | null;
@@ -10106,9 +10146,6 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10106
10146
  } | undefined;
10107
10147
  }[] | undefined;
10108
10148
  draft?: boolean | undefined;
10109
- confirmationTitle?: string | undefined;
10110
- confirmationMessage?: string | undefined;
10111
- consumerAuth?: "zapier" | "none" | undefined;
10112
10149
  document?: {
10113
10150
  [x: string]: unknown;
10114
10151
  id: string;
@@ -10120,6 +10157,9 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10120
10157
  };
10121
10158
  children?: unknown[] | undefined;
10122
10159
  } | undefined;
10160
+ confirmationTitle?: string | undefined;
10161
+ confirmationMessage?: string | undefined;
10162
+ consumerAuth?: "zapier" | "none" | undefined;
10123
10163
  }> & _zapier_kitcore.LeafSummary<"", "createForm", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
10124
10164
  title: string;
10125
10165
  description?: string | undefined;
@@ -10377,13 +10417,13 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10377
10417
  } & {
10378
10418
  skipOutputDataValidation?: boolean;
10379
10419
  }, _zapier_kitcore.PaginatedSdkResult<{
10380
- type: "file" | "directory" | "shortcut" | "stream";
10420
+ type: "file" | "stream" | "directory" | "shortcut";
10381
10421
  name: string;
10382
10422
  path: string;
10383
10423
  size?: number | undefined;
10384
10424
  version?: number | undefined;
10385
10425
  updated_at?: string | undefined;
10386
- target_type?: "file" | "directory" | "stream" | null | undefined;
10426
+ target_type?: "file" | "stream" | "directory" | null | undefined;
10387
10427
  target_path?: string | null | undefined;
10388
10428
  accessible?: boolean | undefined;
10389
10429
  content_type?: string | undefined;
@@ -10408,13 +10448,13 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10408
10448
  } & {
10409
10449
  skipOutputDataValidation?: boolean;
10410
10450
  }) => _zapier_kitcore.PaginatedSdkResult<{
10411
- type: "file" | "directory" | "shortcut" | "stream";
10451
+ type: "file" | "stream" | "directory" | "shortcut";
10412
10452
  name: string;
10413
10453
  path: string;
10414
10454
  size?: number | undefined;
10415
10455
  version?: number | undefined;
10416
10456
  updated_at?: string | undefined;
10417
- target_type?: "file" | "directory" | "stream" | null | undefined;
10457
+ target_type?: "file" | "stream" | "directory" | null | undefined;
10418
10458
  target_path?: string | null | undefined;
10419
10459
  accessible?: boolean | undefined;
10420
10460
  content_type?: string | undefined;
@@ -10540,9 +10580,9 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10540
10580
  };
10541
10581
  meta?: _zapier_kitcore.ResponseMeta;
10542
10582
  }>, readonly [], {
10543
- expectedVersion?: number | undefined;
10544
10583
  from: string;
10545
10584
  to: string;
10585
+ expectedVersion?: number | undefined;
10546
10586
  overwrite?: boolean | undefined;
10547
10587
  }> & _zapier_kitcore.LeafSummary<"", "copyVfsFile", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
10548
10588
  from: string;
@@ -10591,13 +10631,13 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10591
10631
  skipOutputDataValidation?: boolean;
10592
10632
  }, Promise<{
10593
10633
  data: {
10594
- type: "file" | "directory" | "shortcut" | "stream";
10634
+ type: "file" | "stream" | "directory" | "shortcut";
10595
10635
  name: string;
10596
10636
  path: string;
10597
10637
  size?: number | undefined;
10598
10638
  version?: number | undefined;
10599
10639
  updated_at?: string | undefined;
10600
- target_type?: "file" | "directory" | "stream" | null | undefined;
10640
+ target_type?: "file" | "stream" | "directory" | null | undefined;
10601
10641
  target_path?: string | null | undefined;
10602
10642
  accessible?: boolean | undefined;
10603
10643
  content_type?: string | undefined;
@@ -10611,13 +10651,13 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10611
10651
  skipOutputDataValidation?: boolean;
10612
10652
  }) => Promise<{
10613
10653
  data: {
10614
- type: "file" | "directory" | "shortcut" | "stream";
10654
+ type: "file" | "stream" | "directory" | "shortcut";
10615
10655
  name: string;
10616
10656
  path: string;
10617
10657
  size?: number | undefined;
10618
10658
  version?: number | undefined;
10619
10659
  updated_at?: string | undefined;
10620
- target_type?: "file" | "directory" | "stream" | null | undefined;
10660
+ target_type?: "file" | "stream" | "directory" | null | undefined;
10621
10661
  target_path?: string | null | undefined;
10622
10662
  accessible?: boolean | undefined;
10623
10663
  content_type?: string | undefined;
@@ -10673,7 +10713,7 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
10673
10713
  };
10674
10714
  meta?: _zapier_kitcore.ResponseMeta;
10675
10715
  }>>;
10676
- }> & _zapier_kitcore.PluginSummary<never, "fetch" | "kitcore/initializeHttpRequest" | "kitcore/prepareHttpRequest" | "kitcore/authorizeHttpRequest" | "kitcore/httpFetch" | "kitcore/dispatchHttpRequest" | "kitcore/receiveHttpResponse" | "kitcore/attemptHttpRequest" | "kitcore/sendHttpRequest" | "kitcore/retryHttpRequestOptions" | "zapier/httpTransport" | "zapier/api" | "zapier/resolveCredentials" | "zapier/manifest" | "zapier/connections" | "zapier/capabilities" | "zapier/eventEmission" | "kitcore/getRegistry" | "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" | "createActionRun" | "getActionRun" | "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" | "zapier/sdk" | "zapier/beta-sdk" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "importWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "runWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "validateWorkflow" | "createForm" | "enableAgenticManagement" | "disableAgenticManagement" | "getAgenticManagementConfig" | "updateAgenticManagementConfig" | "getAgenticManagementIntent" | "updateAgenticManagementIntent" | "listVfsDirectory" | "readVfsFile" | "writeVfsFile" | "appendVfsFile" | "copyVfsFile" | "createVfsDirectory" | "statVfsPath" | "deleteVfsPath" | "moveVfsPath" | "zapier/experimental-sdk", _zapier_kitcore.ContractEntry<"kitcore/httpFetch", typeof fetch | undefined> | _zapier_kitcore.ContractEntry<"zapier/apiClientDurations", ApiClientDurationOptions | undefined> | _zapier_kitcore.ContractEntry<"zapier/sdkOptions", {
10716
+ }> & _zapier_kitcore.PluginSummary<never, "fetch" | "kitcore/initializeHttpRequest" | "kitcore/prepareHttpRequest" | "kitcore/authorizeHttpRequest" | "kitcore/httpFetch" | "kitcore/dispatchHttpRequest" | "kitcore/receiveHttpResponse" | "kitcore/attemptHttpRequest" | "kitcore/sendHttpRequest" | "kitcore/retryHttpRequestOptions" | "zapier/httpTransport" | "zapier/api" | "zapier/resolveCredentials" | "zapier/manifest" | "zapier/connections" | "zapier/capabilities" | "zapier/eventEmission" | "kitcore/getRegistry" | "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" | "createActionRun" | "getActionRun" | "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" | "zapier/sdk" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "importWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "publishWorkflowVersion" | "listWorkflowVersions" | "getWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "runWorkflowDraft" | "getWorkflowRun" | "listWorkflowRuns" | "getTriggerRun" | "triggerWorkflow" | "runWorkflow" | "validateWorkflow" | "zapier/beta-sdk" | "createForm" | "enableAgenticManagement" | "disableAgenticManagement" | "getAgenticManagementConfig" | "updateAgenticManagementConfig" | "getAgenticManagementIntent" | "updateAgenticManagementIntent" | "readVfsFile" | "writeVfsFile" | "appendVfsFile" | "copyVfsFile" | "listVfsDirectory" | "createVfsDirectory" | "statVfsPath" | "deleteVfsPath" | "moveVfsPath" | "zapier/experimental-sdk", _zapier_kitcore.ContractEntry<"kitcore/httpFetch", typeof fetch | undefined> | _zapier_kitcore.ContractEntry<"zapier/apiClientDurations", ApiClientDurationOptions | undefined> | _zapier_kitcore.ContractEntry<"zapier/sdkOptions", {
10677
10717
  credentials?: string | {
10678
10718
  clientId: string;
10679
10719
  clientSecret: string;
@@ -12417,19 +12457,84 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12417
12457
  tableId: string;
12418
12458
  records: {
12419
12459
  id: string;
12420
- data: Record<string, unknown>;
12421
- }[];
12422
- keyMode: "names" | "ids";
12423
- }) & {
12460
+ data: Record<string, unknown>;
12461
+ }[];
12462
+ keyMode: "names" | "ids";
12463
+ }) & {
12464
+ skipOutputDataValidation?: boolean;
12465
+ }) => Promise<{
12466
+ data: {
12467
+ data: Record<string, unknown>;
12468
+ id: string;
12469
+ created_at: string;
12470
+ edited_at: string;
12471
+ deleted_at?: string | null | undefined;
12472
+ }[];
12473
+ meta?: _zapier_kitcore.ResponseMeta;
12474
+ }>> | _zapier_kitcore.ContractEntry<"getWorkflowRun", (input: {
12475
+ run: string;
12476
+ workflow?: string | undefined;
12477
+ waitSeconds?: number | undefined;
12478
+ } & {
12479
+ skipOutputDataValidation?: boolean;
12480
+ }) => Promise<{
12481
+ data: {
12482
+ id: string;
12483
+ workflow_id: string;
12484
+ durable_run_id: string | null;
12485
+ status: string;
12486
+ input: unknown;
12487
+ output: unknown;
12488
+ error: unknown;
12489
+ created_at: string;
12490
+ updated_at: string;
12491
+ kind: "live";
12492
+ trigger_id: string | null;
12493
+ workflow_version_id: string | null;
12494
+ } | {
12495
+ id: string;
12496
+ workflow_id: string;
12497
+ durable_run_id: string | null;
12498
+ status: string;
12499
+ input: unknown;
12500
+ output: unknown;
12501
+ error: unknown;
12502
+ created_at: string;
12503
+ updated_at: string;
12504
+ kind: "draft";
12505
+ workflow_draft_id: string | null;
12506
+ draft_revision: number;
12507
+ };
12508
+ meta?: _zapier_kitcore.ResponseMeta;
12509
+ }>> | _zapier_kitcore.ContractEntry<"getTriggerRun", (input: {
12510
+ trigger: string;
12511
+ waitSeconds?: number | undefined;
12512
+ } & {
12513
+ skipOutputDataValidation?: boolean;
12514
+ }) => Promise<{
12515
+ data: {
12516
+ id: string;
12517
+ durable_run_id: string | null;
12518
+ workflow_version_id: string | null;
12519
+ status: string;
12520
+ input: unknown;
12521
+ output: unknown;
12522
+ error: unknown;
12523
+ created_at: string;
12524
+ updated_at: string;
12525
+ };
12526
+ meta?: _zapier_kitcore.ResponseMeta;
12527
+ }>> | _zapier_kitcore.ContractEntry<"triggerWorkflow", (input: {
12528
+ workflow: string;
12529
+ input?: unknown;
12530
+ } & {
12424
12531
  skipOutputDataValidation?: boolean;
12425
12532
  }) => Promise<{
12426
12533
  data: {
12427
- data: Record<string, unknown>;
12428
12534
  id: string;
12535
+ workflow_id: string;
12429
12536
  created_at: string;
12430
- edited_at: string;
12431
- deleted_at?: string | null | undefined;
12432
- }[];
12537
+ };
12433
12538
  meta?: _zapier_kitcore.ResponseMeta;
12434
12539
  }>> | _zapier_kitcore.ContractEntry<"listWorkflows", (input?: ({
12435
12540
  pageSize?: number | undefined;
@@ -12693,8 +12798,7 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12693
12798
  data: {
12694
12799
  id: string;
12695
12800
  };
12696
- }>> | _zapier_kitcore.ContractEntry<"listWorkflowVersions", (input: {
12697
- workflow: string;
12801
+ }>> | _zapier_kitcore.ContractEntry<"listDurableRuns", (input?: ({
12698
12802
  pageSize?: number | undefined;
12699
12803
  cursor?: string | undefined;
12700
12804
  maxItems?: number | undefined;
@@ -12705,63 +12809,152 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12705
12809
  maxItems?: number;
12706
12810
  } & {
12707
12811
  skipOutputDataValidation?: boolean;
12708
- }) => _zapier_kitcore.PaginatedSdkResult<{
12812
+ }) | undefined) => _zapier_kitcore.PaginatedSdkResult<{
12709
12813
  id: string;
12710
- workflow_id: string;
12711
- zapier_durable_version: string;
12712
- dependencies: Record<string, string> | null;
12713
- created_by_user_id: string;
12714
- created_at: string;
12715
- trigger: {
12716
- selected_api: string;
12717
- action: string;
12718
- authentication_id?: string | null | undefined;
12719
- params?: Record<string, unknown> | undefined;
12814
+ status: string;
12815
+ input: unknown;
12816
+ output: unknown;
12817
+ error: {
12818
+ [x: string]: unknown;
12819
+ code: string;
12820
+ message: string;
12720
12821
  } | null;
12721
- connections: Record<string, {
12722
- connection_id: string | number;
12723
- }> | null;
12724
- app_versions: Record<string, {
12725
- implementation_name: string;
12726
- version?: string | undefined;
12727
- }> | null;
12728
- creation_client?: {
12729
- access_method: string;
12730
- harness?: string | null | undefined;
12731
- sdk_version?: string | null | undefined;
12732
- } | null | undefined;
12733
- }>> | _zapier_kitcore.ContractEntry<"getWorkflowVersion", (input: {
12734
- workflow: string;
12735
- version: string;
12822
+ execution_id: string | null;
12823
+ is_private: boolean;
12824
+ created_at: string;
12825
+ updated_at: string;
12826
+ }>> | _zapier_kitcore.ContractEntry<"getDurableRun", (input: {
12827
+ run: string;
12736
12828
  } & {
12737
12829
  skipOutputDataValidation?: boolean;
12738
12830
  }) => Promise<{
12739
12831
  data: {
12740
12832
  id: string;
12741
- workflow_id: string;
12742
- source_files: Record<string, string>;
12743
- zapier_durable_version: string;
12744
- dependencies: Record<string, string> | null;
12745
- created_by_user_id: string;
12746
- created_at: string;
12747
- trigger: {
12748
- selected_api: string;
12749
- action: string;
12750
- authentication_id?: string | null | undefined;
12751
- params?: Record<string, unknown> | undefined;
12833
+ status: string;
12834
+ input: unknown;
12835
+ output: unknown;
12836
+ error: {
12837
+ [x: string]: unknown;
12838
+ code: string;
12839
+ message: string;
12752
12840
  } | null;
12753
- connections: Record<string, {
12754
- connection_id: string | number;
12755
- }> | null;
12756
- app_versions: Record<string, {
12757
- implementation_name: string;
12758
- version?: string | undefined;
12759
- }> | null;
12760
- creation_client?: {
12761
- access_method: string;
12762
- harness?: string | null | undefined;
12763
- sdk_version?: string | null | undefined;
12764
- } | null | undefined;
12841
+ execution: {
12842
+ id: string;
12843
+ name: string;
12844
+ status: string;
12845
+ input: unknown;
12846
+ created_at: string;
12847
+ output?: unknown;
12848
+ error?: unknown;
12849
+ metadata?: Record<string, unknown> | undefined;
12850
+ summary?: {
12851
+ [x: string]: unknown;
12852
+ total_attempts: number;
12853
+ last_error?: {
12854
+ [x: string]: unknown;
12855
+ code: string;
12856
+ title: string;
12857
+ detail?: string | null | undefined;
12858
+ } | null | undefined;
12859
+ } | null | undefined;
12860
+ operations?: {
12861
+ id: string;
12862
+ execution_id: string;
12863
+ name: string;
12864
+ type: string;
12865
+ status: string;
12866
+ retry_count: number;
12867
+ created_at: string;
12868
+ result?: unknown;
12869
+ error?: unknown;
12870
+ max_attempts?: number | undefined;
12871
+ next_retry_at?: string | null | undefined;
12872
+ resume_at?: string | null | undefined;
12873
+ callback_token?: string | null | undefined;
12874
+ payload_schema?: unknown;
12875
+ payload?: unknown;
12876
+ expires_at?: string | null | undefined;
12877
+ timeout_seconds?: number | null | undefined;
12878
+ completed_at?: string | null | undefined;
12879
+ }[] | undefined;
12880
+ } | null;
12881
+ is_private: boolean;
12882
+ created_at: string;
12883
+ updated_at: string;
12884
+ };
12885
+ meta?: _zapier_kitcore.ResponseMeta;
12886
+ }>> | _zapier_kitcore.ContractEntry<"runDurable", (input: ({
12887
+ sourceFiles: Record<string, string>;
12888
+ input?: unknown;
12889
+ dependencies?: Record<string, string> | undefined;
12890
+ zapierDurableVersion?: string | undefined;
12891
+ zapier_durable_version?: string | undefined;
12892
+ connections?: Record<string, {
12893
+ connectionId?: string | number | undefined;
12894
+ connection_id?: string | number | undefined;
12895
+ }> | undefined;
12896
+ appVersions?: Record<string, {
12897
+ implementationName?: string | undefined;
12898
+ implementation_name?: string | undefined;
12899
+ version?: string | undefined;
12900
+ }> | undefined;
12901
+ app_versions?: Record<string, {
12902
+ implementationName?: string | undefined;
12903
+ implementation_name?: string | undefined;
12904
+ version?: string | undefined;
12905
+ }> | undefined;
12906
+ private?: boolean | undefined;
12907
+ notifications?: {
12908
+ url: string;
12909
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
12910
+ type?: "webhook" | undefined;
12911
+ max_retries?: number | undefined;
12912
+ }[] | undefined;
12913
+ } | {
12914
+ source_files: Record<string, string>;
12915
+ input?: unknown;
12916
+ dependencies?: Record<string, string> | undefined;
12917
+ zapierDurableVersion?: string | undefined;
12918
+ zapier_durable_version?: string | undefined;
12919
+ connections?: Record<string, {
12920
+ connectionId?: string | number | undefined;
12921
+ connection_id?: string | number | undefined;
12922
+ }> | undefined;
12923
+ appVersions?: Record<string, {
12924
+ implementationName?: string | undefined;
12925
+ implementation_name?: string | undefined;
12926
+ version?: string | undefined;
12927
+ }> | undefined;
12928
+ app_versions?: Record<string, {
12929
+ implementationName?: string | undefined;
12930
+ implementation_name?: string | undefined;
12931
+ version?: string | undefined;
12932
+ }> | undefined;
12933
+ private?: boolean | undefined;
12934
+ notifications?: {
12935
+ url: string;
12936
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
12937
+ type?: "webhook" | undefined;
12938
+ max_retries?: number | undefined;
12939
+ }[] | undefined;
12940
+ }) & {
12941
+ skipOutputDataValidation?: boolean;
12942
+ }) => Promise<{
12943
+ data: {
12944
+ id: string;
12945
+ status: "initialized";
12946
+ is_private: boolean;
12947
+ created_at: string;
12948
+ };
12949
+ meta?: _zapier_kitcore.ResponseMeta;
12950
+ }>> | _zapier_kitcore.ContractEntry<"cancelDurableRun", (input: {
12951
+ run: string;
12952
+ } & {
12953
+ skipOutputDataValidation?: boolean;
12954
+ }) => Promise<{
12955
+ data: {
12956
+ id: string;
12957
+ status: "cancelled";
12765
12958
  };
12766
12959
  meta?: _zapier_kitcore.ResponseMeta;
12767
12960
  }>> | _zapier_kitcore.ContractEntry<"publishWorkflowVersion", (input: ({
@@ -12819,14 +13012,85 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12819
13012
  }> | null | undefined;
12820
13013
  trigger?: {
12821
13014
  action: string;
12822
- selectedApi?: string | undefined;
12823
- selected_api?: string | undefined;
12824
- authenticationId?: string | null | undefined;
13015
+ selectedApi?: string | undefined;
13016
+ selected_api?: string | undefined;
13017
+ authenticationId?: string | null | undefined;
13018
+ authentication_id?: string | null | undefined;
13019
+ params?: Record<string, unknown> | undefined;
13020
+ } | undefined;
13021
+ manual?: boolean | undefined;
13022
+ }) & {
13023
+ skipOutputDataValidation?: boolean;
13024
+ }) => Promise<{
13025
+ data: {
13026
+ id: string;
13027
+ workflow_id: string;
13028
+ source_files: Record<string, string>;
13029
+ zapier_durable_version: string;
13030
+ dependencies: Record<string, string> | null;
13031
+ created_by_user_id: string;
13032
+ created_at: string;
13033
+ trigger: {
13034
+ selected_api: string;
13035
+ action: string;
13036
+ authentication_id?: string | null | undefined;
13037
+ params?: Record<string, unknown> | undefined;
13038
+ } | null;
13039
+ connections: Record<string, {
13040
+ connection_id: string | number;
13041
+ }> | null;
13042
+ app_versions: Record<string, {
13043
+ implementation_name: string;
13044
+ version?: string | undefined;
13045
+ }> | null;
13046
+ creation_client?: {
13047
+ access_method: string;
13048
+ harness?: string | null | undefined;
13049
+ sdk_version?: string | null | undefined;
13050
+ } | null | undefined;
13051
+ };
13052
+ meta?: _zapier_kitcore.ResponseMeta;
13053
+ }>> | _zapier_kitcore.ContractEntry<"listWorkflowVersions", (input: {
13054
+ workflow: string;
13055
+ pageSize?: number | undefined;
13056
+ cursor?: string | undefined;
13057
+ maxItems?: number | undefined;
13058
+ } & {
13059
+ cursor?: string;
13060
+ pageSize?: number;
13061
+ } & {
13062
+ maxItems?: number;
13063
+ } & {
13064
+ skipOutputDataValidation?: boolean;
13065
+ }) => _zapier_kitcore.PaginatedSdkResult<{
13066
+ id: string;
13067
+ workflow_id: string;
13068
+ zapier_durable_version: string;
13069
+ dependencies: Record<string, string> | null;
13070
+ created_by_user_id: string;
13071
+ created_at: string;
13072
+ trigger: {
13073
+ selected_api: string;
13074
+ action: string;
12825
13075
  authentication_id?: string | null | undefined;
12826
13076
  params?: Record<string, unknown> | undefined;
12827
- } | undefined;
12828
- manual?: boolean | undefined;
12829
- }) & {
13077
+ } | null;
13078
+ connections: Record<string, {
13079
+ connection_id: string | number;
13080
+ }> | null;
13081
+ app_versions: Record<string, {
13082
+ implementation_name: string;
13083
+ version?: string | undefined;
13084
+ }> | null;
13085
+ creation_client?: {
13086
+ access_method: string;
13087
+ harness?: string | null | undefined;
13088
+ sdk_version?: string | null | undefined;
13089
+ } | null | undefined;
13090
+ }>> | _zapier_kitcore.ContractEntry<"getWorkflowVersion", (input: {
13091
+ workflow: string;
13092
+ version: string;
13093
+ } & {
12830
13094
  skipOutputDataValidation?: boolean;
12831
13095
  }) => Promise<{
12832
13096
  data: {
@@ -13190,6 +13454,7 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
13190
13454
  draft: string;
13191
13455
  draftRevision: number;
13192
13456
  input?: unknown;
13457
+ waitSeconds?: number | undefined;
13193
13458
  } & {
13194
13459
  skipOutputDataValidation?: boolean;
13195
13460
  }) => Promise<{
@@ -13218,242 +13483,40 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
13218
13483
  cursor?: string;
13219
13484
  pageSize?: number;
13220
13485
  } & {
13221
- maxItems?: number;
13222
- } & {
13223
- skipOutputDataValidation?: boolean;
13224
- }) => _zapier_kitcore.PaginatedSdkResult<{
13225
- id: string;
13226
- durable_run_id: string | null;
13227
- status: string;
13228
- input: unknown;
13229
- error: unknown;
13230
- created_at: string;
13231
- updated_at: string;
13232
- kind: "live";
13233
- trigger_id: string | null;
13234
- workflow_version_id: string | null;
13235
- } | {
13236
- id: string;
13237
- durable_run_id: string | null;
13238
- status: string;
13239
- input: unknown;
13240
- error: unknown;
13241
- created_at: string;
13242
- updated_at: string;
13243
- kind: "draft";
13244
- workflow_draft_id: string | null;
13245
- draft_revision: number;
13246
- }>> | _zapier_kitcore.ContractEntry<"getWorkflowRun", (input: {
13247
- run: string;
13248
- workflow?: string | undefined;
13249
- } & {
13250
- skipOutputDataValidation?: boolean;
13251
- }) => Promise<{
13252
- data: {
13253
- id: string;
13254
- workflow_id: string;
13255
- durable_run_id: string | null;
13256
- status: string;
13257
- input: unknown;
13258
- output: unknown;
13259
- error: unknown;
13260
- created_at: string;
13261
- updated_at: string;
13262
- kind: "live";
13263
- trigger_id: string | null;
13264
- workflow_version_id: string | null;
13265
- } | {
13266
- id: string;
13267
- workflow_id: string;
13268
- durable_run_id: string | null;
13269
- status: string;
13270
- input: unknown;
13271
- output: unknown;
13272
- error: unknown;
13273
- created_at: string;
13274
- updated_at: string;
13275
- kind: "draft";
13276
- workflow_draft_id: string | null;
13277
- draft_revision: number;
13278
- };
13279
- meta?: _zapier_kitcore.ResponseMeta;
13280
- }>> | _zapier_kitcore.ContractEntry<"listDurableRuns", (input?: ({
13281
- pageSize?: number | undefined;
13282
- cursor?: string | undefined;
13283
- maxItems?: number | undefined;
13284
- } & {
13285
- cursor?: string;
13286
- pageSize?: number;
13287
- } & {
13288
- maxItems?: number;
13289
- } & {
13290
- skipOutputDataValidation?: boolean;
13291
- }) | undefined) => _zapier_kitcore.PaginatedSdkResult<{
13292
- id: string;
13293
- status: string;
13294
- input: unknown;
13295
- output: unknown;
13296
- error: {
13297
- [x: string]: unknown;
13298
- code: string;
13299
- message: string;
13300
- } | null;
13301
- execution_id: string | null;
13302
- is_private: boolean;
13303
- created_at: string;
13304
- updated_at: string;
13305
- }>> | _zapier_kitcore.ContractEntry<"getDurableRun", (input: {
13306
- run: string;
13307
- } & {
13308
- skipOutputDataValidation?: boolean;
13309
- }) => Promise<{
13310
- data: {
13311
- id: string;
13312
- status: string;
13313
- input: unknown;
13314
- output: unknown;
13315
- error: {
13316
- [x: string]: unknown;
13317
- code: string;
13318
- message: string;
13319
- } | null;
13320
- execution: {
13321
- id: string;
13322
- name: string;
13323
- status: string;
13324
- input: unknown;
13325
- created_at: string;
13326
- output?: unknown;
13327
- error?: unknown;
13328
- metadata?: Record<string, unknown> | undefined;
13329
- summary?: {
13330
- [x: string]: unknown;
13331
- total_attempts: number;
13332
- last_error?: {
13333
- [x: string]: unknown;
13334
- code: string;
13335
- title: string;
13336
- detail?: string | null | undefined;
13337
- } | null | undefined;
13338
- } | null | undefined;
13339
- operations?: {
13340
- id: string;
13341
- execution_id: string;
13342
- name: string;
13343
- type: string;
13344
- status: string;
13345
- retry_count: number;
13346
- created_at: string;
13347
- result?: unknown;
13348
- error?: unknown;
13349
- max_attempts?: number | undefined;
13350
- next_retry_at?: string | null | undefined;
13351
- resume_at?: string | null | undefined;
13352
- callback_token?: string | null | undefined;
13353
- payload_schema?: unknown;
13354
- payload?: unknown;
13355
- expires_at?: string | null | undefined;
13356
- timeout_seconds?: number | null | undefined;
13357
- completed_at?: string | null | undefined;
13358
- }[] | undefined;
13359
- } | null;
13360
- is_private: boolean;
13361
- created_at: string;
13362
- updated_at: string;
13363
- };
13364
- meta?: _zapier_kitcore.ResponseMeta;
13365
- }>> | _zapier_kitcore.ContractEntry<"runDurable", (input: ({
13366
- sourceFiles: Record<string, string>;
13367
- input?: unknown;
13368
- dependencies?: Record<string, string> | undefined;
13369
- zapierDurableVersion?: string | undefined;
13370
- zapier_durable_version?: string | undefined;
13371
- connections?: Record<string, {
13372
- connectionId?: string | number | undefined;
13373
- connection_id?: string | number | undefined;
13374
- }> | undefined;
13375
- appVersions?: Record<string, {
13376
- implementationName?: string | undefined;
13377
- implementation_name?: string | undefined;
13378
- version?: string | undefined;
13379
- }> | undefined;
13380
- app_versions?: Record<string, {
13381
- implementationName?: string | undefined;
13382
- implementation_name?: string | undefined;
13383
- version?: string | undefined;
13384
- }> | undefined;
13385
- private?: boolean | undefined;
13386
- notifications?: {
13387
- url: string;
13388
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
13389
- type?: "webhook" | undefined;
13390
- max_retries?: number | undefined;
13391
- }[] | undefined;
13392
- } | {
13393
- source_files: Record<string, string>;
13394
- input?: unknown;
13395
- dependencies?: Record<string, string> | undefined;
13396
- zapierDurableVersion?: string | undefined;
13397
- zapier_durable_version?: string | undefined;
13398
- connections?: Record<string, {
13399
- connectionId?: string | number | undefined;
13400
- connection_id?: string | number | undefined;
13401
- }> | undefined;
13402
- appVersions?: Record<string, {
13403
- implementationName?: string | undefined;
13404
- implementation_name?: string | undefined;
13405
- version?: string | undefined;
13406
- }> | undefined;
13407
- app_versions?: Record<string, {
13408
- implementationName?: string | undefined;
13409
- implementation_name?: string | undefined;
13410
- version?: string | undefined;
13411
- }> | undefined;
13412
- private?: boolean | undefined;
13413
- notifications?: {
13414
- url: string;
13415
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
13416
- type?: "webhook" | undefined;
13417
- max_retries?: number | undefined;
13418
- }[] | undefined;
13419
- }) & {
13420
- skipOutputDataValidation?: boolean;
13421
- }) => Promise<{
13422
- data: {
13423
- id: string;
13424
- status: "initialized";
13425
- is_private: boolean;
13426
- created_at: string;
13427
- };
13428
- meta?: _zapier_kitcore.ResponseMeta;
13429
- }>> | _zapier_kitcore.ContractEntry<"cancelDurableRun", (input: {
13430
- run: string;
13431
- } & {
13486
+ maxItems?: number;
13487
+ } & {
13432
13488
  skipOutputDataValidation?: boolean;
13433
- }) => Promise<{
13434
- data: {
13435
- id: string;
13436
- status: "cancelled";
13437
- };
13438
- meta?: _zapier_kitcore.ResponseMeta;
13439
- }>> | _zapier_kitcore.ContractEntry<"triggerWorkflow", (input: {
13489
+ }) => _zapier_kitcore.PaginatedSdkResult<{
13490
+ id: string;
13491
+ durable_run_id: string | null;
13492
+ status: string;
13493
+ input: unknown;
13494
+ error: unknown;
13495
+ created_at: string;
13496
+ updated_at: string;
13497
+ kind: "live";
13498
+ trigger_id: string | null;
13499
+ workflow_version_id: string | null;
13500
+ } | {
13501
+ id: string;
13502
+ durable_run_id: string | null;
13503
+ status: string;
13504
+ input: unknown;
13505
+ error: unknown;
13506
+ created_at: string;
13507
+ updated_at: string;
13508
+ kind: "draft";
13509
+ workflow_draft_id: string | null;
13510
+ draft_revision: number;
13511
+ }>> | _zapier_kitcore.ContractEntry<"runWorkflow", (input: {
13440
13512
  workflow: string;
13441
13513
  input?: unknown;
13514
+ waitSeconds?: number | undefined;
13442
13515
  } & {
13443
13516
  skipOutputDataValidation?: boolean;
13444
13517
  }) => Promise<{
13445
13518
  data: {
13446
- id: string;
13447
- workflow_id: string;
13448
- created_at: string;
13449
- };
13450
- meta?: _zapier_kitcore.ResponseMeta;
13451
- }>> | _zapier_kitcore.ContractEntry<"getTriggerRun", (input: {
13452
- trigger: string;
13453
- } & {
13454
- skipOutputDataValidation?: boolean;
13455
- }) => Promise<{
13456
- data: {
13519
+ trigger_id: string;
13457
13520
  id: string;
13458
13521
  durable_run_id: string | null;
13459
13522
  workflow_version_id: string | null;
@@ -13627,29 +13690,6 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
13627
13690
  updated_at?: string | null | undefined;
13628
13691
  };
13629
13692
  meta?: _zapier_kitcore.ResponseMeta;
13630
- }>> | _zapier_kitcore.ContractEntry<"listVfsDirectory", (input: {
13631
- path: string;
13632
- pageSize?: number | undefined;
13633
- maxItems?: number | undefined;
13634
- cursor?: string | undefined;
13635
- } & {
13636
- cursor?: string;
13637
- pageSize?: number;
13638
- } & {
13639
- maxItems?: number;
13640
- } & {
13641
- skipOutputDataValidation?: boolean;
13642
- }) => _zapier_kitcore.PaginatedSdkResult<{
13643
- type: "file" | "directory" | "shortcut" | "stream";
13644
- name: string;
13645
- path: string;
13646
- size?: number | undefined;
13647
- version?: number | undefined;
13648
- updated_at?: string | undefined;
13649
- target_type?: "file" | "directory" | "stream" | null | undefined;
13650
- target_path?: string | null | undefined;
13651
- accessible?: boolean | undefined;
13652
- content_type?: string | undefined;
13653
13693
  }>> | _zapier_kitcore.ContractEntry<"readVfsFile", (input: {
13654
13694
  path: string;
13655
13695
  maxBytes?: number | undefined;
@@ -13709,6 +13749,29 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
13709
13749
  warnings?: string[] | undefined;
13710
13750
  };
13711
13751
  meta?: _zapier_kitcore.ResponseMeta;
13752
+ }>> | _zapier_kitcore.ContractEntry<"listVfsDirectory", (input: {
13753
+ path: string;
13754
+ pageSize?: number | undefined;
13755
+ maxItems?: number | undefined;
13756
+ cursor?: string | undefined;
13757
+ } & {
13758
+ cursor?: string;
13759
+ pageSize?: number;
13760
+ } & {
13761
+ maxItems?: number;
13762
+ } & {
13763
+ skipOutputDataValidation?: boolean;
13764
+ }) => _zapier_kitcore.PaginatedSdkResult<{
13765
+ type: "file" | "stream" | "directory" | "shortcut";
13766
+ name: string;
13767
+ path: string;
13768
+ size?: number | undefined;
13769
+ version?: number | undefined;
13770
+ updated_at?: string | undefined;
13771
+ target_type?: "file" | "stream" | "directory" | null | undefined;
13772
+ target_path?: string | null | undefined;
13773
+ accessible?: boolean | undefined;
13774
+ content_type?: string | undefined;
13712
13775
  }>> | _zapier_kitcore.ContractEntry<"createVfsDirectory", (input: {
13713
13776
  path: string;
13714
13777
  } & {
@@ -13725,13 +13788,13 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
13725
13788
  skipOutputDataValidation?: boolean;
13726
13789
  }) => Promise<{
13727
13790
  data: {
13728
- type: "file" | "directory" | "shortcut" | "stream";
13791
+ type: "file" | "stream" | "directory" | "shortcut";
13729
13792
  name: string;
13730
13793
  path: string;
13731
13794
  size?: number | undefined;
13732
13795
  version?: number | undefined;
13733
13796
  updated_at?: string | undefined;
13734
- target_type?: "file" | "directory" | "stream" | null | undefined;
13797
+ target_type?: "file" | "stream" | "directory" | null | undefined;
13735
13798
  target_path?: string | null | undefined;
13736
13799
  accessible?: boolean | undefined;
13737
13800
  content_type?: string | undefined;
@@ -15723,8 +15786,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
15723
15786
  id: string;
15724
15787
  };
15725
15788
  }>;
15726
- listWorkflowVersions: (input: {
15727
- workflow: string;
15789
+ listDurableRuns: (input?: ({
15728
15790
  pageSize?: number | undefined;
15729
15791
  cursor?: string | undefined;
15730
15792
  maxItems?: number | undefined;
@@ -15735,64 +15797,157 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
15735
15797
  maxItems?: number;
15736
15798
  } & {
15737
15799
  skipOutputDataValidation?: boolean;
15738
- }) => _zapier_kitcore.PaginatedSdkResult<{
15800
+ }) | undefined) => _zapier_kitcore.PaginatedSdkResult<{
15739
15801
  id: string;
15740
- workflow_id: string;
15741
- zapier_durable_version: string;
15742
- dependencies: Record<string, string> | null;
15743
- created_by_user_id: string;
15744
- created_at: string;
15745
- trigger: {
15746
- selected_api: string;
15747
- action: string;
15748
- authentication_id?: string | null | undefined;
15749
- params?: Record<string, unknown> | undefined;
15802
+ status: string;
15803
+ input: unknown;
15804
+ output: unknown;
15805
+ error: {
15806
+ [x: string]: unknown;
15807
+ code: string;
15808
+ message: string;
15750
15809
  } | null;
15751
- connections: Record<string, {
15752
- connection_id: string | number;
15753
- }> | null;
15754
- app_versions: Record<string, {
15755
- implementation_name: string;
15756
- version?: string | undefined;
15757
- }> | null;
15758
- creation_client?: {
15759
- access_method: string;
15760
- harness?: string | null | undefined;
15761
- sdk_version?: string | null | undefined;
15762
- } | null | undefined;
15810
+ execution_id: string | null;
15811
+ is_private: boolean;
15812
+ created_at: string;
15813
+ updated_at: string;
15763
15814
  }>;
15764
- getWorkflowVersion: (input: {
15765
- workflow: string;
15766
- version: string;
15815
+ getDurableRun: (input: {
15816
+ run: string;
15767
15817
  } & {
15768
15818
  skipOutputDataValidation?: boolean;
15769
15819
  }) => Promise<{
15770
15820
  data: {
15771
15821
  id: string;
15772
- workflow_id: string;
15773
- source_files: Record<string, string>;
15774
- zapier_durable_version: string;
15775
- dependencies: Record<string, string> | null;
15776
- created_by_user_id: string;
15777
- created_at: string;
15778
- trigger: {
15779
- selected_api: string;
15780
- action: string;
15781
- authentication_id?: string | null | undefined;
15782
- params?: Record<string, unknown> | undefined;
15822
+ status: string;
15823
+ input: unknown;
15824
+ output: unknown;
15825
+ error: {
15826
+ [x: string]: unknown;
15827
+ code: string;
15828
+ message: string;
15783
15829
  } | null;
15784
- connections: Record<string, {
15785
- connection_id: string | number;
15786
- }> | null;
15787
- app_versions: Record<string, {
15788
- implementation_name: string;
15789
- version?: string | undefined;
15790
- }> | null;
15791
- creation_client?: {
15792
- access_method: string;
15793
- harness?: string | null | undefined;
15794
- sdk_version?: string | null | undefined;
15795
- } | null | undefined;
15830
+ execution: {
15831
+ id: string;
15832
+ name: string;
15833
+ status: string;
15834
+ input: unknown;
15835
+ created_at: string;
15836
+ output?: unknown;
15837
+ error?: unknown;
15838
+ metadata?: Record<string, unknown> | undefined;
15839
+ summary?: {
15840
+ [x: string]: unknown;
15841
+ total_attempts: number;
15842
+ last_error?: {
15843
+ [x: string]: unknown;
15844
+ code: string;
15845
+ title: string;
15846
+ detail?: string | null | undefined;
15847
+ } | null | undefined;
15848
+ } | null | undefined;
15849
+ operations?: {
15850
+ id: string;
15851
+ execution_id: string;
15852
+ name: string;
15853
+ type: string;
15854
+ status: string;
15855
+ retry_count: number;
15856
+ created_at: string;
15857
+ result?: unknown;
15858
+ error?: unknown;
15859
+ max_attempts?: number | undefined;
15860
+ next_retry_at?: string | null | undefined;
15861
+ resume_at?: string | null | undefined;
15862
+ callback_token?: string | null | undefined;
15863
+ payload_schema?: unknown;
15864
+ payload?: unknown;
15865
+ expires_at?: string | null | undefined;
15866
+ timeout_seconds?: number | null | undefined;
15867
+ completed_at?: string | null | undefined;
15868
+ }[] | undefined;
15869
+ } | null;
15870
+ is_private: boolean;
15871
+ created_at: string;
15872
+ updated_at: string;
15873
+ };
15874
+ meta?: _zapier_kitcore.ResponseMeta;
15875
+ }>;
15876
+ runDurable: (input: ({
15877
+ sourceFiles: Record<string, string>;
15878
+ input?: unknown;
15879
+ dependencies?: Record<string, string> | undefined;
15880
+ zapierDurableVersion?: string | undefined;
15881
+ zapier_durable_version?: string | undefined;
15882
+ connections?: Record<string, {
15883
+ connectionId?: string | number | undefined;
15884
+ connection_id?: string | number | undefined;
15885
+ }> | undefined;
15886
+ appVersions?: Record<string, {
15887
+ implementationName?: string | undefined;
15888
+ implementation_name?: string | undefined;
15889
+ version?: string | undefined;
15890
+ }> | undefined;
15891
+ app_versions?: Record<string, {
15892
+ implementationName?: string | undefined;
15893
+ implementation_name?: string | undefined;
15894
+ version?: string | undefined;
15895
+ }> | undefined;
15896
+ private?: boolean | undefined;
15897
+ notifications?: {
15898
+ url: string;
15899
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
15900
+ type?: "webhook" | undefined;
15901
+ max_retries?: number | undefined;
15902
+ }[] | undefined;
15903
+ } & {
15904
+ skipOutputDataValidation?: boolean;
15905
+ }) | ({
15906
+ source_files: Record<string, string>;
15907
+ input?: unknown;
15908
+ dependencies?: Record<string, string> | undefined;
15909
+ zapierDurableVersion?: string | undefined;
15910
+ zapier_durable_version?: string | undefined;
15911
+ connections?: Record<string, {
15912
+ connectionId?: string | number | undefined;
15913
+ connection_id?: string | number | undefined;
15914
+ }> | undefined;
15915
+ appVersions?: Record<string, {
15916
+ implementationName?: string | undefined;
15917
+ implementation_name?: string | undefined;
15918
+ version?: string | undefined;
15919
+ }> | undefined;
15920
+ app_versions?: Record<string, {
15921
+ implementationName?: string | undefined;
15922
+ implementation_name?: string | undefined;
15923
+ version?: string | undefined;
15924
+ }> | undefined;
15925
+ private?: boolean | undefined;
15926
+ notifications?: {
15927
+ url: string;
15928
+ events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
15929
+ type?: "webhook" | undefined;
15930
+ max_retries?: number | undefined;
15931
+ }[] | undefined;
15932
+ } & {
15933
+ skipOutputDataValidation?: boolean;
15934
+ })) => Promise<{
15935
+ data: {
15936
+ id: string;
15937
+ status: "initialized";
15938
+ is_private: boolean;
15939
+ created_at: string;
15940
+ };
15941
+ meta?: _zapier_kitcore.ResponseMeta;
15942
+ }>;
15943
+ cancelDurableRun: (input: {
15944
+ run: string;
15945
+ } & {
15946
+ skipOutputDataValidation?: boolean;
15947
+ }) => Promise<{
15948
+ data: {
15949
+ id: string;
15950
+ status: "cancelled";
15796
15951
  };
15797
15952
  meta?: _zapier_kitcore.ResponseMeta;
15798
15953
  }>;
@@ -15892,6 +16047,79 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
15892
16047
  };
15893
16048
  meta?: _zapier_kitcore.ResponseMeta;
15894
16049
  }>;
16050
+ listWorkflowVersions: (input: {
16051
+ workflow: string;
16052
+ pageSize?: number | undefined;
16053
+ cursor?: string | undefined;
16054
+ maxItems?: number | undefined;
16055
+ } & {
16056
+ cursor?: string;
16057
+ pageSize?: number;
16058
+ } & {
16059
+ maxItems?: number;
16060
+ } & {
16061
+ skipOutputDataValidation?: boolean;
16062
+ }) => _zapier_kitcore.PaginatedSdkResult<{
16063
+ id: string;
16064
+ workflow_id: string;
16065
+ zapier_durable_version: string;
16066
+ dependencies: Record<string, string> | null;
16067
+ created_by_user_id: string;
16068
+ created_at: string;
16069
+ trigger: {
16070
+ selected_api: string;
16071
+ action: string;
16072
+ authentication_id?: string | null | undefined;
16073
+ params?: Record<string, unknown> | undefined;
16074
+ } | null;
16075
+ connections: Record<string, {
16076
+ connection_id: string | number;
16077
+ }> | null;
16078
+ app_versions: Record<string, {
16079
+ implementation_name: string;
16080
+ version?: string | undefined;
16081
+ }> | null;
16082
+ creation_client?: {
16083
+ access_method: string;
16084
+ harness?: string | null | undefined;
16085
+ sdk_version?: string | null | undefined;
16086
+ } | null | undefined;
16087
+ }>;
16088
+ getWorkflowVersion: (input: {
16089
+ workflow: string;
16090
+ version: string;
16091
+ } & {
16092
+ skipOutputDataValidation?: boolean;
16093
+ }) => Promise<{
16094
+ data: {
16095
+ id: string;
16096
+ workflow_id: string;
16097
+ source_files: Record<string, string>;
16098
+ zapier_durable_version: string;
16099
+ dependencies: Record<string, string> | null;
16100
+ created_by_user_id: string;
16101
+ created_at: string;
16102
+ trigger: {
16103
+ selected_api: string;
16104
+ action: string;
16105
+ authentication_id?: string | null | undefined;
16106
+ params?: Record<string, unknown> | undefined;
16107
+ } | null;
16108
+ connections: Record<string, {
16109
+ connection_id: string | number;
16110
+ }> | null;
16111
+ app_versions: Record<string, {
16112
+ implementation_name: string;
16113
+ version?: string | undefined;
16114
+ }> | null;
16115
+ creation_client?: {
16116
+ access_method: string;
16117
+ harness?: string | null | undefined;
16118
+ sdk_version?: string | null | undefined;
16119
+ } | null | undefined;
16120
+ };
16121
+ meta?: _zapier_kitcore.ResponseMeta;
16122
+ }>;
15895
16123
  listWorkflowDrafts: (input: {
15896
16124
  workflow: string;
15897
16125
  status?: "open" | "discarded" | undefined;
@@ -16231,6 +16459,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16231
16459
  draft: string;
16232
16460
  draftRevision: number;
16233
16461
  input?: unknown;
16462
+ waitSeconds?: number | undefined;
16234
16463
  } & {
16235
16464
  skipOutputDataValidation?: boolean;
16236
16465
  }) => Promise<{
@@ -16289,6 +16518,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16289
16518
  getWorkflowRun: (input: {
16290
16519
  run: string;
16291
16520
  workflow?: string | undefined;
16521
+ waitSeconds?: number | undefined;
16292
16522
  } & {
16293
16523
  skipOutputDataValidation?: boolean;
16294
16524
  }) => Promise<{
@@ -16321,171 +16551,25 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16321
16551
  };
16322
16552
  meta?: _zapier_kitcore.ResponseMeta;
16323
16553
  }>;
16324
- listDurableRuns: (input?: ({
16325
- pageSize?: number | undefined;
16326
- cursor?: string | undefined;
16327
- maxItems?: number | undefined;
16328
- } & {
16329
- cursor?: string;
16330
- pageSize?: number;
16331
- } & {
16332
- maxItems?: number;
16333
- } & {
16334
- skipOutputDataValidation?: boolean;
16335
- }) | undefined) => _zapier_kitcore.PaginatedSdkResult<{
16336
- id: string;
16337
- status: string;
16338
- input: unknown;
16339
- output: unknown;
16340
- error: {
16341
- [x: string]: unknown;
16342
- code: string;
16343
- message: string;
16344
- } | null;
16345
- execution_id: string | null;
16346
- is_private: boolean;
16347
- created_at: string;
16348
- updated_at: string;
16349
- }>;
16350
- getDurableRun: (input: {
16351
- run: string;
16554
+ getTriggerRun: (input: {
16555
+ trigger: string;
16556
+ waitSeconds?: number | undefined;
16352
16557
  } & {
16353
16558
  skipOutputDataValidation?: boolean;
16354
16559
  }) => Promise<{
16355
16560
  data: {
16356
16561
  id: string;
16562
+ durable_run_id: string | null;
16563
+ workflow_version_id: string | null;
16357
16564
  status: string;
16358
16565
  input: unknown;
16359
16566
  output: unknown;
16360
- error: {
16361
- [x: string]: unknown;
16362
- code: string;
16363
- message: string;
16364
- } | null;
16365
- execution: {
16366
- id: string;
16367
- name: string;
16368
- status: string;
16369
- input: unknown;
16370
- created_at: string;
16371
- output?: unknown;
16372
- error?: unknown;
16373
- metadata?: Record<string, unknown> | undefined;
16374
- summary?: {
16375
- [x: string]: unknown;
16376
- total_attempts: number;
16377
- last_error?: {
16378
- [x: string]: unknown;
16379
- code: string;
16380
- title: string;
16381
- detail?: string | null | undefined;
16382
- } | null | undefined;
16383
- } | null | undefined;
16384
- operations?: {
16385
- id: string;
16386
- execution_id: string;
16387
- name: string;
16388
- type: string;
16389
- status: string;
16390
- retry_count: number;
16391
- created_at: string;
16392
- result?: unknown;
16393
- error?: unknown;
16394
- max_attempts?: number | undefined;
16395
- next_retry_at?: string | null | undefined;
16396
- resume_at?: string | null | undefined;
16397
- callback_token?: string | null | undefined;
16398
- payload_schema?: unknown;
16399
- payload?: unknown;
16400
- expires_at?: string | null | undefined;
16401
- timeout_seconds?: number | null | undefined;
16402
- completed_at?: string | null | undefined;
16403
- }[] | undefined;
16404
- } | null;
16405
- is_private: boolean;
16567
+ error: unknown;
16406
16568
  created_at: string;
16407
16569
  updated_at: string;
16408
16570
  };
16409
16571
  meta?: _zapier_kitcore.ResponseMeta;
16410
16572
  }>;
16411
- runDurable: (input: ({
16412
- sourceFiles: Record<string, string>;
16413
- input?: unknown;
16414
- dependencies?: Record<string, string> | undefined;
16415
- zapierDurableVersion?: string | undefined;
16416
- zapier_durable_version?: string | undefined;
16417
- connections?: Record<string, {
16418
- connectionId?: string | number | undefined;
16419
- connection_id?: string | number | undefined;
16420
- }> | undefined;
16421
- appVersions?: Record<string, {
16422
- implementationName?: string | undefined;
16423
- implementation_name?: string | undefined;
16424
- version?: string | undefined;
16425
- }> | undefined;
16426
- app_versions?: Record<string, {
16427
- implementationName?: string | undefined;
16428
- implementation_name?: string | undefined;
16429
- version?: string | undefined;
16430
- }> | undefined;
16431
- private?: boolean | undefined;
16432
- notifications?: {
16433
- url: string;
16434
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
16435
- type?: "webhook" | undefined;
16436
- max_retries?: number | undefined;
16437
- }[] | undefined;
16438
- } & {
16439
- skipOutputDataValidation?: boolean;
16440
- }) | ({
16441
- source_files: Record<string, string>;
16442
- input?: unknown;
16443
- dependencies?: Record<string, string> | undefined;
16444
- zapierDurableVersion?: string | undefined;
16445
- zapier_durable_version?: string | undefined;
16446
- connections?: Record<string, {
16447
- connectionId?: string | number | undefined;
16448
- connection_id?: string | number | undefined;
16449
- }> | undefined;
16450
- appVersions?: Record<string, {
16451
- implementationName?: string | undefined;
16452
- implementation_name?: string | undefined;
16453
- version?: string | undefined;
16454
- }> | undefined;
16455
- app_versions?: Record<string, {
16456
- implementationName?: string | undefined;
16457
- implementation_name?: string | undefined;
16458
- version?: string | undefined;
16459
- }> | undefined;
16460
- private?: boolean | undefined;
16461
- notifications?: {
16462
- url: string;
16463
- events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
16464
- type?: "webhook" | undefined;
16465
- max_retries?: number | undefined;
16466
- }[] | undefined;
16467
- } & {
16468
- skipOutputDataValidation?: boolean;
16469
- })) => Promise<{
16470
- data: {
16471
- id: string;
16472
- status: "initialized";
16473
- is_private: boolean;
16474
- created_at: string;
16475
- };
16476
- meta?: _zapier_kitcore.ResponseMeta;
16477
- }>;
16478
- cancelDurableRun: (input: {
16479
- run: string;
16480
- } & {
16481
- skipOutputDataValidation?: boolean;
16482
- }) => Promise<{
16483
- data: {
16484
- id: string;
16485
- status: "cancelled";
16486
- };
16487
- meta?: _zapier_kitcore.ResponseMeta;
16488
- }>;
16489
16573
  triggerWorkflow: (input: {
16490
16574
  workflow: string;
16491
16575
  input?: unknown;
@@ -16499,12 +16583,15 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16499
16583
  };
16500
16584
  meta?: _zapier_kitcore.ResponseMeta;
16501
16585
  }>;
16502
- getTriggerRun: (input: {
16503
- trigger: string;
16586
+ runWorkflow: (input: {
16587
+ workflow: string;
16588
+ input?: unknown;
16589
+ waitSeconds?: number | undefined;
16504
16590
  } & {
16505
16591
  skipOutputDataValidation?: boolean;
16506
16592
  }) => Promise<{
16507
16593
  data: {
16594
+ trigger_id: string;
16508
16595
  id: string;
16509
16596
  durable_run_id: string | null;
16510
16597
  workflow_version_id: string | null;
@@ -16700,13 +16787,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16700
16787
  } & {
16701
16788
  skipOutputDataValidation?: boolean;
16702
16789
  }) => _zapier_kitcore.PaginatedSdkResult<{
16703
- type: "file" | "directory" | "shortcut" | "stream";
16790
+ type: "file" | "stream" | "directory" | "shortcut";
16704
16791
  name: string;
16705
16792
  path: string;
16706
16793
  size?: number | undefined;
16707
16794
  version?: number | undefined;
16708
16795
  updated_at?: string | undefined;
16709
- target_type?: "file" | "directory" | "stream" | null | undefined;
16796
+ target_type?: "file" | "stream" | "directory" | null | undefined;
16710
16797
  target_path?: string | null | undefined;
16711
16798
  accessible?: boolean | undefined;
16712
16799
  content_type?: string | undefined;
@@ -16791,13 +16878,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16791
16878
  skipOutputDataValidation?: boolean;
16792
16879
  }) => Promise<{
16793
16880
  data: {
16794
- type: "file" | "directory" | "shortcut" | "stream";
16881
+ type: "file" | "stream" | "directory" | "shortcut";
16795
16882
  name: string;
16796
16883
  path: string;
16797
16884
  size?: number | undefined;
16798
16885
  version?: number | undefined;
16799
16886
  updated_at?: string | undefined;
16800
- target_type?: "file" | "directory" | "stream" | null | undefined;
16887
+ target_type?: "file" | "stream" | "directory" | null | undefined;
16801
16888
  target_path?: string | null | undefined;
16802
16889
  accessible?: boolean | undefined;
16803
16890
  content_type?: string | undefined;
@@ -16841,4 +16928,4 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16841
16928
  interface ZapierSdk extends ReturnType<typeof createZapierSdk> {
16842
16929
  }
16843
16930
 
16844
- export { ApiClient, BaseEvent, ConnectionsProvider, type CreateWorkflowOptions, CreateWorkflowOptionsSchema, type CreateWorkflowResponse, CreateWorkflowResponseSchema, DrainTriggerInboxOptions, EventCallback, EventEmissionConfig, EventTransport, FieldsetItem, type ImportWorkflowOptions, ImportWorkflowOptionsSchema, type ImportWorkflowResponse, ImportWorkflowResponseSchema, Manifest, ManifestProvider, type OpenDraftRef, ResolveCredentialsFn, WatchTriggerInboxOptions, ZapierCache, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, zapierExperimentalSdkPlugin };
16931
+ export { ApiClient, BaseEvent, ConnectionsProvider, DrainTriggerInboxOptions, EventCallback, EventEmissionConfig, EventTransport, FieldsetItem, Manifest, ManifestProvider, ResolveCredentialsFn, WatchTriggerInboxOptions, ZapierCache, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, zapierExperimentalSdkPlugin };