@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.mjs
CHANGED
|
@@ -148,6 +148,21 @@ function parseIntEnvVar(name) {
|
|
|
148
148
|
}
|
|
149
149
|
var ZAPIER_MAX_NETWORK_RETRIES = parseIntEnvVar("ZAPIER_MAX_NETWORK_RETRIES") ?? 3;
|
|
150
150
|
var ZAPIER_MAX_NETWORK_RETRY_DELAY_MS = parseIntEnvVar("ZAPIER_MAX_NETWORK_RETRY_DELAY_MS") ?? 6e4;
|
|
151
|
+
var MAX_CONCURRENCY_LIMIT = 1e4;
|
|
152
|
+
function parseConcurrencyEnvVar(name) {
|
|
153
|
+
const value = globalThis.process?.env?.[name];
|
|
154
|
+
if (!value) return void 0;
|
|
155
|
+
if (value === "Infinity") return Infinity;
|
|
156
|
+
if (/^[1-9]\d*$/.test(value)) {
|
|
157
|
+
const parsed = parseInt(value, 10);
|
|
158
|
+
if (parsed <= MAX_CONCURRENCY_LIMIT) return parsed;
|
|
159
|
+
}
|
|
160
|
+
console.warn(
|
|
161
|
+
`[zapier-sdk] Invalid value for ${name}: "${value}" (expected positive integer 1-${MAX_CONCURRENCY_LIMIT} or "Infinity")`
|
|
162
|
+
);
|
|
163
|
+
return void 0;
|
|
164
|
+
}
|
|
165
|
+
var ZAPIER_MAX_CONCURRENT_REQUESTS = parseConcurrencyEnvVar("ZAPIER_MAX_CONCURRENT_REQUESTS") ?? 200;
|
|
151
166
|
function getZapierApprovalMode() {
|
|
152
167
|
const value = globalThis.process?.env?.ZAPIER_APPROVAL_MODE;
|
|
153
168
|
if (value === "disabled" || value === "poll" || value === "throw")
|
|
@@ -2175,6 +2190,83 @@ async function pollUntilComplete(options) {
|
|
|
2175
2190
|
}
|
|
2176
2191
|
}
|
|
2177
2192
|
}
|
|
2193
|
+
|
|
2194
|
+
// src/api/concurrency.ts
|
|
2195
|
+
var NO_OP_RELEASE = () => {
|
|
2196
|
+
};
|
|
2197
|
+
var NO_OP_SEMAPHORE = {
|
|
2198
|
+
acquire: async () => NO_OP_RELEASE,
|
|
2199
|
+
tryAcquire: () => NO_OP_RELEASE
|
|
2200
|
+
};
|
|
2201
|
+
function createSemaphore(maxPermits) {
|
|
2202
|
+
if (maxPermits === Infinity) {
|
|
2203
|
+
return NO_OP_SEMAPHORE;
|
|
2204
|
+
}
|
|
2205
|
+
if (!Number.isInteger(maxPermits) || maxPermits <= 0) {
|
|
2206
|
+
throw new Error(
|
|
2207
|
+
`maxPermits must be a positive integer or Infinity, got: ${maxPermits}`
|
|
2208
|
+
);
|
|
2209
|
+
}
|
|
2210
|
+
let permits = maxPermits;
|
|
2211
|
+
const waiters = [];
|
|
2212
|
+
const release = () => {
|
|
2213
|
+
const next = waiters.shift();
|
|
2214
|
+
if (next) {
|
|
2215
|
+
next.grant();
|
|
2216
|
+
} else {
|
|
2217
|
+
permits++;
|
|
2218
|
+
}
|
|
2219
|
+
};
|
|
2220
|
+
const makeReleaseOnce = () => {
|
|
2221
|
+
let released = false;
|
|
2222
|
+
return () => {
|
|
2223
|
+
if (released) return;
|
|
2224
|
+
released = true;
|
|
2225
|
+
release();
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
return {
|
|
2229
|
+
tryAcquire() {
|
|
2230
|
+
if (permits > 0) {
|
|
2231
|
+
permits--;
|
|
2232
|
+
return makeReleaseOnce();
|
|
2233
|
+
}
|
|
2234
|
+
return null;
|
|
2235
|
+
},
|
|
2236
|
+
async acquire(signal) {
|
|
2237
|
+
if (signal?.aborted) {
|
|
2238
|
+
throw signal.reason ?? new DOMException("Aborted", "AbortError");
|
|
2239
|
+
}
|
|
2240
|
+
if (permits > 0) {
|
|
2241
|
+
permits--;
|
|
2242
|
+
return makeReleaseOnce();
|
|
2243
|
+
}
|
|
2244
|
+
return new Promise((resolve2, reject) => {
|
|
2245
|
+
const onAbort = () => {
|
|
2246
|
+
const idx = waiters.indexOf(waiter);
|
|
2247
|
+
if (idx !== -1) {
|
|
2248
|
+
waiters.splice(idx, 1);
|
|
2249
|
+
waiter.cancel(
|
|
2250
|
+
signal?.reason ?? new DOMException("Aborted", "AbortError")
|
|
2251
|
+
);
|
|
2252
|
+
}
|
|
2253
|
+
};
|
|
2254
|
+
const waiter = {
|
|
2255
|
+
grant: () => {
|
|
2256
|
+
signal?.removeEventListener("abort", onAbort);
|
|
2257
|
+
resolve2(makeReleaseOnce());
|
|
2258
|
+
},
|
|
2259
|
+
cancel: (reason) => {
|
|
2260
|
+
signal?.removeEventListener("abort", onAbort);
|
|
2261
|
+
reject(reason);
|
|
2262
|
+
}
|
|
2263
|
+
};
|
|
2264
|
+
signal?.addEventListener("abort", onAbort);
|
|
2265
|
+
waiters.push(waiter);
|
|
2266
|
+
});
|
|
2267
|
+
}
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2178
2270
|
var ClientCredentialsObjectSchema = z.object({
|
|
2179
2271
|
type: z.enum(["client_credentials"]).optional().meta({ internal: true }),
|
|
2180
2272
|
clientId: z.string().describe("OAuth client ID for authentication.").meta({ valueHint: "id" }),
|
|
@@ -2769,7 +2861,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2769
2861
|
}
|
|
2770
2862
|
|
|
2771
2863
|
// src/sdk-version.ts
|
|
2772
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2864
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.53.0" : void 0) || "unknown";
|
|
2773
2865
|
|
|
2774
2866
|
// src/utils/open-url.ts
|
|
2775
2867
|
var nodePrefix = "node:";
|
|
@@ -2979,9 +3071,61 @@ var ZapierApiClient = class {
|
|
|
2979
3071
|
await sleep(delayMs, init?.signal ?? void 0);
|
|
2980
3072
|
}
|
|
2981
3073
|
};
|
|
3074
|
+
/**
|
|
3075
|
+
* Wrap an outbound HTTP call with the concurrency semaphore. Used by both
|
|
3076
|
+
* `rawFetch` (path-based) and the approval-poll path (absolute URL); each
|
|
3077
|
+
* caller acquires per-attempt, so 429 retry sleep is held but the gap
|
|
3078
|
+
* between approval polls and the human-approval wait are not.
|
|
3079
|
+
*
|
|
3080
|
+
* The release is registered in a finally that wraps the entire post-
|
|
3081
|
+
* acquire flow — including the `wait_end` event emission — so a throwing
|
|
3082
|
+
* `onEvent` handler can never leak a permit.
|
|
3083
|
+
*
|
|
3084
|
+
* Slot lifetime is intentionally tied to "fetch resolves" (headers
|
|
3085
|
+
* received), NOT to "response body fully consumed". WHATWG `fetch()`
|
|
3086
|
+
* resolves once headers are in; the body is still streaming. We rely on
|
|
3087
|
+
* that boundary so streaming responses (SSE, long-running chunked reads)
|
|
3088
|
+
* don't pin a permit for the lifetime of the stream — a single SSE
|
|
3089
|
+
* consumer would otherwise hold one of N slots for as long as the
|
|
3090
|
+
* connection stays open. Do not move the release into a path that awaits
|
|
3091
|
+
* body consumption (e.g. `parseResult` / `response.text()`); doing so
|
|
3092
|
+
* would silently break streaming consumers without failing any of the
|
|
3093
|
+
* short-request tests.
|
|
3094
|
+
*/
|
|
3095
|
+
this.withSemaphore = async (context, fn) => {
|
|
3096
|
+
const fastRelease = this.semaphore.tryAcquire();
|
|
3097
|
+
let waitStart = null;
|
|
3098
|
+
let release = fastRelease;
|
|
3099
|
+
if (release === null) {
|
|
3100
|
+
waitStart = Date.now();
|
|
3101
|
+
this.emitEvent("api:concurrency_wait_start", {
|
|
3102
|
+
url: context.url,
|
|
3103
|
+
method: context.method
|
|
3104
|
+
});
|
|
3105
|
+
release = await this.semaphore.acquire(context.signal ?? void 0);
|
|
3106
|
+
}
|
|
3107
|
+
const acquiredRelease = release;
|
|
3108
|
+
try {
|
|
3109
|
+
if (waitStart !== null) {
|
|
3110
|
+
this.emitEvent("api:concurrency_wait_end", {
|
|
3111
|
+
url: context.url,
|
|
3112
|
+
method: context.method,
|
|
3113
|
+
waitedMs: Date.now() - waitStart
|
|
3114
|
+
});
|
|
3115
|
+
}
|
|
3116
|
+
return await fn();
|
|
3117
|
+
} finally {
|
|
3118
|
+
acquiredRelease();
|
|
3119
|
+
}
|
|
3120
|
+
};
|
|
2982
3121
|
/**
|
|
2983
3122
|
* Perform a request with auth, header merging, and rate-limit (429) retries.
|
|
2984
3123
|
* Does NOT handle 403 approval_required — that's routed by `fetch`.
|
|
3124
|
+
*
|
|
3125
|
+
* Concurrency: a semaphore slot is held across the entire call, including
|
|
3126
|
+
* the 429 retry sleep inside `rawFetchUrl`. That keeps backpressure
|
|
3127
|
+
* coherent — when the server is rate-limiting us, we don't dump more
|
|
3128
|
+
* parallelism into the queue.
|
|
2985
3129
|
*/
|
|
2986
3130
|
this.rawFetch = async (path, init) => {
|
|
2987
3131
|
if (!path.startsWith("/")) {
|
|
@@ -2990,7 +3134,10 @@ var ZapierApiClient = class {
|
|
|
2990
3134
|
);
|
|
2991
3135
|
}
|
|
2992
3136
|
const { url, pathConfig: pathConfig2 } = this.buildUrl(path, init?.searchParams);
|
|
2993
|
-
return this.
|
|
3137
|
+
return this.withSemaphore(
|
|
3138
|
+
{ url, method: init?.method ?? "GET", signal: init?.signal },
|
|
3139
|
+
() => this.rawFetchUrl(url, init, pathConfig2)
|
|
3140
|
+
);
|
|
2994
3141
|
};
|
|
2995
3142
|
/**
|
|
2996
3143
|
* Approval-aware HTTP fetch.
|
|
@@ -3098,6 +3245,15 @@ var ZapierApiClient = class {
|
|
|
3098
3245
|
};
|
|
3099
3246
|
this.maxNetworkRetries = options.maxNetworkRetries ?? ZAPIER_MAX_NETWORK_RETRIES;
|
|
3100
3247
|
this.maxNetworkRetryDelayMs = options.maxNetworkRetryDelayMs ?? ZAPIER_MAX_NETWORK_RETRY_DELAY_MS;
|
|
3248
|
+
const requested = options.maxConcurrentRequests;
|
|
3249
|
+
const limit = requested === void 0 || Number.isNaN(requested) ? ZAPIER_MAX_CONCURRENT_REQUESTS : requested;
|
|
3250
|
+
if (limit !== Infinity && (!Number.isInteger(limit) || limit < 1 || limit > MAX_CONCURRENCY_LIMIT)) {
|
|
3251
|
+
throw new ZapierConfigurationError(
|
|
3252
|
+
`Invalid maxConcurrentRequests: ${limit} (expected positive integer 1-${MAX_CONCURRENCY_LIMIT} or Infinity)`,
|
|
3253
|
+
{ configType: "maxConcurrentRequests" }
|
|
3254
|
+
);
|
|
3255
|
+
}
|
|
3256
|
+
this.semaphore = createSemaphore(limit);
|
|
3101
3257
|
}
|
|
3102
3258
|
// Emit an event if onEvent handler is configured
|
|
3103
3259
|
emitEvent(type, payload) {
|
|
@@ -3475,10 +3631,16 @@ var ZapierApiClient = class {
|
|
|
3475
3631
|
// poll_url is an absolute URL supplied by the server, so we use
|
|
3476
3632
|
// rawFetchUrl directly (skipping path resolution) but still share
|
|
3477
3633
|
// auth + interactive-header + 429-retry with the rest of the SDK.
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3634
|
+
// Each individual poll request goes through the concurrency
|
|
3635
|
+
// semaphore — but we deliberately do not hold a slot across the
|
|
3636
|
+
// sleep between polls or across the human-approval wait.
|
|
3637
|
+
fetchPoll: () => this.withSemaphore(
|
|
3638
|
+
{ url: approval.poll_url, method: "GET" },
|
|
3639
|
+
() => this.rawFetchUrl(approval.poll_url, {
|
|
3640
|
+
method: "GET",
|
|
3641
|
+
headers: { Accept: "application/json" }
|
|
3642
|
+
})
|
|
3643
|
+
),
|
|
3482
3644
|
timeoutMs,
|
|
3483
3645
|
isPending: (body2) => {
|
|
3484
3646
|
const parsed = PollApprovalResponseSchema.safeParse(body2);
|
|
@@ -3580,6 +3742,7 @@ var apiPlugin = definePlugin(
|
|
|
3580
3742
|
debug = false,
|
|
3581
3743
|
maxNetworkRetries = ZAPIER_MAX_NETWORK_RETRIES,
|
|
3582
3744
|
maxNetworkRetryDelayMs = ZAPIER_MAX_NETWORK_RETRY_DELAY_MS,
|
|
3745
|
+
maxConcurrentRequests = ZAPIER_MAX_CONCURRENT_REQUESTS,
|
|
3583
3746
|
approvalTimeoutMs,
|
|
3584
3747
|
maxApprovalRetries,
|
|
3585
3748
|
approvalMode,
|
|
@@ -3594,6 +3757,7 @@ var apiPlugin = definePlugin(
|
|
|
3594
3757
|
onEvent,
|
|
3595
3758
|
maxNetworkRetries,
|
|
3596
3759
|
maxNetworkRetryDelayMs,
|
|
3760
|
+
maxConcurrentRequests,
|
|
3597
3761
|
approvalTimeoutMs,
|
|
3598
3762
|
maxApprovalRetries,
|
|
3599
3763
|
approvalMode,
|
|
@@ -4056,6 +4220,29 @@ var triggerInboxResolver = {
|
|
|
4056
4220
|
}))
|
|
4057
4221
|
})
|
|
4058
4222
|
};
|
|
4223
|
+
|
|
4224
|
+
// src/resolvers/triggerMessages.ts
|
|
4225
|
+
var triggerMessagesResolver = {
|
|
4226
|
+
type: "dynamic",
|
|
4227
|
+
depends: ["inbox"],
|
|
4228
|
+
fetch: async (sdk, params) => toIterable(
|
|
4229
|
+
sdk.listTriggerInboxMessages({
|
|
4230
|
+
inbox: params.inbox
|
|
4231
|
+
})
|
|
4232
|
+
),
|
|
4233
|
+
prompt: (messages) => ({
|
|
4234
|
+
type: "checkbox",
|
|
4235
|
+
name: "messages",
|
|
4236
|
+
message: "Select messages:",
|
|
4237
|
+
// Only leased messages are eligible to ack or release. Acked messages
|
|
4238
|
+
// are gone from the inbox already; available/quarantined ones can't be
|
|
4239
|
+
// operated on by these methods.
|
|
4240
|
+
choices: messages.filter((message) => message.status === "leased").map((message) => ({
|
|
4241
|
+
name: `${message.id} (${message.status}, lease_count: ${message.message_attributes.lease_count})`,
|
|
4242
|
+
value: message.id
|
|
4243
|
+
}))
|
|
4244
|
+
})
|
|
4245
|
+
};
|
|
4059
4246
|
function formatFieldValue(v) {
|
|
4060
4247
|
if (v == null) return "";
|
|
4061
4248
|
if (typeof v === "object") {
|
|
@@ -8849,15 +9036,13 @@ var createTriggerInboxPlugin = definePlugin(
|
|
|
8849
9036
|
subscription: {
|
|
8850
9037
|
app_key: selectedApi,
|
|
8851
9038
|
action_key: actionKey,
|
|
8852
|
-
inputs
|
|
9039
|
+
inputs,
|
|
9040
|
+
connection_id: resolvedConnectionId ?? null
|
|
8853
9041
|
}
|
|
8854
9042
|
};
|
|
8855
9043
|
if (notificationUrl !== void 0) {
|
|
8856
9044
|
requestBody.notification_url = notificationUrl;
|
|
8857
9045
|
}
|
|
8858
|
-
if (resolvedConnectionId !== void 0 && resolvedConnectionId !== null) {
|
|
8859
|
-
requestBody.subscription.connection_id = resolvedConnectionId;
|
|
8860
|
-
}
|
|
8861
9046
|
const rawResponse = await api.post(
|
|
8862
9047
|
"/trigger-inbox/api/v1/inboxes",
|
|
8863
9048
|
requestBody,
|
|
@@ -8938,15 +9123,13 @@ var ensureTriggerInboxPlugin = definePlugin(
|
|
|
8938
9123
|
subscription: {
|
|
8939
9124
|
app_key: selectedApi,
|
|
8940
9125
|
action_key: actionKey,
|
|
8941
|
-
inputs
|
|
9126
|
+
inputs,
|
|
9127
|
+
connection_id: resolvedConnectionId ?? null
|
|
8942
9128
|
}
|
|
8943
9129
|
};
|
|
8944
9130
|
if (notificationUrl !== void 0) {
|
|
8945
9131
|
requestBody.notification_url = notificationUrl;
|
|
8946
9132
|
}
|
|
8947
|
-
if (resolvedConnectionId !== void 0 && resolvedConnectionId !== null) {
|
|
8948
|
-
requestBody.subscription.connection_id = resolvedConnectionId;
|
|
8949
|
-
}
|
|
8950
9133
|
const rawResponse = await api.post(
|
|
8951
9134
|
"/trigger-inbox/api/v1/inboxes",
|
|
8952
9135
|
requestBody,
|
|
@@ -9407,7 +9590,11 @@ var leaseTriggerInboxMessagesPlugin = definePlugin(
|
|
|
9407
9590
|
itemType: "TriggerInboxLease",
|
|
9408
9591
|
inputSchema: LeaseTriggerInboxMessagesSchema,
|
|
9409
9592
|
outputSchema: LeaseTriggerInboxMessagesItemSchema,
|
|
9410
|
-
resolvers: {
|
|
9593
|
+
resolvers: {
|
|
9594
|
+
inbox: triggerInboxResolver,
|
|
9595
|
+
leaseLimit: { type: "static", inputType: "text" },
|
|
9596
|
+
leaseSeconds: { type: "static", inputType: "text" }
|
|
9597
|
+
},
|
|
9411
9598
|
handler: async ({ sdk: sdk2, options }) => {
|
|
9412
9599
|
const { inbox, leaseLimit, leaseSeconds, signal } = options;
|
|
9413
9600
|
const inboxId = await resolveTriggerInboxId({
|
|
@@ -9471,7 +9658,8 @@ var ackTriggerInboxMessagesPlugin = definePlugin(
|
|
|
9471
9658
|
// No way to look up a lease — leases are short-lived, only the
|
|
9472
9659
|
// most recent leaseTriggerInboxMessages caller knows the ID.
|
|
9473
9660
|
// Static resolver prompts for free-text input.
|
|
9474
|
-
lease: { type: "static", inputType: "text" }
|
|
9661
|
+
lease: { type: "static", inputType: "text" },
|
|
9662
|
+
messages: triggerMessagesResolver
|
|
9475
9663
|
},
|
|
9476
9664
|
handler: async ({ sdk: sdk2, options }) => {
|
|
9477
9665
|
const { inbox, lease, messages } = options;
|
|
@@ -9522,7 +9710,8 @@ var releaseTriggerInboxMessagesPlugin = definePlugin(
|
|
|
9522
9710
|
// No way to look up a lease — leases are short-lived, only the
|
|
9523
9711
|
// most recent leaseTriggerInboxMessages caller knows the ID.
|
|
9524
9712
|
// Static resolver prompts for free-text input.
|
|
9525
|
-
lease: { type: "static", inputType: "text" }
|
|
9713
|
+
lease: { type: "static", inputType: "text" },
|
|
9714
|
+
messages: triggerMessagesResolver
|
|
9526
9715
|
},
|
|
9527
9716
|
handler: async ({ sdk: sdk2, options }) => {
|
|
9528
9717
|
const { inbox, lease, messages } = options;
|
|
@@ -10059,6 +10248,38 @@ var watchTriggerInboxPlugin = definePlugin(
|
|
|
10059
10248
|
};
|
|
10060
10249
|
}
|
|
10061
10250
|
);
|
|
10251
|
+
var ListTriggersSchema = z.object({
|
|
10252
|
+
app: AppPropertySchema.describe(
|
|
10253
|
+
"App key of triggers to list (e.g., 'SlackCLIAPI' or slug like 'github')"
|
|
10254
|
+
),
|
|
10255
|
+
pageSize: z.number().min(1).optional().describe("Number of triggers per page"),
|
|
10256
|
+
maxItems: z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
10257
|
+
cursor: z.string().optional().describe("Cursor to start from")
|
|
10258
|
+
}).describe("List all triggers for a specific app");
|
|
10259
|
+
|
|
10260
|
+
// src/plugins/triggers/listTriggers/index.ts
|
|
10261
|
+
var listTriggersPlugin = definePlugin(
|
|
10262
|
+
(sdk) => createPaginatedPluginMethod(sdk, {
|
|
10263
|
+
...triggersDefaults,
|
|
10264
|
+
name: "listTriggers",
|
|
10265
|
+
type: "list",
|
|
10266
|
+
itemType: "Action",
|
|
10267
|
+
inputSchema: ListTriggersSchema,
|
|
10268
|
+
outputSchema: ActionItemSchema,
|
|
10269
|
+
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
10270
|
+
resolvers: { app: appKeyResolver },
|
|
10271
|
+
handler: async ({
|
|
10272
|
+
sdk: sdk2,
|
|
10273
|
+
options
|
|
10274
|
+
}) => {
|
|
10275
|
+
const result = await sdk2.listActions({
|
|
10276
|
+
...options,
|
|
10277
|
+
actionType: "read"
|
|
10278
|
+
});
|
|
10279
|
+
return { data: result.data, nextCursor: result.nextCursor };
|
|
10280
|
+
}
|
|
10281
|
+
})
|
|
10282
|
+
);
|
|
10062
10283
|
var ListTriggerInputFieldsSchema = z.object({
|
|
10063
10284
|
app: AppPropertySchema,
|
|
10064
10285
|
action: ActionPropertySchema,
|
|
@@ -10299,6 +10520,24 @@ var BaseSdkOptionsSchema = z.object({
|
|
|
10299
10520
|
* Default is 60000 (60 seconds).
|
|
10300
10521
|
*/
|
|
10301
10522
|
maxNetworkRetryDelayMs: z.number().optional().describe("Max delay in ms to wait for retry (default: 60000).").meta({ valueHint: "ms" }),
|
|
10523
|
+
/**
|
|
10524
|
+
* Maximum number of concurrent in-flight HTTP requests per client.
|
|
10525
|
+
* Requests beyond this limit queue in FIFO order until a slot frees.
|
|
10526
|
+
* Pass `Infinity` to disable. Default: 200.
|
|
10527
|
+
*
|
|
10528
|
+
* The description and meta are duplicated across the outer wrapper and
|
|
10529
|
+
* the inner numeric branch because the SDK and CLI doc generators walk
|
|
10530
|
+
* the schema differently — the SDK reader looks at wrappers only, while
|
|
10531
|
+
* the CLI reader recurses into union branches.
|
|
10532
|
+
*/
|
|
10533
|
+
maxConcurrentRequests: z.union([
|
|
10534
|
+
z.number().int().min(1).max(MAX_CONCURRENCY_LIMIT).describe(
|
|
10535
|
+
`Max concurrent in-flight HTTP requests (default: 200, max: ${MAX_CONCURRENCY_LIMIT}).`
|
|
10536
|
+
).meta({ valueHint: "count" }),
|
|
10537
|
+
z.literal(Infinity)
|
|
10538
|
+
]).optional().describe(
|
|
10539
|
+
`Max concurrent in-flight HTTP requests (default: 200, max: ${MAX_CONCURRENCY_LIMIT}).`
|
|
10540
|
+
).meta({ valueHint: "count" }),
|
|
10302
10541
|
approvalTimeoutMs: z.number().optional().describe("Timeout in ms for approval polling. Default: 600000 (10 min).").meta({ valueHint: "ms" }),
|
|
10303
10542
|
maxApprovalRetries: z.number().optional().describe(
|
|
10304
10543
|
"Maximum number of sequential approval rounds per request (one per gating policy) before giving up. Default: 2."
|
|
@@ -10332,7 +10571,7 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
10332
10571
|
|
|
10333
10572
|
// src/experimental.ts
|
|
10334
10573
|
function createZapierSdk2(options = {}) {
|
|
10335
|
-
return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
|
|
10574
|
+
return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
|
|
10336
10575
|
}
|
|
10337
10576
|
|
|
10338
|
-
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, updateTableRecordsPlugin };
|
|
10577
|
+
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin };
|
|
@@ -701,6 +701,12 @@ interface ApiClientOptions {
|
|
|
701
701
|
* Default is 60000 (60 seconds).
|
|
702
702
|
*/
|
|
703
703
|
maxNetworkRetryDelayMs?: number;
|
|
704
|
+
/**
|
|
705
|
+
* Maximum number of concurrent in-flight HTTP requests per client.
|
|
706
|
+
* Requests beyond this limit queue in FIFO order until a slot frees.
|
|
707
|
+
* Pass `Infinity` to disable. Default: 200.
|
|
708
|
+
*/
|
|
709
|
+
maxConcurrentRequests?: number;
|
|
704
710
|
/**
|
|
705
711
|
* Controls how the approval flow is handled.
|
|
706
712
|
* - "disabled": (default when env var is unset) Throw a ZapierApprovalError
|
|
@@ -1495,6 +1501,7 @@ declare const BaseSdkOptionsSchema: z.ZodObject<{
|
|
|
1495
1501
|
trackingBaseUrl: z.ZodOptional<z.ZodString>;
|
|
1496
1502
|
maxNetworkRetries: z.ZodOptional<z.ZodNumber>;
|
|
1497
1503
|
maxNetworkRetryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
1504
|
+
maxConcurrentRequests: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<number>]>>;
|
|
1498
1505
|
approvalTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1499
1506
|
maxApprovalRetries: z.ZodOptional<z.ZodNumber>;
|
|
1500
1507
|
approvalMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5791,6 +5798,22 @@ declare const TriggerMessageStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
5791
5798
|
quarantined: "quarantined";
|
|
5792
5799
|
}>, z.ZodString]>;
|
|
5793
5800
|
type TriggerMessageStatus = z.infer<typeof TriggerMessageStatusSchema>;
|
|
5801
|
+
declare const TriggerMessageItemSchema: z.ZodObject<{
|
|
5802
|
+
id: z.ZodString;
|
|
5803
|
+
created_at: z.ZodString;
|
|
5804
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5805
|
+
available: "available";
|
|
5806
|
+
leased: "leased";
|
|
5807
|
+
acked: "acked";
|
|
5808
|
+
quarantined: "quarantined";
|
|
5809
|
+
}>, z.ZodString]>;
|
|
5810
|
+
message_attributes: z.ZodObject<{
|
|
5811
|
+
lease_count: z.ZodNumber;
|
|
5812
|
+
error_message: z.ZodNullable<z.ZodString>;
|
|
5813
|
+
possible_duplicate_data: z.ZodBoolean;
|
|
5814
|
+
}, z.core.$strip>;
|
|
5815
|
+
}, z.core.$strip>;
|
|
5816
|
+
type TriggerMessageItem = z.infer<typeof TriggerMessageItemSchema>;
|
|
5794
5817
|
declare const LeasedTriggerMessageItemSchema: z.ZodObject<{
|
|
5795
5818
|
id: z.ZodString;
|
|
5796
5819
|
created_at: z.ZodString;
|
|
@@ -8451,6 +8474,10 @@ type TriggerInboxItem = z.infer<typeof TriggerInboxItemSchema>;
|
|
|
8451
8474
|
|
|
8452
8475
|
declare const triggerInboxResolver: DynamicResolver<TriggerInboxItem, {}>;
|
|
8453
8476
|
|
|
8477
|
+
declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
|
|
8478
|
+
inbox: string;
|
|
8479
|
+
}>;
|
|
8480
|
+
|
|
8454
8481
|
declare const RecordItemSchema: z.ZodObject<{
|
|
8455
8482
|
id: z.ZodString;
|
|
8456
8483
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -8749,6 +8776,22 @@ declare const DEFAULT_ACTION_TIMEOUT_MS = 180000;
|
|
|
8749
8776
|
*/
|
|
8750
8777
|
declare const ZAPIER_MAX_NETWORK_RETRIES: number;
|
|
8751
8778
|
declare const ZAPIER_MAX_NETWORK_RETRY_DELAY_MS: number;
|
|
8779
|
+
/**
|
|
8780
|
+
* Upper bound on the concurrency cap. Anything beyond this is almost
|
|
8781
|
+
* certainly a configuration mistake and would also bypass IEEE 754 safe
|
|
8782
|
+
* integer range for inputs like "9".repeat(309), which would silently
|
|
8783
|
+
* become Infinity and disable throttling.
|
|
8784
|
+
*/
|
|
8785
|
+
declare const MAX_CONCURRENCY_LIMIT = 10000;
|
|
8786
|
+
declare function parseConcurrencyEnvVar(name: string): number | undefined;
|
|
8787
|
+
/**
|
|
8788
|
+
* Default cap on concurrent in-flight HTTP requests per SDK instance.
|
|
8789
|
+
* Beyond this, requests queue (FIFO) until a slot frees up. Sized for
|
|
8790
|
+
* production workloads that fan out hundreds of action runs in parallel;
|
|
8791
|
+
* lower it when running against a smaller backend or to be more
|
|
8792
|
+
* conservative. Pass `Infinity` to disable.
|
|
8793
|
+
*/
|
|
8794
|
+
declare const ZAPIER_MAX_CONCURRENT_REQUESTS: number;
|
|
8752
8795
|
/**
|
|
8753
8796
|
* Approval flow behavior from environment variable.
|
|
8754
8797
|
* - "disabled": (default when env var is unset) Throw a ZapierApprovalError on
|
|
@@ -9642,4 +9685,4 @@ declare const registryPlugin: (sdk: {
|
|
|
9642
9685
|
};
|
|
9643
9686
|
}) => {};
|
|
9644
9687
|
|
|
9645
|
-
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, type PaginatedSdkFunction as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type FieldsResolver as a3, runWithTelemetryContext as a4, toSnakeCase as a5, toTitleCase as a6, batch as a7, type BatchOptions as a8, buildCapabilityMessage as a9, type EventContext as aA, type ApplicationLifecycleEventData as aB, type EnhancedErrorEventData as aC, type MethodCalledEventData as aD, generateEventId as aE, getCurrentTimestamp as aF, getReleaseId as aG, getOsInfo as aH, getPlatformVersions as aI, isCi as aJ, getCiPlatform as aK, getMemoryUsage as aL, getCpuTime as aM, buildApplicationLifecycleEvent as aN, buildErrorEventWithContext as aO, buildErrorEvent as aP, createBaseEvent as aQ, buildMethodCalledEvent as aR, type AppItem as aS, type ConnectionItem as aT, type ActionItem$1 as aU, type InputFieldItem as aV, type InfoFieldItem as aW, type RootFieldItem as aX, type UserProfileItem as aY, type FunctionOptions as aZ, type SdkPage as a_, logDeprecation as aa, resetDeprecationWarnings as ab, RelayRequestSchema as ac, RelayFetchSchema as ad, createZapierSdkWithoutRegistry as ae, createSdk as af, createOptionsPlugin as ag, type FunctionRegistryEntry as ah, type FunctionDeprecation as ai, BaseSdkOptionsSchema as aj, type Plugin as ak, type PluginProvides as al, definePlugin as am, createPluginMethod as an, createPaginatedPluginMethod as ao, composePlugins as ap, type ActionItem as aq, type ActionTypeItem as ar, registryPlugin as as, type RequestOptions as at, type PollOptions as au, createZapierApi as av, getOrCreateApiClient as aw, type BaseEvent as ax, type MethodCalledEvent as ay, type EventEmissionProvides as az, type AddActionEntryOptions as b, ZapierAuthenticationError as b$, AppKeyPropertySchema as b0, AppPropertySchema as b1, ActionTypePropertySchema as b2, ActionKeyPropertySchema as b3, ActionPropertySchema as b4, InputFieldPropertySchema as b5, ConnectionIdPropertySchema as b6, AuthenticationIdPropertySchema as b7, ConnectionPropertySchema as b8, InputsPropertySchema as b9, type AuthenticationIdProperty as bA, type InputsProperty as bB, type LimitProperty as bC, type OffsetProperty as bD, type OutputProperty as bE, type DebugProperty as bF, type ParamsProperty as bG, type ActionTimeoutMsProperty as bH, type TableProperty as bI, type RecordProperty as bJ, type RecordsProperty as bK, type FieldsProperty as bL, type AppsProperty as bM, type TablesProperty as bN, type ConnectionsProperty as bO, type TriggerInboxProperty as bP, type TriggerInboxNameProperty as bQ, type LeaseProperty as bR, type LeaseSecondsProperty as bS, type LeaseLimitProperty as bT, type ApiError as bU, type ErrorOptions as bV, ZapierError as bW, ZapierApiError as bX, ZapierAppNotFoundError as bY, ZapierValidationError as bZ, ZapierUnknownError as b_, LimitPropertySchema as ba, OffsetPropertySchema as bb, OutputPropertySchema as bc, DebugPropertySchema as bd, ParamsPropertySchema as be, ActionTimeoutMsPropertySchema as bf, TablePropertySchema as bg, RecordPropertySchema as bh, RecordsPropertySchema as bi, FieldsPropertySchema as bj, AppsPropertySchema as bk, TablesPropertySchema as bl, ConnectionsPropertySchema as bm, TriggerInboxPropertySchema as bn, TriggerInboxNamePropertySchema as bo, LeasePropertySchema as bp, LeaseSecondsPropertySchema as bq, LeaseLimitPropertySchema as br, type AppKeyProperty as bs, type AppProperty as bt, type ActionTypeProperty as bu, type ActionKeyProperty as bv, type ActionProperty as bw, type InputFieldProperty as bx, type ConnectionIdProperty as by, type ConnectionProperty as bz, type AddActionEntryResult as c, apiPlugin as c$, ZapierNotFoundError as c0, ZapierResourceNotFoundError as c1, ZapierConfigurationError as c2, ZapierBundleError as c3, ZapierTimeoutError as c4, ZapierActionError as c5, ZapierConflictError as c6, type RateLimitInfo as c7, ZapierRateLimitError as c8, type ApprovalStatus as c9, deleteClientCredentialsPlugin as cA, type DeleteClientCredentialsPluginProvides as cB, getAppPlugin as cC, type GetAppPluginProvides as cD, getActionPlugin as cE, type GetActionPluginProvides as cF, getConnectionPlugin as cG, type GetConnectionPluginProvides as cH, findFirstConnectionPlugin as cI, type FindFirstConnectionPluginProvides as cJ, findUniqueConnectionPlugin as cK, type FindUniqueConnectionPluginProvides as cL, CONTEXT_CACHE_TTL_MS as cM, CONTEXT_CACHE_MAX_SIZE as cN, runActionPlugin as cO, type RunActionPluginProvides as cP, requestPlugin as cQ, type RequestPluginProvides as cR, type ManifestPluginOptions as cS, getPreferredManifestEntryKey as cT, manifestPlugin as cU, type ManifestPluginProvides as cV, DEFAULT_CONFIG_PATH as cW, type ManifestEntry as cX, getProfilePlugin as cY, type GetProfilePluginProvides as cZ, type ApiPluginOptions as c_, ZapierApprovalError as ca, ZapierRelayError as cb, formatErrorMessage as cc, ZapierSignal as cd, appsPlugin as ce, type AppsPluginProvides as cf, type ActionExecutionOptions as cg, type AppFactoryInput as ch, fetchPlugin as ci, type FetchPluginProvides as cj, listAppsPlugin as ck, type ListAppsPluginProvides as cl, listActionsPlugin as cm, type ListActionsPluginProvides as cn, listActionInputFieldsPlugin as co, type ListActionInputFieldsPluginProvides as cp, listActionInputFieldChoicesPlugin as cq, type ListActionInputFieldChoicesPluginProvides as cr, getActionInputFieldsSchemaPlugin as cs, type GetActionInputFieldsSchemaPluginProvides as ct, listConnectionsPlugin as cu, type ListConnectionsPluginProvides as cv, listClientCredentialsPlugin as cw, type ListClientCredentialsPluginProvides as cx, createClientCredentialsPlugin as cy, type CreateClientCredentialsPluginProvides as cz, type ActionEntry as d, ConnectionsMapSchema as d$, type ApiPluginProvides as d0, appKeyResolver as d1, actionTypeResolver as d2, actionKeyResolver as d3, connectionIdResolver as d4, connectionIdGenericResolver as d5, inputsResolver as d6, inputsAllOptionalResolver as d7, inputFieldKeyResolver as d8, clientCredentialsNameResolver as d9, type AuthEvent as dA, type ApiEvent as dB, type LoadingEvent as dC, type EventCallback as dD, type Credentials as dE, type ResolvedCredentials as dF, type CredentialsObject as dG, type ClientCredentialsObject as dH, type PkceCredentialsObject as dI, isClientCredentials as dJ, isPkceCredentials as dK, isCredentialsObject as dL, isCredentialsFunction as dM, type ResolveCredentialsOptions as dN, resolveCredentialsFromEnv as dO, resolveCredentials as dP, getBaseUrlFromCredentials as dQ, getClientIdFromCredentials as dR, ClientCredentialsObjectSchema as dS, PkceCredentialsObjectSchema as dT, CredentialsObjectSchema as dU, ResolvedCredentialsSchema as dV, CredentialsFunctionSchema as dW, type CredentialsFunction as dX, CredentialsSchema as dY, ConnectionEntrySchema as dZ, type ConnectionEntry as d_, clientIdResolver as da, tableIdResolver as db, triggerInboxResolver as dc, tableRecordIdResolver as dd, tableRecordIdsResolver as de, tableFieldIdsResolver as df, tableNameResolver as dg, tableFieldsResolver as dh, tableRecordsResolver as di, tableUpdateRecordsResolver as dj, tableFiltersResolver as dk, tableSortResolver as dl, type ResolveAuthTokenOptions as dm, clearTokenCache as dn, invalidateCachedToken as dp, injectCliLogin as dq, isCliLoginAvailable as dr, getTokenFromCliLogin as ds, resolveAuthToken as dt, invalidateCredentialsToken as du, type ZapierCache as dv, type ZapierCacheEntry as dw, type ZapierCacheSetOptions as dx, createMemoryCache as dy, type SdkEvent as dz, type PaginatedSdkResult as e, type ConnectionsMap as e0, connectionsPlugin as e1, type ConnectionsPluginProvides as e2, ZAPIER_BASE_URL as e3, getZapierSdkService as e4, MAX_PAGE_LIMIT as e5, DEFAULT_PAGE_SIZE as e6, DEFAULT_ACTION_TIMEOUT_MS as e7, ZAPIER_MAX_NETWORK_RETRIES as e8, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as e9, type UpdateTableRecordsPluginProvides as eA, createZapierSdk as eB, type ZapierSdk as eC, getZapierApprovalMode as ea, DEFAULT_APPROVAL_TIMEOUT_MS as eb, DEFAULT_MAX_APPROVAL_RETRIES as ec, listTablesPlugin as ed, type ListTablesPluginProvides as ee, getTablePlugin as ef, type GetTablePluginProvides as eg, createTablePlugin as eh, type CreateTablePluginProvides as ei, deleteTablePlugin as ej, type DeleteTablePluginProvides as ek, listTableFieldsPlugin as el, type ListTableFieldsPluginProvides as em, createTableFieldsPlugin as en, type CreateTableFieldsPluginProvides as eo, deleteTableFieldsPlugin as ep, type DeleteTableFieldsPluginProvides as eq, getTableRecordPlugin as er, type GetTableRecordPluginProvides as es, listTableRecordsPlugin as et, type ListTableRecordsPluginProvides as eu, createTableRecordsPlugin as ev, type CreateTableRecordsPluginProvides as ew, deleteTableRecordsPlugin as ex, type DeleteTableRecordsPluginProvides as ey, updateTableRecordsPlugin as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
|
9688
|
+
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, type PaginatedSdkFunction as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type FieldsResolver as a3, runWithTelemetryContext as a4, toSnakeCase as a5, toTitleCase as a6, batch as a7, type BatchOptions as a8, buildCapabilityMessage as a9, type EventContext as aA, type ApplicationLifecycleEventData as aB, type EnhancedErrorEventData as aC, type MethodCalledEventData as aD, generateEventId as aE, getCurrentTimestamp as aF, getReleaseId as aG, getOsInfo as aH, getPlatformVersions as aI, isCi as aJ, getCiPlatform as aK, getMemoryUsage as aL, getCpuTime as aM, buildApplicationLifecycleEvent as aN, buildErrorEventWithContext as aO, buildErrorEvent as aP, createBaseEvent as aQ, buildMethodCalledEvent as aR, type AppItem as aS, type ConnectionItem as aT, type ActionItem$1 as aU, type InputFieldItem as aV, type InfoFieldItem as aW, type RootFieldItem as aX, type UserProfileItem as aY, type FunctionOptions as aZ, type SdkPage as a_, logDeprecation as aa, resetDeprecationWarnings as ab, RelayRequestSchema as ac, RelayFetchSchema as ad, createZapierSdkWithoutRegistry as ae, createSdk as af, createOptionsPlugin as ag, type FunctionRegistryEntry as ah, type FunctionDeprecation as ai, BaseSdkOptionsSchema as aj, type Plugin as ak, type PluginProvides as al, definePlugin as am, createPluginMethod as an, createPaginatedPluginMethod as ao, composePlugins as ap, type ActionItem as aq, type ActionTypeItem as ar, registryPlugin as as, type RequestOptions as at, type PollOptions as au, createZapierApi as av, getOrCreateApiClient as aw, type BaseEvent as ax, type MethodCalledEvent as ay, type EventEmissionProvides as az, type AddActionEntryOptions as b, ZapierAuthenticationError as b$, AppKeyPropertySchema as b0, AppPropertySchema as b1, ActionTypePropertySchema as b2, ActionKeyPropertySchema as b3, ActionPropertySchema as b4, InputFieldPropertySchema as b5, ConnectionIdPropertySchema as b6, AuthenticationIdPropertySchema as b7, ConnectionPropertySchema as b8, InputsPropertySchema as b9, type AuthenticationIdProperty as bA, type InputsProperty as bB, type LimitProperty as bC, type OffsetProperty as bD, type OutputProperty as bE, type DebugProperty as bF, type ParamsProperty as bG, type ActionTimeoutMsProperty as bH, type TableProperty as bI, type RecordProperty as bJ, type RecordsProperty as bK, type FieldsProperty as bL, type AppsProperty as bM, type TablesProperty as bN, type ConnectionsProperty as bO, type TriggerInboxProperty as bP, type TriggerInboxNameProperty as bQ, type LeaseProperty as bR, type LeaseSecondsProperty as bS, type LeaseLimitProperty as bT, type ApiError as bU, type ErrorOptions as bV, ZapierError as bW, ZapierApiError as bX, ZapierAppNotFoundError as bY, ZapierValidationError as bZ, ZapierUnknownError as b_, LimitPropertySchema as ba, OffsetPropertySchema as bb, OutputPropertySchema as bc, DebugPropertySchema as bd, ParamsPropertySchema as be, ActionTimeoutMsPropertySchema as bf, TablePropertySchema as bg, RecordPropertySchema as bh, RecordsPropertySchema as bi, FieldsPropertySchema as bj, AppsPropertySchema as bk, TablesPropertySchema as bl, ConnectionsPropertySchema as bm, TriggerInboxPropertySchema as bn, TriggerInboxNamePropertySchema as bo, LeasePropertySchema as bp, LeaseSecondsPropertySchema as bq, LeaseLimitPropertySchema as br, type AppKeyProperty as bs, type AppProperty as bt, type ActionTypeProperty as bu, type ActionKeyProperty as bv, type ActionProperty as bw, type InputFieldProperty as bx, type ConnectionIdProperty as by, type ConnectionProperty as bz, type AddActionEntryResult as c, apiPlugin as c$, ZapierNotFoundError as c0, ZapierResourceNotFoundError as c1, ZapierConfigurationError as c2, ZapierBundleError as c3, ZapierTimeoutError as c4, ZapierActionError as c5, ZapierConflictError as c6, type RateLimitInfo as c7, ZapierRateLimitError as c8, type ApprovalStatus as c9, deleteClientCredentialsPlugin as cA, type DeleteClientCredentialsPluginProvides as cB, getAppPlugin as cC, type GetAppPluginProvides as cD, getActionPlugin as cE, type GetActionPluginProvides as cF, getConnectionPlugin as cG, type GetConnectionPluginProvides as cH, findFirstConnectionPlugin as cI, type FindFirstConnectionPluginProvides as cJ, findUniqueConnectionPlugin as cK, type FindUniqueConnectionPluginProvides as cL, CONTEXT_CACHE_TTL_MS as cM, CONTEXT_CACHE_MAX_SIZE as cN, runActionPlugin as cO, type RunActionPluginProvides as cP, requestPlugin as cQ, type RequestPluginProvides as cR, type ManifestPluginOptions as cS, getPreferredManifestEntryKey as cT, manifestPlugin as cU, type ManifestPluginProvides as cV, DEFAULT_CONFIG_PATH as cW, type ManifestEntry as cX, getProfilePlugin as cY, type GetProfilePluginProvides as cZ, type ApiPluginOptions as c_, ZapierApprovalError as ca, ZapierRelayError as cb, formatErrorMessage as cc, ZapierSignal as cd, appsPlugin as ce, type AppsPluginProvides as cf, type ActionExecutionOptions as cg, type AppFactoryInput as ch, fetchPlugin as ci, type FetchPluginProvides as cj, listAppsPlugin as ck, type ListAppsPluginProvides as cl, listActionsPlugin as cm, type ListActionsPluginProvides as cn, listActionInputFieldsPlugin as co, type ListActionInputFieldsPluginProvides as cp, listActionInputFieldChoicesPlugin as cq, type ListActionInputFieldChoicesPluginProvides as cr, getActionInputFieldsSchemaPlugin as cs, type GetActionInputFieldsSchemaPluginProvides as ct, listConnectionsPlugin as cu, type ListConnectionsPluginProvides as cv, listClientCredentialsPlugin as cw, type ListClientCredentialsPluginProvides as cx, createClientCredentialsPlugin as cy, type CreateClientCredentialsPluginProvides as cz, type ActionEntry as d, type ConnectionEntry as d$, type ApiPluginProvides as d0, appKeyResolver as d1, actionTypeResolver as d2, actionKeyResolver as d3, connectionIdResolver as d4, connectionIdGenericResolver as d5, inputsResolver as d6, inputsAllOptionalResolver as d7, inputFieldKeyResolver as d8, clientCredentialsNameResolver as d9, type SdkEvent as dA, type AuthEvent as dB, type ApiEvent as dC, type LoadingEvent as dD, type EventCallback as dE, type Credentials as dF, type ResolvedCredentials as dG, type CredentialsObject as dH, type ClientCredentialsObject as dI, type PkceCredentialsObject as dJ, isClientCredentials as dK, isPkceCredentials as dL, isCredentialsObject as dM, isCredentialsFunction as dN, type ResolveCredentialsOptions as dO, resolveCredentialsFromEnv as dP, resolveCredentials as dQ, getBaseUrlFromCredentials as dR, getClientIdFromCredentials as dS, ClientCredentialsObjectSchema as dT, PkceCredentialsObjectSchema as dU, CredentialsObjectSchema as dV, ResolvedCredentialsSchema as dW, CredentialsFunctionSchema as dX, type CredentialsFunction as dY, CredentialsSchema as dZ, ConnectionEntrySchema as d_, clientIdResolver as da, tableIdResolver as db, triggerInboxResolver as dc, triggerMessagesResolver as dd, tableRecordIdResolver as de, tableRecordIdsResolver as df, tableFieldIdsResolver as dg, tableNameResolver as dh, tableFieldsResolver as di, tableRecordsResolver as dj, tableUpdateRecordsResolver as dk, tableFiltersResolver as dl, tableSortResolver as dm, type ResolveAuthTokenOptions as dn, clearTokenCache as dp, invalidateCachedToken as dq, injectCliLogin as dr, isCliLoginAvailable as ds, getTokenFromCliLogin as dt, resolveAuthToken as du, invalidateCredentialsToken as dv, type ZapierCache as dw, type ZapierCacheEntry as dx, type ZapierCacheSetOptions as dy, createMemoryCache as dz, type PaginatedSdkResult as e, ConnectionsMapSchema as e0, type ConnectionsMap as e1, connectionsPlugin as e2, type ConnectionsPluginProvides as e3, ZAPIER_BASE_URL as e4, getZapierSdkService as e5, MAX_PAGE_LIMIT as e6, DEFAULT_PAGE_SIZE as e7, DEFAULT_ACTION_TIMEOUT_MS as e8, ZAPIER_MAX_NETWORK_RETRIES as e9, type CreateTableRecordsPluginProvides as eA, deleteTableRecordsPlugin as eB, type DeleteTableRecordsPluginProvides as eC, updateTableRecordsPlugin as eD, type UpdateTableRecordsPluginProvides as eE, createZapierSdk as eF, type ZapierSdk as eG, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ea, MAX_CONCURRENCY_LIMIT as eb, parseConcurrencyEnvVar as ec, ZAPIER_MAX_CONCURRENT_REQUESTS as ed, getZapierApprovalMode as ee, DEFAULT_APPROVAL_TIMEOUT_MS as ef, DEFAULT_MAX_APPROVAL_RETRIES as eg, listTablesPlugin as eh, type ListTablesPluginProvides as ei, getTablePlugin as ej, type GetTablePluginProvides as ek, createTablePlugin as el, type CreateTablePluginProvides as em, deleteTablePlugin as en, type DeleteTablePluginProvides as eo, listTableFieldsPlugin as ep, type ListTableFieldsPluginProvides as eq, createTableFieldsPlugin as er, type CreateTableFieldsPluginProvides as es, deleteTableFieldsPlugin as et, type DeleteTableFieldsPluginProvides as eu, getTableRecordPlugin as ev, type GetTableRecordPluginProvides as ew, listTableRecordsPlugin as ex, type ListTableRecordsPluginProvides as ey, createTableRecordsPlugin as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|