@zapier/zapier-sdk 0.70.3 → 0.71.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 +35 -0
- package/README.md +248 -95
- package/dist/api/approval-review-stream.d.ts +25 -0
- package/dist/api/approval-review-stream.d.ts.map +1 -0
- package/dist/api/approval-review-stream.js +104 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +215 -27
- package/dist/api/types.d.ts +13 -3
- package/dist/api/types.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +6 -0
- package/dist/experimental.cjs +702 -67
- package/dist/experimental.d.mts +242 -2
- package/dist/experimental.d.ts +240 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +10 -0
- package/dist/experimental.mjs +702 -68
- package/dist/{index-rIzBEINC.d.mts → index-B43uST61.d.mts} +248 -10
- package/dist/{index-rIzBEINC.d.ts → index-B43uST61.d.ts} +248 -10
- package/dist/index.cjs +592 -32
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +592 -33
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +2 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts +5 -5
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +31 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +42 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +20 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +35 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts +13 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.js +10 -0
- package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +22 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.js +10 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +32 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +11 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +22 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +14 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +11 -44
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +6 -0
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.js +3 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts +12 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/runDurable/schemas.js +33 -0
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts +37 -0
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/shared-schemas.js +69 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +11 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts +2 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.js +7 -0
- package/dist/plugins/createConnection/index.d.ts +189 -0
- package/dist/plugins/createConnection/index.d.ts.map +1 -0
- package/dist/plugins/createConnection/index.js +71 -0
- package/dist/plugins/createConnection/schemas.d.ts +21 -0
- package/dist/plugins/createConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/createConnection/schemas.js +38 -0
- package/dist/plugins/getConnectionStartUrl/index.d.ts +206 -0
- package/dist/plugins/getConnectionStartUrl/index.d.ts.map +1 -0
- package/dist/plugins/getConnectionStartUrl/index.js +39 -0
- package/dist/plugins/getConnectionStartUrl/schemas.d.ts +15 -0
- package/dist/plugins/getConnectionStartUrl/schemas.d.ts.map +1 -0
- package/dist/plugins/getConnectionStartUrl/schemas.js +23 -0
- package/dist/plugins/waitForNewConnection/index.d.ts +209 -0
- package/dist/plugins/waitForNewConnection/index.d.ts.map +1 -0
- package/dist/plugins/waitForNewConnection/index.js +75 -0
- package/dist/plugins/waitForNewConnection/schemas.d.ts +17 -0
- package/dist/plugins/waitForNewConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/waitForNewConnection/schemas.js +39 -0
- package/dist/sdk.d.ts +126 -0
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +8 -0
- package/dist/types/errors.d.ts +13 -4
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +2 -0
- package/dist/types/sdk.d.ts +1 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +5 -1
- package/dist/utils/open-url.d.ts.map +1 -1
- package/dist/utils/open-url.js +7 -0
- package/dist/utils/should-open-browser.d.ts +24 -0
- package/dist/utils/should-open-browser.d.ts.map +1 -0
- package/dist/utils/should-open-browser.js +55 -0
- package/package.json +1 -1
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, F as FieldsetItem,
|
|
2
|
-
export {
|
|
1
|
+
import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as WithAddPlugin } from './index-B43uST61.mjs';
|
|
2
|
+
export { H as Action, cf as ActionExecutionOptions, Q as ActionExecutionResult, S as ActionField, V as ActionFieldChoice, aT as ActionItem, bt as ActionKeyProperty, b1 as ActionKeyPropertySchema, bu as ActionProperty, b2 as ActionPropertySchema, aH as ActionResolverItem, bF as ActionTimeoutMsProperty, bd as ActionTimeoutMsPropertySchema, aI as ActionTypeItem, bs as ActionTypeProperty, b0 as ActionTypePropertySchema, cb as ApiError, dF as ApiEvent, cZ as ApiPluginOptions, c$ as ApiPluginProvides, I as App, cg as AppFactoryInput, aR as AppItem, bq as AppKeyProperty, a_ as AppKeyPropertySchema, br as AppProperty, a$ as AppPropertySchema, eP as ApplicationLifecycleEventData, c7 as ApprovalStatus, ce as AppsPluginProvides, bK as AppsProperty, bi as AppsPropertySchema, a8 as ArrayResolver, dE as AuthEvent, by as AuthenticationIdProperty, b5 as AuthenticationIdPropertySchema, eX as BaseEvent, av as BaseSdkOptionsSchema, aj as BatchOptions, cM as CONTEXT_CACHE_MAX_SIZE, cL as CONTEXT_CACHE_TTL_MS, az as CORE_ERROR_SYMBOL, K as Choice, dL as ClientCredentialsObject, dW as ClientCredentialsObjectSchema, _ as Connection, e2 as ConnectionEntry, e1 as ConnectionEntrySchema, bw as ConnectionIdProperty, b4 as ConnectionIdPropertySchema, aS as ConnectionItem, bx as ConnectionProperty, b6 as ConnectionPropertySchema, e4 as ConnectionsMap, e3 as ConnectionsMapSchema, e6 as ConnectionsPluginProvides, bM as ConnectionsProperty, bk as ConnectionsPropertySchema, $ as ConnectionsResponse, aA as CoreErrorCode, cy as CreateClientCredentialsPluginProvides, ex as CreateTableFieldsPluginProvides, er as CreateTablePluginProvides, eF as CreateTableRecordsPluginProvides, dI as Credentials, d$ as CredentialsFunction, d_ as CredentialsFunctionSchema, dK as CredentialsObject, dY as CredentialsObjectSchema, e0 as CredentialsSchema, eb as DEFAULT_ACTION_TIMEOUT_MS, ek as DEFAULT_APPROVAL_TIMEOUT_MS, cV as DEFAULT_CONFIG_PATH, el as DEFAULT_MAX_APPROVAL_RETRIES, ea as DEFAULT_PAGE_SIZE, bD as DebugProperty, bb as DebugPropertySchema, cA as DeleteClientCredentialsPluginProvides, ez as DeleteTableFieldsPluginProvides, et as DeleteTablePluginProvides, eH as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ab as DynamicListResolver, ac as DynamicSearchResolver, eQ as EnhancedErrorEventData, bS as ErrorOptions, dH as EventCallback, eO as EventContext, eL as EventEmissionConfig, eN as EventEmissionProvides, ci as FetchPluginProvides, J as Field, bJ as FieldsProperty, bh as FieldsPropertySchema, ad as FieldsResolver, y as FindFirstAuthenticationPluginProvides, cI as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, cK as FindUniqueConnectionPluginProvides, a6 as FormattedItem, au as FunctionDeprecation, at as FunctionRegistryEntry, cs as GetActionInputFieldsSchemaPluginProvides, cE as GetActionPluginProvides, cC as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cG as GetConnectionPluginProvides, cY as GetProfilePluginProvides, ep as GetTablePluginProvides, eB as GetTableRecordPluginProvides, aV as InfoFieldItem, aU as InputFieldItem, bv as InputFieldProperty, b3 as InputFieldPropertySchema, bz as InputsProperty, b7 as InputsPropertySchema, aQ as JsonSseMessage, bR as LeaseLimitProperty, bp as LeaseLimitPropertySchema, bP as LeaseProperty, bn as LeasePropertySchema, bQ as LeaseSecondsProperty, bo as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bA as LimitProperty, b8 as LimitPropertySchema, cq as ListActionInputFieldChoicesPluginProvides, co as ListActionInputFieldsPluginProvides, cm as ListActionsPluginProvides, ck as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cw as ListClientCredentialsPluginProvides, cu as ListConnectionsPluginProvides, ev as ListTableFieldsPluginProvides, eD as ListTableRecordsPluginProvides, en as ListTablesPluginProvides, dG as LoadingEvent, ee as MAX_CONCURRENCY_LIMIT, e9 as MAX_PAGE_LIMIT, cW as ManifestEntry, cR as ManifestPluginOptions, cU as ManifestPluginProvides, eY as MethodCalledEvent, eR as MethodCalledEventData, N as Need, X as NeedsRequest, Y as NeedsResponse, bB as OffsetProperty, b9 as OffsetPropertySchema, bC as OutputProperty, ba as OutputPropertySchema, aZ as PaginatedSdkFunction, bE as ParamsProperty, bc as ParamsPropertySchema, dM as PkceCredentialsObject, dX as PkceCredentialsObjectSchema, aB as Plugin, aC as PluginProvides, aL as PollOptions, c5 as RateLimitInfo, bH as RecordProperty, bf as RecordPropertySchema, bI as RecordsProperty, bg as RecordsPropertySchema, ao as RelayFetchSchema, an as RelayRequestSchema, aK as RequestOptions, cQ as RequestPluginProvides, dr as ResolveAuthTokenOptions, dR as ResolveCredentialsOptions, dJ as ResolvedCredentials, dZ as ResolvedCredentialsSchema, a7 as Resolver, a9 as ResolverMetadata, aW as RootFieldItem, cO as RunActionPluginProvides, dD as SdkEvent, aY as SdkPage, aP as SseMessage, aa as StaticResolver, bG as TableProperty, be as TablePropertySchema, bL as TablesProperty, bj as TablesPropertySchema, bO as TriggerInboxNameProperty, bm as TriggerInboxNamePropertySchema, bN as TriggerInboxProperty, bl as TriggerInboxPropertySchema, T as TriggerMessageStatus, eJ as UpdateTableRecordsPluginProvides, a0 as UserProfile, aX as UserProfileItem, e7 as ZAPIER_BASE_URL, eg as ZAPIER_MAX_CONCURRENT_REQUESTS, ec as ZAPIER_MAX_NETWORK_RETRIES, ed as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, c3 as ZapierActionError, bY as ZapierApiError, bZ as ZapierAppNotFoundError, c8 as ZapierApprovalError, bW as ZapierAuthenticationError, c1 as ZapierBundleError, dz as ZapierCache, dA as ZapierCacheEntry, dB as ZapierCacheSetOptions, c0 as ZapierConfigurationError, c4 as ZapierConflictError, bT as ZapierError, b_ as ZapierNotFoundError, c6 as ZapierRateLimitError, c9 as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, b$ as ZapierResourceNotFoundError, cc as ZapierSignal, c2 as ZapierTimeoutError, bV as ZapierUnknownError, bU as ZapierValidationError, d2 as actionKeyResolver, d1 as actionTypeResolver, a5 as addPlugin, c_ as apiPlugin, d0 as appKeyResolver, cd as appsPlugin, d4 as authenticationIdGenericResolver, d3 as authenticationIdResolver, ai as batch, eS as buildApplicationLifecycleEvent, ak as buildCapabilityMessage, eU as buildErrorEvent, eT as buildErrorEventWithContext, eW as buildMethodCalledEvent, eK as cleanupEventListeners, ds as clearTokenCache, d8 as clientCredentialsNameResolver, d9 as clientIdResolver, aG as composePlugins, d4 as connectionIdGenericResolver, d3 as connectionIdResolver, e5 as connectionsPlugin, eV as createBaseEvent, cx as createClientCredentialsPlugin, a4 as createCorePlugin, a2 as createFunction, dC as createMemoryCache, ar as createOptionsPlugin, aF as createPaginatedPluginMethod, aE as createPluginMethod, a3 as createPluginStack, aq as createSdk, ew as createTableFieldsPlugin, eq as createTablePlugin, eE as createTableRecordsPlugin, aM as createZapierApi, as as createZapierCoreStack, ap as createZapierSdkWithoutRegistry, aD as definePlugin, cz as deleteClientCredentialsPlugin, ey as deleteTableFieldsPlugin, es as deleteTablePlugin, eG as deleteTableRecordsPlugin, dd as durableRunIdResolver, eM as eventEmissionPlugin, ch as fetchPlugin, cH as findFirstConnectionPlugin, cJ as findUniqueConnectionPlugin, ca as formatErrorMessage, eZ as generateEventId, cr as getActionInputFieldsSchemaPlugin, cD as getActionPlugin, f7 as getAgent, cB as getAppPlugin, dU as getBaseUrlFromCredentials, f3 as getCiPlatform, dV as getClientIdFromCredentials, cF as getConnectionPlugin, ay as getCoreErrorCause, ax as getCoreErrorCode, f5 as getCpuTime, e_ as getCurrentTimestamp, f4 as getMemoryUsage, aN as getOrCreateApiClient, f0 as getOsInfo, f1 as getPlatformVersions, cS as getPreferredManifestEntryKey, cX as getProfilePlugin, e$ as getReleaseId, eo as getTablePlugin, eA as getTableRecordPlugin, dw as getTokenFromCliLogin, f6 as getTtyContext, eh as getZapierApprovalMode, ej as getZapierDefaultApprovalMode, ei as getZapierOpenAutoModeApprovalsInBrowser, e8 as getZapierSdkService, du as injectCliLogin, d7 as inputFieldKeyResolver, d6 as inputsAllOptionalResolver, d5 as inputsResolver, dt as invalidateCachedToken, dy as invalidateCredentialsToken, f2 as isCi, dv as isCliLoginAvailable, dN as isClientCredentials, aw as isCoreError, dQ as isCredentialsFunction, dP as isCredentialsObject, aO as isPermanentHttpError, dO as isPkceCredentials, a1 as isPositional, cp as listActionInputFieldChoicesPlugin, cn as listActionInputFieldsPlugin, cl as listActionsPlugin, cj as listAppsPlugin, cv as listClientCredentialsPlugin, ct as listConnectionsPlugin, eu as listTableFieldsPlugin, eC as listTableRecordsPlugin, em as listTablesPlugin, al as logDeprecation, cT as manifestPlugin, ef as parseConcurrencyEnvVar, aJ as registryPlugin, cP as requestPlugin, am as resetDeprecationWarnings, dx as resolveAuthToken, dT as resolveCredentials, dS as resolveCredentialsFromEnv, cN as runActionPlugin, ae as runInMethodScope, af as runWithTelemetryContext, dj as tableFieldIdsResolver, dl as tableFieldsResolver, dp as tableFiltersResolver, da as tableIdResolver, dk as tableNameResolver, dh as tableRecordIdResolver, di as tableRecordIdsResolver, dm as tableRecordsResolver, dq as tableSortResolver, dn as tableUpdateRecordsResolver, ag as toSnakeCase, ah as toTitleCase, db as triggerInboxResolver, dg as triggerMessagesResolver, eI as updateTableRecordsPlugin, dc as workflowIdResolver, df as workflowRunIdResolver, de as workflowVersionIdResolver, bX as zapierAdaptError } from './index-B43uST61.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';
|
|
@@ -427,6 +427,48 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
427
427
|
findUniqueConnection: PluginMeta<unknown>;
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
+
} & {
|
|
431
|
+
getConnectionStartUrl: (options?: {
|
|
432
|
+
app: string;
|
|
433
|
+
} | undefined) => Promise<{
|
|
434
|
+
data: GetConnectionStartUrlItem;
|
|
435
|
+
}>;
|
|
436
|
+
} & {
|
|
437
|
+
context: {
|
|
438
|
+
meta: {
|
|
439
|
+
getConnectionStartUrl: PluginMeta<unknown>;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
} & {
|
|
443
|
+
waitForNewConnection: (options?: {
|
|
444
|
+
app: string;
|
|
445
|
+
startedAt: number;
|
|
446
|
+
timeoutMs?: number | undefined;
|
|
447
|
+
pollIntervalMs?: number | undefined;
|
|
448
|
+
} | undefined) => Promise<{
|
|
449
|
+
data: WaitForNewConnectionItem;
|
|
450
|
+
}>;
|
|
451
|
+
} & {
|
|
452
|
+
context: {
|
|
453
|
+
meta: {
|
|
454
|
+
waitForNewConnection: PluginMeta<unknown>;
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
} & {
|
|
458
|
+
createConnection: (options?: {
|
|
459
|
+
app: string;
|
|
460
|
+
browser: "never" | "auto" | "always";
|
|
461
|
+
timeoutMs?: number | undefined;
|
|
462
|
+
pollIntervalMs?: number | undefined;
|
|
463
|
+
} | undefined) => Promise<{
|
|
464
|
+
data: CreateConnectionItem;
|
|
465
|
+
}>;
|
|
466
|
+
} & {
|
|
467
|
+
context: {
|
|
468
|
+
meta: {
|
|
469
|
+
createConnection: PluginMeta<unknown>;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
430
472
|
} & {
|
|
431
473
|
listActions: (options?: (({
|
|
432
474
|
app: string;
|
|
@@ -2537,7 +2579,16 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2537
2579
|
description: string | null;
|
|
2538
2580
|
trigger_url: string;
|
|
2539
2581
|
enabled: boolean;
|
|
2582
|
+
is_private: boolean;
|
|
2583
|
+
created_by_user_id: string | null;
|
|
2540
2584
|
current_version_id: string | null;
|
|
2585
|
+
triggers: {
|
|
2586
|
+
selected_api: string;
|
|
2587
|
+
action: string;
|
|
2588
|
+
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
2589
|
+
authentication_id?: string | null | undefined;
|
|
2590
|
+
params?: Record<string, unknown> | undefined;
|
|
2591
|
+
}[];
|
|
2541
2592
|
created_at: string;
|
|
2542
2593
|
updated_at: string;
|
|
2543
2594
|
}>;
|
|
@@ -2557,6 +2608,15 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2557
2608
|
description: string | null;
|
|
2558
2609
|
trigger_url: string;
|
|
2559
2610
|
enabled: boolean;
|
|
2611
|
+
is_private: boolean;
|
|
2612
|
+
created_by_user_id: string | null;
|
|
2613
|
+
triggers: {
|
|
2614
|
+
selected_api: string;
|
|
2615
|
+
action: string;
|
|
2616
|
+
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
2617
|
+
authentication_id?: string | null | undefined;
|
|
2618
|
+
params?: Record<string, unknown> | undefined;
|
|
2619
|
+
}[];
|
|
2560
2620
|
created_at: string;
|
|
2561
2621
|
updated_at: string;
|
|
2562
2622
|
current_version?: {
|
|
@@ -2567,6 +2627,19 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2567
2627
|
dependencies: Record<string, string> | null;
|
|
2568
2628
|
created_by_user_id: string;
|
|
2569
2629
|
created_at: string;
|
|
2630
|
+
trigger: {
|
|
2631
|
+
selected_api: string;
|
|
2632
|
+
action: string;
|
|
2633
|
+
authentication_id?: string | null | undefined;
|
|
2634
|
+
params?: Record<string, unknown> | undefined;
|
|
2635
|
+
} | null;
|
|
2636
|
+
connections: Record<string, {
|
|
2637
|
+
connection_id: string | number;
|
|
2638
|
+
}> | null;
|
|
2639
|
+
app_versions: Record<string, {
|
|
2640
|
+
implementation_name: string;
|
|
2641
|
+
version?: string | undefined;
|
|
2642
|
+
}> | null;
|
|
2570
2643
|
} | undefined;
|
|
2571
2644
|
};
|
|
2572
2645
|
}>;
|
|
@@ -2611,6 +2684,8 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2611
2684
|
description: string | null;
|
|
2612
2685
|
trigger_url: string;
|
|
2613
2686
|
enabled: boolean;
|
|
2687
|
+
is_private: boolean;
|
|
2688
|
+
created_by_user_id: string | null;
|
|
2614
2689
|
created_at: string;
|
|
2615
2690
|
updated_at: string;
|
|
2616
2691
|
};
|
|
@@ -2773,6 +2848,12 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2773
2848
|
version?: string | undefined;
|
|
2774
2849
|
}> | undefined;
|
|
2775
2850
|
private?: boolean | undefined;
|
|
2851
|
+
notifications?: {
|
|
2852
|
+
url: string;
|
|
2853
|
+
events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
|
|
2854
|
+
type?: "webhook" | undefined;
|
|
2855
|
+
max_retries?: number | undefined;
|
|
2856
|
+
}[] | undefined;
|
|
2776
2857
|
} | undefined) => Promise<{
|
|
2777
2858
|
data: {
|
|
2778
2859
|
id: string;
|
|
@@ -2831,6 +2912,19 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2831
2912
|
dependencies: Record<string, string> | null;
|
|
2832
2913
|
created_by_user_id: string;
|
|
2833
2914
|
created_at: string;
|
|
2915
|
+
trigger: {
|
|
2916
|
+
selected_api: string;
|
|
2917
|
+
action: string;
|
|
2918
|
+
authentication_id?: string | null | undefined;
|
|
2919
|
+
params?: Record<string, unknown> | undefined;
|
|
2920
|
+
} | null;
|
|
2921
|
+
connections: Record<string, {
|
|
2922
|
+
connection_id: string | number;
|
|
2923
|
+
}> | null;
|
|
2924
|
+
app_versions: Record<string, {
|
|
2925
|
+
implementation_name: string;
|
|
2926
|
+
version?: string | undefined;
|
|
2927
|
+
}> | null;
|
|
2834
2928
|
};
|
|
2835
2929
|
}>;
|
|
2836
2930
|
} & {
|
|
@@ -2856,6 +2950,19 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2856
2950
|
dependencies: Record<string, string> | null;
|
|
2857
2951
|
created_by_user_id: string;
|
|
2858
2952
|
created_at: string;
|
|
2953
|
+
trigger: {
|
|
2954
|
+
selected_api: string;
|
|
2955
|
+
action: string;
|
|
2956
|
+
authentication_id?: string | null | undefined;
|
|
2957
|
+
params?: Record<string, unknown> | undefined;
|
|
2958
|
+
} | null;
|
|
2959
|
+
connections: Record<string, {
|
|
2960
|
+
connection_id: string | number;
|
|
2961
|
+
}> | null;
|
|
2962
|
+
app_versions: Record<string, {
|
|
2963
|
+
implementation_name: string;
|
|
2964
|
+
version?: string | undefined;
|
|
2965
|
+
}> | null;
|
|
2859
2966
|
}>;
|
|
2860
2967
|
} & {
|
|
2861
2968
|
context: {
|
|
@@ -2876,6 +2983,19 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2876
2983
|
dependencies: Record<string, string> | null;
|
|
2877
2984
|
created_by_user_id: string;
|
|
2878
2985
|
created_at: string;
|
|
2986
|
+
trigger: {
|
|
2987
|
+
selected_api: string;
|
|
2988
|
+
action: string;
|
|
2989
|
+
authentication_id?: string | null | undefined;
|
|
2990
|
+
params?: Record<string, unknown> | undefined;
|
|
2991
|
+
} | null;
|
|
2992
|
+
connections: Record<string, {
|
|
2993
|
+
connection_id: string | number;
|
|
2994
|
+
}> | null;
|
|
2995
|
+
app_versions: Record<string, {
|
|
2996
|
+
implementation_name: string;
|
|
2997
|
+
version?: string | undefined;
|
|
2998
|
+
}> | null;
|
|
2879
2999
|
};
|
|
2880
3000
|
}>;
|
|
2881
3001
|
} & {
|
|
@@ -3432,6 +3552,48 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
3432
3552
|
findUniqueConnection: PluginMeta<unknown>;
|
|
3433
3553
|
};
|
|
3434
3554
|
};
|
|
3555
|
+
} & {
|
|
3556
|
+
getConnectionStartUrl: (options?: {
|
|
3557
|
+
app: string;
|
|
3558
|
+
} | undefined) => Promise<{
|
|
3559
|
+
data: GetConnectionStartUrlItem;
|
|
3560
|
+
}>;
|
|
3561
|
+
} & {
|
|
3562
|
+
context: {
|
|
3563
|
+
meta: {
|
|
3564
|
+
getConnectionStartUrl: PluginMeta<unknown>;
|
|
3565
|
+
};
|
|
3566
|
+
};
|
|
3567
|
+
} & {
|
|
3568
|
+
waitForNewConnection: (options?: {
|
|
3569
|
+
app: string;
|
|
3570
|
+
startedAt: number;
|
|
3571
|
+
timeoutMs?: number | undefined;
|
|
3572
|
+
pollIntervalMs?: number | undefined;
|
|
3573
|
+
} | undefined) => Promise<{
|
|
3574
|
+
data: WaitForNewConnectionItem;
|
|
3575
|
+
}>;
|
|
3576
|
+
} & {
|
|
3577
|
+
context: {
|
|
3578
|
+
meta: {
|
|
3579
|
+
waitForNewConnection: PluginMeta<unknown>;
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
} & {
|
|
3583
|
+
createConnection: (options?: {
|
|
3584
|
+
app: string;
|
|
3585
|
+
browser: "never" | "auto" | "always";
|
|
3586
|
+
timeoutMs?: number | undefined;
|
|
3587
|
+
pollIntervalMs?: number | undefined;
|
|
3588
|
+
} | undefined) => Promise<{
|
|
3589
|
+
data: CreateConnectionItem;
|
|
3590
|
+
}>;
|
|
3591
|
+
} & {
|
|
3592
|
+
context: {
|
|
3593
|
+
meta: {
|
|
3594
|
+
createConnection: PluginMeta<unknown>;
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
3435
3597
|
} & {
|
|
3436
3598
|
listActions: (options?: (({
|
|
3437
3599
|
app: string;
|
|
@@ -5542,7 +5704,16 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5542
5704
|
description: string | null;
|
|
5543
5705
|
trigger_url: string;
|
|
5544
5706
|
enabled: boolean;
|
|
5707
|
+
is_private: boolean;
|
|
5708
|
+
created_by_user_id: string | null;
|
|
5545
5709
|
current_version_id: string | null;
|
|
5710
|
+
triggers: {
|
|
5711
|
+
selected_api: string;
|
|
5712
|
+
action: string;
|
|
5713
|
+
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
5714
|
+
authentication_id?: string | null | undefined;
|
|
5715
|
+
params?: Record<string, unknown> | undefined;
|
|
5716
|
+
}[];
|
|
5546
5717
|
created_at: string;
|
|
5547
5718
|
updated_at: string;
|
|
5548
5719
|
}>;
|
|
@@ -5562,6 +5733,15 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5562
5733
|
description: string | null;
|
|
5563
5734
|
trigger_url: string;
|
|
5564
5735
|
enabled: boolean;
|
|
5736
|
+
is_private: boolean;
|
|
5737
|
+
created_by_user_id: string | null;
|
|
5738
|
+
triggers: {
|
|
5739
|
+
selected_api: string;
|
|
5740
|
+
action: string;
|
|
5741
|
+
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
5742
|
+
authentication_id?: string | null | undefined;
|
|
5743
|
+
params?: Record<string, unknown> | undefined;
|
|
5744
|
+
}[];
|
|
5565
5745
|
created_at: string;
|
|
5566
5746
|
updated_at: string;
|
|
5567
5747
|
current_version?: {
|
|
@@ -5572,6 +5752,19 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5572
5752
|
dependencies: Record<string, string> | null;
|
|
5573
5753
|
created_by_user_id: string;
|
|
5574
5754
|
created_at: string;
|
|
5755
|
+
trigger: {
|
|
5756
|
+
selected_api: string;
|
|
5757
|
+
action: string;
|
|
5758
|
+
authentication_id?: string | null | undefined;
|
|
5759
|
+
params?: Record<string, unknown> | undefined;
|
|
5760
|
+
} | null;
|
|
5761
|
+
connections: Record<string, {
|
|
5762
|
+
connection_id: string | number;
|
|
5763
|
+
}> | null;
|
|
5764
|
+
app_versions: Record<string, {
|
|
5765
|
+
implementation_name: string;
|
|
5766
|
+
version?: string | undefined;
|
|
5767
|
+
}> | null;
|
|
5575
5768
|
} | undefined;
|
|
5576
5769
|
};
|
|
5577
5770
|
}>;
|
|
@@ -5616,6 +5809,8 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5616
5809
|
description: string | null;
|
|
5617
5810
|
trigger_url: string;
|
|
5618
5811
|
enabled: boolean;
|
|
5812
|
+
is_private: boolean;
|
|
5813
|
+
created_by_user_id: string | null;
|
|
5619
5814
|
created_at: string;
|
|
5620
5815
|
updated_at: string;
|
|
5621
5816
|
};
|
|
@@ -5778,6 +5973,12 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5778
5973
|
version?: string | undefined;
|
|
5779
5974
|
}> | undefined;
|
|
5780
5975
|
private?: boolean | undefined;
|
|
5976
|
+
notifications?: {
|
|
5977
|
+
url: string;
|
|
5978
|
+
events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
|
|
5979
|
+
type?: "webhook" | undefined;
|
|
5980
|
+
max_retries?: number | undefined;
|
|
5981
|
+
}[] | undefined;
|
|
5781
5982
|
} | undefined) => Promise<{
|
|
5782
5983
|
data: {
|
|
5783
5984
|
id: string;
|
|
@@ -5836,6 +6037,19 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5836
6037
|
dependencies: Record<string, string> | null;
|
|
5837
6038
|
created_by_user_id: string;
|
|
5838
6039
|
created_at: string;
|
|
6040
|
+
trigger: {
|
|
6041
|
+
selected_api: string;
|
|
6042
|
+
action: string;
|
|
6043
|
+
authentication_id?: string | null | undefined;
|
|
6044
|
+
params?: Record<string, unknown> | undefined;
|
|
6045
|
+
} | null;
|
|
6046
|
+
connections: Record<string, {
|
|
6047
|
+
connection_id: string | number;
|
|
6048
|
+
}> | null;
|
|
6049
|
+
app_versions: Record<string, {
|
|
6050
|
+
implementation_name: string;
|
|
6051
|
+
version?: string | undefined;
|
|
6052
|
+
}> | null;
|
|
5839
6053
|
};
|
|
5840
6054
|
}>;
|
|
5841
6055
|
} & {
|
|
@@ -5861,6 +6075,19 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5861
6075
|
dependencies: Record<string, string> | null;
|
|
5862
6076
|
created_by_user_id: string;
|
|
5863
6077
|
created_at: string;
|
|
6078
|
+
trigger: {
|
|
6079
|
+
selected_api: string;
|
|
6080
|
+
action: string;
|
|
6081
|
+
authentication_id?: string | null | undefined;
|
|
6082
|
+
params?: Record<string, unknown> | undefined;
|
|
6083
|
+
} | null;
|
|
6084
|
+
connections: Record<string, {
|
|
6085
|
+
connection_id: string | number;
|
|
6086
|
+
}> | null;
|
|
6087
|
+
app_versions: Record<string, {
|
|
6088
|
+
implementation_name: string;
|
|
6089
|
+
version?: string | undefined;
|
|
6090
|
+
}> | null;
|
|
5864
6091
|
}>;
|
|
5865
6092
|
} & {
|
|
5866
6093
|
context: {
|
|
@@ -5881,6 +6108,19 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5881
6108
|
dependencies: Record<string, string> | null;
|
|
5882
6109
|
created_by_user_id: string;
|
|
5883
6110
|
created_at: string;
|
|
6111
|
+
trigger: {
|
|
6112
|
+
selected_api: string;
|
|
6113
|
+
action: string;
|
|
6114
|
+
authentication_id?: string | null | undefined;
|
|
6115
|
+
params?: Record<string, unknown> | undefined;
|
|
6116
|
+
} | null;
|
|
6117
|
+
connections: Record<string, {
|
|
6118
|
+
connection_id: string | number;
|
|
6119
|
+
}> | null;
|
|
6120
|
+
app_versions: Record<string, {
|
|
6121
|
+
implementation_name: string;
|
|
6122
|
+
version?: string | undefined;
|
|
6123
|
+
}> | null;
|
|
5884
6124
|
};
|
|
5885
6125
|
}>;
|
|
5886
6126
|
} & {
|