@zapier/zapier-sdk 0.48.1 → 0.49.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 (207) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +818 -70
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/client.js +10 -1
  5. package/dist/api/polling.d.ts +7 -0
  6. package/dist/api/polling.d.ts.map +1 -1
  7. package/dist/api/polling.js +29 -4
  8. package/dist/api/types.d.ts +7 -0
  9. package/dist/api/types.d.ts.map +1 -1
  10. package/dist/experimental.cjs +10389 -0
  11. package/dist/experimental.d.mts +2292 -0
  12. package/dist/experimental.d.ts +2308 -0
  13. package/dist/experimental.d.ts.map +1 -0
  14. package/dist/experimental.js +155 -0
  15. package/dist/experimental.mjs +10207 -0
  16. package/dist/index-C2vsvjgN.d.mts +9539 -0
  17. package/dist/index-C2vsvjgN.d.ts +9539 -0
  18. package/dist/index.cjs +813 -602
  19. package/dist/index.d.mts +6 -8562
  20. package/dist/index.d.ts +7 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +5 -1
  23. package/dist/index.mjs +801 -602
  24. package/dist/plugins/apps/index.d.ts +1 -1
  25. package/dist/plugins/deprecated/inputFields.d.ts +468 -0
  26. package/dist/plugins/deprecated/inputFields.d.ts.map +1 -0
  27. package/dist/plugins/deprecated/inputFields.js +73 -0
  28. package/dist/plugins/fetch/index.d.ts +1 -1
  29. package/dist/plugins/fetch/schemas.d.ts +1 -1
  30. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/index.d.ts +4 -4
  31. package/dist/plugins/getActionInputFieldsSchema/index.d.ts.map +1 -0
  32. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/index.js +4 -4
  33. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/schemas.d.ts +8 -8
  34. package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts.map +1 -0
  35. package/dist/plugins/{getInputFieldsSchema → getActionInputFieldsSchema}/schemas.js +13 -10
  36. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/index.d.ts +4 -4
  37. package/dist/plugins/listActionInputFieldChoices/index.d.ts.map +1 -0
  38. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/index.js +4 -4
  39. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/schemas.d.ts +10 -10
  40. package/dist/plugins/listActionInputFieldChoices/schemas.d.ts.map +1 -0
  41. package/dist/plugins/{listInputFieldChoices → listActionInputFieldChoices}/schemas.js +13 -10
  42. package/dist/plugins/{listInputFields → listActionInputFields}/index.d.ts +4 -4
  43. package/dist/plugins/listActionInputFields/index.d.ts.map +1 -0
  44. package/dist/plugins/{listInputFields → listActionInputFields}/index.js +4 -4
  45. package/dist/plugins/{listInputFields → listActionInputFields}/schemas.d.ts +9 -9
  46. package/dist/plugins/listActionInputFields/schemas.d.ts.map +1 -0
  47. package/dist/plugins/{listInputFields → listActionInputFields}/schemas.js +7 -7
  48. package/dist/plugins/request/index.d.ts +2 -2
  49. package/dist/plugins/request/schemas.d.ts +2 -2
  50. package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts +51 -0
  51. package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -0
  52. package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +35 -0
  53. package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts +34 -0
  54. package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.d.ts.map +1 -0
  55. package/dist/plugins/triggers/ackTriggerInboxMessages/schemas.js +17 -0
  56. package/dist/plugins/triggers/createTriggerInbox/index.d.ts +62 -0
  57. package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -0
  58. package/dist/plugins/triggers/createTriggerInbox/index.js +54 -0
  59. package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts +20 -0
  60. package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts.map +1 -0
  61. package/dist/plugins/triggers/createTriggerInbox/schemas.js +20 -0
  62. package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts +50 -0
  63. package/dist/plugins/triggers/deleteTriggerInbox/index.d.ts.map +1 -0
  64. package/dist/plugins/triggers/deleteTriggerInbox/index.js +27 -0
  65. package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts +14 -0
  66. package/dist/plugins/triggers/deleteTriggerInbox/schemas.d.ts.map +1 -0
  67. package/dist/plugins/triggers/deleteTriggerInbox/schemas.js +9 -0
  68. package/dist/plugins/triggers/drainTriggerInbox/index.d.ts +213 -0
  69. package/dist/plugins/triggers/drainTriggerInbox/index.d.ts.map +1 -0
  70. package/dist/plugins/triggers/drainTriggerInbox/index.js +227 -0
  71. package/dist/plugins/triggers/drainTriggerInbox/pipeline.d.ts +56 -0
  72. package/dist/plugins/triggers/drainTriggerInbox/pipeline.d.ts.map +1 -0
  73. package/dist/plugins/triggers/drainTriggerInbox/pipeline.js +225 -0
  74. package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts +104 -0
  75. package/dist/plugins/triggers/drainTriggerInbox/schemas.d.ts.map +1 -0
  76. package/dist/plugins/triggers/drainTriggerInbox/schemas.js +102 -0
  77. package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts +63 -0
  78. package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -0
  79. package/dist/plugins/triggers/ensureTriggerInbox/index.js +77 -0
  80. package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts +21 -0
  81. package/dist/plugins/triggers/ensureTriggerInbox/schemas.d.ts.map +1 -0
  82. package/dist/plugins/triggers/ensureTriggerInbox/schemas.js +21 -0
  83. package/dist/plugins/triggers/getTriggerInbox/index.d.ts +50 -0
  84. package/dist/plugins/triggers/getTriggerInbox/index.d.ts.map +1 -0
  85. package/dist/plugins/triggers/getTriggerInbox/index.js +26 -0
  86. package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts +14 -0
  87. package/dist/plugins/triggers/getTriggerInbox/schemas.d.ts.map +1 -0
  88. package/dist/plugins/triggers/getTriggerInbox/schemas.js +9 -0
  89. package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +48 -0
  90. package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts.map +1 -0
  91. package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.js +23 -0
  92. package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts +13 -0
  93. package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.d.ts.map +1 -0
  94. package/dist/plugins/triggers/getTriggerInputFieldsSchema/schemas.js +10 -0
  95. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts +58 -0
  96. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -0
  97. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +70 -0
  98. package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts +57 -0
  99. package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.d.ts.map +1 -0
  100. package/dist/plugins/triggers/leaseTriggerInboxMessages/schemas.js +25 -0
  101. package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts +51 -0
  102. package/dist/plugins/triggers/listTriggerInboxMessages/index.d.ts.map +1 -0
  103. package/dist/plugins/triggers/listTriggerInboxMessages/index.js +48 -0
  104. package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts +37 -0
  105. package/dist/plugins/triggers/listTriggerInboxMessages/schemas.d.ts.map +1 -0
  106. package/dist/plugins/triggers/listTriggerInboxMessages/schemas.js +27 -0
  107. package/dist/plugins/triggers/listTriggerInboxes/index.d.ts +56 -0
  108. package/dist/plugins/triggers/listTriggerInboxes/index.d.ts.map +1 -0
  109. package/dist/plugins/triggers/listTriggerInboxes/index.js +51 -0
  110. package/dist/plugins/triggers/listTriggerInboxes/schemas.d.ts +58 -0
  111. package/dist/plugins/triggers/listTriggerInboxes/schemas.d.ts.map +1 -0
  112. package/dist/plugins/triggers/listTriggerInboxes/schemas.js +35 -0
  113. package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +77 -0
  114. package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts.map +1 -0
  115. package/dist/plugins/triggers/listTriggerInputFieldChoices/index.js +30 -0
  116. package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts +20 -0
  117. package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.d.ts.map +1 -0
  118. package/dist/plugins/triggers/listTriggerInputFieldChoices/schemas.js +28 -0
  119. package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +101 -0
  120. package/dist/plugins/triggers/listTriggerInputFields/index.d.ts.map +1 -0
  121. package/dist/plugins/triggers/listTriggerInputFields/index.js +33 -0
  122. package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts +16 -0
  123. package/dist/plugins/triggers/listTriggerInputFields/schemas.d.ts.map +1 -0
  124. package/dist/plugins/triggers/listTriggerInputFields/schemas.js +21 -0
  125. package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts +50 -0
  126. package/dist/plugins/triggers/pauseTriggerInbox/index.d.ts.map +1 -0
  127. package/dist/plugins/triggers/pauseTriggerInbox/index.js +26 -0
  128. package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts +14 -0
  129. package/dist/plugins/triggers/pauseTriggerInbox/schemas.d.ts.map +1 -0
  130. package/dist/plugins/triggers/pauseTriggerInbox/schemas.js +9 -0
  131. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts +51 -0
  132. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -0
  133. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +37 -0
  134. package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts +34 -0
  135. package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.d.ts.map +1 -0
  136. package/dist/plugins/triggers/releaseTriggerInboxMessages/schemas.js +17 -0
  137. package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts +50 -0
  138. package/dist/plugins/triggers/resumeTriggerInbox/index.d.ts.map +1 -0
  139. package/dist/plugins/triggers/resumeTriggerInbox/index.js +26 -0
  140. package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts +14 -0
  141. package/dist/plugins/triggers/resumeTriggerInbox/schemas.d.ts.map +1 -0
  142. package/dist/plugins/triggers/resumeTriggerInbox/schemas.js +9 -0
  143. package/dist/plugins/triggers/shared.d.ts +17 -0
  144. package/dist/plugins/triggers/shared.d.ts.map +1 -0
  145. package/dist/plugins/triggers/shared.js +16 -0
  146. package/dist/plugins/triggers/updateTriggerInbox/index.d.ts +51 -0
  147. package/dist/plugins/triggers/updateTriggerInbox/index.d.ts.map +1 -0
  148. package/dist/plugins/triggers/updateTriggerInbox/index.js +30 -0
  149. package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts +15 -0
  150. package/dist/plugins/triggers/updateTriggerInbox/schemas.d.ts.map +1 -0
  151. package/dist/plugins/triggers/updateTriggerInbox/schemas.js +15 -0
  152. package/dist/plugins/triggers/utils.d.ts +17 -0
  153. package/dist/plugins/triggers/utils.d.ts.map +1 -0
  154. package/dist/plugins/triggers/utils.js +28 -0
  155. package/dist/plugins/triggers/watchTriggerInbox/index.d.ts +163 -0
  156. package/dist/plugins/triggers/watchTriggerInbox/index.d.ts.map +1 -0
  157. package/dist/plugins/triggers/watchTriggerInbox/index.js +111 -0
  158. package/dist/registry.d.ts.map +1 -1
  159. package/dist/registry.js +2 -0
  160. package/dist/resolvers/actionKey.d.ts +1 -0
  161. package/dist/resolvers/actionKey.d.ts.map +1 -1
  162. package/dist/resolvers/actionKey.js +1 -1
  163. package/dist/resolvers/index.d.ts +2 -2
  164. package/dist/resolvers/index.d.ts.map +1 -1
  165. package/dist/resolvers/index.js +2 -2
  166. package/dist/resolvers/triggerInbox.d.ts +4 -0
  167. package/dist/resolvers/triggerInbox.d.ts.map +1 -0
  168. package/dist/resolvers/triggerInbox.js +18 -0
  169. package/dist/schemas/TriggerInbox.d.ts +59 -0
  170. package/dist/schemas/TriggerInbox.d.ts.map +1 -0
  171. package/dist/schemas/TriggerInbox.js +81 -0
  172. package/dist/schemas/TriggerMessage.d.ts +48 -0
  173. package/dist/schemas/TriggerMessage.d.ts.map +1 -0
  174. package/dist/schemas/TriggerMessage.js +79 -0
  175. package/dist/sdk.d.ts +621 -17
  176. package/dist/sdk.d.ts.map +1 -1
  177. package/dist/sdk.js +26 -9
  178. package/dist/types/errors.d.ts +13 -0
  179. package/dist/types/errors.d.ts.map +1 -1
  180. package/dist/types/errors.js +16 -0
  181. package/dist/types/plugin.d.ts +12 -1
  182. package/dist/types/plugin.d.ts.map +1 -1
  183. package/dist/types/properties.d.ts +12 -0
  184. package/dist/types/properties.d.ts.map +1 -1
  185. package/dist/types/properties.js +25 -0
  186. package/dist/types/registry.d.ts +5 -0
  187. package/dist/types/registry.d.ts.map +1 -1
  188. package/dist/types/sdk.d.ts +2 -2
  189. package/dist/types/sdk.d.ts.map +1 -1
  190. package/dist/types/signals.d.ts +20 -0
  191. package/dist/types/signals.d.ts.map +1 -0
  192. package/dist/types/signals.js +21 -0
  193. package/dist/utils/abort-utils.d.ts +13 -0
  194. package/dist/utils/abort-utils.d.ts.map +1 -1
  195. package/dist/utils/abort-utils.js +15 -0
  196. package/dist/utils/retry-utils.d.ts +6 -2
  197. package/dist/utils/retry-utils.d.ts.map +1 -1
  198. package/dist/utils/retry-utils.js +22 -3
  199. package/dist/utils/schema-utils.d.ts +19 -1
  200. package/dist/utils/schema-utils.d.ts.map +1 -1
  201. package/package.json +12 -1
  202. package/dist/plugins/getInputFieldsSchema/index.d.ts.map +0 -1
  203. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +0 -1
  204. package/dist/plugins/listInputFieldChoices/index.d.ts.map +0 -1
  205. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +0 -1
  206. package/dist/plugins/listInputFields/index.d.ts.map +0 -1
  207. package/dist/plugins/listInputFields/schemas.d.ts.map +0 -1
@@ -0,0 +1,2292 @@
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-C2vsvjgN.mjs';
2
+ export { u as Action, ce as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aS as ActionItem, bt as ActionKeyProperty, b1 as ActionKeyPropertySchema, bu as ActionProperty, b2 as ActionPropertySchema, aq as ActionResolverItem, bF as ActionTimeoutMsProperty, bd as ActionTimeoutMsPropertySchema, ar as ActionTypeItem, bs as ActionTypeProperty, b0 as ActionTypePropertySchema, bS as ApiError, dz as ApiEvent, cY as ApiPluginOptions, c_ as ApiPluginProvides, v as App, cf as AppFactoryInput, aQ as AppItem, bq as AppKeyProperty, a_ as AppKeyPropertySchema, br as AppProperty, a$ as AppPropertySchema, az as ApplicationLifecycleEventData, c7 as ApprovalStatus, cd as AppsPluginProvides, bK as AppsProperty, bi as AppsPropertySchema, a0 as ArrayResolver, dy as AuthEvent, by as AuthenticationIdProperty, b5 as AuthenticationIdPropertySchema, av as BaseEvent, aj as BaseSdkOptionsSchema, a8 as BatchOptions, cL as CONTEXT_CACHE_MAX_SIZE, cK as CONTEXT_CACHE_TTL_MS, x as Choice, dF as ClientCredentialsObject, dQ as ClientCredentialsObjectSchema, K as Connection, dY as ConnectionEntry, dX as ConnectionEntrySchema, bw as ConnectionIdProperty, b4 as ConnectionIdPropertySchema, aR as ConnectionItem, bx as ConnectionProperty, b6 as ConnectionPropertySchema, d_ as ConnectionsMap, dZ as ConnectionsMapSchema, e0 as ConnectionsPluginProvides, bM as ConnectionsProperty, bk as ConnectionsPropertySchema, O as ConnectionsResponse, cx as CreateClientCredentialsPluginProvides, en as CreateTableFieldsPluginProvides, eh as CreateTablePluginProvides, ev as CreateTableRecordsPluginProvides, dC as Credentials, dV as CredentialsFunction, dU as CredentialsFunctionSchema, dE as CredentialsObject, dS as CredentialsObjectSchema, dW as CredentialsSchema, e5 as DEFAULT_ACTION_TIMEOUT_MS, ea as DEFAULT_APPROVAL_TIMEOUT_MS, cU as DEFAULT_CONFIG_PATH, eb as DEFAULT_MAX_APPROVAL_RETRIES, e4 as DEFAULT_PAGE_SIZE, bD as DebugProperty, bb as DebugPropertySchema, cz as DeleteClientCredentialsPluginProvides, ep as DeleteTableFieldsPluginProvides, ej as DeleteTablePluginProvides, ex as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, aA as EnhancedErrorEventData, bT as ErrorOptions, dB as EventCallback, ay as EventContext, ax as EventEmissionProvides, ch as FetchPluginProvides, w as Field, bJ as FieldsProperty, bh as FieldsPropertySchema, a3 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cH as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cJ as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ai as FunctionDeprecation, aX as FunctionOptions, ah as FunctionRegistryEntry, cr as GetActionInputFieldsSchemaPluginProvides, cD as GetActionPluginProvides, cB as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cF as GetConnectionPluginProvides, cX as GetProfilePluginProvides, ef as GetTablePluginProvides, er as GetTableRecordPluginProvides, aU as InfoFieldItem, aT as InputFieldItem, bv as InputFieldProperty, b3 as InputFieldPropertySchema, bz as InputsProperty, b7 as InputsPropertySchema, bR as LeaseLimitProperty, bp as LeaseLimitPropertySchema, bP as LeaseProperty, bn as LeasePropertySchema, bQ as LeaseSecondsProperty, bo as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bA as LimitProperty, b8 as LimitPropertySchema, cp as ListActionInputFieldChoicesPluginProvides, cn as ListActionInputFieldsPluginProvides, cl as ListActionsPluginProvides, cj as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cv as ListClientCredentialsPluginProvides, ct as ListConnectionsPluginProvides, el as ListTableFieldsPluginProvides, et as ListTableRecordsPluginProvides, ed as ListTablesPluginProvides, dA as LoadingEvent, e3 as MAX_PAGE_LIMIT, cV as ManifestEntry, cQ as ManifestPluginOptions, cT as ManifestPluginProvides, aw as MethodCalledEvent, aB as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bB as OffsetProperty, b9 as OffsetPropertySchema, _ as OutputFormatter, bC as OutputProperty, ba as OutputPropertySchema, aZ as PaginatedSdkFunction, bE as ParamsProperty, bc as ParamsPropertySchema, dG as PkceCredentialsObject, dR as PkceCredentialsObjectSchema, ak as Plugin, al as PluginProvides, at as PollOptions, c5 as RateLimitInfo, bH as RecordProperty, bf as RecordPropertySchema, bI as RecordsProperty, bg as RecordsPropertySchema, ad as RelayFetchSchema, ac as RelayRequestSchema, as as RequestOptions, cP as RequestPluginProvides, dk as ResolveAuthTokenOptions, dL as ResolveCredentialsOptions, dD as ResolvedCredentials, dT as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aV as RootFieldItem, cN as RunActionPluginProvides, dx as SdkEvent, aY as SdkPage, a2 as StaticResolver, bG as TableProperty, be as TablePropertySchema, bL as TablesProperty, bj as TablesPropertySchema, bO as TriggerInboxNameProperty, bm as TriggerInboxNamePropertySchema, bN as TriggerInboxProperty, bl as TriggerInboxPropertySchema, T as TriggerMessageStatus, ez as UpdateTableRecordsPluginProvides, Q as UserProfile, aW as UserProfileItem, e1 as ZAPIER_BASE_URL, e6 as ZAPIER_MAX_NETWORK_RETRIES, e7 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c3 as ZapierActionError, bV as ZapierApiError, bW as ZapierAppNotFoundError, c8 as ZapierApprovalError, bZ as ZapierAuthenticationError, c1 as ZapierBundleError, dt as ZapierCache, du as ZapierCacheEntry, dv as ZapierCacheSetOptions, c0 as ZapierConfigurationError, c4 as ZapierConflictError, bU as ZapierError, b_ as ZapierNotFoundError, c6 as ZapierRateLimitError, c9 as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, b$ as ZapierResourceNotFoundError, cb as ZapierSignal, c2 as ZapierTimeoutError, bY as ZapierUnknownError, bX as ZapierValidationError, d1 as actionKeyResolver, d0 as actionTypeResolver, cZ as apiPlugin, c$ as appKeyResolver, cc as appsPlugin, d3 as authenticationIdGenericResolver, d2 as authenticationIdResolver, a7 as batch, aL as buildApplicationLifecycleEvent, a9 as buildCapabilityMessage, aN as buildErrorEvent, aM as buildErrorEventWithContext, aP as buildMethodCalledEvent, dl as clearTokenCache, d7 as clientCredentialsNameResolver, d8 as clientIdResolver, ap as composePlugins, d3 as connectionIdGenericResolver, d2 as connectionIdResolver, d$ as connectionsPlugin, aO as createBaseEvent, cw as createClientCredentialsPlugin, V as createFunction, dw as createMemoryCache, ag as createOptionsPlugin, ao as createPaginatedPluginMethod, an as createPluginMethod, af as createSdk, em as createTableFieldsPlugin, eg as createTablePlugin, eu as createTableRecordsPlugin, ae as createZapierSdkWithoutRegistry, am as definePlugin, cy as deleteClientCredentialsPlugin, eo as deleteTableFieldsPlugin, ei as deleteTablePlugin, ew as deleteTableRecordsPlugin, cg as fetchPlugin, cG as findFirstConnectionPlugin, cI as findUniqueConnectionPlugin, ca as formatErrorMessage, aC as generateEventId, cq as getActionInputFieldsSchemaPlugin, cC as getActionPlugin, cA as getAppPlugin, dO as getBaseUrlFromCredentials, aI as getCiPlatform, dP as getClientIdFromCredentials, cE as getConnectionPlugin, aK as getCpuTime, aD as getCurrentTimestamp, aJ as getMemoryUsage, aF as getOsInfo, aG as getPlatformVersions, cR as getPreferredManifestEntryKey, cW as getProfilePlugin, aE as getReleaseId, ee as getTablePlugin, eq as getTableRecordPlugin, dq as getTokenFromCliLogin, e9 as getZapierApprovalMode, e8 as getZapierIsInteractive, e2 as getZapierSdkService, dn as injectCliLogin, d6 as inputFieldKeyResolver, d5 as inputsAllOptionalResolver, d4 as inputsResolver, dm as invalidateCachedToken, ds as invalidateCredentialsToken, aH as isCi, dp as isCliLoginAvailable, dH as isClientCredentials, dK as isCredentialsFunction, dJ as isCredentialsObject, dI as isPkceCredentials, S as isPositional, co as listActionInputFieldChoicesPlugin, cm as listActionInputFieldsPlugin, ck as listActionsPlugin, ci as listAppsPlugin, cu as listClientCredentialsPlugin, cs as listConnectionsPlugin, ek as listTableFieldsPlugin, es as listTableRecordsPlugin, ec as listTablesPlugin, aa as logDeprecation, cS as manifestPlugin, au as registryPlugin, cO as requestPlugin, ab as resetDeprecationWarnings, dr as resolveAuthToken, dN as resolveCredentials, dM as resolveCredentialsFromEnv, cM as runActionPlugin, a4 as runWithTelemetryContext, dd as tableFieldIdsResolver, df as tableFieldsResolver, di as tableFiltersResolver, d9 as tableIdResolver, de as tableNameResolver, db as tableRecordIdResolver, dc as tableRecordIdsResolver, dg as tableRecordsResolver, dj as tableSortResolver, dh as tableUpdateRecordsResolver, a5 as toSnakeCase, a6 as toTitleCase, da as triggerInboxResolver, ey as updateTableRecordsPlugin } from './index-C2vsvjgN.mjs';
3
+ import * as zod_v4_core from 'zod/v4/core';
4
+ import * as zod from 'zod';
5
+ import '@zapier/zapier-sdk-core/v0/schemas/connections';
6
+ import '@zapier/policy-context';
7
+ import '@zapier/zapier-sdk-cli/login';
8
+
9
+ interface ZapierSdkOptions extends BaseSdkOptions {
10
+ }
11
+ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
12
+ context: {
13
+ meta: Record<string, PluginMeta>;
14
+ };
15
+ } & {
16
+ context: {
17
+ options: ZapierSdkOptions$1;
18
+ };
19
+ } & {
20
+ context: EventEmissionContext;
21
+ } & {
22
+ context: {
23
+ api: ApiClient;
24
+ resolveCredentials: () => Promise<string | {
25
+ clientId: string;
26
+ clientSecret: string;
27
+ type?: "client_credentials" | undefined;
28
+ baseUrl?: string | undefined;
29
+ scope?: string | undefined;
30
+ } | {
31
+ clientId: string;
32
+ type?: "pkce" | undefined;
33
+ baseUrl?: string | undefined;
34
+ scope?: string | undefined;
35
+ } | undefined>;
36
+ };
37
+ } & {
38
+ context: {
39
+ getResolvedManifest: () => Promise<Manifest | null>;
40
+ getVersionedImplementationId: (appKey: string) => Promise<string | null>;
41
+ resolveAppKeys: ({ appKeys }: {
42
+ appKeys: string[];
43
+ }) => Promise<ResolvedAppLocator[]>;
44
+ updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<UpdateManifestEntryResult>;
45
+ addActionEntry: (options: AddActionEntryOptions) => Promise<AddActionEntryResult>;
46
+ findActionEntry: ({ name, manifest, }: {
47
+ name: string;
48
+ manifest: Manifest;
49
+ }) => ActionEntry | null;
50
+ listActionEntries: ({ configPath, }?: {
51
+ configPath?: string;
52
+ }) => Promise<Array<[string, ActionEntry]>>;
53
+ deleteActionEntry: ({ name, configPath, skipWrite, }: {
54
+ name: string;
55
+ configPath?: string;
56
+ skipWrite?: boolean;
57
+ }) => Promise<Manifest>;
58
+ hasActionEntry: ({ name, manifest, }: {
59
+ name: string;
60
+ manifest: Manifest;
61
+ }) => boolean;
62
+ findManifestEntry: typeof findManifestEntry;
63
+ readManifestFromFile: typeof readManifestFromFile;
64
+ getManifestConnections: () => Promise<Record<string, {
65
+ connectionId: string | number;
66
+ }> | null>;
67
+ };
68
+ } & {
69
+ context: CapabilitiesContext;
70
+ } & {
71
+ context: {
72
+ resolveConnection: (name: string) => Promise<{
73
+ connectionId: string | number;
74
+ } | undefined>;
75
+ getConnectionsMap: () => Promise<Record<string, {
76
+ connectionId: string | number;
77
+ }> | null>;
78
+ };
79
+ } & {
80
+ listApps: (options?: ({
81
+ search?: string | undefined;
82
+ apps?: string[] | undefined;
83
+ appKeys?: string[] | undefined;
84
+ pageSize?: number | undefined;
85
+ maxItems?: number | undefined;
86
+ cursor?: string | undefined;
87
+ } & {
88
+ cursor?: string;
89
+ pageSize?: number;
90
+ maxItems?: number;
91
+ }) | undefined) => PaginatedSdkResult<{
92
+ slug: string;
93
+ title: string;
94
+ key: string;
95
+ implementation_id: string;
96
+ description?: string | undefined;
97
+ is_hidden?: boolean | undefined;
98
+ auth_type?: string | undefined;
99
+ actions?: {
100
+ read?: number | undefined;
101
+ read_bulk?: number | undefined;
102
+ write?: number | undefined;
103
+ search?: number | undefined;
104
+ search_or_write?: number | undefined;
105
+ search_and_write?: number | undefined;
106
+ filter?: number | undefined;
107
+ } | undefined;
108
+ is_deprecated?: boolean | undefined;
109
+ is_beta?: boolean | undefined;
110
+ is_premium?: boolean | undefined;
111
+ age_in_days?: number | undefined;
112
+ banner?: string | undefined;
113
+ categories?: {
114
+ id: number;
115
+ name: string;
116
+ slug: string;
117
+ }[] | undefined;
118
+ images?: {
119
+ url_16x16?: string | undefined;
120
+ url_32x32?: string | undefined;
121
+ url_64x64?: string | undefined;
122
+ url_128x128?: string | undefined;
123
+ } | undefined;
124
+ popularity?: number | undefined;
125
+ has_filters?: boolean | undefined;
126
+ has_reads?: boolean | undefined;
127
+ has_searches?: boolean | undefined;
128
+ has_searches_or_writes?: boolean | undefined;
129
+ has_upfront_fields?: boolean | undefined;
130
+ has_writes?: boolean | undefined;
131
+ is_built_in?: boolean | undefined;
132
+ is_featured?: boolean | undefined;
133
+ is_invite?: boolean | undefined;
134
+ is_public?: boolean | undefined;
135
+ is_upcoming?: boolean | undefined;
136
+ visibility?: string | undefined;
137
+ primary_color?: string | undefined;
138
+ secondary_color?: string | undefined;
139
+ classification?: string | undefined;
140
+ api_docs_url?: string | undefined;
141
+ image?: string | undefined;
142
+ version?: string | undefined;
143
+ }>;
144
+ } & {
145
+ context: {
146
+ meta: {
147
+ listApps: PluginMeta;
148
+ };
149
+ };
150
+ } & {
151
+ getApp: (options?: {
152
+ app: string;
153
+ } | {
154
+ appKey: string;
155
+ } | undefined) => Promise<{
156
+ data: {
157
+ slug: string;
158
+ title: string;
159
+ key: string;
160
+ implementation_id: string;
161
+ description?: string | undefined;
162
+ is_hidden?: boolean | undefined;
163
+ auth_type?: string | undefined;
164
+ actions?: {
165
+ read?: number | undefined;
166
+ read_bulk?: number | undefined;
167
+ write?: number | undefined;
168
+ search?: number | undefined;
169
+ search_or_write?: number | undefined;
170
+ search_and_write?: number | undefined;
171
+ filter?: number | undefined;
172
+ } | undefined;
173
+ is_deprecated?: boolean | undefined;
174
+ is_beta?: boolean | undefined;
175
+ is_premium?: boolean | undefined;
176
+ age_in_days?: number | undefined;
177
+ banner?: string | undefined;
178
+ categories?: {
179
+ id: number;
180
+ name: string;
181
+ slug: string;
182
+ }[] | undefined;
183
+ images?: {
184
+ url_16x16?: string | undefined;
185
+ url_32x32?: string | undefined;
186
+ url_64x64?: string | undefined;
187
+ url_128x128?: string | undefined;
188
+ } | undefined;
189
+ popularity?: number | undefined;
190
+ has_filters?: boolean | undefined;
191
+ has_reads?: boolean | undefined;
192
+ has_searches?: boolean | undefined;
193
+ has_searches_or_writes?: boolean | undefined;
194
+ has_upfront_fields?: boolean | undefined;
195
+ has_writes?: boolean | undefined;
196
+ is_built_in?: boolean | undefined;
197
+ is_featured?: boolean | undefined;
198
+ is_invite?: boolean | undefined;
199
+ is_public?: boolean | undefined;
200
+ is_upcoming?: boolean | undefined;
201
+ visibility?: string | undefined;
202
+ primary_color?: string | undefined;
203
+ secondary_color?: string | undefined;
204
+ classification?: string | undefined;
205
+ api_docs_url?: string | undefined;
206
+ image?: string | undefined;
207
+ version?: string | undefined;
208
+ };
209
+ }>;
210
+ } & {
211
+ context: {
212
+ meta: {
213
+ getApp: PluginMeta;
214
+ };
215
+ };
216
+ } & {
217
+ listActions: (options?: (({
218
+ app: string;
219
+ actionType?: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run" | undefined;
220
+ pageSize?: number | undefined;
221
+ maxItems?: number | undefined;
222
+ cursor?: string | undefined;
223
+ } | {
224
+ appKey: string;
225
+ actionType?: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run" | undefined;
226
+ pageSize?: number | undefined;
227
+ maxItems?: number | undefined;
228
+ cursor?: string | undefined;
229
+ }) & {
230
+ cursor?: string;
231
+ pageSize?: number;
232
+ maxItems?: number;
233
+ }) | undefined) => PaginatedSdkResult<{
234
+ description: string;
235
+ key: string;
236
+ app_key: string;
237
+ action_type: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
238
+ title: string;
239
+ type: "action";
240
+ id?: string | undefined;
241
+ is_hidden?: boolean | undefined;
242
+ is_important?: boolean | undefined;
243
+ app_version?: string | undefined;
244
+ }>;
245
+ } & {
246
+ context: {
247
+ meta: {
248
+ listActions: PluginMeta;
249
+ };
250
+ };
251
+ } & {
252
+ getAction: (options?: {
253
+ app: string;
254
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
255
+ action: string;
256
+ } | {
257
+ appKey: string;
258
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
259
+ actionKey: string;
260
+ } | undefined) => Promise<{
261
+ data: {
262
+ description: string;
263
+ key: string;
264
+ app_key: string;
265
+ action_type: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
266
+ title: string;
267
+ type: "action";
268
+ id?: string | undefined;
269
+ is_hidden?: boolean | undefined;
270
+ is_important?: boolean | undefined;
271
+ app_version?: string | undefined;
272
+ };
273
+ }>;
274
+ } & {
275
+ context: {
276
+ meta: {
277
+ getAction: PluginMeta;
278
+ };
279
+ };
280
+ } & {
281
+ listActionInputFields: (options?: (({
282
+ app: string;
283
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
284
+ action: string;
285
+ connection?: string | number | undefined;
286
+ connectionId?: string | number | null | undefined;
287
+ authenticationId?: string | number | null | undefined;
288
+ inputs?: Record<string, unknown> | undefined;
289
+ pageSize?: number | undefined;
290
+ maxItems?: number | undefined;
291
+ cursor?: string | undefined;
292
+ } | {
293
+ appKey: string;
294
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
295
+ actionKey: string;
296
+ connection?: string | number | undefined;
297
+ connectionId?: string | number | null | undefined;
298
+ authenticationId?: string | number | null | undefined;
299
+ inputs?: Record<string, unknown> | undefined;
300
+ pageSize?: number | undefined;
301
+ maxItems?: number | undefined;
302
+ cursor?: string | undefined;
303
+ }) & {
304
+ cursor?: string;
305
+ pageSize?: number;
306
+ maxItems?: number;
307
+ }) | undefined) => PaginatedSdkResult<{
308
+ key: string;
309
+ type: "input_field";
310
+ default_value: string;
311
+ depends_on: string[];
312
+ description: string;
313
+ invalidates_input_fields: boolean;
314
+ is_required: boolean;
315
+ placeholder: string;
316
+ title: string;
317
+ value_type: string;
318
+ format?: string | undefined;
319
+ items?: {
320
+ type: string;
321
+ } | undefined;
322
+ } | {
323
+ key: string;
324
+ type: "info_field";
325
+ description: string;
326
+ title?: string | undefined;
327
+ } | FieldsetItem>;
328
+ } & {
329
+ context: {
330
+ meta: {
331
+ listActionInputFields: PluginMeta;
332
+ };
333
+ };
334
+ } & {
335
+ getActionInputFieldsSchema: (options?: {
336
+ app: string;
337
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
338
+ action: string;
339
+ connection?: string | number | undefined;
340
+ connectionId?: string | number | null | undefined;
341
+ authenticationId?: string | number | null | undefined;
342
+ inputs?: Record<string, unknown> | undefined;
343
+ } | {
344
+ appKey: string;
345
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
346
+ actionKey: string;
347
+ connection?: string | number | undefined;
348
+ connectionId?: string | number | null | undefined;
349
+ authenticationId?: string | number | null | undefined;
350
+ inputs?: Record<string, unknown> | undefined;
351
+ } | undefined) => Promise<{
352
+ data: Record<string, unknown>;
353
+ }>;
354
+ } & {
355
+ context: {
356
+ meta: {
357
+ getActionInputFieldsSchema: PluginMeta;
358
+ };
359
+ };
360
+ } & {
361
+ listActionInputFieldChoices: (options?: (({
362
+ app: string;
363
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
364
+ action: string;
365
+ inputField: string;
366
+ connection?: string | number | undefined;
367
+ connectionId?: string | number | null | undefined;
368
+ authenticationId?: string | number | null | undefined;
369
+ inputs?: Record<string, unknown> | undefined;
370
+ page?: number | undefined;
371
+ pageSize?: number | undefined;
372
+ maxItems?: number | undefined;
373
+ cursor?: string | undefined;
374
+ } | {
375
+ appKey: string;
376
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
377
+ actionKey: string;
378
+ inputFieldKey: string;
379
+ connection?: string | number | undefined;
380
+ connectionId?: string | number | null | undefined;
381
+ authenticationId?: string | number | null | undefined;
382
+ inputs?: Record<string, unknown> | undefined;
383
+ page?: number | undefined;
384
+ pageSize?: number | undefined;
385
+ maxItems?: number | undefined;
386
+ cursor?: string | undefined;
387
+ }) & {
388
+ cursor?: string;
389
+ pageSize?: number;
390
+ maxItems?: number;
391
+ }) | undefined) => PaginatedSdkResult<{
392
+ key?: string | undefined;
393
+ label?: string | undefined;
394
+ sample?: string | undefined;
395
+ value?: string | undefined;
396
+ }>;
397
+ } & {
398
+ context: {
399
+ meta: {
400
+ listActionInputFieldChoices: PluginMeta;
401
+ };
402
+ };
403
+ } & {
404
+ listInputFields: (options?: (({
405
+ app: string;
406
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
407
+ action: string;
408
+ connection?: string | number | undefined;
409
+ connectionId?: string | number | null | undefined;
410
+ authenticationId?: string | number | null | undefined;
411
+ inputs?: Record<string, unknown> | undefined;
412
+ pageSize?: number | undefined;
413
+ maxItems?: number | undefined;
414
+ cursor?: string | undefined;
415
+ } | {
416
+ appKey: string;
417
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
418
+ actionKey: string;
419
+ connection?: string | number | undefined;
420
+ connectionId?: string | number | null | undefined;
421
+ authenticationId?: string | number | null | undefined;
422
+ inputs?: Record<string, unknown> | undefined;
423
+ pageSize?: number | undefined;
424
+ maxItems?: number | undefined;
425
+ cursor?: string | undefined;
426
+ }) & {
427
+ cursor?: string;
428
+ pageSize?: number;
429
+ maxItems?: number;
430
+ }) | undefined) => PaginatedSdkResult<{
431
+ key: string;
432
+ type: "input_field";
433
+ default_value: string;
434
+ depends_on: string[];
435
+ description: string;
436
+ invalidates_input_fields: boolean;
437
+ is_required: boolean;
438
+ placeholder: string;
439
+ title: string;
440
+ value_type: string;
441
+ format?: string | undefined;
442
+ items?: {
443
+ type: string;
444
+ } | undefined;
445
+ } | {
446
+ key: string;
447
+ type: "info_field";
448
+ description: string;
449
+ title?: string | undefined;
450
+ } | FieldsetItem>;
451
+ context: {
452
+ meta: {
453
+ listInputFields: {
454
+ categories: string[];
455
+ type: "list";
456
+ itemType: string;
457
+ inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
458
+ app: zod.ZodString & {
459
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
460
+ };
461
+ actionType: zod.ZodEnum<{
462
+ search: "search";
463
+ read: "read";
464
+ read_bulk: "read_bulk";
465
+ write: "write";
466
+ search_or_write: "search_or_write";
467
+ search_and_write: "search_and_write";
468
+ filter: "filter";
469
+ run: "run";
470
+ }>;
471
+ action: zod.ZodString & {
472
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
473
+ };
474
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
475
+ connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
476
+ authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
477
+ inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
478
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
479
+ maxItems: zod.ZodOptional<zod.ZodNumber>;
480
+ cursor: zod.ZodOptional<zod.ZodString>;
481
+ }, zod_v4_core.$strip>, zod.ZodObject<{
482
+ appKey: zod.ZodString & {
483
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
484
+ };
485
+ actionType: zod.ZodEnum<{
486
+ search: "search";
487
+ read: "read";
488
+ read_bulk: "read_bulk";
489
+ write: "write";
490
+ search_or_write: "search_or_write";
491
+ search_and_write: "search_and_write";
492
+ filter: "filter";
493
+ run: "run";
494
+ }>;
495
+ actionKey: zod.ZodString;
496
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
497
+ connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
498
+ authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
499
+ inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
500
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
501
+ maxItems: zod.ZodOptional<zod.ZodNumber>;
502
+ cursor: zod.ZodOptional<zod.ZodString>;
503
+ }, zod_v4_core.$strip>]>;
504
+ outputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
505
+ key: zod.ZodString;
506
+ type: zod.ZodLiteral<"input_field">;
507
+ default_value: zod.ZodString;
508
+ depends_on: zod.ZodArray<zod.ZodString>;
509
+ description: zod.ZodString;
510
+ invalidates_input_fields: zod.ZodBoolean;
511
+ is_required: zod.ZodBoolean;
512
+ placeholder: zod.ZodString;
513
+ title: zod.ZodString;
514
+ value_type: zod.ZodString;
515
+ format: zod.ZodOptional<zod.ZodString>;
516
+ items: zod.ZodOptional<zod.ZodObject<{
517
+ type: zod.ZodString;
518
+ }, zod_v4_core.$strip>>;
519
+ }, zod_v4_core.$strip>, zod.ZodObject<{
520
+ key: zod.ZodString;
521
+ type: zod.ZodLiteral<"info_field">;
522
+ description: zod.ZodString;
523
+ title: zod.ZodOptional<zod.ZodString>;
524
+ }, zod_v4_core.$strip>, zod.ZodType<FieldsetItem, unknown, zod_v4_core.$ZodTypeInternals<FieldsetItem, unknown>>]>;
525
+ defaultPageSize: number;
526
+ };
527
+ };
528
+ };
529
+ } & {
530
+ getInputFieldsSchema: (options?: {
531
+ app: string;
532
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
533
+ action: string;
534
+ connection?: string | number | undefined;
535
+ connectionId?: string | number | null | undefined;
536
+ authenticationId?: string | number | null | undefined;
537
+ inputs?: Record<string, unknown> | undefined;
538
+ } | {
539
+ appKey: string;
540
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
541
+ actionKey: string;
542
+ connection?: string | number | undefined;
543
+ connectionId?: string | number | null | undefined;
544
+ authenticationId?: string | number | null | undefined;
545
+ inputs?: Record<string, unknown> | undefined;
546
+ } | undefined) => Promise<{
547
+ data: Record<string, unknown>;
548
+ }>;
549
+ context: {
550
+ meta: {
551
+ getInputFieldsSchema: {
552
+ categories: string[];
553
+ type: "function";
554
+ inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
555
+ app: zod.ZodString & {
556
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
557
+ };
558
+ actionType: zod.ZodEnum<{
559
+ search: "search";
560
+ read: "read";
561
+ read_bulk: "read_bulk";
562
+ write: "write";
563
+ search_or_write: "search_or_write";
564
+ search_and_write: "search_and_write";
565
+ filter: "filter";
566
+ run: "run";
567
+ }>;
568
+ action: zod.ZodString & {
569
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
570
+ };
571
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
572
+ connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
573
+ authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
574
+ inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
575
+ }, zod_v4_core.$strip>, zod.ZodObject<{
576
+ appKey: zod.ZodString & {
577
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
578
+ };
579
+ actionType: zod.ZodEnum<{
580
+ search: "search";
581
+ read: "read";
582
+ read_bulk: "read_bulk";
583
+ write: "write";
584
+ search_or_write: "search_or_write";
585
+ search_and_write: "search_and_write";
586
+ filter: "filter";
587
+ run: "run";
588
+ }>;
589
+ actionKey: zod.ZodString;
590
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
591
+ connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
592
+ authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
593
+ inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
594
+ }, zod_v4_core.$strip>]>;
595
+ };
596
+ };
597
+ };
598
+ } & {
599
+ listInputFieldChoices: (options?: (({
600
+ app: string;
601
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
602
+ action: string;
603
+ inputField: string;
604
+ connection?: string | number | undefined;
605
+ connectionId?: string | number | null | undefined;
606
+ authenticationId?: string | number | null | undefined;
607
+ inputs?: Record<string, unknown> | undefined;
608
+ page?: number | undefined;
609
+ pageSize?: number | undefined;
610
+ maxItems?: number | undefined;
611
+ cursor?: string | undefined;
612
+ } | {
613
+ appKey: string;
614
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
615
+ actionKey: string;
616
+ inputFieldKey: string;
617
+ connection?: string | number | undefined;
618
+ connectionId?: string | number | null | undefined;
619
+ authenticationId?: string | number | null | undefined;
620
+ inputs?: Record<string, unknown> | undefined;
621
+ page?: number | undefined;
622
+ pageSize?: number | undefined;
623
+ maxItems?: number | undefined;
624
+ cursor?: string | undefined;
625
+ }) & {
626
+ cursor?: string;
627
+ pageSize?: number;
628
+ maxItems?: number;
629
+ }) | undefined) => PaginatedSdkResult<{
630
+ key?: string | undefined;
631
+ label?: string | undefined;
632
+ sample?: string | undefined;
633
+ value?: string | undefined;
634
+ }>;
635
+ context: {
636
+ meta: {
637
+ listInputFieldChoices: {
638
+ categories: string[];
639
+ type: "list";
640
+ itemType: string;
641
+ inputSchema: zod.ZodUnion<readonly [zod.ZodObject<{
642
+ app: zod.ZodString & {
643
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
644
+ };
645
+ actionType: zod.ZodEnum<{
646
+ search: "search";
647
+ read: "read";
648
+ read_bulk: "read_bulk";
649
+ write: "write";
650
+ search_or_write: "search_or_write";
651
+ search_and_write: "search_and_write";
652
+ filter: "filter";
653
+ run: "run";
654
+ }>;
655
+ action: zod.ZodString & {
656
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
657
+ };
658
+ inputField: zod.ZodString & {
659
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
660
+ };
661
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
662
+ connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
663
+ authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
664
+ inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
665
+ page: zod.ZodOptional<zod.ZodNumber>;
666
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
667
+ maxItems: zod.ZodOptional<zod.ZodNumber>;
668
+ cursor: zod.ZodOptional<zod.ZodString>;
669
+ }, zod_v4_core.$strip>, zod.ZodObject<{
670
+ appKey: zod.ZodString & {
671
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
672
+ };
673
+ actionType: zod.ZodEnum<{
674
+ search: "search";
675
+ read: "read";
676
+ read_bulk: "read_bulk";
677
+ write: "write";
678
+ search_or_write: "search_or_write";
679
+ search_and_write: "search_and_write";
680
+ filter: "filter";
681
+ run: "run";
682
+ }>;
683
+ actionKey: zod.ZodString;
684
+ inputFieldKey: zod.ZodString;
685
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
686
+ connectionId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
687
+ authenticationId: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>>;
688
+ inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
689
+ page: zod.ZodOptional<zod.ZodNumber>;
690
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
691
+ maxItems: zod.ZodOptional<zod.ZodNumber>;
692
+ cursor: zod.ZodOptional<zod.ZodString>;
693
+ }, zod_v4_core.$strip>]>;
694
+ outputSchema: zod.ZodObject<{
695
+ key: zod.ZodOptional<zod.ZodString>;
696
+ label: zod.ZodOptional<zod.ZodString>;
697
+ sample: zod.ZodOptional<zod.ZodString>;
698
+ value: zod.ZodOptional<zod.ZodString>;
699
+ }, zod_v4_core.$strip>;
700
+ defaultPageSize: number;
701
+ };
702
+ };
703
+ };
704
+ } & {
705
+ runAction: (options?: (({
706
+ app: string;
707
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
708
+ action: string;
709
+ connection?: string | number | undefined;
710
+ connectionId?: string | number | null | undefined;
711
+ authenticationId?: string | number | null | undefined;
712
+ inputs?: Record<string, unknown> | undefined;
713
+ timeoutMs?: number | undefined;
714
+ pageSize?: number | undefined;
715
+ maxItems?: number | undefined;
716
+ cursor?: string | undefined;
717
+ } | {
718
+ appKey: string;
719
+ actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
720
+ actionKey: string;
721
+ connection?: string | number | undefined;
722
+ connectionId?: string | number | null | undefined;
723
+ authenticationId?: string | number | null | undefined;
724
+ inputs?: Record<string, unknown> | undefined;
725
+ timeoutMs?: number | undefined;
726
+ pageSize?: number | undefined;
727
+ maxItems?: number | undefined;
728
+ cursor?: string | undefined;
729
+ }) & {
730
+ cursor?: string;
731
+ pageSize?: number;
732
+ maxItems?: number;
733
+ }) | undefined) => PaginatedSdkResult<unknown>;
734
+ } & {
735
+ context: {
736
+ meta: {
737
+ runAction: PluginMeta;
738
+ };
739
+ };
740
+ } & {
741
+ listConnections: (options?: ({
742
+ title?: string | undefined;
743
+ search?: string | undefined;
744
+ owner?: string | undefined;
745
+ app?: string | undefined;
746
+ appKey?: string | undefined;
747
+ connections?: string[] | undefined;
748
+ connectionIds?: string[] | undefined;
749
+ authenticationIds?: string[] | undefined;
750
+ account?: string | undefined;
751
+ accountId?: string | undefined;
752
+ includeShared?: boolean | undefined;
753
+ isExpired?: boolean | undefined;
754
+ expired?: boolean | undefined;
755
+ pageSize?: number | undefined;
756
+ maxItems?: number | undefined;
757
+ cursor?: string | undefined;
758
+ } & {
759
+ cursor?: string;
760
+ pageSize?: number;
761
+ maxItems?: number;
762
+ }) | undefined) => PaginatedSdkResult<{
763
+ date: string;
764
+ is_invite_only: boolean;
765
+ is_private: boolean;
766
+ shared_with_all: boolean;
767
+ id: string;
768
+ account_id: string;
769
+ title?: string | null | undefined;
770
+ lastchanged?: string | undefined;
771
+ destination_selected_api?: string | null | undefined;
772
+ is_stale?: string | undefined;
773
+ is_shared?: string | undefined;
774
+ marked_stale_at?: string | null | undefined;
775
+ label?: string | null | undefined;
776
+ identifier?: string | null | undefined;
777
+ url?: string | undefined;
778
+ groups?: Record<string, unknown>[] | undefined;
779
+ members?: string | undefined;
780
+ permissions?: Record<string, boolean> | undefined;
781
+ public_id?: string | undefined;
782
+ account_public_id?: string | undefined;
783
+ customuser_public_id?: string | undefined;
784
+ implementation_id?: string | undefined;
785
+ profile_id?: string | undefined;
786
+ is_expired?: string | undefined;
787
+ expired_at?: string | null | undefined;
788
+ app_key?: string | undefined;
789
+ app_version?: string | undefined;
790
+ }>;
791
+ } & {
792
+ context: {
793
+ meta: {
794
+ listConnections: PluginMeta;
795
+ };
796
+ };
797
+ } & {
798
+ getConnection: (options?: {
799
+ connection?: string | number | undefined;
800
+ connectionId?: string | number | undefined;
801
+ authenticationId?: string | number | undefined;
802
+ } | undefined) => Promise<{
803
+ data: {
804
+ date: string;
805
+ is_invite_only: boolean;
806
+ is_private: boolean;
807
+ shared_with_all: boolean;
808
+ id: string;
809
+ account_id: string;
810
+ title?: string | null | undefined;
811
+ lastchanged?: string | undefined;
812
+ destination_selected_api?: string | null | undefined;
813
+ is_stale?: string | undefined;
814
+ is_shared?: string | undefined;
815
+ marked_stale_at?: string | null | undefined;
816
+ label?: string | null | undefined;
817
+ identifier?: string | null | undefined;
818
+ url?: string | undefined;
819
+ groups?: Record<string, unknown>[] | undefined;
820
+ members?: string | undefined;
821
+ permissions?: Record<string, boolean> | undefined;
822
+ public_id?: string | undefined;
823
+ account_public_id?: string | undefined;
824
+ customuser_public_id?: string | undefined;
825
+ implementation_id?: string | undefined;
826
+ profile_id?: string | undefined;
827
+ is_expired?: string | undefined;
828
+ expired_at?: string | null | undefined;
829
+ app_key?: string | undefined;
830
+ app_version?: string | undefined;
831
+ };
832
+ }>;
833
+ } & {
834
+ context: {
835
+ meta: {
836
+ getConnection: PluginMeta;
837
+ };
838
+ };
839
+ } & {
840
+ findFirstConnection: (options?: {
841
+ title?: string | undefined;
842
+ appKey?: string | undefined;
843
+ app?: string | undefined;
844
+ search?: string | undefined;
845
+ owner?: string | undefined;
846
+ account?: string | undefined;
847
+ accountId?: string | undefined;
848
+ includeShared?: boolean | undefined;
849
+ isExpired?: boolean | undefined;
850
+ expired?: boolean | undefined;
851
+ } | undefined) => Promise<{
852
+ data: {
853
+ date: string;
854
+ is_invite_only: boolean;
855
+ is_private: boolean;
856
+ shared_with_all: boolean;
857
+ id: string;
858
+ account_id: string;
859
+ title?: string | null | undefined;
860
+ lastchanged?: string | undefined;
861
+ destination_selected_api?: string | null | undefined;
862
+ is_stale?: string | undefined;
863
+ is_shared?: string | undefined;
864
+ marked_stale_at?: string | null | undefined;
865
+ label?: string | null | undefined;
866
+ identifier?: string | null | undefined;
867
+ url?: string | undefined;
868
+ groups?: Record<string, unknown>[] | undefined;
869
+ members?: string | undefined;
870
+ permissions?: Record<string, boolean> | undefined;
871
+ public_id?: string | undefined;
872
+ account_public_id?: string | undefined;
873
+ customuser_public_id?: string | undefined;
874
+ implementation_id?: string | undefined;
875
+ profile_id?: string | undefined;
876
+ is_expired?: string | undefined;
877
+ expired_at?: string | null | undefined;
878
+ app_key?: string | undefined;
879
+ app_version?: string | undefined;
880
+ };
881
+ }>;
882
+ } & {
883
+ context: {
884
+ meta: {
885
+ findFirstConnection: PluginMeta;
886
+ };
887
+ };
888
+ } & {
889
+ findUniqueConnection: (options?: {
890
+ title?: string | undefined;
891
+ appKey?: string | undefined;
892
+ app?: string | undefined;
893
+ search?: string | undefined;
894
+ owner?: string | undefined;
895
+ account?: string | undefined;
896
+ accountId?: string | undefined;
897
+ includeShared?: boolean | undefined;
898
+ isExpired?: boolean | undefined;
899
+ expired?: boolean | undefined;
900
+ } | undefined) => Promise<{
901
+ data: {
902
+ date: string;
903
+ is_invite_only: boolean;
904
+ is_private: boolean;
905
+ shared_with_all: boolean;
906
+ id: string;
907
+ account_id: string;
908
+ title?: string | null | undefined;
909
+ lastchanged?: string | undefined;
910
+ destination_selected_api?: string | null | undefined;
911
+ is_stale?: string | undefined;
912
+ is_shared?: string | undefined;
913
+ marked_stale_at?: string | null | undefined;
914
+ label?: string | null | undefined;
915
+ identifier?: string | null | undefined;
916
+ url?: string | undefined;
917
+ groups?: Record<string, unknown>[] | undefined;
918
+ members?: string | undefined;
919
+ permissions?: Record<string, boolean> | undefined;
920
+ public_id?: string | undefined;
921
+ account_public_id?: string | undefined;
922
+ customuser_public_id?: string | undefined;
923
+ implementation_id?: string | undefined;
924
+ profile_id?: string | undefined;
925
+ is_expired?: string | undefined;
926
+ expired_at?: string | null | undefined;
927
+ app_key?: string | undefined;
928
+ app_version?: string | undefined;
929
+ };
930
+ }>;
931
+ } & {
932
+ context: {
933
+ meta: {
934
+ findUniqueConnection: PluginMeta;
935
+ };
936
+ };
937
+ } & {
938
+ listAuthentications: (options?: ({
939
+ title?: string | undefined;
940
+ search?: string | undefined;
941
+ owner?: string | undefined;
942
+ app?: string | undefined;
943
+ appKey?: string | undefined;
944
+ connections?: string[] | undefined;
945
+ connectionIds?: string[] | undefined;
946
+ authenticationIds?: string[] | undefined;
947
+ account?: string | undefined;
948
+ accountId?: string | undefined;
949
+ includeShared?: boolean | undefined;
950
+ isExpired?: boolean | undefined;
951
+ expired?: boolean | undefined;
952
+ pageSize?: number | undefined;
953
+ maxItems?: number | undefined;
954
+ cursor?: string | undefined;
955
+ } & {
956
+ cursor?: string;
957
+ pageSize?: number;
958
+ maxItems?: number;
959
+ }) | undefined) => PaginatedSdkResult<{
960
+ date: string;
961
+ is_invite_only: boolean;
962
+ is_private: boolean;
963
+ shared_with_all: boolean;
964
+ id: string;
965
+ account_id: string;
966
+ title?: string | null | undefined;
967
+ lastchanged?: string | undefined;
968
+ destination_selected_api?: string | null | undefined;
969
+ is_stale?: string | undefined;
970
+ is_shared?: string | undefined;
971
+ marked_stale_at?: string | null | undefined;
972
+ label?: string | null | undefined;
973
+ identifier?: string | null | undefined;
974
+ url?: string | undefined;
975
+ groups?: Record<string, unknown>[] | undefined;
976
+ members?: string | undefined;
977
+ permissions?: Record<string, boolean> | undefined;
978
+ public_id?: string | undefined;
979
+ account_public_id?: string | undefined;
980
+ customuser_public_id?: string | undefined;
981
+ implementation_id?: string | undefined;
982
+ profile_id?: string | undefined;
983
+ is_expired?: string | undefined;
984
+ expired_at?: string | null | undefined;
985
+ app_key?: string | undefined;
986
+ app_version?: string | undefined;
987
+ }>;
988
+ context: {
989
+ meta: {
990
+ listAuthentications: {
991
+ packages: string[];
992
+ categories: string[];
993
+ type: "list";
994
+ itemType: string;
995
+ inputSchema: zod.ZodObject<{
996
+ title: zod.ZodOptional<zod.ZodString>;
997
+ search: zod.ZodOptional<zod.ZodString>;
998
+ owner: zod.ZodOptional<zod.ZodString>;
999
+ app: zod.ZodOptional<zod.ZodString & {
1000
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1001
+ }>;
1002
+ appKey: zod.ZodOptional<zod.ZodString & {
1003
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1004
+ }>;
1005
+ connections: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
1006
+ connectionIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
1007
+ authenticationIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
1008
+ account: zod.ZodOptional<zod.ZodString>;
1009
+ accountId: zod.ZodOptional<zod.ZodString>;
1010
+ includeShared: zod.ZodOptional<zod.ZodBoolean>;
1011
+ isExpired: zod.ZodOptional<zod.ZodBoolean>;
1012
+ expired: zod.ZodOptional<zod.ZodBoolean>;
1013
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
1014
+ maxItems: zod.ZodOptional<zod.ZodNumber>;
1015
+ cursor: zod.ZodOptional<zod.ZodString>;
1016
+ }, zod_v4_core.$strip>;
1017
+ outputSchema: zod.ZodObject<{
1018
+ title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1019
+ date: zod.ZodString;
1020
+ is_invite_only: zod.ZodBoolean;
1021
+ lastchanged: zod.ZodOptional<zod.ZodString>;
1022
+ destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1023
+ is_private: zod.ZodBoolean;
1024
+ shared_with_all: zod.ZodBoolean;
1025
+ is_stale: zod.ZodOptional<zod.ZodString>;
1026
+ is_shared: zod.ZodOptional<zod.ZodString>;
1027
+ marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1028
+ label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1029
+ identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1030
+ url: zod.ZodOptional<zod.ZodString>;
1031
+ groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
1032
+ members: zod.ZodOptional<zod.ZodString>;
1033
+ permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
1034
+ public_id: zod.ZodOptional<zod.ZodString>;
1035
+ account_public_id: zod.ZodOptional<zod.ZodString>;
1036
+ customuser_public_id: zod.ZodOptional<zod.ZodString>;
1037
+ id: zod.ZodString;
1038
+ account_id: zod.ZodString;
1039
+ implementation_id: zod.ZodOptional<zod.ZodString>;
1040
+ profile_id: zod.ZodOptional<zod.ZodString>;
1041
+ is_expired: zod.ZodOptional<zod.ZodString>;
1042
+ expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1043
+ app_key: zod.ZodOptional<zod.ZodString>;
1044
+ app_version: zod.ZodOptional<zod.ZodString>;
1045
+ }, zod_v4_core.$strip>;
1046
+ };
1047
+ };
1048
+ };
1049
+ } & {
1050
+ getAuthentication: (options?: {
1051
+ connection?: string | number | undefined;
1052
+ connectionId?: string | number | undefined;
1053
+ authenticationId?: string | number | undefined;
1054
+ } | undefined) => Promise<{
1055
+ data: {
1056
+ date: string;
1057
+ is_invite_only: boolean;
1058
+ is_private: boolean;
1059
+ shared_with_all: boolean;
1060
+ id: string;
1061
+ account_id: string;
1062
+ title?: string | null | undefined;
1063
+ lastchanged?: string | undefined;
1064
+ destination_selected_api?: string | null | undefined;
1065
+ is_stale?: string | undefined;
1066
+ is_shared?: string | undefined;
1067
+ marked_stale_at?: string | null | undefined;
1068
+ label?: string | null | undefined;
1069
+ identifier?: string | null | undefined;
1070
+ url?: string | undefined;
1071
+ groups?: Record<string, unknown>[] | undefined;
1072
+ members?: string | undefined;
1073
+ permissions?: Record<string, boolean> | undefined;
1074
+ public_id?: string | undefined;
1075
+ account_public_id?: string | undefined;
1076
+ customuser_public_id?: string | undefined;
1077
+ implementation_id?: string | undefined;
1078
+ profile_id?: string | undefined;
1079
+ is_expired?: string | undefined;
1080
+ expired_at?: string | null | undefined;
1081
+ app_key?: string | undefined;
1082
+ app_version?: string | undefined;
1083
+ };
1084
+ }>;
1085
+ context: {
1086
+ meta: {
1087
+ getAuthentication: {
1088
+ packages: string[];
1089
+ categories: string[];
1090
+ type: "item";
1091
+ itemType: string;
1092
+ inputSchema: zod.ZodObject<{
1093
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1094
+ connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1095
+ authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1096
+ }, zod_v4_core.$strip>;
1097
+ outputSchema: zod.ZodObject<{
1098
+ title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1099
+ date: zod.ZodString;
1100
+ is_invite_only: zod.ZodBoolean;
1101
+ lastchanged: zod.ZodOptional<zod.ZodString>;
1102
+ destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1103
+ is_private: zod.ZodBoolean;
1104
+ shared_with_all: zod.ZodBoolean;
1105
+ is_stale: zod.ZodOptional<zod.ZodString>;
1106
+ is_shared: zod.ZodOptional<zod.ZodString>;
1107
+ marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1108
+ label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1109
+ identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1110
+ url: zod.ZodOptional<zod.ZodString>;
1111
+ groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
1112
+ members: zod.ZodOptional<zod.ZodString>;
1113
+ permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
1114
+ public_id: zod.ZodOptional<zod.ZodString>;
1115
+ account_public_id: zod.ZodOptional<zod.ZodString>;
1116
+ customuser_public_id: zod.ZodOptional<zod.ZodString>;
1117
+ id: zod.ZodString;
1118
+ account_id: zod.ZodString;
1119
+ implementation_id: zod.ZodOptional<zod.ZodString>;
1120
+ profile_id: zod.ZodOptional<zod.ZodString>;
1121
+ is_expired: zod.ZodOptional<zod.ZodString>;
1122
+ expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1123
+ app_key: zod.ZodOptional<zod.ZodString>;
1124
+ app_version: zod.ZodOptional<zod.ZodString>;
1125
+ }, zod_v4_core.$strip>;
1126
+ };
1127
+ };
1128
+ };
1129
+ } & {
1130
+ findFirstAuthentication: (options?: {
1131
+ title?: string | undefined;
1132
+ appKey?: string | undefined;
1133
+ app?: string | undefined;
1134
+ search?: string | undefined;
1135
+ owner?: string | undefined;
1136
+ account?: string | undefined;
1137
+ accountId?: string | undefined;
1138
+ includeShared?: boolean | undefined;
1139
+ isExpired?: boolean | undefined;
1140
+ expired?: boolean | undefined;
1141
+ } | undefined) => Promise<{
1142
+ data: {
1143
+ date: string;
1144
+ is_invite_only: boolean;
1145
+ is_private: boolean;
1146
+ shared_with_all: boolean;
1147
+ id: string;
1148
+ account_id: string;
1149
+ title?: string | null | undefined;
1150
+ lastchanged?: string | undefined;
1151
+ destination_selected_api?: string | null | undefined;
1152
+ is_stale?: string | undefined;
1153
+ is_shared?: string | undefined;
1154
+ marked_stale_at?: string | null | undefined;
1155
+ label?: string | null | undefined;
1156
+ identifier?: string | null | undefined;
1157
+ url?: string | undefined;
1158
+ groups?: Record<string, unknown>[] | undefined;
1159
+ members?: string | undefined;
1160
+ permissions?: Record<string, boolean> | undefined;
1161
+ public_id?: string | undefined;
1162
+ account_public_id?: string | undefined;
1163
+ customuser_public_id?: string | undefined;
1164
+ implementation_id?: string | undefined;
1165
+ profile_id?: string | undefined;
1166
+ is_expired?: string | undefined;
1167
+ expired_at?: string | null | undefined;
1168
+ app_key?: string | undefined;
1169
+ app_version?: string | undefined;
1170
+ };
1171
+ }>;
1172
+ context: {
1173
+ meta: {
1174
+ findFirstAuthentication: {
1175
+ packages: string[];
1176
+ categories: string[];
1177
+ type: "item";
1178
+ itemType: string;
1179
+ inputSchema: zod.ZodObject<{
1180
+ title: zod.ZodOptional<zod.ZodString>;
1181
+ appKey: zod.ZodOptional<zod.ZodString & {
1182
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1183
+ }>;
1184
+ app: zod.ZodOptional<zod.ZodString & {
1185
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1186
+ }>;
1187
+ search: zod.ZodOptional<zod.ZodString>;
1188
+ owner: zod.ZodOptional<zod.ZodString>;
1189
+ account: zod.ZodOptional<zod.ZodString>;
1190
+ accountId: zod.ZodOptional<zod.ZodString>;
1191
+ includeShared: zod.ZodOptional<zod.ZodBoolean>;
1192
+ isExpired: zod.ZodOptional<zod.ZodBoolean>;
1193
+ expired: zod.ZodOptional<zod.ZodBoolean>;
1194
+ }, zod_v4_core.$strip>;
1195
+ outputSchema: zod.ZodObject<{
1196
+ title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1197
+ date: zod.ZodString;
1198
+ is_invite_only: zod.ZodBoolean;
1199
+ lastchanged: zod.ZodOptional<zod.ZodString>;
1200
+ destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1201
+ is_private: zod.ZodBoolean;
1202
+ shared_with_all: zod.ZodBoolean;
1203
+ is_stale: zod.ZodOptional<zod.ZodString>;
1204
+ is_shared: zod.ZodOptional<zod.ZodString>;
1205
+ marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1206
+ label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1207
+ identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1208
+ url: zod.ZodOptional<zod.ZodString>;
1209
+ groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
1210
+ members: zod.ZodOptional<zod.ZodString>;
1211
+ permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
1212
+ public_id: zod.ZodOptional<zod.ZodString>;
1213
+ account_public_id: zod.ZodOptional<zod.ZodString>;
1214
+ customuser_public_id: zod.ZodOptional<zod.ZodString>;
1215
+ id: zod.ZodString;
1216
+ account_id: zod.ZodString;
1217
+ implementation_id: zod.ZodOptional<zod.ZodString>;
1218
+ profile_id: zod.ZodOptional<zod.ZodString>;
1219
+ is_expired: zod.ZodOptional<zod.ZodString>;
1220
+ expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1221
+ app_key: zod.ZodOptional<zod.ZodString>;
1222
+ app_version: zod.ZodOptional<zod.ZodString>;
1223
+ }, zod_v4_core.$strip>;
1224
+ };
1225
+ };
1226
+ };
1227
+ } & {
1228
+ findUniqueAuthentication: (options?: {
1229
+ title?: string | undefined;
1230
+ appKey?: string | undefined;
1231
+ app?: string | undefined;
1232
+ search?: string | undefined;
1233
+ owner?: string | undefined;
1234
+ account?: string | undefined;
1235
+ accountId?: string | undefined;
1236
+ includeShared?: boolean | undefined;
1237
+ isExpired?: boolean | undefined;
1238
+ expired?: boolean | undefined;
1239
+ } | undefined) => Promise<{
1240
+ data: {
1241
+ date: string;
1242
+ is_invite_only: boolean;
1243
+ is_private: boolean;
1244
+ shared_with_all: boolean;
1245
+ id: string;
1246
+ account_id: string;
1247
+ title?: string | null | undefined;
1248
+ lastchanged?: string | undefined;
1249
+ destination_selected_api?: string | null | undefined;
1250
+ is_stale?: string | undefined;
1251
+ is_shared?: string | undefined;
1252
+ marked_stale_at?: string | null | undefined;
1253
+ label?: string | null | undefined;
1254
+ identifier?: string | null | undefined;
1255
+ url?: string | undefined;
1256
+ groups?: Record<string, unknown>[] | undefined;
1257
+ members?: string | undefined;
1258
+ permissions?: Record<string, boolean> | undefined;
1259
+ public_id?: string | undefined;
1260
+ account_public_id?: string | undefined;
1261
+ customuser_public_id?: string | undefined;
1262
+ implementation_id?: string | undefined;
1263
+ profile_id?: string | undefined;
1264
+ is_expired?: string | undefined;
1265
+ expired_at?: string | null | undefined;
1266
+ app_key?: string | undefined;
1267
+ app_version?: string | undefined;
1268
+ };
1269
+ }>;
1270
+ context: {
1271
+ meta: {
1272
+ findUniqueAuthentication: {
1273
+ packages: string[];
1274
+ categories: string[];
1275
+ type: "item";
1276
+ itemType: string;
1277
+ inputSchema: zod.ZodObject<{
1278
+ title: zod.ZodOptional<zod.ZodString>;
1279
+ appKey: zod.ZodOptional<zod.ZodString & {
1280
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1281
+ }>;
1282
+ app: zod.ZodOptional<zod.ZodString & {
1283
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1284
+ }>;
1285
+ search: zod.ZodOptional<zod.ZodString>;
1286
+ owner: zod.ZodOptional<zod.ZodString>;
1287
+ account: zod.ZodOptional<zod.ZodString>;
1288
+ accountId: zod.ZodOptional<zod.ZodString>;
1289
+ includeShared: zod.ZodOptional<zod.ZodBoolean>;
1290
+ isExpired: zod.ZodOptional<zod.ZodBoolean>;
1291
+ expired: zod.ZodOptional<zod.ZodBoolean>;
1292
+ }, zod_v4_core.$strip>;
1293
+ outputSchema: zod.ZodObject<{
1294
+ title: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1295
+ date: zod.ZodString;
1296
+ is_invite_only: zod.ZodBoolean;
1297
+ lastchanged: zod.ZodOptional<zod.ZodString>;
1298
+ destination_selected_api: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1299
+ is_private: zod.ZodBoolean;
1300
+ shared_with_all: zod.ZodBoolean;
1301
+ is_stale: zod.ZodOptional<zod.ZodString>;
1302
+ is_shared: zod.ZodOptional<zod.ZodString>;
1303
+ marked_stale_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1304
+ label: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1305
+ identifier: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1306
+ url: zod.ZodOptional<zod.ZodString>;
1307
+ groups: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
1308
+ members: zod.ZodOptional<zod.ZodString>;
1309
+ permissions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodBoolean>>;
1310
+ public_id: zod.ZodOptional<zod.ZodString>;
1311
+ account_public_id: zod.ZodOptional<zod.ZodString>;
1312
+ customuser_public_id: zod.ZodOptional<zod.ZodString>;
1313
+ id: zod.ZodString;
1314
+ account_id: zod.ZodString;
1315
+ implementation_id: zod.ZodOptional<zod.ZodString>;
1316
+ profile_id: zod.ZodOptional<zod.ZodString>;
1317
+ is_expired: zod.ZodOptional<zod.ZodString>;
1318
+ expired_at: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1319
+ app_key: zod.ZodOptional<zod.ZodString>;
1320
+ app_version: zod.ZodOptional<zod.ZodString>;
1321
+ }, zod_v4_core.$strip>;
1322
+ };
1323
+ };
1324
+ };
1325
+ } & {
1326
+ listClientCredentials: (options?: ({
1327
+ pageSize?: number | undefined;
1328
+ maxItems?: number | undefined;
1329
+ cursor?: string | undefined;
1330
+ } & {
1331
+ cursor?: string;
1332
+ pageSize?: number;
1333
+ maxItems?: number;
1334
+ }) | undefined) => PaginatedSdkResult<{
1335
+ client_id: string;
1336
+ name: string;
1337
+ allowed_scopes: ("credentials" | "external")[];
1338
+ created_at?: string | null | undefined;
1339
+ updated_at?: string | undefined;
1340
+ }>;
1341
+ } & {
1342
+ context: {
1343
+ meta: {
1344
+ listClientCredentials: PluginMeta;
1345
+ };
1346
+ };
1347
+ } & {
1348
+ createClientCredentials: (options?: {
1349
+ name: string;
1350
+ allowedScopes: ("credentials" | "external")[];
1351
+ policy?: Record<string, unknown> | undefined;
1352
+ } | undefined) => Promise<{
1353
+ data: {
1354
+ client_id: string;
1355
+ name: string;
1356
+ client_secret: string;
1357
+ };
1358
+ }>;
1359
+ } & {
1360
+ context: {
1361
+ meta: {
1362
+ createClientCredentials: PluginMeta;
1363
+ };
1364
+ };
1365
+ } & {
1366
+ deleteClientCredentials: (options?: {
1367
+ clientId: string;
1368
+ } | undefined) => Promise<{
1369
+ success: boolean;
1370
+ }>;
1371
+ } & {
1372
+ context: {
1373
+ meta: {
1374
+ deleteClientCredentials: PluginMeta;
1375
+ };
1376
+ };
1377
+ } & {
1378
+ fetch: (url: string | URL, init?: ZapierFetchInitOptions) => Promise<Response>;
1379
+ context: {
1380
+ meta: {
1381
+ fetch: {
1382
+ description: string;
1383
+ packages: string[];
1384
+ categories: string[];
1385
+ returnType: string;
1386
+ inputParameters: ({
1387
+ name: string;
1388
+ schema: zod.ZodUnion<readonly [zod.ZodString, zod.ZodCustom<URL, URL>]>;
1389
+ } | {
1390
+ name: string;
1391
+ schema: zod.ZodOptional<zod.ZodObject<{
1392
+ method: zod.ZodOptional<zod.ZodEnum<{
1393
+ GET: "GET";
1394
+ POST: "POST";
1395
+ PUT: "PUT";
1396
+ DELETE: "DELETE";
1397
+ PATCH: "PATCH";
1398
+ HEAD: "HEAD";
1399
+ OPTIONS: "OPTIONS";
1400
+ }>>;
1401
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1402
+ body: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodCustom<FormData, FormData>, zod.ZodCustom<URLSearchParams, URLSearchParams>, zod.ZodRecord<zod.ZodString, zod.ZodUnknown>]>>;
1403
+ connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1404
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1405
+ authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
1406
+ callbackUrl: zod.ZodOptional<zod.ZodString>;
1407
+ maxTime: zod.ZodOptional<zod.ZodNumber>;
1408
+ }, zod_v4_core.$strip>>;
1409
+ })[];
1410
+ };
1411
+ };
1412
+ };
1413
+ } & {
1414
+ request: (options?: {
1415
+ url: string;
1416
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1417
+ body?: any;
1418
+ connection?: string | number | undefined;
1419
+ connectionId?: string | number | undefined;
1420
+ authenticationId?: string | number | undefined;
1421
+ callbackUrl?: string | undefined;
1422
+ headers?: Record<string, string> | [string, string][] | Headers | undefined;
1423
+ } | undefined) => Promise<Response>;
1424
+ } & {
1425
+ context: {
1426
+ meta: {
1427
+ request: PluginMeta;
1428
+ };
1429
+ };
1430
+ } & {
1431
+ createTriggerInbox: (options?: {
1432
+ app: string;
1433
+ action: string;
1434
+ connection?: string | number | null | undefined;
1435
+ inputs?: Record<string, unknown> | undefined;
1436
+ notificationUrl?: string | undefined;
1437
+ } | undefined) => Promise<{
1438
+ data: {
1439
+ id: string;
1440
+ created_at: string;
1441
+ name: string | null;
1442
+ status: string;
1443
+ paused_reason: string | null;
1444
+ notification_url: string | null;
1445
+ subscription: {
1446
+ connection_id: string | number | null;
1447
+ app_key: string;
1448
+ action_key: string;
1449
+ inputs: Record<string, unknown>;
1450
+ };
1451
+ };
1452
+ }>;
1453
+ } & {
1454
+ context: {
1455
+ meta: {
1456
+ createTriggerInbox: PluginMeta;
1457
+ };
1458
+ };
1459
+ } & {
1460
+ ensureTriggerInbox: (options?: {
1461
+ name: string;
1462
+ app: string;
1463
+ action: string;
1464
+ connection?: string | number | null | undefined;
1465
+ inputs?: Record<string, unknown> | undefined;
1466
+ notificationUrl?: string | undefined;
1467
+ } | undefined) => Promise<{
1468
+ data: {
1469
+ id: string;
1470
+ created_at: string;
1471
+ name: string | null;
1472
+ status: string;
1473
+ paused_reason: string | null;
1474
+ notification_url: string | null;
1475
+ subscription: {
1476
+ connection_id: string | number | null;
1477
+ app_key: string;
1478
+ action_key: string;
1479
+ inputs: Record<string, unknown>;
1480
+ };
1481
+ };
1482
+ }>;
1483
+ } & {
1484
+ context: {
1485
+ meta: {
1486
+ ensureTriggerInbox: PluginMeta;
1487
+ };
1488
+ };
1489
+ } & {
1490
+ listTriggerInboxes: (options?: ({
1491
+ name?: string | undefined;
1492
+ status?: string | undefined;
1493
+ pageSize?: number | undefined;
1494
+ maxItems?: number | undefined;
1495
+ cursor?: string | undefined;
1496
+ } & {
1497
+ cursor?: string;
1498
+ pageSize?: number;
1499
+ maxItems?: number;
1500
+ }) | undefined) => PaginatedSdkResult<{
1501
+ id: string;
1502
+ created_at: string;
1503
+ name: string | null;
1504
+ status: string;
1505
+ paused_reason: string | null;
1506
+ notification_url: string | null;
1507
+ subscription: {
1508
+ connection_id: string | number | null;
1509
+ app_key: string;
1510
+ action_key: string;
1511
+ inputs: Record<string, unknown>;
1512
+ };
1513
+ }>;
1514
+ } & {
1515
+ context: {
1516
+ meta: {
1517
+ listTriggerInboxes: PluginMeta;
1518
+ };
1519
+ };
1520
+ } & {
1521
+ getTriggerInbox: (options?: {
1522
+ inbox: string;
1523
+ } | undefined) => Promise<{
1524
+ data: {
1525
+ id: string;
1526
+ created_at: string;
1527
+ name: string | null;
1528
+ status: string;
1529
+ paused_reason: string | null;
1530
+ notification_url: string | null;
1531
+ subscription: {
1532
+ connection_id: string | number | null;
1533
+ app_key: string;
1534
+ action_key: string;
1535
+ inputs: Record<string, unknown>;
1536
+ };
1537
+ };
1538
+ }>;
1539
+ } & {
1540
+ context: {
1541
+ meta: {
1542
+ getTriggerInbox: PluginMeta;
1543
+ };
1544
+ };
1545
+ } & {
1546
+ updateTriggerInbox: (options?: {
1547
+ inbox: string;
1548
+ notificationUrl?: string | null | undefined;
1549
+ } | undefined) => Promise<{
1550
+ data: {
1551
+ id: string;
1552
+ created_at: string;
1553
+ name: string | null;
1554
+ status: string;
1555
+ paused_reason: string | null;
1556
+ notification_url: string | null;
1557
+ subscription: {
1558
+ connection_id: string | number | null;
1559
+ app_key: string;
1560
+ action_key: string;
1561
+ inputs: Record<string, unknown>;
1562
+ };
1563
+ };
1564
+ }>;
1565
+ } & {
1566
+ context: {
1567
+ meta: {
1568
+ updateTriggerInbox: PluginMeta;
1569
+ };
1570
+ };
1571
+ } & {
1572
+ deleteTriggerInbox: (options?: {
1573
+ inbox: string;
1574
+ } | undefined) => Promise<{
1575
+ data: {
1576
+ id: string;
1577
+ created_at: string;
1578
+ name: string | null;
1579
+ status: string;
1580
+ paused_reason: string | null;
1581
+ notification_url: string | null;
1582
+ subscription: {
1583
+ connection_id: string | number | null;
1584
+ app_key: string;
1585
+ action_key: string;
1586
+ inputs: Record<string, unknown>;
1587
+ };
1588
+ };
1589
+ }>;
1590
+ } & {
1591
+ context: {
1592
+ meta: {
1593
+ deleteTriggerInbox: PluginMeta;
1594
+ };
1595
+ };
1596
+ } & {
1597
+ pauseTriggerInbox: (options?: {
1598
+ inbox: string;
1599
+ } | undefined) => Promise<{
1600
+ data: {
1601
+ id: string;
1602
+ created_at: string;
1603
+ name: string | null;
1604
+ status: string;
1605
+ paused_reason: string | null;
1606
+ notification_url: string | null;
1607
+ subscription: {
1608
+ connection_id: string | number | null;
1609
+ app_key: string;
1610
+ action_key: string;
1611
+ inputs: Record<string, unknown>;
1612
+ };
1613
+ };
1614
+ }>;
1615
+ } & {
1616
+ context: {
1617
+ meta: {
1618
+ pauseTriggerInbox: PluginMeta;
1619
+ };
1620
+ };
1621
+ } & {
1622
+ resumeTriggerInbox: (options?: {
1623
+ inbox: string;
1624
+ } | undefined) => Promise<{
1625
+ data: {
1626
+ id: string;
1627
+ created_at: string;
1628
+ name: string | null;
1629
+ status: string;
1630
+ paused_reason: string | null;
1631
+ notification_url: string | null;
1632
+ subscription: {
1633
+ connection_id: string | number | null;
1634
+ app_key: string;
1635
+ action_key: string;
1636
+ inputs: Record<string, unknown>;
1637
+ };
1638
+ };
1639
+ }>;
1640
+ } & {
1641
+ context: {
1642
+ meta: {
1643
+ resumeTriggerInbox: PluginMeta;
1644
+ };
1645
+ };
1646
+ } & {
1647
+ listTriggerInboxMessages: (options?: ({
1648
+ inbox: string;
1649
+ pageSize?: number | undefined;
1650
+ maxItems?: number | undefined;
1651
+ cursor?: string | undefined;
1652
+ } & {
1653
+ cursor?: string;
1654
+ pageSize?: number;
1655
+ maxItems?: number;
1656
+ }) | undefined) => PaginatedSdkResult<{
1657
+ id: string;
1658
+ created_at: string;
1659
+ status: string;
1660
+ message_attributes: {
1661
+ lease_count: number;
1662
+ error_message: string | null;
1663
+ possible_duplicate_data: boolean;
1664
+ };
1665
+ }>;
1666
+ } & {
1667
+ context: {
1668
+ meta: {
1669
+ listTriggerInboxMessages: PluginMeta;
1670
+ };
1671
+ };
1672
+ } & {
1673
+ leaseTriggerInboxMessages: (options?: {
1674
+ inbox: string;
1675
+ leaseLimit?: number | undefined;
1676
+ leaseSeconds?: number | undefined;
1677
+ signal?: AbortSignal | undefined;
1678
+ } | undefined) => Promise<{
1679
+ data: {
1680
+ lease_id: string | null;
1681
+ leased_until: string | null;
1682
+ results: {
1683
+ id: string;
1684
+ created_at: string;
1685
+ status: string;
1686
+ message_attributes: {
1687
+ lease_count: number;
1688
+ error_message: string | null;
1689
+ possible_duplicate_data: boolean;
1690
+ };
1691
+ payload: Record<string, unknown>;
1692
+ }[];
1693
+ inbox_attributes: {
1694
+ status: string;
1695
+ paused_reason: string | null;
1696
+ };
1697
+ };
1698
+ }>;
1699
+ } & {
1700
+ context: {
1701
+ meta: {
1702
+ leaseTriggerInboxMessages: PluginMeta;
1703
+ };
1704
+ };
1705
+ } & {
1706
+ ackTriggerInboxMessages: (options?: {
1707
+ inbox: string;
1708
+ lease: string;
1709
+ messages?: string[] | undefined;
1710
+ } | undefined) => Promise<{
1711
+ data: {
1712
+ acked_id: string | null;
1713
+ results: {
1714
+ id: string;
1715
+ created_at: string;
1716
+ status: string;
1717
+ message_attributes: {
1718
+ lease_count: number;
1719
+ error_message: string | null;
1720
+ possible_duplicate_data: boolean;
1721
+ };
1722
+ }[];
1723
+ };
1724
+ }>;
1725
+ } & {
1726
+ context: {
1727
+ meta: {
1728
+ ackTriggerInboxMessages: PluginMeta;
1729
+ };
1730
+ };
1731
+ } & {
1732
+ releaseTriggerInboxMessages: (options?: {
1733
+ inbox: string;
1734
+ lease: string;
1735
+ messages?: string[] | undefined;
1736
+ } | undefined) => Promise<{
1737
+ data: {
1738
+ released_id: string | null;
1739
+ results: {
1740
+ id: string;
1741
+ created_at: string;
1742
+ status: string;
1743
+ message_attributes: {
1744
+ lease_count: number;
1745
+ error_message: string | null;
1746
+ possible_duplicate_data: boolean;
1747
+ };
1748
+ }[];
1749
+ };
1750
+ }>;
1751
+ } & {
1752
+ context: {
1753
+ meta: {
1754
+ releaseTriggerInboxMessages: PluginMeta;
1755
+ };
1756
+ };
1757
+ } & {
1758
+ drainTriggerInbox: (options: DrainTriggerInboxOptions) => Promise<void>;
1759
+ context: {
1760
+ meta: {
1761
+ drainTriggerInbox: {
1762
+ type: "create";
1763
+ description: string;
1764
+ itemType: string;
1765
+ returnType: string;
1766
+ inputSchema: zod.ZodObject<{
1767
+ inbox: zod.ZodString & {
1768
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1769
+ };
1770
+ onMessage: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
1771
+ concurrency: zod.ZodOptional<zod.ZodNumber>;
1772
+ leaseLimit: zod.ZodOptional<zod.ZodNumber>;
1773
+ leaseSeconds: zod.ZodOptional<zod.ZodNumber>;
1774
+ releaseOnError: zod.ZodOptional<zod.ZodBoolean>;
1775
+ continueOnError: zod.ZodOptional<zod.ZodBoolean>;
1776
+ onError: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
1777
+ signal: zod.ZodOptional<zod.ZodCustom<AbortSignal, AbortSignal>>;
1778
+ maxMessages: zod.ZodOptional<zod.ZodNumber>;
1779
+ }, zod_v4_core.$strip>;
1780
+ resolvers: {
1781
+ inbox: DynamicResolver<{
1782
+ id: string;
1783
+ created_at: string;
1784
+ name: string | null;
1785
+ status: string;
1786
+ paused_reason: string | null;
1787
+ notification_url: string | null;
1788
+ subscription: {
1789
+ connection_id: string | number | null;
1790
+ app_key: string;
1791
+ action_key: string;
1792
+ inputs: Record<string, unknown>;
1793
+ };
1794
+ }, {}>;
1795
+ };
1796
+ packages: readonly ["sdk"];
1797
+ categories: string[];
1798
+ experimental: true;
1799
+ };
1800
+ };
1801
+ };
1802
+ } & {
1803
+ watchTriggerInbox: (options: WatchTriggerInboxOptions) => Promise<void>;
1804
+ context: {
1805
+ meta: {
1806
+ watchTriggerInbox: {
1807
+ type: "create";
1808
+ description: string;
1809
+ itemType: string;
1810
+ returnType: string;
1811
+ inputSchema: zod.ZodObject<{
1812
+ inbox: zod.ZodString & {
1813
+ _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
1814
+ };
1815
+ onMessage: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
1816
+ concurrency: zod.ZodOptional<zod.ZodNumber>;
1817
+ leaseLimit: zod.ZodOptional<zod.ZodNumber>;
1818
+ leaseSeconds: zod.ZodOptional<zod.ZodNumber>;
1819
+ releaseOnError: zod.ZodOptional<zod.ZodBoolean>;
1820
+ continueOnError: zod.ZodOptional<zod.ZodBoolean>;
1821
+ onError: zod.ZodOptional<zod.ZodFunction<zod_v4_core.$ZodFunctionArgs, zod_v4_core.$ZodFunctionOut>>;
1822
+ signal: zod.ZodOptional<zod.ZodCustom<AbortSignal, AbortSignal>>;
1823
+ maxDrainIntervalSeconds: zod.ZodOptional<zod.ZodNumber>;
1824
+ }, zod_v4_core.$strip>;
1825
+ resolvers: {
1826
+ inbox: DynamicResolver<{
1827
+ id: string;
1828
+ created_at: string;
1829
+ name: string | null;
1830
+ status: string;
1831
+ paused_reason: string | null;
1832
+ notification_url: string | null;
1833
+ subscription: {
1834
+ connection_id: string | number | null;
1835
+ app_key: string;
1836
+ action_key: string;
1837
+ inputs: Record<string, unknown>;
1838
+ };
1839
+ }, {}>;
1840
+ };
1841
+ packages: readonly ["sdk"];
1842
+ categories: string[];
1843
+ experimental: true;
1844
+ };
1845
+ };
1846
+ };
1847
+ } & {
1848
+ listTriggerInputFields: (options?: ({
1849
+ app: string;
1850
+ action: string;
1851
+ connection?: string | number | undefined;
1852
+ inputs?: Record<string, unknown> | undefined;
1853
+ pageSize?: number | undefined;
1854
+ maxItems?: number | undefined;
1855
+ cursor?: string | undefined;
1856
+ } & {
1857
+ cursor?: string;
1858
+ pageSize?: number;
1859
+ maxItems?: number;
1860
+ }) | undefined) => PaginatedSdkResult<{
1861
+ key: string;
1862
+ type: "input_field";
1863
+ default_value: string;
1864
+ depends_on: string[];
1865
+ description: string;
1866
+ invalidates_input_fields: boolean;
1867
+ is_required: boolean;
1868
+ placeholder: string;
1869
+ title: string;
1870
+ value_type: string;
1871
+ format?: string | undefined;
1872
+ items?: {
1873
+ type: string;
1874
+ } | undefined;
1875
+ } | {
1876
+ key: string;
1877
+ type: "info_field";
1878
+ description: string;
1879
+ title?: string | undefined;
1880
+ } | FieldsetItem>;
1881
+ } & {
1882
+ context: {
1883
+ meta: {
1884
+ listTriggerInputFields: PluginMeta;
1885
+ };
1886
+ };
1887
+ } & {
1888
+ listTriggerInputFieldChoices: (options?: ({
1889
+ app: string;
1890
+ action: string;
1891
+ inputField: string;
1892
+ connection?: string | number | undefined;
1893
+ inputs?: Record<string, unknown> | undefined;
1894
+ page?: number | undefined;
1895
+ pageSize?: number | undefined;
1896
+ maxItems?: number | undefined;
1897
+ cursor?: string | undefined;
1898
+ } & {
1899
+ cursor?: string;
1900
+ pageSize?: number;
1901
+ maxItems?: number;
1902
+ }) | undefined) => PaginatedSdkResult<{
1903
+ key?: string | undefined;
1904
+ label?: string | undefined;
1905
+ sample?: string | undefined;
1906
+ value?: string | undefined;
1907
+ }>;
1908
+ } & {
1909
+ context: {
1910
+ meta: {
1911
+ listTriggerInputFieldChoices: PluginMeta;
1912
+ };
1913
+ };
1914
+ } & {
1915
+ getTriggerInputFieldsSchema: (options?: {
1916
+ app: string;
1917
+ action: string;
1918
+ connection?: string | number | undefined;
1919
+ inputs?: Record<string, unknown> | undefined;
1920
+ } | undefined) => Promise<{
1921
+ data: Record<string, unknown>;
1922
+ }>;
1923
+ } & {
1924
+ context: {
1925
+ meta: {
1926
+ getTriggerInputFieldsSchema: PluginMeta;
1927
+ };
1928
+ };
1929
+ } & {
1930
+ listTables: (options?: ({
1931
+ tables?: string[] | undefined;
1932
+ tableIds?: string[] | undefined;
1933
+ kind?: "table" | "virtual_table" | "both" | undefined;
1934
+ search?: string | undefined;
1935
+ owner?: string | undefined;
1936
+ includeShared?: boolean | undefined;
1937
+ pageSize?: number | undefined;
1938
+ maxItems?: number | undefined;
1939
+ cursor?: string | undefined;
1940
+ } & {
1941
+ cursor?: string;
1942
+ pageSize?: number;
1943
+ maxItems?: number;
1944
+ }) | undefined) => PaginatedSdkResult<{
1945
+ id: string;
1946
+ name: string;
1947
+ created_at: string;
1948
+ edited_at: string;
1949
+ kind: "table" | "virtual_table";
1950
+ account_id: string;
1951
+ profile_id: string;
1952
+ description?: string | undefined;
1953
+ parent_table_id?: string | undefined;
1954
+ }>;
1955
+ } & {
1956
+ context: {
1957
+ meta: {
1958
+ listTables: PluginMeta;
1959
+ };
1960
+ };
1961
+ } & {
1962
+ getTable: (options?: {
1963
+ table: string;
1964
+ } | {
1965
+ tableId: string;
1966
+ } | undefined) => Promise<{
1967
+ data: {
1968
+ id: string;
1969
+ name: string;
1970
+ created_at: string;
1971
+ edited_at: string;
1972
+ kind: "table" | "virtual_table";
1973
+ account_id: string;
1974
+ profile_id: string;
1975
+ description?: string | undefined;
1976
+ parent_table_id?: string | undefined;
1977
+ };
1978
+ }>;
1979
+ } & {
1980
+ context: {
1981
+ meta: {
1982
+ getTable: PluginMeta;
1983
+ };
1984
+ };
1985
+ } & {
1986
+ deleteTable: (options?: {
1987
+ table: string;
1988
+ } | {
1989
+ tableId: string;
1990
+ } | undefined) => Promise<{
1991
+ success: boolean;
1992
+ }>;
1993
+ } & {
1994
+ context: {
1995
+ meta: {
1996
+ deleteTable: PluginMeta;
1997
+ };
1998
+ };
1999
+ } & {
2000
+ createTable: (options?: {
2001
+ name: string;
2002
+ description?: string | undefined;
2003
+ } | undefined) => Promise<{
2004
+ data: {
2005
+ id: string;
2006
+ name: string;
2007
+ created_at: string;
2008
+ edited_at: string;
2009
+ kind: "table" | "virtual_table";
2010
+ account_id: string;
2011
+ profile_id: string;
2012
+ description?: string | undefined;
2013
+ parent_table_id?: string | undefined;
2014
+ };
2015
+ }>;
2016
+ } & {
2017
+ context: {
2018
+ meta: {
2019
+ createTable: PluginMeta;
2020
+ };
2021
+ };
2022
+ } & {
2023
+ listTableFields: (options?: {
2024
+ table: string;
2025
+ fields?: (string | number)[] | undefined;
2026
+ fieldKeys?: (string | number)[] | undefined;
2027
+ } | {
2028
+ tableId: string;
2029
+ fields?: (string | number)[] | undefined;
2030
+ fieldKeys?: (string | number)[] | undefined;
2031
+ } | undefined) => Promise<{
2032
+ data: {
2033
+ id: string;
2034
+ type: "string" | "number" | "boolean" | "link" | "text" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "decimal" | "multiple_decimal" | "datetime" | "multiple_datetime" | "uuid" | "multiple_uuid" | "json" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "email" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
2035
+ name: string;
2036
+ created_at?: string | undefined;
2037
+ edited_at?: string | undefined;
2038
+ options?: Record<string, unknown> | undefined;
2039
+ config?: Record<string, unknown> | undefined;
2040
+ }[];
2041
+ }>;
2042
+ } & {
2043
+ context: {
2044
+ meta: {
2045
+ listTableFields: PluginMeta;
2046
+ };
2047
+ };
2048
+ } & {
2049
+ createTableFields: (options?: {
2050
+ table: string;
2051
+ fields: {
2052
+ type: "string" | "number" | "boolean" | "link" | "text" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "decimal" | "multiple_decimal" | "datetime" | "multiple_datetime" | "uuid" | "multiple_uuid" | "json" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "email" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
2053
+ name: string;
2054
+ options?: Record<string, unknown> | undefined;
2055
+ config?: Record<string, unknown> | undefined;
2056
+ }[];
2057
+ } | {
2058
+ tableId: string;
2059
+ fields: {
2060
+ type: "string" | "number" | "boolean" | "link" | "text" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "decimal" | "multiple_decimal" | "datetime" | "multiple_datetime" | "uuid" | "multiple_uuid" | "json" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "email" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
2061
+ name: string;
2062
+ options?: Record<string, unknown> | undefined;
2063
+ config?: Record<string, unknown> | undefined;
2064
+ }[];
2065
+ } | undefined) => Promise<{
2066
+ data: {
2067
+ id: string;
2068
+ type: "string" | "number" | "boolean" | "link" | "text" | "multiple_string" | "labeled_string" | "multiple_labeled_string" | "multiple_text" | "multiple_boolean" | "multiple_number" | "decimal" | "multiple_decimal" | "datetime" | "multiple_datetime" | "uuid" | "multiple_uuid" | "json" | "multiple_json" | "formula" | "button_trigger_zap" | "button_continue_zap" | "email" | "multiple_email" | "multiple_link" | "currency" | "phone_number" | "ai_formula" | "linked_record" | "multiple_linked_record";
2069
+ name: string;
2070
+ created_at?: string | undefined;
2071
+ edited_at?: string | undefined;
2072
+ options?: Record<string, unknown> | undefined;
2073
+ config?: Record<string, unknown> | undefined;
2074
+ }[];
2075
+ }>;
2076
+ } & {
2077
+ context: {
2078
+ meta: {
2079
+ createTableFields: PluginMeta;
2080
+ };
2081
+ };
2082
+ } & {
2083
+ deleteTableFields: (options?: {
2084
+ table: string;
2085
+ fields: (string | number)[];
2086
+ } | {
2087
+ tableId: string;
2088
+ fieldKeys: (string | number)[];
2089
+ } | undefined) => Promise<{
2090
+ success: boolean;
2091
+ }>;
2092
+ } & {
2093
+ context: {
2094
+ meta: {
2095
+ deleteTableFields: PluginMeta;
2096
+ };
2097
+ };
2098
+ } & {
2099
+ getTableRecord: (options?: {
2100
+ table: string;
2101
+ record: string;
2102
+ keyMode: "names" | "ids";
2103
+ } | {
2104
+ tableId: string;
2105
+ recordId: string;
2106
+ keyMode: "names" | "ids";
2107
+ } | undefined) => Promise<{
2108
+ data: {
2109
+ data: Record<string, unknown>;
2110
+ id: string;
2111
+ created_at: string;
2112
+ edited_at: string;
2113
+ };
2114
+ }>;
2115
+ } & {
2116
+ context: {
2117
+ meta: {
2118
+ getTableRecord: PluginMeta;
2119
+ };
2120
+ };
2121
+ } & {
2122
+ listTableRecords: (options?: (({
2123
+ table: string;
2124
+ keyMode: "names" | "ids";
2125
+ filters?: {
2126
+ fieldKey: string;
2127
+ operator: "in" | "search" | "exact" | "different" | "contains" | "icontains" | "gte" | "gt" | "lt" | "lte" | "range" | "isnull" | "startswith" | "is_within";
2128
+ value?: unknown;
2129
+ }[] | undefined;
2130
+ sort?: {
2131
+ fieldKey: string;
2132
+ direction: "asc" | "desc";
2133
+ } | undefined;
2134
+ pageSize?: number | undefined;
2135
+ maxItems?: number | undefined;
2136
+ cursor?: string | undefined;
2137
+ } | {
2138
+ tableId: string;
2139
+ keyMode: "names" | "ids";
2140
+ filters?: {
2141
+ fieldKey: string;
2142
+ operator: "in" | "search" | "exact" | "different" | "contains" | "icontains" | "gte" | "gt" | "lt" | "lte" | "range" | "isnull" | "startswith" | "is_within";
2143
+ value?: unknown;
2144
+ }[] | undefined;
2145
+ sort?: {
2146
+ fieldKey: string;
2147
+ direction: "asc" | "desc";
2148
+ } | undefined;
2149
+ pageSize?: number | undefined;
2150
+ maxItems?: number | undefined;
2151
+ cursor?: string | undefined;
2152
+ }) & {
2153
+ cursor?: string;
2154
+ pageSize?: number;
2155
+ maxItems?: number;
2156
+ }) | undefined) => PaginatedSdkResult<{
2157
+ id: string;
2158
+ data: Record<string, unknown>;
2159
+ created_at: string;
2160
+ edited_at: string;
2161
+ }>;
2162
+ } & {
2163
+ context: {
2164
+ meta: {
2165
+ listTableRecords: PluginMeta;
2166
+ };
2167
+ };
2168
+ } & {
2169
+ createTableRecords: (options?: {
2170
+ table: string;
2171
+ records: {
2172
+ data: Record<string, unknown>;
2173
+ }[];
2174
+ keyMode: "names" | "ids";
2175
+ } | {
2176
+ tableId: string;
2177
+ records: {
2178
+ data: Record<string, unknown>;
2179
+ }[];
2180
+ keyMode: "names" | "ids";
2181
+ } | undefined) => Promise<{
2182
+ data: {
2183
+ data: Record<string, unknown>;
2184
+ id: string;
2185
+ created_at: string;
2186
+ edited_at: string;
2187
+ }[];
2188
+ }>;
2189
+ } & {
2190
+ context: {
2191
+ meta: {
2192
+ createTableRecords: PluginMeta;
2193
+ };
2194
+ };
2195
+ } & {
2196
+ deleteTableRecords: (options?: {
2197
+ table: string;
2198
+ records: string[];
2199
+ } | {
2200
+ tableId: string;
2201
+ recordIds: string[];
2202
+ } | undefined) => Promise<{
2203
+ success: boolean;
2204
+ }>;
2205
+ } & {
2206
+ context: {
2207
+ meta: {
2208
+ deleteTableRecords: PluginMeta;
2209
+ };
2210
+ };
2211
+ } & {
2212
+ updateTableRecords: (options?: {
2213
+ table: string;
2214
+ records: {
2215
+ id: string;
2216
+ data: Record<string, unknown>;
2217
+ }[];
2218
+ keyMode: "names" | "ids";
2219
+ } | {
2220
+ tableId: string;
2221
+ records: {
2222
+ id: string;
2223
+ data: Record<string, unknown>;
2224
+ }[];
2225
+ keyMode: "names" | "ids";
2226
+ } | undefined) => Promise<{
2227
+ data: {
2228
+ data: Record<string, unknown>;
2229
+ id: string;
2230
+ created_at: string;
2231
+ edited_at: string;
2232
+ }[];
2233
+ }>;
2234
+ } & {
2235
+ context: {
2236
+ meta: {
2237
+ updateTableRecords: PluginMeta;
2238
+ };
2239
+ };
2240
+ } & {
2241
+ apps: ActionProxy & ZapierSdkApps;
2242
+ context: {
2243
+ meta: {
2244
+ "apps.{appKey}": {
2245
+ categories: string[];
2246
+ packages: string[];
2247
+ type: "function";
2248
+ inputSchema: zod.ZodObject<{
2249
+ connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2250
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2251
+ authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2252
+ }, zod_v4_core.$strip>;
2253
+ returnType: string;
2254
+ };
2255
+ "apps.{appKey}.{actionType}.{actionKey}": {
2256
+ categories: string[];
2257
+ packages: string[];
2258
+ type: "list";
2259
+ inputSchema: zod.ZodObject<{
2260
+ inputs: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2261
+ connectionId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2262
+ connection: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2263
+ authenticationId: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
2264
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
2265
+ }, zod_v4_core.$strip>;
2266
+ itemType: string;
2267
+ outputSchema: zod.ZodUnknown;
2268
+ };
2269
+ };
2270
+ };
2271
+ } & {
2272
+ getProfile: (options?: Record<string, never> | undefined) => Promise<{
2273
+ data: {
2274
+ id: string;
2275
+ first_name: string;
2276
+ last_name: string;
2277
+ full_name: string;
2278
+ email: string;
2279
+ email_confirmed: boolean;
2280
+ timezone: string;
2281
+ };
2282
+ }>;
2283
+ } & {
2284
+ context: {
2285
+ meta: {
2286
+ getProfile: PluginMeta;
2287
+ };
2288
+ };
2289
+ }>;
2290
+ type ZapierSdk = ReturnType<typeof createZapierSdk>;
2291
+
2292
+ export { ActionEntry, AddActionEntryOptions, AddActionEntryResult, ApiClient, DrainTriggerInboxOptions, DynamicResolver, EventEmissionContext, FieldsetItem, Manifest, PaginatedSdkResult, PluginMeta, PositionalMetadata, ResolvedAppLocator, UpdateManifestEntryOptions, UpdateManifestEntryResult, WatchTriggerInboxOptions, WithAddPlugin, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, findManifestEntry, readManifestFromFile };