@zapier/zapier-sdk 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +185 -0
- package/dist/experimental.cjs +310 -2
- package/dist/experimental.d.mts +114 -2
- package/dist/experimental.d.ts +112 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +10 -0
- package/dist/experimental.mjs +310 -3
- package/dist/{index-3fBEDEsp.d.mts → index-Bfvj0KLi.d.mts} +15 -1
- package/dist/{index-3fBEDEsp.d.ts → index-Bfvj0KLi.d.ts} +15 -1
- package/dist/index.cjs +22 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +22 -2
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts +40 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/index.js +27 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/schemas.d.ts +11 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/cancelDurableRun/schemas.js +12 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +46 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.js +25 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts +17 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.js +25 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +49 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.js +34 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts +37 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.js +48 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +49 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +33 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +20 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +42 -0
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +53 -0
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/runDurable/index.js +36 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts +24 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.js +61 -0
- package/dist/resolvers/index.d.ts +1 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -0
- package/dist/resolvers/workflowVersionId.d.ts +6 -0
- package/dist/resolvers/workflowVersionId.d.ts.map +1 -0
- package/dist/resolvers/workflowVersionId.js +20 -0
- package/package.json +1 -1
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-
|
|
2
|
-
export { u as Action, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, bB as ApiError,
|
|
1
|
+
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-Bfvj0KLi.mjs';
|
|
2
|
+
export { u as Action, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, bB as ApiError, dl as ApiEvent, cH as ApiPluginOptions, cJ as ApiPluginProvides, v as App, b_ as AppFactoryInput, az as AppItem, b9 as AppKeyProperty, aJ as AppKeyPropertySchema, ba as AppProperty, aK as AppPropertySchema, ev as ApplicationLifecycleEventData, bS as ApprovalStatus, bY as AppsPluginProvides, bt as AppsProperty, b1 as AppsPropertySchema, a0 as ArrayResolver, dk as AuthEvent, bh as AuthenticationIdProperty, aQ as AuthenticationIdPropertySchema, eD as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MS, x as Choice, ds as ClientCredentialsObject, dD as ClientCredentialsObjectSchema, K as Connection, dL as ConnectionEntry, dK as ConnectionEntrySchema, bf as ConnectionIdProperty, aP as ConnectionIdPropertySchema, aA as ConnectionItem, bg as ConnectionProperty, aR as ConnectionPropertySchema, dN as ConnectionsMap, dM as ConnectionsMapSchema, dP as ConnectionsPluginProvides, bv as ConnectionsProperty, b3 as ConnectionsPropertySchema, O as ConnectionsResponse, cg as CreateClientCredentialsPluginProvides, ed as CreateTableFieldsPluginProvides, e7 as CreateTablePluginProvides, el as CreateTableRecordsPluginProvides, dp as Credentials, dI as CredentialsFunction, dH as CredentialsFunctionSchema, dr as CredentialsObject, dF as CredentialsObjectSchema, dJ as CredentialsSchema, dU as DEFAULT_ACTION_TIMEOUT_MS, e0 as DEFAULT_APPROVAL_TIMEOUT_MS, cD as DEFAULT_CONFIG_PATH, e1 as DEFAULT_MAX_APPROVAL_RETRIES, dT as DEFAULT_PAGE_SIZE, bm as DebugProperty, aW as DebugPropertySchema, ci as DeleteClientCredentialsPluginProvides, ef as DeleteTableFieldsPluginProvides, e9 as DeleteTablePluginProvides, en as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, ew as EnhancedErrorEventData, bC as ErrorOptions, dn as EventCallback, eu as EventContext, er as EventEmissionConfig, et as EventEmissionProvides, c0 as FetchPluginProvides, w as Field, bs as FieldsProperty, b0 as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cq as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cs as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, aG as FunctionOptions, aj as FunctionRegistryEntry, ca as GetActionInputFieldsSchemaPluginProvides, cm as GetActionPluginProvides, ck as GetAppPluginProvides, G as GetAuthenticationPluginProvides, co as GetConnectionPluginProvides, cG as GetProfilePluginProvides, e5 as GetTablePluginProvides, eh as GetTableRecordPluginProvides, aD as InfoFieldItem, aC as InputFieldItem, be as InputFieldProperty, aO as InputFieldPropertySchema, bi as InputsProperty, aS as InputsPropertySchema, bA as LeaseLimitProperty, b8 as LeaseLimitPropertySchema, by as LeaseProperty, b6 as LeasePropertySchema, bz as LeaseSecondsProperty, b7 as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bj as LimitProperty, aT as LimitPropertySchema, c8 as ListActionInputFieldChoicesPluginProvides, c6 as ListActionInputFieldsPluginProvides, c4 as ListActionsPluginProvides, c2 as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, ce as ListClientCredentialsPluginProvides, cc as ListConnectionsPluginProvides, eb as ListTableFieldsPluginProvides, ej as ListTableRecordsPluginProvides, e3 as ListTablesPluginProvides, dm as LoadingEvent, dX as MAX_CONCURRENCY_LIMIT, dS as MAX_PAGE_LIMIT, cE as ManifestEntry, cz as ManifestPluginOptions, cC as ManifestPluginProvides, eE as MethodCalledEvent, ex as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bk as OffsetProperty, aU as OffsetPropertySchema, _ as OutputFormatter, bl as OutputProperty, aV as OutputPropertySchema, aI as PaginatedSdkFunction, bn as ParamsProperty, aX as ParamsPropertySchema, dt as PkceCredentialsObject, dE as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, bQ as RateLimitInfo, bq as RecordProperty, a_ as RecordPropertySchema, br as RecordsProperty, a$ as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cy as RequestPluginProvides, d7 as ResolveAuthTokenOptions, dy as ResolveCredentialsOptions, dq as ResolvedCredentials, dG as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aE as RootFieldItem, cw as RunActionPluginProvides, dj as SdkEvent, aH as SdkPage, a2 as StaticResolver, bp as TableProperty, aZ as TablePropertySchema, bu as TablesProperty, b2 as TablesPropertySchema, bx as TriggerInboxNameProperty, b5 as TriggerInboxNamePropertySchema, bw as TriggerInboxProperty, b4 as TriggerInboxPropertySchema, T as TriggerMessageStatus, ep as UpdateTableRecordsPluginProvides, Q as UserProfile, aF as UserProfileItem, dQ as ZAPIER_BASE_URL, dZ as ZAPIER_MAX_CONCURRENT_REQUESTS, dV as ZAPIER_MAX_NETWORK_RETRIES, dW as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, bO as ZapierActionError, bE as ZapierApiError, bF as ZapierAppNotFoundError, bT as ZapierApprovalError, bI as ZapierAuthenticationError, bM as ZapierBundleError, df as ZapierCache, dg as ZapierCacheEntry, dh as ZapierCacheSetOptions, bL as ZapierConfigurationError, bP as ZapierConflictError, bD as ZapierError, bJ as ZapierNotFoundError, bR as ZapierRateLimitError, bU as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bK as ZapierResourceNotFoundError, bW as ZapierSignal, bN as ZapierTimeoutError, bH as ZapierUnknownError, bG as ZapierValidationError, cM as actionKeyResolver, cL as actionTypeResolver, cI as apiPlugin, cK as appKeyResolver, bX as appsPlugin, cO as authenticationIdGenericResolver, cN as authenticationIdResolver, a9 as batch, ey as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, eA as buildErrorEvent, ez as buildErrorEventWithContext, eC as buildMethodCalledEvent, eq as cleanupEventListeners, d8 as clearTokenCache, cS as clientCredentialsNameResolver, cT as clientIdResolver, ar as composePlugins, cO as connectionIdGenericResolver, cN as connectionIdResolver, dO as connectionsPlugin, eB as createBaseEvent, cf as createClientCredentialsPlugin, V as createFunction, di as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, ec as createTableFieldsPlugin, e6 as createTablePlugin, ek as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, ch as deleteClientCredentialsPlugin, ee as deleteTableFieldsPlugin, e8 as deleteTablePlugin, em as deleteTableRecordsPlugin, cX as durableRunIdResolver, es as eventEmissionPlugin, b$ as fetchPlugin, cp as findFirstConnectionPlugin, cr as findUniqueConnectionPlugin, bV as formatErrorMessage, eF as generateEventId, c9 as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, cj as getAppPlugin, dB as getBaseUrlFromCredentials, eL as getCiPlatform, dC as getClientIdFromCredentials, cn as getConnectionPlugin, eN as getCpuTime, eG as getCurrentTimestamp, eM as getMemoryUsage, ay as getOrCreateApiClient, eI as getOsInfo, eJ as getPlatformVersions, cA as getPreferredManifestEntryKey, cF as getProfilePlugin, eH as getReleaseId, e4 as getTablePlugin, eg as getTableRecordPlugin, dc as getTokenFromCliLogin, d_ as getZapierApprovalMode, d$ as getZapierDefaultApprovalMode, dR as getZapierSdkService, da as injectCliLogin, cR as inputFieldKeyResolver, cQ as inputsAllOptionalResolver, cP as inputsResolver, d9 as invalidateCachedToken, de as invalidateCredentialsToken, eK as isCi, db as isCliLoginAvailable, du as isClientCredentials, dx as isCredentialsFunction, dw as isCredentialsObject, dv as isPkceCredentials, S as isPositional, c7 as listActionInputFieldChoicesPlugin, c5 as listActionInputFieldsPlugin, c3 as listActionsPlugin, c1 as listAppsPlugin, cd as listClientCredentialsPlugin, cb as listConnectionsPlugin, ea as listTableFieldsPlugin, ei as listTableRecordsPlugin, e2 as listTablesPlugin, ac as logDeprecation, cB as manifestPlugin, dY as parseConcurrencyEnvVar, au as registryPlugin, cx as requestPlugin, ad as resetDeprecationWarnings, dd as resolveAuthToken, dA as resolveCredentials, dz as resolveCredentialsFromEnv, cv as runActionPlugin, a6 as runWithTelemetryContext, d0 as tableFieldIdsResolver, d2 as tableFieldsResolver, d5 as tableFiltersResolver, cU as tableIdResolver, d1 as tableNameResolver, c_ as tableRecordIdResolver, c$ as tableRecordIdsResolver, d3 as tableRecordsResolver, d6 as tableSortResolver, d4 as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, cV as triggerInboxResolver, cZ as triggerMessagesResolver, eo as updateTableRecordsPlugin, cW as workflowIdResolver, cY as workflowVersionIdResolver } from './index-Bfvj0KLi.mjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -2511,6 +2511,118 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2511
2511
|
getDurableRun: PluginMeta;
|
|
2512
2512
|
};
|
|
2513
2513
|
};
|
|
2514
|
+
} & {
|
|
2515
|
+
runDurable: (options?: {
|
|
2516
|
+
source_files: Record<string, string>;
|
|
2517
|
+
input?: unknown;
|
|
2518
|
+
dependencies?: Record<string, string> | undefined;
|
|
2519
|
+
zapier_durable_version?: string | undefined;
|
|
2520
|
+
connections?: Record<string, {
|
|
2521
|
+
connection_id: string | number;
|
|
2522
|
+
}> | undefined;
|
|
2523
|
+
app_versions?: Record<string, {
|
|
2524
|
+
implementation_name: string;
|
|
2525
|
+
version?: string | undefined;
|
|
2526
|
+
}> | undefined;
|
|
2527
|
+
private?: boolean | undefined;
|
|
2528
|
+
} | undefined) => Promise<{
|
|
2529
|
+
data: {
|
|
2530
|
+
id: string;
|
|
2531
|
+
status: "initialized";
|
|
2532
|
+
is_private: boolean;
|
|
2533
|
+
created_at: string;
|
|
2534
|
+
};
|
|
2535
|
+
}>;
|
|
2536
|
+
} & {
|
|
2537
|
+
context: {
|
|
2538
|
+
meta: {
|
|
2539
|
+
runDurable: PluginMeta;
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
} & {
|
|
2543
|
+
cancelDurableRun: (options?: {
|
|
2544
|
+
run: string;
|
|
2545
|
+
} | undefined) => Promise<{
|
|
2546
|
+
data: {
|
|
2547
|
+
id: string;
|
|
2548
|
+
status: "cancelled";
|
|
2549
|
+
};
|
|
2550
|
+
}>;
|
|
2551
|
+
} & {
|
|
2552
|
+
context: {
|
|
2553
|
+
meta: {
|
|
2554
|
+
cancelDurableRun: PluginMeta;
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2557
|
+
} & {
|
|
2558
|
+
publishWorkflowVersion: (options?: {
|
|
2559
|
+
workflow: string;
|
|
2560
|
+
source_files: Record<string, string>;
|
|
2561
|
+
dependencies?: Record<string, string> | undefined;
|
|
2562
|
+
zapier_durable_version?: string | undefined;
|
|
2563
|
+
enabled?: boolean | undefined;
|
|
2564
|
+
} | undefined) => Promise<{
|
|
2565
|
+
data: {
|
|
2566
|
+
id: string;
|
|
2567
|
+
workflow_id: string;
|
|
2568
|
+
source_files: Record<string, string>;
|
|
2569
|
+
zapier_durable_version: string;
|
|
2570
|
+
dependencies: Record<string, string> | null;
|
|
2571
|
+
created_by_user_id: string;
|
|
2572
|
+
created_at: string;
|
|
2573
|
+
};
|
|
2574
|
+
}>;
|
|
2575
|
+
} & {
|
|
2576
|
+
context: {
|
|
2577
|
+
meta: {
|
|
2578
|
+
publishWorkflowVersion: PluginMeta;
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
} & {
|
|
2582
|
+
listWorkflowVersions: (options?: ({
|
|
2583
|
+
workflow: string;
|
|
2584
|
+
pageSize?: number | undefined;
|
|
2585
|
+
cursor?: string | undefined;
|
|
2586
|
+
maxItems?: number | undefined;
|
|
2587
|
+
} & {
|
|
2588
|
+
cursor?: string;
|
|
2589
|
+
pageSize?: number;
|
|
2590
|
+
maxItems?: number;
|
|
2591
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
2592
|
+
id: string;
|
|
2593
|
+
workflow_id: string;
|
|
2594
|
+
zapier_durable_version: string;
|
|
2595
|
+
dependencies: Record<string, string> | null;
|
|
2596
|
+
created_by_user_id: string;
|
|
2597
|
+
created_at: string;
|
|
2598
|
+
}>;
|
|
2599
|
+
} & {
|
|
2600
|
+
context: {
|
|
2601
|
+
meta: {
|
|
2602
|
+
listWorkflowVersions: PluginMeta;
|
|
2603
|
+
};
|
|
2604
|
+
};
|
|
2605
|
+
} & {
|
|
2606
|
+
getWorkflowVersion: (options?: {
|
|
2607
|
+
workflow: string;
|
|
2608
|
+
version: string;
|
|
2609
|
+
} | undefined) => Promise<{
|
|
2610
|
+
data: {
|
|
2611
|
+
id: string;
|
|
2612
|
+
workflow_id: string;
|
|
2613
|
+
source_files: Record<string, string>;
|
|
2614
|
+
zapier_durable_version: string;
|
|
2615
|
+
dependencies: Record<string, string> | null;
|
|
2616
|
+
created_by_user_id: string;
|
|
2617
|
+
created_at: string;
|
|
2618
|
+
};
|
|
2619
|
+
}>;
|
|
2620
|
+
} & {
|
|
2621
|
+
context: {
|
|
2622
|
+
meta: {
|
|
2623
|
+
getWorkflowVersion: PluginMeta;
|
|
2624
|
+
};
|
|
2625
|
+
};
|
|
2514
2626
|
} & {
|
|
2515
2627
|
apps: ActionProxy & ZapierSdkApps;
|
|
2516
2628
|
context: {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2526,6 +2526,118 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2526
2526
|
getDurableRun: PluginMeta;
|
|
2527
2527
|
};
|
|
2528
2528
|
};
|
|
2529
|
+
} & {
|
|
2530
|
+
runDurable: (options?: {
|
|
2531
|
+
source_files: Record<string, string>;
|
|
2532
|
+
input?: unknown;
|
|
2533
|
+
dependencies?: Record<string, string> | undefined;
|
|
2534
|
+
zapier_durable_version?: string | undefined;
|
|
2535
|
+
connections?: Record<string, {
|
|
2536
|
+
connection_id: string | number;
|
|
2537
|
+
}> | undefined;
|
|
2538
|
+
app_versions?: Record<string, {
|
|
2539
|
+
implementation_name: string;
|
|
2540
|
+
version?: string | undefined;
|
|
2541
|
+
}> | undefined;
|
|
2542
|
+
private?: boolean | undefined;
|
|
2543
|
+
} | undefined) => Promise<{
|
|
2544
|
+
data: {
|
|
2545
|
+
id: string;
|
|
2546
|
+
status: "initialized";
|
|
2547
|
+
is_private: boolean;
|
|
2548
|
+
created_at: string;
|
|
2549
|
+
};
|
|
2550
|
+
}>;
|
|
2551
|
+
} & {
|
|
2552
|
+
context: {
|
|
2553
|
+
meta: {
|
|
2554
|
+
runDurable: PluginMeta;
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2557
|
+
} & {
|
|
2558
|
+
cancelDurableRun: (options?: {
|
|
2559
|
+
run: string;
|
|
2560
|
+
} | undefined) => Promise<{
|
|
2561
|
+
data: {
|
|
2562
|
+
id: string;
|
|
2563
|
+
status: "cancelled";
|
|
2564
|
+
};
|
|
2565
|
+
}>;
|
|
2566
|
+
} & {
|
|
2567
|
+
context: {
|
|
2568
|
+
meta: {
|
|
2569
|
+
cancelDurableRun: PluginMeta;
|
|
2570
|
+
};
|
|
2571
|
+
};
|
|
2572
|
+
} & {
|
|
2573
|
+
publishWorkflowVersion: (options?: {
|
|
2574
|
+
workflow: string;
|
|
2575
|
+
source_files: Record<string, string>;
|
|
2576
|
+
dependencies?: Record<string, string> | undefined;
|
|
2577
|
+
zapier_durable_version?: string | undefined;
|
|
2578
|
+
enabled?: boolean | undefined;
|
|
2579
|
+
} | undefined) => Promise<{
|
|
2580
|
+
data: {
|
|
2581
|
+
id: string;
|
|
2582
|
+
workflow_id: string;
|
|
2583
|
+
source_files: Record<string, string>;
|
|
2584
|
+
zapier_durable_version: string;
|
|
2585
|
+
dependencies: Record<string, string> | null;
|
|
2586
|
+
created_by_user_id: string;
|
|
2587
|
+
created_at: string;
|
|
2588
|
+
};
|
|
2589
|
+
}>;
|
|
2590
|
+
} & {
|
|
2591
|
+
context: {
|
|
2592
|
+
meta: {
|
|
2593
|
+
publishWorkflowVersion: PluginMeta;
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2596
|
+
} & {
|
|
2597
|
+
listWorkflowVersions: (options?: ({
|
|
2598
|
+
workflow: string;
|
|
2599
|
+
pageSize?: number | undefined;
|
|
2600
|
+
cursor?: string | undefined;
|
|
2601
|
+
maxItems?: number | undefined;
|
|
2602
|
+
} & {
|
|
2603
|
+
cursor?: string;
|
|
2604
|
+
pageSize?: number;
|
|
2605
|
+
maxItems?: number;
|
|
2606
|
+
}) | undefined) => import("./index").PaginatedSdkResult<{
|
|
2607
|
+
id: string;
|
|
2608
|
+
workflow_id: string;
|
|
2609
|
+
zapier_durable_version: string;
|
|
2610
|
+
dependencies: Record<string, string> | null;
|
|
2611
|
+
created_by_user_id: string;
|
|
2612
|
+
created_at: string;
|
|
2613
|
+
}>;
|
|
2614
|
+
} & {
|
|
2615
|
+
context: {
|
|
2616
|
+
meta: {
|
|
2617
|
+
listWorkflowVersions: PluginMeta;
|
|
2618
|
+
};
|
|
2619
|
+
};
|
|
2620
|
+
} & {
|
|
2621
|
+
getWorkflowVersion: (options?: {
|
|
2622
|
+
workflow: string;
|
|
2623
|
+
version: string;
|
|
2624
|
+
} | undefined) => Promise<{
|
|
2625
|
+
data: {
|
|
2626
|
+
id: string;
|
|
2627
|
+
workflow_id: string;
|
|
2628
|
+
source_files: Record<string, string>;
|
|
2629
|
+
zapier_durable_version: string;
|
|
2630
|
+
dependencies: Record<string, string> | null;
|
|
2631
|
+
created_by_user_id: string;
|
|
2632
|
+
created_at: string;
|
|
2633
|
+
};
|
|
2634
|
+
}>;
|
|
2635
|
+
} & {
|
|
2636
|
+
context: {
|
|
2637
|
+
meta: {
|
|
2638
|
+
getWorkflowVersion: PluginMeta;
|
|
2639
|
+
};
|
|
2640
|
+
};
|
|
2529
2641
|
} & {
|
|
2530
2642
|
apps: import("./plugins/apps/schemas").ActionProxy & import("./index").ZapierSdkApps;
|
|
2531
2643
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;A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AAO,eAAe,CAAC,CAAC;AAM3D,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/experimental.js
CHANGED
|
@@ -85,6 +85,11 @@ import { disableWorkflowPlugin } from "./plugins/codeSubstrate/disableWorkflow";
|
|
|
85
85
|
import { deleteWorkflowPlugin } from "./plugins/codeSubstrate/deleteWorkflow";
|
|
86
86
|
import { listDurableRunsPlugin } from "./plugins/codeSubstrate/listDurableRuns";
|
|
87
87
|
import { getDurableRunPlugin } from "./plugins/codeSubstrate/getDurableRun";
|
|
88
|
+
import { runDurablePlugin } from "./plugins/codeSubstrate/runDurable";
|
|
89
|
+
import { cancelDurableRunPlugin } from "./plugins/codeSubstrate/cancelDurableRun";
|
|
90
|
+
import { publishWorkflowVersionPlugin } from "./plugins/codeSubstrate/publishWorkflowVersion";
|
|
91
|
+
import { listWorkflowVersionsPlugin } from "./plugins/codeSubstrate/listWorkflowVersions";
|
|
92
|
+
import { getWorkflowVersionPlugin } from "./plugins/codeSubstrate/getWorkflowVersion";
|
|
88
93
|
// Re-export everything from the stable index so callers importing from
|
|
89
94
|
// the experimental subpath get the full API surface (types, helpers,
|
|
90
95
|
// errors) without having to import from two paths.
|
|
@@ -169,6 +174,11 @@ export function createZapierSdk(options = {}) {
|
|
|
169
174
|
.addPlugin(deleteWorkflowPlugin)
|
|
170
175
|
.addPlugin(listDurableRunsPlugin)
|
|
171
176
|
.addPlugin(getDurableRunPlugin)
|
|
177
|
+
.addPlugin(runDurablePlugin)
|
|
178
|
+
.addPlugin(cancelDurableRunPlugin)
|
|
179
|
+
.addPlugin(publishWorkflowVersionPlugin)
|
|
180
|
+
.addPlugin(listWorkflowVersionsPlugin)
|
|
181
|
+
.addPlugin(getWorkflowVersionPlugin)
|
|
172
182
|
// Magic apps plugin
|
|
173
183
|
.addPlugin(appsPlugin)
|
|
174
184
|
// Profile
|