@zapier/zapier-sdk 0.77.2 → 0.78.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 +10 -0
- package/dist/experimental.cjs +1057 -178
- package/dist/experimental.d.mts +22 -38
- package/dist/experimental.d.ts +22 -38
- package/dist/experimental.mjs +1049 -179
- package/dist/{index-kC0bJpsG.d.mts → index-BgbftweS.d.mts} +4793 -3885
- package/dist/{index-kC0bJpsG.d.ts → index-BgbftweS.d.ts} +4793 -3885
- package/dist/index.cjs +2489 -1617
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2481 -1618
- package/package.json +2 -2
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, 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
|
|
2
|
-
export { H as Action,
|
|
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$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-BgbftweS.mjs';
|
|
2
|
+
export { H as Action, cv as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b7 as ActionItem, bJ as ActionKeyProperty, bh as ActionKeyPropertySchema, bK as ActionProperty, bi as ActionPropertySchema, aW as ActionResolverItem, bV as ActionTimeoutMsProperty, bt as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bI as ActionTypeProperty, bg as ActionTypePropertySchema, cr as ApiError, dX as ApiEvent, dc as ApiPluginOptions, de as ApiPluginProvides, I as App, cw as AppFactoryInput, b5 as AppItem, bG as AppKeyProperty, be as AppKeyPropertySchema, bH as AppProperty, bf as AppPropertySchema, f5 as ApplicationLifecycleEventData, cn as ApprovalStatus, cu as AppsPluginProvides, b_ as AppsProperty, by as AppsPropertySchema, al as ArrayResolver, dW as AuthEvent, dH as AuthMechanism, bO as AuthenticationIdProperty, bl as AuthenticationIdPropertySchema, fd as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d0 as CONTEXT_CACHE_MAX_SIZE, c$ as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e1 as ClientCredentialsObject, ec as ClientCredentialsObjectSchema, $ as Connection, ek as ConnectionEntry, ej as ConnectionEntrySchema, bM as ConnectionIdProperty, bk as ConnectionIdPropertySchema, b6 as ConnectionItem, bN as ConnectionProperty, bm as ConnectionPropertySchema, em as ConnectionsMap, el as ConnectionsMapSchema, eo as ConnectionsPluginProvides, c0 as ConnectionsProperty, bA as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cO as CreateClientCredentialsPluginProvides, eP as CreateTableFieldsPluginProvides, eJ as CreateTablePluginProvides, eX as CreateTableRecordsPluginProvides, d_ as Credentials, eh as CredentialsFunction, eg as CredentialsFunctionSchema, e0 as CredentialsObject, ee as CredentialsObjectSchema, ei as CredentialsSchema, et as DEFAULT_ACTION_TIMEOUT_MS, eC as DEFAULT_APPROVAL_TIMEOUT_MS, d9 as DEFAULT_CONFIG_PATH, eD as DEFAULT_MAX_APPROVAL_RETRIES, es as DEFAULT_PAGE_SIZE, bT as DebugProperty, br as DebugPropertySchema, cQ as DeleteClientCredentialsPluginProvides, eR as DeleteTableFieldsPluginProvides, eL as DeleteTablePluginProvides, eZ as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ao as DynamicListResolver, ap as DynamicSearchResolver, f6 as EnhancedErrorEventData, c6 as ErrorOptions, dZ as EventCallback, f4 as EventContext, f1 as EventEmissionConfig, f3 as EventEmissionProvides, cy as FetchPluginProvides, J as Field, bZ as FieldsProperty, bx as FieldsPropertySchema, aq as FieldsResolver, y as FindFirstAuthenticationPluginProvides, cY as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, c_ as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cI as GetActionInputFieldsSchemaPluginProvides, cU as GetActionPluginProvides, cS as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cW as GetConnectionPluginProvides, eH as GetTablePluginProvides, eT as GetTableRecordPluginProvides, b9 as InfoFieldItem, b8 as InputFieldItem, bL as InputFieldProperty, bj as InputFieldPropertySchema, bP as InputsProperty, bn as InputsPropertySchema, b4 as JsonSseMessage, c5 as LeaseLimitProperty, bF as LeaseLimitPropertySchema, c3 as LeaseProperty, bD as LeasePropertySchema, c4 as LeaseSecondsProperty, bE as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bQ as LimitProperty, bo as LimitPropertySchema, cG as ListActionInputFieldChoicesPluginProvides, cE as ListActionInputFieldsPluginProvides, cC as ListActionsPluginProvides, cA as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cM as ListClientCredentialsPluginProvides, cK as ListConnectionsPluginProvides, eN as ListTableFieldsPluginProvides, eV as ListTableRecordsPluginProvides, eF as ListTablesPluginProvides, dY as LoadingEvent, ew as MAX_CONCURRENCY_LIMIT, er as MAX_PAGE_LIMIT, da as ManifestEntry, d5 as ManifestPluginOptions, d8 as ManifestPluginProvides, fe as MethodCalledEvent, f7 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bR as OffsetProperty, bp as OffsetPropertySchema, bS as OutputProperty, bq as OutputPropertySchema, bd as PaginatedSdkFunction, bU as ParamsProperty, bs as ParamsPropertySchema, e2 as PkceCredentialsObject, ed as PkceCredentialsObjectSchema, aQ as Plugin, aR as PluginProvides, a$ as PollOptions, cl as RateLimitInfo, bX as RecordProperty, bv as RecordPropertySchema, bY as RecordsProperty, bw as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d4 as RequestPluginProvides, dG as ResolveAuthTokenOptions, e7 as ResolveCredentialsOptions, dI as ResolvedAuth, d$ as ResolvedCredentials, ef as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, ba as RootFieldItem, d2 as RunActionPluginProvides, dV as SdkEvent, bc as SdkPage, b3 as SseMessage, an as StaticResolver, bW as TableProperty, bu as TablePropertySchema, b$ as TablesProperty, bz as TablesPropertySchema, c2 as TriggerInboxNameProperty, bC as TriggerInboxNamePropertySchema, c1 as TriggerInboxProperty, bB as TriggerInboxPropertySchema, T as TriggerMessageStatus, e$ as UpdateTableRecordsPluginProvides, a1 as UserProfile, bb as UserProfileItem, ep as ZAPIER_BASE_URL, ey as ZAPIER_MAX_CONCURRENT_REQUESTS, eu as ZAPIER_MAX_NETWORK_RETRIES, ev as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cj as ZapierActionError, cc as ZapierApiError, cd as ZapierAppNotFoundError, co as ZapierApprovalError, ca as ZapierAuthenticationError, ch as ZapierBundleError, dR as ZapierCache, dS as ZapierCacheEntry, dT as ZapierCacheSetOptions, cg as ZapierConfigurationError, ck as ZapierConflictError, c7 as ZapierError, ce as ZapierNotFoundError, cm as ZapierRateLimitError, cp as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cf as ZapierResourceNotFoundError, cs as ZapierSignal, ci as ZapierTimeoutError, c9 as ZapierUnknownError, c8 as ZapierValidationError, dh as actionKeyResolver, dg as actionTypeResolver, a6 as addPlugin, dd as apiPlugin, df as appKeyResolver, ct as appsPlugin, dj as authenticationIdGenericResolver, di as authenticationIdResolver, ay as batch, f8 as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fa as buildErrorEvent, f9 as buildErrorEventWithContext, fc as buildMethodCalledEvent, f0 as cleanupEventListeners, dJ as clearTokenCache, dn as clientCredentialsNameResolver, dp as clientIdResolver, aV as composePlugins, dj as connectionIdGenericResolver, di as connectionIdResolver, en as connectionsPlugin, fb as createBaseEvent, cN as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dU as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eO as createTableFieldsPlugin, eI as createTablePlugin, eW as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cP as deleteClientCredentialsPlugin, eQ as deleteTableFieldsPlugin, eK as deleteTablePlugin, eY as deleteTableRecordsPlugin, dt as durableRunIdResolver, f2 as eventEmissionPlugin, cx as fetchPlugin, cX as findFirstConnectionPlugin, cZ as findUniqueConnectionPlugin, cq as formatErrorMessage, a8 as fromFunctionPlugin, ff as generateEventId, cH as getActionInputFieldsSchemaPlugin, cT as getActionPlugin, aY as getAgent, cR as getAppPlugin, ea as getBaseUrlFromCredentials, at as getCallerContext, fl as getCiPlatform, eb as getClientIdFromCredentials, cV as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fn as getCpuTime, fg as getCurrentTimestamp, fm as getMemoryUsage, b1 as getOrCreateApiClient, fi as getOsInfo, fj as getPlatformVersions, d6 as getPreferredManifestEntryKey, db as getProfilePlugin, fh as getReleaseId, eG as getTablePlugin, eS as getTableRecordPlugin, dN as getTokenFromCliLogin, fo as getTtyContext, ez as getZapierApprovalMode, eB as getZapierDefaultApprovalMode, eA as getZapierOpenAutoModeApprovalsInBrowser, eq as getZapierSdkService, dL as injectCliLogin, dm as inputFieldKeyResolver, dl as inputsAllOptionalResolver, dk as inputsResolver, dK as invalidateCachedToken, dQ as invalidateCredentialsToken, fk as isCi, dM as isCliLoginAvailable, e3 as isClientCredentials, aL as isCoreError, e6 as isCredentialsFunction, e5 as isCredentialsObject, b2 as isPermanentHttpError, e4 as isPkceCredentials, a2 as isPositional, cF as listActionInputFieldChoicesPlugin, cD as listActionInputFieldsPlugin, cB as listActionsPlugin, cz as listAppsPlugin, cL as listClientCredentialsPlugin, cJ as listConnectionsPlugin, eM as listTableFieldsPlugin, eU as listTableRecordsPlugin, eE as listTablesPlugin, aB as logDeprecation, d7 as manifestPlugin, ex as parseConcurrencyEnvVar, aZ as registryPlugin, d3 as requestPlugin, aC as resetDeprecationWarnings, dO as resolveAuth, dP as resolveAuthToken, e9 as resolveCredentials, e8 as resolveCredentialsFromEnv, d1 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dz as tableFieldIdsResolver, dB as tableFieldsResolver, dE as tableFiltersResolver, dq as tableIdResolver, dA as tableNameResolver, dx as tableRecordIdResolver, dy as tableRecordIdsResolver, dC as tableRecordsResolver, dF as tableSortResolver, dD as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dr as triggerInboxResolver, dw as triggerMessagesResolver, e_ as updateTableRecordsPlugin, ds as workflowIdResolver, dv as workflowRunIdResolver, du as workflowVersionIdResolver, cb as zapierAdaptError, ag as zapierSdkPlugin } from './index-BgbftweS.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';
|
|
@@ -9,11 +9,13 @@ import '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
|
9
9
|
interface ZapierSdkOptions extends BaseSdkOptions {
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Build the unsealed `PluginStack` for the experimental SDK. Mirror of
|
|
13
|
-
* `createZapierSdkStack` from the stable entry: downstream
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* Build the unsealed legacy `PluginStack` for the experimental SDK. Mirror of
|
|
13
|
+
* `createZapierSdkStack` from the stable entry: a downstream head layers its
|
|
14
|
+
* base plugins via `.use(...)` and then merges with `zapierSdkPlugin` via
|
|
15
|
+
* `defineLegacyMerge`, the way `createZapierSdk` does. As with the stable
|
|
16
|
+
* stack, calling `.toSdk()` here materializes the legacy surface only and
|
|
17
|
+
* omits module-model migrated methods (e.g. `getProfile`); for a full SDK plus
|
|
18
|
+
* extensions, use `createZapierSdk(options)` then `addPlugin(sdk, plugin)`.
|
|
17
19
|
*
|
|
18
20
|
* Shadows the re-export from `./index` so consumers of
|
|
19
21
|
* `@zapier/zapier-sdk/experimental` get the experimental factory under
|
|
@@ -2004,7 +2006,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2004
2006
|
maxMessages: zod.ZodOptional<zod.ZodNumber>;
|
|
2005
2007
|
}, zod_v4_core.$strip>;
|
|
2006
2008
|
resolvers: {
|
|
2007
|
-
inbox: DynamicResolver<{
|
|
2009
|
+
inbox: DynamicResolver$1<{
|
|
2008
2010
|
listTriggerInboxes: (options?: ({
|
|
2009
2011
|
name?: string | undefined;
|
|
2010
2012
|
status?: string | undefined;
|
|
@@ -2080,7 +2082,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2080
2082
|
maxDrainIntervalSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
2081
2083
|
}, zod_v4_core.$strip>;
|
|
2082
2084
|
resolvers: {
|
|
2083
|
-
inbox: DynamicResolver<{
|
|
2085
|
+
inbox: DynamicResolver$1<{
|
|
2084
2086
|
listTriggerInboxes: (options?: ({
|
|
2085
2087
|
name?: string | undefined;
|
|
2086
2088
|
status?: string | undefined;
|
|
@@ -3203,26 +3205,8 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
3203
3205
|
};
|
|
3204
3206
|
};
|
|
3205
3207
|
};
|
|
3206
|
-
} & {
|
|
3207
|
-
getProfile: (options?: Record<string, never> | undefined) => Promise<{
|
|
3208
|
-
data: {
|
|
3209
|
-
id: string;
|
|
3210
|
-
first_name: string;
|
|
3211
|
-
last_name: string;
|
|
3212
|
-
full_name: string;
|
|
3213
|
-
email: string;
|
|
3214
|
-
email_confirmed: boolean;
|
|
3215
|
-
timezone: string;
|
|
3216
|
-
};
|
|
3217
|
-
}>;
|
|
3218
|
-
} & {
|
|
3219
|
-
context: {
|
|
3220
|
-
meta: {
|
|
3221
|
-
getProfile: PluginMeta<unknown>;
|
|
3222
|
-
};
|
|
3223
|
-
};
|
|
3224
3208
|
}>;
|
|
3225
|
-
declare function createZapierSdk(options?: ZapierSdkOptions):
|
|
3209
|
+
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
3226
3210
|
context: {
|
|
3227
3211
|
meta: Record<string, PluginMeta>;
|
|
3228
3212
|
hooks: MethodHooks;
|
|
@@ -5207,7 +5191,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5207
5191
|
maxMessages: zod.ZodOptional<zod.ZodNumber>;
|
|
5208
5192
|
}, zod_v4_core.$strip>;
|
|
5209
5193
|
resolvers: {
|
|
5210
|
-
inbox: DynamicResolver<{
|
|
5194
|
+
inbox: DynamicResolver$1<{
|
|
5211
5195
|
listTriggerInboxes: (options?: ({
|
|
5212
5196
|
name?: string | undefined;
|
|
5213
5197
|
status?: string | undefined;
|
|
@@ -5283,7 +5267,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5283
5267
|
maxDrainIntervalSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
5284
5268
|
}, zod_v4_core.$strip>;
|
|
5285
5269
|
resolvers: {
|
|
5286
|
-
inbox: DynamicResolver<{
|
|
5270
|
+
inbox: DynamicResolver$1<{
|
|
5287
5271
|
listTriggerInboxes: (options?: ({
|
|
5288
5272
|
name?: string | undefined;
|
|
5289
5273
|
status?: string | undefined;
|
|
@@ -6407,7 +6391,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
6407
6391
|
};
|
|
6408
6392
|
};
|
|
6409
6393
|
} & {
|
|
6410
|
-
|
|
6394
|
+
getRegistry: (options?: {
|
|
6395
|
+
package?: string;
|
|
6396
|
+
}) => RegistryResult;
|
|
6397
|
+
} & {
|
|
6398
|
+
getProfile: (input?: Record<string, never> | undefined) => Promise<{
|
|
6411
6399
|
data: {
|
|
6412
6400
|
id: string;
|
|
6413
6401
|
first_name: string;
|
|
@@ -6419,13 +6407,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
6419
6407
|
};
|
|
6420
6408
|
}>;
|
|
6421
6409
|
} & {
|
|
6422
|
-
context:
|
|
6423
|
-
|
|
6424
|
-
getProfile: PluginMeta<unknown>;
|
|
6425
|
-
};
|
|
6426
|
-
};
|
|
6427
|
-
}>;
|
|
6410
|
+
context: SdkContext;
|
|
6411
|
+
};
|
|
6428
6412
|
interface ZapierSdk extends ReturnType<typeof createZapierSdk> {
|
|
6429
6413
|
}
|
|
6430
6414
|
|
|
6431
|
-
export { ActionEntry, AddActionEntryOptions, AddActionEntryResult, ApiClient, DrainTriggerInboxOptions, DynamicResolver, EventEmissionContext, FieldsetItem, Manifest, OutputFormatter, PaginatedSdkResult, PluginMeta, PositionalMetadata, ResolvedAppLocator, UpdateManifestEntryOptions, UpdateManifestEntryResult, WatchTriggerInboxOptions,
|
|
6415
|
+
export { ActionEntry, AddActionEntryOptions, AddActionEntryResult, ApiClient, DrainTriggerInboxOptions, DynamicResolver$1 as DynamicResolver, EventEmissionContext, FieldsetItem, Manifest, OutputFormatter, PaginatedSdkResult, PluginMeta, PositionalMetadata, ResolvedAppLocator, UpdateManifestEntryOptions, UpdateManifestEntryResult, WatchTriggerInboxOptions, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, createZapierSdkStack, findManifestEntry, readManifestFromFile };
|
package/dist/experimental.d.ts
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, 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
|
|
2
|
-
export { H as Action,
|
|
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$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-BgbftweS.js';
|
|
2
|
+
export { H as Action, cv as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b7 as ActionItem, bJ as ActionKeyProperty, bh as ActionKeyPropertySchema, bK as ActionProperty, bi as ActionPropertySchema, aW as ActionResolverItem, bV as ActionTimeoutMsProperty, bt as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bI as ActionTypeProperty, bg as ActionTypePropertySchema, cr as ApiError, dX as ApiEvent, dc as ApiPluginOptions, de as ApiPluginProvides, I as App, cw as AppFactoryInput, b5 as AppItem, bG as AppKeyProperty, be as AppKeyPropertySchema, bH as AppProperty, bf as AppPropertySchema, f5 as ApplicationLifecycleEventData, cn as ApprovalStatus, cu as AppsPluginProvides, b_ as AppsProperty, by as AppsPropertySchema, al as ArrayResolver, dW as AuthEvent, dH as AuthMechanism, bO as AuthenticationIdProperty, bl as AuthenticationIdPropertySchema, fd as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d0 as CONTEXT_CACHE_MAX_SIZE, c$ as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e1 as ClientCredentialsObject, ec as ClientCredentialsObjectSchema, $ as Connection, ek as ConnectionEntry, ej as ConnectionEntrySchema, bM as ConnectionIdProperty, bk as ConnectionIdPropertySchema, b6 as ConnectionItem, bN as ConnectionProperty, bm as ConnectionPropertySchema, em as ConnectionsMap, el as ConnectionsMapSchema, eo as ConnectionsPluginProvides, c0 as ConnectionsProperty, bA as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cO as CreateClientCredentialsPluginProvides, eP as CreateTableFieldsPluginProvides, eJ as CreateTablePluginProvides, eX as CreateTableRecordsPluginProvides, d_ as Credentials, eh as CredentialsFunction, eg as CredentialsFunctionSchema, e0 as CredentialsObject, ee as CredentialsObjectSchema, ei as CredentialsSchema, et as DEFAULT_ACTION_TIMEOUT_MS, eC as DEFAULT_APPROVAL_TIMEOUT_MS, d9 as DEFAULT_CONFIG_PATH, eD as DEFAULT_MAX_APPROVAL_RETRIES, es as DEFAULT_PAGE_SIZE, bT as DebugProperty, br as DebugPropertySchema, cQ as DeleteClientCredentialsPluginProvides, eR as DeleteTableFieldsPluginProvides, eL as DeleteTablePluginProvides, eZ as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ao as DynamicListResolver, ap as DynamicSearchResolver, f6 as EnhancedErrorEventData, c6 as ErrorOptions, dZ as EventCallback, f4 as EventContext, f1 as EventEmissionConfig, f3 as EventEmissionProvides, cy as FetchPluginProvides, J as Field, bZ as FieldsProperty, bx as FieldsPropertySchema, aq as FieldsResolver, y as FindFirstAuthenticationPluginProvides, cY as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, c_ as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cI as GetActionInputFieldsSchemaPluginProvides, cU as GetActionPluginProvides, cS as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cW as GetConnectionPluginProvides, eH as GetTablePluginProvides, eT as GetTableRecordPluginProvides, b9 as InfoFieldItem, b8 as InputFieldItem, bL as InputFieldProperty, bj as InputFieldPropertySchema, bP as InputsProperty, bn as InputsPropertySchema, b4 as JsonSseMessage, c5 as LeaseLimitProperty, bF as LeaseLimitPropertySchema, c3 as LeaseProperty, bD as LeasePropertySchema, c4 as LeaseSecondsProperty, bE as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bQ as LimitProperty, bo as LimitPropertySchema, cG as ListActionInputFieldChoicesPluginProvides, cE as ListActionInputFieldsPluginProvides, cC as ListActionsPluginProvides, cA as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cM as ListClientCredentialsPluginProvides, cK as ListConnectionsPluginProvides, eN as ListTableFieldsPluginProvides, eV as ListTableRecordsPluginProvides, eF as ListTablesPluginProvides, dY as LoadingEvent, ew as MAX_CONCURRENCY_LIMIT, er as MAX_PAGE_LIMIT, da as ManifestEntry, d5 as ManifestPluginOptions, d8 as ManifestPluginProvides, fe as MethodCalledEvent, f7 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bR as OffsetProperty, bp as OffsetPropertySchema, bS as OutputProperty, bq as OutputPropertySchema, bd as PaginatedSdkFunction, bU as ParamsProperty, bs as ParamsPropertySchema, e2 as PkceCredentialsObject, ed as PkceCredentialsObjectSchema, aQ as Plugin, aR as PluginProvides, a$ as PollOptions, cl as RateLimitInfo, bX as RecordProperty, bv as RecordPropertySchema, bY as RecordsProperty, bw as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d4 as RequestPluginProvides, dG as ResolveAuthTokenOptions, e7 as ResolveCredentialsOptions, dI as ResolvedAuth, d$ as ResolvedCredentials, ef as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, ba as RootFieldItem, d2 as RunActionPluginProvides, dV as SdkEvent, bc as SdkPage, b3 as SseMessage, an as StaticResolver, bW as TableProperty, bu as TablePropertySchema, b$ as TablesProperty, bz as TablesPropertySchema, c2 as TriggerInboxNameProperty, bC as TriggerInboxNamePropertySchema, c1 as TriggerInboxProperty, bB as TriggerInboxPropertySchema, T as TriggerMessageStatus, e$ as UpdateTableRecordsPluginProvides, a1 as UserProfile, bb as UserProfileItem, ep as ZAPIER_BASE_URL, ey as ZAPIER_MAX_CONCURRENT_REQUESTS, eu as ZAPIER_MAX_NETWORK_RETRIES, ev as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cj as ZapierActionError, cc as ZapierApiError, cd as ZapierAppNotFoundError, co as ZapierApprovalError, ca as ZapierAuthenticationError, ch as ZapierBundleError, dR as ZapierCache, dS as ZapierCacheEntry, dT as ZapierCacheSetOptions, cg as ZapierConfigurationError, ck as ZapierConflictError, c7 as ZapierError, ce as ZapierNotFoundError, cm as ZapierRateLimitError, cp as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cf as ZapierResourceNotFoundError, cs as ZapierSignal, ci as ZapierTimeoutError, c9 as ZapierUnknownError, c8 as ZapierValidationError, dh as actionKeyResolver, dg as actionTypeResolver, a6 as addPlugin, dd as apiPlugin, df as appKeyResolver, ct as appsPlugin, dj as authenticationIdGenericResolver, di as authenticationIdResolver, ay as batch, f8 as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fa as buildErrorEvent, f9 as buildErrorEventWithContext, fc as buildMethodCalledEvent, f0 as cleanupEventListeners, dJ as clearTokenCache, dn as clientCredentialsNameResolver, dp as clientIdResolver, aV as composePlugins, dj as connectionIdGenericResolver, di as connectionIdResolver, en as connectionsPlugin, fb as createBaseEvent, cN as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dU as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eO as createTableFieldsPlugin, eI as createTablePlugin, eW as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cP as deleteClientCredentialsPlugin, eQ as deleteTableFieldsPlugin, eK as deleteTablePlugin, eY as deleteTableRecordsPlugin, dt as durableRunIdResolver, f2 as eventEmissionPlugin, cx as fetchPlugin, cX as findFirstConnectionPlugin, cZ as findUniqueConnectionPlugin, cq as formatErrorMessage, a8 as fromFunctionPlugin, ff as generateEventId, cH as getActionInputFieldsSchemaPlugin, cT as getActionPlugin, aY as getAgent, cR as getAppPlugin, ea as getBaseUrlFromCredentials, at as getCallerContext, fl as getCiPlatform, eb as getClientIdFromCredentials, cV as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fn as getCpuTime, fg as getCurrentTimestamp, fm as getMemoryUsage, b1 as getOrCreateApiClient, fi as getOsInfo, fj as getPlatformVersions, d6 as getPreferredManifestEntryKey, db as getProfilePlugin, fh as getReleaseId, eG as getTablePlugin, eS as getTableRecordPlugin, dN as getTokenFromCliLogin, fo as getTtyContext, ez as getZapierApprovalMode, eB as getZapierDefaultApprovalMode, eA as getZapierOpenAutoModeApprovalsInBrowser, eq as getZapierSdkService, dL as injectCliLogin, dm as inputFieldKeyResolver, dl as inputsAllOptionalResolver, dk as inputsResolver, dK as invalidateCachedToken, dQ as invalidateCredentialsToken, fk as isCi, dM as isCliLoginAvailable, e3 as isClientCredentials, aL as isCoreError, e6 as isCredentialsFunction, e5 as isCredentialsObject, b2 as isPermanentHttpError, e4 as isPkceCredentials, a2 as isPositional, cF as listActionInputFieldChoicesPlugin, cD as listActionInputFieldsPlugin, cB as listActionsPlugin, cz as listAppsPlugin, cL as listClientCredentialsPlugin, cJ as listConnectionsPlugin, eM as listTableFieldsPlugin, eU as listTableRecordsPlugin, eE as listTablesPlugin, aB as logDeprecation, d7 as manifestPlugin, ex as parseConcurrencyEnvVar, aZ as registryPlugin, d3 as requestPlugin, aC as resetDeprecationWarnings, dO as resolveAuth, dP as resolveAuthToken, e9 as resolveCredentials, e8 as resolveCredentialsFromEnv, d1 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dz as tableFieldIdsResolver, dB as tableFieldsResolver, dE as tableFiltersResolver, dq as tableIdResolver, dA as tableNameResolver, dx as tableRecordIdResolver, dy as tableRecordIdsResolver, dC as tableRecordsResolver, dF as tableSortResolver, dD as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dr as triggerInboxResolver, dw as triggerMessagesResolver, e_ as updateTableRecordsPlugin, ds as workflowIdResolver, dv as workflowRunIdResolver, du as workflowVersionIdResolver, cb as zapierAdaptError, ag as zapierSdkPlugin } from './index-BgbftweS.js';
|
|
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';
|
|
@@ -9,11 +9,13 @@ import '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
|
9
9
|
interface ZapierSdkOptions extends BaseSdkOptions {
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Build the unsealed `PluginStack` for the experimental SDK. Mirror of
|
|
13
|
-
* `createZapierSdkStack` from the stable entry: downstream
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* Build the unsealed legacy `PluginStack` for the experimental SDK. Mirror of
|
|
13
|
+
* `createZapierSdkStack` from the stable entry: a downstream head layers its
|
|
14
|
+
* base plugins via `.use(...)` and then merges with `zapierSdkPlugin` via
|
|
15
|
+
* `defineLegacyMerge`, the way `createZapierSdk` does. As with the stable
|
|
16
|
+
* stack, calling `.toSdk()` here materializes the legacy surface only and
|
|
17
|
+
* omits module-model migrated methods (e.g. `getProfile`); for a full SDK plus
|
|
18
|
+
* extensions, use `createZapierSdk(options)` then `addPlugin(sdk, plugin)`.
|
|
17
19
|
*
|
|
18
20
|
* Shadows the re-export from `./index` so consumers of
|
|
19
21
|
* `@zapier/zapier-sdk/experimental` get the experimental factory under
|
|
@@ -2004,7 +2006,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2004
2006
|
maxMessages: zod.ZodOptional<zod.ZodNumber>;
|
|
2005
2007
|
}, zod_v4_core.$strip>;
|
|
2006
2008
|
resolvers: {
|
|
2007
|
-
inbox: DynamicResolver<{
|
|
2009
|
+
inbox: DynamicResolver$1<{
|
|
2008
2010
|
listTriggerInboxes: (options?: ({
|
|
2009
2011
|
name?: string | undefined;
|
|
2010
2012
|
status?: string | undefined;
|
|
@@ -2080,7 +2082,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2080
2082
|
maxDrainIntervalSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
2081
2083
|
}, zod_v4_core.$strip>;
|
|
2082
2084
|
resolvers: {
|
|
2083
|
-
inbox: DynamicResolver<{
|
|
2085
|
+
inbox: DynamicResolver$1<{
|
|
2084
2086
|
listTriggerInboxes: (options?: ({
|
|
2085
2087
|
name?: string | undefined;
|
|
2086
2088
|
status?: string | undefined;
|
|
@@ -3203,26 +3205,8 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
3203
3205
|
};
|
|
3204
3206
|
};
|
|
3205
3207
|
};
|
|
3206
|
-
} & {
|
|
3207
|
-
getProfile: (options?: Record<string, never> | undefined) => Promise<{
|
|
3208
|
-
data: {
|
|
3209
|
-
id: string;
|
|
3210
|
-
first_name: string;
|
|
3211
|
-
last_name: string;
|
|
3212
|
-
full_name: string;
|
|
3213
|
-
email: string;
|
|
3214
|
-
email_confirmed: boolean;
|
|
3215
|
-
timezone: string;
|
|
3216
|
-
};
|
|
3217
|
-
}>;
|
|
3218
|
-
} & {
|
|
3219
|
-
context: {
|
|
3220
|
-
meta: {
|
|
3221
|
-
getProfile: PluginMeta<unknown>;
|
|
3222
|
-
};
|
|
3223
|
-
};
|
|
3224
3208
|
}>;
|
|
3225
|
-
declare function createZapierSdk(options?: ZapierSdkOptions):
|
|
3209
|
+
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
3226
3210
|
context: {
|
|
3227
3211
|
meta: Record<string, PluginMeta>;
|
|
3228
3212
|
hooks: MethodHooks;
|
|
@@ -5207,7 +5191,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5207
5191
|
maxMessages: zod.ZodOptional<zod.ZodNumber>;
|
|
5208
5192
|
}, zod_v4_core.$strip>;
|
|
5209
5193
|
resolvers: {
|
|
5210
|
-
inbox: DynamicResolver<{
|
|
5194
|
+
inbox: DynamicResolver$1<{
|
|
5211
5195
|
listTriggerInboxes: (options?: ({
|
|
5212
5196
|
name?: string | undefined;
|
|
5213
5197
|
status?: string | undefined;
|
|
@@ -5283,7 +5267,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5283
5267
|
maxDrainIntervalSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
5284
5268
|
}, zod_v4_core.$strip>;
|
|
5285
5269
|
resolvers: {
|
|
5286
|
-
inbox: DynamicResolver<{
|
|
5270
|
+
inbox: DynamicResolver$1<{
|
|
5287
5271
|
listTriggerInboxes: (options?: ({
|
|
5288
5272
|
name?: string | undefined;
|
|
5289
5273
|
status?: string | undefined;
|
|
@@ -6407,7 +6391,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
6407
6391
|
};
|
|
6408
6392
|
};
|
|
6409
6393
|
} & {
|
|
6410
|
-
|
|
6394
|
+
getRegistry: (options?: {
|
|
6395
|
+
package?: string;
|
|
6396
|
+
}) => RegistryResult;
|
|
6397
|
+
} & {
|
|
6398
|
+
getProfile: (input?: Record<string, never> | undefined) => Promise<{
|
|
6411
6399
|
data: {
|
|
6412
6400
|
id: string;
|
|
6413
6401
|
first_name: string;
|
|
@@ -6419,13 +6407,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
6419
6407
|
};
|
|
6420
6408
|
}>;
|
|
6421
6409
|
} & {
|
|
6422
|
-
context:
|
|
6423
|
-
|
|
6424
|
-
getProfile: PluginMeta<unknown>;
|
|
6425
|
-
};
|
|
6426
|
-
};
|
|
6427
|
-
}>;
|
|
6410
|
+
context: SdkContext;
|
|
6411
|
+
};
|
|
6428
6412
|
interface ZapierSdk extends ReturnType<typeof createZapierSdk> {
|
|
6429
6413
|
}
|
|
6430
6414
|
|
|
6431
|
-
export { ActionEntry, AddActionEntryOptions, AddActionEntryResult, ApiClient, DrainTriggerInboxOptions, DynamicResolver, EventEmissionContext, FieldsetItem, Manifest, OutputFormatter, PaginatedSdkResult, PluginMeta, PositionalMetadata, ResolvedAppLocator, UpdateManifestEntryOptions, UpdateManifestEntryResult, WatchTriggerInboxOptions,
|
|
6415
|
+
export { ActionEntry, AddActionEntryOptions, AddActionEntryResult, ApiClient, DrainTriggerInboxOptions, DynamicResolver$1 as DynamicResolver, EventEmissionContext, FieldsetItem, Manifest, OutputFormatter, PaginatedSdkResult, PluginMeta, PositionalMetadata, ResolvedAppLocator, UpdateManifestEntryOptions, UpdateManifestEntryResult, WatchTriggerInboxOptions, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, createZapierSdkStack, findManifestEntry, readManifestFromFile };
|