@zapier/zapier-sdk 0.76.0 → 0.76.1
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/auth.d.ts +17 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +81 -25
- package/dist/experimental.cjs +101 -31
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.mjs +100 -32
- package/dist/{index-Cq9YBV9i.d.mts → index-Dlf9DlnJ.d.mts} +22 -3
- package/dist/{index-Cq9YBV9i.d.ts → index-Dlf9DlnJ.d.ts} +22 -3
- package/dist/index.cjs +101 -31
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +100 -32
- package/dist/plugins/eventEmission/builders.d.ts.map +1 -1
- package/dist/plugins/eventEmission/builders.js +2 -0
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +23 -8
- package/dist/plugins/eventEmission/types.d.ts +2 -0
- package/dist/plugins/eventEmission/types.d.ts.map +1 -1
- package/dist/types/telemetry-events.d.ts +2 -0
- package/dist/types/telemetry-events.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/experimental.mjs
CHANGED
|
@@ -2807,6 +2807,14 @@ function createMemoryCache() {
|
|
|
2807
2807
|
|
|
2808
2808
|
// src/auth.ts
|
|
2809
2809
|
var DEFAULT_AUTH_BASE_URL = "https://zapier.com";
|
|
2810
|
+
var AuthMechanism = /* @__PURE__ */ ((AuthMechanism2) => {
|
|
2811
|
+
AuthMechanism2["ClientCredentials"] = "client_credentials";
|
|
2812
|
+
AuthMechanism2["Jwt"] = "jwt";
|
|
2813
|
+
AuthMechanism2["Token"] = "token";
|
|
2814
|
+
AuthMechanism2["Pkce"] = "pkce";
|
|
2815
|
+
AuthMechanism2["None"] = "none";
|
|
2816
|
+
return AuthMechanism2;
|
|
2817
|
+
})(AuthMechanism || {});
|
|
2810
2818
|
var pendingExchanges = /* @__PURE__ */ new Map();
|
|
2811
2819
|
var cachedDefaultCache;
|
|
2812
2820
|
function buildCacheKey(options) {
|
|
@@ -2984,7 +2992,7 @@ async function getTokenFromCliLogin(options) {
|
|
|
2984
2992
|
if (!cliLogin) return void 0;
|
|
2985
2993
|
return await cliLogin.getToken(options);
|
|
2986
2994
|
}
|
|
2987
|
-
async function
|
|
2995
|
+
async function tryStoredClientCredentialAuth(options) {
|
|
2988
2996
|
const activeCredential = await getActiveCredentialsFromCli(options.baseUrl);
|
|
2989
2997
|
if (!activeCredential) return void 0;
|
|
2990
2998
|
const resolvedBaseUrl = activeCredential.baseUrl || options.baseUrl || DEFAULT_AUTH_BASE_URL;
|
|
@@ -2999,15 +3007,25 @@ async function tryStoredClientCredentialToken(options) {
|
|
|
2999
3007
|
});
|
|
3000
3008
|
const cache = await resolveCache(options);
|
|
3001
3009
|
const pending = pendingExchanges.get(cacheKey);
|
|
3002
|
-
if (pending)
|
|
3010
|
+
if (pending) {
|
|
3011
|
+
return {
|
|
3012
|
+
token: await pending,
|
|
3013
|
+
mechanism: "client_credentials" /* ClientCredentials */,
|
|
3014
|
+
clientId: activeCredential.clientId
|
|
3015
|
+
};
|
|
3016
|
+
}
|
|
3003
3017
|
const cached = await readCachedToken(cacheKey, cache);
|
|
3004
3018
|
if (cached !== void 0) {
|
|
3005
3019
|
if (options.debug)
|
|
3006
3020
|
console.error(
|
|
3007
3021
|
`[auth] Using cached token (clientId: ${activeCredential.clientId})`
|
|
3008
3022
|
);
|
|
3009
|
-
emitAuthResolved(options.onEvent, "client_credentials");
|
|
3010
|
-
return
|
|
3023
|
+
emitAuthResolved(options.onEvent, "client_credentials" /* ClientCredentials */);
|
|
3024
|
+
return {
|
|
3025
|
+
token: cached,
|
|
3026
|
+
mechanism: "client_credentials" /* ClientCredentials */,
|
|
3027
|
+
clientId: activeCredential.clientId
|
|
3028
|
+
};
|
|
3011
3029
|
}
|
|
3012
3030
|
const storedCredential = await getStoredClientCredentialsFromCli(resolvedBaseUrl);
|
|
3013
3031
|
if (!storedCredential) {
|
|
@@ -3025,24 +3043,25 @@ async function tryStoredClientCredentialToken(options) {
|
|
|
3025
3043
|
console.error(
|
|
3026
3044
|
`[auth] Using stored client credential (clientId: ${storedCredential.clientId})`
|
|
3027
3045
|
);
|
|
3028
|
-
const
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3046
|
+
const auth = await resolveAuthFromCredentials(storedCredential, options);
|
|
3047
|
+
emitAuthResolved(options.onEvent, "client_credentials" /* ClientCredentials */);
|
|
3048
|
+
return {
|
|
3049
|
+
token: auth.token,
|
|
3050
|
+
mechanism: "client_credentials" /* ClientCredentials */,
|
|
3051
|
+
clientId: activeCredential.clientId
|
|
3052
|
+
};
|
|
3034
3053
|
}
|
|
3035
|
-
async function
|
|
3054
|
+
async function resolveAuth(options = {}) {
|
|
3036
3055
|
const credentials = await resolveCredentials({
|
|
3037
3056
|
credentials: options.credentials,
|
|
3038
3057
|
token: options.token,
|
|
3039
3058
|
baseUrl: options.baseUrl
|
|
3040
3059
|
});
|
|
3041
3060
|
if (credentials !== void 0) {
|
|
3042
|
-
return
|
|
3061
|
+
return resolveAuthFromCredentials(credentials, options);
|
|
3043
3062
|
}
|
|
3044
|
-
const
|
|
3045
|
-
if (
|
|
3063
|
+
const storedAuth = await tryStoredClientCredentialAuth(options);
|
|
3064
|
+
if (storedAuth !== void 0) return storedAuth;
|
|
3046
3065
|
if (options.debug) {
|
|
3047
3066
|
console.error("[auth] Using JWT (no stored client credential found)");
|
|
3048
3067
|
}
|
|
@@ -3052,14 +3071,30 @@ async function resolveAuthToken(options = {}) {
|
|
|
3052
3071
|
debug: options.debug
|
|
3053
3072
|
});
|
|
3054
3073
|
if (jwtToken !== void 0) {
|
|
3055
|
-
emitAuthResolved(options.onEvent, "jwt");
|
|
3074
|
+
emitAuthResolved(options.onEvent, "jwt" /* Jwt */);
|
|
3075
|
+
return {
|
|
3076
|
+
token: jwtToken,
|
|
3077
|
+
mechanism: "jwt" /* Jwt */,
|
|
3078
|
+
clientId: null
|
|
3079
|
+
};
|
|
3056
3080
|
}
|
|
3057
|
-
return
|
|
3081
|
+
return {
|
|
3082
|
+
token: void 0,
|
|
3083
|
+
mechanism: "none" /* None */,
|
|
3084
|
+
clientId: null
|
|
3085
|
+
};
|
|
3086
|
+
}
|
|
3087
|
+
async function resolveAuthToken(options = {}) {
|
|
3088
|
+
return (await resolveAuth(options)).token;
|
|
3058
3089
|
}
|
|
3059
|
-
async function
|
|
3090
|
+
async function resolveAuthFromCredentials(credentials, options) {
|
|
3060
3091
|
if (typeof credentials === "string") {
|
|
3061
|
-
emitAuthResolved(options.onEvent, "token");
|
|
3062
|
-
return
|
|
3092
|
+
emitAuthResolved(options.onEvent, "token" /* Token */);
|
|
3093
|
+
return {
|
|
3094
|
+
token: credentials,
|
|
3095
|
+
mechanism: "token" /* Token */,
|
|
3096
|
+
clientId: null
|
|
3097
|
+
};
|
|
3063
3098
|
}
|
|
3064
3099
|
if (isClientCredentials(credentials)) {
|
|
3065
3100
|
const { clientId } = credentials;
|
|
@@ -3076,10 +3111,20 @@ async function resolveAuthTokenFromCredentials(credentials, options) {
|
|
|
3076
3111
|
if (options.debug) {
|
|
3077
3112
|
console.error(`[auth] Using cached token (clientId: ${clientId})`);
|
|
3078
3113
|
}
|
|
3079
|
-
return
|
|
3114
|
+
return {
|
|
3115
|
+
token: cached,
|
|
3116
|
+
mechanism: "client_credentials" /* ClientCredentials */,
|
|
3117
|
+
clientId: credentials.clientId
|
|
3118
|
+
};
|
|
3080
3119
|
}
|
|
3081
3120
|
const pending = pendingExchanges.get(cacheKey);
|
|
3082
|
-
if (pending)
|
|
3121
|
+
if (pending) {
|
|
3122
|
+
return {
|
|
3123
|
+
token: await pending,
|
|
3124
|
+
mechanism: "client_credentials" /* ClientCredentials */,
|
|
3125
|
+
clientId: credentials.clientId
|
|
3126
|
+
};
|
|
3127
|
+
}
|
|
3083
3128
|
const runLocked = async () => {
|
|
3084
3129
|
const recheck = await readCachedToken(cacheKey, cache);
|
|
3085
3130
|
if (recheck !== void 0) {
|
|
@@ -3112,7 +3157,11 @@ async function resolveAuthTokenFromCredentials(credentials, options) {
|
|
|
3112
3157
|
pendingExchanges.delete(cacheKey);
|
|
3113
3158
|
});
|
|
3114
3159
|
pendingExchanges.set(cacheKey, exchangePromise);
|
|
3115
|
-
return
|
|
3160
|
+
return {
|
|
3161
|
+
token: await exchangePromise,
|
|
3162
|
+
mechanism: "client_credentials" /* ClientCredentials */,
|
|
3163
|
+
clientId: credentials.clientId
|
|
3164
|
+
};
|
|
3116
3165
|
}
|
|
3117
3166
|
if (isPkceCredentials(credentials)) {
|
|
3118
3167
|
const storedToken = await getTokenFromCliLogin({
|
|
@@ -3122,7 +3171,11 @@ async function resolveAuthTokenFromCredentials(credentials, options) {
|
|
|
3122
3171
|
debug: options.debug
|
|
3123
3172
|
});
|
|
3124
3173
|
if (storedToken) {
|
|
3125
|
-
return
|
|
3174
|
+
return {
|
|
3175
|
+
token: storedToken,
|
|
3176
|
+
mechanism: "pkce" /* Pkce */,
|
|
3177
|
+
clientId: null
|
|
3178
|
+
};
|
|
3126
3179
|
}
|
|
3127
3180
|
throw new Error(
|
|
3128
3181
|
"PKCE credentials require interactive login. Please run the 'login' command with the CLI first, or use client_credentials flow."
|
|
@@ -3316,7 +3369,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
3316
3369
|
}
|
|
3317
3370
|
|
|
3318
3371
|
// src/sdk-version.ts
|
|
3319
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.76.
|
|
3372
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.76.1" : void 0) || "unknown";
|
|
3320
3373
|
|
|
3321
3374
|
// src/utils/open-url.ts
|
|
3322
3375
|
var nodePrefix = "node:";
|
|
@@ -9586,6 +9639,8 @@ function createBaseEvent(context = {}) {
|
|
|
9586
9639
|
release_id: getReleaseId(),
|
|
9587
9640
|
customuser_id: context.customuser_id,
|
|
9588
9641
|
account_id: context.account_id,
|
|
9642
|
+
client_id: context.client_id ?? null,
|
|
9643
|
+
auth_mechanism: context.auth_mechanism ?? null,
|
|
9589
9644
|
identity_id: context.identity_id,
|
|
9590
9645
|
visitor_id: context.visitor_id,
|
|
9591
9646
|
correlation_id: context.correlation_id
|
|
@@ -9739,6 +9794,20 @@ function cleanupEventListeners() {
|
|
|
9739
9794
|
var APPLICATION_LIFECYCLE_EVENT_SUBJECT = "platform.sdk.ApplicationLifecycleEvent";
|
|
9740
9795
|
var ERROR_OCCURRED_EVENT_SUBJECT = "platform.sdk.ErrorOccurredEvent";
|
|
9741
9796
|
var METHOD_CALLED_EVENT_SUBJECT = "platform.sdk.MethodCalledEvent";
|
|
9797
|
+
var NULL_EVENT_CONTEXT = Object.freeze({
|
|
9798
|
+
customuser_id: null,
|
|
9799
|
+
account_id: null,
|
|
9800
|
+
client_id: null,
|
|
9801
|
+
auth_mechanism: null
|
|
9802
|
+
});
|
|
9803
|
+
function buildEventAuthContext(auth) {
|
|
9804
|
+
const userIds = auth.token ? extractUserIdsFromJwt(auth.token) : { customuser_id: null, account_id: null };
|
|
9805
|
+
return {
|
|
9806
|
+
...userIds,
|
|
9807
|
+
client_id: auth.clientId,
|
|
9808
|
+
auth_mechanism: auth.mechanism
|
|
9809
|
+
};
|
|
9810
|
+
}
|
|
9742
9811
|
async function emitWithTimeout(transport, subject, event) {
|
|
9743
9812
|
try {
|
|
9744
9813
|
await Promise.race([
|
|
@@ -9814,16 +9883,11 @@ var eventEmissionPlugin = definePlugin(
|
|
|
9814
9883
|
const getUserContext = (async () => {
|
|
9815
9884
|
if (config.enabled) {
|
|
9816
9885
|
try {
|
|
9817
|
-
|
|
9818
|
-
...options
|
|
9819
|
-
});
|
|
9820
|
-
if (token) {
|
|
9821
|
-
return extractUserIdsFromJwt(token);
|
|
9822
|
-
}
|
|
9886
|
+
return buildEventAuthContext(await resolveAuth({ ...options }));
|
|
9823
9887
|
} catch {
|
|
9824
9888
|
}
|
|
9825
9889
|
}
|
|
9826
|
-
return
|
|
9890
|
+
return NULL_EVENT_CONTEXT;
|
|
9827
9891
|
})();
|
|
9828
9892
|
const startupTime = Date.now();
|
|
9829
9893
|
let shutdownStartTime = null;
|
|
@@ -9856,6 +9920,8 @@ var eventEmissionPlugin = definePlugin(
|
|
|
9856
9920
|
release_id: getReleaseId(),
|
|
9857
9921
|
customuser_id: null,
|
|
9858
9922
|
account_id: null,
|
|
9923
|
+
client_id: null,
|
|
9924
|
+
auth_mechanism: null,
|
|
9859
9925
|
identity_id: null,
|
|
9860
9926
|
visitor_id: null,
|
|
9861
9927
|
correlation_id: null
|
|
@@ -9884,6 +9950,8 @@ var eventEmissionPlugin = definePlugin(
|
|
|
9884
9950
|
release_id: getReleaseId(),
|
|
9885
9951
|
customuser_id: null,
|
|
9886
9952
|
account_id: null,
|
|
9953
|
+
client_id: null,
|
|
9954
|
+
auth_mechanism: null,
|
|
9887
9955
|
identity_id: null,
|
|
9888
9956
|
visitor_id: null,
|
|
9889
9957
|
correlation_id: null
|
|
@@ -13250,4 +13318,4 @@ function createZapierSdk2(options = {}) {
|
|
|
13250
13318
|
return withDeprecatedAddPlugin(createZapierSdkStack2(options).toSdk());
|
|
13251
13319
|
}
|
|
13252
13320
|
|
|
13253
|
-
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, 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, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, 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, 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 };
|
|
13321
|
+
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, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, 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 };
|
|
@@ -3117,6 +3117,8 @@ interface BaseEvent {
|
|
|
3117
3117
|
release_id: string;
|
|
3118
3118
|
customuser_id?: number | null;
|
|
3119
3119
|
account_id?: number | null;
|
|
3120
|
+
client_id?: string | null;
|
|
3121
|
+
auth_mechanism?: string | null;
|
|
3120
3122
|
identity_id?: number | null;
|
|
3121
3123
|
visitor_id?: string | null;
|
|
3122
3124
|
correlation_id?: string | null;
|
|
@@ -3233,6 +3235,8 @@ interface TransportConfig {
|
|
|
3233
3235
|
interface EventContext {
|
|
3234
3236
|
customuser_id?: number | null;
|
|
3235
3237
|
account_id?: number | null;
|
|
3238
|
+
client_id?: string | null;
|
|
3239
|
+
auth_mechanism?: string | null;
|
|
3236
3240
|
identity_id?: number | null;
|
|
3237
3241
|
visitor_id?: string | null;
|
|
3238
3242
|
correlation_id?: string | null;
|
|
@@ -8361,6 +8365,18 @@ interface ResolveAuthTokenOptions {
|
|
|
8361
8365
|
*/
|
|
8362
8366
|
cache?: ZapierCache;
|
|
8363
8367
|
}
|
|
8368
|
+
declare enum AuthMechanism {
|
|
8369
|
+
ClientCredentials = "client_credentials",
|
|
8370
|
+
Jwt = "jwt",
|
|
8371
|
+
Token = "token",
|
|
8372
|
+
Pkce = "pkce",
|
|
8373
|
+
None = "none"
|
|
8374
|
+
}
|
|
8375
|
+
interface ResolvedAuth {
|
|
8376
|
+
token?: string;
|
|
8377
|
+
mechanism: AuthMechanism;
|
|
8378
|
+
clientId: string | null;
|
|
8379
|
+
}
|
|
8364
8380
|
/**
|
|
8365
8381
|
* Clear in-process caches. Useful for testing or to force the next
|
|
8366
8382
|
* resolve to re-import the default cache adapter. Does not touch
|
|
@@ -8423,7 +8439,8 @@ declare function isCliLoginAvailable(): boolean | undefined;
|
|
|
8423
8439
|
*/
|
|
8424
8440
|
declare function getTokenFromCliLogin(options: CliLoginOptions): Promise<string | undefined>;
|
|
8425
8441
|
/**
|
|
8426
|
-
* Resolves
|
|
8442
|
+
* Resolves auth from wherever it can be found, returning the token plus
|
|
8443
|
+
* metadata about how it was resolved.
|
|
8427
8444
|
*
|
|
8428
8445
|
* Resolution order:
|
|
8429
8446
|
* 1. Explicit credentials option (or deprecated token option)
|
|
@@ -8435,8 +8452,10 @@ declare function getTokenFromCliLogin(options: CliLoginOptions): Promise<string
|
|
|
8435
8452
|
* - Client credentials: Exchanged for an access token (with caching)
|
|
8436
8453
|
* - PKCE: Delegates to CLI login (throws if not available)
|
|
8437
8454
|
*
|
|
8438
|
-
*
|
|
8455
|
+
* When no auth can be resolved, returns a ResolvedAuth with
|
|
8456
|
+
* mechanism: None and no token.
|
|
8439
8457
|
*/
|
|
8458
|
+
declare function resolveAuth(options?: ResolveAuthTokenOptions): Promise<ResolvedAuth>;
|
|
8440
8459
|
declare function resolveAuthToken(options?: ResolveAuthTokenOptions): Promise<string | undefined>;
|
|
8441
8460
|
/**
|
|
8442
8461
|
* Invalidate the cached token for the given credentials, if applicable.
|
|
@@ -15596,4 +15615,4 @@ declare const registryPlugin: (sdk: {
|
|
|
15596
15615
|
};
|
|
15597
15616
|
}) => {};
|
|
15598
15617
|
|
|
15599
|
-
export { type ConnectionsResponse 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 ActionField as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionFieldChoice as V, type WaitForNewConnectionItem as W, type NeedsRequest as X, type NeedsResponse as Y, type ZapierSdkOptions as Z, type Connection as _, type PluginMeta as a, type SdkPage as a$, type UserProfile as a0, isPositional as a1, createFunction as a2, createPluginStack as a3, createCorePlugin as a4, addPlugin as a5, type FormattedItem as a6, type Resolver as a7, type ArrayResolver as a8, type ResolverMetadata as a9, getCoreErrorCode as aA, getCoreErrorCause as aB, CORE_ERROR_SYMBOL as aC, CoreErrorCode as aD, type Plugin as aE, type PluginProvides as aF, definePlugin as aG, createPluginMethod as aH, createPaginatedPluginMethod as aI, composePlugins as aJ, type ActionItem as aK, type ActionTypeItem as aL, registryPlugin as aM, type RequestOptions as aN, type PollOptions as aO, createZapierApi as aP, getOrCreateApiClient as aQ, isPermanentHttpError as aR, type SseMessage as aS, type JsonSseMessage as aT, type AppItem as aU, type ConnectionItem as aV, type ActionItem$1 as aW, type InputFieldItem as aX, type InfoFieldItem as aY, type RootFieldItem as aZ, type UserProfileItem as a_, type StaticResolver as aa, type DynamicListResolver as ab, type DynamicSearchResolver as ac, type FieldsResolver as ad, runInMethodScope as ae, runWithTelemetryContext as af, getCallerContext as ag, runWithCallerContext as ah, type CallerContext as ai, toSnakeCase as aj, toTitleCase as ak, batch as al, type BatchOptions as am, buildCapabilityMessage as an, logDeprecation as ao, resetDeprecationWarnings as ap, RelayRequestSchema as aq, RelayFetchSchema as ar, createZapierSdkWithoutRegistry as as, createSdk as at, createOptionsPlugin as au, createZapierCoreStack as av, type FunctionRegistryEntry as aw, type FunctionDeprecation as ax, BaseSdkOptionsSchema as ay, isCoreError as az, type Manifest as b, ZapierApiError as b$, type PaginatedSdkFunction as b0, AppKeyPropertySchema as b1, AppPropertySchema as b2, ActionTypePropertySchema as b3, ActionKeyPropertySchema as b4, ActionPropertySchema as b5, InputFieldPropertySchema as b6, ConnectionIdPropertySchema as b7, AuthenticationIdPropertySchema as b8, ConnectionPropertySchema as b9, type ConnectionProperty as bA, type AuthenticationIdProperty as bB, type InputsProperty as bC, type LimitProperty as bD, type OffsetProperty as bE, type OutputProperty as bF, type DebugProperty as bG, type ParamsProperty as bH, type ActionTimeoutMsProperty as bI, type TableProperty as bJ, type RecordProperty as bK, type RecordsProperty as bL, type FieldsProperty as bM, type AppsProperty as bN, type TablesProperty as bO, type ConnectionsProperty as bP, type TriggerInboxProperty as bQ, type TriggerInboxNameProperty as bR, type LeaseProperty as bS, type LeaseSecondsProperty as bT, type LeaseLimitProperty as bU, type ErrorOptions as bV, ZapierError as bW, ZapierValidationError as bX, ZapierUnknownError as bY, ZapierAuthenticationError as bZ, zapierAdaptError as b_, InputsPropertySchema as ba, LimitPropertySchema as bb, OffsetPropertySchema as bc, OutputPropertySchema as bd, DebugPropertySchema as be, ParamsPropertySchema as bf, ActionTimeoutMsPropertySchema as bg, TablePropertySchema as bh, RecordPropertySchema as bi, RecordsPropertySchema as bj, FieldsPropertySchema as bk, AppsPropertySchema as bl, TablesPropertySchema as bm, ConnectionsPropertySchema as bn, TriggerInboxPropertySchema as bo, TriggerInboxNamePropertySchema as bp, LeasePropertySchema as bq, LeaseSecondsPropertySchema as br, LeaseLimitPropertySchema as bs, type AppKeyProperty as bt, type AppProperty as bu, type ActionTypeProperty as bv, type ActionKeyProperty as bw, type ActionProperty as bx, type InputFieldProperty as by, type ConnectionIdProperty as bz, type UpdateManifestEntryResult as c, type GetProfilePluginProvides as c$, ZapierAppNotFoundError as c0, ZapierNotFoundError as c1, ZapierResourceNotFoundError as c2, ZapierConfigurationError as c3, ZapierBundleError as c4, ZapierTimeoutError as c5, ZapierActionError as c6, ZapierConflictError as c7, type RateLimitInfo as c8, ZapierRateLimitError as c9, createClientCredentialsPlugin as cA, type CreateClientCredentialsPluginProvides as cB, deleteClientCredentialsPlugin as cC, type DeleteClientCredentialsPluginProvides as cD, getAppPlugin as cE, type GetAppPluginProvides as cF, getActionPlugin as cG, type GetActionPluginProvides as cH, getConnectionPlugin as cI, type GetConnectionPluginProvides as cJ, findFirstConnectionPlugin as cK, type FindFirstConnectionPluginProvides as cL, findUniqueConnectionPlugin as cM, type FindUniqueConnectionPluginProvides as cN, CONTEXT_CACHE_TTL_MS as cO, CONTEXT_CACHE_MAX_SIZE as cP, runActionPlugin as cQ, type RunActionPluginProvides as cR, requestPlugin as cS, type RequestPluginProvides as cT, type ManifestPluginOptions as cU, getPreferredManifestEntryKey as cV, manifestPlugin as cW, type ManifestPluginProvides as cX, DEFAULT_CONFIG_PATH as cY, type ManifestEntry as cZ, getProfilePlugin as c_, type ApprovalStatus as ca, ZapierApprovalError as cb, ZapierRelayError as cc, formatErrorMessage as cd, type ApiError as ce, ZapierSignal as cf, appsPlugin as cg, type AppsPluginProvides as ch, type ActionExecutionOptions as ci, type AppFactoryInput as cj, fetchPlugin as ck, type FetchPluginProvides as cl, listAppsPlugin as cm, type ListAppsPluginProvides as cn, listActionsPlugin as co, type ListActionsPluginProvides as cp, listActionInputFieldsPlugin as cq, type ListActionInputFieldsPluginProvides as cr, listActionInputFieldChoicesPlugin as cs, type ListActionInputFieldChoicesPluginProvides as ct, getActionInputFieldsSchemaPlugin as cu, type GetActionInputFieldsSchemaPluginProvides as cv, listConnectionsPlugin as cw, type ListConnectionsPluginProvides as cx, listClientCredentialsPlugin as cy, type ListClientCredentialsPluginProvides as cz, type AddActionEntryOptions as d, CredentialsObjectSchema as d$, type ApiPluginOptions as d0, apiPlugin as d1, type ApiPluginProvides as d2, appKeyResolver as d3, actionTypeResolver as d4, actionKeyResolver as d5, connectionIdResolver as d6, connectionIdGenericResolver as d7, inputsResolver as d8, inputsAllOptionalResolver as d9, resolveAuthToken as dA, invalidateCredentialsToken as dB, type ZapierCache as dC, type ZapierCacheEntry as dD, type ZapierCacheSetOptions as dE, createMemoryCache as dF, type SdkEvent as dG, type AuthEvent as dH, type ApiEvent as dI, type LoadingEvent as dJ, type EventCallback as dK, type Credentials as dL, type ResolvedCredentials as dM, type CredentialsObject as dN, type ClientCredentialsObject as dO, type PkceCredentialsObject as dP, isClientCredentials as dQ, isPkceCredentials as dR, isCredentialsObject as dS, isCredentialsFunction as dT, type ResolveCredentialsOptions as dU, resolveCredentialsFromEnv as dV, resolveCredentials as dW, getBaseUrlFromCredentials as dX, getClientIdFromCredentials as dY, ClientCredentialsObjectSchema as dZ, PkceCredentialsObjectSchema as d_, inputFieldKeyResolver as da, clientCredentialsNameResolver as db, clientIdResolver as dc, tableIdResolver as dd, triggerInboxResolver as de, workflowIdResolver as df, durableRunIdResolver as dg, workflowVersionIdResolver as dh, workflowRunIdResolver as di, triggerMessagesResolver as dj, tableRecordIdResolver as dk, tableRecordIdsResolver as dl, tableFieldIdsResolver as dm, tableNameResolver as dn, tableFieldsResolver as dp, tableRecordsResolver as dq, tableUpdateRecordsResolver as dr, tableFiltersResolver as ds, tableSortResolver as dt, type ResolveAuthTokenOptions as du, clearTokenCache as dv, invalidateCachedToken as dw, injectCliLogin as dx, isCliLoginAvailable as dy, getTokenFromCliLogin as dz, type AddActionEntryResult as e, type MethodCalledEvent as e$, ResolvedCredentialsSchema as e0, CredentialsFunctionSchema as e1, type CredentialsFunction as e2, CredentialsSchema as e3, ConnectionEntrySchema as e4, type ConnectionEntry as e5, ConnectionsMapSchema as e6, type ConnectionsMap as e7, connectionsPlugin as e8, type ConnectionsPluginProvides as e9, type CreateTableFieldsPluginProvides as eA, deleteTableFieldsPlugin as eB, type DeleteTableFieldsPluginProvides as eC, getTableRecordPlugin as eD, type GetTableRecordPluginProvides as eE, listTableRecordsPlugin as eF, type ListTableRecordsPluginProvides as eG, createTableRecordsPlugin as eH, type CreateTableRecordsPluginProvides as eI, deleteTableRecordsPlugin as eJ, type DeleteTableRecordsPluginProvides as eK, updateTableRecordsPlugin as eL, type UpdateTableRecordsPluginProvides as eM, cleanupEventListeners as eN, type EventEmissionConfig as eO, eventEmissionPlugin as eP, type EventEmissionProvides as eQ, type EventContext as eR, type ApplicationLifecycleEventData as eS, type EnhancedErrorEventData as eT, type MethodCalledEventData as eU, buildApplicationLifecycleEvent as eV, buildErrorEventWithContext as eW, buildErrorEvent as eX, createBaseEvent as eY, buildMethodCalledEvent as eZ, type BaseEvent as e_, ZAPIER_BASE_URL as ea, getZapierSdkService as eb, MAX_PAGE_LIMIT as ec, DEFAULT_PAGE_SIZE as ed, DEFAULT_ACTION_TIMEOUT_MS as ee, ZAPIER_MAX_NETWORK_RETRIES as ef, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as eg, MAX_CONCURRENCY_LIMIT as eh, parseConcurrencyEnvVar as ei, ZAPIER_MAX_CONCURRENT_REQUESTS as ej, getZapierApprovalMode as ek, getZapierOpenAutoModeApprovalsInBrowser as el, getZapierDefaultApprovalMode as em, DEFAULT_APPROVAL_TIMEOUT_MS as en, DEFAULT_MAX_APPROVAL_RETRIES as eo, listTablesPlugin as ep, type ListTablesPluginProvides as eq, getTablePlugin as er, type GetTablePluginProvides as es, createTablePlugin as et, type CreateTablePluginProvides as eu, deleteTablePlugin as ev, type DeleteTablePluginProvides as ew, listTableFieldsPlugin as ex, type ListTableFieldsPluginProvides as ey, createTableFieldsPlugin as ez, type ActionEntry as f, generateEventId as f0, getCurrentTimestamp as f1, getReleaseId as f2, getOsInfo as f3, getPlatformVersions as f4, isCi as f5, getCiPlatform as f6, getMemoryUsage as f7, getCpuTime as f8, getTtyContext as f9, getAgent as fa, createZapierSdk as fb, createZapierSdkStack as fc, type ZapierSdk as fd, 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 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type WithAddPlugin 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 };
|
|
15618
|
+
export { type ConnectionsResponse 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 ActionField as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionFieldChoice as V, type WaitForNewConnectionItem as W, type NeedsRequest as X, type NeedsResponse as Y, type ZapierSdkOptions as Z, type Connection as _, type PluginMeta as a, type SdkPage as a$, type UserProfile as a0, isPositional as a1, createFunction as a2, createPluginStack as a3, createCorePlugin as a4, addPlugin as a5, type FormattedItem as a6, type Resolver as a7, type ArrayResolver as a8, type ResolverMetadata as a9, getCoreErrorCode as aA, getCoreErrorCause as aB, CORE_ERROR_SYMBOL as aC, CoreErrorCode as aD, type Plugin as aE, type PluginProvides as aF, definePlugin as aG, createPluginMethod as aH, createPaginatedPluginMethod as aI, composePlugins as aJ, type ActionItem as aK, type ActionTypeItem as aL, registryPlugin as aM, type RequestOptions as aN, type PollOptions as aO, createZapierApi as aP, getOrCreateApiClient as aQ, isPermanentHttpError as aR, type SseMessage as aS, type JsonSseMessage as aT, type AppItem as aU, type ConnectionItem as aV, type ActionItem$1 as aW, type InputFieldItem as aX, type InfoFieldItem as aY, type RootFieldItem as aZ, type UserProfileItem as a_, type StaticResolver as aa, type DynamicListResolver as ab, type DynamicSearchResolver as ac, type FieldsResolver as ad, runInMethodScope as ae, runWithTelemetryContext as af, getCallerContext as ag, runWithCallerContext as ah, type CallerContext as ai, toSnakeCase as aj, toTitleCase as ak, batch as al, type BatchOptions as am, buildCapabilityMessage as an, logDeprecation as ao, resetDeprecationWarnings as ap, RelayRequestSchema as aq, RelayFetchSchema as ar, createZapierSdkWithoutRegistry as as, createSdk as at, createOptionsPlugin as au, createZapierCoreStack as av, type FunctionRegistryEntry as aw, type FunctionDeprecation as ax, BaseSdkOptionsSchema as ay, isCoreError as az, type Manifest as b, ZapierApiError as b$, type PaginatedSdkFunction as b0, AppKeyPropertySchema as b1, AppPropertySchema as b2, ActionTypePropertySchema as b3, ActionKeyPropertySchema as b4, ActionPropertySchema as b5, InputFieldPropertySchema as b6, ConnectionIdPropertySchema as b7, AuthenticationIdPropertySchema as b8, ConnectionPropertySchema as b9, type ConnectionProperty as bA, type AuthenticationIdProperty as bB, type InputsProperty as bC, type LimitProperty as bD, type OffsetProperty as bE, type OutputProperty as bF, type DebugProperty as bG, type ParamsProperty as bH, type ActionTimeoutMsProperty as bI, type TableProperty as bJ, type RecordProperty as bK, type RecordsProperty as bL, type FieldsProperty as bM, type AppsProperty as bN, type TablesProperty as bO, type ConnectionsProperty as bP, type TriggerInboxProperty as bQ, type TriggerInboxNameProperty as bR, type LeaseProperty as bS, type LeaseSecondsProperty as bT, type LeaseLimitProperty as bU, type ErrorOptions as bV, ZapierError as bW, ZapierValidationError as bX, ZapierUnknownError as bY, ZapierAuthenticationError as bZ, zapierAdaptError as b_, InputsPropertySchema as ba, LimitPropertySchema as bb, OffsetPropertySchema as bc, OutputPropertySchema as bd, DebugPropertySchema as be, ParamsPropertySchema as bf, ActionTimeoutMsPropertySchema as bg, TablePropertySchema as bh, RecordPropertySchema as bi, RecordsPropertySchema as bj, FieldsPropertySchema as bk, AppsPropertySchema as bl, TablesPropertySchema as bm, ConnectionsPropertySchema as bn, TriggerInboxPropertySchema as bo, TriggerInboxNamePropertySchema as bp, LeasePropertySchema as bq, LeaseSecondsPropertySchema as br, LeaseLimitPropertySchema as bs, type AppKeyProperty as bt, type AppProperty as bu, type ActionTypeProperty as bv, type ActionKeyProperty as bw, type ActionProperty as bx, type InputFieldProperty as by, type ConnectionIdProperty as bz, type UpdateManifestEntryResult as c, type GetProfilePluginProvides as c$, ZapierAppNotFoundError as c0, ZapierNotFoundError as c1, ZapierResourceNotFoundError as c2, ZapierConfigurationError as c3, ZapierBundleError as c4, ZapierTimeoutError as c5, ZapierActionError as c6, ZapierConflictError as c7, type RateLimitInfo as c8, ZapierRateLimitError as c9, createClientCredentialsPlugin as cA, type CreateClientCredentialsPluginProvides as cB, deleteClientCredentialsPlugin as cC, type DeleteClientCredentialsPluginProvides as cD, getAppPlugin as cE, type GetAppPluginProvides as cF, getActionPlugin as cG, type GetActionPluginProvides as cH, getConnectionPlugin as cI, type GetConnectionPluginProvides as cJ, findFirstConnectionPlugin as cK, type FindFirstConnectionPluginProvides as cL, findUniqueConnectionPlugin as cM, type FindUniqueConnectionPluginProvides as cN, CONTEXT_CACHE_TTL_MS as cO, CONTEXT_CACHE_MAX_SIZE as cP, runActionPlugin as cQ, type RunActionPluginProvides as cR, requestPlugin as cS, type RequestPluginProvides as cT, type ManifestPluginOptions as cU, getPreferredManifestEntryKey as cV, manifestPlugin as cW, type ManifestPluginProvides as cX, DEFAULT_CONFIG_PATH as cY, type ManifestEntry as cZ, getProfilePlugin as c_, type ApprovalStatus as ca, ZapierApprovalError as cb, ZapierRelayError as cc, formatErrorMessage as cd, type ApiError as ce, ZapierSignal as cf, appsPlugin as cg, type AppsPluginProvides as ch, type ActionExecutionOptions as ci, type AppFactoryInput as cj, fetchPlugin as ck, type FetchPluginProvides as cl, listAppsPlugin as cm, type ListAppsPluginProvides as cn, listActionsPlugin as co, type ListActionsPluginProvides as cp, listActionInputFieldsPlugin as cq, type ListActionInputFieldsPluginProvides as cr, listActionInputFieldChoicesPlugin as cs, type ListActionInputFieldChoicesPluginProvides as ct, getActionInputFieldsSchemaPlugin as cu, type GetActionInputFieldsSchemaPluginProvides as cv, listConnectionsPlugin as cw, type ListConnectionsPluginProvides as cx, listClientCredentialsPlugin as cy, type ListClientCredentialsPluginProvides as cz, type AddActionEntryOptions as d, getClientIdFromCredentials as d$, type ApiPluginOptions as d0, apiPlugin as d1, type ApiPluginProvides as d2, appKeyResolver as d3, actionTypeResolver as d4, actionKeyResolver as d5, connectionIdResolver as d6, connectionIdGenericResolver as d7, inputsResolver as d8, inputsAllOptionalResolver as d9, isCliLoginAvailable as dA, getTokenFromCliLogin as dB, resolveAuth as dC, resolveAuthToken as dD, invalidateCredentialsToken as dE, type ZapierCache as dF, type ZapierCacheEntry as dG, type ZapierCacheSetOptions as dH, createMemoryCache as dI, type SdkEvent as dJ, type AuthEvent as dK, type ApiEvent as dL, type LoadingEvent as dM, type EventCallback as dN, type Credentials as dO, type ResolvedCredentials as dP, type CredentialsObject as dQ, type ClientCredentialsObject as dR, type PkceCredentialsObject as dS, isClientCredentials as dT, isPkceCredentials as dU, isCredentialsObject as dV, isCredentialsFunction as dW, type ResolveCredentialsOptions as dX, resolveCredentialsFromEnv as dY, resolveCredentials as dZ, getBaseUrlFromCredentials as d_, inputFieldKeyResolver as da, clientCredentialsNameResolver as db, clientIdResolver as dc, tableIdResolver as dd, triggerInboxResolver as de, workflowIdResolver as df, durableRunIdResolver as dg, workflowVersionIdResolver as dh, workflowRunIdResolver as di, triggerMessagesResolver as dj, tableRecordIdResolver as dk, tableRecordIdsResolver as dl, tableFieldIdsResolver as dm, tableNameResolver as dn, tableFieldsResolver as dp, tableRecordsResolver as dq, tableUpdateRecordsResolver as dr, tableFiltersResolver as ds, tableSortResolver as dt, type ResolveAuthTokenOptions as du, AuthMechanism as dv, type ResolvedAuth as dw, clearTokenCache as dx, invalidateCachedToken as dy, injectCliLogin as dz, type AddActionEntryResult as e, createBaseEvent as e$, ClientCredentialsObjectSchema as e0, PkceCredentialsObjectSchema as e1, CredentialsObjectSchema as e2, ResolvedCredentialsSchema as e3, CredentialsFunctionSchema as e4, type CredentialsFunction as e5, CredentialsSchema as e6, ConnectionEntrySchema as e7, type ConnectionEntry as e8, ConnectionsMapSchema as e9, listTableFieldsPlugin as eA, type ListTableFieldsPluginProvides as eB, createTableFieldsPlugin as eC, type CreateTableFieldsPluginProvides as eD, deleteTableFieldsPlugin as eE, type DeleteTableFieldsPluginProvides as eF, getTableRecordPlugin as eG, type GetTableRecordPluginProvides as eH, listTableRecordsPlugin as eI, type ListTableRecordsPluginProvides as eJ, createTableRecordsPlugin as eK, type CreateTableRecordsPluginProvides as eL, deleteTableRecordsPlugin as eM, type DeleteTableRecordsPluginProvides as eN, updateTableRecordsPlugin as eO, type UpdateTableRecordsPluginProvides as eP, cleanupEventListeners as eQ, type EventEmissionConfig as eR, eventEmissionPlugin as eS, type EventEmissionProvides as eT, type EventContext as eU, type ApplicationLifecycleEventData as eV, type EnhancedErrorEventData as eW, type MethodCalledEventData as eX, buildApplicationLifecycleEvent as eY, buildErrorEventWithContext as eZ, buildErrorEvent as e_, type ConnectionsMap as ea, connectionsPlugin as eb, type ConnectionsPluginProvides as ec, ZAPIER_BASE_URL as ed, getZapierSdkService as ee, MAX_PAGE_LIMIT as ef, DEFAULT_PAGE_SIZE as eg, DEFAULT_ACTION_TIMEOUT_MS as eh, ZAPIER_MAX_NETWORK_RETRIES as ei, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ej, MAX_CONCURRENCY_LIMIT as ek, parseConcurrencyEnvVar as el, ZAPIER_MAX_CONCURRENT_REQUESTS as em, getZapierApprovalMode as en, getZapierOpenAutoModeApprovalsInBrowser as eo, getZapierDefaultApprovalMode as ep, DEFAULT_APPROVAL_TIMEOUT_MS as eq, DEFAULT_MAX_APPROVAL_RETRIES as er, listTablesPlugin as es, type ListTablesPluginProvides as et, getTablePlugin as eu, type GetTablePluginProvides as ev, createTablePlugin as ew, type CreateTablePluginProvides as ex, deleteTablePlugin as ey, type DeleteTablePluginProvides as ez, type ActionEntry as f, buildMethodCalledEvent as f0, type BaseEvent as f1, type MethodCalledEvent as f2, generateEventId as f3, getCurrentTimestamp as f4, getReleaseId as f5, getOsInfo as f6, getPlatformVersions as f7, isCi as f8, getCiPlatform as f9, getMemoryUsage as fa, getCpuTime as fb, getTtyContext as fc, getAgent as fd, createZapierSdk as fe, createZapierSdkStack as ff, type ZapierSdk as fg, 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 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type WithAddPlugin 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 };
|
|
@@ -3117,6 +3117,8 @@ interface BaseEvent {
|
|
|
3117
3117
|
release_id: string;
|
|
3118
3118
|
customuser_id?: number | null;
|
|
3119
3119
|
account_id?: number | null;
|
|
3120
|
+
client_id?: string | null;
|
|
3121
|
+
auth_mechanism?: string | null;
|
|
3120
3122
|
identity_id?: number | null;
|
|
3121
3123
|
visitor_id?: string | null;
|
|
3122
3124
|
correlation_id?: string | null;
|
|
@@ -3233,6 +3235,8 @@ interface TransportConfig {
|
|
|
3233
3235
|
interface EventContext {
|
|
3234
3236
|
customuser_id?: number | null;
|
|
3235
3237
|
account_id?: number | null;
|
|
3238
|
+
client_id?: string | null;
|
|
3239
|
+
auth_mechanism?: string | null;
|
|
3236
3240
|
identity_id?: number | null;
|
|
3237
3241
|
visitor_id?: string | null;
|
|
3238
3242
|
correlation_id?: string | null;
|
|
@@ -8361,6 +8365,18 @@ interface ResolveAuthTokenOptions {
|
|
|
8361
8365
|
*/
|
|
8362
8366
|
cache?: ZapierCache;
|
|
8363
8367
|
}
|
|
8368
|
+
declare enum AuthMechanism {
|
|
8369
|
+
ClientCredentials = "client_credentials",
|
|
8370
|
+
Jwt = "jwt",
|
|
8371
|
+
Token = "token",
|
|
8372
|
+
Pkce = "pkce",
|
|
8373
|
+
None = "none"
|
|
8374
|
+
}
|
|
8375
|
+
interface ResolvedAuth {
|
|
8376
|
+
token?: string;
|
|
8377
|
+
mechanism: AuthMechanism;
|
|
8378
|
+
clientId: string | null;
|
|
8379
|
+
}
|
|
8364
8380
|
/**
|
|
8365
8381
|
* Clear in-process caches. Useful for testing or to force the next
|
|
8366
8382
|
* resolve to re-import the default cache adapter. Does not touch
|
|
@@ -8423,7 +8439,8 @@ declare function isCliLoginAvailable(): boolean | undefined;
|
|
|
8423
8439
|
*/
|
|
8424
8440
|
declare function getTokenFromCliLogin(options: CliLoginOptions): Promise<string | undefined>;
|
|
8425
8441
|
/**
|
|
8426
|
-
* Resolves
|
|
8442
|
+
* Resolves auth from wherever it can be found, returning the token plus
|
|
8443
|
+
* metadata about how it was resolved.
|
|
8427
8444
|
*
|
|
8428
8445
|
* Resolution order:
|
|
8429
8446
|
* 1. Explicit credentials option (or deprecated token option)
|
|
@@ -8435,8 +8452,10 @@ declare function getTokenFromCliLogin(options: CliLoginOptions): Promise<string
|
|
|
8435
8452
|
* - Client credentials: Exchanged for an access token (with caching)
|
|
8436
8453
|
* - PKCE: Delegates to CLI login (throws if not available)
|
|
8437
8454
|
*
|
|
8438
|
-
*
|
|
8455
|
+
* When no auth can be resolved, returns a ResolvedAuth with
|
|
8456
|
+
* mechanism: None and no token.
|
|
8439
8457
|
*/
|
|
8458
|
+
declare function resolveAuth(options?: ResolveAuthTokenOptions): Promise<ResolvedAuth>;
|
|
8440
8459
|
declare function resolveAuthToken(options?: ResolveAuthTokenOptions): Promise<string | undefined>;
|
|
8441
8460
|
/**
|
|
8442
8461
|
* Invalidate the cached token for the given credentials, if applicable.
|
|
@@ -15596,4 +15615,4 @@ declare const registryPlugin: (sdk: {
|
|
|
15596
15615
|
};
|
|
15597
15616
|
}) => {};
|
|
15598
15617
|
|
|
15599
|
-
export { type ConnectionsResponse 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 ActionField as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionFieldChoice as V, type WaitForNewConnectionItem as W, type NeedsRequest as X, type NeedsResponse as Y, type ZapierSdkOptions as Z, type Connection as _, type PluginMeta as a, type SdkPage as a$, type UserProfile as a0, isPositional as a1, createFunction as a2, createPluginStack as a3, createCorePlugin as a4, addPlugin as a5, type FormattedItem as a6, type Resolver as a7, type ArrayResolver as a8, type ResolverMetadata as a9, getCoreErrorCode as aA, getCoreErrorCause as aB, CORE_ERROR_SYMBOL as aC, CoreErrorCode as aD, type Plugin as aE, type PluginProvides as aF, definePlugin as aG, createPluginMethod as aH, createPaginatedPluginMethod as aI, composePlugins as aJ, type ActionItem as aK, type ActionTypeItem as aL, registryPlugin as aM, type RequestOptions as aN, type PollOptions as aO, createZapierApi as aP, getOrCreateApiClient as aQ, isPermanentHttpError as aR, type SseMessage as aS, type JsonSseMessage as aT, type AppItem as aU, type ConnectionItem as aV, type ActionItem$1 as aW, type InputFieldItem as aX, type InfoFieldItem as aY, type RootFieldItem as aZ, type UserProfileItem as a_, type StaticResolver as aa, type DynamicListResolver as ab, type DynamicSearchResolver as ac, type FieldsResolver as ad, runInMethodScope as ae, runWithTelemetryContext as af, getCallerContext as ag, runWithCallerContext as ah, type CallerContext as ai, toSnakeCase as aj, toTitleCase as ak, batch as al, type BatchOptions as am, buildCapabilityMessage as an, logDeprecation as ao, resetDeprecationWarnings as ap, RelayRequestSchema as aq, RelayFetchSchema as ar, createZapierSdkWithoutRegistry as as, createSdk as at, createOptionsPlugin as au, createZapierCoreStack as av, type FunctionRegistryEntry as aw, type FunctionDeprecation as ax, BaseSdkOptionsSchema as ay, isCoreError as az, type Manifest as b, ZapierApiError as b$, type PaginatedSdkFunction as b0, AppKeyPropertySchema as b1, AppPropertySchema as b2, ActionTypePropertySchema as b3, ActionKeyPropertySchema as b4, ActionPropertySchema as b5, InputFieldPropertySchema as b6, ConnectionIdPropertySchema as b7, AuthenticationIdPropertySchema as b8, ConnectionPropertySchema as b9, type ConnectionProperty as bA, type AuthenticationIdProperty as bB, type InputsProperty as bC, type LimitProperty as bD, type OffsetProperty as bE, type OutputProperty as bF, type DebugProperty as bG, type ParamsProperty as bH, type ActionTimeoutMsProperty as bI, type TableProperty as bJ, type RecordProperty as bK, type RecordsProperty as bL, type FieldsProperty as bM, type AppsProperty as bN, type TablesProperty as bO, type ConnectionsProperty as bP, type TriggerInboxProperty as bQ, type TriggerInboxNameProperty as bR, type LeaseProperty as bS, type LeaseSecondsProperty as bT, type LeaseLimitProperty as bU, type ErrorOptions as bV, ZapierError as bW, ZapierValidationError as bX, ZapierUnknownError as bY, ZapierAuthenticationError as bZ, zapierAdaptError as b_, InputsPropertySchema as ba, LimitPropertySchema as bb, OffsetPropertySchema as bc, OutputPropertySchema as bd, DebugPropertySchema as be, ParamsPropertySchema as bf, ActionTimeoutMsPropertySchema as bg, TablePropertySchema as bh, RecordPropertySchema as bi, RecordsPropertySchema as bj, FieldsPropertySchema as bk, AppsPropertySchema as bl, TablesPropertySchema as bm, ConnectionsPropertySchema as bn, TriggerInboxPropertySchema as bo, TriggerInboxNamePropertySchema as bp, LeasePropertySchema as bq, LeaseSecondsPropertySchema as br, LeaseLimitPropertySchema as bs, type AppKeyProperty as bt, type AppProperty as bu, type ActionTypeProperty as bv, type ActionKeyProperty as bw, type ActionProperty as bx, type InputFieldProperty as by, type ConnectionIdProperty as bz, type UpdateManifestEntryResult as c, type GetProfilePluginProvides as c$, ZapierAppNotFoundError as c0, ZapierNotFoundError as c1, ZapierResourceNotFoundError as c2, ZapierConfigurationError as c3, ZapierBundleError as c4, ZapierTimeoutError as c5, ZapierActionError as c6, ZapierConflictError as c7, type RateLimitInfo as c8, ZapierRateLimitError as c9, createClientCredentialsPlugin as cA, type CreateClientCredentialsPluginProvides as cB, deleteClientCredentialsPlugin as cC, type DeleteClientCredentialsPluginProvides as cD, getAppPlugin as cE, type GetAppPluginProvides as cF, getActionPlugin as cG, type GetActionPluginProvides as cH, getConnectionPlugin as cI, type GetConnectionPluginProvides as cJ, findFirstConnectionPlugin as cK, type FindFirstConnectionPluginProvides as cL, findUniqueConnectionPlugin as cM, type FindUniqueConnectionPluginProvides as cN, CONTEXT_CACHE_TTL_MS as cO, CONTEXT_CACHE_MAX_SIZE as cP, runActionPlugin as cQ, type RunActionPluginProvides as cR, requestPlugin as cS, type RequestPluginProvides as cT, type ManifestPluginOptions as cU, getPreferredManifestEntryKey as cV, manifestPlugin as cW, type ManifestPluginProvides as cX, DEFAULT_CONFIG_PATH as cY, type ManifestEntry as cZ, getProfilePlugin as c_, type ApprovalStatus as ca, ZapierApprovalError as cb, ZapierRelayError as cc, formatErrorMessage as cd, type ApiError as ce, ZapierSignal as cf, appsPlugin as cg, type AppsPluginProvides as ch, type ActionExecutionOptions as ci, type AppFactoryInput as cj, fetchPlugin as ck, type FetchPluginProvides as cl, listAppsPlugin as cm, type ListAppsPluginProvides as cn, listActionsPlugin as co, type ListActionsPluginProvides as cp, listActionInputFieldsPlugin as cq, type ListActionInputFieldsPluginProvides as cr, listActionInputFieldChoicesPlugin as cs, type ListActionInputFieldChoicesPluginProvides as ct, getActionInputFieldsSchemaPlugin as cu, type GetActionInputFieldsSchemaPluginProvides as cv, listConnectionsPlugin as cw, type ListConnectionsPluginProvides as cx, listClientCredentialsPlugin as cy, type ListClientCredentialsPluginProvides as cz, type AddActionEntryOptions as d, CredentialsObjectSchema as d$, type ApiPluginOptions as d0, apiPlugin as d1, type ApiPluginProvides as d2, appKeyResolver as d3, actionTypeResolver as d4, actionKeyResolver as d5, connectionIdResolver as d6, connectionIdGenericResolver as d7, inputsResolver as d8, inputsAllOptionalResolver as d9, resolveAuthToken as dA, invalidateCredentialsToken as dB, type ZapierCache as dC, type ZapierCacheEntry as dD, type ZapierCacheSetOptions as dE, createMemoryCache as dF, type SdkEvent as dG, type AuthEvent as dH, type ApiEvent as dI, type LoadingEvent as dJ, type EventCallback as dK, type Credentials as dL, type ResolvedCredentials as dM, type CredentialsObject as dN, type ClientCredentialsObject as dO, type PkceCredentialsObject as dP, isClientCredentials as dQ, isPkceCredentials as dR, isCredentialsObject as dS, isCredentialsFunction as dT, type ResolveCredentialsOptions as dU, resolveCredentialsFromEnv as dV, resolveCredentials as dW, getBaseUrlFromCredentials as dX, getClientIdFromCredentials as dY, ClientCredentialsObjectSchema as dZ, PkceCredentialsObjectSchema as d_, inputFieldKeyResolver as da, clientCredentialsNameResolver as db, clientIdResolver as dc, tableIdResolver as dd, triggerInboxResolver as de, workflowIdResolver as df, durableRunIdResolver as dg, workflowVersionIdResolver as dh, workflowRunIdResolver as di, triggerMessagesResolver as dj, tableRecordIdResolver as dk, tableRecordIdsResolver as dl, tableFieldIdsResolver as dm, tableNameResolver as dn, tableFieldsResolver as dp, tableRecordsResolver as dq, tableUpdateRecordsResolver as dr, tableFiltersResolver as ds, tableSortResolver as dt, type ResolveAuthTokenOptions as du, clearTokenCache as dv, invalidateCachedToken as dw, injectCliLogin as dx, isCliLoginAvailable as dy, getTokenFromCliLogin as dz, type AddActionEntryResult as e, type MethodCalledEvent as e$, ResolvedCredentialsSchema as e0, CredentialsFunctionSchema as e1, type CredentialsFunction as e2, CredentialsSchema as e3, ConnectionEntrySchema as e4, type ConnectionEntry as e5, ConnectionsMapSchema as e6, type ConnectionsMap as e7, connectionsPlugin as e8, type ConnectionsPluginProvides as e9, type CreateTableFieldsPluginProvides as eA, deleteTableFieldsPlugin as eB, type DeleteTableFieldsPluginProvides as eC, getTableRecordPlugin as eD, type GetTableRecordPluginProvides as eE, listTableRecordsPlugin as eF, type ListTableRecordsPluginProvides as eG, createTableRecordsPlugin as eH, type CreateTableRecordsPluginProvides as eI, deleteTableRecordsPlugin as eJ, type DeleteTableRecordsPluginProvides as eK, updateTableRecordsPlugin as eL, type UpdateTableRecordsPluginProvides as eM, cleanupEventListeners as eN, type EventEmissionConfig as eO, eventEmissionPlugin as eP, type EventEmissionProvides as eQ, type EventContext as eR, type ApplicationLifecycleEventData as eS, type EnhancedErrorEventData as eT, type MethodCalledEventData as eU, buildApplicationLifecycleEvent as eV, buildErrorEventWithContext as eW, buildErrorEvent as eX, createBaseEvent as eY, buildMethodCalledEvent as eZ, type BaseEvent as e_, ZAPIER_BASE_URL as ea, getZapierSdkService as eb, MAX_PAGE_LIMIT as ec, DEFAULT_PAGE_SIZE as ed, DEFAULT_ACTION_TIMEOUT_MS as ee, ZAPIER_MAX_NETWORK_RETRIES as ef, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as eg, MAX_CONCURRENCY_LIMIT as eh, parseConcurrencyEnvVar as ei, ZAPIER_MAX_CONCURRENT_REQUESTS as ej, getZapierApprovalMode as ek, getZapierOpenAutoModeApprovalsInBrowser as el, getZapierDefaultApprovalMode as em, DEFAULT_APPROVAL_TIMEOUT_MS as en, DEFAULT_MAX_APPROVAL_RETRIES as eo, listTablesPlugin as ep, type ListTablesPluginProvides as eq, getTablePlugin as er, type GetTablePluginProvides as es, createTablePlugin as et, type CreateTablePluginProvides as eu, deleteTablePlugin as ev, type DeleteTablePluginProvides as ew, listTableFieldsPlugin as ex, type ListTableFieldsPluginProvides as ey, createTableFieldsPlugin as ez, type ActionEntry as f, generateEventId as f0, getCurrentTimestamp as f1, getReleaseId as f2, getOsInfo as f3, getPlatformVersions as f4, isCi as f5, getCiPlatform as f6, getMemoryUsage as f7, getCpuTime as f8, getTtyContext as f9, getAgent as fa, createZapierSdk as fb, createZapierSdkStack as fc, type ZapierSdk as fd, 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 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type WithAddPlugin 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 };
|
|
15618
|
+
export { type ConnectionsResponse 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 ActionField as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type ActionFieldChoice as V, type WaitForNewConnectionItem as W, type NeedsRequest as X, type NeedsResponse as Y, type ZapierSdkOptions as Z, type Connection as _, type PluginMeta as a, type SdkPage as a$, type UserProfile as a0, isPositional as a1, createFunction as a2, createPluginStack as a3, createCorePlugin as a4, addPlugin as a5, type FormattedItem as a6, type Resolver as a7, type ArrayResolver as a8, type ResolverMetadata as a9, getCoreErrorCode as aA, getCoreErrorCause as aB, CORE_ERROR_SYMBOL as aC, CoreErrorCode as aD, type Plugin as aE, type PluginProvides as aF, definePlugin as aG, createPluginMethod as aH, createPaginatedPluginMethod as aI, composePlugins as aJ, type ActionItem as aK, type ActionTypeItem as aL, registryPlugin as aM, type RequestOptions as aN, type PollOptions as aO, createZapierApi as aP, getOrCreateApiClient as aQ, isPermanentHttpError as aR, type SseMessage as aS, type JsonSseMessage as aT, type AppItem as aU, type ConnectionItem as aV, type ActionItem$1 as aW, type InputFieldItem as aX, type InfoFieldItem as aY, type RootFieldItem as aZ, type UserProfileItem as a_, type StaticResolver as aa, type DynamicListResolver as ab, type DynamicSearchResolver as ac, type FieldsResolver as ad, runInMethodScope as ae, runWithTelemetryContext as af, getCallerContext as ag, runWithCallerContext as ah, type CallerContext as ai, toSnakeCase as aj, toTitleCase as ak, batch as al, type BatchOptions as am, buildCapabilityMessage as an, logDeprecation as ao, resetDeprecationWarnings as ap, RelayRequestSchema as aq, RelayFetchSchema as ar, createZapierSdkWithoutRegistry as as, createSdk as at, createOptionsPlugin as au, createZapierCoreStack as av, type FunctionRegistryEntry as aw, type FunctionDeprecation as ax, BaseSdkOptionsSchema as ay, isCoreError as az, type Manifest as b, ZapierApiError as b$, type PaginatedSdkFunction as b0, AppKeyPropertySchema as b1, AppPropertySchema as b2, ActionTypePropertySchema as b3, ActionKeyPropertySchema as b4, ActionPropertySchema as b5, InputFieldPropertySchema as b6, ConnectionIdPropertySchema as b7, AuthenticationIdPropertySchema as b8, ConnectionPropertySchema as b9, type ConnectionProperty as bA, type AuthenticationIdProperty as bB, type InputsProperty as bC, type LimitProperty as bD, type OffsetProperty as bE, type OutputProperty as bF, type DebugProperty as bG, type ParamsProperty as bH, type ActionTimeoutMsProperty as bI, type TableProperty as bJ, type RecordProperty as bK, type RecordsProperty as bL, type FieldsProperty as bM, type AppsProperty as bN, type TablesProperty as bO, type ConnectionsProperty as bP, type TriggerInboxProperty as bQ, type TriggerInboxNameProperty as bR, type LeaseProperty as bS, type LeaseSecondsProperty as bT, type LeaseLimitProperty as bU, type ErrorOptions as bV, ZapierError as bW, ZapierValidationError as bX, ZapierUnknownError as bY, ZapierAuthenticationError as bZ, zapierAdaptError as b_, InputsPropertySchema as ba, LimitPropertySchema as bb, OffsetPropertySchema as bc, OutputPropertySchema as bd, DebugPropertySchema as be, ParamsPropertySchema as bf, ActionTimeoutMsPropertySchema as bg, TablePropertySchema as bh, RecordPropertySchema as bi, RecordsPropertySchema as bj, FieldsPropertySchema as bk, AppsPropertySchema as bl, TablesPropertySchema as bm, ConnectionsPropertySchema as bn, TriggerInboxPropertySchema as bo, TriggerInboxNamePropertySchema as bp, LeasePropertySchema as bq, LeaseSecondsPropertySchema as br, LeaseLimitPropertySchema as bs, type AppKeyProperty as bt, type AppProperty as bu, type ActionTypeProperty as bv, type ActionKeyProperty as bw, type ActionProperty as bx, type InputFieldProperty as by, type ConnectionIdProperty as bz, type UpdateManifestEntryResult as c, type GetProfilePluginProvides as c$, ZapierAppNotFoundError as c0, ZapierNotFoundError as c1, ZapierResourceNotFoundError as c2, ZapierConfigurationError as c3, ZapierBundleError as c4, ZapierTimeoutError as c5, ZapierActionError as c6, ZapierConflictError as c7, type RateLimitInfo as c8, ZapierRateLimitError as c9, createClientCredentialsPlugin as cA, type CreateClientCredentialsPluginProvides as cB, deleteClientCredentialsPlugin as cC, type DeleteClientCredentialsPluginProvides as cD, getAppPlugin as cE, type GetAppPluginProvides as cF, getActionPlugin as cG, type GetActionPluginProvides as cH, getConnectionPlugin as cI, type GetConnectionPluginProvides as cJ, findFirstConnectionPlugin as cK, type FindFirstConnectionPluginProvides as cL, findUniqueConnectionPlugin as cM, type FindUniqueConnectionPluginProvides as cN, CONTEXT_CACHE_TTL_MS as cO, CONTEXT_CACHE_MAX_SIZE as cP, runActionPlugin as cQ, type RunActionPluginProvides as cR, requestPlugin as cS, type RequestPluginProvides as cT, type ManifestPluginOptions as cU, getPreferredManifestEntryKey as cV, manifestPlugin as cW, type ManifestPluginProvides as cX, DEFAULT_CONFIG_PATH as cY, type ManifestEntry as cZ, getProfilePlugin as c_, type ApprovalStatus as ca, ZapierApprovalError as cb, ZapierRelayError as cc, formatErrorMessage as cd, type ApiError as ce, ZapierSignal as cf, appsPlugin as cg, type AppsPluginProvides as ch, type ActionExecutionOptions as ci, type AppFactoryInput as cj, fetchPlugin as ck, type FetchPluginProvides as cl, listAppsPlugin as cm, type ListAppsPluginProvides as cn, listActionsPlugin as co, type ListActionsPluginProvides as cp, listActionInputFieldsPlugin as cq, type ListActionInputFieldsPluginProvides as cr, listActionInputFieldChoicesPlugin as cs, type ListActionInputFieldChoicesPluginProvides as ct, getActionInputFieldsSchemaPlugin as cu, type GetActionInputFieldsSchemaPluginProvides as cv, listConnectionsPlugin as cw, type ListConnectionsPluginProvides as cx, listClientCredentialsPlugin as cy, type ListClientCredentialsPluginProvides as cz, type AddActionEntryOptions as d, getClientIdFromCredentials as d$, type ApiPluginOptions as d0, apiPlugin as d1, type ApiPluginProvides as d2, appKeyResolver as d3, actionTypeResolver as d4, actionKeyResolver as d5, connectionIdResolver as d6, connectionIdGenericResolver as d7, inputsResolver as d8, inputsAllOptionalResolver as d9, isCliLoginAvailable as dA, getTokenFromCliLogin as dB, resolveAuth as dC, resolveAuthToken as dD, invalidateCredentialsToken as dE, type ZapierCache as dF, type ZapierCacheEntry as dG, type ZapierCacheSetOptions as dH, createMemoryCache as dI, type SdkEvent as dJ, type AuthEvent as dK, type ApiEvent as dL, type LoadingEvent as dM, type EventCallback as dN, type Credentials as dO, type ResolvedCredentials as dP, type CredentialsObject as dQ, type ClientCredentialsObject as dR, type PkceCredentialsObject as dS, isClientCredentials as dT, isPkceCredentials as dU, isCredentialsObject as dV, isCredentialsFunction as dW, type ResolveCredentialsOptions as dX, resolveCredentialsFromEnv as dY, resolveCredentials as dZ, getBaseUrlFromCredentials as d_, inputFieldKeyResolver as da, clientCredentialsNameResolver as db, clientIdResolver as dc, tableIdResolver as dd, triggerInboxResolver as de, workflowIdResolver as df, durableRunIdResolver as dg, workflowVersionIdResolver as dh, workflowRunIdResolver as di, triggerMessagesResolver as dj, tableRecordIdResolver as dk, tableRecordIdsResolver as dl, tableFieldIdsResolver as dm, tableNameResolver as dn, tableFieldsResolver as dp, tableRecordsResolver as dq, tableUpdateRecordsResolver as dr, tableFiltersResolver as ds, tableSortResolver as dt, type ResolveAuthTokenOptions as du, AuthMechanism as dv, type ResolvedAuth as dw, clearTokenCache as dx, invalidateCachedToken as dy, injectCliLogin as dz, type AddActionEntryResult as e, createBaseEvent as e$, ClientCredentialsObjectSchema as e0, PkceCredentialsObjectSchema as e1, CredentialsObjectSchema as e2, ResolvedCredentialsSchema as e3, CredentialsFunctionSchema as e4, type CredentialsFunction as e5, CredentialsSchema as e6, ConnectionEntrySchema as e7, type ConnectionEntry as e8, ConnectionsMapSchema as e9, listTableFieldsPlugin as eA, type ListTableFieldsPluginProvides as eB, createTableFieldsPlugin as eC, type CreateTableFieldsPluginProvides as eD, deleteTableFieldsPlugin as eE, type DeleteTableFieldsPluginProvides as eF, getTableRecordPlugin as eG, type GetTableRecordPluginProvides as eH, listTableRecordsPlugin as eI, type ListTableRecordsPluginProvides as eJ, createTableRecordsPlugin as eK, type CreateTableRecordsPluginProvides as eL, deleteTableRecordsPlugin as eM, type DeleteTableRecordsPluginProvides as eN, updateTableRecordsPlugin as eO, type UpdateTableRecordsPluginProvides as eP, cleanupEventListeners as eQ, type EventEmissionConfig as eR, eventEmissionPlugin as eS, type EventEmissionProvides as eT, type EventContext as eU, type ApplicationLifecycleEventData as eV, type EnhancedErrorEventData as eW, type MethodCalledEventData as eX, buildApplicationLifecycleEvent as eY, buildErrorEventWithContext as eZ, buildErrorEvent as e_, type ConnectionsMap as ea, connectionsPlugin as eb, type ConnectionsPluginProvides as ec, ZAPIER_BASE_URL as ed, getZapierSdkService as ee, MAX_PAGE_LIMIT as ef, DEFAULT_PAGE_SIZE as eg, DEFAULT_ACTION_TIMEOUT_MS as eh, ZAPIER_MAX_NETWORK_RETRIES as ei, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ej, MAX_CONCURRENCY_LIMIT as ek, parseConcurrencyEnvVar as el, ZAPIER_MAX_CONCURRENT_REQUESTS as em, getZapierApprovalMode as en, getZapierOpenAutoModeApprovalsInBrowser as eo, getZapierDefaultApprovalMode as ep, DEFAULT_APPROVAL_TIMEOUT_MS as eq, DEFAULT_MAX_APPROVAL_RETRIES as er, listTablesPlugin as es, type ListTablesPluginProvides as et, getTablePlugin as eu, type GetTablePluginProvides as ev, createTablePlugin as ew, type CreateTablePluginProvides as ex, deleteTablePlugin as ey, type DeleteTablePluginProvides as ez, type ActionEntry as f, buildMethodCalledEvent as f0, type BaseEvent as f1, type MethodCalledEvent as f2, generateEventId as f3, getCurrentTimestamp as f4, getReleaseId as f5, getOsInfo as f6, getPlatformVersions as f7, isCi as f8, getCiPlatform as f9, getMemoryUsage as fa, getCpuTime as fb, getTtyContext as fc, getAgent as fd, createZapierSdk as fe, createZapierSdkStack as ff, type ZapierSdk as fg, 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 as m, type WatchTriggerInboxOptions as n, type ActionProxy as o, type ZapierSdkApps as p, type WithAddPlugin 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 };
|