@zapier/zapier-sdk 0.78.0 → 0.79.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 +6 -0
- package/dist/experimental.cjs +222 -63
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.mjs +222 -64
- package/dist/{index-BgbftweS.d.mts → index-DgX1b0Sv.d.mts} +45 -1
- package/dist/{index-BgbftweS.d.ts → index-DgX1b0Sv.d.ts} +45 -1
- package/dist/index.cjs +222 -63
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +222 -64
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7853,8 +7853,63 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
7853
7853
|
}
|
|
7854
7854
|
}
|
|
7855
7855
|
|
|
7856
|
+
// src/api/deprecation.ts
|
|
7857
|
+
var DEPRECATION_MESSAGE_HEADER = "zapier-sdk-deprecation-message";
|
|
7858
|
+
var DEPRECATION_ID_HEADER = "zapier-sdk-deprecation-id";
|
|
7859
|
+
var DEPRECATION_NOTICE_EVENT = "api:deprecation_notice";
|
|
7860
|
+
var displayedNoticeIds = /* @__PURE__ */ new Set();
|
|
7861
|
+
function handleDeprecationNotice({
|
|
7862
|
+
response,
|
|
7863
|
+
canSendDeprecationMessaging,
|
|
7864
|
+
onEvent
|
|
7865
|
+
}) {
|
|
7866
|
+
try {
|
|
7867
|
+
sniffDeprecationNotice({ response, canSendDeprecationMessaging, onEvent });
|
|
7868
|
+
} catch {
|
|
7869
|
+
}
|
|
7870
|
+
}
|
|
7871
|
+
function sniffDeprecationNotice({
|
|
7872
|
+
response,
|
|
7873
|
+
canSendDeprecationMessaging,
|
|
7874
|
+
onEvent
|
|
7875
|
+
}) {
|
|
7876
|
+
if (!canSendDeprecationMessaging) return;
|
|
7877
|
+
const message = response.headers?.get(DEPRECATION_MESSAGE_HEADER);
|
|
7878
|
+
if (!message) return;
|
|
7879
|
+
const id = response.headers.get(DEPRECATION_ID_HEADER) ?? message;
|
|
7880
|
+
if (!displayedNoticeIds.has(id)) {
|
|
7881
|
+
displayedNoticeIds.add(id);
|
|
7882
|
+
console.warn(`[zapier-sdk] Deprecation: ${message}`);
|
|
7883
|
+
}
|
|
7884
|
+
if (onEvent) {
|
|
7885
|
+
const payload = { id, message };
|
|
7886
|
+
const deprecation = parseDeprecationDate(
|
|
7887
|
+
response.headers.get("deprecation")
|
|
7888
|
+
);
|
|
7889
|
+
if (deprecation !== void 0) payload.deprecation = deprecation;
|
|
7890
|
+
const maybePromise = onEvent({
|
|
7891
|
+
type: DEPRECATION_NOTICE_EVENT,
|
|
7892
|
+
payload: { ...payload },
|
|
7893
|
+
timestamp: Date.now()
|
|
7894
|
+
});
|
|
7895
|
+
if (isPromiseLike(maybePromise)) {
|
|
7896
|
+
void Promise.resolve(maybePromise).catch(() => {
|
|
7897
|
+
});
|
|
7898
|
+
}
|
|
7899
|
+
}
|
|
7900
|
+
}
|
|
7901
|
+
function isPromiseLike(value) {
|
|
7902
|
+
return (typeof value === "object" || typeof value === "function") && value !== null && "then" in value && typeof value.then === "function";
|
|
7903
|
+
}
|
|
7904
|
+
function parseDeprecationDate(value) {
|
|
7905
|
+
if (!value) return void 0;
|
|
7906
|
+
const match = /^@(-?\d+)$/.exec(value.trim());
|
|
7907
|
+
if (!match) return void 0;
|
|
7908
|
+
return Number(match[1]) * 1e3;
|
|
7909
|
+
}
|
|
7910
|
+
|
|
7856
7911
|
// src/sdk-version.ts
|
|
7857
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
7912
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.79.0" : void 0) || "unknown";
|
|
7858
7913
|
|
|
7859
7914
|
// src/utils/open-url.ts
|
|
7860
7915
|
var nodePrefix = "node:";
|
|
@@ -7966,6 +8021,30 @@ var PollApprovalResponseSchema = zod.z.object({
|
|
|
7966
8021
|
reason: zod.z.string().optional()
|
|
7967
8022
|
});
|
|
7968
8023
|
var APPROVAL_MAX_POLLING_INTERVAL_MS = 5e3;
|
|
8024
|
+
function validateSdkPath(path) {
|
|
8025
|
+
if (!path.startsWith("/") || path.startsWith("//")) {
|
|
8026
|
+
throw new ZapierValidationError(
|
|
8027
|
+
`fetch expects a path starting with a single '/', got: ${path}`
|
|
8028
|
+
);
|
|
8029
|
+
}
|
|
8030
|
+
}
|
|
8031
|
+
function findPathConfigEntries({
|
|
8032
|
+
path,
|
|
8033
|
+
matchResolvedGatewayPath = false
|
|
8034
|
+
}) {
|
|
8035
|
+
const pathSegments = path.split("/").filter(Boolean);
|
|
8036
|
+
return Object.entries(pathConfig).filter(([configPath, config]) => {
|
|
8037
|
+
if (!matchResolvedGatewayPath) {
|
|
8038
|
+
return path === configPath || path.startsWith(`${configPath}/`);
|
|
8039
|
+
}
|
|
8040
|
+
const prefixSegments = (config.pathPrefix ?? configPath).split("/").filter(Boolean);
|
|
8041
|
+
return pathSegments.some(
|
|
8042
|
+
(_, startIndex) => prefixSegments.every(
|
|
8043
|
+
(segment, offset) => pathSegments[startIndex + offset] === segment
|
|
8044
|
+
)
|
|
8045
|
+
);
|
|
8046
|
+
}).map(([configPath, config]) => ({ configPath, config }));
|
|
8047
|
+
}
|
|
7969
8048
|
function parseRateLimitHeaders(response) {
|
|
7970
8049
|
const info = {};
|
|
7971
8050
|
const retryAfter = response.headers.get("retry-after");
|
|
@@ -8010,8 +8089,18 @@ var pathConfig = {
|
|
|
8010
8089
|
// e.g. /relay -> https://sdkapi.zapier.com/api/v0/sdk/relay/...
|
|
8011
8090
|
"/relay": {
|
|
8012
8091
|
authHeader: "X-Relay-Authorization",
|
|
8013
|
-
pathPrefix: "/api/v0/sdk/relay"
|
|
8092
|
+
pathPrefix: "/api/v0/sdk/relay",
|
|
8093
|
+
omitDeprecationMessaging: true
|
|
8094
|
+
},
|
|
8095
|
+
// The concrete gateway form of the relay route. Callers that pass the
|
|
8096
|
+
// already-prefixed path reach the same third-party upstreams, so it must
|
|
8097
|
+
// classify as relay too; without this entry it would match nothing and
|
|
8098
|
+
// sniff deprecation headers off a relay response.
|
|
8099
|
+
"/api/v0/sdk/relay": {
|
|
8100
|
+
omitDeprecationMessaging: true
|
|
8014
8101
|
},
|
|
8102
|
+
// Concrete sdkapi routes that do not live behind /api/v0/sdk/<service>.
|
|
8103
|
+
"/api/v0": {},
|
|
8015
8104
|
// e.g. /zapier -> https://sdkapi.zapier.com/api/v0/sdk/zapier/...
|
|
8016
8105
|
"/zapier": {
|
|
8017
8106
|
authHeader: "Authorization",
|
|
@@ -8160,17 +8249,50 @@ var ZapierApiClient = class {
|
|
|
8160
8249
|
* parallelism into the queue.
|
|
8161
8250
|
*/
|
|
8162
8251
|
this.rawFetch = async (path, init) => {
|
|
8163
|
-
|
|
8164
|
-
throw new ZapierValidationError(
|
|
8165
|
-
`fetch expects a path starting with '/', got: ${path}`
|
|
8166
|
-
);
|
|
8167
|
-
}
|
|
8252
|
+
validateSdkPath(path);
|
|
8168
8253
|
const { url, pathConfig: pathConfig2 } = this.buildUrl(path, init?.searchParams);
|
|
8169
8254
|
return this.withSemaphore(
|
|
8170
8255
|
{ url, method: init?.method ?? "GET", signal: init?.signal },
|
|
8171
8256
|
() => this.rawFetchUrl(url, init, pathConfig2)
|
|
8172
8257
|
);
|
|
8173
8258
|
};
|
|
8259
|
+
this.runApprovalFetchLoop = async ({
|
|
8260
|
+
path,
|
|
8261
|
+
init,
|
|
8262
|
+
maxRetries,
|
|
8263
|
+
approvalMode,
|
|
8264
|
+
approvalContext
|
|
8265
|
+
}) => {
|
|
8266
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
8267
|
+
const response = await this.rawFetch(path, init);
|
|
8268
|
+
if (response.status !== 403) {
|
|
8269
|
+
return { response };
|
|
8270
|
+
}
|
|
8271
|
+
const errorType = response.headers.get("x-zapier-error-type");
|
|
8272
|
+
if (errorType !== "approval_required") {
|
|
8273
|
+
return { response };
|
|
8274
|
+
}
|
|
8275
|
+
if (attempt === maxRetries) {
|
|
8276
|
+
return { response };
|
|
8277
|
+
}
|
|
8278
|
+
if (approvalMode === "disabled") {
|
|
8279
|
+
return { response };
|
|
8280
|
+
}
|
|
8281
|
+
if (!approvalContext) {
|
|
8282
|
+
return { response };
|
|
8283
|
+
}
|
|
8284
|
+
try {
|
|
8285
|
+
await this.runOneApprovalRound(
|
|
8286
|
+
approvalContext,
|
|
8287
|
+
approvalMode,
|
|
8288
|
+
init?.signal ?? void 0
|
|
8289
|
+
);
|
|
8290
|
+
} catch (error) {
|
|
8291
|
+
return { response, approvalRoundError: error };
|
|
8292
|
+
}
|
|
8293
|
+
}
|
|
8294
|
+
throw new ZapierApiError("Approval retry loop ended unexpectedly");
|
|
8295
|
+
};
|
|
8174
8296
|
/**
|
|
8175
8297
|
* Approval-aware HTTP fetch.
|
|
8176
8298
|
*
|
|
@@ -8200,46 +8322,62 @@ var ZapierApiClient = class {
|
|
|
8200
8322
|
* `max_retries_exceeded` instead.
|
|
8201
8323
|
*/
|
|
8202
8324
|
this.fetch = async (path, init) => {
|
|
8325
|
+
validateSdkPath(path);
|
|
8203
8326
|
const maxRetries = this.options.maxApprovalRetries ?? DEFAULT_MAX_APPROVAL_RETRIES;
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
}
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8327
|
+
const { canSendDeprecationMessaging } = this.buildUrl(
|
|
8328
|
+
path,
|
|
8329
|
+
init?.searchParams
|
|
8330
|
+
);
|
|
8331
|
+
const approvalMode = this.options.approvalMode ?? getZapierApprovalMode() ?? getZapierDefaultApprovalMode();
|
|
8332
|
+
const approvalContext = init?.approvalContext;
|
|
8333
|
+
const { response, approvalRoundError } = await this.runApprovalFetchLoop({
|
|
8334
|
+
path,
|
|
8335
|
+
init,
|
|
8336
|
+
maxRetries,
|
|
8337
|
+
approvalMode,
|
|
8338
|
+
approvalContext
|
|
8339
|
+
});
|
|
8340
|
+
handleDeprecationNotice({
|
|
8341
|
+
response,
|
|
8342
|
+
canSendDeprecationMessaging,
|
|
8343
|
+
onEvent: this.options.onEvent
|
|
8344
|
+
});
|
|
8345
|
+
if (response.status !== 403) {
|
|
8346
|
+
return response;
|
|
8347
|
+
}
|
|
8348
|
+
const errorType = response.headers.get("x-zapier-error-type");
|
|
8349
|
+
if (errorType === "request_denied_by_policy") {
|
|
8350
|
+
const { data } = await this.parseResult(response);
|
|
8351
|
+
const { message, errors } = this.parseErrorResponse({
|
|
8352
|
+
status: response.status,
|
|
8353
|
+
statusText: response.statusText,
|
|
8354
|
+
data
|
|
8355
|
+
});
|
|
8356
|
+
throw new ZapierApprovalError(
|
|
8357
|
+
message || "Request explicitly denied by policy",
|
|
8358
|
+
{
|
|
8359
|
+
status: "policy_denied",
|
|
8360
|
+
statusCode: response.status,
|
|
8361
|
+
errors
|
|
8362
|
+
}
|
|
8363
|
+
);
|
|
8364
|
+
}
|
|
8365
|
+
if (errorType !== "approval_required") {
|
|
8366
|
+
return response;
|
|
8367
|
+
}
|
|
8368
|
+
if (approvalRoundError) {
|
|
8369
|
+
throw approvalRoundError;
|
|
8370
|
+
}
|
|
8371
|
+
if (approvalMode === "disabled") {
|
|
8372
|
+
throw new ZapierApprovalError(
|
|
8373
|
+
"Approvals are disabled. Set approvalMode to 'poll' or 'throw' (or ZAPIER_APPROVAL_MODE) to enable.",
|
|
8374
|
+
{ status: "approval_required" }
|
|
8375
|
+
);
|
|
8376
|
+
}
|
|
8377
|
+
if (!approvalContext) {
|
|
8378
|
+
throw new ZapierApiError(
|
|
8379
|
+
`Received 403 approval_required for ${path}, but the caller did not provide an approvalContext builder. Every approval-capable request must pass approvalContext so the SDK can create the approval with the correct policy context.`,
|
|
8380
|
+
{ statusCode: 403 }
|
|
8243
8381
|
);
|
|
8244
8382
|
}
|
|
8245
8383
|
throw new ZapierApprovalError(
|
|
@@ -8501,40 +8639,60 @@ var ZapierApiClient = class {
|
|
|
8501
8639
|
}
|
|
8502
8640
|
// Apply any special routing logic for configured paths.
|
|
8503
8641
|
applyPathConfiguration(path) {
|
|
8504
|
-
const
|
|
8505
|
-
|
|
8506
|
-
)
|
|
8507
|
-
|
|
8642
|
+
const matchingPathEntries = findPathConfigEntries({ path });
|
|
8643
|
+
const routingMatch = matchingPathEntries[0];
|
|
8644
|
+
const buildResult = (url2) => {
|
|
8645
|
+
const resolvedPathEntries = findPathConfigEntries({
|
|
8646
|
+
path: url2.pathname,
|
|
8647
|
+
matchResolvedGatewayPath: true
|
|
8648
|
+
});
|
|
8649
|
+
const deprecationPathMatches = [
|
|
8650
|
+
...matchingPathEntries,
|
|
8651
|
+
...resolvedPathEntries
|
|
8652
|
+
];
|
|
8653
|
+
const canSendDeprecationMessaging = deprecationPathMatches.length > 0 && deprecationPathMatches.every(
|
|
8654
|
+
({ config }) => config.omitDeprecationMessaging !== true
|
|
8655
|
+
);
|
|
8656
|
+
return {
|
|
8657
|
+
url: url2,
|
|
8658
|
+
pathConfig: routingMatch?.config,
|
|
8659
|
+
canSendDeprecationMessaging
|
|
8660
|
+
};
|
|
8661
|
+
};
|
|
8508
8662
|
let finalPath = path;
|
|
8509
|
-
if (config
|
|
8510
|
-
const pathWithoutPrefix = path.slice(
|
|
8511
|
-
finalPath = `${config.pathPrefix}${pathWithoutPrefix}`;
|
|
8663
|
+
if (routingMatch?.config.pathPrefix) {
|
|
8664
|
+
const pathWithoutPrefix = path.slice(routingMatch.configPath.length) || "/";
|
|
8665
|
+
finalPath = `${routingMatch.config.pathPrefix}${pathWithoutPrefix}`;
|
|
8512
8666
|
}
|
|
8513
8667
|
const zapierBaseUrl = getZapierBaseUrl(this.options.baseUrl);
|
|
8514
8668
|
if (zapierBaseUrl === this.options.baseUrl.replace(/\/$/, "")) {
|
|
8515
8669
|
const originalBaseUrl = new URL(this.options.baseUrl);
|
|
8516
8670
|
const finalBaseUrl = `https://sdkapi.${originalBaseUrl.hostname}`;
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
pathConfig: config
|
|
8520
|
-
};
|
|
8671
|
+
const url2 = new URL(finalPath, finalBaseUrl);
|
|
8672
|
+
return buildResult(url2);
|
|
8521
8673
|
}
|
|
8522
8674
|
const baseUrl = new URL(this.options.baseUrl);
|
|
8523
8675
|
const basePath = baseUrl.pathname.replace(/\/$/, "");
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
pathConfig: config
|
|
8527
|
-
};
|
|
8676
|
+
const url = new URL(basePath + finalPath, baseUrl.origin);
|
|
8677
|
+
return buildResult(url);
|
|
8528
8678
|
}
|
|
8529
8679
|
// Helper to build full URLs and return routing info
|
|
8530
8680
|
buildUrl(path, searchParams) {
|
|
8531
|
-
const {
|
|
8681
|
+
const {
|
|
8682
|
+
url,
|
|
8683
|
+
pathConfig: config,
|
|
8684
|
+
canSendDeprecationMessaging
|
|
8685
|
+
} = this.applyPathConfiguration(path);
|
|
8532
8686
|
if (searchParams) {
|
|
8533
8687
|
Object.entries(searchParams).forEach(([key, value]) => {
|
|
8534
8688
|
url.searchParams.set(key, value);
|
|
8535
8689
|
});
|
|
8536
8690
|
}
|
|
8537
|
-
return {
|
|
8691
|
+
return {
|
|
8692
|
+
url: url.toString(),
|
|
8693
|
+
pathConfig: config,
|
|
8694
|
+
canSendDeprecationMessaging
|
|
8695
|
+
};
|
|
8538
8696
|
}
|
|
8539
8697
|
// Helper to build headers
|
|
8540
8698
|
async buildHeaders(options = {}, pathConfig2) {
|
|
@@ -11279,6 +11437,7 @@ exports.DEFAULT_APPROVAL_TIMEOUT_MS = DEFAULT_APPROVAL_TIMEOUT_MS;
|
|
|
11279
11437
|
exports.DEFAULT_CONFIG_PATH = DEFAULT_CONFIG_PATH;
|
|
11280
11438
|
exports.DEFAULT_MAX_APPROVAL_RETRIES = DEFAULT_MAX_APPROVAL_RETRIES;
|
|
11281
11439
|
exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
|
|
11440
|
+
exports.DEPRECATION_NOTICE_EVENT = DEPRECATION_NOTICE_EVENT;
|
|
11282
11441
|
exports.DebugPropertySchema = DebugPropertySchema;
|
|
11283
11442
|
exports.FieldsPropertySchema = FieldsPropertySchema;
|
|
11284
11443
|
exports.InputFieldPropertySchema = InputFieldPropertySchema;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { H as Action, f as ActionEntry, cv as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b7 as ActionItem, bJ as ActionKeyProperty, bh as ActionKeyPropertySchema, bK as ActionProperty, bi as ActionPropertySchema, aW as ActionResolverItem, bV as ActionTimeoutMsProperty, bt as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bI as ActionTypeProperty, bg as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, cr as ApiError, dX as ApiEvent, dc as ApiPluginOptions, de as ApiPluginProvides, I as App, cw as AppFactoryInput, b5 as AppItem, bG as AppKeyProperty, be as AppKeyPropertySchema, bH as AppProperty, bf as AppPropertySchema, f5 as ApplicationLifecycleEventData, cn as ApprovalStatus, cu as AppsPluginProvides, b_ as AppsProperty, by as AppsPropertySchema, al as ArrayResolver, dW as AuthEvent, dH as AuthMechanism, bO as AuthenticationIdProperty, bl as AuthenticationIdPropertySchema, fd as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d0 as CONTEXT_CACHE_MAX_SIZE, c$ as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e1 as ClientCredentialsObject, ec as ClientCredentialsObjectSchema, $ as Connection, ek as ConnectionEntry, ej as ConnectionEntrySchema, bM as ConnectionIdProperty, bk as ConnectionIdPropertySchema, b6 as ConnectionItem, bN as ConnectionProperty, bm as ConnectionPropertySchema, em as ConnectionsMap, el as ConnectionsMapSchema, eo as ConnectionsPluginProvides, c0 as ConnectionsProperty, bA as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cO as CreateClientCredentialsPluginProvides, eP as CreateTableFieldsPluginProvides, eJ as CreateTablePluginProvides, eX as CreateTableRecordsPluginProvides, d_ as Credentials, eh as CredentialsFunction, eg as CredentialsFunctionSchema, e0 as CredentialsObject, ee as CredentialsObjectSchema, ei as CredentialsSchema, et as DEFAULT_ACTION_TIMEOUT_MS, eC as DEFAULT_APPROVAL_TIMEOUT_MS, d9 as DEFAULT_CONFIG_PATH, eD as DEFAULT_MAX_APPROVAL_RETRIES, es as DEFAULT_PAGE_SIZE, bT as DebugProperty, br as DebugPropertySchema, cQ as DeleteClientCredentialsPluginProvides, eR as DeleteTableFieldsPluginProvides, eL as DeleteTablePluginProvides, eZ as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, ao as DynamicListResolver, m as DynamicResolver, ap as DynamicSearchResolver, f6 as EnhancedErrorEventData, c6 as ErrorOptions, dZ as EventCallback, f4 as EventContext, f1 as EventEmissionConfig, E as EventEmissionContext, f3 as EventEmissionProvides, cy as FetchPluginProvides, J as Field, bZ as FieldsProperty, bx as FieldsPropertySchema, aq as FieldsResolver, F as FieldsetItem, y as FindFirstAuthenticationPluginProvides, cY as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, c_ as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cI as GetActionInputFieldsSchemaPluginProvides, cU as GetActionPluginProvides, cS as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cW as GetConnectionPluginProvides, eH as GetTablePluginProvides, eT as GetTableRecordPluginProvides, b9 as InfoFieldItem, b8 as InputFieldItem, bL as InputFieldProperty, bj as InputFieldPropertySchema, bP as InputsProperty, bn as InputsPropertySchema, b4 as JsonSseMessage, c5 as LeaseLimitProperty, bF as LeaseLimitPropertySchema, c3 as LeaseProperty, bD as LeasePropertySchema, c4 as LeaseSecondsProperty, bE as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bQ as LimitProperty, bo as LimitPropertySchema, cG as ListActionInputFieldChoicesPluginProvides, cE as ListActionInputFieldsPluginProvides, cC as ListActionsPluginProvides, cA as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cM as ListClientCredentialsPluginProvides, cK as ListConnectionsPluginProvides, eN as ListTableFieldsPluginProvides, eV as ListTableRecordsPluginProvides, eF as ListTablesPluginProvides, dY as LoadingEvent, ew as MAX_CONCURRENCY_LIMIT, er as MAX_PAGE_LIMIT, b as Manifest, da as ManifestEntry, d5 as ManifestPluginOptions, d8 as ManifestPluginProvides, fe as MethodCalledEvent, f7 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bR as OffsetProperty, bp as OffsetPropertySchema, O as OutputFormatter, bS as OutputProperty, bq as OutputPropertySchema, bd as PaginatedSdkFunction, i as PaginatedSdkResult, bU as ParamsProperty, bs as ParamsPropertySchema, e2 as PkceCredentialsObject, ed as PkceCredentialsObjectSchema, aQ as Plugin, a as PluginMeta, aR as PluginProvides, a$ as PollOptions, k as PositionalMetadata, cl as RateLimitInfo, bX as RecordProperty, bv as RecordPropertySchema, bY as RecordsProperty, bw as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d4 as RequestPluginProvides, dG as ResolveAuthTokenOptions, e7 as ResolveCredentialsOptions, R as ResolvedAppLocator, dI as ResolvedAuth, d$ as ResolvedCredentials, ef as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, ba as RootFieldItem, d2 as RunActionPluginProvides, dV as SdkEvent, bc as SdkPage, b3 as SseMessage, an as StaticResolver, bW as TableProperty, bu as TablePropertySchema, b$ as TablesProperty, bz as TablesPropertySchema, c2 as TriggerInboxNameProperty, bC as TriggerInboxNamePropertySchema, c1 as TriggerInboxProperty, bB as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, e$ as UpdateTableRecordsPluginProvides, a1 as UserProfile, bb as UserProfileItem, n as WatchTriggerInboxOptions, ep as ZAPIER_BASE_URL, ey as ZAPIER_MAX_CONCURRENT_REQUESTS, eu as ZAPIER_MAX_NETWORK_RETRIES, ev as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cj as ZapierActionError, cc as ZapierApiError, cd as ZapierAppNotFoundError, co as ZapierApprovalError, ca as ZapierAuthenticationError, ch as ZapierBundleError, dR as ZapierCache, dS as ZapierCacheEntry, dT as ZapierCacheSetOptions, cg as ZapierConfigurationError, ck as ZapierConflictError, c7 as ZapierError, l as ZapierFetchInitOptions, ce as ZapierNotFoundError, cm as ZapierRateLimitError, cp as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cf as ZapierResourceNotFoundError, fr as ZapierSdk, p as ZapierSdkApps, Z as ZapierSdkOptions, cs as ZapierSignal, ci as ZapierTimeoutError, c9 as ZapierUnknownError, c8 as ZapierValidationError, dh as actionKeyResolver, dg as actionTypeResolver, a6 as addPlugin, dd as apiPlugin, df as appKeyResolver, ct as appsPlugin, dj as authenticationIdGenericResolver, di as authenticationIdResolver, ay as batch, f8 as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fa as buildErrorEvent, f9 as buildErrorEventWithContext, fc as buildMethodCalledEvent, f0 as cleanupEventListeners, dJ as clearTokenCache, dn as clientCredentialsNameResolver, dp as clientIdResolver, aV as composePlugins, dj as connectionIdGenericResolver, di as connectionIdResolver, en as connectionsPlugin, fb as createBaseEvent, cN as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dU as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eO as createTableFieldsPlugin, eI as createTablePlugin, eW as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, fp as createZapierSdk, fq as createZapierSdkStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cP as deleteClientCredentialsPlugin, eQ as deleteTableFieldsPlugin, eK as deleteTablePlugin, eY as deleteTableRecordsPlugin, dt as durableRunIdResolver, f2 as eventEmissionPlugin, cx as fetchPlugin, cX as findFirstConnectionPlugin, g as findManifestEntry, cZ as findUniqueConnectionPlugin, cq as formatErrorMessage, a8 as fromFunctionPlugin, ff as generateEventId, cH as getActionInputFieldsSchemaPlugin, cT as getActionPlugin, aY as getAgent, cR as getAppPlugin, ea as getBaseUrlFromCredentials, at as getCallerContext, fl as getCiPlatform, eb as getClientIdFromCredentials, cV as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fn as getCpuTime, fg as getCurrentTimestamp, fm as getMemoryUsage, b1 as getOrCreateApiClient, fi as getOsInfo, fj as getPlatformVersions, d6 as getPreferredManifestEntryKey, db as getProfilePlugin, fh as getReleaseId, eG as getTablePlugin, eS as getTableRecordPlugin, dN as getTokenFromCliLogin, fo as getTtyContext, ez as getZapierApprovalMode, eB as getZapierDefaultApprovalMode, eA as getZapierOpenAutoModeApprovalsInBrowser, eq as getZapierSdkService, dL as injectCliLogin, dm as inputFieldKeyResolver, dl as inputsAllOptionalResolver, dk as inputsResolver, dK as invalidateCachedToken, dQ as invalidateCredentialsToken, fk as isCi, dM as isCliLoginAvailable, e3 as isClientCredentials, aL as isCoreError, e6 as isCredentialsFunction, e5 as isCredentialsObject, b2 as isPermanentHttpError, e4 as isPkceCredentials, a2 as isPositional, cF as listActionInputFieldChoicesPlugin, cD as listActionInputFieldsPlugin, cB as listActionsPlugin, cz as listAppsPlugin, cL as listClientCredentialsPlugin, cJ as listConnectionsPlugin, eM as listTableFieldsPlugin, eU as listTableRecordsPlugin, eE as listTablesPlugin, aB as logDeprecation, d7 as manifestPlugin, ex as parseConcurrencyEnvVar, r as readManifestFromFile, aZ as registryPlugin, d3 as requestPlugin, aC as resetDeprecationWarnings, dO as resolveAuth, dP as resolveAuthToken, e9 as resolveCredentials, e8 as resolveCredentialsFromEnv, d1 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dz as tableFieldIdsResolver, dB as tableFieldsResolver, dE as tableFiltersResolver, dq as tableIdResolver, dA as tableNameResolver, dx as tableRecordIdResolver, dy as tableRecordIdsResolver, dC as tableRecordsResolver, dF as tableSortResolver, dD as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dr as triggerInboxResolver, dw as triggerMessagesResolver, e_ as updateTableRecordsPlugin, ds as workflowIdResolver, dv as workflowRunIdResolver, du as workflowVersionIdResolver, cb as zapierAdaptError, ag as zapierSdkPlugin } from './index-BgbftweS.mjs';
|
|
1
|
+
export { H as Action, f as ActionEntry, cx as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b9 as ActionItem, bL as ActionKeyProperty, bj as ActionKeyPropertySchema, bM as ActionProperty, bk as ActionPropertySchema, aW as ActionResolverItem, bX as ActionTimeoutMsProperty, bv as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bK as ActionTypeProperty, bi as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, ct as ApiError, dZ as ApiEvent, de as ApiPluginOptions, dg as ApiPluginProvides, I as App, cy as AppFactoryInput, b7 as AppItem, bI as AppKeyProperty, bg as AppKeyPropertySchema, bJ as AppProperty, bh as AppPropertySchema, f7 as ApplicationLifecycleEventData, cp as ApprovalStatus, cw as AppsPluginProvides, c0 as AppsProperty, bA as AppsPropertySchema, al as ArrayResolver, dY as AuthEvent, dJ as AuthMechanism, bQ as AuthenticationIdProperty, bn as AuthenticationIdPropertySchema, ff as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d2 as CONTEXT_CACHE_MAX_SIZE, d1 as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e3 as ClientCredentialsObject, ee as ClientCredentialsObjectSchema, $ as Connection, em as ConnectionEntry, el as ConnectionEntrySchema, bO as ConnectionIdProperty, bm as ConnectionIdPropertySchema, b8 as ConnectionItem, bP as ConnectionProperty, bo as ConnectionPropertySchema, eo as ConnectionsMap, en as ConnectionsMapSchema, eq as ConnectionsPluginProvides, c2 as ConnectionsProperty, bC as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cQ as CreateClientCredentialsPluginProvides, eR as CreateTableFieldsPluginProvides, eL as CreateTablePluginProvides, eZ as CreateTableRecordsPluginProvides, e0 as Credentials, ej as CredentialsFunction, ei as CredentialsFunctionSchema, e2 as CredentialsObject, eg as CredentialsObjectSchema, ek as CredentialsSchema, ev as DEFAULT_ACTION_TIMEOUT_MS, eE as DEFAULT_APPROVAL_TIMEOUT_MS, db as DEFAULT_CONFIG_PATH, eF as DEFAULT_MAX_APPROVAL_RETRIES, eu as DEFAULT_PAGE_SIZE, b5 as DEPRECATION_NOTICE_EVENT, bV as DebugProperty, bt as DebugPropertySchema, cS as DeleteClientCredentialsPluginProvides, eT as DeleteTableFieldsPluginProvides, eN as DeleteTablePluginProvides, e$ as DeleteTableRecordsPluginProvides, b6 as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, ao as DynamicListResolver, m as DynamicResolver, ap as DynamicSearchResolver, f8 as EnhancedErrorEventData, c8 as ErrorOptions, d$ as EventCallback, f6 as EventContext, f3 as EventEmissionConfig, E as EventEmissionContext, f5 as EventEmissionProvides, cA as FetchPluginProvides, J as Field, b$ as FieldsProperty, bz as FieldsPropertySchema, aq as FieldsResolver, F as FieldsetItem, y as FindFirstAuthenticationPluginProvides, c_ as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, d0 as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cK as GetActionInputFieldsSchemaPluginProvides, cW as GetActionPluginProvides, cU as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cY as GetConnectionPluginProvides, eJ as GetTablePluginProvides, eV as GetTableRecordPluginProvides, bb as InfoFieldItem, ba as InputFieldItem, bN as InputFieldProperty, bl as InputFieldPropertySchema, bR as InputsProperty, bp as InputsPropertySchema, b4 as JsonSseMessage, c7 as LeaseLimitProperty, bH as LeaseLimitPropertySchema, c5 as LeaseProperty, bF as LeasePropertySchema, c6 as LeaseSecondsProperty, bG as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bS as LimitProperty, bq as LimitPropertySchema, cI as ListActionInputFieldChoicesPluginProvides, cG as ListActionInputFieldsPluginProvides, cE as ListActionsPluginProvides, cC as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cO as ListClientCredentialsPluginProvides, cM as ListConnectionsPluginProvides, eP as ListTableFieldsPluginProvides, eX as ListTableRecordsPluginProvides, eH as ListTablesPluginProvides, d_ as LoadingEvent, ey as MAX_CONCURRENCY_LIMIT, et as MAX_PAGE_LIMIT, b as Manifest, dc as ManifestEntry, d7 as ManifestPluginOptions, da as ManifestPluginProvides, fg as MethodCalledEvent, f9 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bT as OffsetProperty, br as OffsetPropertySchema, O as OutputFormatter, bU as OutputProperty, bs as OutputPropertySchema, bf as PaginatedSdkFunction, i as PaginatedSdkResult, bW as ParamsProperty, bu as ParamsPropertySchema, e4 as PkceCredentialsObject, ef as PkceCredentialsObjectSchema, aQ as Plugin, a as PluginMeta, aR as PluginProvides, a$ as PollOptions, k as PositionalMetadata, cn as RateLimitInfo, bZ as RecordProperty, bx as RecordPropertySchema, b_ as RecordsProperty, by as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d6 as RequestPluginProvides, dI as ResolveAuthTokenOptions, e9 as ResolveCredentialsOptions, R as ResolvedAppLocator, dK as ResolvedAuth, e1 as ResolvedCredentials, eh as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, bc as RootFieldItem, d4 as RunActionPluginProvides, dX as SdkEvent, be as SdkPage, b3 as SseMessage, an as StaticResolver, bY as TableProperty, bw as TablePropertySchema, c1 as TablesProperty, bB as TablesPropertySchema, c4 as TriggerInboxNameProperty, bE as TriggerInboxNamePropertySchema, c3 as TriggerInboxProperty, bD as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, f1 as UpdateTableRecordsPluginProvides, a1 as UserProfile, bd as UserProfileItem, n as WatchTriggerInboxOptions, er as ZAPIER_BASE_URL, eA as ZAPIER_MAX_CONCURRENT_REQUESTS, ew as ZAPIER_MAX_NETWORK_RETRIES, ex as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cl as ZapierActionError, ce as ZapierApiError, cf as ZapierAppNotFoundError, cq as ZapierApprovalError, cc as ZapierAuthenticationError, cj as ZapierBundleError, dT as ZapierCache, dU as ZapierCacheEntry, dV as ZapierCacheSetOptions, ci as ZapierConfigurationError, cm as ZapierConflictError, c9 as ZapierError, l as ZapierFetchInitOptions, cg as ZapierNotFoundError, co as ZapierRateLimitError, cr as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, ch as ZapierResourceNotFoundError, ft as ZapierSdk, p as ZapierSdkApps, Z as ZapierSdkOptions, cu as ZapierSignal, ck as ZapierTimeoutError, cb as ZapierUnknownError, ca as ZapierValidationError, dj as actionKeyResolver, di as actionTypeResolver, a6 as addPlugin, df as apiPlugin, dh as appKeyResolver, cv as appsPlugin, dl as authenticationIdGenericResolver, dk as authenticationIdResolver, ay as batch, fa as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fc as buildErrorEvent, fb as buildErrorEventWithContext, fe as buildMethodCalledEvent, f2 as cleanupEventListeners, dL as clearTokenCache, dq as clientCredentialsNameResolver, dr as clientIdResolver, aV as composePlugins, dl as connectionIdGenericResolver, dk as connectionIdResolver, ep as connectionsPlugin, fd as createBaseEvent, cP as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dW as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eQ as createTableFieldsPlugin, eK as createTablePlugin, eY as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, fr as createZapierSdk, fs as createZapierSdkStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cR as deleteClientCredentialsPlugin, eS as deleteTableFieldsPlugin, eM as deleteTablePlugin, e_ as deleteTableRecordsPlugin, dv as durableRunIdResolver, f4 as eventEmissionPlugin, cz as fetchPlugin, cZ as findFirstConnectionPlugin, g as findManifestEntry, c$ as findUniqueConnectionPlugin, cs as formatErrorMessage, a8 as fromFunctionPlugin, fh as generateEventId, cJ as getActionInputFieldsSchemaPlugin, cV as getActionPlugin, aY as getAgent, cT as getAppPlugin, ec as getBaseUrlFromCredentials, at as getCallerContext, fn as getCiPlatform, ed as getClientIdFromCredentials, cX as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fp as getCpuTime, fi as getCurrentTimestamp, fo as getMemoryUsage, b1 as getOrCreateApiClient, fk as getOsInfo, fl as getPlatformVersions, d8 as getPreferredManifestEntryKey, dd as getProfilePlugin, fj as getReleaseId, eI as getTablePlugin, eU as getTableRecordPlugin, dP as getTokenFromCliLogin, fq as getTtyContext, eB as getZapierApprovalMode, eD as getZapierDefaultApprovalMode, eC as getZapierOpenAutoModeApprovalsInBrowser, es as getZapierSdkService, dN as injectCliLogin, dp as inputFieldKeyResolver, dn as inputsAllOptionalResolver, dm as inputsResolver, dM as invalidateCachedToken, dS as invalidateCredentialsToken, fm as isCi, dO as isCliLoginAvailable, e5 as isClientCredentials, aL as isCoreError, e8 as isCredentialsFunction, e7 as isCredentialsObject, b2 as isPermanentHttpError, e6 as isPkceCredentials, a2 as isPositional, cH as listActionInputFieldChoicesPlugin, cF as listActionInputFieldsPlugin, cD as listActionsPlugin, cB as listAppsPlugin, cN as listClientCredentialsPlugin, cL as listConnectionsPlugin, eO as listTableFieldsPlugin, eW as listTableRecordsPlugin, eG as listTablesPlugin, aB as logDeprecation, d9 as manifestPlugin, ez as parseConcurrencyEnvVar, r as readManifestFromFile, aZ as registryPlugin, d5 as requestPlugin, aC as resetDeprecationWarnings, dQ as resolveAuth, dR as resolveAuthToken, eb as resolveCredentials, ea as resolveCredentialsFromEnv, d3 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dB as tableFieldIdsResolver, dD as tableFieldsResolver, dG as tableFiltersResolver, ds as tableIdResolver, dC as tableNameResolver, dz as tableRecordIdResolver, dA as tableRecordIdsResolver, dE as tableRecordsResolver, dH as tableSortResolver, dF as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dt as triggerInboxResolver, dy as triggerMessagesResolver, f0 as updateTableRecordsPlugin, du as workflowIdResolver, dx as workflowRunIdResolver, dw as workflowVersionIdResolver, cd as zapierAdaptError, ag as zapierSdkPlugin } from './index-DgX1b0Sv.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'zod/v4/core';
|
|
4
4
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { H as Action, f as ActionEntry, cv as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b7 as ActionItem, bJ as ActionKeyProperty, bh as ActionKeyPropertySchema, bK as ActionProperty, bi as ActionPropertySchema, aW as ActionResolverItem, bV as ActionTimeoutMsProperty, bt as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bI as ActionTypeProperty, bg as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, cr as ApiError, dX as ApiEvent, dc as ApiPluginOptions, de as ApiPluginProvides, I as App, cw as AppFactoryInput, b5 as AppItem, bG as AppKeyProperty, be as AppKeyPropertySchema, bH as AppProperty, bf as AppPropertySchema, f5 as ApplicationLifecycleEventData, cn as ApprovalStatus, cu as AppsPluginProvides, b_ as AppsProperty, by as AppsPropertySchema, al as ArrayResolver, dW as AuthEvent, dH as AuthMechanism, bO as AuthenticationIdProperty, bl as AuthenticationIdPropertySchema, fd as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d0 as CONTEXT_CACHE_MAX_SIZE, c$ as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e1 as ClientCredentialsObject, ec as ClientCredentialsObjectSchema, $ as Connection, ek as ConnectionEntry, ej as ConnectionEntrySchema, bM as ConnectionIdProperty, bk as ConnectionIdPropertySchema, b6 as ConnectionItem, bN as ConnectionProperty, bm as ConnectionPropertySchema, em as ConnectionsMap, el as ConnectionsMapSchema, eo as ConnectionsPluginProvides, c0 as ConnectionsProperty, bA as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cO as CreateClientCredentialsPluginProvides, eP as CreateTableFieldsPluginProvides, eJ as CreateTablePluginProvides, eX as CreateTableRecordsPluginProvides, d_ as Credentials, eh as CredentialsFunction, eg as CredentialsFunctionSchema, e0 as CredentialsObject, ee as CredentialsObjectSchema, ei as CredentialsSchema, et as DEFAULT_ACTION_TIMEOUT_MS, eC as DEFAULT_APPROVAL_TIMEOUT_MS, d9 as DEFAULT_CONFIG_PATH, eD as DEFAULT_MAX_APPROVAL_RETRIES, es as DEFAULT_PAGE_SIZE, bT as DebugProperty, br as DebugPropertySchema, cQ as DeleteClientCredentialsPluginProvides, eR as DeleteTableFieldsPluginProvides, eL as DeleteTablePluginProvides, eZ as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, ao as DynamicListResolver, m as DynamicResolver, ap as DynamicSearchResolver, f6 as EnhancedErrorEventData, c6 as ErrorOptions, dZ as EventCallback, f4 as EventContext, f1 as EventEmissionConfig, E as EventEmissionContext, f3 as EventEmissionProvides, cy as FetchPluginProvides, J as Field, bZ as FieldsProperty, bx as FieldsPropertySchema, aq as FieldsResolver, F as FieldsetItem, y as FindFirstAuthenticationPluginProvides, cY as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, c_ as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cI as GetActionInputFieldsSchemaPluginProvides, cU as GetActionPluginProvides, cS as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cW as GetConnectionPluginProvides, eH as GetTablePluginProvides, eT as GetTableRecordPluginProvides, b9 as InfoFieldItem, b8 as InputFieldItem, bL as InputFieldProperty, bj as InputFieldPropertySchema, bP as InputsProperty, bn as InputsPropertySchema, b4 as JsonSseMessage, c5 as LeaseLimitProperty, bF as LeaseLimitPropertySchema, c3 as LeaseProperty, bD as LeasePropertySchema, c4 as LeaseSecondsProperty, bE as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bQ as LimitProperty, bo as LimitPropertySchema, cG as ListActionInputFieldChoicesPluginProvides, cE as ListActionInputFieldsPluginProvides, cC as ListActionsPluginProvides, cA as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cM as ListClientCredentialsPluginProvides, cK as ListConnectionsPluginProvides, eN as ListTableFieldsPluginProvides, eV as ListTableRecordsPluginProvides, eF as ListTablesPluginProvides, dY as LoadingEvent, ew as MAX_CONCURRENCY_LIMIT, er as MAX_PAGE_LIMIT, b as Manifest, da as ManifestEntry, d5 as ManifestPluginOptions, d8 as ManifestPluginProvides, fe as MethodCalledEvent, f7 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bR as OffsetProperty, bp as OffsetPropertySchema, O as OutputFormatter, bS as OutputProperty, bq as OutputPropertySchema, bd as PaginatedSdkFunction, i as PaginatedSdkResult, bU as ParamsProperty, bs as ParamsPropertySchema, e2 as PkceCredentialsObject, ed as PkceCredentialsObjectSchema, aQ as Plugin, a as PluginMeta, aR as PluginProvides, a$ as PollOptions, k as PositionalMetadata, cl as RateLimitInfo, bX as RecordProperty, bv as RecordPropertySchema, bY as RecordsProperty, bw as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d4 as RequestPluginProvides, dG as ResolveAuthTokenOptions, e7 as ResolveCredentialsOptions, R as ResolvedAppLocator, dI as ResolvedAuth, d$ as ResolvedCredentials, ef as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, ba as RootFieldItem, d2 as RunActionPluginProvides, dV as SdkEvent, bc as SdkPage, b3 as SseMessage, an as StaticResolver, bW as TableProperty, bu as TablePropertySchema, b$ as TablesProperty, bz as TablesPropertySchema, c2 as TriggerInboxNameProperty, bC as TriggerInboxNamePropertySchema, c1 as TriggerInboxProperty, bB as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, e$ as UpdateTableRecordsPluginProvides, a1 as UserProfile, bb as UserProfileItem, n as WatchTriggerInboxOptions, ep as ZAPIER_BASE_URL, ey as ZAPIER_MAX_CONCURRENT_REQUESTS, eu as ZAPIER_MAX_NETWORK_RETRIES, ev as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cj as ZapierActionError, cc as ZapierApiError, cd as ZapierAppNotFoundError, co as ZapierApprovalError, ca as ZapierAuthenticationError, ch as ZapierBundleError, dR as ZapierCache, dS as ZapierCacheEntry, dT as ZapierCacheSetOptions, cg as ZapierConfigurationError, ck as ZapierConflictError, c7 as ZapierError, l as ZapierFetchInitOptions, ce as ZapierNotFoundError, cm as ZapierRateLimitError, cp as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cf as ZapierResourceNotFoundError, fr as ZapierSdk, p as ZapierSdkApps, Z as ZapierSdkOptions, cs as ZapierSignal, ci as ZapierTimeoutError, c9 as ZapierUnknownError, c8 as ZapierValidationError, dh as actionKeyResolver, dg as actionTypeResolver, a6 as addPlugin, dd as apiPlugin, df as appKeyResolver, ct as appsPlugin, dj as authenticationIdGenericResolver, di as authenticationIdResolver, ay as batch, f8 as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fa as buildErrorEvent, f9 as buildErrorEventWithContext, fc as buildMethodCalledEvent, f0 as cleanupEventListeners, dJ as clearTokenCache, dn as clientCredentialsNameResolver, dp as clientIdResolver, aV as composePlugins, dj as connectionIdGenericResolver, di as connectionIdResolver, en as connectionsPlugin, fb as createBaseEvent, cN as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dU as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eO as createTableFieldsPlugin, eI as createTablePlugin, eW as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, fp as createZapierSdk, fq as createZapierSdkStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cP as deleteClientCredentialsPlugin, eQ as deleteTableFieldsPlugin, eK as deleteTablePlugin, eY as deleteTableRecordsPlugin, dt as durableRunIdResolver, f2 as eventEmissionPlugin, cx as fetchPlugin, cX as findFirstConnectionPlugin, g as findManifestEntry, cZ as findUniqueConnectionPlugin, cq as formatErrorMessage, a8 as fromFunctionPlugin, ff as generateEventId, cH as getActionInputFieldsSchemaPlugin, cT as getActionPlugin, aY as getAgent, cR as getAppPlugin, ea as getBaseUrlFromCredentials, at as getCallerContext, fl as getCiPlatform, eb as getClientIdFromCredentials, cV as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fn as getCpuTime, fg as getCurrentTimestamp, fm as getMemoryUsage, b1 as getOrCreateApiClient, fi as getOsInfo, fj as getPlatformVersions, d6 as getPreferredManifestEntryKey, db as getProfilePlugin, fh as getReleaseId, eG as getTablePlugin, eS as getTableRecordPlugin, dN as getTokenFromCliLogin, fo as getTtyContext, ez as getZapierApprovalMode, eB as getZapierDefaultApprovalMode, eA as getZapierOpenAutoModeApprovalsInBrowser, eq as getZapierSdkService, dL as injectCliLogin, dm as inputFieldKeyResolver, dl as inputsAllOptionalResolver, dk as inputsResolver, dK as invalidateCachedToken, dQ as invalidateCredentialsToken, fk as isCi, dM as isCliLoginAvailable, e3 as isClientCredentials, aL as isCoreError, e6 as isCredentialsFunction, e5 as isCredentialsObject, b2 as isPermanentHttpError, e4 as isPkceCredentials, a2 as isPositional, cF as listActionInputFieldChoicesPlugin, cD as listActionInputFieldsPlugin, cB as listActionsPlugin, cz as listAppsPlugin, cL as listClientCredentialsPlugin, cJ as listConnectionsPlugin, eM as listTableFieldsPlugin, eU as listTableRecordsPlugin, eE as listTablesPlugin, aB as logDeprecation, d7 as manifestPlugin, ex as parseConcurrencyEnvVar, r as readManifestFromFile, aZ as registryPlugin, d3 as requestPlugin, aC as resetDeprecationWarnings, dO as resolveAuth, dP as resolveAuthToken, e9 as resolveCredentials, e8 as resolveCredentialsFromEnv, d1 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dz as tableFieldIdsResolver, dB as tableFieldsResolver, dE as tableFiltersResolver, dq as tableIdResolver, dA as tableNameResolver, dx as tableRecordIdResolver, dy as tableRecordIdsResolver, dC as tableRecordsResolver, dF as tableSortResolver, dD as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dr as triggerInboxResolver, dw as triggerMessagesResolver, e_ as updateTableRecordsPlugin, ds as workflowIdResolver, dv as workflowRunIdResolver, du as workflowVersionIdResolver, cb as zapierAdaptError, ag as zapierSdkPlugin } from './index-BgbftweS.js';
|
|
1
|
+
export { H as Action, f as ActionEntry, cx as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b9 as ActionItem, bL as ActionKeyProperty, bj as ActionKeyPropertySchema, bM as ActionProperty, bk as ActionPropertySchema, aW as ActionResolverItem, bX as ActionTimeoutMsProperty, bv as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bK as ActionTypeProperty, bi as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, ct as ApiError, dZ as ApiEvent, de as ApiPluginOptions, dg as ApiPluginProvides, I as App, cy as AppFactoryInput, b7 as AppItem, bI as AppKeyProperty, bg as AppKeyPropertySchema, bJ as AppProperty, bh as AppPropertySchema, f7 as ApplicationLifecycleEventData, cp as ApprovalStatus, cw as AppsPluginProvides, c0 as AppsProperty, bA as AppsPropertySchema, al as ArrayResolver, dY as AuthEvent, dJ as AuthMechanism, bQ as AuthenticationIdProperty, bn as AuthenticationIdPropertySchema, ff as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d2 as CONTEXT_CACHE_MAX_SIZE, d1 as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e3 as ClientCredentialsObject, ee as ClientCredentialsObjectSchema, $ as Connection, em as ConnectionEntry, el as ConnectionEntrySchema, bO as ConnectionIdProperty, bm as ConnectionIdPropertySchema, b8 as ConnectionItem, bP as ConnectionProperty, bo as ConnectionPropertySchema, eo as ConnectionsMap, en as ConnectionsMapSchema, eq as ConnectionsPluginProvides, c2 as ConnectionsProperty, bC as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cQ as CreateClientCredentialsPluginProvides, eR as CreateTableFieldsPluginProvides, eL as CreateTablePluginProvides, eZ as CreateTableRecordsPluginProvides, e0 as Credentials, ej as CredentialsFunction, ei as CredentialsFunctionSchema, e2 as CredentialsObject, eg as CredentialsObjectSchema, ek as CredentialsSchema, ev as DEFAULT_ACTION_TIMEOUT_MS, eE as DEFAULT_APPROVAL_TIMEOUT_MS, db as DEFAULT_CONFIG_PATH, eF as DEFAULT_MAX_APPROVAL_RETRIES, eu as DEFAULT_PAGE_SIZE, b5 as DEPRECATION_NOTICE_EVENT, bV as DebugProperty, bt as DebugPropertySchema, cS as DeleteClientCredentialsPluginProvides, eT as DeleteTableFieldsPluginProvides, eN as DeleteTablePluginProvides, e$ as DeleteTableRecordsPluginProvides, b6 as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, ao as DynamicListResolver, m as DynamicResolver, ap as DynamicSearchResolver, f8 as EnhancedErrorEventData, c8 as ErrorOptions, d$ as EventCallback, f6 as EventContext, f3 as EventEmissionConfig, E as EventEmissionContext, f5 as EventEmissionProvides, cA as FetchPluginProvides, J as Field, b$ as FieldsProperty, bz as FieldsPropertySchema, aq as FieldsResolver, F as FieldsetItem, y as FindFirstAuthenticationPluginProvides, c_ as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, d0 as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cK as GetActionInputFieldsSchemaPluginProvides, cW as GetActionPluginProvides, cU as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cY as GetConnectionPluginProvides, eJ as GetTablePluginProvides, eV as GetTableRecordPluginProvides, bb as InfoFieldItem, ba as InputFieldItem, bN as InputFieldProperty, bl as InputFieldPropertySchema, bR as InputsProperty, bp as InputsPropertySchema, b4 as JsonSseMessage, c7 as LeaseLimitProperty, bH as LeaseLimitPropertySchema, c5 as LeaseProperty, bF as LeasePropertySchema, c6 as LeaseSecondsProperty, bG as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bS as LimitProperty, bq as LimitPropertySchema, cI as ListActionInputFieldChoicesPluginProvides, cG as ListActionInputFieldsPluginProvides, cE as ListActionsPluginProvides, cC as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cO as ListClientCredentialsPluginProvides, cM as ListConnectionsPluginProvides, eP as ListTableFieldsPluginProvides, eX as ListTableRecordsPluginProvides, eH as ListTablesPluginProvides, d_ as LoadingEvent, ey as MAX_CONCURRENCY_LIMIT, et as MAX_PAGE_LIMIT, b as Manifest, dc as ManifestEntry, d7 as ManifestPluginOptions, da as ManifestPluginProvides, fg as MethodCalledEvent, f9 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bT as OffsetProperty, br as OffsetPropertySchema, O as OutputFormatter, bU as OutputProperty, bs as OutputPropertySchema, bf as PaginatedSdkFunction, i as PaginatedSdkResult, bW as ParamsProperty, bu as ParamsPropertySchema, e4 as PkceCredentialsObject, ef as PkceCredentialsObjectSchema, aQ as Plugin, a as PluginMeta, aR as PluginProvides, a$ as PollOptions, k as PositionalMetadata, cn as RateLimitInfo, bZ as RecordProperty, bx as RecordPropertySchema, b_ as RecordsProperty, by as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d6 as RequestPluginProvides, dI as ResolveAuthTokenOptions, e9 as ResolveCredentialsOptions, R as ResolvedAppLocator, dK as ResolvedAuth, e1 as ResolvedCredentials, eh as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, bc as RootFieldItem, d4 as RunActionPluginProvides, dX as SdkEvent, be as SdkPage, b3 as SseMessage, an as StaticResolver, bY as TableProperty, bw as TablePropertySchema, c1 as TablesProperty, bB as TablesPropertySchema, c4 as TriggerInboxNameProperty, bE as TriggerInboxNamePropertySchema, c3 as TriggerInboxProperty, bD as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, f1 as UpdateTableRecordsPluginProvides, a1 as UserProfile, bd as UserProfileItem, n as WatchTriggerInboxOptions, er as ZAPIER_BASE_URL, eA as ZAPIER_MAX_CONCURRENT_REQUESTS, ew as ZAPIER_MAX_NETWORK_RETRIES, ex as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cl as ZapierActionError, ce as ZapierApiError, cf as ZapierAppNotFoundError, cq as ZapierApprovalError, cc as ZapierAuthenticationError, cj as ZapierBundleError, dT as ZapierCache, dU as ZapierCacheEntry, dV as ZapierCacheSetOptions, ci as ZapierConfigurationError, cm as ZapierConflictError, c9 as ZapierError, l as ZapierFetchInitOptions, cg as ZapierNotFoundError, co as ZapierRateLimitError, cr as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, ch as ZapierResourceNotFoundError, ft as ZapierSdk, p as ZapierSdkApps, Z as ZapierSdkOptions, cu as ZapierSignal, ck as ZapierTimeoutError, cb as ZapierUnknownError, ca as ZapierValidationError, dj as actionKeyResolver, di as actionTypeResolver, a6 as addPlugin, df as apiPlugin, dh as appKeyResolver, cv as appsPlugin, dl as authenticationIdGenericResolver, dk as authenticationIdResolver, ay as batch, fa as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fc as buildErrorEvent, fb as buildErrorEventWithContext, fe as buildMethodCalledEvent, f2 as cleanupEventListeners, dL as clearTokenCache, dq as clientCredentialsNameResolver, dr as clientIdResolver, aV as composePlugins, dl as connectionIdGenericResolver, dk as connectionIdResolver, ep as connectionsPlugin, fd as createBaseEvent, cP as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dW as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eQ as createTableFieldsPlugin, eK as createTablePlugin, eY as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, fr as createZapierSdk, fs as createZapierSdkStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cR as deleteClientCredentialsPlugin, eS as deleteTableFieldsPlugin, eM as deleteTablePlugin, e_ as deleteTableRecordsPlugin, dv as durableRunIdResolver, f4 as eventEmissionPlugin, cz as fetchPlugin, cZ as findFirstConnectionPlugin, g as findManifestEntry, c$ as findUniqueConnectionPlugin, cs as formatErrorMessage, a8 as fromFunctionPlugin, fh as generateEventId, cJ as getActionInputFieldsSchemaPlugin, cV as getActionPlugin, aY as getAgent, cT as getAppPlugin, ec as getBaseUrlFromCredentials, at as getCallerContext, fn as getCiPlatform, ed as getClientIdFromCredentials, cX as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fp as getCpuTime, fi as getCurrentTimestamp, fo as getMemoryUsage, b1 as getOrCreateApiClient, fk as getOsInfo, fl as getPlatformVersions, d8 as getPreferredManifestEntryKey, dd as getProfilePlugin, fj as getReleaseId, eI as getTablePlugin, eU as getTableRecordPlugin, dP as getTokenFromCliLogin, fq as getTtyContext, eB as getZapierApprovalMode, eD as getZapierDefaultApprovalMode, eC as getZapierOpenAutoModeApprovalsInBrowser, es as getZapierSdkService, dN as injectCliLogin, dp as inputFieldKeyResolver, dn as inputsAllOptionalResolver, dm as inputsResolver, dM as invalidateCachedToken, dS as invalidateCredentialsToken, fm as isCi, dO as isCliLoginAvailable, e5 as isClientCredentials, aL as isCoreError, e8 as isCredentialsFunction, e7 as isCredentialsObject, b2 as isPermanentHttpError, e6 as isPkceCredentials, a2 as isPositional, cH as listActionInputFieldChoicesPlugin, cF as listActionInputFieldsPlugin, cD as listActionsPlugin, cB as listAppsPlugin, cN as listClientCredentialsPlugin, cL as listConnectionsPlugin, eO as listTableFieldsPlugin, eW as listTableRecordsPlugin, eG as listTablesPlugin, aB as logDeprecation, d9 as manifestPlugin, ez as parseConcurrencyEnvVar, r as readManifestFromFile, aZ as registryPlugin, d5 as requestPlugin, aC as resetDeprecationWarnings, dQ as resolveAuth, dR as resolveAuthToken, eb as resolveCredentials, ea as resolveCredentialsFromEnv, d3 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dB as tableFieldIdsResolver, dD as tableFieldsResolver, dG as tableFiltersResolver, ds as tableIdResolver, dC as tableNameResolver, dz as tableRecordIdResolver, dA as tableRecordIdsResolver, dE as tableRecordsResolver, dH as tableSortResolver, dF as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dt as triggerInboxResolver, dy as triggerMessagesResolver, f0 as updateTableRecordsPlugin, du as workflowIdResolver, dx as workflowRunIdResolver, dw as workflowVersionIdResolver, cd as zapierAdaptError, ag as zapierSdkPlugin } from './index-DgX1b0Sv.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'zod/v4/core';
|
|
4
4
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|