@zapier/zapier-sdk 0.111.2 → 0.112.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.112.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 218c461: Added an `is_managed` field to the connections returned by `listConnections`. It indicates whether a connection is managed by account admins (no individual owner) rather than owned by an individual user.
8
+
9
+ ## 0.112.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2102c00: **Removed the legacy function-plugin surface.** A plugin is now always a
14
+ descriptor built by `define*` / `declare*`, never a `(sdk) => provides`
15
+ function. These exports shipped deprecated with runtime warnings and are now
16
+ gone:
17
+
18
+ | Removed | Use instead |
19
+ | ---------------------------------------------------- | ----------------------------------------------------------------------- |
20
+ | `createPluginStack`, `composePlugins` | `definePlugin({ name, exports })` and `createSdk(root)` |
21
+ | `createPluginMethod`, `createPaginatedPluginMethod` | `defineMethod({ output: "item" })` / `defineMethod({ output: "list" })` |
22
+ | `createCorePlugin(options)` | `createSdk(root, { configuration: { [CORE_OPTIONS_ID]: options } })` |
23
+ | `fromFunctionPlugin`, `defineLegacyMerge` | `createSdk(root)` on a descriptor root |
24
+ | `definePlugin(fn)` (the function form) | `defineMethod` / `defineProperty` / `definePlugin({ ... })` |
25
+ | `registryPlugin` | nothing: `createZapierSdk` already surfaces `getRegistry` |
26
+ | `Plugin<TSdk, TProvides>` (the function-plugin type) | `Plugin` now names the descriptor a `define*` call returns |
27
+ | `PluginProvides` type | `PluginSurface<typeof plugin>` for a plugin's own surface |
28
+ | `OutputFormatter` type | `defineFormatter`, whose result is a `Formatter` |
29
+
30
+ Also removed, with no deprecation warning: `createFunction` and
31
+ `createPaginatedFunction`. Only a function plugin could use their output. Author
32
+ with `defineMethod({ output: "item" })` or `defineMethod({ output: "list" })`
33
+ instead.
34
+ - `addPlugin(sdk, plugin)` refuses a function argument.
35
+ - `sdk.context.meta` is gone. Read `sdk.getRegistry()` instead.
36
+ - `sdk.context` has no index signature, so `sdk.context.anything` no longer
37
+ typechecks.
38
+
39
+ `sdk.getRegistry()` is unchanged.
40
+
41
+ Added `getRegistry(sdk, packageFilter?)`, a free function that reads the same
42
+ registry without the accessor being on the surface, and its `RegistryResult`
43
+ type. Added `formatExtensionPluginFailure(error)`, the message a host shows when
44
+ `addPlugin` refuses an extension. Re-exported `Plugin` from kitcore, the type of any `define*` result.
45
+
46
+ Re-exported `MethodMeta` and `PropertyMeta`, the description fields a method
47
+ or a property carries. `PluginMeta` stays as a deprecated alias of `MethodMeta`,
48
+ now an exact field list with no index signature, so a `satisfies
49
+ Partial<PluginMeta>` that sets a field outside it no longer compiles.
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [2102c00]
54
+ - @zapier/kitcore@0.21.0
55
+
3
56
  ## 0.111.2
4
57
 
5
58
  ### Patch Changes
package/README.md CHANGED
@@ -2710,6 +2710,7 @@ Find the first connection matching the criteria
2710
2710
  | ​ ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
2711
2711
  | ​ ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
2712
2712
  | ​ ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
2713
+ | ​ ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
2713
2714
 
2714
2715
  **Example:**
2715
2716
 
@@ -2767,6 +2768,7 @@ Find a unique connection matching the criteria
2767
2768
  | ​ ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
2768
2769
  | ​ ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
2769
2770
  | ​ ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
2771
+ | ​ ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
2770
2772
 
2771
2773
  **Example:**
2772
2774
 
@@ -2818,6 +2820,7 @@ Get details for a specific connection
2818
2820
  | ​ ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
2819
2821
  | ​ ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
2820
2822
  | ​ ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
2823
+ | ​ ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
2821
2824
 
2822
2825
  **Example:**
2823
2826
 
@@ -2922,6 +2925,7 @@ List available connections with optional filtering
2922
2925
  | ​ ↳ `expired_at` | `string` | ❌ | — | Date when connection expired (mapped from marked_stale_at) |
2923
2926
  | ​ ↳ `app_key` | `string` | ❌ | — | App Key extracted from implementation_id |
2924
2927
  | ​ ↳ `app_version` | `string` | ❌ | — | App Version extracted from implementation_id |
2928
+ | ​ ↳ `is_managed` | `boolean` | ❌ | — | Whether this connection is managed by account admins (no individual owner) |
2925
2929
  | `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
2926
2930
 
2927
2931
  **Example:**
@@ -1,8 +1,8 @@
1
1
  import { __require } from './chunk-Y6FXYEAI.mjs';
2
2
  import { z } from 'zod';
3
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, composePlugins, createController, createCorePlugin, createFunction, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, disposeSdk, fromFunctionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getNegatable, getRegistryPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isPositional, omitExports, resolvePlugin, runInMethodScope, runWithTelemetryContext, selectExports, toSnakeCase, toTitleCase } from '@zapier/kitcore';
5
- import { ConnectionSchema, ConnectionsResponseSchema, ListConnectionsQuerySchema as ListConnectionsQuerySchema$1, ConnectionItemSchema } from '@zapier/zapier-sdk-core/v0/schemas/connections';
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';
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';
8
8
  import { ImplementationMetaSchema, ImplementationsMetaResponseSchema } from '@zapier/zapier-sdk-core/v0/schemas/implementations';
@@ -2806,7 +2806,7 @@ function logRouteOverride({
2806
2806
  }
2807
2807
 
2808
2808
  // src/sdk-version.ts
2809
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.111.2" : void 0) || "unknown";
2809
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.1" : void 0) || "unknown";
2810
2810
 
2811
2811
  // src/utils/open-url.ts
2812
2812
  var nodePrefix = "node:";
@@ -4411,6 +4411,7 @@ function transformConnectionItem(item) {
4411
4411
  lastchanged: item.lastchanged,
4412
4412
  is_stale: item.is_stale,
4413
4413
  is_shared: item.is_shared,
4414
+ is_managed: item.is_managed,
4414
4415
  identifier: item.identifier,
4415
4416
  groups: item.groups,
4416
4417
  members: item.members,
@@ -4549,9 +4550,15 @@ function normalizeAppItem({
4549
4550
  }
4550
4551
  });
4551
4552
  }
4553
+ var ConnectionItemSchema = ConnectionItemSchema$1.extend({
4554
+ is_managed: z.boolean().optional().describe(
4555
+ "Whether this connection is managed by account admins (no individual owner)"
4556
+ )
4557
+ });
4552
4558
  var RawConnectionSchema = ConnectionSchema.extend({
4553
4559
  is_stale: z.boolean().optional(),
4554
4560
  is_shared: z.boolean().optional(),
4561
+ is_managed: z.boolean().optional(),
4555
4562
  members: z.array(z.record(z.string(), z.any())).optional(),
4556
4563
  customuser_id: z.number().nullable().optional(),
4557
4564
  customuser_public_id: z.string().nullable().optional()
@@ -7477,8 +7484,7 @@ var appsPlugin = defineProperty({
7477
7484
  type: "list",
7478
7485
  inputSchema: ActionExecutionInputSchema,
7479
7486
  itemType: "ActionResult",
7480
- outputSchema: ActionResultItemSchema,
7481
- skipOutputValidation: true
7487
+ outputSchema: ActionResultItemSchema
7482
7488
  }
7483
7489
  ]
7484
7490
  });
@@ -12944,8 +12950,8 @@ var zapierSdkPlugin = definePlugin({
12944
12950
  operationAnnotatorPlugin
12945
12951
  ],
12946
12952
  exports: [
12947
- // The registry reporter: previously synthesized by the legacy merge,
12948
- // now surfaced like any other method.
12953
+ // The registry reporter. A re-exportable built-in, so it is listed here
12954
+ // rather than added by the framework.
12949
12955
  getRegistryPlugin,
12950
12956
  getProfilePlugin,
12951
12957
  listAppsPlugin,
@@ -13194,12 +13200,17 @@ var BaseSdkOptionsSchema = z.object({
13194
13200
  // Use credentials instead
13195
13201
  });
13196
13202
 
13197
- // src/plugins/registry/index.ts
13198
- var registryPlugin = (_sdk) => {
13199
- logDeprecation(
13200
- "registryPlugin is deprecated and a no-op; getRegistry is now built into every sdk. Remove .addPlugin(registryPlugin)."
13201
- );
13202
- return {};
13203
- };
13203
+ // src/utils/extension-failure.ts
13204
+ function formatExtensionPluginFailure(error) {
13205
+ const message = describeThrown(error);
13206
+ return `Extension plugin failed to construct: ${message}. Skipping this plugin: nothing it declared was added, and any \`dispose\` it registered was invoked. Plugins the same package already loaded stay loaded. Cleanup after an \`await\` inside a \`dispose\` is not guaranteed, and a side effect from the part that threw cannot be undone, so fix or remove the extension.`;
13207
+ }
13208
+ function describeThrown(error) {
13209
+ try {
13210
+ return error instanceof Error ? error.message : String(error);
13211
+ } catch {
13212
+ return "a thrown value that could not be read";
13213
+ }
13214
+ }
13204
13215
 
13205
- 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, 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, registryPlugin, 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 };
13216
+ 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 };
@@ -2807,7 +2807,7 @@ function logRouteOverride({
2807
2807
  }
2808
2808
 
2809
2809
  // src/sdk-version.ts
2810
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.111.2" : void 0) || "unknown";
2810
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.112.1" : void 0) || "unknown";
2811
2811
 
2812
2812
  // src/utils/open-url.ts
2813
2813
  var nodePrefix = "node:";
@@ -4412,6 +4412,7 @@ function transformConnectionItem(item) {
4412
4412
  lastchanged: item.lastchanged,
4413
4413
  is_stale: item.is_stale,
4414
4414
  is_shared: item.is_shared,
4415
+ is_managed: item.is_managed,
4415
4416
  identifier: item.identifier,
4416
4417
  groups: item.groups,
4417
4418
  members: item.members,
@@ -4550,9 +4551,15 @@ function normalizeAppItem({
4550
4551
  }
4551
4552
  });
4552
4553
  }
4554
+ var ConnectionItemSchema = connections.ConnectionItemSchema.extend({
4555
+ is_managed: zod.z.boolean().optional().describe(
4556
+ "Whether this connection is managed by account admins (no individual owner)"
4557
+ )
4558
+ });
4553
4559
  var RawConnectionSchema = connections.ConnectionSchema.extend({
4554
4560
  is_stale: zod.z.boolean().optional(),
4555
4561
  is_shared: zod.z.boolean().optional(),
4562
+ is_managed: zod.z.boolean().optional(),
4556
4563
  members: zod.z.array(zod.z.record(zod.z.string(), zod.z.any())).optional(),
4557
4564
  customuser_id: zod.z.number().nullable().optional(),
4558
4565
  customuser_public_id: zod.z.string().nullable().optional()
@@ -4604,7 +4611,7 @@ function normalizeConnectionItem({
4604
4611
  app_version: appVersion,
4605
4612
  profile_id: profileId != null ? String(profileId) : void 0
4606
4613
  };
4607
- return kitcore.createValidator(connections.ConnectionItemSchema, { adaptError })(normalized);
4614
+ return kitcore.createValidator(ConnectionItemSchema, { adaptError })(normalized);
4608
4615
  }
4609
4616
 
4610
4617
  // src/utils/pagination.ts
@@ -7478,8 +7485,7 @@ var appsPlugin = kitcore.defineProperty({
7478
7485
  type: "list",
7479
7486
  inputSchema: ActionExecutionInputSchema,
7480
7487
  itemType: "ActionResult",
7481
- outputSchema: ActionResultItemSchema,
7482
- skipOutputValidation: true
7488
+ outputSchema: ActionResultItemSchema
7483
7489
  }
7484
7490
  ]
7485
7491
  });
@@ -8575,7 +8581,7 @@ var listConnectionsPlugin = kitcore.defineMethod({
8575
8581
  categories: ["connection"],
8576
8582
  itemType: "Connection",
8577
8583
  inputSchema: ListConnectionsQuerySchema,
8578
- outputSchema: connections.ConnectionItemSchema,
8584
+ outputSchema: ConnectionItemSchema,
8579
8585
  skipOutputValidation: true,
8580
8586
  formatter: connectionItemFormatter,
8581
8587
  // `app` is an optional, search-backed filter: the controller offers the app
@@ -8877,7 +8883,7 @@ var getConnectionPlugin = kitcore.defineMethod({
8877
8883
  categories: ["connection"],
8878
8884
  itemType: "Connection",
8879
8885
  inputSchema: GetConnectionInputSchema,
8880
- outputSchema: connections.ConnectionItemSchema,
8886
+ outputSchema: ConnectionItemSchema,
8881
8887
  skipOutputValidation: true,
8882
8888
  output: "item",
8883
8889
  formatter: connectionItemFormatter,
@@ -8922,7 +8928,7 @@ var findFirstConnectionPlugin = kitcore.defineMethod({
8922
8928
  categories: ["connection"],
8923
8929
  itemType: "Connection",
8924
8930
  inputSchema: FindFirstConnectionSchema,
8925
- outputSchema: connections.ConnectionItemSchema,
8931
+ outputSchema: ConnectionItemSchema,
8926
8932
  skipOutputValidation: true,
8927
8933
  output: "item",
8928
8934
  formatter: connectionItemFormatter,
@@ -8958,7 +8964,7 @@ var findUniqueConnectionPlugin = kitcore.defineMethod({
8958
8964
  categories: ["connection"],
8959
8965
  itemType: "Connection",
8960
8966
  inputSchema: FindUniqueConnectionSchema,
8961
- outputSchema: connections.ConnectionItemSchema,
8967
+ outputSchema: ConnectionItemSchema,
8962
8968
  skipOutputValidation: true,
8963
8969
  output: "item",
8964
8970
  formatter: connectionItemFormatter,
@@ -9460,7 +9466,7 @@ var listAuthenticationsPlugin = kitcore.defineMethod({
9460
9466
  categories: ["connection"],
9461
9467
  deprecation: { message: "Use listConnections instead." },
9462
9468
  itemType: "Connection",
9463
- outputSchema: connections.ConnectionItemSchema,
9469
+ outputSchema: ConnectionItemSchema,
9464
9470
  // Matches `listConnections`: an alias must not enforce a schema its target
9465
9471
  // passes through, or the deprecated name strips (or rejects) responses the
9466
9472
  // supported name returns intact.
@@ -9481,7 +9487,7 @@ var getAuthenticationPlugin = kitcore.defineMethod({
9481
9487
  deprecation: { message: "Use getConnection instead." },
9482
9488
  type: "item",
9483
9489
  itemType: "Connection",
9484
- outputSchema: connections.ConnectionItemSchema,
9490
+ outputSchema: ConnectionItemSchema,
9485
9491
  // Inert while the output is `raw` (that mode never validates), set so every
9486
9492
  // method declaring an `outputSchema` states its stance, and so switching this
9487
9493
  // alias to `item` keeps mirroring `getConnection`'s opt-out.
@@ -9502,7 +9508,7 @@ var findFirstAuthenticationPlugin = kitcore.defineMethod({
9502
9508
  deprecation: { message: "Use findFirstConnection instead." },
9503
9509
  type: "item",
9504
9510
  itemType: "Connection",
9505
- outputSchema: connections.ConnectionItemSchema,
9511
+ outputSchema: ConnectionItemSchema,
9506
9512
  skipOutputValidation: true,
9507
9513
  formatter: connectionItemFormatter,
9508
9514
  run: ({ imports, input }) => {
@@ -9520,7 +9526,7 @@ var findUniqueAuthenticationPlugin = kitcore.defineMethod({
9520
9526
  deprecation: { message: "Use findUniqueConnection instead." },
9521
9527
  type: "item",
9522
9528
  itemType: "Connection",
9523
- outputSchema: connections.ConnectionItemSchema,
9529
+ outputSchema: ConnectionItemSchema,
9524
9530
  skipOutputValidation: true,
9525
9531
  formatter: connectionItemFormatter,
9526
9532
  run: ({ imports, input }) => {
@@ -12945,8 +12951,8 @@ var zapierSdkPlugin = kitcore.definePlugin({
12945
12951
  operationAnnotatorPlugin
12946
12952
  ],
12947
12953
  exports: [
12948
- // The registry reporter: previously synthesized by the legacy merge,
12949
- // now surfaced like any other method.
12954
+ // The registry reporter. A re-exportable built-in, so it is listed here
12955
+ // rather than added by the framework.
12950
12956
  kitcore.getRegistryPlugin,
12951
12957
  getProfilePlugin,
12952
12958
  listAppsPlugin,
@@ -13195,13 +13201,18 @@ var BaseSdkOptionsSchema = zod.z.object({
13195
13201
  // Use credentials instead
13196
13202
  });
13197
13203
 
13198
- // src/plugins/registry/index.ts
13199
- var registryPlugin = (_sdk) => {
13200
- logDeprecation(
13201
- "registryPlugin is deprecated and a no-op; getRegistry is now built into every sdk. Remove .addPlugin(registryPlugin)."
13202
- );
13203
- return {};
13204
- };
13204
+ // src/utils/extension-failure.ts
13205
+ function formatExtensionPluginFailure(error) {
13206
+ const message = describeThrown(error);
13207
+ return `Extension plugin failed to construct: ${message}. Skipping this plugin: nothing it declared was added, and any \`dispose\` it registered was invoked. Plugins the same package already loaded stay loaded. Cleanup after an \`await\` inside a \`dispose\` is not guaranteed, and a side effect from the part that threw cannot be undone, so fix or remove the extension.`;
13208
+ }
13209
+ function describeThrown(error) {
13210
+ try {
13211
+ return error instanceof Error ? error.message : String(error);
13212
+ } catch {
13213
+ return "a thrown value that could not be read";
13214
+ }
13215
+ }
13205
13216
 
13206
13217
  Object.defineProperty(exports, "CONTEXT", {
13207
13218
  enumerable: true,
@@ -13239,38 +13250,10 @@ Object.defineProperty(exports, "addPlugin", {
13239
13250
  enumerable: true,
13240
13251
  get: function () { return kitcore.addPlugin; }
13241
13252
  });
13242
- Object.defineProperty(exports, "composePlugins", {
13243
- enumerable: true,
13244
- get: function () { return kitcore.composePlugins; }
13245
- });
13246
13253
  Object.defineProperty(exports, "createController", {
13247
13254
  enumerable: true,
13248
13255
  get: function () { return kitcore.createController; }
13249
13256
  });
13250
- Object.defineProperty(exports, "createCorePlugin", {
13251
- enumerable: true,
13252
- get: function () { return kitcore.createCorePlugin; }
13253
- });
13254
- Object.defineProperty(exports, "createFunction", {
13255
- enumerable: true,
13256
- get: function () { return kitcore.createFunction; }
13257
- });
13258
- Object.defineProperty(exports, "createPaginatedFunction", {
13259
- enumerable: true,
13260
- get: function () { return kitcore.createPaginatedFunction; }
13261
- });
13262
- Object.defineProperty(exports, "createPaginatedPluginMethod", {
13263
- enumerable: true,
13264
- get: function () { return kitcore.createPaginatedPluginMethod; }
13265
- });
13266
- Object.defineProperty(exports, "createPluginMethod", {
13267
- enumerable: true,
13268
- get: function () { return kitcore.createPluginMethod; }
13269
- });
13270
- Object.defineProperty(exports, "createPluginStack", {
13271
- enumerable: true,
13272
- get: function () { return kitcore.createPluginStack; }
13273
- });
13274
13257
  Object.defineProperty(exports, "createSdk", {
13275
13258
  enumerable: true,
13276
13259
  get: function () { return kitcore.createSdk; }
@@ -13295,10 +13278,6 @@ Object.defineProperty(exports, "defineFormatter", {
13295
13278
  enumerable: true,
13296
13279
  get: function () { return kitcore.defineFormatter; }
13297
13280
  });
13298
- Object.defineProperty(exports, "defineLegacyMerge", {
13299
- enumerable: true,
13300
- get: function () { return kitcore.defineLegacyMerge; }
13301
- });
13302
13281
  Object.defineProperty(exports, "defineMethod", {
13303
13282
  enumerable: true,
13304
13283
  get: function () { return kitcore.defineMethod; }
@@ -13327,10 +13306,6 @@ Object.defineProperty(exports, "disposeSdk", {
13327
13306
  enumerable: true,
13328
13307
  get: function () { return kitcore.disposeSdk; }
13329
13308
  });
13330
- Object.defineProperty(exports, "fromFunctionPlugin", {
13331
- enumerable: true,
13332
- get: function () { return kitcore.fromFunctionPlugin; }
13333
- });
13334
13309
  Object.defineProperty(exports, "getContext", {
13335
13310
  enumerable: true,
13336
13311
  get: function () { return kitcore.getContext; }
@@ -13347,6 +13322,10 @@ Object.defineProperty(exports, "getNegatable", {
13347
13322
  enumerable: true,
13348
13323
  get: function () { return kitcore.getNegatable; }
13349
13324
  });
13325
+ Object.defineProperty(exports, "getRegistry", {
13326
+ enumerable: true,
13327
+ get: function () { return kitcore.getRegistry; }
13328
+ });
13350
13329
  Object.defineProperty(exports, "getRegistryPlugin", {
13351
13330
  enumerable: true,
13352
13331
  get: function () { return kitcore.getRegistryPlugin; }
@@ -13524,6 +13503,7 @@ exports.findFirstConnectionPlugin = findFirstConnectionPlugin;
13524
13503
  exports.findManifestEntry = findManifestEntry;
13525
13504
  exports.findUniqueConnectionPlugin = findUniqueConnectionPlugin;
13526
13505
  exports.formatErrorMessage = formatErrorMessage;
13506
+ exports.formatExtensionPluginFailure = formatExtensionPluginFailure;
13527
13507
  exports.generateEventId = generateEventId;
13528
13508
  exports.getActionInputFieldsSchemaPlugin = getActionInputFieldsSchemaPlugin;
13529
13509
  exports.getActionPlugin = getActionPlugin;
@@ -13597,7 +13577,6 @@ exports.manifestPluginRef = manifestPluginRef;
13597
13577
  exports.operationAnnotatorPlugin = operationAnnotatorPlugin;
13598
13578
  exports.parseConcurrencyEnvVar = parseConcurrencyEnvVar;
13599
13579
  exports.readManifestFromFile = readManifestFromFile;
13600
- exports.registryPlugin = registryPlugin;
13601
13580
  exports.requestPlugin = requestPlugin;
13602
13581
  exports.resetDeprecationWarnings = resetDeprecationWarnings;
13603
13582
  exports.resolveAuth = resolveAuth;