@zapier/zapier-sdk 0.112.5 → 0.113.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 +37 -0
- package/README.md +22 -3
- package/dist/beta.cjs +1112 -0
- package/dist/beta.d.mts +10939 -0
- package/dist/beta.d.ts +10939 -0
- package/dist/beta.mjs +3 -0
- package/dist/chunk-FF6YC735.cjs +21 -0
- package/dist/{chunk-FAQEVLJR.cjs → chunk-GQKHLPXO.cjs} +48 -3
- package/dist/chunk-ORPCPBJR.mjs +18 -0
- package/dist/{chunk-ON6EDGNR.mjs → chunk-UCCI3JDP.mjs} +38 -6
- package/dist/experimental.cjs +401 -383
- package/dist/experimental.d.mts +294 -274
- package/dist/experimental.d.ts +294 -274
- package/dist/experimental.mjs +10 -8
- package/dist/{index-BrxiLlQi.d.mts → index-CJoDlPxK.d.mts} +24 -1
- package/dist/{index-BrxiLlQi.d.ts → index-CJoDlPxK.d.ts} +24 -1
- package/dist/index.cjs +288 -272
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +13 -2
package/dist/beta.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { createZapierSdk, zapierBetaSdkPlugin } from './chunk-ORPCPBJR.mjs';
|
|
2
|
+
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, STABILITY_DEFINITIONS, STABILITY_LEVELS, STABILITY_TITLES, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, applyStabilityLabel, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createMemoryCache, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistry, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-UCCI3JDP.mjs';
|
|
3
|
+
import './chunk-Y6FXYEAI.mjs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGQKHLPXO_cjs = require('./chunk-GQKHLPXO.cjs');
|
|
4
|
+
var kitcore = require('@zapier/kitcore');
|
|
5
|
+
|
|
6
|
+
var zapierBetaSdkPlugin = kitcore.definePlugin({
|
|
7
|
+
namespace: "zapier",
|
|
8
|
+
name: "beta-sdk",
|
|
9
|
+
exports: [chunkGQKHLPXO_cjs.zapierSdkPlugin]
|
|
10
|
+
});
|
|
11
|
+
function createZapierSdk(options = {}) {
|
|
12
|
+
return kitcore.createSdk(zapierBetaSdkPlugin, {
|
|
13
|
+
configuration: {
|
|
14
|
+
[chunkGQKHLPXO_cjs.SDK_OPTIONS_ID]: options,
|
|
15
|
+
[kitcore.CORE_OPTIONS_ID]: chunkGQKHLPXO_cjs.zapierCoreOptions
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
exports.createZapierSdk = createZapierSdk;
|
|
21
|
+
exports.zapierBetaSdkPlugin = zapierBetaSdkPlugin;
|
|
@@ -1230,6 +1230,7 @@ function emitOnce(onEvent, event) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
var { logDeprecation, resetDeprecationWarnings } = kitcore.createDeprecationLogger("zapier-sdk");
|
|
1233
|
+
var { logStabilityNotice, resetStabilityNotices } = kitcore.createStabilityNoticeLogger("zapier-sdk");
|
|
1233
1234
|
|
|
1234
1235
|
// src/utils/url-utils.ts
|
|
1235
1236
|
function withSearchParams({
|
|
@@ -2818,7 +2819,7 @@ function logRouteOverride({
|
|
|
2818
2819
|
}
|
|
2819
2820
|
|
|
2820
2821
|
// src/sdk-version.ts
|
|
2821
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2822
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.113.0" : void 0) || "unknown";
|
|
2822
2823
|
|
|
2823
2824
|
// src/utils/open-url.ts
|
|
2824
2825
|
var nodePrefix = "node:";
|
|
@@ -7533,7 +7534,21 @@ var RawImplementationMetaLookupSchema = implementations.ImplementationMetaSchema
|
|
|
7533
7534
|
classification: zod.z.string().nullish(),
|
|
7534
7535
|
api_docs_url: zod.z.string().nullish(),
|
|
7535
7536
|
image: zod.z.string().nullish(),
|
|
7536
|
-
visibility: zod.z.string().nullish()
|
|
7537
|
+
visibility: zod.z.string().nullish(),
|
|
7538
|
+
// The lookup route builds its response dict by hand and falls back to `""`
|
|
7539
|
+
// for anything it cannot fill, so `age_in_days` arrives as an empty string
|
|
7540
|
+
// for every implementation with no backing service. Read that sentinel as
|
|
7541
|
+
// "unknown" rather than coercing it: `Number("")` is `0`, which would claim
|
|
7542
|
+
// the app launched today.
|
|
7543
|
+
age_in_days: zod.z.preprocess(
|
|
7544
|
+
(value) => value === "" ? void 0 : value,
|
|
7545
|
+
zod.z.number().optional()
|
|
7546
|
+
),
|
|
7547
|
+
// Same route, same reason as the nullish strings above: `version` is read
|
|
7548
|
+
// off the implementation with a `None` default. Fold it back to `undefined`
|
|
7549
|
+
// because `normalizeAppItem` passes it on as a plain optional string — and
|
|
7550
|
+
// then overwrites it with the version parsed out of `id`.
|
|
7551
|
+
version: zod.z.preprocess((value) => value ?? void 0, zod.z.string().optional())
|
|
7537
7552
|
});
|
|
7538
7553
|
var RawImplementationsMetaLookupResponseSchema = implementations.ImplementationsMetaResponseSchema.extend({
|
|
7539
7554
|
results: zod.z.array(RawImplementationMetaLookupSchema)
|
|
@@ -9182,12 +9197,29 @@ var getProfilePlugin = kitcore.defineMethod({
|
|
|
9182
9197
|
}
|
|
9183
9198
|
});
|
|
9184
9199
|
|
|
9200
|
+
// src/stability.ts
|
|
9201
|
+
var STABILITY_DEFINITIONS = {
|
|
9202
|
+
stable: "The surface we intend to keep. While the SDK is in Open Beta (0.x), a breaking change can still land in a minor release; we deprecate first where we can, and every one is called out in the changelog with a migration note.",
|
|
9203
|
+
beta: "Functionally complete and ready to build against, but the shape may still change as it settles. Changes land in minor releases with a changelog migration note, without a deprecation period.",
|
|
9204
|
+
experimental: "Still being designed; may change shape or disappear in any release, without notice."
|
|
9205
|
+
};
|
|
9206
|
+
|
|
9185
9207
|
// src/core-options.ts
|
|
9186
9208
|
var zapierCoreOptions = {
|
|
9187
9209
|
adaptError: zapierAdaptError,
|
|
9188
9210
|
// Every deprecated-method hit is signalled; the zapier-sdk deduping logger
|
|
9189
9211
|
// is the policy (once per process) and the brand.
|
|
9190
|
-
logDeprecation: ({ methodName, deprecation }) => logDeprecation(`${methodName}() is deprecated. ${deprecation.message}`)
|
|
9212
|
+
logDeprecation: ({ methodName, deprecation }) => logDeprecation(`${methodName}() is deprecated. ${deprecation.message}`),
|
|
9213
|
+
// The stability sibling: every surface call of a beta / experimental
|
|
9214
|
+
// method warns, once per process, through the same branded channel. The
|
|
9215
|
+
// detail sentence is the tier's consumer contract (STABILITY_DEFINITIONS),
|
|
9216
|
+
// so the runtime warning matches the docs and README notes verbatim.
|
|
9217
|
+
logStabilityNotice: ({ methodName, stability }) => {
|
|
9218
|
+
if (stability === "stable") return;
|
|
9219
|
+
logStabilityNotice(
|
|
9220
|
+
`${methodName}() is marked ${stability}. ${STABILITY_DEFINITIONS[stability]}`
|
|
9221
|
+
);
|
|
9222
|
+
}
|
|
9191
9223
|
};
|
|
9192
9224
|
var GetConnectionStartUrlSchema = zod.z.object({
|
|
9193
9225
|
app: AppPropertySchema
|
|
@@ -13257,10 +13289,22 @@ Object.defineProperty(exports, "CoreSignal", {
|
|
|
13257
13289
|
enumerable: true,
|
|
13258
13290
|
get: function () { return kitcore.CoreSignal; }
|
|
13259
13291
|
});
|
|
13292
|
+
Object.defineProperty(exports, "STABILITY_LEVELS", {
|
|
13293
|
+
enumerable: true,
|
|
13294
|
+
get: function () { return kitcore.STABILITY_LEVELS; }
|
|
13295
|
+
});
|
|
13296
|
+
Object.defineProperty(exports, "STABILITY_TITLES", {
|
|
13297
|
+
enumerable: true,
|
|
13298
|
+
get: function () { return kitcore.STABILITY_TITLES; }
|
|
13299
|
+
});
|
|
13260
13300
|
Object.defineProperty(exports, "addPlugin", {
|
|
13261
13301
|
enumerable: true,
|
|
13262
13302
|
get: function () { return kitcore.addPlugin; }
|
|
13263
13303
|
});
|
|
13304
|
+
Object.defineProperty(exports, "applyStabilityLabel", {
|
|
13305
|
+
enumerable: true,
|
|
13306
|
+
get: function () { return kitcore.applyStabilityLabel; }
|
|
13307
|
+
});
|
|
13264
13308
|
Object.defineProperty(exports, "createController", {
|
|
13265
13309
|
enumerable: true,
|
|
13266
13310
|
get: function () { return kitcore.createController; }
|
|
@@ -13441,6 +13485,7 @@ exports.RelayRequestSchema = RelayRequestSchema;
|
|
|
13441
13485
|
exports.ResolvedCredentialsSchema = ResolvedCredentialsSchema;
|
|
13442
13486
|
exports.SDK_OPTIONS_ID = SDK_OPTIONS_ID;
|
|
13443
13487
|
exports.SDK_VERSION = SDK_VERSION;
|
|
13488
|
+
exports.STABILITY_DEFINITIONS = STABILITY_DEFINITIONS;
|
|
13444
13489
|
exports.TablePropertySchema = TablePropertySchema;
|
|
13445
13490
|
exports.TablesPropertySchema = TablesPropertySchema;
|
|
13446
13491
|
exports.TriggerInboxKeyPropertySchema = TriggerInboxKeyPropertySchema;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { zapierSdkPlugin, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-UCCI3JDP.mjs';
|
|
2
|
+
import { definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
3
|
+
|
|
4
|
+
var zapierBetaSdkPlugin = definePlugin({
|
|
5
|
+
namespace: "zapier",
|
|
6
|
+
name: "beta-sdk",
|
|
7
|
+
exports: [zapierSdkPlugin]
|
|
8
|
+
});
|
|
9
|
+
function createZapierSdk(options = {}) {
|
|
10
|
+
return createSdk(zapierBetaSdkPlugin, {
|
|
11
|
+
configuration: {
|
|
12
|
+
[SDK_OPTIONS_ID]: options,
|
|
13
|
+
[CORE_OPTIONS_ID]: zapierCoreOptions
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { createZapierSdk, zapierBetaSdkPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __require } from './chunk-Y6FXYEAI.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { withPositional, createDeprecationLogger, createAsyncContext, declareOptionalProperty, defineProperty, definePlugin, sendHttpRequestPlugin, retryHttpRequestPlugin, declareProperty, defineMethod, coreOptionsPluginRef, createValidator, defineFormatter, declareMethod, defineResolver, concatLists, openEnum, defineHook, getRegistryPlugin, paginate, toSnakeCase, isCoreError, toTitleCase, CORE_ERROR_SYMBOL, CoreErrorCode, CORE_SIGNAL_SYMBOL, isCoreSignal, createSdk, CORE_OPTIONS_ID, resolvePlugin } from '@zapier/kitcore';
|
|
4
|
-
export { CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, addPlugin, createController, createSdk, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, disposeSdk, getContext, getCoreErrorCause, getCoreErrorCode, getNegatable, getRegistry, getRegistryPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isPositional, omitExports, resolvePlugin, runInMethodScope, runWithTelemetryContext, selectExports, toSnakeCase, toTitleCase } from '@zapier/kitcore';
|
|
3
|
+
import { withPositional, createDeprecationLogger, createStabilityNoticeLogger, createAsyncContext, declareOptionalProperty, defineProperty, definePlugin, sendHttpRequestPlugin, retryHttpRequestPlugin, declareProperty, defineMethod, coreOptionsPluginRef, createValidator, defineFormatter, declareMethod, defineResolver, concatLists, openEnum, defineHook, getRegistryPlugin, paginate, toSnakeCase, isCoreError, toTitleCase, CORE_ERROR_SYMBOL, CoreErrorCode, CORE_SIGNAL_SYMBOL, isCoreSignal, createSdk, CORE_OPTIONS_ID, resolvePlugin } from '@zapier/kitcore';
|
|
4
|
+
export { CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, STABILITY_LEVELS, STABILITY_TITLES, addPlugin, applyStabilityLabel, createController, createSdk, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, disposeSdk, getContext, getCoreErrorCause, getCoreErrorCode, getNegatable, getRegistry, getRegistryPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isPositional, omitExports, resolvePlugin, runInMethodScope, runWithTelemetryContext, selectExports, toSnakeCase, toTitleCase } from '@zapier/kitcore';
|
|
5
5
|
import { ConnectionItemSchema as ConnectionItemSchema$1, ConnectionSchema, ConnectionsResponseSchema, ListConnectionsQuerySchema as ListConnectionsQuerySchema$1 } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
6
6
|
import { buildHttpRequestContext, buildActionRunContext } from '@zapier/policy-context';
|
|
7
7
|
import { ListAppsQuerySchema, AppItemSchema as AppItemSchema$1 } from '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
@@ -1229,6 +1229,7 @@ function emitOnce(onEvent, event) {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
var { logDeprecation, resetDeprecationWarnings } = createDeprecationLogger("zapier-sdk");
|
|
1232
|
+
var { logStabilityNotice, resetStabilityNotices } = createStabilityNoticeLogger("zapier-sdk");
|
|
1232
1233
|
|
|
1233
1234
|
// src/utils/url-utils.ts
|
|
1234
1235
|
function withSearchParams({
|
|
@@ -2817,7 +2818,7 @@ function logRouteOverride({
|
|
|
2817
2818
|
}
|
|
2818
2819
|
|
|
2819
2820
|
// src/sdk-version.ts
|
|
2820
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2821
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.113.0" : void 0) || "unknown";
|
|
2821
2822
|
|
|
2822
2823
|
// src/utils/open-url.ts
|
|
2823
2824
|
var nodePrefix = "node:";
|
|
@@ -7532,7 +7533,21 @@ var RawImplementationMetaLookupSchema = ImplementationMetaSchema.extend({
|
|
|
7532
7533
|
classification: z.string().nullish(),
|
|
7533
7534
|
api_docs_url: z.string().nullish(),
|
|
7534
7535
|
image: z.string().nullish(),
|
|
7535
|
-
visibility: z.string().nullish()
|
|
7536
|
+
visibility: z.string().nullish(),
|
|
7537
|
+
// The lookup route builds its response dict by hand and falls back to `""`
|
|
7538
|
+
// for anything it cannot fill, so `age_in_days` arrives as an empty string
|
|
7539
|
+
// for every implementation with no backing service. Read that sentinel as
|
|
7540
|
+
// "unknown" rather than coercing it: `Number("")` is `0`, which would claim
|
|
7541
|
+
// the app launched today.
|
|
7542
|
+
age_in_days: z.preprocess(
|
|
7543
|
+
(value) => value === "" ? void 0 : value,
|
|
7544
|
+
z.number().optional()
|
|
7545
|
+
),
|
|
7546
|
+
// Same route, same reason as the nullish strings above: `version` is read
|
|
7547
|
+
// off the implementation with a `None` default. Fold it back to `undefined`
|
|
7548
|
+
// because `normalizeAppItem` passes it on as a plain optional string — and
|
|
7549
|
+
// then overwrites it with the version parsed out of `id`.
|
|
7550
|
+
version: z.preprocess((value) => value ?? void 0, z.string().optional())
|
|
7536
7551
|
});
|
|
7537
7552
|
var RawImplementationsMetaLookupResponseSchema = ImplementationsMetaResponseSchema.extend({
|
|
7538
7553
|
results: z.array(RawImplementationMetaLookupSchema)
|
|
@@ -9181,12 +9196,29 @@ var getProfilePlugin = defineMethod({
|
|
|
9181
9196
|
}
|
|
9182
9197
|
});
|
|
9183
9198
|
|
|
9199
|
+
// src/stability.ts
|
|
9200
|
+
var STABILITY_DEFINITIONS = {
|
|
9201
|
+
stable: "The surface we intend to keep. While the SDK is in Open Beta (0.x), a breaking change can still land in a minor release; we deprecate first where we can, and every one is called out in the changelog with a migration note.",
|
|
9202
|
+
beta: "Functionally complete and ready to build against, but the shape may still change as it settles. Changes land in minor releases with a changelog migration note, without a deprecation period.",
|
|
9203
|
+
experimental: "Still being designed; may change shape or disappear in any release, without notice."
|
|
9204
|
+
};
|
|
9205
|
+
|
|
9184
9206
|
// src/core-options.ts
|
|
9185
9207
|
var zapierCoreOptions = {
|
|
9186
9208
|
adaptError: zapierAdaptError,
|
|
9187
9209
|
// Every deprecated-method hit is signalled; the zapier-sdk deduping logger
|
|
9188
9210
|
// is the policy (once per process) and the brand.
|
|
9189
|
-
logDeprecation: ({ methodName, deprecation }) => logDeprecation(`${methodName}() is deprecated. ${deprecation.message}`)
|
|
9211
|
+
logDeprecation: ({ methodName, deprecation }) => logDeprecation(`${methodName}() is deprecated. ${deprecation.message}`),
|
|
9212
|
+
// The stability sibling: every surface call of a beta / experimental
|
|
9213
|
+
// method warns, once per process, through the same branded channel. The
|
|
9214
|
+
// detail sentence is the tier's consumer contract (STABILITY_DEFINITIONS),
|
|
9215
|
+
// so the runtime warning matches the docs and README notes verbatim.
|
|
9216
|
+
logStabilityNotice: ({ methodName, stability }) => {
|
|
9217
|
+
if (stability === "stable") return;
|
|
9218
|
+
logStabilityNotice(
|
|
9219
|
+
`${methodName}() is marked ${stability}. ${STABILITY_DEFINITIONS[stability]}`
|
|
9220
|
+
);
|
|
9221
|
+
}
|
|
9190
9222
|
};
|
|
9191
9223
|
var GetConnectionStartUrlSchema = z.object({
|
|
9192
9224
|
app: AppPropertySchema
|
|
@@ -13224,4 +13256,4 @@ function describeThrown(error) {
|
|
|
13224
13256
|
}
|
|
13225
13257
|
}
|
|
13226
13258
|
|
|
13227
|
-
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, SDK_VERSION, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createMemoryCache, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, extractErrorDetail, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, runActionPlugin, runWithCallerContext, sdkOptionsPluginRef, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|
|
13259
|
+
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, SDK_VERSION, STABILITY_DEFINITIONS, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createMemoryCache, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, extractErrorDetail, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, runActionPlugin, runWithCallerContext, sdkOptionsPluginRef, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|