@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/experimental.mjs
CHANGED
|
@@ -4318,8 +4318,63 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
4318
4318
|
}
|
|
4319
4319
|
}
|
|
4320
4320
|
|
|
4321
|
+
// src/api/deprecation.ts
|
|
4322
|
+
var DEPRECATION_MESSAGE_HEADER = "zapier-sdk-deprecation-message";
|
|
4323
|
+
var DEPRECATION_ID_HEADER = "zapier-sdk-deprecation-id";
|
|
4324
|
+
var DEPRECATION_NOTICE_EVENT = "api:deprecation_notice";
|
|
4325
|
+
var displayedNoticeIds = /* @__PURE__ */ new Set();
|
|
4326
|
+
function handleDeprecationNotice({
|
|
4327
|
+
response,
|
|
4328
|
+
canSendDeprecationMessaging,
|
|
4329
|
+
onEvent
|
|
4330
|
+
}) {
|
|
4331
|
+
try {
|
|
4332
|
+
sniffDeprecationNotice({ response, canSendDeprecationMessaging, onEvent });
|
|
4333
|
+
} catch {
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
function sniffDeprecationNotice({
|
|
4337
|
+
response,
|
|
4338
|
+
canSendDeprecationMessaging,
|
|
4339
|
+
onEvent
|
|
4340
|
+
}) {
|
|
4341
|
+
if (!canSendDeprecationMessaging) return;
|
|
4342
|
+
const message = response.headers?.get(DEPRECATION_MESSAGE_HEADER);
|
|
4343
|
+
if (!message) return;
|
|
4344
|
+
const id = response.headers.get(DEPRECATION_ID_HEADER) ?? message;
|
|
4345
|
+
if (!displayedNoticeIds.has(id)) {
|
|
4346
|
+
displayedNoticeIds.add(id);
|
|
4347
|
+
console.warn(`[zapier-sdk] Deprecation: ${message}`);
|
|
4348
|
+
}
|
|
4349
|
+
if (onEvent) {
|
|
4350
|
+
const payload = { id, message };
|
|
4351
|
+
const deprecation = parseDeprecationDate(
|
|
4352
|
+
response.headers.get("deprecation")
|
|
4353
|
+
);
|
|
4354
|
+
if (deprecation !== void 0) payload.deprecation = deprecation;
|
|
4355
|
+
const maybePromise = onEvent({
|
|
4356
|
+
type: DEPRECATION_NOTICE_EVENT,
|
|
4357
|
+
payload: { ...payload },
|
|
4358
|
+
timestamp: Date.now()
|
|
4359
|
+
});
|
|
4360
|
+
if (isPromiseLike(maybePromise)) {
|
|
4361
|
+
void Promise.resolve(maybePromise).catch(() => {
|
|
4362
|
+
});
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4366
|
+
function isPromiseLike(value) {
|
|
4367
|
+
return (typeof value === "object" || typeof value === "function") && value !== null && "then" in value && typeof value.then === "function";
|
|
4368
|
+
}
|
|
4369
|
+
function parseDeprecationDate(value) {
|
|
4370
|
+
if (!value) return void 0;
|
|
4371
|
+
const match = /^@(-?\d+)$/.exec(value.trim());
|
|
4372
|
+
if (!match) return void 0;
|
|
4373
|
+
return Number(match[1]) * 1e3;
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4321
4376
|
// src/sdk-version.ts
|
|
4322
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
4377
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.79.0" : void 0) || "unknown";
|
|
4323
4378
|
|
|
4324
4379
|
// src/utils/open-url.ts
|
|
4325
4380
|
var nodePrefix = "node:";
|
|
@@ -4431,6 +4486,30 @@ var PollApprovalResponseSchema = z.object({
|
|
|
4431
4486
|
reason: z.string().optional()
|
|
4432
4487
|
});
|
|
4433
4488
|
var APPROVAL_MAX_POLLING_INTERVAL_MS = 5e3;
|
|
4489
|
+
function validateSdkPath(path) {
|
|
4490
|
+
if (!path.startsWith("/") || path.startsWith("//")) {
|
|
4491
|
+
throw new ZapierValidationError(
|
|
4492
|
+
`fetch expects a path starting with a single '/', got: ${path}`
|
|
4493
|
+
);
|
|
4494
|
+
}
|
|
4495
|
+
}
|
|
4496
|
+
function findPathConfigEntries({
|
|
4497
|
+
path,
|
|
4498
|
+
matchResolvedGatewayPath = false
|
|
4499
|
+
}) {
|
|
4500
|
+
const pathSegments = path.split("/").filter(Boolean);
|
|
4501
|
+
return Object.entries(pathConfig).filter(([configPath, config]) => {
|
|
4502
|
+
if (!matchResolvedGatewayPath) {
|
|
4503
|
+
return path === configPath || path.startsWith(`${configPath}/`);
|
|
4504
|
+
}
|
|
4505
|
+
const prefixSegments = (config.pathPrefix ?? configPath).split("/").filter(Boolean);
|
|
4506
|
+
return pathSegments.some(
|
|
4507
|
+
(_, startIndex) => prefixSegments.every(
|
|
4508
|
+
(segment, offset) => pathSegments[startIndex + offset] === segment
|
|
4509
|
+
)
|
|
4510
|
+
);
|
|
4511
|
+
}).map(([configPath, config]) => ({ configPath, config }));
|
|
4512
|
+
}
|
|
4434
4513
|
function parseRateLimitHeaders(response) {
|
|
4435
4514
|
const info = {};
|
|
4436
4515
|
const retryAfter = response.headers.get("retry-after");
|
|
@@ -4475,8 +4554,18 @@ var pathConfig = {
|
|
|
4475
4554
|
// e.g. /relay -> https://sdkapi.zapier.com/api/v0/sdk/relay/...
|
|
4476
4555
|
"/relay": {
|
|
4477
4556
|
authHeader: "X-Relay-Authorization",
|
|
4478
|
-
pathPrefix: "/api/v0/sdk/relay"
|
|
4557
|
+
pathPrefix: "/api/v0/sdk/relay",
|
|
4558
|
+
omitDeprecationMessaging: true
|
|
4559
|
+
},
|
|
4560
|
+
// The concrete gateway form of the relay route. Callers that pass the
|
|
4561
|
+
// already-prefixed path reach the same third-party upstreams, so it must
|
|
4562
|
+
// classify as relay too; without this entry it would match nothing and
|
|
4563
|
+
// sniff deprecation headers off a relay response.
|
|
4564
|
+
"/api/v0/sdk/relay": {
|
|
4565
|
+
omitDeprecationMessaging: true
|
|
4479
4566
|
},
|
|
4567
|
+
// Concrete sdkapi routes that do not live behind /api/v0/sdk/<service>.
|
|
4568
|
+
"/api/v0": {},
|
|
4480
4569
|
// e.g. /zapier -> https://sdkapi.zapier.com/api/v0/sdk/zapier/...
|
|
4481
4570
|
"/zapier": {
|
|
4482
4571
|
authHeader: "Authorization",
|
|
@@ -4625,17 +4714,50 @@ var ZapierApiClient = class {
|
|
|
4625
4714
|
* parallelism into the queue.
|
|
4626
4715
|
*/
|
|
4627
4716
|
this.rawFetch = async (path, init) => {
|
|
4628
|
-
|
|
4629
|
-
throw new ZapierValidationError(
|
|
4630
|
-
`fetch expects a path starting with '/', got: ${path}`
|
|
4631
|
-
);
|
|
4632
|
-
}
|
|
4717
|
+
validateSdkPath(path);
|
|
4633
4718
|
const { url, pathConfig: pathConfig2 } = this.buildUrl(path, init?.searchParams);
|
|
4634
4719
|
return this.withSemaphore(
|
|
4635
4720
|
{ url, method: init?.method ?? "GET", signal: init?.signal },
|
|
4636
4721
|
() => this.rawFetchUrl(url, init, pathConfig2)
|
|
4637
4722
|
);
|
|
4638
4723
|
};
|
|
4724
|
+
this.runApprovalFetchLoop = async ({
|
|
4725
|
+
path,
|
|
4726
|
+
init,
|
|
4727
|
+
maxRetries,
|
|
4728
|
+
approvalMode,
|
|
4729
|
+
approvalContext
|
|
4730
|
+
}) => {
|
|
4731
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
4732
|
+
const response = await this.rawFetch(path, init);
|
|
4733
|
+
if (response.status !== 403) {
|
|
4734
|
+
return { response };
|
|
4735
|
+
}
|
|
4736
|
+
const errorType = response.headers.get("x-zapier-error-type");
|
|
4737
|
+
if (errorType !== "approval_required") {
|
|
4738
|
+
return { response };
|
|
4739
|
+
}
|
|
4740
|
+
if (attempt === maxRetries) {
|
|
4741
|
+
return { response };
|
|
4742
|
+
}
|
|
4743
|
+
if (approvalMode === "disabled") {
|
|
4744
|
+
return { response };
|
|
4745
|
+
}
|
|
4746
|
+
if (!approvalContext) {
|
|
4747
|
+
return { response };
|
|
4748
|
+
}
|
|
4749
|
+
try {
|
|
4750
|
+
await this.runOneApprovalRound(
|
|
4751
|
+
approvalContext,
|
|
4752
|
+
approvalMode,
|
|
4753
|
+
init?.signal ?? void 0
|
|
4754
|
+
);
|
|
4755
|
+
} catch (error) {
|
|
4756
|
+
return { response, approvalRoundError: error };
|
|
4757
|
+
}
|
|
4758
|
+
}
|
|
4759
|
+
throw new ZapierApiError("Approval retry loop ended unexpectedly");
|
|
4760
|
+
};
|
|
4639
4761
|
/**
|
|
4640
4762
|
* Approval-aware HTTP fetch.
|
|
4641
4763
|
*
|
|
@@ -4665,46 +4787,62 @@ var ZapierApiClient = class {
|
|
|
4665
4787
|
* `max_retries_exceeded` instead.
|
|
4666
4788
|
*/
|
|
4667
4789
|
this.fetch = async (path, init) => {
|
|
4790
|
+
validateSdkPath(path);
|
|
4668
4791
|
const maxRetries = this.options.maxApprovalRetries ?? DEFAULT_MAX_APPROVAL_RETRIES;
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
}
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4792
|
+
const { canSendDeprecationMessaging } = this.buildUrl(
|
|
4793
|
+
path,
|
|
4794
|
+
init?.searchParams
|
|
4795
|
+
);
|
|
4796
|
+
const approvalMode = this.options.approvalMode ?? getZapierApprovalMode() ?? getZapierDefaultApprovalMode();
|
|
4797
|
+
const approvalContext = init?.approvalContext;
|
|
4798
|
+
const { response, approvalRoundError } = await this.runApprovalFetchLoop({
|
|
4799
|
+
path,
|
|
4800
|
+
init,
|
|
4801
|
+
maxRetries,
|
|
4802
|
+
approvalMode,
|
|
4803
|
+
approvalContext
|
|
4804
|
+
});
|
|
4805
|
+
handleDeprecationNotice({
|
|
4806
|
+
response,
|
|
4807
|
+
canSendDeprecationMessaging,
|
|
4808
|
+
onEvent: this.options.onEvent
|
|
4809
|
+
});
|
|
4810
|
+
if (response.status !== 403) {
|
|
4811
|
+
return response;
|
|
4812
|
+
}
|
|
4813
|
+
const errorType = response.headers.get("x-zapier-error-type");
|
|
4814
|
+
if (errorType === "request_denied_by_policy") {
|
|
4815
|
+
const { data } = await this.parseResult(response);
|
|
4816
|
+
const { message, errors } = this.parseErrorResponse({
|
|
4817
|
+
status: response.status,
|
|
4818
|
+
statusText: response.statusText,
|
|
4819
|
+
data
|
|
4820
|
+
});
|
|
4821
|
+
throw new ZapierApprovalError(
|
|
4822
|
+
message || "Request explicitly denied by policy",
|
|
4823
|
+
{
|
|
4824
|
+
status: "policy_denied",
|
|
4825
|
+
statusCode: response.status,
|
|
4826
|
+
errors
|
|
4827
|
+
}
|
|
4828
|
+
);
|
|
4829
|
+
}
|
|
4830
|
+
if (errorType !== "approval_required") {
|
|
4831
|
+
return response;
|
|
4832
|
+
}
|
|
4833
|
+
if (approvalRoundError) {
|
|
4834
|
+
throw approvalRoundError;
|
|
4835
|
+
}
|
|
4836
|
+
if (approvalMode === "disabled") {
|
|
4837
|
+
throw new ZapierApprovalError(
|
|
4838
|
+
"Approvals are disabled. Set approvalMode to 'poll' or 'throw' (or ZAPIER_APPROVAL_MODE) to enable.",
|
|
4839
|
+
{ status: "approval_required" }
|
|
4840
|
+
);
|
|
4841
|
+
}
|
|
4842
|
+
if (!approvalContext) {
|
|
4843
|
+
throw new ZapierApiError(
|
|
4844
|
+
`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.`,
|
|
4845
|
+
{ statusCode: 403 }
|
|
4708
4846
|
);
|
|
4709
4847
|
}
|
|
4710
4848
|
throw new ZapierApprovalError(
|
|
@@ -4966,40 +5104,60 @@ var ZapierApiClient = class {
|
|
|
4966
5104
|
}
|
|
4967
5105
|
// Apply any special routing logic for configured paths.
|
|
4968
5106
|
applyPathConfiguration(path) {
|
|
4969
|
-
const
|
|
4970
|
-
|
|
4971
|
-
)
|
|
4972
|
-
|
|
5107
|
+
const matchingPathEntries = findPathConfigEntries({ path });
|
|
5108
|
+
const routingMatch = matchingPathEntries[0];
|
|
5109
|
+
const buildResult = (url2) => {
|
|
5110
|
+
const resolvedPathEntries = findPathConfigEntries({
|
|
5111
|
+
path: url2.pathname,
|
|
5112
|
+
matchResolvedGatewayPath: true
|
|
5113
|
+
});
|
|
5114
|
+
const deprecationPathMatches = [
|
|
5115
|
+
...matchingPathEntries,
|
|
5116
|
+
...resolvedPathEntries
|
|
5117
|
+
];
|
|
5118
|
+
const canSendDeprecationMessaging = deprecationPathMatches.length > 0 && deprecationPathMatches.every(
|
|
5119
|
+
({ config }) => config.omitDeprecationMessaging !== true
|
|
5120
|
+
);
|
|
5121
|
+
return {
|
|
5122
|
+
url: url2,
|
|
5123
|
+
pathConfig: routingMatch?.config,
|
|
5124
|
+
canSendDeprecationMessaging
|
|
5125
|
+
};
|
|
5126
|
+
};
|
|
4973
5127
|
let finalPath = path;
|
|
4974
|
-
if (config
|
|
4975
|
-
const pathWithoutPrefix = path.slice(
|
|
4976
|
-
finalPath = `${config.pathPrefix}${pathWithoutPrefix}`;
|
|
5128
|
+
if (routingMatch?.config.pathPrefix) {
|
|
5129
|
+
const pathWithoutPrefix = path.slice(routingMatch.configPath.length) || "/";
|
|
5130
|
+
finalPath = `${routingMatch.config.pathPrefix}${pathWithoutPrefix}`;
|
|
4977
5131
|
}
|
|
4978
5132
|
const zapierBaseUrl = getZapierBaseUrl(this.options.baseUrl);
|
|
4979
5133
|
if (zapierBaseUrl === this.options.baseUrl.replace(/\/$/, "")) {
|
|
4980
5134
|
const originalBaseUrl = new URL(this.options.baseUrl);
|
|
4981
5135
|
const finalBaseUrl = `https://sdkapi.${originalBaseUrl.hostname}`;
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
pathConfig: config
|
|
4985
|
-
};
|
|
5136
|
+
const url2 = new URL(finalPath, finalBaseUrl);
|
|
5137
|
+
return buildResult(url2);
|
|
4986
5138
|
}
|
|
4987
5139
|
const baseUrl = new URL(this.options.baseUrl);
|
|
4988
5140
|
const basePath = baseUrl.pathname.replace(/\/$/, "");
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
pathConfig: config
|
|
4992
|
-
};
|
|
5141
|
+
const url = new URL(basePath + finalPath, baseUrl.origin);
|
|
5142
|
+
return buildResult(url);
|
|
4993
5143
|
}
|
|
4994
5144
|
// Helper to build full URLs and return routing info
|
|
4995
5145
|
buildUrl(path, searchParams) {
|
|
4996
|
-
const {
|
|
5146
|
+
const {
|
|
5147
|
+
url,
|
|
5148
|
+
pathConfig: config,
|
|
5149
|
+
canSendDeprecationMessaging
|
|
5150
|
+
} = this.applyPathConfiguration(path);
|
|
4997
5151
|
if (searchParams) {
|
|
4998
5152
|
Object.entries(searchParams).forEach(([key, value]) => {
|
|
4999
5153
|
url.searchParams.set(key, value);
|
|
5000
5154
|
});
|
|
5001
5155
|
}
|
|
5002
|
-
return {
|
|
5156
|
+
return {
|
|
5157
|
+
url: url.toString(),
|
|
5158
|
+
pathConfig: config,
|
|
5159
|
+
canSendDeprecationMessaging
|
|
5160
|
+
};
|
|
5003
5161
|
}
|
|
5004
5162
|
// Helper to build headers
|
|
5005
5163
|
async buildHeaders(options = {}, pathConfig2) {
|
|
@@ -14184,4 +14342,4 @@ function createZapierSdk2(options = {}) {
|
|
|
14184
14342
|
);
|
|
14185
14343
|
}
|
|
14186
14344
|
|
|
14187
|
-
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, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as 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 };
|
|
14345
|
+
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, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as 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 };
|
|
@@ -3631,6 +3631,50 @@ declare const createZapierApi: (options: ApiClientOptions) => ApiClient;
|
|
|
3631
3631
|
*/
|
|
3632
3632
|
declare function isPermanentHttpError(err: unknown): boolean;
|
|
3633
3633
|
|
|
3634
|
+
/**
|
|
3635
|
+
* SDK deprecation notices from API responses.
|
|
3636
|
+
*
|
|
3637
|
+
* Trusted Zapier services tell SDK consumers about upcoming breakages via
|
|
3638
|
+
* response headers: `zapier-sdk-deprecation-message` carries the exact text
|
|
3639
|
+
* to display, `zapier-sdk-deprecation-id` is a stable identifier for deduping
|
|
3640
|
+
* (the message text is the fallback key), and the standard RFC 9745
|
|
3641
|
+
* `Deprecation` header carries machine-readable timing that is forwarded on
|
|
3642
|
+
* the emitted event but never displayed on its own.
|
|
3643
|
+
*
|
|
3644
|
+
* Trust model: Zapier-owned services may write these headers, and Relay
|
|
3645
|
+
* responses are never sniffed at all, so a third-party API can never print
|
|
3646
|
+
* text in a user's terminal through this path — even if a relay deployment
|
|
3647
|
+
* fails to strip the headers. Eligibility is decided by explicit client route
|
|
3648
|
+
* config before sniffing: matched routes are eligible by default, Relay routes
|
|
3649
|
+
* opt out with `omitDeprecationMessaging`, and the resolved gateway pathname
|
|
3650
|
+
* is matched against the configured gateway prefixes so custom baseUrls that
|
|
3651
|
+
* already point at Relay stay excluded.
|
|
3652
|
+
*
|
|
3653
|
+
* The configured baseUrl origin itself is deliberately NOT origin-checked
|
|
3654
|
+
* here. The base URL is the client's trust anchor by definition — it
|
|
3655
|
+
* receives the caller's credentials and controls every byte the SDK
|
|
3656
|
+
* displays (error messages, item titles, ...), so a notice adds nothing an
|
|
3657
|
+
* arbitrary origin couldn't already do, while an origin allowlist would
|
|
3658
|
+
* break localhost, staging, and self-hosted gateway deployments that
|
|
3659
|
+
* legitimately run the version gate or proxy trusted Zapier services. Relay
|
|
3660
|
+
* is different precisely because relay upstreams are NOT user-designated
|
|
3661
|
+
* origins: they're third parties reached through normal, trusted Zapier usage.
|
|
3662
|
+
*/
|
|
3663
|
+
|
|
3664
|
+
declare const DEPRECATION_NOTICE_EVENT = "api:deprecation_notice";
|
|
3665
|
+
interface DeprecationNoticePayload {
|
|
3666
|
+
/** Stable notice identifier; the message text when the id header is absent. */
|
|
3667
|
+
id: string;
|
|
3668
|
+
/** Exact server-composed text to display. */
|
|
3669
|
+
message: string;
|
|
3670
|
+
/**
|
|
3671
|
+
* RFC 9745 deprecation date as Unix epoch milliseconds, parsed from a
|
|
3672
|
+
* `Deprecation: @<seconds>` header. Omitted when the header is absent or
|
|
3673
|
+
* not a structured-field date.
|
|
3674
|
+
*/
|
|
3675
|
+
deprecation?: number;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3634
3678
|
/**
|
|
3635
3679
|
* Zapier API Client Module
|
|
3636
3680
|
*
|
|
@@ -16546,4 +16590,4 @@ declare const registryPlugin: (sdk: {
|
|
|
16546
16590
|
};
|
|
16547
16591
|
}) => {};
|
|
16548
16592
|
|
|
16549
|
-
export { type Connection as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetConnectionStartUrlItem as G, type Action as H, type App as I, type Field as J, type Choice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type ActionExecutionResult as Q, type ResolvedAppLocator as R, type SdkContext as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionField as V, type WaitForNewConnectionItem as W, type ActionFieldChoice as X, type NeedsRequest as Y, type ZapierSdkOptions as Z, type NeedsResponse as _, type PluginMeta as a, type PollOptions as a$, type ConnectionsResponse as a0, type UserProfile as a1, isPositional as a2, createFunction as a3, createPluginStack as a4, createCorePlugin as a5, addPlugin as a6, createSdk as a7, fromFunctionPlugin as a8, defineLegacyMerge as a9, buildCapabilityMessage as aA, logDeprecation as aB, resetDeprecationWarnings as aC, RelayRequestSchema as aD, RelayFetchSchema as aE, createZapierSdkWithoutRegistry as aF, createOptionsPlugin as aG, createZapierCoreStack as aH, type FunctionRegistryEntry as aI, type FunctionDeprecation as aJ, BaseSdkOptionsSchema as aK, isCoreError as aL, getCoreErrorCode as aM, getCoreErrorCause as aN, CORE_ERROR_SYMBOL as aO, CoreErrorCode as aP, type Plugin as aQ, type PluginProvides as aR, definePlugin as aS, createPluginMethod as aT, createPaginatedPluginMethod as aU, composePlugins as aV, type ActionItem as aW, type ActionTypeItem as aX, getAgent as aY, registryPlugin as aZ, type RequestOptions as a_, dangerousContextPlugin as aa, getContext as ab, defineMethod as ac, defineProperty as ad, declareMethod as ae, declareProperty as af, zapierSdkPlugin as ag, type FormattedItem as ah, type BoundFormatter as ai, type Formatter as aj, type Resolver$1 as ak, type ArrayResolver$1 as al, type ResolverMetadata as am, type StaticResolver$1 as an, type DynamicListResolver as ao, type DynamicSearchResolver as ap, type FieldsResolver as aq, runInMethodScope as ar, runWithTelemetryContext as as, getCallerContext as at, runWithCallerContext as au, type CallerContext as av, toSnakeCase as aw, toTitleCase as ax, batch as ay, type BatchOptions as az, type Manifest as b, type TablesProperty as b$, createZapierApi as b0, getOrCreateApiClient as b1, isPermanentHttpError as b2, type SseMessage as b3, type JsonSseMessage as b4, type AppItem as b5, type ConnectionItem as b6, type ActionItem$1 as b7, type InputFieldItem as b8, type InfoFieldItem as b9, ConnectionsPropertySchema as bA, TriggerInboxPropertySchema as bB, TriggerInboxNamePropertySchema as bC, LeasePropertySchema as bD, LeaseSecondsPropertySchema as bE, LeaseLimitPropertySchema as bF, type AppKeyProperty as bG, type AppProperty as bH, type ActionTypeProperty as bI, type ActionKeyProperty as bJ, type ActionProperty as bK, type InputFieldProperty as bL, type ConnectionIdProperty as bM, type ConnectionProperty as bN, type AuthenticationIdProperty as bO, type InputsProperty as bP, type LimitProperty as bQ, type OffsetProperty as bR, type OutputProperty as bS, type DebugProperty as bT, type ParamsProperty as bU, type ActionTimeoutMsProperty as bV, type TableProperty as bW, type RecordProperty as bX, type RecordsProperty as bY, type FieldsProperty as bZ, type AppsProperty as b_, type RootFieldItem as ba, type UserProfileItem as bb, type SdkPage as bc, type PaginatedSdkFunction as bd, AppKeyPropertySchema as be, AppPropertySchema as bf, ActionTypePropertySchema as bg, ActionKeyPropertySchema as bh, ActionPropertySchema as bi, InputFieldPropertySchema as bj, ConnectionIdPropertySchema as bk, AuthenticationIdPropertySchema as bl, ConnectionPropertySchema as bm, InputsPropertySchema as bn, LimitPropertySchema as bo, OffsetPropertySchema as bp, OutputPropertySchema as bq, DebugPropertySchema as br, ParamsPropertySchema as bs, ActionTimeoutMsPropertySchema as bt, TablePropertySchema as bu, RecordPropertySchema as bv, RecordsPropertySchema as bw, FieldsPropertySchema as bx, AppsPropertySchema as by, TablesPropertySchema as bz, type UpdateManifestEntryResult as c, CONTEXT_CACHE_TTL_MS as c$, type ConnectionsProperty as c0, type TriggerInboxProperty as c1, type TriggerInboxNameProperty as c2, type LeaseProperty as c3, type LeaseSecondsProperty as c4, type LeaseLimitProperty as c5, type ErrorOptions as c6, ZapierError as c7, ZapierValidationError as c8, ZapierUnknownError as c9, type ListAppsPluginProvides as cA, listActionsPlugin as cB, type ListActionsPluginProvides as cC, listActionInputFieldsPlugin as cD, type ListActionInputFieldsPluginProvides as cE, listActionInputFieldChoicesPlugin as cF, type ListActionInputFieldChoicesPluginProvides as cG, getActionInputFieldsSchemaPlugin as cH, type GetActionInputFieldsSchemaPluginProvides as cI, listConnectionsPlugin as cJ, type ListConnectionsPluginProvides as cK, listClientCredentialsPlugin as cL, type ListClientCredentialsPluginProvides as cM, createClientCredentialsPlugin as cN, type CreateClientCredentialsPluginProvides as cO, deleteClientCredentialsPlugin as cP, type DeleteClientCredentialsPluginProvides as cQ, getAppPlugin as cR, type GetAppPluginProvides as cS, getActionPlugin as cT, type GetActionPluginProvides as cU, getConnectionPlugin as cV, type GetConnectionPluginProvides as cW, findFirstConnectionPlugin as cX, type FindFirstConnectionPluginProvides as cY, findUniqueConnectionPlugin as cZ, type FindUniqueConnectionPluginProvides as c_, ZapierAuthenticationError as ca, zapierAdaptError as cb, ZapierApiError as cc, ZapierAppNotFoundError as cd, ZapierNotFoundError as ce, ZapierResourceNotFoundError as cf, ZapierConfigurationError as cg, ZapierBundleError as ch, ZapierTimeoutError as ci, ZapierActionError as cj, ZapierConflictError as ck, type RateLimitInfo as cl, ZapierRateLimitError as cm, type ApprovalStatus as cn, ZapierApprovalError as co, ZapierRelayError as cp, formatErrorMessage as cq, type ApiError as cr, ZapierSignal as cs, appsPlugin as ct, type AppsPluginProvides as cu, type ActionExecutionOptions as cv, type AppFactoryInput as cw, fetchPlugin as cx, type FetchPluginProvides as cy, listAppsPlugin as cz, type AddActionEntryOptions as d, type ResolvedCredentials as d$, CONTEXT_CACHE_MAX_SIZE as d0, runActionPlugin as d1, type RunActionPluginProvides as d2, requestPlugin as d3, type RequestPluginProvides as d4, type ManifestPluginOptions as d5, getPreferredManifestEntryKey as d6, manifestPlugin as d7, type ManifestPluginProvides as d8, DEFAULT_CONFIG_PATH as d9, tableNameResolver as dA, tableFieldsResolver as dB, tableRecordsResolver as dC, tableUpdateRecordsResolver as dD, tableFiltersResolver as dE, tableSortResolver as dF, type ResolveAuthTokenOptions as dG, AuthMechanism as dH, type ResolvedAuth as dI, clearTokenCache as dJ, invalidateCachedToken as dK, injectCliLogin as dL, isCliLoginAvailable as dM, getTokenFromCliLogin as dN, resolveAuth as dO, resolveAuthToken as dP, invalidateCredentialsToken as dQ, type ZapierCache as dR, type ZapierCacheEntry as dS, type ZapierCacheSetOptions as dT, createMemoryCache as dU, type SdkEvent as dV, type AuthEvent as dW, type ApiEvent as dX, type LoadingEvent as dY, type EventCallback as dZ, type Credentials as d_, type ManifestEntry as da, getProfilePlugin as db, type ApiPluginOptions as dc, apiPlugin as dd, type ApiPluginProvides as de, appKeyResolver as df, actionTypeResolver as dg, actionKeyResolver as dh, connectionIdResolver as di, connectionIdGenericResolver as dj, inputsResolver as dk, inputsAllOptionalResolver as dl, inputFieldKeyResolver as dm, clientCredentialsNameResolver as dn, clientIdResolver as dp, tableIdResolver as dq, triggerInboxResolver as dr, workflowIdResolver as ds, durableRunIdResolver as dt, workflowVersionIdResolver as du, workflowRunIdResolver as dv, triggerMessagesResolver as dw, tableRecordIdResolver as dx, tableRecordIdsResolver as dy, tableFieldIdsResolver as dz, type AddActionEntryResult as e, type UpdateTableRecordsPluginProvides as e$, type CredentialsObject as e0, type ClientCredentialsObject as e1, type PkceCredentialsObject as e2, isClientCredentials as e3, isPkceCredentials as e4, isCredentialsObject as e5, isCredentialsFunction as e6, type ResolveCredentialsOptions as e7, resolveCredentialsFromEnv as e8, resolveCredentials as e9, getZapierOpenAutoModeApprovalsInBrowser as eA, getZapierDefaultApprovalMode as eB, DEFAULT_APPROVAL_TIMEOUT_MS as eC, DEFAULT_MAX_APPROVAL_RETRIES as eD, listTablesPlugin as eE, type ListTablesPluginProvides as eF, getTablePlugin as eG, type GetTablePluginProvides as eH, createTablePlugin as eI, type CreateTablePluginProvides as eJ, deleteTablePlugin as eK, type DeleteTablePluginProvides as eL, listTableFieldsPlugin as eM, type ListTableFieldsPluginProvides as eN, createTableFieldsPlugin as eO, type CreateTableFieldsPluginProvides as eP, deleteTableFieldsPlugin as eQ, type DeleteTableFieldsPluginProvides as eR, getTableRecordPlugin as eS, type GetTableRecordPluginProvides as eT, listTableRecordsPlugin as eU, type ListTableRecordsPluginProvides as eV, createTableRecordsPlugin as eW, type CreateTableRecordsPluginProvides as eX, deleteTableRecordsPlugin as eY, type DeleteTableRecordsPluginProvides as eZ, updateTableRecordsPlugin as e_, getBaseUrlFromCredentials as ea, getClientIdFromCredentials as eb, ClientCredentialsObjectSchema as ec, PkceCredentialsObjectSchema as ed, CredentialsObjectSchema as ee, ResolvedCredentialsSchema as ef, CredentialsFunctionSchema as eg, type CredentialsFunction as eh, CredentialsSchema as ei, ConnectionEntrySchema as ej, type ConnectionEntry as ek, ConnectionsMapSchema as el, type ConnectionsMap as em, connectionsPlugin as en, type ConnectionsPluginProvides as eo, ZAPIER_BASE_URL as ep, getZapierSdkService as eq, MAX_PAGE_LIMIT as er, DEFAULT_PAGE_SIZE as es, DEFAULT_ACTION_TIMEOUT_MS as et, ZAPIER_MAX_NETWORK_RETRIES as eu, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ev, MAX_CONCURRENCY_LIMIT as ew, parseConcurrencyEnvVar as ex, ZAPIER_MAX_CONCURRENT_REQUESTS as ey, getZapierApprovalMode as ez, type ActionEntry as f, cleanupEventListeners as f0, type EventEmissionConfig as f1, eventEmissionPlugin as f2, type EventEmissionProvides as f3, type EventContext as f4, type ApplicationLifecycleEventData as f5, type EnhancedErrorEventData as f6, type MethodCalledEventData as f7, buildApplicationLifecycleEvent as f8, buildErrorEventWithContext as f9, buildErrorEvent as fa, createBaseEvent as fb, buildMethodCalledEvent as fc, type BaseEvent as fd, type MethodCalledEvent as fe, generateEventId as ff, getCurrentTimestamp as fg, getReleaseId as fh, getOsInfo as fi, getPlatformVersions as fj, isCi as fk, getCiPlatform as fl, getMemoryUsage as fm, getCpuTime as fn, getTtyContext as fo, createZapierSdk as fp, createZapierSdkStack as fq, type ZapierSdk as fr, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type CreateConnectionItem as j, type PositionalMetadata as k, type ZapierFetchInitOptions as l, type DynamicResolver$1 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type RegistryResult as q, readManifestFromFile as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, type DrainTriggerInboxCallback as u, type DrainTriggerInboxErrorObserver as v, type ListAuthenticationsPluginProvides as w, type GetAuthenticationPluginProvides as x, type FindFirstAuthenticationPluginProvides as y, type FindUniqueAuthenticationPluginProvides as z };
|
|
16593
|
+
export { type Connection as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetConnectionStartUrlItem as G, type Action as H, type App as I, type Field as J, type Choice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type ActionExecutionResult as Q, type ResolvedAppLocator as R, type SdkContext as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionField as V, type WaitForNewConnectionItem as W, type ActionFieldChoice as X, type NeedsRequest as Y, type ZapierSdkOptions as Z, type NeedsResponse as _, type PluginMeta as a, type PollOptions as a$, type ConnectionsResponse as a0, type UserProfile as a1, isPositional as a2, createFunction as a3, createPluginStack as a4, createCorePlugin as a5, addPlugin as a6, createSdk as a7, fromFunctionPlugin as a8, defineLegacyMerge as a9, buildCapabilityMessage as aA, logDeprecation as aB, resetDeprecationWarnings as aC, RelayRequestSchema as aD, RelayFetchSchema as aE, createZapierSdkWithoutRegistry as aF, createOptionsPlugin as aG, createZapierCoreStack as aH, type FunctionRegistryEntry as aI, type FunctionDeprecation as aJ, BaseSdkOptionsSchema as aK, isCoreError as aL, getCoreErrorCode as aM, getCoreErrorCause as aN, CORE_ERROR_SYMBOL as aO, CoreErrorCode as aP, type Plugin as aQ, type PluginProvides as aR, definePlugin as aS, createPluginMethod as aT, createPaginatedPluginMethod as aU, composePlugins as aV, type ActionItem as aW, type ActionTypeItem as aX, getAgent as aY, registryPlugin as aZ, type RequestOptions as a_, dangerousContextPlugin as aa, getContext as ab, defineMethod as ac, defineProperty as ad, declareMethod as ae, declareProperty as af, zapierSdkPlugin as ag, type FormattedItem as ah, type BoundFormatter as ai, type Formatter as aj, type Resolver$1 as ak, type ArrayResolver$1 as al, type ResolverMetadata as am, type StaticResolver$1 as an, type DynamicListResolver as ao, type DynamicSearchResolver as ap, type FieldsResolver as aq, runInMethodScope as ar, runWithTelemetryContext as as, getCallerContext as at, runWithCallerContext as au, type CallerContext as av, toSnakeCase as aw, toTitleCase as ax, batch as ay, type BatchOptions as az, type Manifest as b, type FieldsProperty as b$, createZapierApi as b0, getOrCreateApiClient as b1, isPermanentHttpError as b2, type SseMessage as b3, type JsonSseMessage as b4, DEPRECATION_NOTICE_EVENT as b5, type DeprecationNoticePayload as b6, type AppItem as b7, type ConnectionItem as b8, type ActionItem$1 as b9, AppsPropertySchema as bA, TablesPropertySchema as bB, ConnectionsPropertySchema as bC, TriggerInboxPropertySchema as bD, TriggerInboxNamePropertySchema as bE, LeasePropertySchema as bF, LeaseSecondsPropertySchema as bG, LeaseLimitPropertySchema as bH, type AppKeyProperty as bI, type AppProperty as bJ, type ActionTypeProperty as bK, type ActionKeyProperty as bL, type ActionProperty as bM, type InputFieldProperty as bN, type ConnectionIdProperty as bO, type ConnectionProperty as bP, type AuthenticationIdProperty as bQ, type InputsProperty as bR, type LimitProperty as bS, type OffsetProperty as bT, type OutputProperty as bU, type DebugProperty as bV, type ParamsProperty as bW, type ActionTimeoutMsProperty as bX, type TableProperty as bY, type RecordProperty as bZ, type RecordsProperty as b_, type InputFieldItem as ba, type InfoFieldItem as bb, type RootFieldItem as bc, type UserProfileItem as bd, type SdkPage as be, type PaginatedSdkFunction as bf, AppKeyPropertySchema as bg, AppPropertySchema as bh, ActionTypePropertySchema as bi, ActionKeyPropertySchema as bj, ActionPropertySchema as bk, InputFieldPropertySchema as bl, ConnectionIdPropertySchema as bm, AuthenticationIdPropertySchema as bn, ConnectionPropertySchema as bo, InputsPropertySchema as bp, LimitPropertySchema as bq, OffsetPropertySchema as br, OutputPropertySchema as bs, DebugPropertySchema as bt, ParamsPropertySchema as bu, ActionTimeoutMsPropertySchema as bv, TablePropertySchema as bw, RecordPropertySchema as bx, RecordsPropertySchema as by, FieldsPropertySchema as bz, type UpdateManifestEntryResult as c, findUniqueConnectionPlugin as c$, type AppsProperty as c0, type TablesProperty as c1, type ConnectionsProperty as c2, type TriggerInboxProperty as c3, type TriggerInboxNameProperty as c4, type LeaseProperty as c5, type LeaseSecondsProperty as c6, type LeaseLimitProperty as c7, type ErrorOptions as c8, ZapierError as c9, type FetchPluginProvides as cA, listAppsPlugin as cB, type ListAppsPluginProvides as cC, listActionsPlugin as cD, type ListActionsPluginProvides as cE, listActionInputFieldsPlugin as cF, type ListActionInputFieldsPluginProvides as cG, listActionInputFieldChoicesPlugin as cH, type ListActionInputFieldChoicesPluginProvides as cI, getActionInputFieldsSchemaPlugin as cJ, type GetActionInputFieldsSchemaPluginProvides as cK, listConnectionsPlugin as cL, type ListConnectionsPluginProvides as cM, listClientCredentialsPlugin as cN, type ListClientCredentialsPluginProvides as cO, createClientCredentialsPlugin as cP, type CreateClientCredentialsPluginProvides as cQ, deleteClientCredentialsPlugin as cR, type DeleteClientCredentialsPluginProvides as cS, getAppPlugin as cT, type GetAppPluginProvides as cU, getActionPlugin as cV, type GetActionPluginProvides as cW, getConnectionPlugin as cX, type GetConnectionPluginProvides as cY, findFirstConnectionPlugin as cZ, type FindFirstConnectionPluginProvides as c_, ZapierValidationError as ca, ZapierUnknownError as cb, ZapierAuthenticationError as cc, zapierAdaptError as cd, ZapierApiError as ce, ZapierAppNotFoundError as cf, ZapierNotFoundError as cg, ZapierResourceNotFoundError as ch, ZapierConfigurationError as ci, ZapierBundleError as cj, ZapierTimeoutError as ck, ZapierActionError as cl, ZapierConflictError as cm, type RateLimitInfo as cn, ZapierRateLimitError as co, type ApprovalStatus as cp, ZapierApprovalError as cq, ZapierRelayError as cr, formatErrorMessage as cs, type ApiError as ct, ZapierSignal as cu, appsPlugin as cv, type AppsPluginProvides as cw, type ActionExecutionOptions as cx, type AppFactoryInput as cy, fetchPlugin as cz, type AddActionEntryOptions as d, type EventCallback as d$, type FindUniqueConnectionPluginProvides as d0, CONTEXT_CACHE_TTL_MS as d1, CONTEXT_CACHE_MAX_SIZE as d2, runActionPlugin as d3, type RunActionPluginProvides as d4, requestPlugin as d5, type RequestPluginProvides as d6, type ManifestPluginOptions as d7, getPreferredManifestEntryKey as d8, manifestPlugin as d9, tableRecordIdsResolver as dA, tableFieldIdsResolver as dB, tableNameResolver as dC, tableFieldsResolver as dD, tableRecordsResolver as dE, tableUpdateRecordsResolver as dF, tableFiltersResolver as dG, tableSortResolver as dH, type ResolveAuthTokenOptions as dI, AuthMechanism as dJ, type ResolvedAuth as dK, clearTokenCache as dL, invalidateCachedToken as dM, injectCliLogin as dN, isCliLoginAvailable as dO, getTokenFromCliLogin as dP, resolveAuth as dQ, resolveAuthToken as dR, invalidateCredentialsToken as dS, type ZapierCache as dT, type ZapierCacheEntry as dU, type ZapierCacheSetOptions as dV, createMemoryCache as dW, type SdkEvent as dX, type AuthEvent as dY, type ApiEvent as dZ, type LoadingEvent as d_, type ManifestPluginProvides as da, DEFAULT_CONFIG_PATH as db, type ManifestEntry as dc, getProfilePlugin as dd, type ApiPluginOptions as de, apiPlugin as df, type ApiPluginProvides as dg, appKeyResolver as dh, actionTypeResolver as di, actionKeyResolver as dj, connectionIdResolver as dk, connectionIdGenericResolver as dl, inputsResolver as dm, inputsAllOptionalResolver as dn, inputFieldKeyResolver as dp, clientCredentialsNameResolver as dq, clientIdResolver as dr, tableIdResolver as ds, triggerInboxResolver as dt, workflowIdResolver as du, durableRunIdResolver as dv, workflowVersionIdResolver as dw, workflowRunIdResolver as dx, triggerMessagesResolver as dy, tableRecordIdResolver as dz, type AddActionEntryResult as e, type DeleteTableRecordsPluginProvides as e$, type Credentials as e0, type ResolvedCredentials as e1, type CredentialsObject as e2, type ClientCredentialsObject as e3, type PkceCredentialsObject as e4, isClientCredentials as e5, isPkceCredentials as e6, isCredentialsObject as e7, isCredentialsFunction as e8, type ResolveCredentialsOptions as e9, ZAPIER_MAX_CONCURRENT_REQUESTS as eA, getZapierApprovalMode as eB, getZapierOpenAutoModeApprovalsInBrowser as eC, getZapierDefaultApprovalMode as eD, DEFAULT_APPROVAL_TIMEOUT_MS as eE, DEFAULT_MAX_APPROVAL_RETRIES as eF, listTablesPlugin as eG, type ListTablesPluginProvides as eH, getTablePlugin as eI, type GetTablePluginProvides as eJ, createTablePlugin as eK, type CreateTablePluginProvides as eL, deleteTablePlugin as eM, type DeleteTablePluginProvides as eN, listTableFieldsPlugin as eO, type ListTableFieldsPluginProvides as eP, createTableFieldsPlugin as eQ, type CreateTableFieldsPluginProvides as eR, deleteTableFieldsPlugin as eS, type DeleteTableFieldsPluginProvides as eT, getTableRecordPlugin as eU, type GetTableRecordPluginProvides as eV, listTableRecordsPlugin as eW, type ListTableRecordsPluginProvides as eX, createTableRecordsPlugin as eY, type CreateTableRecordsPluginProvides as eZ, deleteTableRecordsPlugin as e_, resolveCredentialsFromEnv as ea, resolveCredentials as eb, getBaseUrlFromCredentials as ec, getClientIdFromCredentials as ed, ClientCredentialsObjectSchema as ee, PkceCredentialsObjectSchema as ef, CredentialsObjectSchema as eg, ResolvedCredentialsSchema as eh, CredentialsFunctionSchema as ei, type CredentialsFunction as ej, CredentialsSchema as ek, ConnectionEntrySchema as el, type ConnectionEntry as em, ConnectionsMapSchema as en, type ConnectionsMap as eo, connectionsPlugin as ep, type ConnectionsPluginProvides as eq, ZAPIER_BASE_URL as er, getZapierSdkService as es, MAX_PAGE_LIMIT as et, DEFAULT_PAGE_SIZE as eu, DEFAULT_ACTION_TIMEOUT_MS as ev, ZAPIER_MAX_NETWORK_RETRIES as ew, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ex, MAX_CONCURRENCY_LIMIT as ey, parseConcurrencyEnvVar as ez, type ActionEntry as f, updateTableRecordsPlugin as f0, type UpdateTableRecordsPluginProvides as f1, cleanupEventListeners as f2, type EventEmissionConfig as f3, eventEmissionPlugin as f4, type EventEmissionProvides as f5, type EventContext as f6, type ApplicationLifecycleEventData as f7, type EnhancedErrorEventData as f8, type MethodCalledEventData as f9, buildApplicationLifecycleEvent as fa, buildErrorEventWithContext as fb, buildErrorEvent as fc, createBaseEvent as fd, buildMethodCalledEvent as fe, type BaseEvent as ff, type MethodCalledEvent as fg, generateEventId as fh, getCurrentTimestamp as fi, getReleaseId as fj, getOsInfo as fk, getPlatformVersions as fl, isCi as fm, getCiPlatform as fn, getMemoryUsage as fo, getCpuTime as fp, getTtyContext as fq, createZapierSdk as fr, createZapierSdkStack as fs, type ZapierSdk as ft, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type CreateConnectionItem as j, type PositionalMetadata as k, type ZapierFetchInitOptions as l, type DynamicResolver$1 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type RegistryResult as q, readManifestFromFile as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, type DrainTriggerInboxCallback as u, type DrainTriggerInboxErrorObserver as v, type ListAuthenticationsPluginProvides as w, type GetAuthenticationPluginProvides as x, type FindFirstAuthenticationPluginProvides as y, type FindUniqueAuthenticationPluginProvides as z };
|
|
@@ -3631,6 +3631,50 @@ declare const createZapierApi: (options: ApiClientOptions) => ApiClient;
|
|
|
3631
3631
|
*/
|
|
3632
3632
|
declare function isPermanentHttpError(err: unknown): boolean;
|
|
3633
3633
|
|
|
3634
|
+
/**
|
|
3635
|
+
* SDK deprecation notices from API responses.
|
|
3636
|
+
*
|
|
3637
|
+
* Trusted Zapier services tell SDK consumers about upcoming breakages via
|
|
3638
|
+
* response headers: `zapier-sdk-deprecation-message` carries the exact text
|
|
3639
|
+
* to display, `zapier-sdk-deprecation-id` is a stable identifier for deduping
|
|
3640
|
+
* (the message text is the fallback key), and the standard RFC 9745
|
|
3641
|
+
* `Deprecation` header carries machine-readable timing that is forwarded on
|
|
3642
|
+
* the emitted event but never displayed on its own.
|
|
3643
|
+
*
|
|
3644
|
+
* Trust model: Zapier-owned services may write these headers, and Relay
|
|
3645
|
+
* responses are never sniffed at all, so a third-party API can never print
|
|
3646
|
+
* text in a user's terminal through this path — even if a relay deployment
|
|
3647
|
+
* fails to strip the headers. Eligibility is decided by explicit client route
|
|
3648
|
+
* config before sniffing: matched routes are eligible by default, Relay routes
|
|
3649
|
+
* opt out with `omitDeprecationMessaging`, and the resolved gateway pathname
|
|
3650
|
+
* is matched against the configured gateway prefixes so custom baseUrls that
|
|
3651
|
+
* already point at Relay stay excluded.
|
|
3652
|
+
*
|
|
3653
|
+
* The configured baseUrl origin itself is deliberately NOT origin-checked
|
|
3654
|
+
* here. The base URL is the client's trust anchor by definition — it
|
|
3655
|
+
* receives the caller's credentials and controls every byte the SDK
|
|
3656
|
+
* displays (error messages, item titles, ...), so a notice adds nothing an
|
|
3657
|
+
* arbitrary origin couldn't already do, while an origin allowlist would
|
|
3658
|
+
* break localhost, staging, and self-hosted gateway deployments that
|
|
3659
|
+
* legitimately run the version gate or proxy trusted Zapier services. Relay
|
|
3660
|
+
* is different precisely because relay upstreams are NOT user-designated
|
|
3661
|
+
* origins: they're third parties reached through normal, trusted Zapier usage.
|
|
3662
|
+
*/
|
|
3663
|
+
|
|
3664
|
+
declare const DEPRECATION_NOTICE_EVENT = "api:deprecation_notice";
|
|
3665
|
+
interface DeprecationNoticePayload {
|
|
3666
|
+
/** Stable notice identifier; the message text when the id header is absent. */
|
|
3667
|
+
id: string;
|
|
3668
|
+
/** Exact server-composed text to display. */
|
|
3669
|
+
message: string;
|
|
3670
|
+
/**
|
|
3671
|
+
* RFC 9745 deprecation date as Unix epoch milliseconds, parsed from a
|
|
3672
|
+
* `Deprecation: @<seconds>` header. Omitted when the header is absent or
|
|
3673
|
+
* not a structured-field date.
|
|
3674
|
+
*/
|
|
3675
|
+
deprecation?: number;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3634
3678
|
/**
|
|
3635
3679
|
* Zapier API Client Module
|
|
3636
3680
|
*
|
|
@@ -16546,4 +16590,4 @@ declare const registryPlugin: (sdk: {
|
|
|
16546
16590
|
};
|
|
16547
16591
|
}) => {};
|
|
16548
16592
|
|
|
16549
|
-
export { type Connection as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetConnectionStartUrlItem as G, type Action as H, type App as I, type Field as J, type Choice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type ActionExecutionResult as Q, type ResolvedAppLocator as R, type SdkContext as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionField as V, type WaitForNewConnectionItem as W, type ActionFieldChoice as X, type NeedsRequest as Y, type ZapierSdkOptions as Z, type NeedsResponse as _, type PluginMeta as a, type PollOptions as a$, type ConnectionsResponse as a0, type UserProfile as a1, isPositional as a2, createFunction as a3, createPluginStack as a4, createCorePlugin as a5, addPlugin as a6, createSdk as a7, fromFunctionPlugin as a8, defineLegacyMerge as a9, buildCapabilityMessage as aA, logDeprecation as aB, resetDeprecationWarnings as aC, RelayRequestSchema as aD, RelayFetchSchema as aE, createZapierSdkWithoutRegistry as aF, createOptionsPlugin as aG, createZapierCoreStack as aH, type FunctionRegistryEntry as aI, type FunctionDeprecation as aJ, BaseSdkOptionsSchema as aK, isCoreError as aL, getCoreErrorCode as aM, getCoreErrorCause as aN, CORE_ERROR_SYMBOL as aO, CoreErrorCode as aP, type Plugin as aQ, type PluginProvides as aR, definePlugin as aS, createPluginMethod as aT, createPaginatedPluginMethod as aU, composePlugins as aV, type ActionItem as aW, type ActionTypeItem as aX, getAgent as aY, registryPlugin as aZ, type RequestOptions as a_, dangerousContextPlugin as aa, getContext as ab, defineMethod as ac, defineProperty as ad, declareMethod as ae, declareProperty as af, zapierSdkPlugin as ag, type FormattedItem as ah, type BoundFormatter as ai, type Formatter as aj, type Resolver$1 as ak, type ArrayResolver$1 as al, type ResolverMetadata as am, type StaticResolver$1 as an, type DynamicListResolver as ao, type DynamicSearchResolver as ap, type FieldsResolver as aq, runInMethodScope as ar, runWithTelemetryContext as as, getCallerContext as at, runWithCallerContext as au, type CallerContext as av, toSnakeCase as aw, toTitleCase as ax, batch as ay, type BatchOptions as az, type Manifest as b, type TablesProperty as b$, createZapierApi as b0, getOrCreateApiClient as b1, isPermanentHttpError as b2, type SseMessage as b3, type JsonSseMessage as b4, type AppItem as b5, type ConnectionItem as b6, type ActionItem$1 as b7, type InputFieldItem as b8, type InfoFieldItem as b9, ConnectionsPropertySchema as bA, TriggerInboxPropertySchema as bB, TriggerInboxNamePropertySchema as bC, LeasePropertySchema as bD, LeaseSecondsPropertySchema as bE, LeaseLimitPropertySchema as bF, type AppKeyProperty as bG, type AppProperty as bH, type ActionTypeProperty as bI, type ActionKeyProperty as bJ, type ActionProperty as bK, type InputFieldProperty as bL, type ConnectionIdProperty as bM, type ConnectionProperty as bN, type AuthenticationIdProperty as bO, type InputsProperty as bP, type LimitProperty as bQ, type OffsetProperty as bR, type OutputProperty as bS, type DebugProperty as bT, type ParamsProperty as bU, type ActionTimeoutMsProperty as bV, type TableProperty as bW, type RecordProperty as bX, type RecordsProperty as bY, type FieldsProperty as bZ, type AppsProperty as b_, type RootFieldItem as ba, type UserProfileItem as bb, type SdkPage as bc, type PaginatedSdkFunction as bd, AppKeyPropertySchema as be, AppPropertySchema as bf, ActionTypePropertySchema as bg, ActionKeyPropertySchema as bh, ActionPropertySchema as bi, InputFieldPropertySchema as bj, ConnectionIdPropertySchema as bk, AuthenticationIdPropertySchema as bl, ConnectionPropertySchema as bm, InputsPropertySchema as bn, LimitPropertySchema as bo, OffsetPropertySchema as bp, OutputPropertySchema as bq, DebugPropertySchema as br, ParamsPropertySchema as bs, ActionTimeoutMsPropertySchema as bt, TablePropertySchema as bu, RecordPropertySchema as bv, RecordsPropertySchema as bw, FieldsPropertySchema as bx, AppsPropertySchema as by, TablesPropertySchema as bz, type UpdateManifestEntryResult as c, CONTEXT_CACHE_TTL_MS as c$, type ConnectionsProperty as c0, type TriggerInboxProperty as c1, type TriggerInboxNameProperty as c2, type LeaseProperty as c3, type LeaseSecondsProperty as c4, type LeaseLimitProperty as c5, type ErrorOptions as c6, ZapierError as c7, ZapierValidationError as c8, ZapierUnknownError as c9, type ListAppsPluginProvides as cA, listActionsPlugin as cB, type ListActionsPluginProvides as cC, listActionInputFieldsPlugin as cD, type ListActionInputFieldsPluginProvides as cE, listActionInputFieldChoicesPlugin as cF, type ListActionInputFieldChoicesPluginProvides as cG, getActionInputFieldsSchemaPlugin as cH, type GetActionInputFieldsSchemaPluginProvides as cI, listConnectionsPlugin as cJ, type ListConnectionsPluginProvides as cK, listClientCredentialsPlugin as cL, type ListClientCredentialsPluginProvides as cM, createClientCredentialsPlugin as cN, type CreateClientCredentialsPluginProvides as cO, deleteClientCredentialsPlugin as cP, type DeleteClientCredentialsPluginProvides as cQ, getAppPlugin as cR, type GetAppPluginProvides as cS, getActionPlugin as cT, type GetActionPluginProvides as cU, getConnectionPlugin as cV, type GetConnectionPluginProvides as cW, findFirstConnectionPlugin as cX, type FindFirstConnectionPluginProvides as cY, findUniqueConnectionPlugin as cZ, type FindUniqueConnectionPluginProvides as c_, ZapierAuthenticationError as ca, zapierAdaptError as cb, ZapierApiError as cc, ZapierAppNotFoundError as cd, ZapierNotFoundError as ce, ZapierResourceNotFoundError as cf, ZapierConfigurationError as cg, ZapierBundleError as ch, ZapierTimeoutError as ci, ZapierActionError as cj, ZapierConflictError as ck, type RateLimitInfo as cl, ZapierRateLimitError as cm, type ApprovalStatus as cn, ZapierApprovalError as co, ZapierRelayError as cp, formatErrorMessage as cq, type ApiError as cr, ZapierSignal as cs, appsPlugin as ct, type AppsPluginProvides as cu, type ActionExecutionOptions as cv, type AppFactoryInput as cw, fetchPlugin as cx, type FetchPluginProvides as cy, listAppsPlugin as cz, type AddActionEntryOptions as d, type ResolvedCredentials as d$, CONTEXT_CACHE_MAX_SIZE as d0, runActionPlugin as d1, type RunActionPluginProvides as d2, requestPlugin as d3, type RequestPluginProvides as d4, type ManifestPluginOptions as d5, getPreferredManifestEntryKey as d6, manifestPlugin as d7, type ManifestPluginProvides as d8, DEFAULT_CONFIG_PATH as d9, tableNameResolver as dA, tableFieldsResolver as dB, tableRecordsResolver as dC, tableUpdateRecordsResolver as dD, tableFiltersResolver as dE, tableSortResolver as dF, type ResolveAuthTokenOptions as dG, AuthMechanism as dH, type ResolvedAuth as dI, clearTokenCache as dJ, invalidateCachedToken as dK, injectCliLogin as dL, isCliLoginAvailable as dM, getTokenFromCliLogin as dN, resolveAuth as dO, resolveAuthToken as dP, invalidateCredentialsToken as dQ, type ZapierCache as dR, type ZapierCacheEntry as dS, type ZapierCacheSetOptions as dT, createMemoryCache as dU, type SdkEvent as dV, type AuthEvent as dW, type ApiEvent as dX, type LoadingEvent as dY, type EventCallback as dZ, type Credentials as d_, type ManifestEntry as da, getProfilePlugin as db, type ApiPluginOptions as dc, apiPlugin as dd, type ApiPluginProvides as de, appKeyResolver as df, actionTypeResolver as dg, actionKeyResolver as dh, connectionIdResolver as di, connectionIdGenericResolver as dj, inputsResolver as dk, inputsAllOptionalResolver as dl, inputFieldKeyResolver as dm, clientCredentialsNameResolver as dn, clientIdResolver as dp, tableIdResolver as dq, triggerInboxResolver as dr, workflowIdResolver as ds, durableRunIdResolver as dt, workflowVersionIdResolver as du, workflowRunIdResolver as dv, triggerMessagesResolver as dw, tableRecordIdResolver as dx, tableRecordIdsResolver as dy, tableFieldIdsResolver as dz, type AddActionEntryResult as e, type UpdateTableRecordsPluginProvides as e$, type CredentialsObject as e0, type ClientCredentialsObject as e1, type PkceCredentialsObject as e2, isClientCredentials as e3, isPkceCredentials as e4, isCredentialsObject as e5, isCredentialsFunction as e6, type ResolveCredentialsOptions as e7, resolveCredentialsFromEnv as e8, resolveCredentials as e9, getZapierOpenAutoModeApprovalsInBrowser as eA, getZapierDefaultApprovalMode as eB, DEFAULT_APPROVAL_TIMEOUT_MS as eC, DEFAULT_MAX_APPROVAL_RETRIES as eD, listTablesPlugin as eE, type ListTablesPluginProvides as eF, getTablePlugin as eG, type GetTablePluginProvides as eH, createTablePlugin as eI, type CreateTablePluginProvides as eJ, deleteTablePlugin as eK, type DeleteTablePluginProvides as eL, listTableFieldsPlugin as eM, type ListTableFieldsPluginProvides as eN, createTableFieldsPlugin as eO, type CreateTableFieldsPluginProvides as eP, deleteTableFieldsPlugin as eQ, type DeleteTableFieldsPluginProvides as eR, getTableRecordPlugin as eS, type GetTableRecordPluginProvides as eT, listTableRecordsPlugin as eU, type ListTableRecordsPluginProvides as eV, createTableRecordsPlugin as eW, type CreateTableRecordsPluginProvides as eX, deleteTableRecordsPlugin as eY, type DeleteTableRecordsPluginProvides as eZ, updateTableRecordsPlugin as e_, getBaseUrlFromCredentials as ea, getClientIdFromCredentials as eb, ClientCredentialsObjectSchema as ec, PkceCredentialsObjectSchema as ed, CredentialsObjectSchema as ee, ResolvedCredentialsSchema as ef, CredentialsFunctionSchema as eg, type CredentialsFunction as eh, CredentialsSchema as ei, ConnectionEntrySchema as ej, type ConnectionEntry as ek, ConnectionsMapSchema as el, type ConnectionsMap as em, connectionsPlugin as en, type ConnectionsPluginProvides as eo, ZAPIER_BASE_URL as ep, getZapierSdkService as eq, MAX_PAGE_LIMIT as er, DEFAULT_PAGE_SIZE as es, DEFAULT_ACTION_TIMEOUT_MS as et, ZAPIER_MAX_NETWORK_RETRIES as eu, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ev, MAX_CONCURRENCY_LIMIT as ew, parseConcurrencyEnvVar as ex, ZAPIER_MAX_CONCURRENT_REQUESTS as ey, getZapierApprovalMode as ez, type ActionEntry as f, cleanupEventListeners as f0, type EventEmissionConfig as f1, eventEmissionPlugin as f2, type EventEmissionProvides as f3, type EventContext as f4, type ApplicationLifecycleEventData as f5, type EnhancedErrorEventData as f6, type MethodCalledEventData as f7, buildApplicationLifecycleEvent as f8, buildErrorEventWithContext as f9, buildErrorEvent as fa, createBaseEvent as fb, buildMethodCalledEvent as fc, type BaseEvent as fd, type MethodCalledEvent as fe, generateEventId as ff, getCurrentTimestamp as fg, getReleaseId as fh, getOsInfo as fi, getPlatformVersions as fj, isCi as fk, getCiPlatform as fl, getMemoryUsage as fm, getCpuTime as fn, getTtyContext as fo, createZapierSdk as fp, createZapierSdkStack as fq, type ZapierSdk as fr, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type CreateConnectionItem as j, type PositionalMetadata as k, type ZapierFetchInitOptions as l, type DynamicResolver$1 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type RegistryResult as q, readManifestFromFile as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, type DrainTriggerInboxCallback as u, type DrainTriggerInboxErrorObserver as v, type ListAuthenticationsPluginProvides as w, type GetAuthenticationPluginProvides as x, type FindFirstAuthenticationPluginProvides as y, type FindUniqueAuthenticationPluginProvides as z };
|
|
16593
|
+
export { type Connection as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetConnectionStartUrlItem as G, type Action as H, type App as I, type Field as J, type Choice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type ActionExecutionResult as Q, type ResolvedAppLocator as R, type SdkContext as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionField as V, type WaitForNewConnectionItem as W, type ActionFieldChoice as X, type NeedsRequest as Y, type ZapierSdkOptions as Z, type NeedsResponse as _, type PluginMeta as a, type PollOptions as a$, type ConnectionsResponse as a0, type UserProfile as a1, isPositional as a2, createFunction as a3, createPluginStack as a4, createCorePlugin as a5, addPlugin as a6, createSdk as a7, fromFunctionPlugin as a8, defineLegacyMerge as a9, buildCapabilityMessage as aA, logDeprecation as aB, resetDeprecationWarnings as aC, RelayRequestSchema as aD, RelayFetchSchema as aE, createZapierSdkWithoutRegistry as aF, createOptionsPlugin as aG, createZapierCoreStack as aH, type FunctionRegistryEntry as aI, type FunctionDeprecation as aJ, BaseSdkOptionsSchema as aK, isCoreError as aL, getCoreErrorCode as aM, getCoreErrorCause as aN, CORE_ERROR_SYMBOL as aO, CoreErrorCode as aP, type Plugin as aQ, type PluginProvides as aR, definePlugin as aS, createPluginMethod as aT, createPaginatedPluginMethod as aU, composePlugins as aV, type ActionItem as aW, type ActionTypeItem as aX, getAgent as aY, registryPlugin as aZ, type RequestOptions as a_, dangerousContextPlugin as aa, getContext as ab, defineMethod as ac, defineProperty as ad, declareMethod as ae, declareProperty as af, zapierSdkPlugin as ag, type FormattedItem as ah, type BoundFormatter as ai, type Formatter as aj, type Resolver$1 as ak, type ArrayResolver$1 as al, type ResolverMetadata as am, type StaticResolver$1 as an, type DynamicListResolver as ao, type DynamicSearchResolver as ap, type FieldsResolver as aq, runInMethodScope as ar, runWithTelemetryContext as as, getCallerContext as at, runWithCallerContext as au, type CallerContext as av, toSnakeCase as aw, toTitleCase as ax, batch as ay, type BatchOptions as az, type Manifest as b, type FieldsProperty as b$, createZapierApi as b0, getOrCreateApiClient as b1, isPermanentHttpError as b2, type SseMessage as b3, type JsonSseMessage as b4, DEPRECATION_NOTICE_EVENT as b5, type DeprecationNoticePayload as b6, type AppItem as b7, type ConnectionItem as b8, type ActionItem$1 as b9, AppsPropertySchema as bA, TablesPropertySchema as bB, ConnectionsPropertySchema as bC, TriggerInboxPropertySchema as bD, TriggerInboxNamePropertySchema as bE, LeasePropertySchema as bF, LeaseSecondsPropertySchema as bG, LeaseLimitPropertySchema as bH, type AppKeyProperty as bI, type AppProperty as bJ, type ActionTypeProperty as bK, type ActionKeyProperty as bL, type ActionProperty as bM, type InputFieldProperty as bN, type ConnectionIdProperty as bO, type ConnectionProperty as bP, type AuthenticationIdProperty as bQ, type InputsProperty as bR, type LimitProperty as bS, type OffsetProperty as bT, type OutputProperty as bU, type DebugProperty as bV, type ParamsProperty as bW, type ActionTimeoutMsProperty as bX, type TableProperty as bY, type RecordProperty as bZ, type RecordsProperty as b_, type InputFieldItem as ba, type InfoFieldItem as bb, type RootFieldItem as bc, type UserProfileItem as bd, type SdkPage as be, type PaginatedSdkFunction as bf, AppKeyPropertySchema as bg, AppPropertySchema as bh, ActionTypePropertySchema as bi, ActionKeyPropertySchema as bj, ActionPropertySchema as bk, InputFieldPropertySchema as bl, ConnectionIdPropertySchema as bm, AuthenticationIdPropertySchema as bn, ConnectionPropertySchema as bo, InputsPropertySchema as bp, LimitPropertySchema as bq, OffsetPropertySchema as br, OutputPropertySchema as bs, DebugPropertySchema as bt, ParamsPropertySchema as bu, ActionTimeoutMsPropertySchema as bv, TablePropertySchema as bw, RecordPropertySchema as bx, RecordsPropertySchema as by, FieldsPropertySchema as bz, type UpdateManifestEntryResult as c, findUniqueConnectionPlugin as c$, type AppsProperty as c0, type TablesProperty as c1, type ConnectionsProperty as c2, type TriggerInboxProperty as c3, type TriggerInboxNameProperty as c4, type LeaseProperty as c5, type LeaseSecondsProperty as c6, type LeaseLimitProperty as c7, type ErrorOptions as c8, ZapierError as c9, type FetchPluginProvides as cA, listAppsPlugin as cB, type ListAppsPluginProvides as cC, listActionsPlugin as cD, type ListActionsPluginProvides as cE, listActionInputFieldsPlugin as cF, type ListActionInputFieldsPluginProvides as cG, listActionInputFieldChoicesPlugin as cH, type ListActionInputFieldChoicesPluginProvides as cI, getActionInputFieldsSchemaPlugin as cJ, type GetActionInputFieldsSchemaPluginProvides as cK, listConnectionsPlugin as cL, type ListConnectionsPluginProvides as cM, listClientCredentialsPlugin as cN, type ListClientCredentialsPluginProvides as cO, createClientCredentialsPlugin as cP, type CreateClientCredentialsPluginProvides as cQ, deleteClientCredentialsPlugin as cR, type DeleteClientCredentialsPluginProvides as cS, getAppPlugin as cT, type GetAppPluginProvides as cU, getActionPlugin as cV, type GetActionPluginProvides as cW, getConnectionPlugin as cX, type GetConnectionPluginProvides as cY, findFirstConnectionPlugin as cZ, type FindFirstConnectionPluginProvides as c_, ZapierValidationError as ca, ZapierUnknownError as cb, ZapierAuthenticationError as cc, zapierAdaptError as cd, ZapierApiError as ce, ZapierAppNotFoundError as cf, ZapierNotFoundError as cg, ZapierResourceNotFoundError as ch, ZapierConfigurationError as ci, ZapierBundleError as cj, ZapierTimeoutError as ck, ZapierActionError as cl, ZapierConflictError as cm, type RateLimitInfo as cn, ZapierRateLimitError as co, type ApprovalStatus as cp, ZapierApprovalError as cq, ZapierRelayError as cr, formatErrorMessage as cs, type ApiError as ct, ZapierSignal as cu, appsPlugin as cv, type AppsPluginProvides as cw, type ActionExecutionOptions as cx, type AppFactoryInput as cy, fetchPlugin as cz, type AddActionEntryOptions as d, type EventCallback as d$, type FindUniqueConnectionPluginProvides as d0, CONTEXT_CACHE_TTL_MS as d1, CONTEXT_CACHE_MAX_SIZE as d2, runActionPlugin as d3, type RunActionPluginProvides as d4, requestPlugin as d5, type RequestPluginProvides as d6, type ManifestPluginOptions as d7, getPreferredManifestEntryKey as d8, manifestPlugin as d9, tableRecordIdsResolver as dA, tableFieldIdsResolver as dB, tableNameResolver as dC, tableFieldsResolver as dD, tableRecordsResolver as dE, tableUpdateRecordsResolver as dF, tableFiltersResolver as dG, tableSortResolver as dH, type ResolveAuthTokenOptions as dI, AuthMechanism as dJ, type ResolvedAuth as dK, clearTokenCache as dL, invalidateCachedToken as dM, injectCliLogin as dN, isCliLoginAvailable as dO, getTokenFromCliLogin as dP, resolveAuth as dQ, resolveAuthToken as dR, invalidateCredentialsToken as dS, type ZapierCache as dT, type ZapierCacheEntry as dU, type ZapierCacheSetOptions as dV, createMemoryCache as dW, type SdkEvent as dX, type AuthEvent as dY, type ApiEvent as dZ, type LoadingEvent as d_, type ManifestPluginProvides as da, DEFAULT_CONFIG_PATH as db, type ManifestEntry as dc, getProfilePlugin as dd, type ApiPluginOptions as de, apiPlugin as df, type ApiPluginProvides as dg, appKeyResolver as dh, actionTypeResolver as di, actionKeyResolver as dj, connectionIdResolver as dk, connectionIdGenericResolver as dl, inputsResolver as dm, inputsAllOptionalResolver as dn, inputFieldKeyResolver as dp, clientCredentialsNameResolver as dq, clientIdResolver as dr, tableIdResolver as ds, triggerInboxResolver as dt, workflowIdResolver as du, durableRunIdResolver as dv, workflowVersionIdResolver as dw, workflowRunIdResolver as dx, triggerMessagesResolver as dy, tableRecordIdResolver as dz, type AddActionEntryResult as e, type DeleteTableRecordsPluginProvides as e$, type Credentials as e0, type ResolvedCredentials as e1, type CredentialsObject as e2, type ClientCredentialsObject as e3, type PkceCredentialsObject as e4, isClientCredentials as e5, isPkceCredentials as e6, isCredentialsObject as e7, isCredentialsFunction as e8, type ResolveCredentialsOptions as e9, ZAPIER_MAX_CONCURRENT_REQUESTS as eA, getZapierApprovalMode as eB, getZapierOpenAutoModeApprovalsInBrowser as eC, getZapierDefaultApprovalMode as eD, DEFAULT_APPROVAL_TIMEOUT_MS as eE, DEFAULT_MAX_APPROVAL_RETRIES as eF, listTablesPlugin as eG, type ListTablesPluginProvides as eH, getTablePlugin as eI, type GetTablePluginProvides as eJ, createTablePlugin as eK, type CreateTablePluginProvides as eL, deleteTablePlugin as eM, type DeleteTablePluginProvides as eN, listTableFieldsPlugin as eO, type ListTableFieldsPluginProvides as eP, createTableFieldsPlugin as eQ, type CreateTableFieldsPluginProvides as eR, deleteTableFieldsPlugin as eS, type DeleteTableFieldsPluginProvides as eT, getTableRecordPlugin as eU, type GetTableRecordPluginProvides as eV, listTableRecordsPlugin as eW, type ListTableRecordsPluginProvides as eX, createTableRecordsPlugin as eY, type CreateTableRecordsPluginProvides as eZ, deleteTableRecordsPlugin as e_, resolveCredentialsFromEnv as ea, resolveCredentials as eb, getBaseUrlFromCredentials as ec, getClientIdFromCredentials as ed, ClientCredentialsObjectSchema as ee, PkceCredentialsObjectSchema as ef, CredentialsObjectSchema as eg, ResolvedCredentialsSchema as eh, CredentialsFunctionSchema as ei, type CredentialsFunction as ej, CredentialsSchema as ek, ConnectionEntrySchema as el, type ConnectionEntry as em, ConnectionsMapSchema as en, type ConnectionsMap as eo, connectionsPlugin as ep, type ConnectionsPluginProvides as eq, ZAPIER_BASE_URL as er, getZapierSdkService as es, MAX_PAGE_LIMIT as et, DEFAULT_PAGE_SIZE as eu, DEFAULT_ACTION_TIMEOUT_MS as ev, ZAPIER_MAX_NETWORK_RETRIES as ew, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ex, MAX_CONCURRENCY_LIMIT as ey, parseConcurrencyEnvVar as ez, type ActionEntry as f, updateTableRecordsPlugin as f0, type UpdateTableRecordsPluginProvides as f1, cleanupEventListeners as f2, type EventEmissionConfig as f3, eventEmissionPlugin as f4, type EventEmissionProvides as f5, type EventContext as f6, type ApplicationLifecycleEventData as f7, type EnhancedErrorEventData as f8, type MethodCalledEventData as f9, buildApplicationLifecycleEvent as fa, buildErrorEventWithContext as fb, buildErrorEvent as fc, createBaseEvent as fd, buildMethodCalledEvent as fe, type BaseEvent as ff, type MethodCalledEvent as fg, generateEventId as fh, getCurrentTimestamp as fi, getReleaseId as fj, getOsInfo as fk, getPlatformVersions as fl, isCi as fm, getCiPlatform as fn, getMemoryUsage as fo, getCpuTime as fp, getTtyContext as fq, createZapierSdk as fr, createZapierSdkStack as fs, type ZapierSdk as ft, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type CreateConnectionItem as j, type PositionalMetadata as k, type ZapierFetchInitOptions as l, type DynamicResolver$1 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type RegistryResult as q, readManifestFromFile as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, type DrainTriggerInboxCallback as u, type DrainTriggerInboxErrorObserver as v, type ListAuthenticationsPluginProvides as w, type GetAuthenticationPluginProvides as x, type FindFirstAuthenticationPluginProvides as y, type FindUniqueAuthenticationPluginProvides as z };
|