@zapier/zapier-sdk 0.50.0 → 0.51.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/README.md +1 -1
- package/dist/api/auth.d.ts +1 -6
- package/dist/api/auth.d.ts.map +1 -1
- package/dist/api/auth.js +34 -27
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +3 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/schemas.d.ts +3 -3
- package/dist/auth.d.ts +13 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +95 -11
- package/dist/experimental.cjs +167 -29
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.d.ts +26 -26
- package/dist/experimental.mjs +166 -30
- package/dist/{index-BQ2ii0Bs.d.mts → index-C52BjTXh.d.mts} +109 -2
- package/dist/{index-BQ2ii0Bs.d.ts → index-C52BjTXh.d.ts} +109 -2
- package/dist/index.cjs +167 -29
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +166 -30
- package/dist/plugins/apps/index.d.ts +2 -2
- package/dist/plugins/deprecated/inputFields.d.ts +18 -18
- package/dist/plugins/getAction/index.d.ts +6 -6
- package/dist/plugins/getAction/schemas.d.ts +4 -4
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts +5 -5
- package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts +4 -4
- package/dist/plugins/listActionInputFieldChoices/index.d.ts +5 -5
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts +4 -4
- package/dist/plugins/listActionInputFields/index.d.ts +5 -5
- package/dist/plugins/listActionInputFields/schemas.d.ts +4 -4
- package/dist/plugins/listActions/index.d.ts +3 -3
- package/dist/plugins/listActions/schemas.d.ts +4 -4
- package/dist/plugins/runAction/index.d.ts +5 -5
- package/dist/plugins/runAction/schemas.d.ts +4 -4
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +2 -2
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +2 -2
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +2 -2
- package/dist/schemas/Action.d.ts +1 -1
- package/dist/sdk.d.ts +52 -52
- package/dist/types/properties.d.ts +1 -1
- package/dist/utils/telemetry.d.ts +11 -0
- package/dist/utils/telemetry.d.ts.map +1 -0
- package/dist/utils/telemetry.js +19 -0
- package/package.json +1 -1
package/dist/experimental.cjs
CHANGED
|
@@ -1836,33 +1836,40 @@ function getAuthorizationHeader(token) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
return `Bearer ${token}`;
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function readJwtPayload(token) {
|
|
1840
1840
|
const parts = parseJwt(token);
|
|
1841
|
-
if (!parts)
|
|
1842
|
-
|
|
1843
|
-
}
|
|
1841
|
+
if (!parts) return null;
|
|
1842
|
+
let payload;
|
|
1844
1843
|
try {
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1844
|
+
payload = JSON.parse(Buffer.from(parts[1], "base64url").toString("utf-8"));
|
|
1845
|
+
} catch {
|
|
1846
|
+
return null;
|
|
1847
|
+
}
|
|
1848
|
+
if (payload["sub_type"] === "service" && typeof payload["njwt"] === "string") {
|
|
1849
|
+
const nestedParts = parseJwt(payload["njwt"]);
|
|
1850
|
+
if (nestedParts) {
|
|
1851
|
+
try {
|
|
1852
|
+
return JSON.parse(
|
|
1853
1853
|
Buffer.from(nestedParts[1], "base64url").toString("utf-8")
|
|
1854
1854
|
);
|
|
1855
|
+
} catch {
|
|
1855
1856
|
}
|
|
1856
1857
|
}
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
} catch {
|
|
1858
|
+
}
|
|
1859
|
+
return payload;
|
|
1860
|
+
}
|
|
1861
|
+
function extractUserIdsFromJwt(token) {
|
|
1862
|
+
const payload = readJwtPayload(token);
|
|
1863
|
+
if (!payload) {
|
|
1864
1864
|
return { customuser_id: null, account_id: null };
|
|
1865
1865
|
}
|
|
1866
|
+
const accRaw = payload["zap:acc"];
|
|
1867
|
+
const accountId = accRaw != null ? parseInt(String(accRaw), 10) : null;
|
|
1868
|
+
const customUserId = payload["sub_type"] === "customuser" && payload["sub"] != null ? parseInt(String(payload["sub"]), 10) : null;
|
|
1869
|
+
return {
|
|
1870
|
+
customuser_id: customUserId !== null && !isNaN(customUserId) ? customUserId : null,
|
|
1871
|
+
account_id: accountId !== null && !isNaN(accountId) ? accountId : null
|
|
1872
|
+
};
|
|
1866
1873
|
}
|
|
1867
1874
|
|
|
1868
1875
|
// src/api/debug.ts
|
|
@@ -2211,6 +2218,19 @@ function isCredentialsFunction(credentials) {
|
|
|
2211
2218
|
return typeof credentials === "function";
|
|
2212
2219
|
}
|
|
2213
2220
|
|
|
2221
|
+
// src/utils/telemetry.ts
|
|
2222
|
+
var emittedOnce = /* @__PURE__ */ new WeakMap();
|
|
2223
|
+
function emitOnce(onEvent, event) {
|
|
2224
|
+
if (!emittedOnce.has(onEvent)) {
|
|
2225
|
+
emittedOnce.set(onEvent, /* @__PURE__ */ new Set());
|
|
2226
|
+
}
|
|
2227
|
+
const fired = emittedOnce.get(onEvent);
|
|
2228
|
+
if (!fired.has(event.type)) {
|
|
2229
|
+
fired.add(event.type);
|
|
2230
|
+
onEvent(event);
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2214
2234
|
// src/utils/url-utils.ts
|
|
2215
2235
|
function getZapierBaseUrl(baseUrl) {
|
|
2216
2236
|
if (!baseUrl) {
|
|
@@ -2433,8 +2453,10 @@ async function resolveCache(options) {
|
|
|
2433
2453
|
if (cliLogin?.createCache) {
|
|
2434
2454
|
try {
|
|
2435
2455
|
const cache = cliLogin.createCache();
|
|
2436
|
-
|
|
2437
|
-
|
|
2456
|
+
if (cache) {
|
|
2457
|
+
cachedDefaultCache = cache;
|
|
2458
|
+
return cache;
|
|
2459
|
+
}
|
|
2438
2460
|
} catch {
|
|
2439
2461
|
}
|
|
2440
2462
|
}
|
|
@@ -2446,6 +2468,11 @@ function entryIsValid(entry) {
|
|
|
2446
2468
|
if (entry.expiresAt === void 0) return true;
|
|
2447
2469
|
return entry.expiresAt > Date.now() + TOKEN_EXPIRATION_BUFFER_MS;
|
|
2448
2470
|
}
|
|
2471
|
+
async function readCachedToken(cacheKey, cache) {
|
|
2472
|
+
const cached = await cache.get(cacheKey);
|
|
2473
|
+
if (cached && entryIsValid(cached)) return cached.value;
|
|
2474
|
+
return void 0;
|
|
2475
|
+
}
|
|
2449
2476
|
async function invalidateCachedToken(options) {
|
|
2450
2477
|
const cacheKey = buildCacheKey(options);
|
|
2451
2478
|
pendingExchanges.delete(cacheKey);
|
|
@@ -2559,11 +2586,76 @@ function isCliLoginAvailable() {
|
|
|
2559
2586
|
if (cachedCliLogin === void 0) return void 0;
|
|
2560
2587
|
return cachedCliLogin !== false;
|
|
2561
2588
|
}
|
|
2589
|
+
function emitAuthResolved(onEvent, mechanism) {
|
|
2590
|
+
if (onEvent) {
|
|
2591
|
+
emitOnce(onEvent, {
|
|
2592
|
+
type: "auth_resolved",
|
|
2593
|
+
payload: { mechanism },
|
|
2594
|
+
timestamp: Date.now()
|
|
2595
|
+
});
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
async function getActiveCredentialsFromCli(baseUrl) {
|
|
2599
|
+
const cliLogin = await getCliLogin();
|
|
2600
|
+
return cliLogin?.getActiveCredentials?.({ baseUrl });
|
|
2601
|
+
}
|
|
2602
|
+
async function getStoredClientCredentialsFromCli(baseUrl) {
|
|
2603
|
+
const cliLogin = await getCliLogin();
|
|
2604
|
+
return cliLogin?.getStoredClientCredentials?.({ baseUrl });
|
|
2605
|
+
}
|
|
2562
2606
|
async function getTokenFromCliLogin(options) {
|
|
2563
2607
|
const cliLogin = await getCliLogin();
|
|
2564
2608
|
if (!cliLogin) return void 0;
|
|
2565
2609
|
return await cliLogin.getToken(options);
|
|
2566
2610
|
}
|
|
2611
|
+
async function tryStoredClientCredentialToken(options) {
|
|
2612
|
+
const activeCredential = await getActiveCredentialsFromCli(options.baseUrl);
|
|
2613
|
+
if (!activeCredential) return void 0;
|
|
2614
|
+
const resolvedBaseUrl = activeCredential.baseUrl || options.baseUrl || DEFAULT_AUTH_BASE_URL;
|
|
2615
|
+
const mergedScopes = mergeScopes(
|
|
2616
|
+
activeCredential.scopes.join(" "),
|
|
2617
|
+
options.requiredScopes
|
|
2618
|
+
);
|
|
2619
|
+
const cacheKey = buildCacheKey({
|
|
2620
|
+
clientId: activeCredential.clientId,
|
|
2621
|
+
scopes: mergedScopes,
|
|
2622
|
+
baseUrl: resolvedBaseUrl
|
|
2623
|
+
});
|
|
2624
|
+
const cache = await resolveCache(options);
|
|
2625
|
+
const pending = pendingExchanges.get(cacheKey);
|
|
2626
|
+
if (pending) return pending;
|
|
2627
|
+
const cached = await readCachedToken(cacheKey, cache);
|
|
2628
|
+
if (cached !== void 0) {
|
|
2629
|
+
if (options.debug)
|
|
2630
|
+
console.log(
|
|
2631
|
+
`[auth] Using cached token (clientId: ${activeCredential.clientId})`
|
|
2632
|
+
);
|
|
2633
|
+
emitAuthResolved(options.onEvent, "client_credentials");
|
|
2634
|
+
return cached;
|
|
2635
|
+
}
|
|
2636
|
+
const storedCredential = await getStoredClientCredentialsFromCli(resolvedBaseUrl);
|
|
2637
|
+
if (!storedCredential) {
|
|
2638
|
+
await invalidateCachedToken({
|
|
2639
|
+
clientId: activeCredential.clientId,
|
|
2640
|
+
scopes: activeCredential.scopes,
|
|
2641
|
+
baseUrl: resolvedBaseUrl,
|
|
2642
|
+
cache: options.cache
|
|
2643
|
+
});
|
|
2644
|
+
throw new ZapierAuthenticationError(
|
|
2645
|
+
`Stored client credential is missing its secret (clientId: ${activeCredential.clientId}). Run \`zapier-sdk login\` to recreate it.`
|
|
2646
|
+
);
|
|
2647
|
+
}
|
|
2648
|
+
if (options.debug)
|
|
2649
|
+
console.log(
|
|
2650
|
+
`[auth] Using stored client credential (clientId: ${storedCredential.clientId})`
|
|
2651
|
+
);
|
|
2652
|
+
const token = await resolveAuthTokenFromCredentials(
|
|
2653
|
+
storedCredential,
|
|
2654
|
+
options
|
|
2655
|
+
);
|
|
2656
|
+
emitAuthResolved(options.onEvent, "client_credentials");
|
|
2657
|
+
return token;
|
|
2658
|
+
}
|
|
2567
2659
|
async function resolveAuthToken(options = {}) {
|
|
2568
2660
|
const credentials = await resolveCredentials({
|
|
2569
2661
|
credentials: options.credentials,
|
|
@@ -2573,14 +2665,24 @@ async function resolveAuthToken(options = {}) {
|
|
|
2573
2665
|
if (credentials !== void 0) {
|
|
2574
2666
|
return resolveAuthTokenFromCredentials(credentials, options);
|
|
2575
2667
|
}
|
|
2576
|
-
|
|
2668
|
+
const storedToken = await tryStoredClientCredentialToken(options);
|
|
2669
|
+
if (storedToken !== void 0) return storedToken;
|
|
2670
|
+
if (options.debug) {
|
|
2671
|
+
console.log("[auth] Using JWT (no stored client credential found)");
|
|
2672
|
+
}
|
|
2673
|
+
const jwtToken = await getTokenFromCliLogin({
|
|
2577
2674
|
onEvent: options.onEvent,
|
|
2578
2675
|
fetch: options.fetch,
|
|
2579
2676
|
debug: options.debug
|
|
2580
2677
|
});
|
|
2678
|
+
if (jwtToken !== void 0) {
|
|
2679
|
+
emitAuthResolved(options.onEvent, "jwt");
|
|
2680
|
+
}
|
|
2681
|
+
return jwtToken;
|
|
2581
2682
|
}
|
|
2582
2683
|
async function resolveAuthTokenFromCredentials(credentials, options) {
|
|
2583
2684
|
if (typeof credentials === "string") {
|
|
2685
|
+
emitAuthResolved(options.onEvent, "token");
|
|
2584
2686
|
return credentials;
|
|
2585
2687
|
}
|
|
2586
2688
|
if (isClientCredentials(credentials)) {
|
|
@@ -2593,15 +2695,25 @@ async function resolveAuthTokenFromCredentials(credentials, options) {
|
|
|
2593
2695
|
baseUrl: resolvedBaseUrl
|
|
2594
2696
|
});
|
|
2595
2697
|
const cache = await resolveCache(options);
|
|
2596
|
-
const cached = await
|
|
2597
|
-
if (cached
|
|
2598
|
-
|
|
2698
|
+
const cached = await readCachedToken(cacheKey, cache);
|
|
2699
|
+
if (cached !== void 0) {
|
|
2700
|
+
if (options.debug) {
|
|
2701
|
+
console.log(`[auth] Using cached token (clientId: ${clientId})`);
|
|
2702
|
+
}
|
|
2703
|
+
return cached;
|
|
2599
2704
|
}
|
|
2600
2705
|
const pending = pendingExchanges.get(cacheKey);
|
|
2601
2706
|
if (pending) return pending;
|
|
2602
2707
|
const runLocked = async () => {
|
|
2603
|
-
const recheck = await
|
|
2604
|
-
if (recheck
|
|
2708
|
+
const recheck = await readCachedToken(cacheKey, cache);
|
|
2709
|
+
if (recheck !== void 0) {
|
|
2710
|
+
if (options.debug) {
|
|
2711
|
+
console.log(
|
|
2712
|
+
`[auth] Using cached token (clientId: ${clientId}, locked recheck)`
|
|
2713
|
+
);
|
|
2714
|
+
}
|
|
2715
|
+
return recheck;
|
|
2716
|
+
}
|
|
2605
2717
|
const { accessToken, expiresIn } = await exchangeClientCredentials({
|
|
2606
2718
|
clientId: credentials.clientId,
|
|
2607
2719
|
clientSecret: credentials.clientSecret,
|
|
@@ -2659,7 +2771,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2659
2771
|
}
|
|
2660
2772
|
|
|
2661
2773
|
// src/sdk-version.ts
|
|
2662
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2774
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.51.0" : void 0) || "unknown";
|
|
2663
2775
|
|
|
2664
2776
|
// src/utils/open-url.ts
|
|
2665
2777
|
var nodePrefix = "node:";
|
|
@@ -3240,7 +3352,9 @@ var ZapierApiClient = class {
|
|
|
3240
3352
|
if (data && typeof data === "object") {
|
|
3241
3353
|
headers["Content-Type"] = "application/json";
|
|
3242
3354
|
}
|
|
3243
|
-
const wasMissingAuthToken = options.authRequired && await this.getAuthToken({
|
|
3355
|
+
const wasMissingAuthToken = options.authRequired && await this.getAuthToken({
|
|
3356
|
+
requiredScopes: options.requiredScopes
|
|
3357
|
+
}) == null;
|
|
3244
3358
|
const response = await this.fetch(path, {
|
|
3245
3359
|
...options,
|
|
3246
3360
|
method,
|
|
@@ -3434,6 +3548,28 @@ var createZapierApi = (options) => {
|
|
|
3434
3548
|
});
|
|
3435
3549
|
};
|
|
3436
3550
|
|
|
3551
|
+
// src/api/index.ts
|
|
3552
|
+
function getOrCreateApiClient(config) {
|
|
3553
|
+
const {
|
|
3554
|
+
baseUrl = ZAPIER_BASE_URL,
|
|
3555
|
+
credentials,
|
|
3556
|
+
token,
|
|
3557
|
+
api: providedApi,
|
|
3558
|
+
debug = false,
|
|
3559
|
+
fetch: customFetch
|
|
3560
|
+
} = config;
|
|
3561
|
+
if (providedApi) {
|
|
3562
|
+
return providedApi;
|
|
3563
|
+
}
|
|
3564
|
+
return createZapierApi({
|
|
3565
|
+
baseUrl,
|
|
3566
|
+
credentials,
|
|
3567
|
+
token,
|
|
3568
|
+
debug,
|
|
3569
|
+
fetch: customFetch
|
|
3570
|
+
});
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3437
3573
|
// src/plugins/api/index.ts
|
|
3438
3574
|
var apiPlugin = definePlugin(
|
|
3439
3575
|
(sdk) => {
|
|
@@ -10301,6 +10437,7 @@ exports.createSdk = createSdk;
|
|
|
10301
10437
|
exports.createTableFieldsPlugin = createTableFieldsPlugin;
|
|
10302
10438
|
exports.createTablePlugin = createTablePlugin;
|
|
10303
10439
|
exports.createTableRecordsPlugin = createTableRecordsPlugin;
|
|
10440
|
+
exports.createZapierApi = createZapierApi;
|
|
10304
10441
|
exports.createZapierSdk = createZapierSdk2;
|
|
10305
10442
|
exports.createZapierSdkWithoutRegistry = createZapierSdkWithoutRegistry;
|
|
10306
10443
|
exports.definePlugin = definePlugin;
|
|
@@ -10324,6 +10461,7 @@ exports.getConnectionPlugin = getConnectionPlugin;
|
|
|
10324
10461
|
exports.getCpuTime = getCpuTime;
|
|
10325
10462
|
exports.getCurrentTimestamp = getCurrentTimestamp;
|
|
10326
10463
|
exports.getMemoryUsage = getMemoryUsage;
|
|
10464
|
+
exports.getOrCreateApiClient = getOrCreateApiClient;
|
|
10327
10465
|
exports.getOsInfo = getOsInfo;
|
|
10328
10466
|
exports.getPlatformVersions = getPlatformVersions;
|
|
10329
10467
|
exports.getPreferredManifestEntryKey = getPreferredManifestEntryKey;
|
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,
|
|
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-C52BjTXh.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, dB 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, dA 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, dH as ClientCredentialsObject, dS as ClientCredentialsObjectSchema, K as Connection, d_ as ConnectionEntry, dZ as ConnectionEntrySchema, by as ConnectionIdProperty, b6 as ConnectionIdPropertySchema, aT as ConnectionItem, bz as ConnectionProperty, b8 as ConnectionPropertySchema, e0 as ConnectionsMap, d$ as ConnectionsMapSchema, e2 as ConnectionsPluginProvides, bO as ConnectionsProperty, bm as ConnectionsPropertySchema, O as ConnectionsResponse, cz as CreateClientCredentialsPluginProvides, eo as CreateTableFieldsPluginProvides, ei as CreateTablePluginProvides, ew as CreateTableRecordsPluginProvides, dE as Credentials, dX as CredentialsFunction, dW as CredentialsFunctionSchema, dG as CredentialsObject, dU as CredentialsObjectSchema, dY as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MS, eb as DEFAULT_APPROVAL_TIMEOUT_MS, cW as DEFAULT_CONFIG_PATH, ec as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, bF as DebugProperty, bd as DebugPropertySchema, cB as DeleteClientCredentialsPluginProvides, eq as DeleteTableFieldsPluginProvides, ek as DeleteTablePluginProvides, ey as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, aC as EnhancedErrorEventData, bV as ErrorOptions, dD 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, eg as GetTablePluginProvides, es 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, em as ListTableFieldsPluginProvides, eu as ListTableRecordsPluginProvides, ee as ListTablesPluginProvides, dC as LoadingEvent, e5 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, dI as PkceCredentialsObject, dT 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, dm as ResolveAuthTokenOptions, dN as ResolveCredentialsOptions, dF as ResolvedCredentials, dV as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aX as RootFieldItem, cP as RunActionPluginProvides, dz 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, eA as UpdateTableRecordsPluginProvides, Q as UserProfile, aY as UserProfileItem, e3 as ZAPIER_BASE_URL, e8 as ZAPIER_MAX_NETWORK_RETRIES, e9 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, dv as ZapierCache, dw as ZapierCacheEntry, dx 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, dn as clearTokenCache, d9 as clientCredentialsNameResolver, da as clientIdResolver, ap as composePlugins, d5 as connectionIdGenericResolver, d4 as connectionIdResolver, e1 as connectionsPlugin, aQ as createBaseEvent, cy as createClientCredentialsPlugin, V as createFunction, dy as createMemoryCache, ag as createOptionsPlugin, ao as createPaginatedPluginMethod, an as createPluginMethod, af as createSdk, en as createTableFieldsPlugin, eh as createTablePlugin, ev as createTableRecordsPlugin, av as createZapierApi, ae as createZapierSdkWithoutRegistry, am as definePlugin, cA as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, ej as deleteTablePlugin, ex 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, dQ as getBaseUrlFromCredentials, aK as getCiPlatform, dR 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, ef as getTablePlugin, er as getTableRecordPlugin, ds as getTokenFromCliLogin, ea as getZapierApprovalMode, e4 as getZapierSdkService, dq as injectCliLogin, d8 as inputFieldKeyResolver, d7 as inputsAllOptionalResolver, d6 as inputsResolver, dp as invalidateCachedToken, du as invalidateCredentialsToken, aJ as isCi, dr as isCliLoginAvailable, dJ as isClientCredentials, dM as isCredentialsFunction, dL as isCredentialsObject, dK as isPkceCredentials, S as isPositional, cq as listActionInputFieldChoicesPlugin, co as listActionInputFieldsPlugin, cm as listActionsPlugin, ck as listAppsPlugin, cw as listClientCredentialsPlugin, cu as listConnectionsPlugin, el as listTableFieldsPlugin, et as listTableRecordsPlugin, ed as listTablesPlugin, aa as logDeprecation, cU as manifestPlugin, as as registryPlugin, cQ as requestPlugin, ab as resetDeprecationWarnings, dt as resolveAuthToken, dP as resolveCredentials, dO as resolveCredentialsFromEnv, cO as runActionPlugin, a4 as runWithTelemetryContext, df as tableFieldIdsResolver, dh as tableFieldsResolver, dk as tableFiltersResolver, db as tableIdResolver, dg as tableNameResolver, dd as tableRecordIdResolver, de as tableRecordIdsResolver, di as tableRecordsResolver, dl as tableSortResolver, dj as tableUpdateRecordsResolver, a5 as toSnakeCase, a6 as toTitleCase, dc as triggerInboxResolver, ez as updateTableRecordsPlugin } from './index-C52BjTXh.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';
|
package/dist/experimental.d.ts
CHANGED
|
@@ -232,13 +232,13 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
232
232
|
} & {
|
|
233
233
|
listActions: (options?: (({
|
|
234
234
|
app: string;
|
|
235
|
-
actionType?: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" |
|
|
235
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
236
236
|
pageSize?: number | undefined;
|
|
237
237
|
maxItems?: number | undefined;
|
|
238
238
|
cursor?: string | undefined;
|
|
239
239
|
} | {
|
|
240
240
|
appKey: string;
|
|
241
|
-
actionType?: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" |
|
|
241
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
242
242
|
pageSize?: number | undefined;
|
|
243
243
|
maxItems?: number | undefined;
|
|
244
244
|
cursor?: string | undefined;
|
|
@@ -250,7 +250,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
250
250
|
description: string;
|
|
251
251
|
key: string;
|
|
252
252
|
app_key: string;
|
|
253
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
253
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
254
254
|
title: string;
|
|
255
255
|
type: "action";
|
|
256
256
|
id?: string | undefined;
|
|
@@ -267,18 +267,18 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
267
267
|
} & {
|
|
268
268
|
getAction: (options?: {
|
|
269
269
|
app: string;
|
|
270
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
270
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
271
271
|
action: string;
|
|
272
272
|
} | {
|
|
273
273
|
appKey: string;
|
|
274
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
274
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
275
275
|
actionKey: string;
|
|
276
276
|
} | undefined) => Promise<{
|
|
277
277
|
data: {
|
|
278
278
|
description: string;
|
|
279
279
|
key: string;
|
|
280
280
|
app_key: string;
|
|
281
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
281
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
282
282
|
title: string;
|
|
283
283
|
type: "action";
|
|
284
284
|
id?: string | undefined;
|
|
@@ -296,7 +296,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
296
296
|
} & {
|
|
297
297
|
listActionInputFields: (options?: (({
|
|
298
298
|
app: string;
|
|
299
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
299
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
300
300
|
action: string;
|
|
301
301
|
connection?: string | number | undefined;
|
|
302
302
|
connectionId?: string | number | null | undefined;
|
|
@@ -307,7 +307,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
307
307
|
cursor?: string | undefined;
|
|
308
308
|
} | {
|
|
309
309
|
appKey: string;
|
|
310
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
310
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
311
311
|
actionKey: string;
|
|
312
312
|
connection?: string | number | undefined;
|
|
313
313
|
connectionId?: string | number | null | undefined;
|
|
@@ -350,7 +350,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
350
350
|
} & {
|
|
351
351
|
getActionInputFieldsSchema: (options?: {
|
|
352
352
|
app: string;
|
|
353
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
353
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
354
354
|
action: string;
|
|
355
355
|
connection?: string | number | undefined;
|
|
356
356
|
connectionId?: string | number | null | undefined;
|
|
@@ -358,7 +358,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
358
358
|
inputs?: Record<string, unknown> | undefined;
|
|
359
359
|
} | {
|
|
360
360
|
appKey: string;
|
|
361
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
361
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
362
362
|
actionKey: string;
|
|
363
363
|
connection?: string | number | undefined;
|
|
364
364
|
connectionId?: string | number | null | undefined;
|
|
@@ -376,7 +376,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
376
376
|
} & {
|
|
377
377
|
listActionInputFieldChoices: (options?: (({
|
|
378
378
|
app: string;
|
|
379
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
379
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
380
380
|
action: string;
|
|
381
381
|
inputField: string;
|
|
382
382
|
connection?: string | number | undefined;
|
|
@@ -389,7 +389,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
389
389
|
cursor?: string | undefined;
|
|
390
390
|
} | {
|
|
391
391
|
appKey: string;
|
|
392
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
392
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
393
393
|
actionKey: string;
|
|
394
394
|
inputFieldKey: string;
|
|
395
395
|
connection?: string | number | undefined;
|
|
@@ -419,7 +419,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
419
419
|
} & {
|
|
420
420
|
listInputFields: (options?: (({
|
|
421
421
|
app: string;
|
|
422
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
422
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
423
423
|
action: string;
|
|
424
424
|
connection?: string | number | undefined;
|
|
425
425
|
connectionId?: string | number | null | undefined;
|
|
@@ -430,7 +430,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
430
430
|
cursor?: string | undefined;
|
|
431
431
|
} | {
|
|
432
432
|
appKey: string;
|
|
433
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
433
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
434
434
|
actionKey: string;
|
|
435
435
|
connection?: string | number | undefined;
|
|
436
436
|
connectionId?: string | number | null | undefined;
|
|
@@ -476,13 +476,13 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
476
476
|
};
|
|
477
477
|
actionType: import("zod").ZodEnum<{
|
|
478
478
|
filter: "filter";
|
|
479
|
+
write: "write";
|
|
479
480
|
read: "read";
|
|
480
481
|
read_bulk: "read_bulk";
|
|
481
482
|
run: "run";
|
|
482
483
|
search: "search";
|
|
483
484
|
search_and_write: "search_and_write";
|
|
484
485
|
search_or_write: "search_or_write";
|
|
485
|
-
write: "write";
|
|
486
486
|
}>;
|
|
487
487
|
action: import("zod").ZodString & {
|
|
488
488
|
_def: import("zod/v4/core").$ZodStringDef & import("./index").PositionalMetadata;
|
|
@@ -500,13 +500,13 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
500
500
|
};
|
|
501
501
|
actionType: import("zod").ZodEnum<{
|
|
502
502
|
filter: "filter";
|
|
503
|
+
write: "write";
|
|
503
504
|
read: "read";
|
|
504
505
|
read_bulk: "read_bulk";
|
|
505
506
|
run: "run";
|
|
506
507
|
search: "search";
|
|
507
508
|
search_and_write: "search_and_write";
|
|
508
509
|
search_or_write: "search_or_write";
|
|
509
|
-
write: "write";
|
|
510
510
|
}>;
|
|
511
511
|
actionKey: import("zod").ZodString;
|
|
512
512
|
connection: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
@@ -545,7 +545,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
545
545
|
} & {
|
|
546
546
|
getInputFieldsSchema: (options?: {
|
|
547
547
|
app: string;
|
|
548
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
548
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
549
549
|
action: string;
|
|
550
550
|
connection?: string | number | undefined;
|
|
551
551
|
connectionId?: string | number | null | undefined;
|
|
@@ -553,7 +553,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
553
553
|
inputs?: Record<string, unknown> | undefined;
|
|
554
554
|
} | {
|
|
555
555
|
appKey: string;
|
|
556
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
556
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
557
557
|
actionKey: string;
|
|
558
558
|
connection?: string | number | undefined;
|
|
559
559
|
connectionId?: string | number | null | undefined;
|
|
@@ -573,13 +573,13 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
573
573
|
};
|
|
574
574
|
actionType: import("zod").ZodEnum<{
|
|
575
575
|
filter: "filter";
|
|
576
|
+
write: "write";
|
|
576
577
|
read: "read";
|
|
577
578
|
read_bulk: "read_bulk";
|
|
578
579
|
run: "run";
|
|
579
580
|
search: "search";
|
|
580
581
|
search_and_write: "search_and_write";
|
|
581
582
|
search_or_write: "search_or_write";
|
|
582
|
-
write: "write";
|
|
583
583
|
}>;
|
|
584
584
|
action: import("zod").ZodString & {
|
|
585
585
|
_def: import("zod/v4/core").$ZodStringDef & import("./index").PositionalMetadata;
|
|
@@ -594,13 +594,13 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
594
594
|
};
|
|
595
595
|
actionType: import("zod").ZodEnum<{
|
|
596
596
|
filter: "filter";
|
|
597
|
+
write: "write";
|
|
597
598
|
read: "read";
|
|
598
599
|
read_bulk: "read_bulk";
|
|
599
600
|
run: "run";
|
|
600
601
|
search: "search";
|
|
601
602
|
search_and_write: "search_and_write";
|
|
602
603
|
search_or_write: "search_or_write";
|
|
603
|
-
write: "write";
|
|
604
604
|
}>;
|
|
605
605
|
actionKey: import("zod").ZodString;
|
|
606
606
|
connection: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
@@ -614,7 +614,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
614
614
|
} & {
|
|
615
615
|
listInputFieldChoices: (options?: (({
|
|
616
616
|
app: string;
|
|
617
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
617
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
618
618
|
action: string;
|
|
619
619
|
inputField: string;
|
|
620
620
|
connection?: string | number | undefined;
|
|
@@ -627,7 +627,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
627
627
|
cursor?: string | undefined;
|
|
628
628
|
} | {
|
|
629
629
|
appKey: string;
|
|
630
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
630
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
631
631
|
actionKey: string;
|
|
632
632
|
inputFieldKey: string;
|
|
633
633
|
connection?: string | number | undefined;
|
|
@@ -660,13 +660,13 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
660
660
|
};
|
|
661
661
|
actionType: import("zod").ZodEnum<{
|
|
662
662
|
filter: "filter";
|
|
663
|
+
write: "write";
|
|
663
664
|
read: "read";
|
|
664
665
|
read_bulk: "read_bulk";
|
|
665
666
|
run: "run";
|
|
666
667
|
search: "search";
|
|
667
668
|
search_and_write: "search_and_write";
|
|
668
669
|
search_or_write: "search_or_write";
|
|
669
|
-
write: "write";
|
|
670
670
|
}>;
|
|
671
671
|
action: import("zod").ZodString & {
|
|
672
672
|
_def: import("zod/v4/core").$ZodStringDef & import("./index").PositionalMetadata;
|
|
@@ -688,13 +688,13 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
688
688
|
};
|
|
689
689
|
actionType: import("zod").ZodEnum<{
|
|
690
690
|
filter: "filter";
|
|
691
|
+
write: "write";
|
|
691
692
|
read: "read";
|
|
692
693
|
read_bulk: "read_bulk";
|
|
693
694
|
run: "run";
|
|
694
695
|
search: "search";
|
|
695
696
|
search_and_write: "search_and_write";
|
|
696
697
|
search_or_write: "search_or_write";
|
|
697
|
-
write: "write";
|
|
698
698
|
}>;
|
|
699
699
|
actionKey: import("zod").ZodString;
|
|
700
700
|
inputFieldKey: import("zod").ZodString;
|
|
@@ -720,7 +720,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
720
720
|
} & {
|
|
721
721
|
runAction: (options?: (({
|
|
722
722
|
app: string;
|
|
723
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
723
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
724
724
|
action: string;
|
|
725
725
|
connection?: string | number | undefined;
|
|
726
726
|
connectionId?: string | number | null | undefined;
|
|
@@ -732,7 +732,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
732
732
|
cursor?: string | undefined;
|
|
733
733
|
} | {
|
|
734
734
|
appKey: string;
|
|
735
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
735
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
736
736
|
actionKey: string;
|
|
737
737
|
connection?: string | number | undefined;
|
|
738
738
|
connectionId?: string | number | null | undefined;
|