@zapier/zapier-sdk 0.54.1 → 0.55.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 +10 -0
- package/dist/experimental.cjs +22 -13
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.mjs +22 -13
- package/dist/{index-SDDmBk2j.d.mts → index-DjQ4XDAV.d.mts} +7 -0
- package/dist/{index-SDDmBk2j.d.ts → index-DjQ4XDAV.d.ts} +7 -0
- package/dist/index.cjs +22 -13
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +22 -13
- package/dist/resolvers/actionKey.d.ts.map +1 -1
- package/dist/resolvers/actionKey.js +2 -1
- package/dist/resolvers/appKey.d.ts.map +1 -1
- package/dist/resolvers/appKey.js +2 -3
- package/dist/resolvers/clientId.js +1 -1
- package/dist/resolvers/connectionId.js +1 -1
- package/dist/resolvers/inputFieldKey.d.ts.map +1 -1
- package/dist/resolvers/inputFieldKey.js +5 -1
- package/dist/resolvers/tableFieldIds.d.ts.map +1 -1
- package/dist/resolvers/tableFieldIds.js +2 -1
- package/dist/resolvers/tableId.js +1 -1
- package/dist/resolvers/tableRecordId.d.ts.map +1 -1
- package/dist/resolvers/tableRecordId.js +4 -3
- package/dist/resolvers/triggerInbox.d.ts.map +1 -1
- package/dist/resolvers/triggerInbox.js +2 -1
- package/dist/resolvers/triggerMessages.d.ts.map +1 -1
- package/dist/resolvers/triggerMessages.js +2 -1
- package/dist/utils/schema-utils.d.ts +7 -0
- package/dist/utils/schema-utils.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.55.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ce779d1: Add `hint?: string | string[]` to `PromptConfig.choices`. The CLI renders it after the choice's `name` as dimmed parens; an unset `hint` with a primitive `value` auto-renders the value.
|
|
8
|
+
|
|
9
|
+
All built-in resolvers migrate to the new shape, so existing dropdowns get small visual cleanups (dim parens, no `ID:` prefix, dash converted to parens, em-dash in `tableRecordId` gone).
|
|
10
|
+
|
|
11
|
+
Plugin authors who embed the value in `name` (e.g. `"Foo (${id})"`) should drop the embedded parens; the auto-default appends a second otherwise.
|
|
12
|
+
|
|
3
13
|
## 0.54.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/experimental.cjs
CHANGED
|
@@ -2881,7 +2881,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
2883
|
// src/sdk-version.ts
|
|
2884
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2884
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.55.0" : void 0) || "unknown";
|
|
2885
2885
|
|
|
2886
2886
|
// src/utils/open-url.ts
|
|
2887
2887
|
var nodePrefix = "node:";
|
|
@@ -3978,7 +3978,8 @@ var appKeyResolver = {
|
|
|
3978
3978
|
name: "app",
|
|
3979
3979
|
message: "Select app:",
|
|
3980
3980
|
choices: apps.map((app) => ({
|
|
3981
|
-
name: app.title
|
|
3981
|
+
name: app.title || app.key,
|
|
3982
|
+
hint: app.title ? getAppKeyList(app) : void 0,
|
|
3982
3983
|
value: app.key
|
|
3983
3984
|
}))
|
|
3984
3985
|
})
|
|
@@ -4026,7 +4027,8 @@ var actionKeyResolver = {
|
|
|
4026
4027
|
name: "action",
|
|
4027
4028
|
message: "Select action:",
|
|
4028
4029
|
choices: actions.map((action) => ({
|
|
4029
|
-
name:
|
|
4030
|
+
name: action.title || action.name || action.key,
|
|
4031
|
+
hint: action.description || void 0,
|
|
4030
4032
|
value: action.key
|
|
4031
4033
|
}))
|
|
4032
4034
|
})
|
|
@@ -4051,7 +4053,7 @@ function promptForConnection(connections, params) {
|
|
|
4051
4053
|
name: "connection",
|
|
4052
4054
|
message: params.app ? `Select connection for ${params.app}:` : "Select connection:",
|
|
4053
4055
|
choices: connections.map((connection) => ({
|
|
4054
|
-
name:
|
|
4056
|
+
name: connection.title || connection.label || "Connection",
|
|
4055
4057
|
value: connection.id
|
|
4056
4058
|
}))
|
|
4057
4059
|
};
|
|
@@ -4166,7 +4168,11 @@ var inputFieldKeyResolver = {
|
|
|
4166
4168
|
name: "inputField",
|
|
4167
4169
|
message: "Select input field:",
|
|
4168
4170
|
choices: fields.map((field) => ({
|
|
4169
|
-
name:
|
|
4171
|
+
name: field.title || field.key,
|
|
4172
|
+
hint: [
|
|
4173
|
+
field.value_type,
|
|
4174
|
+
field.is_required ? "required" : "optional"
|
|
4175
|
+
].filter(Boolean),
|
|
4170
4176
|
value: field.key
|
|
4171
4177
|
}))
|
|
4172
4178
|
})
|
|
@@ -4191,7 +4197,7 @@ var clientIdResolver = {
|
|
|
4191
4197
|
name: "clientId",
|
|
4192
4198
|
message: "Select client credentials to delete:",
|
|
4193
4199
|
choices: credentials.map((cred) => ({
|
|
4194
|
-
name:
|
|
4200
|
+
name: cred.name,
|
|
4195
4201
|
value: cred.client_id
|
|
4196
4202
|
}))
|
|
4197
4203
|
})
|
|
@@ -4224,7 +4230,7 @@ var tableIdResolver = {
|
|
|
4224
4230
|
name: "table",
|
|
4225
4231
|
message: "Select a table:",
|
|
4226
4232
|
choices: tables.map((table) => ({
|
|
4227
|
-
name:
|
|
4233
|
+
name: table.name,
|
|
4228
4234
|
value: table.id
|
|
4229
4235
|
}))
|
|
4230
4236
|
})
|
|
@@ -4241,7 +4247,8 @@ var triggerInboxResolver = {
|
|
|
4241
4247
|
// `deleting` inboxes are on their way out — no operation against them
|
|
4242
4248
|
// is useful (delete is a no-op, pause/resume/update are rejected).
|
|
4243
4249
|
choices: inboxes.filter((inbox) => inbox.status !== "deleting").map((inbox) => ({
|
|
4244
|
-
name:
|
|
4250
|
+
name: inbox.name ?? inbox.id,
|
|
4251
|
+
hint: `${inbox.subscription.app_key} / ${inbox.subscription.action_key}, ${inbox.status}`,
|
|
4245
4252
|
value: inbox.id
|
|
4246
4253
|
}))
|
|
4247
4254
|
})
|
|
@@ -4264,7 +4271,8 @@ var triggerMessagesResolver = {
|
|
|
4264
4271
|
// are gone from the inbox already; available/quarantined ones can't be
|
|
4265
4272
|
// operated on by these methods.
|
|
4266
4273
|
choices: messages.filter((message) => message.status === "leased").map((message) => ({
|
|
4267
|
-
name:
|
|
4274
|
+
name: message.id,
|
|
4275
|
+
hint: `${message.status}, lease_count: ${message.message_attributes.lease_count}`,
|
|
4268
4276
|
value: message.id
|
|
4269
4277
|
}))
|
|
4270
4278
|
})
|
|
@@ -4510,8 +4518,8 @@ async function createFieldKeyTranslator({
|
|
|
4510
4518
|
function summarizeRecord(record) {
|
|
4511
4519
|
const values = Object.values(record.data);
|
|
4512
4520
|
const preview = values.slice(0, 3).map((v) => formatFieldValue(v).replace(/\s+/g, " ").trim()).filter((s) => s.length > 0).join(", ");
|
|
4513
|
-
|
|
4514
|
-
return
|
|
4521
|
+
if (!preview) return void 0;
|
|
4522
|
+
return preview.length > 60 ? preview.slice(0, 57) + "..." : preview;
|
|
4515
4523
|
}
|
|
4516
4524
|
function fetchRecords(sdk, params) {
|
|
4517
4525
|
return sdk.listTableRecords({
|
|
@@ -4521,7 +4529,7 @@ function fetchRecords(sdk, params) {
|
|
|
4521
4529
|
}
|
|
4522
4530
|
function recordChoices(records) {
|
|
4523
4531
|
return records.map((record) => ({
|
|
4524
|
-
name: summarizeRecord(record),
|
|
4532
|
+
name: summarizeRecord(record) || record.id,
|
|
4525
4533
|
value: record.id
|
|
4526
4534
|
}));
|
|
4527
4535
|
}
|
|
@@ -4561,7 +4569,8 @@ var tableFieldIdsResolver = {
|
|
|
4561
4569
|
name: "fields",
|
|
4562
4570
|
message: "Select fields:",
|
|
4563
4571
|
choices: fields.map((field) => ({
|
|
4564
|
-
name:
|
|
4572
|
+
name: field.name,
|
|
4573
|
+
hint: [field.id, field.type],
|
|
4565
4574
|
value: field.id
|
|
4566
4575
|
})),
|
|
4567
4576
|
validate: (value) => Array.isArray(value) && value.length > 0 ? true : "Select at least one field"
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-
|
|
2
|
-
export { u as Action, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, eu as CreateTableFieldsPluginProvides, eo as CreateTablePluginProvides, eC as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, eh as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ew as DeleteTableFieldsPluginProvides, eq as DeleteTablePluginProvides, eE as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, em as GetTablePluginProvides, ey as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, es as ListTableFieldsPluginProvides, eA as ListTableRecordsPluginProvides, ek as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, eG as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, et as createTableFieldsPlugin, en as createTablePlugin, eB as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ev as deleteTableFieldsPlugin, ep as deleteTablePlugin, eD as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, el as getTablePlugin, ex as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, er as listTableFieldsPlugin, ez as listTableRecordsPlugin, ej as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eF as updateTableRecordsPlugin } from './index-
|
|
1
|
+
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-DjQ4XDAV.mjs';
|
|
2
|
+
export { u as Action, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, eu as CreateTableFieldsPluginProvides, eo as CreateTablePluginProvides, eC as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, eh as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ew as DeleteTableFieldsPluginProvides, eq as DeleteTablePluginProvides, eE as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, em as GetTablePluginProvides, ey as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, es as ListTableFieldsPluginProvides, eA as ListTableRecordsPluginProvides, ek as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, eG as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, et as createTableFieldsPlugin, en as createTablePlugin, eB as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ev as deleteTableFieldsPlugin, ep as deleteTablePlugin, eD as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, el as getTablePlugin, ex as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, er as listTableFieldsPlugin, ez as listTableRecordsPlugin, ej as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eF as updateTableRecordsPlugin } from './index-DjQ4XDAV.mjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
package/dist/experimental.mjs
CHANGED
|
@@ -2879,7 +2879,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2879
2879
|
}
|
|
2880
2880
|
|
|
2881
2881
|
// src/sdk-version.ts
|
|
2882
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2882
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.55.0" : void 0) || "unknown";
|
|
2883
2883
|
|
|
2884
2884
|
// src/utils/open-url.ts
|
|
2885
2885
|
var nodePrefix = "node:";
|
|
@@ -3976,7 +3976,8 @@ var appKeyResolver = {
|
|
|
3976
3976
|
name: "app",
|
|
3977
3977
|
message: "Select app:",
|
|
3978
3978
|
choices: apps.map((app) => ({
|
|
3979
|
-
name: app.title
|
|
3979
|
+
name: app.title || app.key,
|
|
3980
|
+
hint: app.title ? getAppKeyList(app) : void 0,
|
|
3980
3981
|
value: app.key
|
|
3981
3982
|
}))
|
|
3982
3983
|
})
|
|
@@ -4024,7 +4025,8 @@ var actionKeyResolver = {
|
|
|
4024
4025
|
name: "action",
|
|
4025
4026
|
message: "Select action:",
|
|
4026
4027
|
choices: actions.map((action) => ({
|
|
4027
|
-
name:
|
|
4028
|
+
name: action.title || action.name || action.key,
|
|
4029
|
+
hint: action.description || void 0,
|
|
4028
4030
|
value: action.key
|
|
4029
4031
|
}))
|
|
4030
4032
|
})
|
|
@@ -4049,7 +4051,7 @@ function promptForConnection(connections, params) {
|
|
|
4049
4051
|
name: "connection",
|
|
4050
4052
|
message: params.app ? `Select connection for ${params.app}:` : "Select connection:",
|
|
4051
4053
|
choices: connections.map((connection) => ({
|
|
4052
|
-
name:
|
|
4054
|
+
name: connection.title || connection.label || "Connection",
|
|
4053
4055
|
value: connection.id
|
|
4054
4056
|
}))
|
|
4055
4057
|
};
|
|
@@ -4164,7 +4166,11 @@ var inputFieldKeyResolver = {
|
|
|
4164
4166
|
name: "inputField",
|
|
4165
4167
|
message: "Select input field:",
|
|
4166
4168
|
choices: fields.map((field) => ({
|
|
4167
|
-
name:
|
|
4169
|
+
name: field.title || field.key,
|
|
4170
|
+
hint: [
|
|
4171
|
+
field.value_type,
|
|
4172
|
+
field.is_required ? "required" : "optional"
|
|
4173
|
+
].filter(Boolean),
|
|
4168
4174
|
value: field.key
|
|
4169
4175
|
}))
|
|
4170
4176
|
})
|
|
@@ -4189,7 +4195,7 @@ var clientIdResolver = {
|
|
|
4189
4195
|
name: "clientId",
|
|
4190
4196
|
message: "Select client credentials to delete:",
|
|
4191
4197
|
choices: credentials.map((cred) => ({
|
|
4192
|
-
name:
|
|
4198
|
+
name: cred.name,
|
|
4193
4199
|
value: cred.client_id
|
|
4194
4200
|
}))
|
|
4195
4201
|
})
|
|
@@ -4222,7 +4228,7 @@ var tableIdResolver = {
|
|
|
4222
4228
|
name: "table",
|
|
4223
4229
|
message: "Select a table:",
|
|
4224
4230
|
choices: tables.map((table) => ({
|
|
4225
|
-
name:
|
|
4231
|
+
name: table.name,
|
|
4226
4232
|
value: table.id
|
|
4227
4233
|
}))
|
|
4228
4234
|
})
|
|
@@ -4239,7 +4245,8 @@ var triggerInboxResolver = {
|
|
|
4239
4245
|
// `deleting` inboxes are on their way out — no operation against them
|
|
4240
4246
|
// is useful (delete is a no-op, pause/resume/update are rejected).
|
|
4241
4247
|
choices: inboxes.filter((inbox) => inbox.status !== "deleting").map((inbox) => ({
|
|
4242
|
-
name:
|
|
4248
|
+
name: inbox.name ?? inbox.id,
|
|
4249
|
+
hint: `${inbox.subscription.app_key} / ${inbox.subscription.action_key}, ${inbox.status}`,
|
|
4243
4250
|
value: inbox.id
|
|
4244
4251
|
}))
|
|
4245
4252
|
})
|
|
@@ -4262,7 +4269,8 @@ var triggerMessagesResolver = {
|
|
|
4262
4269
|
// are gone from the inbox already; available/quarantined ones can't be
|
|
4263
4270
|
// operated on by these methods.
|
|
4264
4271
|
choices: messages.filter((message) => message.status === "leased").map((message) => ({
|
|
4265
|
-
name:
|
|
4272
|
+
name: message.id,
|
|
4273
|
+
hint: `${message.status}, lease_count: ${message.message_attributes.lease_count}`,
|
|
4266
4274
|
value: message.id
|
|
4267
4275
|
}))
|
|
4268
4276
|
})
|
|
@@ -4508,8 +4516,8 @@ async function createFieldKeyTranslator({
|
|
|
4508
4516
|
function summarizeRecord(record) {
|
|
4509
4517
|
const values = Object.values(record.data);
|
|
4510
4518
|
const preview = values.slice(0, 3).map((v) => formatFieldValue(v).replace(/\s+/g, " ").trim()).filter((s) => s.length > 0).join(", ");
|
|
4511
|
-
|
|
4512
|
-
return
|
|
4519
|
+
if (!preview) return void 0;
|
|
4520
|
+
return preview.length > 60 ? preview.slice(0, 57) + "..." : preview;
|
|
4513
4521
|
}
|
|
4514
4522
|
function fetchRecords(sdk, params) {
|
|
4515
4523
|
return sdk.listTableRecords({
|
|
@@ -4519,7 +4527,7 @@ function fetchRecords(sdk, params) {
|
|
|
4519
4527
|
}
|
|
4520
4528
|
function recordChoices(records) {
|
|
4521
4529
|
return records.map((record) => ({
|
|
4522
|
-
name: summarizeRecord(record),
|
|
4530
|
+
name: summarizeRecord(record) || record.id,
|
|
4523
4531
|
value: record.id
|
|
4524
4532
|
}));
|
|
4525
4533
|
}
|
|
@@ -4559,7 +4567,8 @@ var tableFieldIdsResolver = {
|
|
|
4559
4567
|
name: "fields",
|
|
4560
4568
|
message: "Select fields:",
|
|
4561
4569
|
choices: fields.map((field) => ({
|
|
4562
|
-
name:
|
|
4570
|
+
name: field.name,
|
|
4571
|
+
hint: [field.id, field.type],
|
|
4563
4572
|
value: field.id
|
|
4564
4573
|
})),
|
|
4565
4574
|
validate: (value) => Array.isArray(value) && value.length > 0 ? true : "Select at least one field"
|
|
@@ -5236,6 +5236,13 @@ interface PromptConfig {
|
|
|
5236
5236
|
choices?: Array<{
|
|
5237
5237
|
name: string;
|
|
5238
5238
|
value: unknown;
|
|
5239
|
+
/**
|
|
5240
|
+
* Optional secondary info shown after `name`. The CLI wraps it in
|
|
5241
|
+
* dimmed parens; an array is joined with ", ". Use for keys, ids, or
|
|
5242
|
+
* other context that's useful but shouldn't compete visually with
|
|
5243
|
+
* the primary label.
|
|
5244
|
+
*/
|
|
5245
|
+
hint?: string | string[];
|
|
5239
5246
|
}>;
|
|
5240
5247
|
default?: unknown;
|
|
5241
5248
|
filter?: (value: unknown) => unknown;
|
|
@@ -5236,6 +5236,13 @@ interface PromptConfig {
|
|
|
5236
5236
|
choices?: Array<{
|
|
5237
5237
|
name: string;
|
|
5238
5238
|
value: unknown;
|
|
5239
|
+
/**
|
|
5240
|
+
* Optional secondary info shown after `name`. The CLI wraps it in
|
|
5241
|
+
* dimmed parens; an array is joined with ", ". Use for keys, ids, or
|
|
5242
|
+
* other context that's useful but shouldn't compete visually with
|
|
5243
|
+
* the primary label.
|
|
5244
|
+
*/
|
|
5245
|
+
hint?: string | string[];
|
|
5239
5246
|
}>;
|
|
5240
5247
|
default?: unknown;
|
|
5241
5248
|
filter?: (value: unknown) => unknown;
|
package/dist/index.cjs
CHANGED
|
@@ -2298,7 +2298,8 @@ var appKeyResolver = {
|
|
|
2298
2298
|
name: "app",
|
|
2299
2299
|
message: "Select app:",
|
|
2300
2300
|
choices: apps.map((app) => ({
|
|
2301
|
-
name: app.title
|
|
2301
|
+
name: app.title || app.key,
|
|
2302
|
+
hint: app.title ? getAppKeyList(app) : void 0,
|
|
2302
2303
|
value: app.key
|
|
2303
2304
|
}))
|
|
2304
2305
|
})
|
|
@@ -2346,7 +2347,8 @@ var actionKeyResolver = {
|
|
|
2346
2347
|
name: "action",
|
|
2347
2348
|
message: "Select action:",
|
|
2348
2349
|
choices: actions.map((action) => ({
|
|
2349
|
-
name:
|
|
2350
|
+
name: action.title || action.name || action.key,
|
|
2351
|
+
hint: action.description || void 0,
|
|
2350
2352
|
value: action.key
|
|
2351
2353
|
}))
|
|
2352
2354
|
})
|
|
@@ -2371,7 +2373,7 @@ function promptForConnection(connections, params) {
|
|
|
2371
2373
|
name: "connection",
|
|
2372
2374
|
message: params.app ? `Select connection for ${params.app}:` : "Select connection:",
|
|
2373
2375
|
choices: connections.map((connection) => ({
|
|
2374
|
-
name:
|
|
2376
|
+
name: connection.title || connection.label || "Connection",
|
|
2375
2377
|
value: connection.id
|
|
2376
2378
|
}))
|
|
2377
2379
|
};
|
|
@@ -2486,7 +2488,11 @@ var inputFieldKeyResolver = {
|
|
|
2486
2488
|
name: "inputField",
|
|
2487
2489
|
message: "Select input field:",
|
|
2488
2490
|
choices: fields.map((field) => ({
|
|
2489
|
-
name:
|
|
2491
|
+
name: field.title || field.key,
|
|
2492
|
+
hint: [
|
|
2493
|
+
field.value_type,
|
|
2494
|
+
field.is_required ? "required" : "optional"
|
|
2495
|
+
].filter(Boolean),
|
|
2490
2496
|
value: field.key
|
|
2491
2497
|
}))
|
|
2492
2498
|
})
|
|
@@ -2511,7 +2517,7 @@ var clientIdResolver = {
|
|
|
2511
2517
|
name: "clientId",
|
|
2512
2518
|
message: "Select client credentials to delete:",
|
|
2513
2519
|
choices: credentials.map((cred) => ({
|
|
2514
|
-
name:
|
|
2520
|
+
name: cred.name,
|
|
2515
2521
|
value: cred.client_id
|
|
2516
2522
|
}))
|
|
2517
2523
|
})
|
|
@@ -2544,7 +2550,7 @@ var tableIdResolver = {
|
|
|
2544
2550
|
name: "table",
|
|
2545
2551
|
message: "Select a table:",
|
|
2546
2552
|
choices: tables.map((table) => ({
|
|
2547
|
-
name:
|
|
2553
|
+
name: table.name,
|
|
2548
2554
|
value: table.id
|
|
2549
2555
|
}))
|
|
2550
2556
|
})
|
|
@@ -2561,7 +2567,8 @@ var triggerInboxResolver = {
|
|
|
2561
2567
|
// `deleting` inboxes are on their way out — no operation against them
|
|
2562
2568
|
// is useful (delete is a no-op, pause/resume/update are rejected).
|
|
2563
2569
|
choices: inboxes.filter((inbox) => inbox.status !== "deleting").map((inbox) => ({
|
|
2564
|
-
name:
|
|
2570
|
+
name: inbox.name ?? inbox.id,
|
|
2571
|
+
hint: `${inbox.subscription.app_key} / ${inbox.subscription.action_key}, ${inbox.status}`,
|
|
2565
2572
|
value: inbox.id
|
|
2566
2573
|
}))
|
|
2567
2574
|
})
|
|
@@ -2584,7 +2591,8 @@ var triggerMessagesResolver = {
|
|
|
2584
2591
|
// are gone from the inbox already; available/quarantined ones can't be
|
|
2585
2592
|
// operated on by these methods.
|
|
2586
2593
|
choices: messages.filter((message) => message.status === "leased").map((message) => ({
|
|
2587
|
-
name:
|
|
2594
|
+
name: message.id,
|
|
2595
|
+
hint: `${message.status}, lease_count: ${message.message_attributes.lease_count}`,
|
|
2588
2596
|
value: message.id
|
|
2589
2597
|
}))
|
|
2590
2598
|
})
|
|
@@ -2830,8 +2838,8 @@ async function createFieldKeyTranslator({
|
|
|
2830
2838
|
function summarizeRecord(record) {
|
|
2831
2839
|
const values = Object.values(record.data);
|
|
2832
2840
|
const preview = values.slice(0, 3).map((v) => formatFieldValue(v).replace(/\s+/g, " ").trim()).filter((s) => s.length > 0).join(", ");
|
|
2833
|
-
|
|
2834
|
-
return
|
|
2841
|
+
if (!preview) return void 0;
|
|
2842
|
+
return preview.length > 60 ? preview.slice(0, 57) + "..." : preview;
|
|
2835
2843
|
}
|
|
2836
2844
|
function fetchRecords(sdk, params) {
|
|
2837
2845
|
return sdk.listTableRecords({
|
|
@@ -2841,7 +2849,7 @@ function fetchRecords(sdk, params) {
|
|
|
2841
2849
|
}
|
|
2842
2850
|
function recordChoices(records) {
|
|
2843
2851
|
return records.map((record) => ({
|
|
2844
|
-
name: summarizeRecord(record),
|
|
2852
|
+
name: summarizeRecord(record) || record.id,
|
|
2845
2853
|
value: record.id
|
|
2846
2854
|
}));
|
|
2847
2855
|
}
|
|
@@ -2881,7 +2889,8 @@ var tableFieldIdsResolver = {
|
|
|
2881
2889
|
name: "fields",
|
|
2882
2890
|
message: "Select fields:",
|
|
2883
2891
|
choices: fields.map((field) => ({
|
|
2884
|
-
name:
|
|
2892
|
+
name: field.name,
|
|
2893
|
+
hint: [field.id, field.type],
|
|
2885
2894
|
value: field.id
|
|
2886
2895
|
})),
|
|
2887
2896
|
validate: (value) => Array.isArray(value) && value.length > 0 ? true : "Select at least one field"
|
|
@@ -6309,7 +6318,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
6309
6318
|
}
|
|
6310
6319
|
|
|
6311
6320
|
// src/sdk-version.ts
|
|
6312
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6321
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.55.0" : void 0) || "unknown";
|
|
6313
6322
|
|
|
6314
6323
|
// src/utils/open-url.ts
|
|
6315
6324
|
var nodePrefix = "node:";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { u as Action, d as ActionEntry, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, eu as CreateTableFieldsPluginProvides, eo as CreateTablePluginProvides, eC as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, eh as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ew as DeleteTableFieldsPluginProvides, eq as DeleteTablePluginProvides, eE as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a3 as DynamicListResolver, i as DynamicResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, E as EventEmissionContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, F as FieldsetItem, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, em as GetTablePluginProvides, ey as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, es as ListTableFieldsPluginProvides, eA as ListTableRecordsPluginProvides, ek as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, M as Manifest, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, e as PaginatedSdkResult, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, P as PluginMeta, an as PluginProvides, aw as PollOptions, g as PositionalMetadata, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, R as ResolvedAppLocator, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, eG as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, j as WatchTriggerInboxOptions, W as WithAddPlugin, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, h as ZapierFetchInitOptions, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, eI as ZapierSdk, l as ZapierSdkApps, Z as ZapierSdkOptions, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, et as createTableFieldsPlugin, en as createTablePlugin, eB as createTableRecordsPlugin, ax as createZapierApi, eH as createZapierSdk, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ev as deleteTableFieldsPlugin, ep as deleteTablePlugin, eD as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, f as findManifestEntry, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, el as getTablePlugin, ex as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, er as listTableFieldsPlugin, ez as listTableRecordsPlugin, ej as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, r as readManifestFromFile, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eF as updateTableRecordsPlugin } from './index-
|
|
1
|
+
export { u as Action, d as ActionEntry, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, eu as CreateTableFieldsPluginProvides, eo as CreateTablePluginProvides, eC as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, eh as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ew as DeleteTableFieldsPluginProvides, eq as DeleteTablePluginProvides, eE as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a3 as DynamicListResolver, i as DynamicResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, E as EventEmissionContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, F as FieldsetItem, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, em as GetTablePluginProvides, ey as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, es as ListTableFieldsPluginProvides, eA as ListTableRecordsPluginProvides, ek as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, M as Manifest, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, e as PaginatedSdkResult, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, P as PluginMeta, an as PluginProvides, aw as PollOptions, g as PositionalMetadata, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, R as ResolvedAppLocator, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, eG as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, j as WatchTriggerInboxOptions, W as WithAddPlugin, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, h as ZapierFetchInitOptions, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, eI as ZapierSdk, l as ZapierSdkApps, Z as ZapierSdkOptions, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, et as createTableFieldsPlugin, en as createTablePlugin, eB as createTableRecordsPlugin, ax as createZapierApi, eH as createZapierSdk, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ev as deleteTableFieldsPlugin, ep as deleteTablePlugin, eD as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, f as findManifestEntry, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, el as getTablePlugin, ex as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, er as listTableFieldsPlugin, ez as listTableRecordsPlugin, ej as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, r as readManifestFromFile, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eF as updateTableRecordsPlugin } from './index-DjQ4XDAV.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import '@zapier/policy-context';
|
package/dist/index.mjs
CHANGED
|
@@ -2296,7 +2296,8 @@ var appKeyResolver = {
|
|
|
2296
2296
|
name: "app",
|
|
2297
2297
|
message: "Select app:",
|
|
2298
2298
|
choices: apps.map((app) => ({
|
|
2299
|
-
name: app.title
|
|
2299
|
+
name: app.title || app.key,
|
|
2300
|
+
hint: app.title ? getAppKeyList(app) : void 0,
|
|
2300
2301
|
value: app.key
|
|
2301
2302
|
}))
|
|
2302
2303
|
})
|
|
@@ -2344,7 +2345,8 @@ var actionKeyResolver = {
|
|
|
2344
2345
|
name: "action",
|
|
2345
2346
|
message: "Select action:",
|
|
2346
2347
|
choices: actions.map((action) => ({
|
|
2347
|
-
name:
|
|
2348
|
+
name: action.title || action.name || action.key,
|
|
2349
|
+
hint: action.description || void 0,
|
|
2348
2350
|
value: action.key
|
|
2349
2351
|
}))
|
|
2350
2352
|
})
|
|
@@ -2369,7 +2371,7 @@ function promptForConnection(connections, params) {
|
|
|
2369
2371
|
name: "connection",
|
|
2370
2372
|
message: params.app ? `Select connection for ${params.app}:` : "Select connection:",
|
|
2371
2373
|
choices: connections.map((connection) => ({
|
|
2372
|
-
name:
|
|
2374
|
+
name: connection.title || connection.label || "Connection",
|
|
2373
2375
|
value: connection.id
|
|
2374
2376
|
}))
|
|
2375
2377
|
};
|
|
@@ -2484,7 +2486,11 @@ var inputFieldKeyResolver = {
|
|
|
2484
2486
|
name: "inputField",
|
|
2485
2487
|
message: "Select input field:",
|
|
2486
2488
|
choices: fields.map((field) => ({
|
|
2487
|
-
name:
|
|
2489
|
+
name: field.title || field.key,
|
|
2490
|
+
hint: [
|
|
2491
|
+
field.value_type,
|
|
2492
|
+
field.is_required ? "required" : "optional"
|
|
2493
|
+
].filter(Boolean),
|
|
2488
2494
|
value: field.key
|
|
2489
2495
|
}))
|
|
2490
2496
|
})
|
|
@@ -2509,7 +2515,7 @@ var clientIdResolver = {
|
|
|
2509
2515
|
name: "clientId",
|
|
2510
2516
|
message: "Select client credentials to delete:",
|
|
2511
2517
|
choices: credentials.map((cred) => ({
|
|
2512
|
-
name:
|
|
2518
|
+
name: cred.name,
|
|
2513
2519
|
value: cred.client_id
|
|
2514
2520
|
}))
|
|
2515
2521
|
})
|
|
@@ -2542,7 +2548,7 @@ var tableIdResolver = {
|
|
|
2542
2548
|
name: "table",
|
|
2543
2549
|
message: "Select a table:",
|
|
2544
2550
|
choices: tables.map((table) => ({
|
|
2545
|
-
name:
|
|
2551
|
+
name: table.name,
|
|
2546
2552
|
value: table.id
|
|
2547
2553
|
}))
|
|
2548
2554
|
})
|
|
@@ -2559,7 +2565,8 @@ var triggerInboxResolver = {
|
|
|
2559
2565
|
// `deleting` inboxes are on their way out — no operation against them
|
|
2560
2566
|
// is useful (delete is a no-op, pause/resume/update are rejected).
|
|
2561
2567
|
choices: inboxes.filter((inbox) => inbox.status !== "deleting").map((inbox) => ({
|
|
2562
|
-
name:
|
|
2568
|
+
name: inbox.name ?? inbox.id,
|
|
2569
|
+
hint: `${inbox.subscription.app_key} / ${inbox.subscription.action_key}, ${inbox.status}`,
|
|
2563
2570
|
value: inbox.id
|
|
2564
2571
|
}))
|
|
2565
2572
|
})
|
|
@@ -2582,7 +2589,8 @@ var triggerMessagesResolver = {
|
|
|
2582
2589
|
// are gone from the inbox already; available/quarantined ones can't be
|
|
2583
2590
|
// operated on by these methods.
|
|
2584
2591
|
choices: messages.filter((message) => message.status === "leased").map((message) => ({
|
|
2585
|
-
name:
|
|
2592
|
+
name: message.id,
|
|
2593
|
+
hint: `${message.status}, lease_count: ${message.message_attributes.lease_count}`,
|
|
2586
2594
|
value: message.id
|
|
2587
2595
|
}))
|
|
2588
2596
|
})
|
|
@@ -2828,8 +2836,8 @@ async function createFieldKeyTranslator({
|
|
|
2828
2836
|
function summarizeRecord(record) {
|
|
2829
2837
|
const values = Object.values(record.data);
|
|
2830
2838
|
const preview = values.slice(0, 3).map((v) => formatFieldValue(v).replace(/\s+/g, " ").trim()).filter((s) => s.length > 0).join(", ");
|
|
2831
|
-
|
|
2832
|
-
return
|
|
2839
|
+
if (!preview) return void 0;
|
|
2840
|
+
return preview.length > 60 ? preview.slice(0, 57) + "..." : preview;
|
|
2833
2841
|
}
|
|
2834
2842
|
function fetchRecords(sdk, params) {
|
|
2835
2843
|
return sdk.listTableRecords({
|
|
@@ -2839,7 +2847,7 @@ function fetchRecords(sdk, params) {
|
|
|
2839
2847
|
}
|
|
2840
2848
|
function recordChoices(records) {
|
|
2841
2849
|
return records.map((record) => ({
|
|
2842
|
-
name: summarizeRecord(record),
|
|
2850
|
+
name: summarizeRecord(record) || record.id,
|
|
2843
2851
|
value: record.id
|
|
2844
2852
|
}));
|
|
2845
2853
|
}
|
|
@@ -2879,7 +2887,8 @@ var tableFieldIdsResolver = {
|
|
|
2879
2887
|
name: "fields",
|
|
2880
2888
|
message: "Select fields:",
|
|
2881
2889
|
choices: fields.map((field) => ({
|
|
2882
|
-
name:
|
|
2890
|
+
name: field.name,
|
|
2891
|
+
hint: [field.id, field.type],
|
|
2883
2892
|
value: field.id
|
|
2884
2893
|
})),
|
|
2885
2894
|
validate: (value) => Array.isArray(value) && value.length > 0 ? true : "Select at least one field"
|
|
@@ -6307,7 +6316,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
6307
6316
|
}
|
|
6308
6317
|
|
|
6309
6318
|
// src/sdk-version.ts
|
|
6310
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6319
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.55.0" : void 0) || "unknown";
|
|
6311
6320
|
|
|
6312
6321
|
// src/utils/open-url.ts
|
|
6313
6322
|
var nodePrefix = "node:";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/actionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAC7C,UAAU,EACV;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,kBAAkB,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"actionKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/actionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAC7C,UAAU,EACV;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,kBAAkB,CAAA;CAAE,CAuBhD,CAAC"}
|
|
@@ -12,7 +12,8 @@ export const actionKeyResolver = {
|
|
|
12
12
|
name: "action",
|
|
13
13
|
message: "Select action:",
|
|
14
14
|
choices: actions.map((action) => ({
|
|
15
|
-
name:
|
|
15
|
+
name: action.title || action.name || action.key,
|
|
16
|
+
hint: action.description || undefined,
|
|
16
17
|
value: action.key,
|
|
17
18
|
})),
|
|
18
19
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/appKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAI3D,KAAK,cAAc,GAAG,eAAe,CAAC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"appKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/appKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAI3D,KAAK,cAAc,GAAG,eAAe,CAAC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc,EAAE,cA4C5B,CAAC"}
|
package/dist/resolvers/appKey.js
CHANGED
|
@@ -39,9 +39,8 @@ export const appKeyResolver = {
|
|
|
39
39
|
name: "app",
|
|
40
40
|
message: "Select app:",
|
|
41
41
|
choices: apps.map((app) => ({
|
|
42
|
-
name: app.title
|
|
43
|
-
|
|
44
|
-
: app.key,
|
|
42
|
+
name: app.title || app.key,
|
|
43
|
+
hint: app.title ? getAppKeyList(app) : undefined,
|
|
45
44
|
value: app.key,
|
|
46
45
|
})),
|
|
47
46
|
}),
|
|
@@ -15,7 +15,7 @@ function promptForConnection(connections, params) {
|
|
|
15
15
|
? `Select connection for ${params.app}:`
|
|
16
16
|
: "Select connection:",
|
|
17
17
|
choices: connections.map((connection) => ({
|
|
18
|
-
name:
|
|
18
|
+
name: connection.title || connection.label || "Connection",
|
|
19
19
|
value: connection.id,
|
|
20
20
|
})),
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputFieldKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/inputFieldKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiC9D,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,cAAc,EACd;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,kBAAkB,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,
|
|
1
|
+
{"version":3,"file":"inputFieldKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/inputFieldKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiC9D,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,cAAc,EACd;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,kBAAkB,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CA4BF,CAAC"}
|
|
@@ -40,7 +40,11 @@ export const inputFieldKeyResolver = {
|
|
|
40
40
|
name: "inputField",
|
|
41
41
|
message: "Select input field:",
|
|
42
42
|
choices: fields.map((field) => ({
|
|
43
|
-
name:
|
|
43
|
+
name: field.title || field.key,
|
|
44
|
+
hint: [
|
|
45
|
+
field.value_type,
|
|
46
|
+
field.is_required ? "required" : "optional",
|
|
47
|
+
].filter(Boolean),
|
|
44
48
|
value: field.key,
|
|
45
49
|
})),
|
|
46
50
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableFieldIds.d.ts","sourceRoot":"","sources":["../../src/resolvers/tableFieldIds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAE3E,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,SAAS,EACT;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"tableFieldIds.d.ts","sourceRoot":"","sources":["../../src/resolvers/tableFieldIds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAE3E,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,SAAS,EACT;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAqBlB,CAAC"}
|
|
@@ -9,7 +9,8 @@ export const tableFieldIdsResolver = {
|
|
|
9
9
|
name: "fields",
|
|
10
10
|
message: "Select fields:",
|
|
11
11
|
choices: fields.map((field) => ({
|
|
12
|
-
name:
|
|
12
|
+
name: field.name,
|
|
13
|
+
hint: [field.id, field.type],
|
|
13
14
|
value: field.id,
|
|
14
15
|
})),
|
|
15
16
|
validate: (value) => Array.isArray(value) && value.length > 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableRecordId.d.ts","sourceRoot":"","sources":["../../src/resolvers/tableRecordId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"tableRecordId.d.ts","sourceRoot":"","sources":["../../src/resolvers/tableRecordId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AA+B3E,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,UAAU,EACV;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAWlB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,eAAe,CAClD,UAAU,EACV;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAelB,CAAC"}
|
|
@@ -6,8 +6,9 @@ function summarizeRecord(record) {
|
|
|
6
6
|
.map((v) => formatFieldValue(v).replace(/\s+/g, " ").trim())
|
|
7
7
|
.filter((s) => s.length > 0)
|
|
8
8
|
.join(", ");
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
if (!preview)
|
|
10
|
+
return undefined;
|
|
11
|
+
return preview.length > 60 ? preview.slice(0, 57) + "..." : preview;
|
|
11
12
|
}
|
|
12
13
|
function fetchRecords(sdk, params) {
|
|
13
14
|
return sdk.listTableRecords({
|
|
@@ -17,7 +18,7 @@ function fetchRecords(sdk, params) {
|
|
|
17
18
|
}
|
|
18
19
|
function recordChoices(records) {
|
|
19
20
|
return records.map((record) => ({
|
|
20
|
-
name: summarizeRecord(record),
|
|
21
|
+
name: summarizeRecord(record) || record.id,
|
|
21
22
|
value: record.id,
|
|
22
23
|
}));
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggerInbox.d.ts","sourceRoot":"","sources":["../../src/resolvers/triggerInbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAchE,eAAO,MAAM,oBAAoB,EAAE,eAAe,CAAC,gBAAgB,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"triggerInbox.d.ts","sourceRoot":"","sources":["../../src/resolvers/triggerInbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAchE,eAAO,MAAM,oBAAoB,EAAE,eAAe,CAAC,gBAAgB,EAAE,EAAE,CAkBtE,CAAC"}
|
|
@@ -11,7 +11,8 @@ export const triggerInboxResolver = {
|
|
|
11
11
|
choices: inboxes
|
|
12
12
|
.filter((inbox) => inbox.status !== "deleting")
|
|
13
13
|
.map((inbox) => ({
|
|
14
|
-
name:
|
|
14
|
+
name: inbox.name ?? inbox.id,
|
|
15
|
+
hint: `${inbox.subscription.app_key} / ${inbox.subscription.action_key}, ${inbox.status}`,
|
|
15
16
|
value: inbox.id,
|
|
16
17
|
})),
|
|
17
18
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggerMessages.d.ts","sourceRoot":"","sources":["../../src/resolvers/triggerMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAcpE,eAAO,MAAM,uBAAuB,EAAE,eAAe,CACnD,kBAAkB,EAClB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"triggerMessages.d.ts","sourceRoot":"","sources":["../../src/resolvers/triggerMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAcpE,eAAO,MAAM,uBAAuB,EAAE,eAAe,CACnD,kBAAkB,EAClB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAyBlB,CAAC"}
|
|
@@ -15,7 +15,8 @@ export const triggerMessagesResolver = {
|
|
|
15
15
|
choices: messages
|
|
16
16
|
.filter((message) => message.status === "leased")
|
|
17
17
|
.map((message) => ({
|
|
18
|
-
name:
|
|
18
|
+
name: message.id,
|
|
19
|
+
hint: `${message.status}, lease_count: ${message.message_attributes.lease_count}`,
|
|
19
20
|
value: message.id,
|
|
20
21
|
})),
|
|
21
22
|
}),
|
|
@@ -34,6 +34,13 @@ export interface PromptConfig {
|
|
|
34
34
|
choices?: Array<{
|
|
35
35
|
name: string;
|
|
36
36
|
value: unknown;
|
|
37
|
+
/**
|
|
38
|
+
* Optional secondary info shown after `name`. The CLI wraps it in
|
|
39
|
+
* dimmed parens; an array is joined with ", ". Use for keys, ids, or
|
|
40
|
+
* other context that's useful but shouldn't compete visually with
|
|
41
|
+
* the primary label.
|
|
42
|
+
*/
|
|
43
|
+
hint?: string | string[];
|
|
37
44
|
}>;
|
|
38
45
|
default?: unknown;
|
|
39
46
|
filter?: (value: unknown) => unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAMxC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;KAC5D,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,cAAc,CAAC,KAAK,GAAG,OAAO;IAC7C,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,aAAa,CAAC;CACxC;AAED,MAAM,WAAW,eAAe,CAC9B,KAAK,GAAG,OAAO,EACf,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,QAAQ,GAAG,OAAO;IAElB,KAAK,CAAC,EAAE,CACN,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,EACX,OAAO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