@objectstack/spec 0.3.2 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (523) hide show
  1. package/README.md +32 -10
  2. package/dist/ai/agent.zod.d.ts +12 -12
  3. package/dist/ai/conversation.zod.d.ts +54 -54
  4. package/dist/ai/cost.zod.d.ts +135 -135
  5. package/dist/ai/index.d.ts +1 -1
  6. package/dist/ai/index.d.ts.map +1 -1
  7. package/dist/ai/index.js +1 -1
  8. package/dist/ai/model-registry.zod.d.ts +91 -91
  9. package/dist/ai/nlq.zod.d.ts +72 -72
  10. package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +51 -50
  11. package/dist/ai/orchestration.zod.d.ts.map +1 -0
  12. package/dist/ai/{workflow-automation.zod.js → orchestration.zod.js} +26 -25
  13. package/dist/ai/predictive.zod.d.ts +27 -27
  14. package/dist/ai/rag-pipeline.zod.d.ts +102 -102
  15. package/dist/api/contract.zod.d.ts +213 -197
  16. package/dist/api/contract.zod.d.ts.map +1 -1
  17. package/dist/{system → api}/discovery.zod.d.ts +26 -26
  18. package/dist/api/discovery.zod.d.ts.map +1 -0
  19. package/dist/{system → api}/discovery.zod.js +9 -9
  20. package/dist/{system/api.zod.d.ts → api/endpoint.zod.d.ts} +53 -57
  21. package/dist/api/endpoint.zod.d.ts.map +1 -0
  22. package/dist/{system/api.zod.js → api/endpoint.zod.js} +3 -6
  23. package/dist/api/index.d.ts +6 -0
  24. package/dist/api/index.d.ts.map +1 -1
  25. package/dist/api/index.js +6 -0
  26. package/dist/api/odata.zod.d.ts +482 -0
  27. package/dist/api/odata.zod.d.ts.map +1 -0
  28. package/dist/api/odata.zod.js +401 -0
  29. package/dist/{system → api}/realtime.zod.d.ts +4 -4
  30. package/dist/api/realtime.zod.d.ts.map +1 -0
  31. package/dist/api/router.zod.d.ts +182 -0
  32. package/dist/api/router.zod.d.ts.map +1 -0
  33. package/dist/api/router.zod.js +103 -0
  34. package/dist/{system/auth.zod.d.ts → auth/config.zod.d.ts} +199 -199
  35. package/dist/auth/config.zod.d.ts.map +1 -0
  36. package/dist/{system → auth}/identity.zod.d.ts +8 -8
  37. package/dist/auth/identity.zod.d.ts.map +1 -0
  38. package/dist/auth/index.d.ts +8 -0
  39. package/dist/auth/index.d.ts.map +1 -0
  40. package/dist/auth/index.js +23 -0
  41. package/dist/{system → auth}/organization.zod.d.ts +7 -7
  42. package/dist/auth/organization.zod.d.ts.map +1 -0
  43. package/dist/{system → auth}/policy.zod.d.ts +3 -3
  44. package/dist/auth/policy.zod.d.ts.map +1 -0
  45. package/dist/{system/auth-protocol.d.ts → auth/protocol.d.ts} +1 -1
  46. package/dist/auth/protocol.d.ts.map +1 -0
  47. package/dist/{system → auth}/role.zod.d.ts +14 -0
  48. package/dist/auth/role.zod.d.ts.map +1 -0
  49. package/dist/{system → auth}/role.zod.js +16 -1
  50. package/dist/auth/scim.zod.d.ts +2732 -0
  51. package/dist/auth/scim.zod.d.ts.map +1 -0
  52. package/dist/auth/scim.zod.js +811 -0
  53. package/dist/automation/approval.zod.d.ts +643 -0
  54. package/dist/automation/approval.zod.d.ts.map +1 -0
  55. package/dist/automation/approval.zod.js +84 -0
  56. package/dist/automation/connector.zod.d.ts +1284 -0
  57. package/dist/automation/connector.zod.d.ts.map +1 -0
  58. package/dist/automation/connector.zod.js +500 -0
  59. package/dist/automation/etl.zod.d.ts +623 -0
  60. package/dist/automation/etl.zod.d.ts.map +1 -0
  61. package/dist/automation/etl.zod.js +359 -0
  62. package/dist/{data → automation}/flow.zod.d.ts +40 -22
  63. package/dist/automation/flow.zod.d.ts.map +1 -0
  64. package/dist/{data → automation}/flow.zod.js +6 -1
  65. package/dist/automation/index.d.ts +8 -0
  66. package/dist/automation/index.d.ts.map +1 -0
  67. package/dist/automation/index.js +23 -0
  68. package/dist/automation/sync.zod.d.ts +854 -0
  69. package/dist/automation/sync.zod.d.ts.map +1 -0
  70. package/dist/automation/sync.zod.js +444 -0
  71. package/dist/{system → automation}/webhook.zod.d.ts +26 -3
  72. package/dist/automation/webhook.zod.d.ts.map +1 -0
  73. package/dist/{system → automation}/webhook.zod.js +27 -3
  74. package/dist/automation/workflow.zod.d.ts +2059 -0
  75. package/dist/automation/workflow.zod.d.ts.map +1 -0
  76. package/dist/{data → automation}/workflow.zod.js +40 -2
  77. package/dist/data/dataset.zod.d.ts +2 -2
  78. package/dist/data/field.zod.d.ts +779 -219
  79. package/dist/data/field.zod.d.ts.map +1 -1
  80. package/dist/data/field.zod.js +128 -16
  81. package/dist/data/filter.zod.d.ts +167 -30
  82. package/dist/data/filter.zod.d.ts.map +1 -1
  83. package/dist/data/filter.zod.js +25 -13
  84. package/dist/data/hook.zod.d.ts +191 -0
  85. package/dist/data/hook.zod.d.ts.map +1 -0
  86. package/dist/data/hook.zod.js +144 -0
  87. package/dist/data/index.d.ts +4 -17
  88. package/dist/data/index.d.ts.map +1 -1
  89. package/dist/data/index.js +4 -17
  90. package/dist/data/mapping.zod.d.ts +117 -93
  91. package/dist/data/mapping.zod.d.ts.map +1 -1
  92. package/dist/data/mapping.zod.js +16 -3
  93. package/dist/data/object.zod.d.ts +485 -131
  94. package/dist/data/object.zod.d.ts.map +1 -1
  95. package/dist/data/object.zod.js +87 -42
  96. package/dist/data/query.zod.d.ts +98 -169
  97. package/dist/data/query.zod.d.ts.map +1 -1
  98. package/dist/data/query.zod.js +42 -130
  99. package/dist/data/validation.zod.d.ts +166 -26
  100. package/dist/data/validation.zod.d.ts.map +1 -1
  101. package/dist/data/validation.zod.js +38 -16
  102. package/dist/hub/composer.zod.d.ts +871 -0
  103. package/dist/hub/composer.zod.d.ts.map +1 -0
  104. package/dist/hub/composer.zod.js +111 -0
  105. package/dist/hub/index.d.ts +6 -0
  106. package/dist/hub/index.d.ts.map +1 -0
  107. package/dist/hub/index.js +22 -0
  108. package/dist/{system → hub}/license.zod.d.ts +13 -9
  109. package/dist/hub/license.zod.d.ts.map +1 -0
  110. package/dist/{system → hub}/license.zod.js +5 -3
  111. package/dist/hub/marketplace.zod.d.ts +191 -0
  112. package/dist/hub/marketplace.zod.d.ts.map +1 -0
  113. package/dist/hub/marketplace.zod.js +85 -0
  114. package/dist/hub/space.zod.d.ts +383 -0
  115. package/dist/hub/space.zod.d.ts.map +1 -0
  116. package/dist/hub/space.zod.js +103 -0
  117. package/dist/{system → hub}/tenant.zod.d.ts +73 -47
  118. package/dist/hub/tenant.zod.d.ts.map +1 -0
  119. package/dist/{system → hub}/tenant.zod.js +36 -10
  120. package/dist/index.d.ts +11 -4
  121. package/dist/index.d.ts.map +1 -1
  122. package/dist/index.js +15 -5
  123. package/dist/permission/index.d.ts +14 -0
  124. package/dist/permission/index.d.ts.map +1 -0
  125. package/dist/permission/index.js +29 -0
  126. package/dist/{data → permission}/permission.zod.d.ts +48 -3
  127. package/dist/permission/permission.zod.d.ts.map +1 -0
  128. package/dist/{data → permission}/permission.zod.js +26 -2
  129. package/dist/permission/rls.zod.d.ts +605 -0
  130. package/dist/permission/rls.zod.d.ts.map +1 -0
  131. package/dist/permission/rls.zod.js +615 -0
  132. package/dist/permission/sharing.zod.d.ts +146 -0
  133. package/dist/permission/sharing.zod.d.ts.map +1 -0
  134. package/dist/permission/sharing.zod.js +88 -0
  135. package/dist/{system → permission}/territory.zod.d.ts +13 -0
  136. package/dist/permission/territory.zod.d.ts.map +1 -0
  137. package/dist/{system → permission}/territory.zod.js +15 -1
  138. package/dist/shared/identifiers.zod.d.ts +87 -0
  139. package/dist/shared/identifiers.zod.d.ts.map +1 -0
  140. package/dist/shared/identifiers.zod.js +101 -0
  141. package/dist/shared/index.d.ts +6 -0
  142. package/dist/shared/index.d.ts.map +1 -0
  143. package/dist/shared/index.js +21 -0
  144. package/dist/stack.zod.d.ts +19869 -0
  145. package/dist/stack.zod.d.ts.map +1 -0
  146. package/dist/stack.zod.js +248 -0
  147. package/dist/system/audit.zod.d.ts +58 -58
  148. package/dist/system/context.zod.d.ts +56 -0
  149. package/dist/system/context.zod.d.ts.map +1 -0
  150. package/dist/system/context.zod.js +43 -0
  151. package/dist/system/datasource.zod.d.ts +40 -6
  152. package/dist/system/datasource.zod.d.ts.map +1 -1
  153. package/dist/system/datasource.zod.js +17 -13
  154. package/dist/system/driver/mongo.zod.d.ts +107 -0
  155. package/dist/system/driver/mongo.zod.d.ts.map +1 -0
  156. package/dist/system/driver/mongo.zod.js +80 -0
  157. package/dist/system/driver/postgres.zod.d.ts +134 -0
  158. package/dist/system/driver/postgres.zod.d.ts.map +1 -0
  159. package/dist/system/driver/postgres.zod.js +88 -0
  160. package/dist/system/driver.zod.d.ts +2249 -488
  161. package/dist/system/driver.zod.d.ts.map +1 -1
  162. package/dist/system/driver.zod.js +99 -0
  163. package/dist/system/events.zod.d.ts +8 -5
  164. package/dist/system/events.zod.d.ts.map +1 -1
  165. package/dist/system/events.zod.js +5 -1
  166. package/dist/system/feature.zod.d.ts +131 -0
  167. package/dist/system/feature.zod.d.ts.map +1 -0
  168. package/dist/system/feature.zod.js +45 -0
  169. package/dist/system/index.d.ts +11 -20
  170. package/dist/system/index.d.ts.map +1 -1
  171. package/dist/system/index.js +15 -20
  172. package/dist/system/job.zod.d.ts +5 -5
  173. package/dist/system/logger.zod.d.ts +111 -0
  174. package/dist/system/logger.zod.d.ts.map +1 -0
  175. package/dist/system/logger.zod.js +75 -0
  176. package/dist/system/manifest.zod.d.ts +136 -18
  177. package/dist/system/manifest.zod.d.ts.map +1 -1
  178. package/dist/system/manifest.zod.js +28 -0
  179. package/dist/system/plugin.zod.d.ts +598 -318
  180. package/dist/system/plugin.zod.d.ts.map +1 -1
  181. package/dist/system/plugin.zod.js +13 -0
  182. package/dist/system/scoped-storage.zod.d.ts +81 -0
  183. package/dist/system/scoped-storage.zod.d.ts.map +1 -0
  184. package/dist/system/scoped-storage.zod.js +66 -0
  185. package/dist/ui/action.zod.d.ts +42 -17
  186. package/dist/ui/action.zod.d.ts.map +1 -1
  187. package/dist/ui/action.zod.js +30 -1
  188. package/dist/ui/app.zod.d.ts +26 -11
  189. package/dist/ui/app.zod.d.ts.map +1 -1
  190. package/dist/ui/app.zod.js +32 -4
  191. package/dist/ui/block.zod.d.ts +265 -0
  192. package/dist/ui/block.zod.d.ts.map +1 -0
  193. package/dist/ui/block.zod.js +90 -0
  194. package/dist/ui/component.zod.d.ts +265 -0
  195. package/dist/ui/component.zod.d.ts.map +1 -0
  196. package/dist/ui/component.zod.js +90 -0
  197. package/dist/ui/dashboard.zod.d.ts +15 -15
  198. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  199. package/dist/ui/dashboard.zod.js +18 -8
  200. package/dist/ui/index.d.ts +1 -0
  201. package/dist/ui/index.d.ts.map +1 -1
  202. package/dist/ui/index.js +1 -0
  203. package/dist/ui/page.zod.d.ts +23 -5
  204. package/dist/ui/page.zod.d.ts.map +1 -1
  205. package/dist/ui/page.zod.js +37 -4
  206. package/dist/ui/report.zod.d.ts +12 -12
  207. package/dist/ui/theme.zod.d.ts +42 -42
  208. package/dist/ui/view.zod.d.ts +302 -290
  209. package/dist/ui/view.zod.d.ts.map +1 -1
  210. package/dist/ui/view.zod.js +32 -3
  211. package/dist/ui/widget.zod.d.ts +730 -29
  212. package/dist/ui/widget.zod.d.ts.map +1 -1
  213. package/dist/ui/widget.zod.js +294 -1
  214. package/json-schema/ai/{AIWorkflowAutomation.json → AIOrchestration.json} +5 -5
  215. package/json-schema/ai/{AIWorkflowExecutionResult.json → AIOrchestrationExecutionResult.json} +2 -2
  216. package/json-schema/ai/{AIWorkflowTrigger.json → AIOrchestrationTrigger.json} +2 -2
  217. package/json-schema/ai/{BatchAIWorkflowExecution.json → BatchAIOrchestrationExecution.json} +3 -3
  218. package/json-schema/{system → api}/ApiEndpoint.json +3 -1
  219. package/json-schema/{system → api}/ApiRoutes.json +7 -7
  220. package/json-schema/{system → api}/Discovery.json +7 -7
  221. package/json-schema/api/ExportRequest.json +402 -438
  222. package/json-schema/{system → api}/HttpMethod.json +3 -1
  223. package/json-schema/api/ODataError.json +65 -0
  224. package/json-schema/api/ODataFilterFunction.json +39 -0
  225. package/json-schema/api/ODataFilterOperator.json +24 -0
  226. package/json-schema/api/ODataMetadata.json +115 -0
  227. package/json-schema/api/ODataQuery.json +89 -0
  228. package/json-schema/api/ODataResponse.json +37 -0
  229. package/json-schema/api/RouteCategory.json +17 -0
  230. package/json-schema/api/RouteDefinition.json +77 -0
  231. package/json-schema/api/RouterConfig.json +117 -0
  232. package/json-schema/{system → auth}/Role.json +3 -2
  233. package/json-schema/auth/SCIMAddress.json +50 -0
  234. package/json-schema/auth/SCIMEmail.json +38 -0
  235. package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
  236. package/json-schema/auth/SCIMError.json +52 -0
  237. package/json-schema/auth/SCIMGroup.json +102 -0
  238. package/json-schema/auth/SCIMGroupReference.json +36 -0
  239. package/json-schema/auth/SCIMListResponse.json +606 -0
  240. package/json-schema/auth/SCIMMemberReference.json +36 -0
  241. package/json-schema/auth/SCIMMeta.json +35 -0
  242. package/json-schema/auth/SCIMName.json +36 -0
  243. package/json-schema/auth/SCIMPatchOperation.json +31 -0
  244. package/json-schema/auth/SCIMPatchRequest.json +56 -0
  245. package/json-schema/auth/SCIMPhoneNumber.json +40 -0
  246. package/json-schema/auth/SCIMUser.json +462 -0
  247. package/json-schema/automation/ApprovalAction.json +35 -0
  248. package/json-schema/automation/ApprovalActionType.json +15 -0
  249. package/json-schema/automation/ApprovalProcess.json +326 -0
  250. package/json-schema/automation/ApprovalStep.json +147 -0
  251. package/json-schema/automation/ApproverType.json +16 -0
  252. package/json-schema/automation/AuthField.json +73 -0
  253. package/json-schema/automation/Authentication.json +159 -0
  254. package/json-schema/automation/AuthenticationType.json +18 -0
  255. package/json-schema/automation/ConflictResolution.json +16 -0
  256. package/json-schema/automation/Connector.json +440 -0
  257. package/json-schema/automation/ConnectorCategory.json +26 -0
  258. package/json-schema/automation/ConnectorInstance.json +69 -0
  259. package/json-schema/automation/ConnectorOperation.json +117 -0
  260. package/json-schema/automation/ConnectorTrigger.json +54 -0
  261. package/json-schema/automation/DataDestinationConfig.json +89 -0
  262. package/json-schema/automation/DataSourceConfig.json +34 -0
  263. package/json-schema/automation/DataSyncConfig.json +355 -0
  264. package/json-schema/automation/ETLDestination.json +57 -0
  265. package/json-schema/automation/ETLEndpointType.json +19 -0
  266. package/json-schema/automation/ETLPipeline.json +252 -0
  267. package/json-schema/automation/ETLPipelineRun.json +107 -0
  268. package/json-schema/automation/ETLRunStatus.json +17 -0
  269. package/json-schema/automation/ETLSource.json +60 -0
  270. package/json-schema/{data/LogicOperator.json → automation/ETLSyncMode.json} +5 -5
  271. package/json-schema/automation/ETLTransformation.json +46 -0
  272. package/json-schema/automation/ETLTransformationType.json +21 -0
  273. package/json-schema/automation/FieldMapping.json +36 -0
  274. package/json-schema/{data → automation}/Flow.json +31 -1
  275. package/json-schema/{data → automation}/FlowEdge.json +9 -0
  276. package/json-schema/automation/OAuth2Config.json +43 -0
  277. package/json-schema/automation/OperationParameter.json +59 -0
  278. package/json-schema/automation/OperationType.json +17 -0
  279. package/json-schema/automation/SyncDirection.json +14 -0
  280. package/json-schema/automation/SyncExecutionResult.json +135 -0
  281. package/json-schema/automation/SyncExecutionStatus.json +17 -0
  282. package/json-schema/{data/TriggerTiming.json → automation/SyncMode.json} +5 -4
  283. package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
  284. package/json-schema/{system → automation}/Webhook.json +3 -1
  285. package/json-schema/{system → automation}/WebhookReceiver.json +3 -1
  286. package/json-schema/automation/WorkflowRule.json +1032 -0
  287. package/json-schema/data/AggregationNode.json +23 -0
  288. package/json-schema/data/AsyncValidation.json +49 -2
  289. package/json-schema/data/ComparisonOperator.json +52 -0
  290. package/json-schema/data/ConditionalValidation.json +693 -46
  291. package/json-schema/data/CrossFieldValidation.json +33 -2
  292. package/json-schema/data/CurrencyConfig.json +35 -0
  293. package/json-schema/data/CurrencyValue.json +26 -0
  294. package/json-schema/data/CustomValidator.json +37 -10
  295. package/json-schema/data/Field.json +92 -4
  296. package/json-schema/data/FieldOperators.json +78 -0
  297. package/json-schema/data/FieldReference.json +19 -0
  298. package/json-schema/data/FieldType.json +12 -2
  299. package/json-schema/data/FormatValidation.json +33 -2
  300. package/json-schema/data/Hook.json +95 -0
  301. package/json-schema/data/HookContext.json +88 -0
  302. package/json-schema/data/HookEvent.json +29 -0
  303. package/json-schema/data/Index.json +10 -0
  304. package/json-schema/data/JSONValidation.json +85 -0
  305. package/json-schema/data/JoinNode.json +197 -213
  306. package/json-schema/data/JoinStrategy.json +15 -0
  307. package/json-schema/data/NormalizedFilter.json +234 -0
  308. package/json-schema/data/Object.json +1642 -32
  309. package/json-schema/data/ObjectCapabilities.json +30 -12
  310. package/json-schema/data/Query.json +246 -262
  311. package/json-schema/data/RangeOperator.json +26 -0
  312. package/json-schema/data/ScriptValidation.json +33 -2
  313. package/json-schema/data/SearchConfig.json +36 -0
  314. package/json-schema/data/SelectOption.json +4 -2
  315. package/json-schema/data/StateMachineValidation.json +33 -2
  316. package/json-schema/data/UniquenessValidation.json +33 -2
  317. package/json-schema/data/ValidationRule.json +693 -46
  318. package/json-schema/data/VectorConfig.json +51 -0
  319. package/json-schema/hub/BillOfMaterials.json +70 -0
  320. package/json-schema/hub/ComposerRequest.json +86 -0
  321. package/json-schema/hub/ComposerResponse.json +483 -0
  322. package/json-schema/hub/ConflictReport.json +53 -0
  323. package/json-schema/hub/DependencyRequirement.json +36 -0
  324. package/json-schema/hub/DeploymentTarget.json +38 -0
  325. package/json-schema/hub/HubSpace.json +279 -0
  326. package/json-schema/{system → hub}/License.json +11 -3
  327. package/json-schema/hub/MarketplacePlugin.json +141 -0
  328. package/json-schema/hub/PluginAuthor.json +26 -0
  329. package/json-schema/hub/PluginPricing.json +43 -0
  330. package/json-schema/hub/SpaceSubscription.json +77 -0
  331. package/json-schema/hub/SubscriptionStatus.json +16 -0
  332. package/json-schema/{system → hub}/Tenant.json +3 -5
  333. package/json-schema/permission/CriteriaSharingRule.json +82 -0
  334. package/json-schema/{data → permission}/OWDModel.json +2 -1
  335. package/json-schema/{data → permission}/ObjectPermission.json +15 -0
  336. package/json-schema/permission/OwnerSharingRule.json +102 -0
  337. package/json-schema/{data → permission}/PermissionSet.json +18 -1
  338. package/json-schema/permission/RLSConfig.json +59 -0
  339. package/json-schema/permission/RLSEvaluationResult.json +40 -0
  340. package/json-schema/{data/TriggerAction.json → permission/RLSOperation.json} +5 -3
  341. package/json-schema/permission/RLSUserContext.json +51 -0
  342. package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
  343. package/json-schema/permission/ShareRecipientType.json +16 -0
  344. package/json-schema/{data → permission}/SharingLevel.json +2 -1
  345. package/json-schema/permission/SharingRule.json +182 -0
  346. package/json-schema/{data → permission}/SharingRuleType.json +1 -3
  347. package/json-schema/{system → permission}/Territory.json +3 -1
  348. package/json-schema/shared/EventName.json +12 -0
  349. package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
  350. package/json-schema/shared/SystemIdentifier.json +12 -0
  351. package/json-schema/system/Datasource.json +35 -0
  352. package/json-schema/system/DriverCapabilities.json +10 -0
  353. package/json-schema/system/DriverInterface.json +10 -0
  354. package/json-schema/system/DriverOptions.json +11 -0
  355. package/json-schema/system/Event.json +3 -2
  356. package/json-schema/system/FeatureFlag.json +87 -0
  357. package/json-schema/system/FeatureStrategy.json +16 -0
  358. package/json-schema/system/FileMetadata.json +43 -0
  359. package/json-schema/system/KernelContext.json +62 -0
  360. package/json-schema/system/LogEntry.json +63 -0
  361. package/json-schema/system/LogFormat.json +15 -0
  362. package/json-schema/system/LogLevel.json +17 -0
  363. package/json-schema/system/LoggerConfig.json +70 -0
  364. package/json-schema/system/Manifest.json +80 -0
  365. package/json-schema/system/MongoConfig.json +82 -0
  366. package/json-schema/system/PluginContext.json +8 -1
  367. package/json-schema/system/PostgresConfig.json +98 -0
  368. package/json-schema/system/RuntimeMode.json +16 -0
  369. package/json-schema/system/ScopedStorageConfig.json +54 -0
  370. package/json-schema/system/StorageAdapterType.json +17 -0
  371. package/json-schema/system/StorageScope.json +18 -0
  372. package/json-schema/ui/Action.json +25 -4
  373. package/json-schema/ui/ActionParam.json +12 -2
  374. package/json-schema/ui/App.json +18 -7
  375. package/json-schema/ui/ChartType.json +9 -1
  376. package/json-schema/ui/Dashboard.json +9 -1
  377. package/json-schema/ui/DashboardNavItem.json +3 -1
  378. package/json-schema/ui/DashboardWidget.json +9 -1
  379. package/json-schema/ui/FieldWidgetProps.json +92 -4
  380. package/json-schema/ui/FormView.json +4 -1
  381. package/json-schema/ui/GroupNavItem.json +3 -1
  382. package/json-schema/ui/ListView.json +7 -1
  383. package/json-schema/ui/NavigationItem.json +15 -5
  384. package/json-schema/ui/ObjectNavItem.json +3 -1
  385. package/json-schema/ui/Page.json +36 -4
  386. package/json-schema/ui/PageCardProps.json +32 -0
  387. package/json-schema/ui/PageComponent.json +33 -3
  388. package/json-schema/ui/PageComponentType.json +32 -0
  389. package/json-schema/ui/PageHeaderProps.json +39 -0
  390. package/json-schema/ui/PageNavItem.json +3 -1
  391. package/json-schema/ui/PageRegion.json +33 -3
  392. package/json-schema/ui/PageTabsProps.json +55 -0
  393. package/json-schema/ui/RecordDetailsProps.json +37 -0
  394. package/json-schema/ui/RecordHighlightsProps.json +24 -0
  395. package/json-schema/ui/RecordRelatedListProps.json +39 -0
  396. package/json-schema/ui/UrlNavItem.json +3 -1
  397. package/json-schema/ui/View.json +22 -4
  398. package/json-schema/ui/WidgetEvent.json +42 -0
  399. package/json-schema/ui/WidgetLifecycle.json +40 -0
  400. package/json-schema/ui/WidgetManifest.json +262 -0
  401. package/json-schema/ui/WidgetProperty.json +58 -0
  402. package/llms.txt +182 -0
  403. package/package.json +38 -16
  404. package/prompts/README.md +18 -0
  405. package/prompts/architecture.md +81 -0
  406. package/prompts/create-new-project.md +85 -0
  407. package/prompts/implement-objectai.md +39 -0
  408. package/prompts/implement-objectos.md +48 -0
  409. package/prompts/implement-objectql.md +39 -0
  410. package/prompts/implement-objectui.md +46 -0
  411. package/prompts/instructions.md +91 -0
  412. package/dist/ai/workflow-automation.zod.d.ts.map +0 -1
  413. package/dist/data/flow.zod.d.ts.map +0 -1
  414. package/dist/data/permission.zod.d.ts.map +0 -1
  415. package/dist/data/sharing.zod.d.ts +0 -63
  416. package/dist/data/sharing.zod.d.ts.map +0 -1
  417. package/dist/data/sharing.zod.js +0 -57
  418. package/dist/data/trigger.zod.d.ts +0 -354
  419. package/dist/data/trigger.zod.d.ts.map +0 -1
  420. package/dist/data/trigger.zod.js +0 -195
  421. package/dist/data/workflow.zod.d.ts +0 -986
  422. package/dist/data/workflow.zod.d.ts.map +0 -1
  423. package/dist/system/api.zod.d.ts.map +0 -1
  424. package/dist/system/auth-protocol.d.ts.map +0 -1
  425. package/dist/system/auth.zod.d.ts.map +0 -1
  426. package/dist/system/discovery.zod.d.ts.map +0 -1
  427. package/dist/system/identity.zod.d.ts.map +0 -1
  428. package/dist/system/license.zod.d.ts.map +0 -1
  429. package/dist/system/organization.zod.d.ts.map +0 -1
  430. package/dist/system/policy.zod.d.ts.map +0 -1
  431. package/dist/system/realtime.zod.d.ts.map +0 -1
  432. package/dist/system/role.zod.d.ts.map +0 -1
  433. package/dist/system/tenant.zod.d.ts.map +0 -1
  434. package/dist/system/territory.zod.d.ts.map +0 -1
  435. package/dist/system/webhook.zod.d.ts.map +0 -1
  436. package/json-schema/README.md +0 -127
  437. package/json-schema/data/FieldMapping.json +0 -83
  438. package/json-schema/data/FilterNode.json +0 -52
  439. package/json-schema/data/FilterOperator.json +0 -26
  440. package/json-schema/data/Mapping.json +0 -598
  441. package/json-schema/data/SharingRule.json +0 -58
  442. package/json-schema/data/TransformType.json +0 -18
  443. package/json-schema/data/Trigger.json +0 -73
  444. package/json-schema/data/TriggerContext.json +0 -61
  445. /package/dist/{system → api}/realtime.zod.js +0 -0
  446. /package/dist/{system/auth.zod.js → auth/config.zod.js} +0 -0
  447. /package/dist/{system → auth}/identity.zod.js +0 -0
  448. /package/dist/{system → auth}/organization.zod.js +0 -0
  449. /package/dist/{system → auth}/policy.zod.js +0 -0
  450. /package/dist/{system/auth-protocol.js → auth/protocol.js} +0 -0
  451. /package/json-schema/{system → api}/ApiCapabilities.json +0 -0
  452. /package/json-schema/{system → api}/ApiMapping.json +0 -0
  453. /package/json-schema/{system → api}/Presence.json +0 -0
  454. /package/json-schema/{system → api}/PresenceStatus.json +0 -0
  455. /package/json-schema/{system → api}/RateLimit.json +0 -0
  456. /package/json-schema/{system → api}/RealtimeAction.json +0 -0
  457. /package/json-schema/{system → api}/RealtimeEvent.json +0 -0
  458. /package/json-schema/{system → api}/RealtimeEventType.json +0 -0
  459. /package/json-schema/{system → api}/Subscription.json +0 -0
  460. /package/json-schema/{system → api}/SubscriptionEvent.json +0 -0
  461. /package/json-schema/{system → api}/TransportProtocol.json +0 -0
  462. /package/json-schema/{system → auth}/Account.json +0 -0
  463. /package/json-schema/{system → auth}/AccountLinkingConfig.json +0 -0
  464. /package/json-schema/{system → auth}/AuditPolicy.json +0 -0
  465. /package/json-schema/{system → auth}/AuthConfig.json +0 -0
  466. /package/json-schema/{system → auth}/AuthPluginConfig.json +0 -0
  467. /package/json-schema/{system → auth}/AuthStrategy.json +0 -0
  468. /package/json-schema/{system → auth}/CSRFConfig.json +0 -0
  469. /package/json-schema/{system → auth}/DatabaseAdapter.json +0 -0
  470. /package/json-schema/{system → auth}/DatabaseMapping.json +0 -0
  471. /package/json-schema/{system → auth}/EmailPasswordConfig.json +0 -0
  472. /package/json-schema/{system → auth}/EnterpriseAuthConfig.json +0 -0
  473. /package/json-schema/{system → auth}/Invitation.json +0 -0
  474. /package/json-schema/{system → auth}/InvitationStatus.json +0 -0
  475. /package/json-schema/{system → auth}/LDAPConfig.json +0 -0
  476. /package/json-schema/{system → auth}/MagicLinkConfig.json +0 -0
  477. /package/json-schema/{system → auth}/Member.json +0 -0
  478. /package/json-schema/{system → auth}/NetworkPolicy.json +0 -0
  479. /package/json-schema/{system → auth}/OAuthProvider.json +0 -0
  480. /package/json-schema/{system → auth}/OIDCConfig.json +0 -0
  481. /package/json-schema/{system → auth}/Organization.json +0 -0
  482. /package/json-schema/{system → auth}/PasskeyConfig.json +0 -0
  483. /package/json-schema/{system → auth}/PasswordPolicy.json +0 -0
  484. /package/json-schema/{system → auth}/Policy.json +0 -0
  485. /package/json-schema/{system → auth}/RateLimitConfig.json +0 -0
  486. /package/json-schema/{system → auth}/SAMLConfig.json +0 -0
  487. /package/json-schema/{system → auth}/Session.json +0 -0
  488. /package/json-schema/{system → auth}/SessionConfig.json +0 -0
  489. /package/json-schema/{system → auth}/SessionPolicy.json +0 -0
  490. /package/json-schema/{system → auth}/StandardAuthProvider.json +0 -0
  491. /package/json-schema/{system → auth}/TwoFactorConfig.json +0 -0
  492. /package/json-schema/{system → auth}/User.json +0 -0
  493. /package/json-schema/{system → auth}/UserFieldMapping.json +0 -0
  494. /package/json-schema/{system → auth}/VerificationToken.json +0 -0
  495. /package/json-schema/{data → automation}/CustomScriptAction.json +0 -0
  496. /package/json-schema/{data → automation}/EmailAlertAction.json +0 -0
  497. /package/json-schema/{data → automation}/FieldUpdateAction.json +0 -0
  498. /package/json-schema/{data → automation}/FlowNode.json +0 -0
  499. /package/json-schema/{data → automation}/FlowNodeAction.json +0 -0
  500. /package/json-schema/{data → automation}/FlowVariable.json +0 -0
  501. /package/json-schema/{data → automation}/HttpCallAction.json +0 -0
  502. /package/json-schema/{data → automation}/PushNotificationAction.json +0 -0
  503. /package/json-schema/{data → automation}/SlackMessageAction.json +0 -0
  504. /package/json-schema/{data → automation}/SmsNotificationAction.json +0 -0
  505. /package/json-schema/{data → automation}/TaskCreationAction.json +0 -0
  506. /package/json-schema/{data → automation}/TeamsMessageAction.json +0 -0
  507. /package/json-schema/{data → automation}/WebhookTriggerAction.json +0 -0
  508. /package/json-schema/{system → automation}/WebhookTriggerType.json +0 -0
  509. /package/json-schema/{data → automation}/WorkflowAction.json +0 -0
  510. /package/json-schema/{data → automation}/WorkflowTriggerType.json +0 -0
  511. /package/json-schema/{system → hub}/DatabaseLevelIsolationStrategy.json +0 -0
  512. /package/json-schema/{system → hub}/Feature.json +0 -0
  513. /package/json-schema/{system → hub}/LevelIsolationStrategySchema.json +0 -0
  514. /package/json-schema/{system → hub}/MetricType.json +0 -0
  515. /package/json-schema/{system → hub}/Plan.json +0 -0
  516. /package/json-schema/{system → hub}/RowLevelIsolationStrategy.json +0 -0
  517. /package/json-schema/{system → hub}/TenantIsolationConfig.json +0 -0
  518. /package/json-schema/{system → hub}/TenantIsolationLevel.json +0 -0
  519. /package/json-schema/{system → hub}/TenantQuota.json +0 -0
  520. /package/json-schema/{system → hub}/TenantSecurityPolicy.json +0 -0
  521. /package/json-schema/{data → permission}/FieldPermission.json +0 -0
  522. /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
  523. /package/json-schema/{system → permission}/TerritoryType.json +0 -0
@@ -0,0 +1,1284 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Connector Registry Protocol
4
+ *
5
+ * Inspired by Zapier, n8n, and Workato connector architectures.
6
+ *
7
+ * Connectors are reusable components that provide pre-built integrations with
8
+ * external systems (SaaS, databases, APIs, etc.).
9
+ *
10
+ * ## Use Cases
11
+ *
12
+ * 1. **SaaS Integration**
13
+ * - Connect to Salesforce, HubSpot, Stripe, etc.
14
+ * - Pre-built authentication and API clients
15
+ * - Standard operations (CRUD, search, etc.)
16
+ *
17
+ * 2. **Database Connectivity**
18
+ * - Connect to PostgreSQL, MySQL, MongoDB, etc.
19
+ * - Query builders and connection pooling
20
+ * - Schema introspection
21
+ *
22
+ * 3. **Third-Party Services**
23
+ * - Payment processors (Stripe, PayPal)
24
+ * - Communication (Twilio, SendGrid, Slack)
25
+ * - Storage (S3, Google Drive, Dropbox)
26
+ *
27
+ * @see https://zapier.com/developer/documentation/v2/
28
+ * @see https://docs.n8n.io/integrations/creating-nodes/
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * const stripeConnector: Connector = {
33
+ * id: 'stripe',
34
+ * name: 'Stripe',
35
+ * category: 'payment',
36
+ * authentication: {
37
+ * type: 'apiKey',
38
+ * fields: [{ name: 'api_key', label: 'API Key', type: 'password' }]
39
+ * },
40
+ * operations: [
41
+ * { id: 'create_customer', name: 'Create Customer', type: 'write' }
42
+ * ]
43
+ * }
44
+ * ```
45
+ */
46
+ /**
47
+ * Connector Category
48
+ */
49
+ export declare const ConnectorCategorySchema: z.ZodEnum<["crm", "payment", "communication", "storage", "analytics", "database", "marketing", "accounting", "hr", "productivity", "ecommerce", "support", "devtools", "social", "other"]>;
50
+ export type ConnectorCategory = z.infer<typeof ConnectorCategorySchema>;
51
+ /**
52
+ * Authentication Type
53
+ */
54
+ export declare const AuthenticationTypeSchema: z.ZodEnum<["none", "apiKey", "basic", "bearer", "oauth1", "oauth2", "custom"]>;
55
+ export type AuthenticationType = z.infer<typeof AuthenticationTypeSchema>;
56
+ /**
57
+ * Authentication Field Schema
58
+ */
59
+ export declare const AuthFieldSchema: z.ZodObject<{
60
+ /**
61
+ * Field name (machine name)
62
+ */
63
+ name: z.ZodString;
64
+ /**
65
+ * Field label
66
+ */
67
+ label: z.ZodString;
68
+ /**
69
+ * Field type
70
+ */
71
+ type: z.ZodDefault<z.ZodEnum<["text", "password", "url", "select"]>>;
72
+ /**
73
+ * Field description
74
+ */
75
+ description: z.ZodOptional<z.ZodString>;
76
+ /**
77
+ * Whether field is required
78
+ */
79
+ required: z.ZodDefault<z.ZodBoolean>;
80
+ /**
81
+ * Default value
82
+ */
83
+ default: z.ZodOptional<z.ZodString>;
84
+ /**
85
+ * Options for select fields
86
+ */
87
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ label: z.ZodString;
89
+ value: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ value: string;
92
+ label: string;
93
+ }, {
94
+ value: string;
95
+ label: string;
96
+ }>, "many">>;
97
+ /**
98
+ * Placeholder text
99
+ */
100
+ placeholder: z.ZodOptional<z.ZodString>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "text" | "url" | "password" | "select";
103
+ required: boolean;
104
+ label: string;
105
+ name: string;
106
+ options?: {
107
+ value: string;
108
+ label: string;
109
+ }[] | undefined;
110
+ default?: string | undefined;
111
+ description?: string | undefined;
112
+ placeholder?: string | undefined;
113
+ }, {
114
+ label: string;
115
+ name: string;
116
+ options?: {
117
+ value: string;
118
+ label: string;
119
+ }[] | undefined;
120
+ type?: "text" | "url" | "password" | "select" | undefined;
121
+ required?: boolean | undefined;
122
+ default?: string | undefined;
123
+ description?: string | undefined;
124
+ placeholder?: string | undefined;
125
+ }>;
126
+ export type AuthField = z.infer<typeof AuthFieldSchema>;
127
+ /**
128
+ * OAuth 2.0 Configuration
129
+ */
130
+ export declare const OAuth2ConfigSchema: z.ZodObject<{
131
+ /**
132
+ * Authorization URL
133
+ */
134
+ authorizationUrl: z.ZodString;
135
+ /**
136
+ * Token URL
137
+ */
138
+ tokenUrl: z.ZodString;
139
+ /**
140
+ * Scopes to request
141
+ */
142
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
143
+ /**
144
+ * Client ID field name
145
+ */
146
+ clientIdField: z.ZodDefault<z.ZodString>;
147
+ /**
148
+ * Client secret field name
149
+ */
150
+ clientSecretField: z.ZodDefault<z.ZodString>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ authorizationUrl: string;
153
+ tokenUrl: string;
154
+ clientIdField: string;
155
+ clientSecretField: string;
156
+ scopes?: string[] | undefined;
157
+ }, {
158
+ authorizationUrl: string;
159
+ tokenUrl: string;
160
+ scopes?: string[] | undefined;
161
+ clientIdField?: string | undefined;
162
+ clientSecretField?: string | undefined;
163
+ }>;
164
+ export type OAuth2Config = z.infer<typeof OAuth2ConfigSchema>;
165
+ /**
166
+ * Authentication Configuration
167
+ */
168
+ export declare const AuthenticationSchema: z.ZodObject<{
169
+ /**
170
+ * Authentication type
171
+ */
172
+ type: z.ZodEnum<["none", "apiKey", "basic", "bearer", "oauth1", "oauth2", "custom"]>;
173
+ /**
174
+ * Authentication fields
175
+ * Configuration fields needed for this auth type
176
+ */
177
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
178
+ /**
179
+ * Field name (machine name)
180
+ */
181
+ name: z.ZodString;
182
+ /**
183
+ * Field label
184
+ */
185
+ label: z.ZodString;
186
+ /**
187
+ * Field type
188
+ */
189
+ type: z.ZodDefault<z.ZodEnum<["text", "password", "url", "select"]>>;
190
+ /**
191
+ * Field description
192
+ */
193
+ description: z.ZodOptional<z.ZodString>;
194
+ /**
195
+ * Whether field is required
196
+ */
197
+ required: z.ZodDefault<z.ZodBoolean>;
198
+ /**
199
+ * Default value
200
+ */
201
+ default: z.ZodOptional<z.ZodString>;
202
+ /**
203
+ * Options for select fields
204
+ */
205
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
+ label: z.ZodString;
207
+ value: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ value: string;
210
+ label: string;
211
+ }, {
212
+ value: string;
213
+ label: string;
214
+ }>, "many">>;
215
+ /**
216
+ * Placeholder text
217
+ */
218
+ placeholder: z.ZodOptional<z.ZodString>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ type: "text" | "url" | "password" | "select";
221
+ required: boolean;
222
+ label: string;
223
+ name: string;
224
+ options?: {
225
+ value: string;
226
+ label: string;
227
+ }[] | undefined;
228
+ default?: string | undefined;
229
+ description?: string | undefined;
230
+ placeholder?: string | undefined;
231
+ }, {
232
+ label: string;
233
+ name: string;
234
+ options?: {
235
+ value: string;
236
+ label: string;
237
+ }[] | undefined;
238
+ type?: "text" | "url" | "password" | "select" | undefined;
239
+ required?: boolean | undefined;
240
+ default?: string | undefined;
241
+ description?: string | undefined;
242
+ placeholder?: string | undefined;
243
+ }>, "many">>;
244
+ /**
245
+ * OAuth 2.0 configuration (when type is oauth2)
246
+ */
247
+ oauth2: z.ZodOptional<z.ZodObject<{
248
+ /**
249
+ * Authorization URL
250
+ */
251
+ authorizationUrl: z.ZodString;
252
+ /**
253
+ * Token URL
254
+ */
255
+ tokenUrl: z.ZodString;
256
+ /**
257
+ * Scopes to request
258
+ */
259
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
+ /**
261
+ * Client ID field name
262
+ */
263
+ clientIdField: z.ZodDefault<z.ZodString>;
264
+ /**
265
+ * Client secret field name
266
+ */
267
+ clientSecretField: z.ZodDefault<z.ZodString>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ authorizationUrl: string;
270
+ tokenUrl: string;
271
+ clientIdField: string;
272
+ clientSecretField: string;
273
+ scopes?: string[] | undefined;
274
+ }, {
275
+ authorizationUrl: string;
276
+ tokenUrl: string;
277
+ scopes?: string[] | undefined;
278
+ clientIdField?: string | undefined;
279
+ clientSecretField?: string | undefined;
280
+ }>>;
281
+ /**
282
+ * Test authentication instructions
283
+ */
284
+ test: z.ZodOptional<z.ZodObject<{
285
+ url: z.ZodOptional<z.ZodString>;
286
+ method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ method: "GET" | "POST" | "PUT" | "DELETE";
289
+ url?: string | undefined;
290
+ }, {
291
+ url?: string | undefined;
292
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
293
+ }>>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
296
+ fields?: {
297
+ type: "text" | "url" | "password" | "select";
298
+ required: boolean;
299
+ label: string;
300
+ name: string;
301
+ options?: {
302
+ value: string;
303
+ label: string;
304
+ }[] | undefined;
305
+ default?: string | undefined;
306
+ description?: string | undefined;
307
+ placeholder?: string | undefined;
308
+ }[] | undefined;
309
+ test?: {
310
+ method: "GET" | "POST" | "PUT" | "DELETE";
311
+ url?: string | undefined;
312
+ } | undefined;
313
+ oauth2?: {
314
+ authorizationUrl: string;
315
+ tokenUrl: string;
316
+ clientIdField: string;
317
+ clientSecretField: string;
318
+ scopes?: string[] | undefined;
319
+ } | undefined;
320
+ }, {
321
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
322
+ fields?: {
323
+ label: string;
324
+ name: string;
325
+ options?: {
326
+ value: string;
327
+ label: string;
328
+ }[] | undefined;
329
+ type?: "text" | "url" | "password" | "select" | undefined;
330
+ required?: boolean | undefined;
331
+ default?: string | undefined;
332
+ description?: string | undefined;
333
+ placeholder?: string | undefined;
334
+ }[] | undefined;
335
+ test?: {
336
+ url?: string | undefined;
337
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
338
+ } | undefined;
339
+ oauth2?: {
340
+ authorizationUrl: string;
341
+ tokenUrl: string;
342
+ scopes?: string[] | undefined;
343
+ clientIdField?: string | undefined;
344
+ clientSecretField?: string | undefined;
345
+ } | undefined;
346
+ }>;
347
+ export type Authentication = z.infer<typeof AuthenticationSchema>;
348
+ /**
349
+ * Connector Operation Type
350
+ */
351
+ export declare const OperationTypeSchema: z.ZodEnum<["read", "write", "delete", "search", "trigger", "action"]>;
352
+ export type OperationType = z.infer<typeof OperationTypeSchema>;
353
+ /**
354
+ * Operation Parameter Schema
355
+ */
356
+ export declare const OperationParameterSchema: z.ZodObject<{
357
+ /**
358
+ * Parameter name
359
+ */
360
+ name: z.ZodString;
361
+ /**
362
+ * Parameter label
363
+ */
364
+ label: z.ZodString;
365
+ /**
366
+ * Parameter description
367
+ */
368
+ description: z.ZodOptional<z.ZodString>;
369
+ /**
370
+ * Parameter type
371
+ */
372
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "date", "file"]>;
373
+ /**
374
+ * Whether parameter is required
375
+ */
376
+ required: z.ZodDefault<z.ZodBoolean>;
377
+ /**
378
+ * Default value
379
+ */
380
+ default: z.ZodOptional<z.ZodAny>;
381
+ /**
382
+ * Validation schema
383
+ */
384
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
385
+ /**
386
+ * Dynamic options function
387
+ */
388
+ dynamicOptions: z.ZodOptional<z.ZodString>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
391
+ required: boolean;
392
+ label: string;
393
+ name: string;
394
+ validation?: Record<string, any> | undefined;
395
+ default?: any;
396
+ description?: string | undefined;
397
+ dynamicOptions?: string | undefined;
398
+ }, {
399
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
400
+ label: string;
401
+ name: string;
402
+ validation?: Record<string, any> | undefined;
403
+ required?: boolean | undefined;
404
+ default?: any;
405
+ description?: string | undefined;
406
+ dynamicOptions?: string | undefined;
407
+ }>;
408
+ export type OperationParameter = z.infer<typeof OperationParameterSchema>;
409
+ /**
410
+ * Connector Operation Schema
411
+ */
412
+ export declare const ConnectorOperationSchema: z.ZodObject<{
413
+ /**
414
+ * Operation identifier
415
+ */
416
+ id: z.ZodString;
417
+ /**
418
+ * Operation name
419
+ */
420
+ name: z.ZodString;
421
+ /**
422
+ * Operation description
423
+ */
424
+ description: z.ZodOptional<z.ZodString>;
425
+ /**
426
+ * Operation type
427
+ */
428
+ type: z.ZodEnum<["read", "write", "delete", "search", "trigger", "action"]>;
429
+ /**
430
+ * Input parameters
431
+ */
432
+ inputSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
433
+ /**
434
+ * Parameter name
435
+ */
436
+ name: z.ZodString;
437
+ /**
438
+ * Parameter label
439
+ */
440
+ label: z.ZodString;
441
+ /**
442
+ * Parameter description
443
+ */
444
+ description: z.ZodOptional<z.ZodString>;
445
+ /**
446
+ * Parameter type
447
+ */
448
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "date", "file"]>;
449
+ /**
450
+ * Whether parameter is required
451
+ */
452
+ required: z.ZodDefault<z.ZodBoolean>;
453
+ /**
454
+ * Default value
455
+ */
456
+ default: z.ZodOptional<z.ZodAny>;
457
+ /**
458
+ * Validation schema
459
+ */
460
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
461
+ /**
462
+ * Dynamic options function
463
+ */
464
+ dynamicOptions: z.ZodOptional<z.ZodString>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
467
+ required: boolean;
468
+ label: string;
469
+ name: string;
470
+ validation?: Record<string, any> | undefined;
471
+ default?: any;
472
+ description?: string | undefined;
473
+ dynamicOptions?: string | undefined;
474
+ }, {
475
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
476
+ label: string;
477
+ name: string;
478
+ validation?: Record<string, any> | undefined;
479
+ required?: boolean | undefined;
480
+ default?: any;
481
+ description?: string | undefined;
482
+ dynamicOptions?: string | undefined;
483
+ }>, "many">>;
484
+ /**
485
+ * Output schema
486
+ */
487
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
488
+ /**
489
+ * Sample output for documentation
490
+ */
491
+ sampleOutput: z.ZodOptional<z.ZodAny>;
492
+ /**
493
+ * Whether operation supports pagination
494
+ */
495
+ supportsPagination: z.ZodDefault<z.ZodBoolean>;
496
+ /**
497
+ * Whether operation supports filtering
498
+ */
499
+ supportsFiltering: z.ZodDefault<z.ZodBoolean>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
502
+ name: string;
503
+ id: string;
504
+ supportsPagination: boolean;
505
+ supportsFiltering: boolean;
506
+ description?: string | undefined;
507
+ inputSchema?: {
508
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
509
+ required: boolean;
510
+ label: string;
511
+ name: string;
512
+ validation?: Record<string, any> | undefined;
513
+ default?: any;
514
+ description?: string | undefined;
515
+ dynamicOptions?: string | undefined;
516
+ }[] | undefined;
517
+ outputSchema?: Record<string, any> | undefined;
518
+ sampleOutput?: any;
519
+ }, {
520
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
521
+ name: string;
522
+ id: string;
523
+ description?: string | undefined;
524
+ inputSchema?: {
525
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
526
+ label: string;
527
+ name: string;
528
+ validation?: Record<string, any> | undefined;
529
+ required?: boolean | undefined;
530
+ default?: any;
531
+ description?: string | undefined;
532
+ dynamicOptions?: string | undefined;
533
+ }[] | undefined;
534
+ outputSchema?: Record<string, any> | undefined;
535
+ sampleOutput?: any;
536
+ supportsPagination?: boolean | undefined;
537
+ supportsFiltering?: boolean | undefined;
538
+ }>;
539
+ export type ConnectorOperation = z.infer<typeof ConnectorOperationSchema>;
540
+ /**
541
+ * Connector Trigger Schema
542
+ *
543
+ * Triggers are special operations that watch for events and initiate workflows.
544
+ */
545
+ export declare const ConnectorTriggerSchema: z.ZodObject<{
546
+ /**
547
+ * Trigger identifier
548
+ */
549
+ id: z.ZodString;
550
+ /**
551
+ * Trigger name
552
+ */
553
+ name: z.ZodString;
554
+ /**
555
+ * Trigger description
556
+ */
557
+ description: z.ZodOptional<z.ZodString>;
558
+ /**
559
+ * Trigger type
560
+ */
561
+ type: z.ZodEnum<["webhook", "polling", "stream"]>;
562
+ /**
563
+ * Trigger configuration
564
+ */
565
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
566
+ /**
567
+ * Output schema
568
+ */
569
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
570
+ /**
571
+ * Polling interval (for polling triggers)
572
+ * In milliseconds
573
+ */
574
+ pollingIntervalMs: z.ZodOptional<z.ZodNumber>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ type: "webhook" | "polling" | "stream";
577
+ name: string;
578
+ id: string;
579
+ description?: string | undefined;
580
+ config?: Record<string, any> | undefined;
581
+ outputSchema?: Record<string, any> | undefined;
582
+ pollingIntervalMs?: number | undefined;
583
+ }, {
584
+ type: "webhook" | "polling" | "stream";
585
+ name: string;
586
+ id: string;
587
+ description?: string | undefined;
588
+ config?: Record<string, any> | undefined;
589
+ outputSchema?: Record<string, any> | undefined;
590
+ pollingIntervalMs?: number | undefined;
591
+ }>;
592
+ export type ConnectorTrigger = z.infer<typeof ConnectorTriggerSchema>;
593
+ /**
594
+ * Connector Schema
595
+ *
596
+ * Complete definition of a connector to an external system.
597
+ */
598
+ export declare const ConnectorSchema: z.ZodObject<{
599
+ /**
600
+ * Connector identifier
601
+ * Must be globally unique
602
+ */
603
+ id: z.ZodString;
604
+ /**
605
+ * Connector name
606
+ */
607
+ name: z.ZodString;
608
+ /**
609
+ * Connector description
610
+ */
611
+ description: z.ZodOptional<z.ZodString>;
612
+ /**
613
+ * Connector version (semver)
614
+ */
615
+ version: z.ZodOptional<z.ZodString>;
616
+ /**
617
+ * Connector icon URL or name
618
+ */
619
+ icon: z.ZodOptional<z.ZodString>;
620
+ /**
621
+ * Connector category
622
+ */
623
+ category: z.ZodEnum<["crm", "payment", "communication", "storage", "analytics", "database", "marketing", "accounting", "hr", "productivity", "ecommerce", "support", "devtools", "social", "other"]>;
624
+ /**
625
+ * Base URL for API calls
626
+ */
627
+ baseUrl: z.ZodOptional<z.ZodString>;
628
+ /**
629
+ * Authentication configuration
630
+ */
631
+ authentication: z.ZodObject<{
632
+ /**
633
+ * Authentication type
634
+ */
635
+ type: z.ZodEnum<["none", "apiKey", "basic", "bearer", "oauth1", "oauth2", "custom"]>;
636
+ /**
637
+ * Authentication fields
638
+ * Configuration fields needed for this auth type
639
+ */
640
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ /**
642
+ * Field name (machine name)
643
+ */
644
+ name: z.ZodString;
645
+ /**
646
+ * Field label
647
+ */
648
+ label: z.ZodString;
649
+ /**
650
+ * Field type
651
+ */
652
+ type: z.ZodDefault<z.ZodEnum<["text", "password", "url", "select"]>>;
653
+ /**
654
+ * Field description
655
+ */
656
+ description: z.ZodOptional<z.ZodString>;
657
+ /**
658
+ * Whether field is required
659
+ */
660
+ required: z.ZodDefault<z.ZodBoolean>;
661
+ /**
662
+ * Default value
663
+ */
664
+ default: z.ZodOptional<z.ZodString>;
665
+ /**
666
+ * Options for select fields
667
+ */
668
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
669
+ label: z.ZodString;
670
+ value: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ value: string;
673
+ label: string;
674
+ }, {
675
+ value: string;
676
+ label: string;
677
+ }>, "many">>;
678
+ /**
679
+ * Placeholder text
680
+ */
681
+ placeholder: z.ZodOptional<z.ZodString>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ type: "text" | "url" | "password" | "select";
684
+ required: boolean;
685
+ label: string;
686
+ name: string;
687
+ options?: {
688
+ value: string;
689
+ label: string;
690
+ }[] | undefined;
691
+ default?: string | undefined;
692
+ description?: string | undefined;
693
+ placeholder?: string | undefined;
694
+ }, {
695
+ label: string;
696
+ name: string;
697
+ options?: {
698
+ value: string;
699
+ label: string;
700
+ }[] | undefined;
701
+ type?: "text" | "url" | "password" | "select" | undefined;
702
+ required?: boolean | undefined;
703
+ default?: string | undefined;
704
+ description?: string | undefined;
705
+ placeholder?: string | undefined;
706
+ }>, "many">>;
707
+ /**
708
+ * OAuth 2.0 configuration (when type is oauth2)
709
+ */
710
+ oauth2: z.ZodOptional<z.ZodObject<{
711
+ /**
712
+ * Authorization URL
713
+ */
714
+ authorizationUrl: z.ZodString;
715
+ /**
716
+ * Token URL
717
+ */
718
+ tokenUrl: z.ZodString;
719
+ /**
720
+ * Scopes to request
721
+ */
722
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
+ /**
724
+ * Client ID field name
725
+ */
726
+ clientIdField: z.ZodDefault<z.ZodString>;
727
+ /**
728
+ * Client secret field name
729
+ */
730
+ clientSecretField: z.ZodDefault<z.ZodString>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ authorizationUrl: string;
733
+ tokenUrl: string;
734
+ clientIdField: string;
735
+ clientSecretField: string;
736
+ scopes?: string[] | undefined;
737
+ }, {
738
+ authorizationUrl: string;
739
+ tokenUrl: string;
740
+ scopes?: string[] | undefined;
741
+ clientIdField?: string | undefined;
742
+ clientSecretField?: string | undefined;
743
+ }>>;
744
+ /**
745
+ * Test authentication instructions
746
+ */
747
+ test: z.ZodOptional<z.ZodObject<{
748
+ url: z.ZodOptional<z.ZodString>;
749
+ method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ method: "GET" | "POST" | "PUT" | "DELETE";
752
+ url?: string | undefined;
753
+ }, {
754
+ url?: string | undefined;
755
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
756
+ }>>;
757
+ }, "strip", z.ZodTypeAny, {
758
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
759
+ fields?: {
760
+ type: "text" | "url" | "password" | "select";
761
+ required: boolean;
762
+ label: string;
763
+ name: string;
764
+ options?: {
765
+ value: string;
766
+ label: string;
767
+ }[] | undefined;
768
+ default?: string | undefined;
769
+ description?: string | undefined;
770
+ placeholder?: string | undefined;
771
+ }[] | undefined;
772
+ test?: {
773
+ method: "GET" | "POST" | "PUT" | "DELETE";
774
+ url?: string | undefined;
775
+ } | undefined;
776
+ oauth2?: {
777
+ authorizationUrl: string;
778
+ tokenUrl: string;
779
+ clientIdField: string;
780
+ clientSecretField: string;
781
+ scopes?: string[] | undefined;
782
+ } | undefined;
783
+ }, {
784
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
785
+ fields?: {
786
+ label: string;
787
+ name: string;
788
+ options?: {
789
+ value: string;
790
+ label: string;
791
+ }[] | undefined;
792
+ type?: "text" | "url" | "password" | "select" | undefined;
793
+ required?: boolean | undefined;
794
+ default?: string | undefined;
795
+ description?: string | undefined;
796
+ placeholder?: string | undefined;
797
+ }[] | undefined;
798
+ test?: {
799
+ url?: string | undefined;
800
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
801
+ } | undefined;
802
+ oauth2?: {
803
+ authorizationUrl: string;
804
+ tokenUrl: string;
805
+ scopes?: string[] | undefined;
806
+ clientIdField?: string | undefined;
807
+ clientSecretField?: string | undefined;
808
+ } | undefined;
809
+ }>;
810
+ /**
811
+ * Available operations
812
+ */
813
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
814
+ /**
815
+ * Operation identifier
816
+ */
817
+ id: z.ZodString;
818
+ /**
819
+ * Operation name
820
+ */
821
+ name: z.ZodString;
822
+ /**
823
+ * Operation description
824
+ */
825
+ description: z.ZodOptional<z.ZodString>;
826
+ /**
827
+ * Operation type
828
+ */
829
+ type: z.ZodEnum<["read", "write", "delete", "search", "trigger", "action"]>;
830
+ /**
831
+ * Input parameters
832
+ */
833
+ inputSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
834
+ /**
835
+ * Parameter name
836
+ */
837
+ name: z.ZodString;
838
+ /**
839
+ * Parameter label
840
+ */
841
+ label: z.ZodString;
842
+ /**
843
+ * Parameter description
844
+ */
845
+ description: z.ZodOptional<z.ZodString>;
846
+ /**
847
+ * Parameter type
848
+ */
849
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "date", "file"]>;
850
+ /**
851
+ * Whether parameter is required
852
+ */
853
+ required: z.ZodDefault<z.ZodBoolean>;
854
+ /**
855
+ * Default value
856
+ */
857
+ default: z.ZodOptional<z.ZodAny>;
858
+ /**
859
+ * Validation schema
860
+ */
861
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
862
+ /**
863
+ * Dynamic options function
864
+ */
865
+ dynamicOptions: z.ZodOptional<z.ZodString>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
868
+ required: boolean;
869
+ label: string;
870
+ name: string;
871
+ validation?: Record<string, any> | undefined;
872
+ default?: any;
873
+ description?: string | undefined;
874
+ dynamicOptions?: string | undefined;
875
+ }, {
876
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
877
+ label: string;
878
+ name: string;
879
+ validation?: Record<string, any> | undefined;
880
+ required?: boolean | undefined;
881
+ default?: any;
882
+ description?: string | undefined;
883
+ dynamicOptions?: string | undefined;
884
+ }>, "many">>;
885
+ /**
886
+ * Output schema
887
+ */
888
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
889
+ /**
890
+ * Sample output for documentation
891
+ */
892
+ sampleOutput: z.ZodOptional<z.ZodAny>;
893
+ /**
894
+ * Whether operation supports pagination
895
+ */
896
+ supportsPagination: z.ZodDefault<z.ZodBoolean>;
897
+ /**
898
+ * Whether operation supports filtering
899
+ */
900
+ supportsFiltering: z.ZodDefault<z.ZodBoolean>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
903
+ name: string;
904
+ id: string;
905
+ supportsPagination: boolean;
906
+ supportsFiltering: boolean;
907
+ description?: string | undefined;
908
+ inputSchema?: {
909
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
910
+ required: boolean;
911
+ label: string;
912
+ name: string;
913
+ validation?: Record<string, any> | undefined;
914
+ default?: any;
915
+ description?: string | undefined;
916
+ dynamicOptions?: string | undefined;
917
+ }[] | undefined;
918
+ outputSchema?: Record<string, any> | undefined;
919
+ sampleOutput?: any;
920
+ }, {
921
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
922
+ name: string;
923
+ id: string;
924
+ description?: string | undefined;
925
+ inputSchema?: {
926
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
927
+ label: string;
928
+ name: string;
929
+ validation?: Record<string, any> | undefined;
930
+ required?: boolean | undefined;
931
+ default?: any;
932
+ description?: string | undefined;
933
+ dynamicOptions?: string | undefined;
934
+ }[] | undefined;
935
+ outputSchema?: Record<string, any> | undefined;
936
+ sampleOutput?: any;
937
+ supportsPagination?: boolean | undefined;
938
+ supportsFiltering?: boolean | undefined;
939
+ }>, "many">>;
940
+ /**
941
+ * Available triggers
942
+ */
943
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
944
+ /**
945
+ * Trigger identifier
946
+ */
947
+ id: z.ZodString;
948
+ /**
949
+ * Trigger name
950
+ */
951
+ name: z.ZodString;
952
+ /**
953
+ * Trigger description
954
+ */
955
+ description: z.ZodOptional<z.ZodString>;
956
+ /**
957
+ * Trigger type
958
+ */
959
+ type: z.ZodEnum<["webhook", "polling", "stream"]>;
960
+ /**
961
+ * Trigger configuration
962
+ */
963
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
964
+ /**
965
+ * Output schema
966
+ */
967
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
968
+ /**
969
+ * Polling interval (for polling triggers)
970
+ * In milliseconds
971
+ */
972
+ pollingIntervalMs: z.ZodOptional<z.ZodNumber>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ type: "webhook" | "polling" | "stream";
975
+ name: string;
976
+ id: string;
977
+ description?: string | undefined;
978
+ config?: Record<string, any> | undefined;
979
+ outputSchema?: Record<string, any> | undefined;
980
+ pollingIntervalMs?: number | undefined;
981
+ }, {
982
+ type: "webhook" | "polling" | "stream";
983
+ name: string;
984
+ id: string;
985
+ description?: string | undefined;
986
+ config?: Record<string, any> | undefined;
987
+ outputSchema?: Record<string, any> | undefined;
988
+ pollingIntervalMs?: number | undefined;
989
+ }>, "many">>;
990
+ /**
991
+ * Rate limiting information
992
+ */
993
+ rateLimit: z.ZodOptional<z.ZodObject<{
994
+ requestsPerSecond: z.ZodOptional<z.ZodNumber>;
995
+ requestsPerMinute: z.ZodOptional<z.ZodNumber>;
996
+ requestsPerHour: z.ZodOptional<z.ZodNumber>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ requestsPerMinute?: number | undefined;
999
+ requestsPerSecond?: number | undefined;
1000
+ requestsPerHour?: number | undefined;
1001
+ }, {
1002
+ requestsPerMinute?: number | undefined;
1003
+ requestsPerSecond?: number | undefined;
1004
+ requestsPerHour?: number | undefined;
1005
+ }>>;
1006
+ /**
1007
+ * Connector author
1008
+ */
1009
+ author: z.ZodOptional<z.ZodString>;
1010
+ /**
1011
+ * Documentation URL
1012
+ */
1013
+ documentation: z.ZodOptional<z.ZodString>;
1014
+ /**
1015
+ * Homepage URL
1016
+ */
1017
+ homepage: z.ZodOptional<z.ZodString>;
1018
+ /**
1019
+ * License
1020
+ */
1021
+ license: z.ZodOptional<z.ZodString>;
1022
+ /**
1023
+ * Tags for discovery
1024
+ */
1025
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1026
+ /**
1027
+ * Whether connector is verified/certified
1028
+ */
1029
+ verified: z.ZodDefault<z.ZodBoolean>;
1030
+ /**
1031
+ * Custom metadata
1032
+ */
1033
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ name: string;
1036
+ id: string;
1037
+ category: "database" | "storage" | "other" | "analytics" | "crm" | "payment" | "communication" | "marketing" | "accounting" | "hr" | "productivity" | "ecommerce" | "support" | "devtools" | "social";
1038
+ verified: boolean;
1039
+ authentication: {
1040
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
1041
+ fields?: {
1042
+ type: "text" | "url" | "password" | "select";
1043
+ required: boolean;
1044
+ label: string;
1045
+ name: string;
1046
+ options?: {
1047
+ value: string;
1048
+ label: string;
1049
+ }[] | undefined;
1050
+ default?: string | undefined;
1051
+ description?: string | undefined;
1052
+ placeholder?: string | undefined;
1053
+ }[] | undefined;
1054
+ test?: {
1055
+ method: "GET" | "POST" | "PUT" | "DELETE";
1056
+ url?: string | undefined;
1057
+ } | undefined;
1058
+ oauth2?: {
1059
+ authorizationUrl: string;
1060
+ tokenUrl: string;
1061
+ clientIdField: string;
1062
+ clientSecretField: string;
1063
+ scopes?: string[] | undefined;
1064
+ } | undefined;
1065
+ };
1066
+ tags?: string[] | undefined;
1067
+ description?: string | undefined;
1068
+ icon?: string | undefined;
1069
+ version?: string | undefined;
1070
+ author?: string | undefined;
1071
+ documentation?: string | undefined;
1072
+ license?: string | undefined;
1073
+ metadata?: Record<string, any> | undefined;
1074
+ baseUrl?: string | undefined;
1075
+ rateLimit?: {
1076
+ requestsPerMinute?: number | undefined;
1077
+ requestsPerSecond?: number | undefined;
1078
+ requestsPerHour?: number | undefined;
1079
+ } | undefined;
1080
+ homepage?: string | undefined;
1081
+ operations?: {
1082
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
1083
+ name: string;
1084
+ id: string;
1085
+ supportsPagination: boolean;
1086
+ supportsFiltering: boolean;
1087
+ description?: string | undefined;
1088
+ inputSchema?: {
1089
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
1090
+ required: boolean;
1091
+ label: string;
1092
+ name: string;
1093
+ validation?: Record<string, any> | undefined;
1094
+ default?: any;
1095
+ description?: string | undefined;
1096
+ dynamicOptions?: string | undefined;
1097
+ }[] | undefined;
1098
+ outputSchema?: Record<string, any> | undefined;
1099
+ sampleOutput?: any;
1100
+ }[] | undefined;
1101
+ triggers?: {
1102
+ type: "webhook" | "polling" | "stream";
1103
+ name: string;
1104
+ id: string;
1105
+ description?: string | undefined;
1106
+ config?: Record<string, any> | undefined;
1107
+ outputSchema?: Record<string, any> | undefined;
1108
+ pollingIntervalMs?: number | undefined;
1109
+ }[] | undefined;
1110
+ }, {
1111
+ name: string;
1112
+ id: string;
1113
+ category: "database" | "storage" | "other" | "analytics" | "crm" | "payment" | "communication" | "marketing" | "accounting" | "hr" | "productivity" | "ecommerce" | "support" | "devtools" | "social";
1114
+ authentication: {
1115
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
1116
+ fields?: {
1117
+ label: string;
1118
+ name: string;
1119
+ options?: {
1120
+ value: string;
1121
+ label: string;
1122
+ }[] | undefined;
1123
+ type?: "text" | "url" | "password" | "select" | undefined;
1124
+ required?: boolean | undefined;
1125
+ default?: string | undefined;
1126
+ description?: string | undefined;
1127
+ placeholder?: string | undefined;
1128
+ }[] | undefined;
1129
+ test?: {
1130
+ url?: string | undefined;
1131
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
1132
+ } | undefined;
1133
+ oauth2?: {
1134
+ authorizationUrl: string;
1135
+ tokenUrl: string;
1136
+ scopes?: string[] | undefined;
1137
+ clientIdField?: string | undefined;
1138
+ clientSecretField?: string | undefined;
1139
+ } | undefined;
1140
+ };
1141
+ tags?: string[] | undefined;
1142
+ description?: string | undefined;
1143
+ icon?: string | undefined;
1144
+ version?: string | undefined;
1145
+ author?: string | undefined;
1146
+ documentation?: string | undefined;
1147
+ license?: string | undefined;
1148
+ metadata?: Record<string, any> | undefined;
1149
+ baseUrl?: string | undefined;
1150
+ rateLimit?: {
1151
+ requestsPerMinute?: number | undefined;
1152
+ requestsPerSecond?: number | undefined;
1153
+ requestsPerHour?: number | undefined;
1154
+ } | undefined;
1155
+ homepage?: string | undefined;
1156
+ verified?: boolean | undefined;
1157
+ operations?: {
1158
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
1159
+ name: string;
1160
+ id: string;
1161
+ description?: string | undefined;
1162
+ inputSchema?: {
1163
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
1164
+ label: string;
1165
+ name: string;
1166
+ validation?: Record<string, any> | undefined;
1167
+ required?: boolean | undefined;
1168
+ default?: any;
1169
+ description?: string | undefined;
1170
+ dynamicOptions?: string | undefined;
1171
+ }[] | undefined;
1172
+ outputSchema?: Record<string, any> | undefined;
1173
+ sampleOutput?: any;
1174
+ supportsPagination?: boolean | undefined;
1175
+ supportsFiltering?: boolean | undefined;
1176
+ }[] | undefined;
1177
+ triggers?: {
1178
+ type: "webhook" | "polling" | "stream";
1179
+ name: string;
1180
+ id: string;
1181
+ description?: string | undefined;
1182
+ config?: Record<string, any> | undefined;
1183
+ outputSchema?: Record<string, any> | undefined;
1184
+ pollingIntervalMs?: number | undefined;
1185
+ }[] | undefined;
1186
+ }>;
1187
+ export type Connector = z.infer<typeof ConnectorSchema>;
1188
+ /**
1189
+ * Connector Instance Schema
1190
+ *
1191
+ * A configured instance of a connector with credentials.
1192
+ */
1193
+ export declare const ConnectorInstanceSchema: z.ZodObject<{
1194
+ /**
1195
+ * Instance ID
1196
+ */
1197
+ id: z.ZodString;
1198
+ /**
1199
+ * Connector ID this instance uses
1200
+ */
1201
+ connectorId: z.ZodString;
1202
+ /**
1203
+ * Instance name
1204
+ */
1205
+ name: z.ZodString;
1206
+ /**
1207
+ * Instance description
1208
+ */
1209
+ description: z.ZodOptional<z.ZodString>;
1210
+ /**
1211
+ * Authentication credentials (encrypted)
1212
+ */
1213
+ credentials: z.ZodRecord<z.ZodString, z.ZodAny>;
1214
+ /**
1215
+ * Additional configuration
1216
+ */
1217
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1218
+ /**
1219
+ * Whether instance is active
1220
+ */
1221
+ active: z.ZodDefault<z.ZodBoolean>;
1222
+ /**
1223
+ * Created timestamp
1224
+ */
1225
+ createdAt: z.ZodOptional<z.ZodString>;
1226
+ /**
1227
+ * Last tested timestamp
1228
+ */
1229
+ lastTestedAt: z.ZodOptional<z.ZodString>;
1230
+ /**
1231
+ * Test status
1232
+ */
1233
+ testStatus: z.ZodDefault<z.ZodEnum<["unknown", "success", "failed"]>>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ name: string;
1236
+ active: boolean;
1237
+ id: string;
1238
+ credentials: Record<string, any>;
1239
+ connectorId: string;
1240
+ testStatus: "unknown" | "success" | "failed";
1241
+ description?: string | undefined;
1242
+ config?: Record<string, any> | undefined;
1243
+ createdAt?: string | undefined;
1244
+ lastTestedAt?: string | undefined;
1245
+ }, {
1246
+ name: string;
1247
+ id: string;
1248
+ credentials: Record<string, any>;
1249
+ connectorId: string;
1250
+ description?: string | undefined;
1251
+ active?: boolean | undefined;
1252
+ config?: Record<string, any> | undefined;
1253
+ createdAt?: string | undefined;
1254
+ lastTestedAt?: string | undefined;
1255
+ testStatus?: "unknown" | "success" | "failed" | undefined;
1256
+ }>;
1257
+ export type ConnectorInstance = z.infer<typeof ConnectorInstanceSchema>;
1258
+ /**
1259
+ * Helper factory for creating connectors
1260
+ */
1261
+ export declare const Connector: {
1262
+ /**
1263
+ * Create a basic API key connector
1264
+ */
1265
+ readonly apiKey: (params: {
1266
+ id: string;
1267
+ name: string;
1268
+ category: ConnectorCategory;
1269
+ baseUrl: string;
1270
+ }) => Connector;
1271
+ /**
1272
+ * Create an OAuth 2.0 connector
1273
+ */
1274
+ readonly oauth2: (params: {
1275
+ id: string;
1276
+ name: string;
1277
+ category: ConnectorCategory;
1278
+ baseUrl: string;
1279
+ authUrl: string;
1280
+ tokenUrl: string;
1281
+ scopes?: string[];
1282
+ }) => Connector;
1283
+ };
1284
+ //# sourceMappingURL=connector.zod.d.ts.map