@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.mjs
CHANGED
|
@@ -7851,8 +7851,63 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
7851
7851
|
}
|
|
7852
7852
|
}
|
|
7853
7853
|
|
|
7854
|
+
// src/api/deprecation.ts
|
|
7855
|
+
var DEPRECATION_MESSAGE_HEADER = "zapier-sdk-deprecation-message";
|
|
7856
|
+
var DEPRECATION_ID_HEADER = "zapier-sdk-deprecation-id";
|
|
7857
|
+
var DEPRECATION_NOTICE_EVENT = "api:deprecation_notice";
|
|
7858
|
+
var displayedNoticeIds = /* @__PURE__ */ new Set();
|
|
7859
|
+
function handleDeprecationNotice({
|
|
7860
|
+
response,
|
|
7861
|
+
canSendDeprecationMessaging,
|
|
7862
|
+
onEvent
|
|
7863
|
+
}) {
|
|
7864
|
+
try {
|
|
7865
|
+
sniffDeprecationNotice({ response, canSendDeprecationMessaging, onEvent });
|
|
7866
|
+
} catch {
|
|
7867
|
+
}
|
|
7868
|
+
}
|
|
7869
|
+
function sniffDeprecationNotice({
|
|
7870
|
+
response,
|
|
7871
|
+
canSendDeprecationMessaging,
|
|
7872
|
+
onEvent
|
|
7873
|
+
}) {
|
|
7874
|
+
if (!canSendDeprecationMessaging) return;
|
|
7875
|
+
const message = response.headers?.get(DEPRECATION_MESSAGE_HEADER);
|
|
7876
|
+
if (!message) return;
|
|
7877
|
+
const id = response.headers.get(DEPRECATION_ID_HEADER) ?? message;
|
|
7878
|
+
if (!displayedNoticeIds.has(id)) {
|
|
7879
|
+
displayedNoticeIds.add(id);
|
|
7880
|
+
console.warn(`[zapier-sdk] Deprecation: ${message}`);
|
|
7881
|
+
}
|
|
7882
|
+
if (onEvent) {
|
|
7883
|
+
const payload = { id, message };
|
|
7884
|
+
const deprecation = parseDeprecationDate(
|
|
7885
|
+
response.headers.get("deprecation")
|
|
7886
|
+
);
|
|
7887
|
+
if (deprecation !== void 0) payload.deprecation = deprecation;
|
|
7888
|
+
const maybePromise = onEvent({
|
|
7889
|
+
type: DEPRECATION_NOTICE_EVENT,
|
|
7890
|
+
payload: { ...payload },
|
|
7891
|
+
timestamp: Date.now()
|
|
7892
|
+
});
|
|
7893
|
+
if (isPromiseLike(maybePromise)) {
|
|
7894
|
+
void Promise.resolve(maybePromise).catch(() => {
|
|
7895
|
+
});
|
|
7896
|
+
}
|
|
7897
|
+
}
|
|
7898
|
+
}
|
|
7899
|
+
function isPromiseLike(value) {
|
|
7900
|
+
return (typeof value === "object" || typeof value === "function") && value !== null && "then" in value && typeof value.then === "function";
|
|
7901
|
+
}
|
|
7902
|
+
function parseDeprecationDate(value) {
|
|
7903
|
+
if (!value) return void 0;
|
|
7904
|
+
const match = /^@(-?\d+)$/.exec(value.trim());
|
|
7905
|
+
if (!match) return void 0;
|
|
7906
|
+
return Number(match[1]) * 1e3;
|
|
7907
|
+
}
|
|
7908
|
+
|
|
7854
7909
|
// src/sdk-version.ts
|
|
7855
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
7910
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.79.0" : void 0) || "unknown";
|
|
7856
7911
|
|
|
7857
7912
|
// src/utils/open-url.ts
|
|
7858
7913
|
var nodePrefix = "node:";
|
|
@@ -7964,6 +8019,30 @@ var PollApprovalResponseSchema = z.object({
|
|
|
7964
8019
|
reason: z.string().optional()
|
|
7965
8020
|
});
|
|
7966
8021
|
var APPROVAL_MAX_POLLING_INTERVAL_MS = 5e3;
|
|
8022
|
+
function validateSdkPath(path) {
|
|
8023
|
+
if (!path.startsWith("/") || path.startsWith("//")) {
|
|
8024
|
+
throw new ZapierValidationError(
|
|
8025
|
+
`fetch expects a path starting with a single '/', got: ${path}`
|
|
8026
|
+
);
|
|
8027
|
+
}
|
|
8028
|
+
}
|
|
8029
|
+
function findPathConfigEntries({
|
|
8030
|
+
path,
|
|
8031
|
+
matchResolvedGatewayPath = false
|
|
8032
|
+
}) {
|
|
8033
|
+
const pathSegments = path.split("/").filter(Boolean);
|
|
8034
|
+
return Object.entries(pathConfig).filter(([configPath, config]) => {
|
|
8035
|
+
if (!matchResolvedGatewayPath) {
|
|
8036
|
+
return path === configPath || path.startsWith(`${configPath}/`);
|
|
8037
|
+
}
|
|
8038
|
+
const prefixSegments = (config.pathPrefix ?? configPath).split("/").filter(Boolean);
|
|
8039
|
+
return pathSegments.some(
|
|
8040
|
+
(_, startIndex) => prefixSegments.every(
|
|
8041
|
+
(segment, offset) => pathSegments[startIndex + offset] === segment
|
|
8042
|
+
)
|
|
8043
|
+
);
|
|
8044
|
+
}).map(([configPath, config]) => ({ configPath, config }));
|
|
8045
|
+
}
|
|
7967
8046
|
function parseRateLimitHeaders(response) {
|
|
7968
8047
|
const info = {};
|
|
7969
8048
|
const retryAfter = response.headers.get("retry-after");
|
|
@@ -8008,8 +8087,18 @@ var pathConfig = {
|
|
|
8008
8087
|
// e.g. /relay -> https://sdkapi.zapier.com/api/v0/sdk/relay/...
|
|
8009
8088
|
"/relay": {
|
|
8010
8089
|
authHeader: "X-Relay-Authorization",
|
|
8011
|
-
pathPrefix: "/api/v0/sdk/relay"
|
|
8090
|
+
pathPrefix: "/api/v0/sdk/relay",
|
|
8091
|
+
omitDeprecationMessaging: true
|
|
8092
|
+
},
|
|
8093
|
+
// The concrete gateway form of the relay route. Callers that pass the
|
|
8094
|
+
// already-prefixed path reach the same third-party upstreams, so it must
|
|
8095
|
+
// classify as relay too; without this entry it would match nothing and
|
|
8096
|
+
// sniff deprecation headers off a relay response.
|
|
8097
|
+
"/api/v0/sdk/relay": {
|
|
8098
|
+
omitDeprecationMessaging: true
|
|
8012
8099
|
},
|
|
8100
|
+
// Concrete sdkapi routes that do not live behind /api/v0/sdk/<service>.
|
|
8101
|
+
"/api/v0": {},
|
|
8013
8102
|
// e.g. /zapier -> https://sdkapi.zapier.com/api/v0/sdk/zapier/...
|
|
8014
8103
|
"/zapier": {
|
|
8015
8104
|
authHeader: "Authorization",
|
|
@@ -8158,17 +8247,50 @@ var ZapierApiClient = class {
|
|
|
8158
8247
|
* parallelism into the queue.
|
|
8159
8248
|
*/
|
|
8160
8249
|
this.rawFetch = async (path, init) => {
|
|
8161
|
-
|
|
8162
|
-
throw new ZapierValidationError(
|
|
8163
|
-
`fetch expects a path starting with '/', got: ${path}`
|
|
8164
|
-
);
|
|
8165
|
-
}
|
|
8250
|
+
validateSdkPath(path);
|
|
8166
8251
|
const { url, pathConfig: pathConfig2 } = this.buildUrl(path, init?.searchParams);
|
|
8167
8252
|
return this.withSemaphore(
|
|
8168
8253
|
{ url, method: init?.method ?? "GET", signal: init?.signal },
|
|
8169
8254
|
() => this.rawFetchUrl(url, init, pathConfig2)
|
|
8170
8255
|
);
|
|
8171
8256
|
};
|
|
8257
|
+
this.runApprovalFetchLoop = async ({
|
|
8258
|
+
path,
|
|
8259
|
+
init,
|
|
8260
|
+
maxRetries,
|
|
8261
|
+
approvalMode,
|
|
8262
|
+
approvalContext
|
|
8263
|
+
}) => {
|
|
8264
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
8265
|
+
const response = await this.rawFetch(path, init);
|
|
8266
|
+
if (response.status !== 403) {
|
|
8267
|
+
return { response };
|
|
8268
|
+
}
|
|
8269
|
+
const errorType = response.headers.get("x-zapier-error-type");
|
|
8270
|
+
if (errorType !== "approval_required") {
|
|
8271
|
+
return { response };
|
|
8272
|
+
}
|
|
8273
|
+
if (attempt === maxRetries) {
|
|
8274
|
+
return { response };
|
|
8275
|
+
}
|
|
8276
|
+
if (approvalMode === "disabled") {
|
|
8277
|
+
return { response };
|
|
8278
|
+
}
|
|
8279
|
+
if (!approvalContext) {
|
|
8280
|
+
return { response };
|
|
8281
|
+
}
|
|
8282
|
+
try {
|
|
8283
|
+
await this.runOneApprovalRound(
|
|
8284
|
+
approvalContext,
|
|
8285
|
+
approvalMode,
|
|
8286
|
+
init?.signal ?? void 0
|
|
8287
|
+
);
|
|
8288
|
+
} catch (error) {
|
|
8289
|
+
return { response, approvalRoundError: error };
|
|
8290
|
+
}
|
|
8291
|
+
}
|
|
8292
|
+
throw new ZapierApiError("Approval retry loop ended unexpectedly");
|
|
8293
|
+
};
|
|
8172
8294
|
/**
|
|
8173
8295
|
* Approval-aware HTTP fetch.
|
|
8174
8296
|
*
|
|
@@ -8198,46 +8320,62 @@ var ZapierApiClient = class {
|
|
|
8198
8320
|
* `max_retries_exceeded` instead.
|
|
8199
8321
|
*/
|
|
8200
8322
|
this.fetch = async (path, init) => {
|
|
8323
|
+
validateSdkPath(path);
|
|
8201
8324
|
const maxRetries = this.options.maxApprovalRetries ?? DEFAULT_MAX_APPROVAL_RETRIES;
|
|
8202
|
-
|
|
8203
|
-
|
|
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
|
-
|
|
8325
|
+
const { canSendDeprecationMessaging } = this.buildUrl(
|
|
8326
|
+
path,
|
|
8327
|
+
init?.searchParams
|
|
8328
|
+
);
|
|
8329
|
+
const approvalMode = this.options.approvalMode ?? getZapierApprovalMode() ?? getZapierDefaultApprovalMode();
|
|
8330
|
+
const approvalContext = init?.approvalContext;
|
|
8331
|
+
const { response, approvalRoundError } = await this.runApprovalFetchLoop({
|
|
8332
|
+
path,
|
|
8333
|
+
init,
|
|
8334
|
+
maxRetries,
|
|
8335
|
+
approvalMode,
|
|
8336
|
+
approvalContext
|
|
8337
|
+
});
|
|
8338
|
+
handleDeprecationNotice({
|
|
8339
|
+
response,
|
|
8340
|
+
canSendDeprecationMessaging,
|
|
8341
|
+
onEvent: this.options.onEvent
|
|
8342
|
+
});
|
|
8343
|
+
if (response.status !== 403) {
|
|
8344
|
+
return response;
|
|
8345
|
+
}
|
|
8346
|
+
const errorType = response.headers.get("x-zapier-error-type");
|
|
8347
|
+
if (errorType === "request_denied_by_policy") {
|
|
8348
|
+
const { data } = await this.parseResult(response);
|
|
8349
|
+
const { message, errors } = this.parseErrorResponse({
|
|
8350
|
+
status: response.status,
|
|
8351
|
+
statusText: response.statusText,
|
|
8352
|
+
data
|
|
8353
|
+
});
|
|
8354
|
+
throw new ZapierApprovalError(
|
|
8355
|
+
message || "Request explicitly denied by policy",
|
|
8356
|
+
{
|
|
8357
|
+
status: "policy_denied",
|
|
8358
|
+
statusCode: response.status,
|
|
8359
|
+
errors
|
|
8360
|
+
}
|
|
8361
|
+
);
|
|
8362
|
+
}
|
|
8363
|
+
if (errorType !== "approval_required") {
|
|
8364
|
+
return response;
|
|
8365
|
+
}
|
|
8366
|
+
if (approvalRoundError) {
|
|
8367
|
+
throw approvalRoundError;
|
|
8368
|
+
}
|
|
8369
|
+
if (approvalMode === "disabled") {
|
|
8370
|
+
throw new ZapierApprovalError(
|
|
8371
|
+
"Approvals are disabled. Set approvalMode to 'poll' or 'throw' (or ZAPIER_APPROVAL_MODE) to enable.",
|
|
8372
|
+
{ status: "approval_required" }
|
|
8373
|
+
);
|
|
8374
|
+
}
|
|
8375
|
+
if (!approvalContext) {
|
|
8376
|
+
throw new ZapierApiError(
|
|
8377
|
+
`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.`,
|
|
8378
|
+
{ statusCode: 403 }
|
|
8241
8379
|
);
|
|
8242
8380
|
}
|
|
8243
8381
|
throw new ZapierApprovalError(
|
|
@@ -8499,40 +8637,60 @@ var ZapierApiClient = class {
|
|
|
8499
8637
|
}
|
|
8500
8638
|
// Apply any special routing logic for configured paths.
|
|
8501
8639
|
applyPathConfiguration(path) {
|
|
8502
|
-
const
|
|
8503
|
-
|
|
8504
|
-
)
|
|
8505
|
-
|
|
8640
|
+
const matchingPathEntries = findPathConfigEntries({ path });
|
|
8641
|
+
const routingMatch = matchingPathEntries[0];
|
|
8642
|
+
const buildResult = (url2) => {
|
|
8643
|
+
const resolvedPathEntries = findPathConfigEntries({
|
|
8644
|
+
path: url2.pathname,
|
|
8645
|
+
matchResolvedGatewayPath: true
|
|
8646
|
+
});
|
|
8647
|
+
const deprecationPathMatches = [
|
|
8648
|
+
...matchingPathEntries,
|
|
8649
|
+
...resolvedPathEntries
|
|
8650
|
+
];
|
|
8651
|
+
const canSendDeprecationMessaging = deprecationPathMatches.length > 0 && deprecationPathMatches.every(
|
|
8652
|
+
({ config }) => config.omitDeprecationMessaging !== true
|
|
8653
|
+
);
|
|
8654
|
+
return {
|
|
8655
|
+
url: url2,
|
|
8656
|
+
pathConfig: routingMatch?.config,
|
|
8657
|
+
canSendDeprecationMessaging
|
|
8658
|
+
};
|
|
8659
|
+
};
|
|
8506
8660
|
let finalPath = path;
|
|
8507
|
-
if (config
|
|
8508
|
-
const pathWithoutPrefix = path.slice(
|
|
8509
|
-
finalPath = `${config.pathPrefix}${pathWithoutPrefix}`;
|
|
8661
|
+
if (routingMatch?.config.pathPrefix) {
|
|
8662
|
+
const pathWithoutPrefix = path.slice(routingMatch.configPath.length) || "/";
|
|
8663
|
+
finalPath = `${routingMatch.config.pathPrefix}${pathWithoutPrefix}`;
|
|
8510
8664
|
}
|
|
8511
8665
|
const zapierBaseUrl = getZapierBaseUrl(this.options.baseUrl);
|
|
8512
8666
|
if (zapierBaseUrl === this.options.baseUrl.replace(/\/$/, "")) {
|
|
8513
8667
|
const originalBaseUrl = new URL(this.options.baseUrl);
|
|
8514
8668
|
const finalBaseUrl = `https://sdkapi.${originalBaseUrl.hostname}`;
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
pathConfig: config
|
|
8518
|
-
};
|
|
8669
|
+
const url2 = new URL(finalPath, finalBaseUrl);
|
|
8670
|
+
return buildResult(url2);
|
|
8519
8671
|
}
|
|
8520
8672
|
const baseUrl = new URL(this.options.baseUrl);
|
|
8521
8673
|
const basePath = baseUrl.pathname.replace(/\/$/, "");
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
pathConfig: config
|
|
8525
|
-
};
|
|
8674
|
+
const url = new URL(basePath + finalPath, baseUrl.origin);
|
|
8675
|
+
return buildResult(url);
|
|
8526
8676
|
}
|
|
8527
8677
|
// Helper to build full URLs and return routing info
|
|
8528
8678
|
buildUrl(path, searchParams) {
|
|
8529
|
-
const {
|
|
8679
|
+
const {
|
|
8680
|
+
url,
|
|
8681
|
+
pathConfig: config,
|
|
8682
|
+
canSendDeprecationMessaging
|
|
8683
|
+
} = this.applyPathConfiguration(path);
|
|
8530
8684
|
if (searchParams) {
|
|
8531
8685
|
Object.entries(searchParams).forEach(([key, value]) => {
|
|
8532
8686
|
url.searchParams.set(key, value);
|
|
8533
8687
|
});
|
|
8534
8688
|
}
|
|
8535
|
-
return {
|
|
8689
|
+
return {
|
|
8690
|
+
url: url.toString(),
|
|
8691
|
+
pathConfig: config,
|
|
8692
|
+
canSendDeprecationMessaging
|
|
8693
|
+
};
|
|
8536
8694
|
}
|
|
8537
8695
|
// Helper to build headers
|
|
8538
8696
|
async buildHeaders(options = {}, pathConfig2) {
|
|
@@ -11249,4 +11407,4 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
11249
11407
|
return {};
|
|
11250
11408
|
});
|
|
11251
11409
|
|
|
11252
|
-
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, 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, addPlugin, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk, createZapierSdkStack, createZapierSdkWithoutRegistry, dangerousContextPlugin, declareMethod, declareProperty, defineLegacyMerge, defineMethod, definePlugin, defineProperty, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierSdkPlugin };
|
|
11410
|
+
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, 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, addPlugin, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk, createZapierSdkStack, createZapierSdkWithoutRegistry, dangerousContextPlugin, declareMethod, declareProperty, defineLegacyMerge, defineMethod, definePlugin, defineProperty, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierSdkPlugin };
|