@zapier/zapier-sdk 0.51.0 → 0.53.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 +16 -0
- package/README.md +58 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +84 -7
- package/dist/api/concurrency.d.ts +28 -0
- package/dist/api/concurrency.d.ts.map +1 -0
- package/dist/api/concurrency.js +90 -0
- package/dist/api/types.d.ts +6 -0
- package/dist/api/types.d.ts.map +1 -1
- package/dist/constants.d.ts +16 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +29 -0
- package/dist/experimental.cjs +261 -18
- package/dist/experimental.d.mts +56 -28
- package/dist/experimental.d.ts +28 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +2 -0
- package/dist/experimental.mjs +258 -19
- package/dist/{index-C52BjTXh.d.mts → index-D2HKNk0N.d.mts} +44 -1
- package/dist/{index-C52BjTXh.d.ts → index-D2HKNk0N.d.ts} +44 -1
- package/dist/index.cjs +215 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +212 -7
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +3 -2
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +2 -1
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.js +1 -4
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ensureTriggerInbox/index.js +1 -4
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +5 -1
- package/dist/plugins/triggers/listTriggers/index.d.ts +70 -0
- package/dist/plugins/triggers/listTriggers/index.d.ts.map +1 -0
- package/dist/plugins/triggers/listTriggers/index.js +25 -0
- package/dist/plugins/triggers/listTriggers/schemas.d.ts +11 -0
- package/dist/plugins/triggers/listTriggers/schemas.d.ts.map +1 -0
- package/dist/plugins/triggers/listTriggers/schemas.js +18 -0
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -1
- package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +2 -1
- 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/triggerMessages.d.ts +6 -0
- package/dist/resolvers/triggerMessages.d.ts.map +1 -0
- package/dist/resolvers/triggerMessages.js +22 -0
- package/dist/types/sdk.d.ts +1 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +25 -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, cg as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aU as ActionItem, bv as ActionKeyProperty, b3 as ActionKeyPropertySchema, bw as ActionProperty, b4 as ActionPropertySchema, aq as ActionResolverItem, bH as ActionTimeoutMsProperty, bf as ActionTimeoutMsPropertySchema, ar as ActionTypeItem, bu as ActionTypeProperty, b2 as ActionTypePropertySchema, bU 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-D2HKNk0N.mjs';
|
|
2
|
+
export { u as Action, cg as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aU as ActionItem, bv as ActionKeyProperty, b3 as ActionKeyPropertySchema, bw as ActionProperty, b4 as ActionPropertySchema, aq as ActionResolverItem, bH as ActionTimeoutMsProperty, bf as ActionTimeoutMsPropertySchema, ar as ActionTypeItem, bu as ActionTypeProperty, b2 as ActionTypePropertySchema, bU as ApiError, dC as ApiEvent, c_ as ApiPluginOptions, d0 as ApiPluginProvides, v as App, ch as AppFactoryInput, aS as AppItem, bs as AppKeyProperty, b0 as AppKeyPropertySchema, bt as AppProperty, b1 as AppPropertySchema, aB as ApplicationLifecycleEventData, c9 as ApprovalStatus, cf as AppsPluginProvides, bM as AppsProperty, bk as AppsPropertySchema, a0 as ArrayResolver, dB as AuthEvent, bA as AuthenticationIdProperty, b7 as AuthenticationIdPropertySchema, ax as BaseEvent, aj as BaseSdkOptionsSchema, a8 as BatchOptions, cN as CONTEXT_CACHE_MAX_SIZE, cM as CONTEXT_CACHE_TTL_MS, x as Choice, dI as ClientCredentialsObject, dT as ClientCredentialsObjectSchema, K as Connection, d$ as ConnectionEntry, d_ as ConnectionEntrySchema, by as ConnectionIdProperty, b6 as ConnectionIdPropertySchema, aT as ConnectionItem, bz as ConnectionProperty, b8 as ConnectionPropertySchema, e1 as ConnectionsMap, e0 as ConnectionsMapSchema, e3 as ConnectionsPluginProvides, bO as ConnectionsProperty, bm as ConnectionsPropertySchema, O as ConnectionsResponse, cz as CreateClientCredentialsPluginProvides, es as CreateTableFieldsPluginProvides, em as CreateTablePluginProvides, eA as CreateTableRecordsPluginProvides, dF as Credentials, dY as CredentialsFunction, dX as CredentialsFunctionSchema, dH as CredentialsObject, dV as CredentialsObjectSchema, dZ as CredentialsSchema, e8 as DEFAULT_ACTION_TIMEOUT_MS, ef as DEFAULT_APPROVAL_TIMEOUT_MS, cW as DEFAULT_CONFIG_PATH, eg as DEFAULT_MAX_APPROVAL_RETRIES, e7 as DEFAULT_PAGE_SIZE, bF as DebugProperty, bd as DebugPropertySchema, cB as DeleteClientCredentialsPluginProvides, eu as DeleteTableFieldsPluginProvides, eo as DeleteTablePluginProvides, eC as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, aC as EnhancedErrorEventData, bV as ErrorOptions, dE as EventCallback, aA as EventContext, az as EventEmissionProvides, cj as FetchPluginProvides, w as Field, bL as FieldsProperty, bj as FieldsPropertySchema, a3 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cJ as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cL as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ai as FunctionDeprecation, aZ as FunctionOptions, ah as FunctionRegistryEntry, ct as GetActionInputFieldsSchemaPluginProvides, cF as GetActionPluginProvides, cD as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cH as GetConnectionPluginProvides, cZ as GetProfilePluginProvides, ek as GetTablePluginProvides, ew as GetTableRecordPluginProvides, aW as InfoFieldItem, aV as InputFieldItem, bx as InputFieldProperty, b5 as InputFieldPropertySchema, bB as InputsProperty, b9 as InputsPropertySchema, bT as LeaseLimitProperty, br as LeaseLimitPropertySchema, bR as LeaseProperty, bp as LeasePropertySchema, bS as LeaseSecondsProperty, bq as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bC as LimitProperty, ba as LimitPropertySchema, cr as ListActionInputFieldChoicesPluginProvides, cp as ListActionInputFieldsPluginProvides, cn as ListActionsPluginProvides, cl as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cx as ListClientCredentialsPluginProvides, cv as ListConnectionsPluginProvides, eq as ListTableFieldsPluginProvides, ey as ListTableRecordsPluginProvides, ei as ListTablesPluginProvides, dD as LoadingEvent, eb as MAX_CONCURRENCY_LIMIT, e6 as MAX_PAGE_LIMIT, cX as ManifestEntry, cS as ManifestPluginOptions, cV as ManifestPluginProvides, ay as MethodCalledEvent, aD as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bD as OffsetProperty, bb as OffsetPropertySchema, _ as OutputFormatter, bE as OutputProperty, bc as OutputPropertySchema, a$ as PaginatedSdkFunction, bG as ParamsProperty, be as ParamsPropertySchema, dJ as PkceCredentialsObject, dU as PkceCredentialsObjectSchema, ak as Plugin, al as PluginProvides, au as PollOptions, c7 as RateLimitInfo, bJ as RecordProperty, bh as RecordPropertySchema, bK as RecordsProperty, bi as RecordsPropertySchema, ad as RelayFetchSchema, ac as RelayRequestSchema, at as RequestOptions, cR as RequestPluginProvides, dn as ResolveAuthTokenOptions, dO as ResolveCredentialsOptions, dG as ResolvedCredentials, dW as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aX as RootFieldItem, cP as RunActionPluginProvides, dA as SdkEvent, a_ as SdkPage, a2 as StaticResolver, bI as TableProperty, bg as TablePropertySchema, bN as TablesProperty, bl as TablesPropertySchema, bQ as TriggerInboxNameProperty, bo as TriggerInboxNamePropertySchema, bP as TriggerInboxProperty, bn as TriggerInboxPropertySchema, T as TriggerMessageStatus, eE as UpdateTableRecordsPluginProvides, Q as UserProfile, aY as UserProfileItem, e4 as ZAPIER_BASE_URL, ed as ZAPIER_MAX_CONCURRENT_REQUESTS, e9 as ZAPIER_MAX_NETWORK_RETRIES, ea as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c5 as ZapierActionError, bX as ZapierApiError, bY as ZapierAppNotFoundError, ca as ZapierApprovalError, b$ as ZapierAuthenticationError, c3 as ZapierBundleError, dw as ZapierCache, dx as ZapierCacheEntry, dy as ZapierCacheSetOptions, c2 as ZapierConfigurationError, c6 as ZapierConflictError, bW as ZapierError, c0 as ZapierNotFoundError, c8 as ZapierRateLimitError, cb as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c1 as ZapierResourceNotFoundError, cd as ZapierSignal, c4 as ZapierTimeoutError, b_ as ZapierUnknownError, bZ as ZapierValidationError, d3 as actionKeyResolver, d2 as actionTypeResolver, c$ as apiPlugin, d1 as appKeyResolver, ce as appsPlugin, d5 as authenticationIdGenericResolver, d4 as authenticationIdResolver, a7 as batch, aN as buildApplicationLifecycleEvent, a9 as buildCapabilityMessage, aP as buildErrorEvent, aO as buildErrorEventWithContext, aR as buildMethodCalledEvent, dp as clearTokenCache, d9 as clientCredentialsNameResolver, da as clientIdResolver, ap as composePlugins, d5 as connectionIdGenericResolver, d4 as connectionIdResolver, e2 as connectionsPlugin, aQ as createBaseEvent, cy as createClientCredentialsPlugin, V as createFunction, dz as createMemoryCache, ag as createOptionsPlugin, ao as createPaginatedPluginMethod, an as createPluginMethod, af as createSdk, er as createTableFieldsPlugin, el as createTablePlugin, ez as createTableRecordsPlugin, av as createZapierApi, ae as createZapierSdkWithoutRegistry, am as definePlugin, cA as deleteClientCredentialsPlugin, et as deleteTableFieldsPlugin, en as deleteTablePlugin, eB as deleteTableRecordsPlugin, ci as fetchPlugin, cI as findFirstConnectionPlugin, cK as findUniqueConnectionPlugin, cc as formatErrorMessage, aE as generateEventId, cs as getActionInputFieldsSchemaPlugin, cE as getActionPlugin, cC as getAppPlugin, dR as getBaseUrlFromCredentials, aK as getCiPlatform, dS as getClientIdFromCredentials, cG as getConnectionPlugin, aM as getCpuTime, aF as getCurrentTimestamp, aL as getMemoryUsage, aw as getOrCreateApiClient, aH as getOsInfo, aI as getPlatformVersions, cT as getPreferredManifestEntryKey, cY as getProfilePlugin, aG as getReleaseId, ej as getTablePlugin, ev as getTableRecordPlugin, dt as getTokenFromCliLogin, ee as getZapierApprovalMode, e5 as getZapierSdkService, dr as injectCliLogin, d8 as inputFieldKeyResolver, d7 as inputsAllOptionalResolver, d6 as inputsResolver, dq as invalidateCachedToken, dv as invalidateCredentialsToken, aJ as isCi, ds as isCliLoginAvailable, dK as isClientCredentials, dN as isCredentialsFunction, dM as isCredentialsObject, dL as isPkceCredentials, S as isPositional, cq as listActionInputFieldChoicesPlugin, co as listActionInputFieldsPlugin, cm as listActionsPlugin, ck as listAppsPlugin, cw as listClientCredentialsPlugin, cu as listConnectionsPlugin, ep as listTableFieldsPlugin, ex as listTableRecordsPlugin, eh as listTablesPlugin, aa as logDeprecation, cU as manifestPlugin, ec as parseConcurrencyEnvVar, as as registryPlugin, cQ as requestPlugin, ab as resetDeprecationWarnings, du as resolveAuthToken, dQ as resolveCredentials, dP as resolveCredentialsFromEnv, cO as runActionPlugin, a4 as runWithTelemetryContext, dg as tableFieldIdsResolver, di as tableFieldsResolver, dl as tableFiltersResolver, db as tableIdResolver, dh as tableNameResolver, de as tableRecordIdResolver, df as tableRecordIdsResolver, dj as tableRecordsResolver, dm as tableSortResolver, dk as tableUpdateRecordsResolver, a5 as toSnakeCase, a6 as toTitleCase, dc as triggerInboxResolver, dd as triggerMessagesResolver, eD as updateTableRecordsPlugin } from './index-D2HKNk0N.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';
|
|
@@ -216,13 +216,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
216
216
|
} & {
|
|
217
217
|
listActions: (options?: (({
|
|
218
218
|
app: string;
|
|
219
|
-
actionType?: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
219
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
220
220
|
pageSize?: number | undefined;
|
|
221
221
|
maxItems?: number | undefined;
|
|
222
222
|
cursor?: string | undefined;
|
|
223
223
|
} | {
|
|
224
224
|
appKey: string;
|
|
225
|
-
actionType?: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
225
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
226
226
|
pageSize?: number | undefined;
|
|
227
227
|
maxItems?: number | undefined;
|
|
228
228
|
cursor?: string | undefined;
|
|
@@ -234,7 +234,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
234
234
|
description: string;
|
|
235
235
|
key: string;
|
|
236
236
|
app_key: string;
|
|
237
|
-
action_type: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
237
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
238
238
|
title: string;
|
|
239
239
|
type: "action";
|
|
240
240
|
id?: string | undefined;
|
|
@@ -251,18 +251,18 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
251
251
|
} & {
|
|
252
252
|
getAction: (options?: {
|
|
253
253
|
app: string;
|
|
254
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
254
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
255
255
|
action: string;
|
|
256
256
|
} | {
|
|
257
257
|
appKey: string;
|
|
258
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
258
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
259
259
|
actionKey: string;
|
|
260
260
|
} | undefined) => Promise<{
|
|
261
261
|
data: {
|
|
262
262
|
description: string;
|
|
263
263
|
key: string;
|
|
264
264
|
app_key: string;
|
|
265
|
-
action_type: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
265
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
266
266
|
title: string;
|
|
267
267
|
type: "action";
|
|
268
268
|
id?: string | undefined;
|
|
@@ -280,7 +280,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
280
280
|
} & {
|
|
281
281
|
listActionInputFields: (options?: (({
|
|
282
282
|
app: string;
|
|
283
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
283
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
284
284
|
action: string;
|
|
285
285
|
connection?: string | number | undefined;
|
|
286
286
|
connectionId?: string | number | null | undefined;
|
|
@@ -291,7 +291,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
291
291
|
cursor?: string | undefined;
|
|
292
292
|
} | {
|
|
293
293
|
appKey: string;
|
|
294
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
294
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
295
295
|
actionKey: string;
|
|
296
296
|
connection?: string | number | undefined;
|
|
297
297
|
connectionId?: string | number | null | undefined;
|
|
@@ -334,7 +334,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
334
334
|
} & {
|
|
335
335
|
getActionInputFieldsSchema: (options?: {
|
|
336
336
|
app: string;
|
|
337
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
337
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
338
338
|
action: string;
|
|
339
339
|
connection?: string | number | undefined;
|
|
340
340
|
connectionId?: string | number | null | undefined;
|
|
@@ -342,7 +342,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
342
342
|
inputs?: Record<string, unknown> | undefined;
|
|
343
343
|
} | {
|
|
344
344
|
appKey: string;
|
|
345
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
345
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
346
346
|
actionKey: string;
|
|
347
347
|
connection?: string | number | undefined;
|
|
348
348
|
connectionId?: string | number | null | undefined;
|
|
@@ -360,7 +360,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
360
360
|
} & {
|
|
361
361
|
listActionInputFieldChoices: (options?: (({
|
|
362
362
|
app: string;
|
|
363
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
363
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
364
364
|
action: string;
|
|
365
365
|
inputField: string;
|
|
366
366
|
connection?: string | number | undefined;
|
|
@@ -373,7 +373,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
373
373
|
cursor?: string | undefined;
|
|
374
374
|
} | {
|
|
375
375
|
appKey: string;
|
|
376
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
376
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
377
377
|
actionKey: string;
|
|
378
378
|
inputFieldKey: string;
|
|
379
379
|
connection?: string | number | undefined;
|
|
@@ -403,7 +403,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
403
403
|
} & {
|
|
404
404
|
listInputFields: (options?: (({
|
|
405
405
|
app: string;
|
|
406
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
406
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
407
407
|
action: string;
|
|
408
408
|
connection?: string | number | undefined;
|
|
409
409
|
connectionId?: string | number | null | undefined;
|
|
@@ -414,7 +414,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
414
414
|
cursor?: string | undefined;
|
|
415
415
|
} | {
|
|
416
416
|
appKey: string;
|
|
417
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
417
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
418
418
|
actionKey: string;
|
|
419
419
|
connection?: string | number | undefined;
|
|
420
420
|
connectionId?: string | number | null | undefined;
|
|
@@ -459,13 +459,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
459
459
|
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
460
460
|
};
|
|
461
461
|
actionType: zod.ZodEnum<{
|
|
462
|
+
filter: "filter";
|
|
462
463
|
search: "search";
|
|
463
464
|
read: "read";
|
|
464
465
|
read_bulk: "read_bulk";
|
|
465
466
|
write: "write";
|
|
466
467
|
search_or_write: "search_or_write";
|
|
467
468
|
search_and_write: "search_and_write";
|
|
468
|
-
filter: "filter";
|
|
469
469
|
run: "run";
|
|
470
470
|
}>;
|
|
471
471
|
action: zod.ZodString & {
|
|
@@ -483,13 +483,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
483
483
|
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
484
484
|
};
|
|
485
485
|
actionType: zod.ZodEnum<{
|
|
486
|
+
filter: "filter";
|
|
486
487
|
search: "search";
|
|
487
488
|
read: "read";
|
|
488
489
|
read_bulk: "read_bulk";
|
|
489
490
|
write: "write";
|
|
490
491
|
search_or_write: "search_or_write";
|
|
491
492
|
search_and_write: "search_and_write";
|
|
492
|
-
filter: "filter";
|
|
493
493
|
run: "run";
|
|
494
494
|
}>;
|
|
495
495
|
actionKey: zod.ZodString;
|
|
@@ -529,7 +529,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
529
529
|
} & {
|
|
530
530
|
getInputFieldsSchema: (options?: {
|
|
531
531
|
app: string;
|
|
532
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
532
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
533
533
|
action: string;
|
|
534
534
|
connection?: string | number | undefined;
|
|
535
535
|
connectionId?: string | number | null | undefined;
|
|
@@ -537,7 +537,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
537
537
|
inputs?: Record<string, unknown> | undefined;
|
|
538
538
|
} | {
|
|
539
539
|
appKey: string;
|
|
540
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
540
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
541
541
|
actionKey: string;
|
|
542
542
|
connection?: string | number | undefined;
|
|
543
543
|
connectionId?: string | number | null | undefined;
|
|
@@ -556,13 +556,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
556
556
|
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
557
557
|
};
|
|
558
558
|
actionType: zod.ZodEnum<{
|
|
559
|
+
filter: "filter";
|
|
559
560
|
search: "search";
|
|
560
561
|
read: "read";
|
|
561
562
|
read_bulk: "read_bulk";
|
|
562
563
|
write: "write";
|
|
563
564
|
search_or_write: "search_or_write";
|
|
564
565
|
search_and_write: "search_and_write";
|
|
565
|
-
filter: "filter";
|
|
566
566
|
run: "run";
|
|
567
567
|
}>;
|
|
568
568
|
action: zod.ZodString & {
|
|
@@ -577,13 +577,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
577
577
|
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
578
578
|
};
|
|
579
579
|
actionType: zod.ZodEnum<{
|
|
580
|
+
filter: "filter";
|
|
580
581
|
search: "search";
|
|
581
582
|
read: "read";
|
|
582
583
|
read_bulk: "read_bulk";
|
|
583
584
|
write: "write";
|
|
584
585
|
search_or_write: "search_or_write";
|
|
585
586
|
search_and_write: "search_and_write";
|
|
586
|
-
filter: "filter";
|
|
587
587
|
run: "run";
|
|
588
588
|
}>;
|
|
589
589
|
actionKey: zod.ZodString;
|
|
@@ -598,7 +598,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
598
598
|
} & {
|
|
599
599
|
listInputFieldChoices: (options?: (({
|
|
600
600
|
app: string;
|
|
601
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
601
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
602
602
|
action: string;
|
|
603
603
|
inputField: string;
|
|
604
604
|
connection?: string | number | undefined;
|
|
@@ -611,7 +611,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
611
611
|
cursor?: string | undefined;
|
|
612
612
|
} | {
|
|
613
613
|
appKey: string;
|
|
614
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
614
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
615
615
|
actionKey: string;
|
|
616
616
|
inputFieldKey: string;
|
|
617
617
|
connection?: string | number | undefined;
|
|
@@ -643,13 +643,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
643
643
|
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
644
644
|
};
|
|
645
645
|
actionType: zod.ZodEnum<{
|
|
646
|
+
filter: "filter";
|
|
646
647
|
search: "search";
|
|
647
648
|
read: "read";
|
|
648
649
|
read_bulk: "read_bulk";
|
|
649
650
|
write: "write";
|
|
650
651
|
search_or_write: "search_or_write";
|
|
651
652
|
search_and_write: "search_and_write";
|
|
652
|
-
filter: "filter";
|
|
653
653
|
run: "run";
|
|
654
654
|
}>;
|
|
655
655
|
action: zod.ZodString & {
|
|
@@ -671,13 +671,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
671
671
|
_def: zod_v4_core.$ZodStringDef & PositionalMetadata;
|
|
672
672
|
};
|
|
673
673
|
actionType: zod.ZodEnum<{
|
|
674
|
+
filter: "filter";
|
|
674
675
|
search: "search";
|
|
675
676
|
read: "read";
|
|
676
677
|
read_bulk: "read_bulk";
|
|
677
678
|
write: "write";
|
|
678
679
|
search_or_write: "search_or_write";
|
|
679
680
|
search_and_write: "search_and_write";
|
|
680
|
-
filter: "filter";
|
|
681
681
|
run: "run";
|
|
682
682
|
}>;
|
|
683
683
|
actionKey: zod.ZodString;
|
|
@@ -704,7 +704,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
704
704
|
} & {
|
|
705
705
|
runAction: (options?: (({
|
|
706
706
|
app: string;
|
|
707
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
707
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
708
708
|
action: string;
|
|
709
709
|
connection?: string | number | undefined;
|
|
710
710
|
connectionId?: string | number | null | undefined;
|
|
@@ -716,7 +716,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
716
716
|
cursor?: string | undefined;
|
|
717
717
|
} | {
|
|
718
718
|
appKey: string;
|
|
719
|
-
actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "
|
|
719
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
720
720
|
actionKey: string;
|
|
721
721
|
connection?: string | number | undefined;
|
|
722
722
|
connectionId?: string | number | null | undefined;
|
|
@@ -1844,6 +1844,34 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1844
1844
|
};
|
|
1845
1845
|
};
|
|
1846
1846
|
};
|
|
1847
|
+
} & {
|
|
1848
|
+
listTriggers: (options?: ({
|
|
1849
|
+
app: string;
|
|
1850
|
+
pageSize?: number | undefined;
|
|
1851
|
+
maxItems?: number | undefined;
|
|
1852
|
+
cursor?: string | undefined;
|
|
1853
|
+
} & {
|
|
1854
|
+
cursor?: string;
|
|
1855
|
+
pageSize?: number;
|
|
1856
|
+
maxItems?: number;
|
|
1857
|
+
}) | undefined) => PaginatedSdkResult<{
|
|
1858
|
+
description: string;
|
|
1859
|
+
key: string;
|
|
1860
|
+
app_key: string;
|
|
1861
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1862
|
+
title: string;
|
|
1863
|
+
type: "action";
|
|
1864
|
+
id?: string | undefined;
|
|
1865
|
+
is_hidden?: boolean | undefined;
|
|
1866
|
+
is_important?: boolean | undefined;
|
|
1867
|
+
app_version?: string | undefined;
|
|
1868
|
+
}>;
|
|
1869
|
+
} & {
|
|
1870
|
+
context: {
|
|
1871
|
+
meta: {
|
|
1872
|
+
listTriggers: PluginMeta;
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1847
1875
|
} & {
|
|
1848
1876
|
listTriggerInputFields: (options?: ({
|
|
1849
1877
|
app: string;
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1860,6 +1860,34 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
1860
1860
|
};
|
|
1861
1861
|
};
|
|
1862
1862
|
};
|
|
1863
|
+
} & {
|
|
1864
|
+
listTriggers: (options?: ({
|
|
1865
|
+
app: string;
|
|
1866
|
+
pageSize?: number | undefined;
|
|
1867
|
+
maxItems?: number | undefined;
|
|
1868
|
+
cursor?: string | undefined;
|
|
1869
|
+
} & {
|
|
1870
|
+
cursor?: string;
|
|
1871
|
+
pageSize?: number;
|
|
1872
|
+
maxItems?: number;
|
|
1873
|
+
}) | undefined) => import("./index").PaginatedSdkResult<{
|
|
1874
|
+
description: string;
|
|
1875
|
+
key: string;
|
|
1876
|
+
app_key: string;
|
|
1877
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
1878
|
+
title: string;
|
|
1879
|
+
type: "action";
|
|
1880
|
+
id?: string | undefined;
|
|
1881
|
+
is_important?: boolean | undefined;
|
|
1882
|
+
is_hidden?: boolean | undefined;
|
|
1883
|
+
app_version?: string | undefined;
|
|
1884
|
+
}>;
|
|
1885
|
+
} & {
|
|
1886
|
+
context: {
|
|
1887
|
+
meta: {
|
|
1888
|
+
listTriggers: PluginMeta;
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1863
1891
|
} & {
|
|
1864
1892
|
listTriggerInputFields: (options?: ({
|
|
1865
1893
|
app: string;
|
|
@@ -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;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
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;AAClD,OAAO,KAAK,EAAE,UAAU,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAT/5L;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAM3D,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/experimental.js
CHANGED
|
@@ -55,6 +55,7 @@ import { ackTriggerInboxMessagesPlugin } from "./plugins/triggers/ackTriggerInbo
|
|
|
55
55
|
import { releaseTriggerInboxMessagesPlugin } from "./plugins/triggers/releaseTriggerInboxMessages";
|
|
56
56
|
import { drainTriggerInboxPlugin } from "./plugins/triggers/drainTriggerInbox";
|
|
57
57
|
import { watchTriggerInboxPlugin } from "./plugins/triggers/watchTriggerInbox";
|
|
58
|
+
import { listTriggersPlugin } from "./plugins/triggers/listTriggers";
|
|
58
59
|
import { listTriggerInputFieldsPlugin } from "./plugins/triggers/listTriggerInputFields";
|
|
59
60
|
import { listTriggerInputFieldChoicesPlugin } from "./plugins/triggers/listTriggerInputFieldChoices";
|
|
60
61
|
import { getTriggerInputFieldsSchemaPlugin } from "./plugins/triggers/getTriggerInputFieldsSchema";
|
|
@@ -132,6 +133,7 @@ export function createZapierSdk(options = {}) {
|
|
|
132
133
|
.addPlugin(releaseTriggerInboxMessagesPlugin)
|
|
133
134
|
.addPlugin(drainTriggerInboxPlugin)
|
|
134
135
|
.addPlugin(watchTriggerInboxPlugin)
|
|
136
|
+
.addPlugin(listTriggersPlugin)
|
|
135
137
|
.addPlugin(listTriggerInputFieldsPlugin)
|
|
136
138
|
.addPlugin(listTriggerInputFieldChoicesPlugin)
|
|
137
139
|
.addPlugin(getTriggerInputFieldsSchemaPlugin)
|