@zapier/zapier-sdk 0.37.0 → 0.38.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +56 -49
  3. package/dist/index.cjs +145 -41
  4. package/dist/index.d.mts +38 -7
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2 -0
  8. package/dist/index.mjs +145 -42
  9. package/dist/plugins/capabilities/index.d.ts +22 -0
  10. package/dist/plugins/capabilities/index.d.ts.map +1 -0
  11. package/dist/plugins/capabilities/index.js +76 -0
  12. package/dist/plugins/findFirstConnection/schemas.d.ts +1 -0
  13. package/dist/plugins/findFirstConnection/schemas.d.ts.map +1 -1
  14. package/dist/plugins/findUniqueConnection/schemas.d.ts +1 -0
  15. package/dist/plugins/findUniqueConnection/schemas.d.ts.map +1 -1
  16. package/dist/plugins/listConnections/index.d.ts +2 -1
  17. package/dist/plugins/listConnections/index.d.ts.map +1 -1
  18. package/dist/plugins/listConnections/index.js +10 -3
  19. package/dist/plugins/listConnections/schemas.d.ts +1 -0
  20. package/dist/plugins/listConnections/schemas.d.ts.map +1 -1
  21. package/dist/plugins/listConnections/schemas.js +5 -0
  22. package/dist/plugins/manifest/index.d.ts +1 -0
  23. package/dist/plugins/manifest/index.d.ts.map +1 -1
  24. package/dist/plugins/manifest/index.js +1 -0
  25. package/dist/plugins/manifest/schemas.d.ts +9 -0
  26. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  27. package/dist/plugins/manifest/schemas.js +9 -0
  28. package/dist/plugins/tables/deleteTable/index.d.ts +2 -1
  29. package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -1
  30. package/dist/plugins/tables/deleteTable/index.js +1 -0
  31. package/dist/plugins/tables/listTables/index.d.ts +2 -1
  32. package/dist/plugins/tables/listTables/index.d.ts.map +1 -1
  33. package/dist/plugins/tables/listTables/index.js +14 -6
  34. package/dist/plugins/tables/listTables/schemas.d.ts +1 -0
  35. package/dist/plugins/tables/listTables/schemas.d.ts.map +1 -1
  36. package/dist/plugins/tables/listTables/schemas.js +5 -1
  37. package/dist/resolvers/connectionId.d.ts.map +1 -1
  38. package/dist/resolvers/connectionId.js +13 -23
  39. package/dist/resolvers/tableId.d.ts.map +1 -1
  40. package/dist/resolvers/tableId.js +17 -6
  41. package/dist/sdk.d.ts +3 -2
  42. package/dist/sdk.d.ts.map +1 -1
  43. package/dist/sdk.js +3 -0
  44. package/dist/types/sdk.d.ts +3 -0
  45. package/dist/types/sdk.d.ts.map +1 -1
  46. package/dist/types/sdk.js +9 -0
  47. package/dist/utils/pagination-utils.d.ts +6 -0
  48. package/dist/utils/pagination-utils.d.ts.map +1 -1
  49. package/dist/utils/pagination-utils.js +8 -0
  50. package/dist/utils/schema-utils.d.ts +6 -1
  51. package/dist/utils/schema-utils.d.ts.map +1 -1
  52. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -955,6 +955,9 @@ type ActionEntry = z.infer<typeof ActionEntrySchema>;
955
955
  type Manifest = {
956
956
  apps?: Record<string, ManifestEntry>;
957
957
  actions?: Record<string, ActionEntry>;
958
+ canIncludeSharedConnections?: boolean;
959
+ canIncludeSharedTables?: boolean;
960
+ canDeleteTables?: boolean;
958
961
  connections?: ConnectionsMap;
959
962
  };
960
963
  type ResolveAppKeys = ({ appKeys, }: {
@@ -977,6 +980,9 @@ declare const ManifestPluginOptionsSchema: z.ZodObject<{
977
980
  schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
978
981
  createdAt: z.ZodString;
979
982
  }, z.core.$strip>>>;
983
+ canIncludeSharedConnections: z.ZodOptional<z.ZodBoolean>;
984
+ canIncludeSharedTables: z.ZodOptional<z.ZodBoolean>;
985
+ canDeleteTables: z.ZodOptional<z.ZodBoolean>;
980
986
  connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
981
987
  connectionId: z.ZodNumber;
982
988
  }, z.core.$strip>>>;
@@ -1010,6 +1016,7 @@ interface AddActionEntryResult {
1010
1016
  }
1011
1017
  interface ManifestPluginProvides {
1012
1018
  context: {
1019
+ getResolvedManifest: () => Promise<Manifest | null>;
1013
1020
  getVersionedImplementationId: GetVersionedImplementationId;
1014
1021
  resolveAppKeys: ResolveAppKeys;
1015
1022
  getManifestConnections: () => Promise<ConnectionsMap | null>;
@@ -1318,6 +1325,7 @@ declare const FindFirstConnectionSchema: z.ZodObject<{
1318
1325
  owner: z.ZodOptional<z.ZodString>;
1319
1326
  authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1320
1327
  accountId: z.ZodOptional<z.ZodString>;
1328
+ includeShared: z.ZodOptional<z.ZodBoolean>;
1321
1329
  isExpired: z.ZodOptional<z.ZodBoolean>;
1322
1330
  }, z.core.$strip>;
1323
1331
  type FindFirstConnectionOptions = z.infer<typeof FindFirstConnectionSchema>;
@@ -1331,6 +1339,7 @@ declare const FindUniqueConnectionSchema: z.ZodObject<{
1331
1339
  owner: z.ZodOptional<z.ZodString>;
1332
1340
  authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1333
1341
  accountId: z.ZodOptional<z.ZodString>;
1342
+ includeShared: z.ZodOptional<z.ZodBoolean>;
1334
1343
  isExpired: z.ZodOptional<z.ZodBoolean>;
1335
1344
  }, z.core.$strip>;
1336
1345
  type FindUniqueConnectionOptions = z.infer<typeof FindUniqueConnectionSchema>;
@@ -1778,6 +1787,7 @@ declare const ListConnectionsQuerySchema: z.ZodObject<{
1778
1787
  connectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1779
1788
  authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1780
1789
  accountId: z.ZodOptional<z.ZodString>;
1790
+ includeShared: z.ZodOptional<z.ZodBoolean>;
1781
1791
  isExpired: z.ZodOptional<z.ZodBoolean>;
1782
1792
  pageSize: z.ZodOptional<z.ZodNumber>;
1783
1793
  maxItems: z.ZodOptional<z.ZodNumber>;
@@ -1789,6 +1799,17 @@ interface ListConnectionsPage {
1789
1799
  nextCursor?: string;
1790
1800
  }
1791
1801
 
1802
+ declare function buildCapabilityMessage(key: string): string;
1803
+ declare const GATED_FLAGS: readonly ["canIncludeSharedConnections", "canIncludeSharedTables", "canDeleteTables"];
1804
+ type GatedFlag = (typeof GATED_FLAGS)[number];
1805
+ interface CapabilitiesContext {
1806
+ checkCapability: (key: GatedFlag) => Promise<void>;
1807
+ hasCapability: (key: GatedFlag) => Promise<boolean>;
1808
+ }
1809
+ interface CapabilitiesPluginProvides {
1810
+ context: CapabilitiesContext;
1811
+ }
1812
+
1792
1813
  interface ListConnectionsPluginProvides {
1793
1814
  listConnections: (options?: ListConnectionsOptions) => Promise<ListConnectionsPage> & AsyncIterable<ListConnectionsPage> & {
1794
1815
  items(): AsyncIterable<ConnectionItem$2>;
@@ -1804,7 +1825,7 @@ interface ListConnectionsPluginProvides {
1804
1825
  declare const listConnectionsPlugin: Plugin<GetSdkType<ManifestPluginProvides>, {
1805
1826
  api: ApiClient;
1806
1827
  getVersionedImplementationId: GetVersionedImplementationId;
1807
- } & EventEmissionContext, ListConnectionsPluginProvides>;
1828
+ } & EventEmissionContext & CapabilitiesContext, ListConnectionsPluginProvides>;
1808
1829
 
1809
1830
  interface GetConnectionPluginProvides {
1810
1831
  getConnection: (options: GetConnectionParam) => Promise<GetConnectionResponse>;
@@ -2139,6 +2160,7 @@ declare const ListTablesOptionsSchema: z.ZodObject<{
2139
2160
  }>>;
2140
2161
  search: z.ZodOptional<z.ZodString>;
2141
2162
  owner: z.ZodOptional<z.ZodString>;
2163
+ includeShared: z.ZodOptional<z.ZodBoolean>;
2142
2164
  pageSize: z.ZodOptional<z.ZodNumber>;
2143
2165
  maxItems: z.ZodOptional<z.ZodNumber>;
2144
2166
  cursor: z.ZodOptional<z.ZodString>;
@@ -2163,7 +2185,7 @@ interface ListTablesPluginProvides {
2163
2185
  };
2164
2186
  };
2165
2187
  }
2166
- declare const listTablesPlugin: Plugin<{}, GetContextType<ApiPluginProvides> & EventEmissionContext, ListTablesPluginProvides>;
2188
+ declare const listTablesPlugin: Plugin<{}, GetContextType<ApiPluginProvides> & EventEmissionContext & CapabilitiesContext, ListTablesPluginProvides>;
2167
2189
 
2168
2190
  declare const GetTableOptionsSchema: z.ZodObject<{
2169
2191
  tableId: z.ZodString;
@@ -2206,7 +2228,7 @@ interface DeleteTablePluginProvides {
2206
2228
  }
2207
2229
  declare const deleteTablePlugin: Plugin<{}, {
2208
2230
  api: ApiClient;
2209
- } & EventEmissionContext, DeleteTablePluginProvides>;
2231
+ } & EventEmissionContext & CapabilitiesContext, DeleteTablePluginProvides>;
2210
2232
 
2211
2233
  declare const CreateTableOptionsSchema: z.ZodObject<{
2212
2234
  name: z.ZodString;
@@ -2613,6 +2635,9 @@ declare const BaseSdkOptionsSchema: z.ZodObject<{
2613
2635
  onEvent: z.ZodOptional<z.ZodCustom<EventCallback, EventCallback>>;
2614
2636
  fetch: z.ZodOptional<z.ZodCustom<typeof fetch, typeof fetch>>;
2615
2637
  eventEmission: z.ZodOptional<z.ZodCustom<EventEmissionConfig, EventEmissionConfig>>;
2638
+ canIncludeSharedConnections: z.ZodOptional<z.ZodBoolean>;
2639
+ canIncludeSharedTables: z.ZodOptional<z.ZodBoolean>;
2640
+ canDeleteTables: z.ZodOptional<z.ZodBoolean>;
2616
2641
  token: z.ZodOptional<z.ZodString>;
2617
2642
  }, z.core.$strip>;
2618
2643
  type BaseSdkOptions = z.infer<typeof BaseSdkOptionsSchema>;
@@ -2706,8 +2731,13 @@ interface DynamicResolver<TItem = unknown, TParams = Record<string, unknown>> ex
2706
2731
  fetch: (sdk: ZapierSdk, resolvedParams: TParams) => PromiseLike<TItem[] | {
2707
2732
  data: TItem[];
2708
2733
  nextCursor?: string;
2709
- }>;
2734
+ } | AsyncIterable<{
2735
+ data: TItem[];
2736
+ nextCursor?: string;
2737
+ }>>;
2710
2738
  prompt: (items: TItem[], params: TParams) => PromptConfig;
2739
+ /** Capabilities that expand results. The parameter resolver shows a hint for any that aren't enabled. */
2740
+ requireCapabilities?: string[];
2711
2741
  /**
2712
2742
  * Optional hook called before fetch/prompt. If it returns a non-null object,
2713
2743
  * resolvedValue is used directly and fetch/prompt are skipped entirely. Return
@@ -3370,12 +3400,13 @@ declare function createSdk<TCurrentSdk = {}, TCurrentContext extends {
3370
3400
  getContext(): TCurrentContext;
3371
3401
  }, TRequiresContext, TProvides>, addPluginOptions?: Record<string, unknown>): Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>>;
3372
3402
  };
3373
- declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<EventEmissionProvides> & ExtractSdkProperties<ApiPluginProvides> & ExtractSdkProperties<ManifestPluginProvides> & ExtractSdkProperties<ConnectionsPluginProvides> & ExtractSdkProperties<ListAppsPluginProvides> & ExtractSdkProperties<GetAppPluginProvides> & ExtractSdkProperties<ListActionsPluginProvides> & ExtractSdkProperties<GetActionPluginProvides> & ExtractSdkProperties<ListInputFieldsPluginProvides> & ExtractSdkProperties<GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<RunActionPluginProvides> & ExtractSdkProperties<ListConnectionsPluginProvides> & ExtractSdkProperties<GetConnectionPluginProvides> & ExtractSdkProperties<FindFirstConnectionPluginProvides> & ExtractSdkProperties<FindUniqueConnectionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<ListClientCredentialsPluginProvides> & ExtractSdkProperties<CreateClientCredentialsPluginProvides> & ExtractSdkProperties<DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<ListTablesPluginProvides> & ExtractSdkProperties<GetTablePluginProvides> & ExtractSdkProperties<DeleteTablePluginProvides> & ExtractSdkProperties<CreateTablePluginProvides> & ExtractSdkProperties<ListTableFieldsPluginProvides> & ExtractSdkProperties<CreateTableFieldsPluginProvides> & ExtractSdkProperties<DeleteTableFieldsPluginProvides> & ExtractSdkProperties<GetTableRecordPluginProvides> & ExtractSdkProperties<ListTableRecordsPluginProvides> & ExtractSdkProperties<CreateTableRecordsPluginProvides> & ExtractSdkProperties<DeleteTableRecordsPluginProvides> & ExtractSdkProperties<UpdateTableRecordsPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
3403
+ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<EventEmissionProvides> & ExtractSdkProperties<ApiPluginProvides> & ExtractSdkProperties<ManifestPluginProvides> & ExtractSdkProperties<CapabilitiesPluginProvides> & ExtractSdkProperties<ConnectionsPluginProvides> & ExtractSdkProperties<ListAppsPluginProvides> & ExtractSdkProperties<GetAppPluginProvides> & ExtractSdkProperties<ListActionsPluginProvides> & ExtractSdkProperties<GetActionPluginProvides> & ExtractSdkProperties<ListInputFieldsPluginProvides> & ExtractSdkProperties<GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<RunActionPluginProvides> & ExtractSdkProperties<ListConnectionsPluginProvides> & ExtractSdkProperties<GetConnectionPluginProvides> & ExtractSdkProperties<FindFirstConnectionPluginProvides> & ExtractSdkProperties<FindUniqueConnectionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<ListClientCredentialsPluginProvides> & ExtractSdkProperties<CreateClientCredentialsPluginProvides> & ExtractSdkProperties<DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<ListTablesPluginProvides> & ExtractSdkProperties<GetTablePluginProvides> & ExtractSdkProperties<DeleteTablePluginProvides> & ExtractSdkProperties<CreateTablePluginProvides> & ExtractSdkProperties<ListTableFieldsPluginProvides> & ExtractSdkProperties<CreateTableFieldsPluginProvides> & ExtractSdkProperties<DeleteTableFieldsPluginProvides> & ExtractSdkProperties<GetTableRecordPluginProvides> & ExtractSdkProperties<ListTableRecordsPluginProvides> & ExtractSdkProperties<CreateTableRecordsPluginProvides> & ExtractSdkProperties<DeleteTableRecordsPluginProvides> & ExtractSdkProperties<UpdateTableRecordsPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
3374
3404
  meta: Record<string, PluginMeta>;
3375
3405
  } & EventEmissionContext & {
3376
3406
  api: ApiClient;
3377
3407
  resolveCredentials: () => Promise<ResolvedCredentials | undefined>;
3378
3408
  } & {
3409
+ getResolvedManifest: () => Promise<Manifest | null>;
3379
3410
  getVersionedImplementationId: GetVersionedImplementationId;
3380
3411
  resolveAppKeys: ResolveAppKeys;
3381
3412
  getManifestConnections: () => Promise<ConnectionsMap | null>;
@@ -3402,7 +3433,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3402
3433
  manifest: Manifest;
3403
3434
  }) => [string, ManifestEntry] | null;
3404
3435
  readManifestFromFile: (filePath: string) => Promise<Manifest | null>;
3405
- } & {
3436
+ } & CapabilitiesContext & {
3406
3437
  resolveConnection: (name: string) => Promise<ConnectionEntry | undefined>;
3407
3438
  getConnectionsMap: () => Promise<ConnectionsMap | null>;
3408
3439
  } & {
@@ -3619,4 +3650,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3619
3650
  }>;
3620
3651
  declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
3621
3652
 
3622
- export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type ArrayResolver, type AuthEvent, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type BaseEvent, BaseSdkOptionsSchema, type BatchOptions, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, type Choice, type ClientCredentialsObject, ClientCredentialsObjectSchema, type Connection, type ConnectionEntry, ConnectionEntrySchema, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionProperty, ConnectionPropertySchema, type ConnectionsMap, ConnectionsMapSchema, type ConnectionsPluginProvides, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type CreateTableFieldsPluginProvides, type CreateTablePluginProvides, type CreateTableRecordsPluginProvides, type Credentials, type CredentialsFunction, CredentialsFunctionSchema, type CredentialsObject, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_PAGE_SIZE, type DebugProperty, DebugPropertySchema, type DeleteClientCredentialsPluginProvides, type DeleteTableFieldsPluginProvides, type DeleteTablePluginProvides, type DeleteTableRecordsPluginProvides, type DynamicResolver, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsResolver, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindFirstConnectionPluginProvides, type FindUniqueAuthenticationPluginProvides, type FindUniqueConnectionPluginProvides, type FormatMetadata, type FormattedItem, type FunctionDeprecation, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetConnectionPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type GetTablePluginProvides, type GetTableRecordPluginProvides, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListClientCredentialsPluginProvides, type ListConnectionsPluginProvides, type ListInputFieldsPluginProvides, type ListTableFieldsPluginProvides, type ListTableRecordsPluginProvides, type ListTablesPluginProvides, type LoadingEvent, MAX_PAGE_LIMIT, type Manifest, type ManifestEntry, type ManifestPluginOptions, type ManifestPluginProvides, type MethodCalledEvent, type MethodCalledEventData, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputFormatter, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type PkceCredentialsObject, PkceCredentialsObjectSchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, type RateLimitInfo, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, ResolvedCredentialsSchema, type Resolver, type ResolverMetadata, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type SdkPage, type StaticResolver, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UpdateTableRecordsPluginProvides, type UserProfile, type UserProfileItem, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };
3653
+ export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type ArrayResolver, type AuthEvent, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type BaseEvent, BaseSdkOptionsSchema, type BatchOptions, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, type Choice, type ClientCredentialsObject, ClientCredentialsObjectSchema, type Connection, type ConnectionEntry, ConnectionEntrySchema, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionProperty, ConnectionPropertySchema, type ConnectionsMap, ConnectionsMapSchema, type ConnectionsPluginProvides, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type CreateTableFieldsPluginProvides, type CreateTablePluginProvides, type CreateTableRecordsPluginProvides, type Credentials, type CredentialsFunction, CredentialsFunctionSchema, type CredentialsObject, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_PAGE_SIZE, type DebugProperty, DebugPropertySchema, type DeleteClientCredentialsPluginProvides, type DeleteTableFieldsPluginProvides, type DeleteTablePluginProvides, type DeleteTableRecordsPluginProvides, type DynamicResolver, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsResolver, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindFirstConnectionPluginProvides, type FindUniqueAuthenticationPluginProvides, type FindUniqueConnectionPluginProvides, type FormatMetadata, type FormattedItem, type FunctionDeprecation, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetConnectionPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type GetTablePluginProvides, type GetTableRecordPluginProvides, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListClientCredentialsPluginProvides, type ListConnectionsPluginProvides, type ListInputFieldsPluginProvides, type ListTableFieldsPluginProvides, type ListTableRecordsPluginProvides, type ListTablesPluginProvides, type LoadingEvent, MAX_PAGE_LIMIT, type Manifest, type ManifestEntry, type ManifestPluginOptions, type ManifestPluginProvides, type MethodCalledEvent, type MethodCalledEventData, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputFormatter, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type PkceCredentialsObject, PkceCredentialsObjectSchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, type RateLimitInfo, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, ResolvedCredentialsSchema, type Resolver, type ResolverMetadata, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type SdkPage, type StaticResolver, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UpdateTableRecordsPluginProvides, type UserProfile, type UserProfileItem, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };
package/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export * from "./credentials";
36
36
  export * from "./types/credentials";
37
37
  export * from "./types/connections";
38
38
  export * from "./plugins/connections";
39
+ export { buildCapabilityMessage } from "./plugins/capabilities";
39
40
  export { logDeprecation, resetDeprecationWarnings } from "./utils/logging";
40
41
  export * from "./constants";
41
42
  export { RelayRequestSchema, RelayFetchSchema, } from "./plugins/request/schemas";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
package/dist/index.js CHANGED
@@ -41,6 +41,8 @@ export * from "./types/credentials";
41
41
  // Export connections types and utilities
42
42
  export * from "./types/connections";
43
43
  export * from "./plugins/connections";
44
+ // Export capabilities
45
+ export { buildCapabilityMessage } from "./plugins/capabilities";
44
46
  // Export logging utilities
45
47
  export { logDeprecation, resetDeprecationWarnings } from "./utils/logging";
46
48
  // Export constants
package/dist/index.mjs CHANGED
@@ -1053,6 +1053,9 @@ function concatPaginated({
1053
1053
  }
1054
1054
  });
1055
1055
  }
1056
+ function toIterable(source) {
1057
+ return { [Symbol.asyncIterator]: () => source[Symbol.asyncIterator]() };
1058
+ }
1056
1059
 
1057
1060
  // src/utils/validation.ts
1058
1061
  var validate = (schema, input) => {
@@ -1830,44 +1833,32 @@ var actionKeyResolver = {
1830
1833
 
1831
1834
  // src/resolvers/connectionId.ts
1832
1835
  async function fetchConnections(sdk, resolvedParams) {
1833
- const listOptions = {
1834
- maxItems: 1e3
1835
- };
1836
- if (resolvedParams.appKey) {
1837
- listOptions.appKey = resolvedParams.appKey;
1838
- }
1839
- const myConnections = await sdk.listConnections({
1840
- ...listOptions,
1841
- owner: "me"
1842
- });
1843
- const allConnections = await sdk.listConnections(listOptions);
1844
- const otherConnections = allConnections.data.filter(
1845
- (connection) => !myConnections.data.some(
1846
- (myConnection) => myConnection.id === connection.id
1847
- )
1836
+ const context = sdk.getContext();
1837
+ const includeShared = await context.hasCapability?.(
1838
+ "canIncludeSharedConnections"
1839
+ );
1840
+ return toIterable(
1841
+ sdk.listConnections({
1842
+ appKey: resolvedParams.appKey,
1843
+ includeShared: includeShared || void 0
1844
+ })
1848
1845
  );
1849
- return [...myConnections.data, ...otherConnections];
1850
1846
  }
1851
1847
  function promptForConnection(connections, params) {
1852
1848
  return {
1853
1849
  type: "list",
1854
1850
  name: "connectionId",
1855
1851
  message: params.appKey ? `Select connection for ${params.appKey}:` : "Select connection:",
1856
- choices: [
1857
- ...connections.map((connection) => ({
1858
- name: `${connection.title || connection.label || "Connection"} (ID: ${connection.id})`,
1859
- value: connection.id
1860
- })),
1861
- {
1862
- name: "-> Skip connection (may fail)",
1863
- value: null
1864
- }
1865
- ]
1852
+ choices: connections.map((connection) => ({
1853
+ name: `${connection.title || connection.label || "Connection"} (ID: ${connection.id})`,
1854
+ value: connection.id
1855
+ }))
1866
1856
  };
1867
1857
  }
1868
1858
  var connectionIdResolver = {
1869
1859
  type: "dynamic",
1870
1860
  depends: ["appKey"],
1861
+ requireCapabilities: ["canIncludeSharedConnections"],
1871
1862
  tryResolveWithoutPrompt: async (sdk, params) => {
1872
1863
  if (!params.appKey) return null;
1873
1864
  try {
@@ -1885,6 +1876,7 @@ var connectionIdResolver = {
1885
1876
  var connectionIdGenericResolver = {
1886
1877
  type: "dynamic",
1887
1878
  depends: [],
1879
+ requireCapabilities: ["canIncludeSharedConnections"],
1888
1880
  fetch: fetchConnections,
1889
1881
  prompt: promptForConnection
1890
1882
  };
@@ -2008,11 +2000,24 @@ var clientIdResolver = {
2008
2000
  // src/resolvers/tableId.ts
2009
2001
  var tableIdResolver = {
2010
2002
  type: "dynamic",
2011
- fetch: (sdk) => {
2012
- return concatPaginated({
2013
- sources: [() => sdk.listTables({ owner: "me" }), () => sdk.listTables()],
2014
- dedupe: (table) => table.id
2015
- });
2003
+ requireCapabilities: ["canIncludeSharedTables"],
2004
+ fetch: async (sdk) => {
2005
+ const context = sdk.getContext();
2006
+ const includeShared = await context.hasCapability?.(
2007
+ "canIncludeSharedTables"
2008
+ );
2009
+ if (includeShared) {
2010
+ return toIterable(
2011
+ concatPaginated({
2012
+ sources: [
2013
+ () => sdk.listTables(),
2014
+ () => sdk.listTables({ includeShared: true })
2015
+ ],
2016
+ dedupe: (table) => table.id
2017
+ })
2018
+ );
2019
+ }
2020
+ return toIterable(sdk.listTables());
2016
2021
  },
2017
2022
  prompt: (tables) => ({
2018
2023
  type: "list",
@@ -3108,6 +3113,10 @@ var ListConnectionsQuerySchema = ListConnectionsQuerySchema$1.omit({
3108
3113
  ),
3109
3114
  // camelCase account ID
3110
3115
  accountId: z.string().optional().describe("Account ID to filter by"),
3116
+ // Include shared connections (overrides default owner=me filter)
3117
+ includeShared: z.boolean().optional().describe(
3118
+ "Include connections shared with you. By default, only your own connections are returned (owner=me). Set to true to also include shared connections."
3119
+ ),
3111
3120
  // camelCase isExpired
3112
3121
  isExpired: z.boolean().optional().describe("Filter by expired status"),
3113
3122
  // Override pageSize to make optional
@@ -3147,6 +3156,9 @@ var ConnectionItemSchema = withFormatter(ConnectionItemSchema$1, {
3147
3156
  // src/plugins/listConnections/index.ts
3148
3157
  var listConnectionsPlugin = ({ context }) => {
3149
3158
  async function listConnectionsPage(options) {
3159
+ if (options.includeShared) {
3160
+ await context.checkCapability("canIncludeSharedConnections");
3161
+ }
3150
3162
  const { api, getVersionedImplementationId } = context;
3151
3163
  const searchParams = {};
3152
3164
  if (options.pageSize !== void 0) {
@@ -3177,8 +3189,14 @@ var listConnectionsPlugin = ({ context }) => {
3177
3189
  if (options.accountId) {
3178
3190
  searchParams.account_id = options.accountId;
3179
3191
  }
3180
- if (options.owner) {
3181
- searchParams.owner = options.owner;
3192
+ if (options.owner && options.owner !== "me" && !options.includeShared) {
3193
+ throw new ZapierValidationError(
3194
+ 'The "owner" option requires "includeShared" to be true. Without includeShared, only your own connections are returned.'
3195
+ );
3196
+ }
3197
+ const owner = options.includeShared ? options.owner : "me";
3198
+ if (owner) {
3199
+ searchParams.owner = owner;
3182
3200
  }
3183
3201
  if (options.isExpired !== void 0) {
3184
3202
  searchParams.is_expired = options.isExpired.toString();
@@ -4100,6 +4118,9 @@ var ManifestSchema = z.object({
4100
4118
  })
4101
4119
  ).optional(),
4102
4120
  actions: z.record(z.string(), ActionEntrySchema).optional().describe("Saved action configurations with their schemas"),
4121
+ canIncludeSharedConnections: z.boolean().optional().describe("Allow listing shared connections"),
4122
+ canIncludeSharedTables: z.boolean().optional().describe("Allow listing shared tables"),
4123
+ canDeleteTables: z.boolean().optional().describe("Allow deleting tables"),
4103
4124
  connections: ConnectionsMapSchema.optional().describe(
4104
4125
  "Named connections map. Keys are connection names, values contain a connectionId."
4105
4126
  )
@@ -4455,6 +4476,7 @@ var manifestPlugin = (params) => {
4455
4476
  };
4456
4477
  return {
4457
4478
  context: {
4479
+ getResolvedManifest,
4458
4480
  getVersionedImplementationId,
4459
4481
  resolveAppKeys: async ({ appKeys }) => resolveAppKeys({
4460
4482
  appKeys,
@@ -5858,6 +5880,69 @@ var connectionsPlugin = (params) => {
5858
5880
  }
5859
5881
  };
5860
5882
  };
5883
+
5884
+ // src/plugins/capabilities/index.ts
5885
+ function toDescription(key) {
5886
+ const words = key.replace(/^can/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase();
5887
+ return `To ${words}`;
5888
+ }
5889
+ function toEnvVar(key) {
5890
+ return "ZAPIER_" + key.replace(/([A-Z])/g, "_$1").toUpperCase();
5891
+ }
5892
+ function toCliFlag(key) {
5893
+ return "--" + key.replace(/([A-Z])/g, "-$1").toLowerCase();
5894
+ }
5895
+ function buildCapabilityMessage(key) {
5896
+ return [
5897
+ `${toDescription(key)}, use ${toCliFlag(key)} in the CLI,`,
5898
+ `set ${key}: true in SDK options or .zapierrc,`,
5899
+ `or set ${toEnvVar(key)}=true.`
5900
+ ].join(" ");
5901
+ }
5902
+ var GATED_FLAGS = [
5903
+ "canIncludeSharedConnections",
5904
+ "canIncludeSharedTables",
5905
+ "canDeleteTables"
5906
+ ];
5907
+ function isEnabledByEnv(key) {
5908
+ if (typeof process === "undefined") return void 0;
5909
+ const value = process.env[toEnvVar(key)];
5910
+ if (value === void 0) return void 0;
5911
+ if (value === "true" || value === "1") return true;
5912
+ if (value === "false" || value === "0") return false;
5913
+ return void 0;
5914
+ }
5915
+ var capabilitiesPlugin = ({ context }) => {
5916
+ const options = context.options ?? {};
5917
+ let cached;
5918
+ async function resolveFlags() {
5919
+ if (cached) return cached;
5920
+ const manifest = await context.getResolvedManifest();
5921
+ cached = {};
5922
+ for (const flag of GATED_FLAGS) {
5923
+ cached[flag] = Boolean(
5924
+ options[flag] ?? isEnabledByEnv(flag) ?? manifest?.[flag]
5925
+ );
5926
+ }
5927
+ return cached;
5928
+ }
5929
+ return {
5930
+ context: {
5931
+ checkCapability: async (key) => {
5932
+ const flags = await resolveFlags();
5933
+ if (flags[key]) return;
5934
+ throw new ZapierConfigurationError(
5935
+ buildCapabilityMessage(key) + " (If you are an AI agent, you MUST NOT retry. Ask the user if they want to enable this.)",
5936
+ { configType: key }
5937
+ );
5938
+ },
5939
+ hasCapability: async (key) => {
5940
+ const flags = await resolveFlags();
5941
+ return flags[key];
5942
+ }
5943
+ }
5944
+ };
5945
+ };
5861
5946
  var TableApiItemSchema = z.object({
5862
5947
  id: z.string(),
5863
5948
  name: z.string(),
@@ -5892,7 +5977,10 @@ var ListTablesOptionsSchema = z.object({
5892
5977
  kind: z.enum(["table", "virtual_table", "both"]).optional().describe("Filter by table type"),
5893
5978
  search: z.string().optional().describe("Search term to filter tables by name"),
5894
5979
  owner: z.string().optional().describe(
5895
- 'Filter by table owner. Use "me" for the current user, or a numeric user ID.'
5980
+ 'Filter by table owner. Use "me" for the current user, or a numeric user ID. Requires includeShared to be true.'
5981
+ ),
5982
+ includeShared: z.boolean().optional().describe(
5983
+ "Include tables shared with you. Without this, only your own tables are returned."
5896
5984
  ),
5897
5985
  pageSize: z.number().min(1).optional().describe("Number of tables per page"),
5898
5986
  maxItems: z.number().min(1).optional().describe("Maximum total items to return across all pages"),
@@ -5914,6 +6002,9 @@ function extractNextCursor(links) {
5914
6002
  }
5915
6003
  var listTablesPlugin = ({ context }) => {
5916
6004
  async function listTablesPage(options) {
6005
+ if (options.includeShared) {
6006
+ await context.checkCapability("canIncludeSharedTables");
6007
+ }
5917
6008
  const { api } = context;
5918
6009
  const searchParams = {};
5919
6010
  if (options.pageSize !== void 0) {
@@ -5928,15 +6019,23 @@ var listTablesPlugin = ({ context }) => {
5928
6019
  if (options?.search) {
5929
6020
  searchParams.q = options.search;
5930
6021
  }
5931
- if (options?.owner) {
5932
- let ownerId = options.owner;
5933
- if (ownerId === "me") {
6022
+ if (options?.owner && options.owner !== "me" && !options.includeShared) {
6023
+ throw new ZapierValidationError(
6024
+ 'The "owner" option requires "includeShared" to be true. Without includeShared, only your own tables are returned.'
6025
+ );
6026
+ }
6027
+ const owner = options.includeShared ? options.owner : "me";
6028
+ if (owner) {
6029
+ if (owner === "me") {
5934
6030
  const profile = await api.get("/zapier/api/v4/profile/", {
5935
6031
  authRequired: true
5936
6032
  });
5937
- ownerId = String(profile.id);
6033
+ searchParams.owner_customuser_id = String(
6034
+ profile.id
6035
+ );
6036
+ } else {
6037
+ searchParams.owner_customuser_id = owner;
5938
6038
  }
5939
- searchParams.owner_customuser_id = ownerId;
5940
6039
  }
5941
6040
  if (options.cursor) {
5942
6041
  searchParams.offset = options.cursor;
@@ -6130,6 +6229,7 @@ var DeleteTableOptionsSchema = z.object({
6130
6229
  // src/plugins/tables/deleteTable/index.ts
6131
6230
  var deleteTablePlugin = ({ context }) => {
6132
6231
  async function deleteTable(options) {
6232
+ await context.checkCapability("canDeleteTables");
6133
6233
  const { api } = context;
6134
6234
  await api.delete(`/tables/api/v1/tables/${options.tableId}`, void 0, {
6135
6235
  customErrorHandler: ({ status }) => {
@@ -7539,7 +7639,7 @@ function getCpuTime() {
7539
7639
  }
7540
7640
 
7541
7641
  // src/plugins/eventEmission/builders.ts
7542
- var SDK_VERSION = "0.37.0";
7642
+ var SDK_VERSION = "0.38.0";
7543
7643
  function createBaseEvent(context = {}) {
7544
7644
  return {
7545
7645
  event_id: generateEventId(),
@@ -8032,7 +8132,7 @@ function createSdk(options = {}, initialSdk = {}, initialContext = { meta: {} })
8032
8132
  };
8033
8133
  }
8034
8134
  function createZapierSdkWithoutRegistry(options = {}) {
8035
- return createSdk(options).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listInputFieldsPlugin).addPlugin(getInputFieldsSchemaPlugin).addPlugin(listInputFieldChoicesPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
8135
+ return createSdk(options).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listInputFieldsPlugin).addPlugin(getInputFieldsSchemaPlugin).addPlugin(listInputFieldChoicesPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
8036
8136
  }
8037
8137
  function createZapierSdk(options = {}) {
8038
8138
  return createZapierSdkWithoutRegistry(options).addPlugin(registryPlugin);
@@ -8061,9 +8161,12 @@ var BaseSdkOptionsSchema = z.object({
8061
8161
  onEvent: z.custom().optional().meta({ internal: true }),
8062
8162
  fetch: z.custom().optional().meta({ internal: true }),
8063
8163
  eventEmission: z.custom().optional().meta({ internal: true }),
8164
+ canIncludeSharedConnections: z.boolean().optional().describe("Allow listing shared connections."),
8165
+ canIncludeSharedTables: z.boolean().optional().describe("Allow listing shared tables."),
8166
+ canDeleteTables: z.boolean().optional().describe("Allow deleting tables."),
8064
8167
  // Deprecated
8065
8168
  token: z.string().optional().meta({ deprecated: true })
8066
8169
  // Use credentials instead
8067
8170
  });
8068
8171
 
8069
- export { ActionKeyPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_PAGE_SIZE, DebugPropertySchema, InputsPropertySchema, LimitPropertySchema, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };
8172
+ export { ActionKeyPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_PAGE_SIZE, DebugPropertySchema, InputsPropertySchema, LimitPropertySchema, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };
@@ -0,0 +1,22 @@
1
+ import type { Plugin } from "../../types/plugin";
2
+ import type { Manifest } from "../manifest/schemas";
3
+ export declare function buildCapabilityMessage(key: string): string;
4
+ declare const GATED_FLAGS: readonly ["canIncludeSharedConnections", "canIncludeSharedTables", "canDeleteTables"];
5
+ export type GatedFlag = (typeof GATED_FLAGS)[number];
6
+ export interface CapabilitiesContext {
7
+ checkCapability: (key: GatedFlag) => Promise<void>;
8
+ hasCapability: (key: GatedFlag) => Promise<boolean>;
9
+ }
10
+ export interface CapabilitiesPluginProvides {
11
+ context: CapabilitiesContext;
12
+ }
13
+ export declare const capabilitiesPlugin: Plugin<{}, {
14
+ options?: {
15
+ canIncludeSharedConnections?: boolean;
16
+ canIncludeSharedTables?: boolean;
17
+ canDeleteTables?: boolean;
18
+ };
19
+ getResolvedManifest: () => Promise<Manifest | null>;
20
+ }, CapabilitiesPluginProvides>;
21
+ export {};
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/capabilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAqBpD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM1D;AAED,QAAA,MAAM,WAAW,uFAIP,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAWrD,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,aAAa,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACrD;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,EAAE,EACF;IACE,OAAO,CAAC,EAAE;QACR,2BAA2B,CAAC,EAAE,OAAO,CAAC;QACtC,sBAAsB,CAAC,EAAE,OAAO,CAAC;QACjC,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,mBAAmB,EAAE,MAAM,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;CACrD,EACD,0BAA0B,CA8C3B,CAAC"}