@objectstack/spec 0.6.1 → 0.7.2

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 (853) hide show
  1. package/dist/ai/agent-action.zod.d.ts +2231 -0
  2. package/dist/ai/agent-action.zod.d.ts.map +1 -0
  3. package/dist/ai/agent-action.zod.js +401 -0
  4. package/dist/ai/agent.zod.d.ts +8 -8
  5. package/dist/ai/conversation.zod.d.ts +100 -66
  6. package/dist/ai/conversation.zod.d.ts.map +1 -1
  7. package/dist/ai/conversation.zod.js +5 -5
  8. package/dist/ai/cost.zod.d.ts +279 -207
  9. package/dist/ai/cost.zod.d.ts.map +1 -1
  10. package/dist/ai/cost.zod.js +25 -1
  11. package/dist/ai/index.d.ts +1 -0
  12. package/dist/ai/index.d.ts.map +1 -1
  13. package/dist/ai/index.js +1 -0
  14. package/dist/ai/model-registry.zod.d.ts +125 -125
  15. package/dist/ai/nlq.zod.d.ts +72 -45
  16. package/dist/ai/nlq.zod.d.ts.map +1 -1
  17. package/dist/ai/nlq.zod.js +4 -0
  18. package/dist/ai/orchestration.zod.d.ts +73 -47
  19. package/dist/ai/orchestration.zod.d.ts.map +1 -1
  20. package/dist/ai/orchestration.zod.js +3 -0
  21. package/dist/ai/predictive.zod.d.ts +90 -64
  22. package/dist/ai/predictive.zod.d.ts.map +1 -1
  23. package/dist/ai/predictive.zod.js +3 -0
  24. package/dist/ai/rag-pipeline.zod.d.ts +100 -74
  25. package/dist/ai/rag-pipeline.zod.d.ts.map +1 -1
  26. package/dist/ai/rag-pipeline.zod.js +4 -1
  27. package/dist/api/batch.zod.d.ts +1102 -0
  28. package/dist/api/batch.zod.d.ts.map +1 -0
  29. package/dist/api/batch.zod.js +209 -0
  30. package/dist/api/contract.zod.d.ts +96 -0
  31. package/dist/api/contract.zod.d.ts.map +1 -1
  32. package/dist/api/discovery.zod.d.ts +16 -16
  33. package/dist/api/endpoint.zod.d.ts +29 -28
  34. package/dist/api/endpoint.zod.d.ts.map +1 -1
  35. package/dist/api/endpoint.zod.js +4 -7
  36. package/dist/api/errors.zod.d.ts +364 -0
  37. package/dist/api/errors.zod.d.ts.map +1 -0
  38. package/dist/api/errors.zod.js +296 -0
  39. package/dist/api/graphql.zod.d.ts +5727 -0
  40. package/dist/api/graphql.zod.d.ts.map +1 -0
  41. package/dist/api/graphql.zod.js +724 -0
  42. package/dist/api/http-cache.zod.d.ts +439 -0
  43. package/dist/api/http-cache.zod.d.ts.map +1 -0
  44. package/dist/api/http-cache.zod.js +219 -0
  45. package/dist/api/index.d.ts +11 -1
  46. package/dist/api/index.d.ts.map +1 -1
  47. package/dist/api/index.js +13 -1
  48. package/dist/api/odata.zod.d.ts +383 -4
  49. package/dist/api/odata.zod.d.ts.map +1 -1
  50. package/dist/api/odata.zod.js +14 -1
  51. package/dist/api/protocol.zod.d.ts +9375 -0
  52. package/dist/api/protocol.zod.d.ts.map +1 -0
  53. package/dist/api/protocol.zod.js +376 -0
  54. package/dist/api/realtime.zod.d.ts +135 -2
  55. package/dist/api/realtime.zod.d.ts.map +1 -1
  56. package/dist/api/realtime.zod.js +14 -1
  57. package/dist/api/rest-server.zod.d.ts +2330 -0
  58. package/dist/api/rest-server.zod.d.ts.map +1 -0
  59. package/dist/api/rest-server.zod.js +424 -0
  60. package/dist/api/router.zod.d.ts +39 -32
  61. package/dist/api/router.zod.d.ts.map +1 -1
  62. package/dist/api/router.zod.js +5 -23
  63. package/dist/api/view-storage.zod.d.ts +8220 -0
  64. package/dist/api/view-storage.zod.d.ts.map +1 -0
  65. package/dist/api/view-storage.zod.js +243 -0
  66. package/dist/api/websocket.zod.d.ts +1740 -0
  67. package/dist/api/websocket.zod.d.ts.map +1 -0
  68. package/dist/api/websocket.zod.js +470 -0
  69. package/dist/auth/config.zod.d.ts +655 -304
  70. package/dist/auth/config.zod.d.ts.map +1 -1
  71. package/dist/auth/config.zod.js +149 -7
  72. package/dist/auth/identity.zod.d.ts +7 -7
  73. package/dist/auth/organization.zod.d.ts +6 -6
  74. package/dist/auth/policy.zod.d.ts +3 -3
  75. package/dist/auth/scim.zod.d.ts +83 -83
  76. package/dist/automation/approval.zod.d.ts +18 -18
  77. package/dist/automation/etl.zod.d.ts +53 -23
  78. package/dist/automation/etl.zod.d.ts.map +1 -1
  79. package/dist/automation/etl.zod.js +31 -1
  80. package/dist/automation/flow.zod.d.ts +26 -26
  81. package/dist/automation/index.d.ts +1 -1
  82. package/dist/automation/index.d.ts.map +1 -1
  83. package/dist/automation/index.js +1 -1
  84. package/dist/automation/sync.zod.d.ts +382 -167
  85. package/dist/automation/sync.zod.d.ts.map +1 -1
  86. package/dist/automation/sync.zod.js +38 -31
  87. package/dist/automation/{connector.zod.d.ts → trigger-registry.zod.d.ts} +77 -62
  88. package/dist/automation/trigger-registry.zod.d.ts.map +1 -0
  89. package/dist/automation/{connector.zod.js → trigger-registry.zod.js} +36 -21
  90. package/dist/automation/webhook.zod.d.ts +106 -19
  91. package/dist/automation/webhook.zod.d.ts.map +1 -1
  92. package/dist/automation/webhook.zod.js +58 -13
  93. package/dist/automation/workflow.zod.d.ts +1089 -265
  94. package/dist/automation/workflow.zod.d.ts.map +1 -1
  95. package/dist/automation/workflow.zod.js +3 -6
  96. package/dist/contracts/data-engine.d.ts +61 -0
  97. package/dist/contracts/data-engine.d.ts.map +1 -0
  98. package/dist/contracts/data-engine.js +2 -0
  99. package/dist/contracts/http-server.d.ts +119 -0
  100. package/dist/contracts/http-server.d.ts.map +1 -0
  101. package/dist/contracts/http-server.js +12 -0
  102. package/dist/contracts/index.d.ts +14 -0
  103. package/dist/contracts/index.d.ts.map +1 -0
  104. package/dist/contracts/index.js +29 -0
  105. package/dist/contracts/logger.d.ts +63 -0
  106. package/dist/contracts/logger.d.ts.map +1 -0
  107. package/dist/contracts/logger.js +2 -0
  108. package/dist/contracts/plugin-lifecycle-events.d.ts +150 -0
  109. package/dist/contracts/plugin-lifecycle-events.d.ts.map +1 -0
  110. package/dist/contracts/plugin-lifecycle-events.js +10 -0
  111. package/dist/contracts/plugin-validator.d.ts +106 -0
  112. package/dist/contracts/plugin-validator.d.ts.map +1 -0
  113. package/dist/contracts/plugin-validator.js +8 -0
  114. package/dist/contracts/service-registry.d.ts +94 -0
  115. package/dist/contracts/service-registry.d.ts.map +1 -0
  116. package/dist/contracts/service-registry.js +11 -0
  117. package/dist/contracts/startup-orchestrator.d.ts +122 -0
  118. package/dist/contracts/startup-orchestrator.d.ts.map +1 -0
  119. package/dist/contracts/startup-orchestrator.js +2 -0
  120. package/dist/data/data-engine.zod.d.ts +2636 -0
  121. package/dist/data/data-engine.zod.d.ts.map +1 -0
  122. package/dist/data/data-engine.zod.js +282 -0
  123. package/dist/data/document.zod.d.ts +746 -0
  124. package/dist/data/document.zod.d.ts.map +1 -0
  125. package/dist/data/document.zod.js +326 -0
  126. package/dist/data/driver/mongo.zod.d.ts +82 -0
  127. package/dist/data/driver/mongo.zod.d.ts.map +1 -0
  128. package/dist/data/driver/mongo.zod.js +68 -0
  129. package/dist/{system → data}/driver/postgres.zod.d.ts +4 -4
  130. package/dist/data/driver/postgres.zod.d.ts.map +1 -0
  131. package/dist/data/driver-nosql.zod.d.ts +1008 -0
  132. package/dist/data/driver-nosql.zod.d.ts.map +1 -0
  133. package/dist/data/driver-nosql.zod.js +417 -0
  134. package/dist/data/driver-sql.zod.d.ts +652 -0
  135. package/dist/data/driver-sql.zod.d.ts.map +1 -0
  136. package/dist/data/driver-sql.zod.js +150 -0
  137. package/dist/{system → data}/driver.zod.d.ts +1538 -249
  138. package/dist/data/driver.zod.d.ts.map +1 -0
  139. package/dist/{system → data}/driver.zod.js +137 -13
  140. package/dist/data/external-lookup.zod.d.ts +662 -0
  141. package/dist/data/external-lookup.zod.d.ts.map +1 -0
  142. package/dist/data/external-lookup.zod.js +223 -0
  143. package/dist/data/field.zod.d.ts +3896 -107
  144. package/dist/data/field.zod.d.ts.map +1 -1
  145. package/dist/data/field.zod.js +161 -2
  146. package/dist/data/hook.zod.d.ts +4 -4
  147. package/dist/data/index.d.ts +7 -0
  148. package/dist/data/index.d.ts.map +1 -1
  149. package/dist/data/index.js +9 -0
  150. package/dist/data/mapping.zod.d.ts +85 -17
  151. package/dist/data/mapping.zod.d.ts.map +1 -1
  152. package/dist/data/object.zod.d.ts +2117 -77
  153. package/dist/data/object.zod.d.ts.map +1 -1
  154. package/dist/data/object.zod.js +131 -16
  155. package/dist/data/query.zod.d.ts +112 -0
  156. package/dist/data/query.zod.d.ts.map +1 -1
  157. package/dist/data/query.zod.js +47 -1
  158. package/dist/data/validation.zod.d.ts +2 -2
  159. package/dist/hub/composer.zod.d.ts +869 -68
  160. package/dist/hub/composer.zod.d.ts.map +1 -1
  161. package/dist/hub/index.d.ts +1 -0
  162. package/dist/hub/index.d.ts.map +1 -1
  163. package/dist/hub/index.js +1 -0
  164. package/dist/hub/license.zod.d.ts +2 -2
  165. package/dist/hub/marketplace.zod.d.ts +3 -2
  166. package/dist/hub/marketplace.zod.d.ts.map +1 -1
  167. package/dist/hub/plugin-registry.zod.d.ts +1681 -0
  168. package/dist/hub/plugin-registry.zod.d.ts.map +1 -0
  169. package/dist/hub/plugin-registry.zod.js +350 -0
  170. package/dist/hub/space.zod.d.ts +24 -23
  171. package/dist/hub/space.zod.d.ts.map +1 -1
  172. package/dist/hub/tenant.zod.d.ts +44 -44
  173. package/dist/index.d.ts +3 -0
  174. package/dist/index.d.ts.map +1 -1
  175. package/dist/index.js +11 -1
  176. package/dist/integration/connector/database.zod.d.ts +1666 -0
  177. package/dist/integration/connector/database.zod.d.ts.map +1 -0
  178. package/dist/integration/connector/database.zod.js +303 -0
  179. package/dist/integration/connector/file-storage.zod.d.ts +1386 -0
  180. package/dist/integration/connector/file-storage.zod.d.ts.map +1 -0
  181. package/dist/integration/connector/file-storage.zod.js +346 -0
  182. package/dist/integration/connector/message-queue.zod.d.ts +1729 -0
  183. package/dist/integration/connector/message-queue.zod.d.ts.map +1 -0
  184. package/dist/integration/connector/message-queue.zod.js +428 -0
  185. package/dist/integration/connector/saas.zod.d.ts +1441 -0
  186. package/dist/integration/connector/saas.zod.d.ts.map +1 -0
  187. package/dist/integration/connector/saas.zod.js +224 -0
  188. package/dist/integration/connector.zod.d.ts +1571 -0
  189. package/dist/integration/connector.zod.d.ts.map +1 -0
  190. package/dist/integration/connector.zod.js +426 -0
  191. package/dist/integration/index.d.ts +15 -0
  192. package/dist/integration/index.d.ts.map +1 -0
  193. package/dist/integration/index.js +32 -0
  194. package/dist/permission/permission.zod.d.ts +140 -6
  195. package/dist/permission/permission.zod.d.ts.map +1 -1
  196. package/dist/permission/permission.zod.js +48 -0
  197. package/dist/permission/rls.zod.d.ts +8 -8
  198. package/dist/permission/sharing.zod.d.ts +14 -14
  199. package/dist/shared/http.zod.d.ts +140 -0
  200. package/dist/shared/http.zod.d.ts.map +1 -0
  201. package/dist/shared/http.zod.js +133 -0
  202. package/dist/shared/index.d.ts +2 -0
  203. package/dist/shared/index.d.ts.map +1 -1
  204. package/dist/shared/index.js +2 -0
  205. package/dist/shared/mapping.zod.d.ts +226 -0
  206. package/dist/shared/mapping.zod.d.ts.map +1 -0
  207. package/dist/shared/mapping.zod.js +103 -0
  208. package/dist/stack.zod.d.ts +9222 -1785
  209. package/dist/stack.zod.d.ts.map +1 -1
  210. package/dist/system/audit.zod.d.ts +35 -35
  211. package/dist/system/cache.zod.d.ts +151 -0
  212. package/dist/system/cache.zod.d.ts.map +1 -0
  213. package/dist/system/cache.zod.js +57 -0
  214. package/dist/system/change-management.zod.d.ts +626 -0
  215. package/dist/system/change-management.zod.d.ts.map +1 -0
  216. package/dist/system/change-management.zod.js +329 -0
  217. package/dist/system/collaboration.zod.d.ts +2099 -0
  218. package/dist/system/collaboration.zod.d.ts.map +1 -0
  219. package/dist/system/collaboration.zod.js +392 -0
  220. package/dist/system/compliance.zod.d.ts +366 -0
  221. package/dist/system/compliance.zod.d.ts.map +1 -0
  222. package/dist/system/compliance.zod.js +70 -0
  223. package/dist/system/context.zod.d.ts +5 -5
  224. package/dist/system/encryption.zod.d.ts +227 -0
  225. package/dist/system/encryption.zod.d.ts.map +1 -0
  226. package/dist/system/encryption.zod.js +43 -0
  227. package/dist/system/events.zod.d.ts +2536 -0
  228. package/dist/system/events.zod.d.ts.map +1 -1
  229. package/dist/system/events.zod.js +582 -1
  230. package/dist/system/feature.zod.d.ts +12 -12
  231. package/dist/system/http-server.zod.d.ts +735 -0
  232. package/dist/system/http-server.zod.d.ts.map +1 -0
  233. package/dist/system/http-server.zod.js +300 -0
  234. package/dist/system/index.d.ts +21 -6
  235. package/dist/system/index.d.ts.map +1 -1
  236. package/dist/system/index.js +33 -7
  237. package/dist/system/job.zod.d.ts +5 -4
  238. package/dist/system/job.zod.d.ts.map +1 -1
  239. package/dist/system/logging.zod.d.ts +2186 -0
  240. package/dist/system/logging.zod.d.ts.map +1 -0
  241. package/dist/system/logging.zod.js +564 -0
  242. package/dist/system/manifest.zod.d.ts +659 -14
  243. package/dist/system/manifest.zod.d.ts.map +1 -1
  244. package/dist/system/manifest.zod.js +8 -0
  245. package/dist/system/masking.zod.d.ts +87 -0
  246. package/dist/system/masking.zod.d.ts.map +1 -0
  247. package/dist/system/masking.zod.js +30 -0
  248. package/dist/system/message-queue.zod.d.ts +177 -0
  249. package/dist/system/message-queue.zod.d.ts.map +1 -0
  250. package/dist/system/message-queue.zod.js +46 -0
  251. package/dist/system/metadata-loader.zod.d.ts +641 -0
  252. package/dist/system/metadata-loader.zod.d.ts.map +1 -0
  253. package/dist/system/metadata-loader.zod.js +373 -0
  254. package/dist/system/metrics.zod.d.ts +1965 -0
  255. package/dist/system/metrics.zod.d.ts.map +1 -0
  256. package/dist/system/metrics.zod.js +585 -0
  257. package/dist/system/notification.zod.d.ts +725 -0
  258. package/dist/system/notification.zod.d.ts.map +1 -0
  259. package/dist/system/notification.zod.js +335 -0
  260. package/dist/system/object-storage.zod.d.ts +1722 -0
  261. package/dist/system/object-storage.zod.d.ts.map +1 -0
  262. package/dist/system/object-storage.zod.js +591 -0
  263. package/dist/system/plugin-capability.zod.d.ts +1130 -0
  264. package/dist/system/plugin-capability.zod.d.ts.map +1 -0
  265. package/dist/system/plugin-capability.zod.js +271 -0
  266. package/dist/system/plugin-lifecycle-events.zod.d.ts +382 -0
  267. package/dist/system/plugin-lifecycle-events.zod.d.ts.map +1 -0
  268. package/dist/system/plugin-lifecycle-events.zod.js +284 -0
  269. package/dist/system/plugin-validator.zod.d.ts +245 -0
  270. package/dist/system/plugin-validator.zod.d.ts.map +1 -0
  271. package/dist/system/plugin-validator.zod.js +136 -0
  272. package/dist/system/plugin.zod.d.ts +86 -86
  273. package/dist/system/search-engine.zod.d.ts +256 -0
  274. package/dist/system/search-engine.zod.d.ts.map +1 -0
  275. package/dist/system/search-engine.zod.js +50 -0
  276. package/dist/system/service-registry.zod.d.ts +247 -0
  277. package/dist/system/service-registry.zod.d.ts.map +1 -0
  278. package/dist/system/service-registry.zod.js +218 -0
  279. package/dist/system/startup-orchestrator.zod.d.ts +376 -0
  280. package/dist/system/startup-orchestrator.zod.d.ts.map +1 -0
  281. package/dist/system/startup-orchestrator.zod.js +171 -0
  282. package/dist/system/tracing.zod.d.ts +1881 -0
  283. package/dist/system/tracing.zod.d.ts.map +1 -0
  284. package/dist/system/tracing.zod.js +567 -0
  285. package/dist/system/worker.zod.d.ts +1458 -0
  286. package/dist/system/worker.zod.d.ts.map +1 -0
  287. package/dist/system/worker.zod.js +479 -0
  288. package/dist/ui/action.zod.d.ts +10 -10
  289. package/dist/ui/app.zod.d.ts +6 -6
  290. package/dist/ui/chart.zod.d.ts +41 -0
  291. package/dist/ui/chart.zod.d.ts.map +1 -0
  292. package/dist/ui/chart.zod.js +66 -0
  293. package/dist/ui/component.zod.d.ts +2 -2
  294. package/dist/ui/dashboard.zod.d.ts +108 -18
  295. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  296. package/dist/ui/dashboard.zod.js +5 -25
  297. package/dist/ui/index.d.ts +3 -1
  298. package/dist/ui/index.d.ts.map +1 -1
  299. package/dist/ui/index.js +3 -1
  300. package/dist/ui/page.zod.d.ts +2 -2
  301. package/dist/ui/page.zod.js +1 -1
  302. package/dist/ui/report.zod.d.ts +62 -12
  303. package/dist/ui/report.zod.d.ts.map +1 -1
  304. package/dist/ui/report.zod.js +5 -5
  305. package/dist/ui/theme.zod.d.ts +6 -6
  306. package/dist/ui/view.zod.d.ts +316 -316
  307. package/dist/ui/widget.zod.d.ts +825 -31
  308. package/dist/ui/widget.zod.d.ts.map +1 -1
  309. package/json-schema/ai/AIOperationCost.json +79 -0
  310. package/json-schema/ai/AIOrchestrationExecutionResult.json +32 -0
  311. package/json-schema/ai/AgentAction.json +436 -0
  312. package/json-schema/ai/AgentActionResult.json +69 -0
  313. package/json-schema/ai/AgentActionSequence.json +492 -0
  314. package/json-schema/ai/AgentActionSequenceResult.json +143 -0
  315. package/json-schema/ai/ComponentActionParams.json +77 -0
  316. package/json-schema/ai/ComponentActionType.json +20 -0
  317. package/json-schema/ai/ConversationMessage.json +12 -2
  318. package/json-schema/ai/ConversationSession.json +44 -2
  319. package/json-schema/ai/DataActionParams.json +38 -0
  320. package/json-schema/ai/DataActionType.json +18 -0
  321. package/json-schema/ai/FormActionParams.json +36 -0
  322. package/json-schema/ai/FormActionType.json +20 -0
  323. package/json-schema/ai/IntentActionMapping.json +491 -0
  324. package/json-schema/ai/NLQResponse.json +32 -0
  325. package/json-schema/ai/NavigationActionParams.json +56 -0
  326. package/json-schema/ai/NavigationActionType.json +21 -0
  327. package/json-schema/ai/PredictionResult.json +32 -0
  328. package/json-schema/ai/RAGQueryResponse.json +34 -1
  329. package/json-schema/ai/TokenUsage.json +32 -0
  330. package/json-schema/ai/UIActionType.json +63 -0
  331. package/json-schema/ai/ViewActionParams.json +74 -0
  332. package/json-schema/ai/ViewActionType.json +21 -0
  333. package/json-schema/ai/WorkflowActionParams.json +61 -0
  334. package/json-schema/ai/WorkflowActionType.json +18 -0
  335. package/json-schema/api/AckMessage.json +46 -0
  336. package/json-schema/api/ApiEndpoint.json +4 -3
  337. package/json-schema/api/BatchConfig.json +51 -0
  338. package/json-schema/api/BatchDataRequest.json +93 -0
  339. package/json-schema/api/BatchDataResponse.json +144 -0
  340. package/json-schema/api/BatchEndpointsConfig.json +56 -0
  341. package/json-schema/api/BatchOperationResult.json +57 -0
  342. package/json-schema/api/BatchOperationType.json +15 -0
  343. package/json-schema/api/BatchOptions.json +32 -0
  344. package/json-schema/api/BatchRecord.json +25 -0
  345. package/json-schema/api/BatchUpdateRequest.json +78 -0
  346. package/json-schema/api/BatchUpdateResponse.json +144 -0
  347. package/json-schema/api/CacheControl.json +42 -0
  348. package/json-schema/api/CacheDirective.json +17 -0
  349. package/json-schema/api/CacheInvalidationRequest.json +43 -0
  350. package/json-schema/api/CacheInvalidationResponse.json +31 -0
  351. package/json-schema/api/CacheInvalidationTarget.json +17 -0
  352. package/json-schema/api/CreateDataRequest.json +25 -0
  353. package/json-schema/api/CreateDataResponse.json +30 -0
  354. package/json-schema/api/CreateManyDataRequest.json +28 -0
  355. package/json-schema/api/CreateManyDataResponse.json +33 -0
  356. package/json-schema/api/CreateViewRequest.json +1042 -0
  357. package/json-schema/api/CrudEndpointPattern.json +41 -0
  358. package/json-schema/api/CrudEndpointsConfig.json +106 -0
  359. package/json-schema/api/CrudOperation.json +16 -0
  360. package/json-schema/api/CursorMessage.json +139 -0
  361. package/json-schema/api/CursorPosition.json +112 -0
  362. package/json-schema/api/DeleteDataRequest.json +24 -0
  363. package/json-schema/api/DeleteDataResponse.json +29 -0
  364. package/json-schema/api/DeleteManyDataRequest.json +54 -0
  365. package/json-schema/api/DeleteManyDataResponse.json +144 -0
  366. package/json-schema/api/DeleteManyRequest.json +51 -0
  367. package/json-schema/api/DeleteViewRequest.json +19 -0
  368. package/json-schema/api/DeleteViewResponse.json +19 -0
  369. package/json-schema/api/DocumentState.json +49 -0
  370. package/json-schema/api/ETag.json +24 -0
  371. package/json-schema/api/EditMessage.json +135 -0
  372. package/json-schema/api/EditOperation.json +108 -0
  373. package/json-schema/api/EditOperationType.json +14 -0
  374. package/json-schema/api/EndpointRegistry.json +284 -0
  375. package/json-schema/api/EnhancedApiError.json +226 -0
  376. package/json-schema/api/ErrorCategory.json +20 -0
  377. package/json-schema/api/ErrorMessage.json +44 -0
  378. package/json-schema/api/ErrorResponse.json +259 -0
  379. package/json-schema/api/EventFilter.json +65 -0
  380. package/json-schema/api/EventFilterCondition.json +42 -0
  381. package/json-schema/api/EventMessage.json +55 -0
  382. package/json-schema/api/EventPattern.json +12 -0
  383. package/json-schema/api/EventSubscription.json +105 -0
  384. package/json-schema/api/ExportRequest.json +110 -0
  385. package/json-schema/api/FieldError.json +88 -0
  386. package/json-schema/api/FilterOperator.json +24 -0
  387. package/json-schema/api/FindDataRequest.json +509 -0
  388. package/json-schema/api/FindDataResponse.json +36 -0
  389. package/json-schema/api/GeneratedEndpoint.json +88 -0
  390. package/json-schema/api/GetDataRequest.json +24 -0
  391. package/json-schema/api/GetDataResponse.json +30 -0
  392. package/json-schema/api/GetDiscoveryRequest.json +11 -0
  393. package/json-schema/api/GetDiscoveryResponse.json +38 -0
  394. package/json-schema/api/GetMetaItemCachedRequest.json +77 -0
  395. package/json-schema/api/GetMetaItemCachedResponse.json +85 -0
  396. package/json-schema/api/GetMetaItemRequest.json +24 -0
  397. package/json-schema/api/GetMetaItemResponse.json +27 -0
  398. package/json-schema/api/GetMetaItemsRequest.json +19 -0
  399. package/json-schema/api/GetMetaItemsResponse.json +24 -0
  400. package/json-schema/api/GetMetaTypesRequest.json +11 -0
  401. package/json-schema/api/GetMetaTypesResponse.json +22 -0
  402. package/json-schema/api/GetUiViewRequest.json +28 -0
  403. package/json-schema/api/GetUiViewResponse.json +31 -0
  404. package/json-schema/api/GetViewRequest.json +19 -0
  405. package/json-schema/api/GetViewResponse.json +1103 -0
  406. package/json-schema/api/GraphQLConfig.json +1389 -0
  407. package/json-schema/api/GraphQLDataLoaderConfig.json +101 -0
  408. package/json-schema/api/GraphQLDirectiveConfig.json +108 -0
  409. package/json-schema/api/GraphQLDirectiveLocation.json +30 -0
  410. package/json-schema/api/GraphQLMutationConfig.json +180 -0
  411. package/json-schema/api/GraphQLPersistedQuery.json +151 -0
  412. package/json-schema/api/GraphQLQueryComplexity.json +83 -0
  413. package/json-schema/api/GraphQLQueryConfig.json +231 -0
  414. package/json-schema/api/GraphQLQueryDepthLimit.json +44 -0
  415. package/json-schema/api/GraphQLRateLimit.json +138 -0
  416. package/json-schema/api/GraphQLResolverConfig.json +98 -0
  417. package/json-schema/api/GraphQLScalarType.json +32 -0
  418. package/json-schema/api/GraphQLSubscriptionConfig.json +118 -0
  419. package/json-schema/api/GraphQLTypeConfig.json +113 -0
  420. package/json-schema/api/ListViewsRequest.json +58 -0
  421. package/json-schema/api/ListViewsResponse.json +1132 -0
  422. package/json-schema/api/MetadataCacheRequest.json +58 -0
  423. package/json-schema/api/MetadataCacheResponse.json +85 -0
  424. package/json-schema/api/MetadataEndpointsConfig.json +54 -0
  425. package/json-schema/api/ODataConfig.json +132 -0
  426. package/json-schema/api/ObjectStackProtocol.json +11 -0
  427. package/json-schema/api/PingMessage.json +31 -0
  428. package/json-schema/api/PongMessage.json +36 -0
  429. package/json-schema/api/PresenceMessage.json +92 -0
  430. package/json-schema/api/PresenceState.json +65 -0
  431. package/json-schema/api/PresenceUpdate.json +35 -0
  432. package/json-schema/api/RateLimit.json +4 -3
  433. package/json-schema/api/RealtimeConfig.json +90 -0
  434. package/json-schema/api/RestApiConfig.json +127 -0
  435. package/json-schema/api/RestServerConfig.json +401 -0
  436. package/json-schema/api/RetryStrategy.json +15 -0
  437. package/json-schema/api/RouteGenerationConfig.json +71 -0
  438. package/json-schema/api/RouterConfig.json +22 -9
  439. package/json-schema/api/SavedView.json +1074 -0
  440. package/json-schema/api/SimpleCursorPosition.json +53 -0
  441. package/json-schema/api/SimplePresenceState.json +44 -0
  442. package/json-schema/api/StandardErrorCode.json +62 -0
  443. package/json-schema/api/SubscribeMessage.json +132 -0
  444. package/json-schema/api/UnsubscribeMessage.json +47 -0
  445. package/json-schema/api/UnsubscribeRequest.json +20 -0
  446. package/json-schema/api/UpdateDataRequest.json +30 -0
  447. package/json-schema/api/UpdateDataResponse.json +30 -0
  448. package/json-schema/api/UpdateManyDataRequest.json +70 -0
  449. package/json-schema/api/UpdateManyDataResponse.json +144 -0
  450. package/json-schema/api/UpdateManyRequest.json +67 -0
  451. package/json-schema/api/UpdateViewRequest.json +1041 -0
  452. package/json-schema/api/ViewColumn.json +58 -0
  453. package/json-schema/api/ViewLayout.json +125 -0
  454. package/json-schema/api/ViewResponse.json +1103 -0
  455. package/json-schema/api/ViewType.json +19 -0
  456. package/json-schema/api/ViewVisibility.json +15 -0
  457. package/json-schema/api/WebSocketConfig.json +63 -0
  458. package/json-schema/api/WebSocketEvent.json +40 -0
  459. package/json-schema/api/WebSocketMessage.json +707 -0
  460. package/json-schema/api/WebSocketMessageType.json +21 -0
  461. package/json-schema/api/WebSocketPresenceStatus.json +15 -0
  462. package/json-schema/api/WebSocketServerConfig.json +42 -0
  463. package/json-schema/auth/APIKey.json +34 -0
  464. package/json-schema/auth/ApplicationAuthConfig.json +841 -0
  465. package/json-schema/auth/AuthConfig.json +158 -730
  466. package/json-schema/auth/BasicAuth.json +30 -0
  467. package/json-schema/auth/BearerAuth.json +25 -0
  468. package/json-schema/auth/JWTAuth.json +66 -0
  469. package/json-schema/auth/NoAuth.json +20 -0
  470. package/json-schema/auth/OAuth2.json +62 -0
  471. package/json-schema/auth/SAMLAuth.json +64 -0
  472. package/json-schema/automation/DataDestinationConfig.json +120 -14
  473. package/json-schema/automation/DataSyncConfig.json +120 -14
  474. package/json-schema/automation/TimeTrigger.json +166 -31
  475. package/json-schema/automation/Webhook.json +99 -16
  476. package/json-schema/automation/WebhookTriggerAction.json +166 -31
  477. package/json-schema/automation/WorkflowAction.json +166 -31
  478. package/json-schema/automation/WorkflowRule.json +332 -62
  479. package/json-schema/data/AggregationPipeline.json +99 -0
  480. package/json-schema/data/AggregationStage.json +25 -0
  481. package/json-schema/data/ApiMethod.json +25 -0
  482. package/json-schema/data/CDCConfig.json +37 -0
  483. package/json-schema/data/ComputedFieldCache.json +33 -0
  484. package/json-schema/data/ConsistencyLevel.json +17 -0
  485. package/json-schema/data/DataEngineAggregateOptions.json +80 -0
  486. package/json-schema/data/DataEngineAggregateRequest.json +98 -0
  487. package/json-schema/data/DataEngineBatchRequest.json +699 -0
  488. package/json-schema/data/DataEngineContract.json +12 -0
  489. package/json-schema/data/DataEngineCountOptions.json +44 -0
  490. package/json-schema/data/DataEngineCountRequest.json +61 -0
  491. package/json-schema/data/DataEngineDeleteOptions.json +48 -0
  492. package/json-schema/data/DataEngineDeleteRequest.json +68 -0
  493. package/json-schema/data/DataEngineExecuteRequest.json +24 -0
  494. package/json-schema/data/DataEngineFilter.json +37 -0
  495. package/json-schema/data/DataEngineFindOneRequest.json +133 -0
  496. package/json-schema/data/DataEngineFindRequest.json +133 -0
  497. package/json-schema/data/DataEngineInsertOptions.json +17 -0
  498. package/json-schema/data/DataEngineInsertRequest.json +50 -0
  499. package/json-schema/data/DataEngineQueryOptions.json +116 -0
  500. package/json-schema/data/DataEngineRequest.json +1372 -0
  501. package/json-schema/data/DataEngineSort.json +54 -0
  502. package/json-schema/data/DataEngineUpdateOptions.json +56 -0
  503. package/json-schema/data/DataEngineUpdateRequest.json +81 -0
  504. package/json-schema/data/DataEngineVectorFindRequest.json +74 -0
  505. package/json-schema/data/DataQualityRules.json +45 -0
  506. package/json-schema/data/DataTypeMapping.json +51 -0
  507. package/json-schema/data/Document.json +292 -0
  508. package/json-schema/data/DocumentTemplate.json +78 -0
  509. package/json-schema/data/DocumentValidationSchema.json +39 -0
  510. package/json-schema/data/DocumentVersion.json +50 -0
  511. package/json-schema/data/DriverCapabilities.json +180 -0
  512. package/json-schema/data/DriverConfig.json +243 -0
  513. package/json-schema/data/DriverInterface.json +199 -0
  514. package/json-schema/data/ESignatureConfig.json +74 -0
  515. package/json-schema/data/ExternalDataSource.json +68 -0
  516. package/json-schema/data/ExternalFieldMapping.json +151 -0
  517. package/json-schema/data/ExternalLookup.json +327 -0
  518. package/json-schema/data/Field.json +435 -1
  519. package/json-schema/data/FieldMapping.json +83 -0
  520. package/json-schema/data/FileAttachmentConfig.json +219 -0
  521. package/json-schema/data/FullTextSearch.json +60 -0
  522. package/json-schema/data/Index.json +14 -7
  523. package/json-schema/data/JoinNode.json +55 -0
  524. package/json-schema/data/Mapping.json +639 -0
  525. package/json-schema/data/NoSQLDataTypeMapping.json +63 -0
  526. package/json-schema/data/NoSQLDatabaseType.json +19 -0
  527. package/json-schema/data/NoSQLDriverConfig.json +452 -0
  528. package/json-schema/data/NoSQLIndex.json +87 -0
  529. package/json-schema/data/NoSQLIndexType.json +19 -0
  530. package/json-schema/data/NoSQLOperationType.json +22 -0
  531. package/json-schema/data/NoSQLQueryOptions.json +61 -0
  532. package/json-schema/data/NoSQLTransactionOptions.json +47 -0
  533. package/json-schema/data/Object.json +610 -9
  534. package/json-schema/data/PartitioningConfig.json +38 -0
  535. package/json-schema/data/PoolConfig.json +36 -0
  536. package/json-schema/data/Query.json +55 -0
  537. package/json-schema/data/ReplicationConfig.json +46 -0
  538. package/json-schema/data/SQLDialect.json +17 -0
  539. package/json-schema/data/SQLDriverConfig.json +325 -0
  540. package/json-schema/data/SSLConfig.json +29 -0
  541. package/json-schema/data/ShardingConfig.json +35 -0
  542. package/json-schema/data/SoftDeleteConfig.json +29 -0
  543. package/json-schema/data/TenancyConfig.json +39 -0
  544. package/json-schema/data/TransformType.json +18 -0
  545. package/json-schema/data/VersioningConfig.json +39 -0
  546. package/json-schema/hub/ComposerResponse.json +405 -0
  547. package/json-schema/hub/PluginInstallConfig.json +53 -0
  548. package/json-schema/hub/PluginQualityMetrics.json +101 -0
  549. package/json-schema/hub/PluginRegistryEntry.json +833 -0
  550. package/json-schema/hub/PluginSearchFilters.json +91 -0
  551. package/json-schema/hub/PluginStatistics.json +84 -0
  552. package/json-schema/hub/PluginVendor.json +47 -0
  553. package/json-schema/integration/AckMode.json +15 -0
  554. package/json-schema/integration/ApiVersionConfig.json +32 -0
  555. package/json-schema/integration/Authentication.json +269 -0
  556. package/json-schema/integration/CdcConfig.json +55 -0
  557. package/json-schema/integration/ConflictResolution.json +16 -0
  558. package/json-schema/integration/Connector.json +919 -0
  559. package/json-schema/integration/ConnectorStatus.json +16 -0
  560. package/json-schema/integration/ConnectorType.json +18 -0
  561. package/json-schema/integration/ConsumerConfig.json +67 -0
  562. package/json-schema/integration/DataSyncConfig.json +79 -0
  563. package/json-schema/integration/DatabaseConnector.json +1372 -0
  564. package/json-schema/integration/DatabasePoolConfig.json +53 -0
  565. package/json-schema/integration/DatabaseProvider.json +24 -0
  566. package/json-schema/integration/DatabaseTable.json +216 -0
  567. package/json-schema/integration/DeliveryGuarantee.json +15 -0
  568. package/json-schema/integration/DlqConfig.json +37 -0
  569. package/json-schema/integration/FieldMapping.json +170 -0
  570. package/json-schema/integration/FieldTransform.json +36 -0
  571. package/json-schema/integration/FileAccessPattern.json +17 -0
  572. package/json-schema/integration/FileFilterConfig.json +50 -0
  573. package/json-schema/integration/FileMetadataConfig.json +41 -0
  574. package/json-schema/integration/FileStorageConnector.json +1240 -0
  575. package/json-schema/integration/FileStorageProvider.json +23 -0
  576. package/json-schema/integration/FileVersioningConfig.json +28 -0
  577. package/json-schema/integration/MessageFormat.json +18 -0
  578. package/json-schema/integration/MessageQueueConnector.json +1325 -0
  579. package/json-schema/integration/MessageQueueProvider.json +25 -0
  580. package/json-schema/integration/MultipartUploadConfig.json +36 -0
  581. package/json-schema/integration/ProducerConfig.json +72 -0
  582. package/json-schema/integration/RateLimitConfig.json +69 -0
  583. package/json-schema/integration/RateLimitStrategy.json +16 -0
  584. package/json-schema/integration/RetryConfig.json +73 -0
  585. package/json-schema/integration/RetryStrategy.json +16 -0
  586. package/json-schema/integration/SaasConnector.json +1267 -0
  587. package/json-schema/integration/SaasObjectType.json +218 -0
  588. package/json-schema/integration/SaasProvider.json +24 -0
  589. package/json-schema/integration/SslConfig.json +34 -0
  590. package/json-schema/integration/StorageBucket.json +99 -0
  591. package/json-schema/integration/SyncStrategy.json +16 -0
  592. package/json-schema/integration/TopicQueue.json +252 -0
  593. package/json-schema/integration/WebhookConfig.json +201 -0
  594. package/json-schema/integration/WebhookEvent.json +20 -0
  595. package/json-schema/integration/WebhookSignatureAlgorithm.json +15 -0
  596. package/json-schema/permission/PermissionSet.json +80 -0
  597. package/json-schema/shared/CorsConfig.json +57 -0
  598. package/json-schema/shared/FieldMapping.json +142 -0
  599. package/json-schema/shared/HttpMethod.json +18 -0
  600. package/json-schema/shared/RateLimitConfig.json +27 -0
  601. package/json-schema/shared/StaticMount.json +28 -0
  602. package/json-schema/shared/TransformType.json +120 -0
  603. package/json-schema/system/AccessControlConfig.json +106 -0
  604. package/json-schema/system/AnalyzerConfig.json +41 -0
  605. package/json-schema/system/AuditLogConfig.json +48 -0
  606. package/json-schema/system/AwarenessEvent.json +51 -0
  607. package/json-schema/system/AwarenessSession.json +117 -0
  608. package/json-schema/system/AwarenessUpdate.json +35 -0
  609. package/json-schema/system/AwarenessUserState.json +77 -0
  610. package/json-schema/system/BatchProgress.json +72 -0
  611. package/json-schema/system/BatchTask.json +63 -0
  612. package/json-schema/system/BucketConfig.json +332 -0
  613. package/json-schema/system/CRDTMergeResult.json +295 -0
  614. package/json-schema/system/CRDTState.json +258 -0
  615. package/json-schema/system/CRDTType.json +20 -0
  616. package/json-schema/system/CacheConfig.json +121 -0
  617. package/json-schema/system/CacheInvalidation.json +43 -0
  618. package/json-schema/system/CacheStrategy.json +16 -0
  619. package/json-schema/system/CacheTier.json +52 -0
  620. package/json-schema/system/CapabilityConformanceLevel.json +16 -0
  621. package/json-schema/system/ChangeImpact.json +55 -0
  622. package/json-schema/system/ChangePriority.json +15 -0
  623. package/json-schema/system/ChangeRequest.json +313 -0
  624. package/json-schema/system/ChangeStatus.json +21 -0
  625. package/json-schema/system/ChangeType.json +15 -0
  626. package/json-schema/system/CollaborationMode.json +15 -0
  627. package/json-schema/system/CollaborationSession.json +575 -0
  628. package/json-schema/system/CollaborationSessionConfig.json +86 -0
  629. package/json-schema/system/CollaborativeCursor.json +189 -0
  630. package/json-schema/system/ComplianceConfig.json +202 -0
  631. package/json-schema/system/ConsoleDestinationConfig.json +29 -0
  632. package/json-schema/system/ConsumerConfig.json +34 -0
  633. package/json-schema/system/CounterOperation.json +30 -0
  634. package/json-schema/system/CursorColorPreset.json +21 -0
  635. package/json-schema/system/CursorSelection.json +66 -0
  636. package/json-schema/system/CursorStyle.json +59 -0
  637. package/json-schema/system/CursorUpdate.json +101 -0
  638. package/json-schema/system/DeadLetterQueue.json +26 -0
  639. package/json-schema/system/DeadLetterQueueEntry.json +137 -0
  640. package/json-schema/system/EmailTemplate.json +69 -0
  641. package/json-schema/system/EncryptionAlgorithm.json +14 -0
  642. package/json-schema/system/EncryptionConfig.json +93 -0
  643. package/json-schema/system/Event.json +24 -0
  644. package/json-schema/system/EventBusConfig.json +552 -0
  645. package/json-schema/system/EventHandler.json +34 -0
  646. package/json-schema/system/EventLogEntry.json +153 -0
  647. package/json-schema/system/EventMessageQueueConfig.json +79 -0
  648. package/json-schema/system/EventMetadata.json +20 -0
  649. package/json-schema/system/EventPersistence.json +11 -0
  650. package/json-schema/system/EventPhase.json +15 -0
  651. package/json-schema/system/EventPriority.json +16 -0
  652. package/json-schema/system/EventQueueConfig.json +67 -0
  653. package/json-schema/system/EventReplayConfig.json +50 -0
  654. package/json-schema/system/EventSourcingConfig.json +65 -0
  655. package/json-schema/system/EventTypeDefinition.json +45 -0
  656. package/json-schema/system/EventWebhookConfig.json +119 -0
  657. package/json-schema/system/ExtendedLogLevel.json +18 -0
  658. package/json-schema/system/ExtensionPoint.json +67 -0
  659. package/json-schema/system/ExternalServiceDestinationConfig.json +51 -0
  660. package/json-schema/system/FacetConfig.json +30 -0
  661. package/json-schema/system/FieldEncryption.json +110 -0
  662. package/json-schema/system/FileDestinationConfig.json +56 -0
  663. package/json-schema/system/FileMetadata.json +14 -7
  664. package/json-schema/system/GCounter.json +28 -0
  665. package/json-schema/system/GDPRConfig.json +71 -0
  666. package/json-schema/system/HIPAAConfig.json +45 -0
  667. package/json-schema/system/HealthStatus.json +33 -0
  668. package/json-schema/system/HistogramBucketConfig.json +92 -0
  669. package/json-schema/system/HookRegisteredEvent.json +30 -0
  670. package/json-schema/system/HookTriggeredEvent.json +34 -0
  671. package/json-schema/system/HttpDestinationConfig.json +111 -0
  672. package/json-schema/system/HttpServerConfig.json +156 -0
  673. package/json-schema/system/InAppNotification.json +48 -0
  674. package/json-schema/system/KernelEventBase.json +19 -0
  675. package/json-schema/system/KernelReadyEvent.json +29 -0
  676. package/json-schema/system/KernelShutdownEvent.json +23 -0
  677. package/json-schema/system/KeyManagementProvider.json +16 -0
  678. package/json-schema/system/KeyRotationPolicy.json +29 -0
  679. package/json-schema/system/LWWRegister.json +51 -0
  680. package/json-schema/system/LifecycleAction.json +15 -0
  681. package/json-schema/system/LifecyclePolicyConfig.json +84 -0
  682. package/json-schema/system/LifecyclePolicyRule.json +68 -0
  683. package/json-schema/system/LogDestination.json +295 -0
  684. package/json-schema/system/LogDestinationType.json +26 -0
  685. package/json-schema/system/LogEnrichmentConfig.json +59 -0
  686. package/json-schema/system/LoggerConfig.json +4 -0
  687. package/json-schema/system/LoggingConfig.json +613 -0
  688. package/json-schema/system/Manifest.json +405 -0
  689. package/json-schema/system/MaskingConfig.json +77 -0
  690. package/json-schema/system/MaskingRule.json +57 -0
  691. package/json-schema/system/MaskingStrategy.json +18 -0
  692. package/json-schema/system/MessageQueueConfig.json +143 -0
  693. package/json-schema/system/MessageQueueProvider.json +17 -0
  694. package/json-schema/system/MetadataCollectionInfo.json +53 -0
  695. package/json-schema/system/MetadataExportOptions.json +49 -0
  696. package/json-schema/system/MetadataFormat.json +15 -0
  697. package/json-schema/system/MetadataImportOptions.json +42 -0
  698. package/json-schema/system/MetadataLoadOptions.json +52 -0
  699. package/json-schema/system/MetadataLoadResult.json +86 -0
  700. package/json-schema/system/MetadataLoaderContract.json +48 -0
  701. package/json-schema/system/MetadataManagerConfig.json +108 -0
  702. package/json-schema/system/MetadataSaveOptions.json +64 -0
  703. package/json-schema/system/MetadataSaveResult.json +42 -0
  704. package/json-schema/system/MetadataStats.json +51 -0
  705. package/json-schema/system/MetadataWatchEvent.json +48 -0
  706. package/json-schema/system/MetricAggregationConfig.json +69 -0
  707. package/json-schema/system/MetricAggregationType.json +25 -0
  708. package/json-schema/system/MetricDataPoint.json +135 -0
  709. package/json-schema/system/MetricDefinition.json +193 -0
  710. package/json-schema/system/MetricExportConfig.json +93 -0
  711. package/json-schema/system/MetricLabels.json +13 -0
  712. package/json-schema/system/MetricType.json +16 -0
  713. package/json-schema/system/MetricUnit.json +32 -0
  714. package/json-schema/system/MetricsConfig.json +718 -0
  715. package/json-schema/system/MiddlewareConfig.json +70 -0
  716. package/json-schema/system/MiddlewareType.json +18 -0
  717. package/json-schema/system/MultipartUploadConfig.json +49 -0
  718. package/json-schema/system/NotificationChannel.json +18 -0
  719. package/json-schema/system/NotificationConfig.json +343 -0
  720. package/json-schema/system/ORSet.json +57 -0
  721. package/json-schema/system/ORSetElement.json +39 -0
  722. package/json-schema/system/OTComponent.json +76 -0
  723. package/json-schema/system/OTOperation.json +128 -0
  724. package/json-schema/system/OTOperationType.json +14 -0
  725. package/json-schema/system/OTTransformResult.json +150 -0
  726. package/json-schema/system/ObjectMetadata.json +90 -0
  727. package/json-schema/system/ObjectStorageConfig.json +475 -0
  728. package/json-schema/system/OpenTelemetryCompatibility.json +196 -0
  729. package/json-schema/system/OtelExporterType.json +22 -0
  730. package/json-schema/system/PCIDSSConfig.json +47 -0
  731. package/json-schema/system/PNCounter.json +37 -0
  732. package/json-schema/system/PluginCapability.json +127 -0
  733. package/json-schema/system/PluginCapabilityManifest.json +410 -0
  734. package/json-schema/system/PluginDependency.json +39 -0
  735. package/json-schema/system/PluginErrorEvent.json +46 -0
  736. package/json-schema/system/PluginEventBase.json +24 -0
  737. package/json-schema/system/PluginInterface.json +141 -0
  738. package/json-schema/system/PluginLifecycleEventType.json +31 -0
  739. package/json-schema/system/PluginLifecyclePhaseEvent.json +38 -0
  740. package/json-schema/system/PluginMetadata.json +37 -0
  741. package/json-schema/system/PluginRegisteredEvent.json +28 -0
  742. package/json-schema/system/PluginStartupResult.json +73 -0
  743. package/json-schema/system/PresignedUrlConfig.json +49 -0
  744. package/json-schema/system/ProtocolFeature.json +34 -0
  745. package/json-schema/system/ProtocolReference.json +56 -0
  746. package/json-schema/system/ProtocolVersion.json +30 -0
  747. package/json-schema/system/PushNotification.json +60 -0
  748. package/json-schema/system/QueueConfig.json +133 -0
  749. package/json-schema/system/RealTimeNotificationConfig.json +85 -0
  750. package/json-schema/system/RollbackPlan.json +51 -0
  751. package/json-schema/system/RouteHandlerMetadata.json +85 -0
  752. package/json-schema/system/SMSTemplate.json +36 -0
  753. package/json-schema/system/SamplingDecision.json +15 -0
  754. package/json-schema/system/SamplingStrategyType.json +20 -0
  755. package/json-schema/system/ScopeConfig.json +28 -0
  756. package/json-schema/system/ScopeInfo.json +39 -0
  757. package/json-schema/system/SearchConfig.json +195 -0
  758. package/json-schema/system/SearchIndexConfig.json +78 -0
  759. package/json-schema/system/SearchProvider.json +16 -0
  760. package/json-schema/system/ServerCapabilities.json +63 -0
  761. package/json-schema/system/ServerEvent.json +39 -0
  762. package/json-schema/system/ServerEventType.json +18 -0
  763. package/json-schema/system/ServerStatus.json +93 -0
  764. package/json-schema/system/ServiceFactoryRegistration.json +44 -0
  765. package/json-schema/system/ServiceLevelIndicator.json +105 -0
  766. package/json-schema/system/ServiceLevelObjective.json +170 -0
  767. package/json-schema/system/ServiceMetadata.json +43 -0
  768. package/json-schema/system/ServiceRegisteredEvent.json +28 -0
  769. package/json-schema/system/ServiceRegistryConfig.json +39 -0
  770. package/json-schema/system/ServiceScopeType.json +15 -0
  771. package/json-schema/system/ServiceUnregisteredEvent.json +24 -0
  772. package/json-schema/system/Span.json +387 -0
  773. package/json-schema/system/SpanAttributeValue.json +38 -0
  774. package/json-schema/system/SpanAttributes.json +42 -0
  775. package/json-schema/system/SpanEvent.json +62 -0
  776. package/json-schema/system/SpanKind.json +17 -0
  777. package/json-schema/system/SpanLink.json +110 -0
  778. package/json-schema/system/SpanStatus.json +15 -0
  779. package/json-schema/system/StartupOptions.json +36 -0
  780. package/json-schema/system/StartupOrchestrationResult.json +104 -0
  781. package/json-schema/system/StorageAcl.json +18 -0
  782. package/json-schema/system/StorageClass.json +17 -0
  783. package/json-schema/system/StorageConnection.json +62 -0
  784. package/json-schema/system/StorageProvider.json +21 -0
  785. package/json-schema/system/StorageScope.json +5 -1
  786. package/json-schema/system/StructuredLogEntry.json +191 -0
  787. package/json-schema/system/Task.json +145 -0
  788. package/json-schema/system/TaskExecutionResult.json +85 -0
  789. package/json-schema/system/TaskPriority.json +16 -0
  790. package/json-schema/system/TaskRetryPolicy.json +46 -0
  791. package/json-schema/system/TaskStatus.json +19 -0
  792. package/json-schema/system/TextCRDTOperation.json +52 -0
  793. package/json-schema/system/TextCRDTState.json +105 -0
  794. package/json-schema/system/TimeSeries.json +69 -0
  795. package/json-schema/system/TimeSeriesDataPoint.json +33 -0
  796. package/json-schema/system/TopicConfig.json +39 -0
  797. package/json-schema/system/TraceContext.json +64 -0
  798. package/json-schema/system/TraceContextPropagation.json +79 -0
  799. package/json-schema/system/TraceFlags.json +12 -0
  800. package/json-schema/system/TracePropagationFormat.json +19 -0
  801. package/json-schema/system/TraceSamplingConfig.json +186 -0
  802. package/json-schema/system/TraceState.json +23 -0
  803. package/json-schema/system/TracingConfig.json +536 -0
  804. package/json-schema/system/UserActivityStatus.json +15 -0
  805. package/json-schema/system/ValidationError.json +28 -0
  806. package/json-schema/system/ValidationResult.json +71 -0
  807. package/json-schema/system/ValidationWarning.json +28 -0
  808. package/json-schema/system/VectorClock.json +23 -0
  809. package/json-schema/system/WorkerConfig.json +188 -0
  810. package/json-schema/system/WorkerStats.json +90 -0
  811. package/json-schema/ui/ChartConfig.json +74 -0
  812. package/json-schema/ui/ChartType.json +21 -8
  813. package/json-schema/ui/Dashboard.json +90 -8
  814. package/json-schema/ui/DashboardWidget.json +90 -8
  815. package/json-schema/ui/FieldWidgetProps.json +435 -1
  816. package/json-schema/ui/Page.json +1 -1
  817. package/json-schema/ui/PageComponent.json +1 -1
  818. package/json-schema/ui/PageRegion.json +1 -1
  819. package/json-schema/ui/Report.json +48 -5
  820. package/json-schema/ui/ReportChart.json +48 -5
  821. package/package.json +13 -1
  822. package/dist/api/protocol.d.ts +0 -65
  823. package/dist/api/protocol.d.ts.map +0 -1
  824. package/dist/api/protocol.js +0 -8
  825. package/dist/automation/connector.zod.d.ts.map +0 -1
  826. package/dist/system/data-engine.zod.d.ts +0 -59
  827. package/dist/system/data-engine.zod.d.ts.map +0 -1
  828. package/dist/system/data-engine.zod.js +0 -38
  829. package/dist/system/driver/mongo.zod.d.ts +0 -107
  830. package/dist/system/driver/mongo.zod.d.ts.map +0 -1
  831. package/dist/system/driver/mongo.zod.js +0 -80
  832. package/dist/system/driver/postgres.zod.d.ts.map +0 -1
  833. package/dist/system/driver.zod.d.ts.map +0 -1
  834. package/dist/system/logger.zod.d.ts +0 -111
  835. package/dist/system/logger.zod.d.ts.map +0 -1
  836. package/dist/system/logger.zod.js +0 -75
  837. package/dist/system/scoped-storage.zod.d.ts +0 -81
  838. package/dist/system/scoped-storage.zod.d.ts.map +0 -1
  839. package/dist/system/scoped-storage.zod.js +0 -66
  840. package/dist/ui/block.zod.d.ts +0 -265
  841. package/dist/ui/block.zod.d.ts.map +0 -1
  842. package/dist/ui/block.zod.js +0 -90
  843. package/json-schema/automation/FieldMapping.json +0 -36
  844. package/json-schema/system/DataEngineFilter.json +0 -11
  845. package/json-schema/system/DataEngineQueryOptions.json +0 -48
  846. package/json-schema/system/DriverCapabilities.json +0 -79
  847. package/json-schema/system/DriverInterface.json +0 -98
  848. package/json-schema/system/MongoConfig.json +0 -82
  849. package/json-schema/system/PostgresConfig.json +0 -98
  850. package/json-schema/system/ScopedStorageConfig.json +0 -54
  851. package/json-schema/system/StorageAdapterType.json +0 -17
  852. /package/dist/{system → data}/driver/postgres.zod.js +0 -0
  853. /package/json-schema/{system → data}/DriverOptions.json +0 -0
@@ -0,0 +1,1571 @@
1
+ import { z } from 'zod';
2
+ import { AuthConfigSchema as ConnectorAuthConfigSchema } from '../auth/config.zod';
3
+ /**
4
+ * Connector Protocol - LEVEL 3: Enterprise Connector
5
+ *
6
+ * Defines the standard connector specification for external system integration.
7
+ * Connectors enable ObjectStack to sync data with SaaS apps, databases, file storage,
8
+ * and message queues through a unified protocol.
9
+ *
10
+ * **Positioning in 3-Layer Architecture:**
11
+ * - **L1: Simple Sync** (automation/sync.zod.ts) - Business users - Sync Salesforce to Sheets
12
+ * - **L2: ETL Pipeline** (automation/etl.zod.ts) - Data engineers - Aggregate 10 sources to warehouse
13
+ * - **L3: Enterprise Connector** (THIS FILE) - System integrators - Full SAP integration
14
+ *
15
+ * **SCOPE: Most comprehensive integration layer.**
16
+ * Includes authentication, webhooks, rate limiting, field mapping, bidirectional sync,
17
+ * retry policies, and complete lifecycle management.
18
+ *
19
+ * This protocol supports multiple authentication strategies, bidirectional sync,
20
+ * field mapping, webhooks, and comprehensive rate limiting.
21
+ *
22
+ * Authentication is now imported from the canonical auth/config.zod.ts.
23
+ *
24
+ * ## When to Use This Layer
25
+ *
26
+ * **Use Enterprise Connector when:**
27
+ * - Building enterprise-grade connectors (e.g., Salesforce, SAP, Oracle)
28
+ * - Complex OAuth2/SAML authentication required
29
+ * - Bidirectional sync with field mapping and transformations
30
+ * - Webhook management and rate limiting required
31
+ * - Full CRUD operations and data synchronization
32
+ * - Need comprehensive retry strategies and error handling
33
+ *
34
+ * **Examples:**
35
+ * - Full Salesforce integration with webhooks
36
+ * - SAP ERP connector with CDC (Change Data Capture)
37
+ * - Microsoft Dynamics 365 connector
38
+ *
39
+ * **When to downgrade:**
40
+ * - Simple field sync → Use {@link file://../automation/sync.zod.ts | Simple Sync}
41
+ * - Data transformation only → Use {@link file://../automation/etl.zod.ts | ETL Pipeline}
42
+ *
43
+ * @see {@link file://../automation/sync.zod.ts} for Level 1 (simple sync)
44
+ * @see {@link file://../automation/etl.zod.ts} for Level 2 (data engineering)
45
+ *
46
+ * ## When to use Integration Connector vs. Trigger Registry?
47
+ *
48
+ * **Use `integration/connector.zod.ts` when:**
49
+ * - Building enterprise-grade connectors (e.g., Salesforce, SAP, Oracle)
50
+ * - Complex OAuth2/SAML authentication required
51
+ * - Bidirectional sync with field mapping and transformations
52
+ * - Webhook management and rate limiting required
53
+ * - Full CRUD operations and data synchronization
54
+ * - Need comprehensive retry strategies and error handling
55
+ *
56
+ * **Use `automation/trigger-registry.zod.ts` when:**
57
+ * - Building simple automation triggers (e.g., "when Slack message received, create task")
58
+ * - No complex authentication needed (simple API keys, basic auth)
59
+ * - Lightweight, single-purpose integrations
60
+ * - Quick setup with minimal configuration
61
+ *
62
+ * @see ../../automation/trigger-registry.zod.ts for lightweight automation triggers
63
+ */
64
+ /**
65
+ * @deprecated Use ConnectorAuthConfigSchema from auth/config.zod instead
66
+ * Kept for backward compatibility
67
+ */
68
+ export declare const AuthenticationSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
69
+ type: z.ZodLiteral<"oauth2">;
70
+ authorizationUrl: z.ZodString;
71
+ tokenUrl: z.ZodString;
72
+ clientId: z.ZodString;
73
+ clientSecret: z.ZodString;
74
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
+ redirectUri: z.ZodOptional<z.ZodString>;
76
+ refreshToken: z.ZodOptional<z.ZodString>;
77
+ tokenExpiry: z.ZodOptional<z.ZodNumber>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: "oauth2";
80
+ authorizationUrl: string;
81
+ tokenUrl: string;
82
+ clientId: string;
83
+ clientSecret: string;
84
+ scopes?: string[] | undefined;
85
+ redirectUri?: string | undefined;
86
+ refreshToken?: string | undefined;
87
+ tokenExpiry?: number | undefined;
88
+ }, {
89
+ type: "oauth2";
90
+ authorizationUrl: string;
91
+ tokenUrl: string;
92
+ clientId: string;
93
+ clientSecret: string;
94
+ scopes?: string[] | undefined;
95
+ redirectUri?: string | undefined;
96
+ refreshToken?: string | undefined;
97
+ tokenExpiry?: number | undefined;
98
+ }>, z.ZodObject<{
99
+ type: z.ZodLiteral<"api-key">;
100
+ key: z.ZodString;
101
+ headerName: z.ZodDefault<z.ZodString>;
102
+ paramName: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type: "api-key";
105
+ key: string;
106
+ headerName: string;
107
+ paramName?: string | undefined;
108
+ }, {
109
+ type: "api-key";
110
+ key: string;
111
+ headerName?: string | undefined;
112
+ paramName?: string | undefined;
113
+ }>, z.ZodObject<{
114
+ type: z.ZodLiteral<"basic">;
115
+ username: z.ZodString;
116
+ password: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: "basic";
119
+ password: string;
120
+ username: string;
121
+ }, {
122
+ type: "basic";
123
+ password: string;
124
+ username: string;
125
+ }>, z.ZodObject<{
126
+ type: z.ZodLiteral<"bearer">;
127
+ token: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "bearer";
130
+ token: string;
131
+ }, {
132
+ type: "bearer";
133
+ token: string;
134
+ }>, z.ZodObject<{
135
+ type: z.ZodLiteral<"jwt">;
136
+ token: z.ZodOptional<z.ZodString>;
137
+ secretKey: z.ZodOptional<z.ZodString>;
138
+ algorithm: z.ZodDefault<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512"]>>;
139
+ issuer: z.ZodOptional<z.ZodString>;
140
+ audience: z.ZodOptional<z.ZodString>;
141
+ subject: z.ZodOptional<z.ZodString>;
142
+ expiresIn: z.ZodDefault<z.ZodNumber>;
143
+ claims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ type: "jwt";
146
+ algorithm: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512";
147
+ expiresIn: number;
148
+ token?: string | undefined;
149
+ subject?: string | undefined;
150
+ secretKey?: string | undefined;
151
+ issuer?: string | undefined;
152
+ audience?: string | undefined;
153
+ claims?: Record<string, any> | undefined;
154
+ }, {
155
+ type: "jwt";
156
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | undefined;
157
+ token?: string | undefined;
158
+ expiresIn?: number | undefined;
159
+ subject?: string | undefined;
160
+ secretKey?: string | undefined;
161
+ issuer?: string | undefined;
162
+ audience?: string | undefined;
163
+ claims?: Record<string, any> | undefined;
164
+ }>, z.ZodObject<{
165
+ type: z.ZodLiteral<"saml">;
166
+ entryPoint: z.ZodString;
167
+ issuer: z.ZodString;
168
+ certificate: z.ZodString;
169
+ privateKey: z.ZodOptional<z.ZodString>;
170
+ callbackUrl: z.ZodOptional<z.ZodString>;
171
+ signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha1", "sha256", "sha512"]>>;
172
+ wantAssertionsSigned: z.ZodDefault<z.ZodBoolean>;
173
+ identifierFormat: z.ZodOptional<z.ZodString>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "saml";
176
+ issuer: string;
177
+ entryPoint: string;
178
+ certificate: string;
179
+ signatureAlgorithm: "sha1" | "sha256" | "sha512";
180
+ wantAssertionsSigned: boolean;
181
+ privateKey?: string | undefined;
182
+ callbackUrl?: string | undefined;
183
+ identifierFormat?: string | undefined;
184
+ }, {
185
+ type: "saml";
186
+ issuer: string;
187
+ entryPoint: string;
188
+ certificate: string;
189
+ privateKey?: string | undefined;
190
+ callbackUrl?: string | undefined;
191
+ signatureAlgorithm?: "sha1" | "sha256" | "sha512" | undefined;
192
+ wantAssertionsSigned?: boolean | undefined;
193
+ identifierFormat?: string | undefined;
194
+ }>, z.ZodObject<{
195
+ type: z.ZodLiteral<"none">;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "none";
198
+ }, {
199
+ type: "none";
200
+ }>]>;
201
+ export type Authentication = z.infer<typeof ConnectorAuthConfigSchema>;
202
+ /**
203
+ * Field Transformation Function (Connector-specific)
204
+ *
205
+ * @deprecated Use TransformTypeSchema from shared/mapping.zod.ts instead
206
+ */
207
+ export declare const FieldTransformSchema: z.ZodObject<{
208
+ type: z.ZodEnum<["uppercase", "lowercase", "trim", "date_format", "number_format", "custom"]>;
209
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
210
+ function: z.ZodOptional<z.ZodString>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ type: "custom" | "trim" | "uppercase" | "lowercase" | "date_format" | "number_format";
213
+ function?: string | undefined;
214
+ params?: Record<string, any> | undefined;
215
+ }, {
216
+ type: "custom" | "trim" | "uppercase" | "lowercase" | "date_format" | "number_format";
217
+ function?: string | undefined;
218
+ params?: Record<string, any> | undefined;
219
+ }>;
220
+ export type FieldTransform = z.infer<typeof FieldTransformSchema>;
221
+ /**
222
+ * Connector Field Mapping Configuration
223
+ *
224
+ * Extends the base field mapping with connector-specific features
225
+ * like bidirectional sync modes and data type mapping.
226
+ */
227
+ export declare const FieldMappingSchema: z.ZodObject<{
228
+ source: z.ZodString;
229
+ target: z.ZodString;
230
+ transform: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
231
+ type: z.ZodLiteral<"constant">;
232
+ value: z.ZodAny;
233
+ }, "strip", z.ZodTypeAny, {
234
+ type: "constant";
235
+ value?: any;
236
+ }, {
237
+ type: "constant";
238
+ value?: any;
239
+ }>, z.ZodObject<{
240
+ type: z.ZodLiteral<"cast">;
241
+ targetType: z.ZodEnum<["string", "number", "boolean", "date"]>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: "cast";
244
+ targetType: "string" | "number" | "boolean" | "date";
245
+ }, {
246
+ type: "cast";
247
+ targetType: "string" | "number" | "boolean" | "date";
248
+ }>, z.ZodObject<{
249
+ type: z.ZodLiteral<"lookup">;
250
+ table: z.ZodString;
251
+ keyField: z.ZodString;
252
+ valueField: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ type: "lookup";
255
+ table: string;
256
+ keyField: string;
257
+ valueField: string;
258
+ }, {
259
+ type: "lookup";
260
+ table: string;
261
+ keyField: string;
262
+ valueField: string;
263
+ }>, z.ZodObject<{
264
+ type: z.ZodLiteral<"javascript">;
265
+ expression: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ type: "javascript";
268
+ expression: string;
269
+ }, {
270
+ type: "javascript";
271
+ expression: string;
272
+ }>, z.ZodObject<{
273
+ type: z.ZodLiteral<"map">;
274
+ mappings: z.ZodRecord<z.ZodString, z.ZodAny>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: "map";
277
+ mappings: Record<string, any>;
278
+ }, {
279
+ type: "map";
280
+ mappings: Record<string, any>;
281
+ }>]>>;
282
+ defaultValue: z.ZodOptional<z.ZodAny>;
283
+ } & {
284
+ /**
285
+ * Data type mapping (connector-specific)
286
+ */
287
+ dataType: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "datetime", "json", "array"]>>;
288
+ /**
289
+ * Is this field required?
290
+ */
291
+ required: z.ZodDefault<z.ZodBoolean>;
292
+ /**
293
+ * Bidirectional sync mode (connector-specific)
294
+ */
295
+ syncMode: z.ZodDefault<z.ZodEnum<["read_only", "write_only", "bidirectional"]>>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ source: string;
298
+ target: string;
299
+ required: boolean;
300
+ syncMode: "bidirectional" | "read_only" | "write_only";
301
+ transform?: {
302
+ type: "constant";
303
+ value?: any;
304
+ } | {
305
+ type: "cast";
306
+ targetType: "string" | "number" | "boolean" | "date";
307
+ } | {
308
+ type: "lookup";
309
+ table: string;
310
+ keyField: string;
311
+ valueField: string;
312
+ } | {
313
+ type: "javascript";
314
+ expression: string;
315
+ } | {
316
+ type: "map";
317
+ mappings: Record<string, any>;
318
+ } | undefined;
319
+ defaultValue?: any;
320
+ dataType?: "string" | "number" | "boolean" | "date" | "array" | "datetime" | "json" | undefined;
321
+ }, {
322
+ source: string;
323
+ target: string;
324
+ transform?: {
325
+ type: "constant";
326
+ value?: any;
327
+ } | {
328
+ type: "cast";
329
+ targetType: "string" | "number" | "boolean" | "date";
330
+ } | {
331
+ type: "lookup";
332
+ table: string;
333
+ keyField: string;
334
+ valueField: string;
335
+ } | {
336
+ type: "javascript";
337
+ expression: string;
338
+ } | {
339
+ type: "map";
340
+ mappings: Record<string, any>;
341
+ } | undefined;
342
+ defaultValue?: any;
343
+ required?: boolean | undefined;
344
+ dataType?: "string" | "number" | "boolean" | "date" | "array" | "datetime" | "json" | undefined;
345
+ syncMode?: "bidirectional" | "read_only" | "write_only" | undefined;
346
+ }>;
347
+ export type FieldMapping = z.infer<typeof FieldMappingSchema>;
348
+ /**
349
+ * Sync Strategy Schema
350
+ */
351
+ export declare const SyncStrategySchema: z.ZodEnum<["full", "incremental", "upsert", "append_only"]>;
352
+ export type SyncStrategy = z.infer<typeof SyncStrategySchema>;
353
+ /**
354
+ * Conflict Resolution Strategy
355
+ */
356
+ export declare const ConflictResolutionSchema: z.ZodEnum<["source_wins", "target_wins", "latest_wins", "manual"]>;
357
+ export type ConflictResolution = z.infer<typeof ConflictResolutionSchema>;
358
+ /**
359
+ * Data Synchronization Configuration
360
+ */
361
+ export declare const DataSyncConfigSchema: z.ZodObject<{
362
+ /**
363
+ * Sync strategy
364
+ */
365
+ strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["full", "incremental", "upsert", "append_only"]>>>;
366
+ /**
367
+ * Sync direction
368
+ */
369
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["import", "export", "bidirectional"]>>>;
370
+ /**
371
+ * Sync frequency (cron expression)
372
+ */
373
+ schedule: z.ZodOptional<z.ZodString>;
374
+ /**
375
+ * Enable real-time sync via webhooks
376
+ */
377
+ realtimeSync: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
378
+ /**
379
+ * Field to track last sync timestamp
380
+ */
381
+ timestampField: z.ZodOptional<z.ZodString>;
382
+ /**
383
+ * Conflict resolution strategy
384
+ */
385
+ conflictResolution: z.ZodDefault<z.ZodOptional<z.ZodEnum<["source_wins", "target_wins", "latest_wins", "manual"]>>>;
386
+ /**
387
+ * Batch size for bulk operations
388
+ */
389
+ batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
390
+ /**
391
+ * Delete handling
392
+ */
393
+ deleteMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["hard_delete", "soft_delete", "ignore"]>>>;
394
+ /**
395
+ * Filter criteria for selective sync
396
+ */
397
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ strategy: "full" | "upsert" | "incremental" | "append_only";
400
+ batchSize: number;
401
+ direction: "import" | "export" | "bidirectional";
402
+ conflictResolution: "manual" | "source_wins" | "latest_wins" | "target_wins";
403
+ realtimeSync: boolean;
404
+ deleteMode: "ignore" | "hard_delete" | "soft_delete";
405
+ filters?: Record<string, any> | undefined;
406
+ schedule?: string | undefined;
407
+ timestampField?: string | undefined;
408
+ }, {
409
+ strategy?: "full" | "upsert" | "incremental" | "append_only" | undefined;
410
+ filters?: Record<string, any> | undefined;
411
+ batchSize?: number | undefined;
412
+ schedule?: string | undefined;
413
+ direction?: "import" | "export" | "bidirectional" | undefined;
414
+ conflictResolution?: "manual" | "source_wins" | "latest_wins" | "target_wins" | undefined;
415
+ realtimeSync?: boolean | undefined;
416
+ timestampField?: string | undefined;
417
+ deleteMode?: "ignore" | "hard_delete" | "soft_delete" | undefined;
418
+ }>;
419
+ export type DataSyncConfig = z.infer<typeof DataSyncConfigSchema>;
420
+ /**
421
+ * Webhook Event Schema
422
+ */
423
+ export declare const WebhookEventSchema: z.ZodEnum<["record.created", "record.updated", "record.deleted", "sync.started", "sync.completed", "sync.failed", "auth.expired", "rate_limit.exceeded"]>;
424
+ export type WebhookEvent = z.infer<typeof WebhookEventSchema>;
425
+ /**
426
+ * Webhook Signature Algorithm
427
+ */
428
+ export declare const WebhookSignatureAlgorithmSchema: z.ZodEnum<["hmac_sha256", "hmac_sha512", "none"]>;
429
+ export type WebhookSignatureAlgorithm = z.infer<typeof WebhookSignatureAlgorithmSchema>;
430
+ /**
431
+ * Webhook Configuration Schema
432
+ *
433
+ * Extends the canonical WebhookSchema with connector-specific event types.
434
+ * This allows connectors to subscribe to both data events and connector lifecycle events.
435
+ */
436
+ export declare const WebhookConfigSchema: z.ZodObject<{
437
+ name: z.ZodString;
438
+ label: z.ZodOptional<z.ZodString>;
439
+ object: z.ZodOptional<z.ZodString>;
440
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["create", "update", "delete", "undelete", "api"]>, "many">>;
441
+ url: z.ZodString;
442
+ method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>;
443
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
444
+ body: z.ZodOptional<z.ZodAny>;
445
+ payloadFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
446
+ includeSession: z.ZodDefault<z.ZodBoolean>;
447
+ authentication: z.ZodOptional<z.ZodObject<{
448
+ type: z.ZodEnum<["none", "bearer", "basic", "api-key"]>;
449
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ type: "none" | "api-key" | "basic" | "bearer";
452
+ credentials?: Record<string, string> | undefined;
453
+ }, {
454
+ type: "none" | "api-key" | "basic" | "bearer";
455
+ credentials?: Record<string, string> | undefined;
456
+ }>>;
457
+ retryPolicy: z.ZodOptional<z.ZodObject<{
458
+ maxRetries: z.ZodDefault<z.ZodNumber>;
459
+ backoffStrategy: z.ZodDefault<z.ZodEnum<["exponential", "linear", "fixed"]>>;
460
+ initialDelayMs: z.ZodDefault<z.ZodNumber>;
461
+ maxDelayMs: z.ZodDefault<z.ZodNumber>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ maxRetries: number;
464
+ backoffStrategy: "fixed" | "linear" | "exponential";
465
+ initialDelayMs: number;
466
+ maxDelayMs: number;
467
+ }, {
468
+ maxRetries?: number | undefined;
469
+ backoffStrategy?: "fixed" | "linear" | "exponential" | undefined;
470
+ initialDelayMs?: number | undefined;
471
+ maxDelayMs?: number | undefined;
472
+ }>>;
473
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
474
+ secret: z.ZodOptional<z.ZodString>;
475
+ isActive: z.ZodDefault<z.ZodBoolean>;
476
+ description: z.ZodOptional<z.ZodString>;
477
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
478
+ } & {
479
+ /**
480
+ * Events to listen for
481
+ * Connector-specific events like sync completion, auth expiry, etc.
482
+ */
483
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<["record.created", "record.updated", "record.deleted", "sync.started", "sync.completed", "sync.failed", "auth.expired", "rate_limit.exceeded"]>, "many">>;
484
+ /**
485
+ * Signature algorithm for webhook security
486
+ */
487
+ signatureAlgorithm: z.ZodDefault<z.ZodOptional<z.ZodEnum<["hmac_sha256", "hmac_sha512", "none"]>>>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ url: string;
490
+ name: string;
491
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
492
+ timeoutMs: number;
493
+ signatureAlgorithm: "none" | "hmac_sha256" | "hmac_sha512";
494
+ includeSession: boolean;
495
+ isActive: boolean;
496
+ object?: string | undefined;
497
+ tags?: string[] | undefined;
498
+ label?: string | undefined;
499
+ description?: string | undefined;
500
+ events?: ("record.created" | "record.updated" | "record.deleted" | "sync.started" | "sync.completed" | "sync.failed" | "auth.expired" | "rate_limit.exceeded")[] | undefined;
501
+ headers?: Record<string, string> | undefined;
502
+ authentication?: {
503
+ type: "none" | "api-key" | "basic" | "bearer";
504
+ credentials?: Record<string, string> | undefined;
505
+ } | undefined;
506
+ body?: any;
507
+ secret?: string | undefined;
508
+ retryPolicy?: {
509
+ maxRetries: number;
510
+ backoffStrategy: "fixed" | "linear" | "exponential";
511
+ initialDelayMs: number;
512
+ maxDelayMs: number;
513
+ } | undefined;
514
+ triggers?: ("update" | "delete" | "create" | "api" | "undelete")[] | undefined;
515
+ payloadFields?: string[] | undefined;
516
+ }, {
517
+ url: string;
518
+ name: string;
519
+ object?: string | undefined;
520
+ tags?: string[] | undefined;
521
+ label?: string | undefined;
522
+ description?: string | undefined;
523
+ events?: ("record.created" | "record.updated" | "record.deleted" | "sync.started" | "sync.completed" | "sync.failed" | "auth.expired" | "rate_limit.exceeded")[] | undefined;
524
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
525
+ headers?: Record<string, string> | undefined;
526
+ authentication?: {
527
+ type: "none" | "api-key" | "basic" | "bearer";
528
+ credentials?: Record<string, string> | undefined;
529
+ } | undefined;
530
+ body?: any;
531
+ secret?: string | undefined;
532
+ timeoutMs?: number | undefined;
533
+ retryPolicy?: {
534
+ maxRetries?: number | undefined;
535
+ backoffStrategy?: "fixed" | "linear" | "exponential" | undefined;
536
+ initialDelayMs?: number | undefined;
537
+ maxDelayMs?: number | undefined;
538
+ } | undefined;
539
+ signatureAlgorithm?: "none" | "hmac_sha256" | "hmac_sha512" | undefined;
540
+ triggers?: ("update" | "delete" | "create" | "api" | "undelete")[] | undefined;
541
+ payloadFields?: string[] | undefined;
542
+ includeSession?: boolean | undefined;
543
+ isActive?: boolean | undefined;
544
+ }>;
545
+ export type WebhookConfig = z.infer<typeof WebhookConfigSchema>;
546
+ /**
547
+ * Rate Limiting Strategy
548
+ */
549
+ export declare const RateLimitStrategySchema: z.ZodEnum<["fixed_window", "sliding_window", "token_bucket", "leaky_bucket"]>;
550
+ export type RateLimitStrategy = z.infer<typeof RateLimitStrategySchema>;
551
+ /**
552
+ * Rate Limiting Configuration
553
+ */
554
+ export declare const RateLimitConfigSchema: z.ZodObject<{
555
+ /**
556
+ * Rate limiting strategy
557
+ */
558
+ strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["fixed_window", "sliding_window", "token_bucket", "leaky_bucket"]>>>;
559
+ /**
560
+ * Maximum requests per window
561
+ */
562
+ maxRequests: z.ZodNumber;
563
+ /**
564
+ * Time window in seconds
565
+ */
566
+ windowSeconds: z.ZodNumber;
567
+ /**
568
+ * Burst capacity (for token bucket)
569
+ */
570
+ burstCapacity: z.ZodOptional<z.ZodNumber>;
571
+ /**
572
+ * Respect external system rate limits
573
+ */
574
+ respectUpstreamLimits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
575
+ /**
576
+ * Custom rate limit headers to check
577
+ */
578
+ rateLimitHeaders: z.ZodOptional<z.ZodObject<{
579
+ remaining: z.ZodDefault<z.ZodOptional<z.ZodString>>;
580
+ limit: z.ZodDefault<z.ZodOptional<z.ZodString>>;
581
+ reset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ limit: string;
584
+ remaining: string;
585
+ reset: string;
586
+ }, {
587
+ limit?: string | undefined;
588
+ remaining?: string | undefined;
589
+ reset?: string | undefined;
590
+ }>>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ maxRequests: number;
593
+ strategy: "sliding_window" | "token_bucket" | "fixed_window" | "leaky_bucket";
594
+ windowSeconds: number;
595
+ respectUpstreamLimits: boolean;
596
+ burstCapacity?: number | undefined;
597
+ rateLimitHeaders?: {
598
+ limit: string;
599
+ remaining: string;
600
+ reset: string;
601
+ } | undefined;
602
+ }, {
603
+ maxRequests: number;
604
+ windowSeconds: number;
605
+ strategy?: "sliding_window" | "token_bucket" | "fixed_window" | "leaky_bucket" | undefined;
606
+ burstCapacity?: number | undefined;
607
+ respectUpstreamLimits?: boolean | undefined;
608
+ rateLimitHeaders?: {
609
+ limit?: string | undefined;
610
+ remaining?: string | undefined;
611
+ reset?: string | undefined;
612
+ } | undefined;
613
+ }>;
614
+ export type RateLimitConfig = z.infer<typeof RateLimitConfigSchema>;
615
+ /**
616
+ * Retry Strategy
617
+ */
618
+ export declare const RetryStrategySchema: z.ZodEnum<["exponential_backoff", "linear_backoff", "fixed_delay", "no_retry"]>;
619
+ export type RetryStrategy = z.infer<typeof RetryStrategySchema>;
620
+ /**
621
+ * Retry Configuration
622
+ */
623
+ export declare const RetryConfigSchema: z.ZodObject<{
624
+ /**
625
+ * Retry strategy
626
+ */
627
+ strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["exponential_backoff", "linear_backoff", "fixed_delay", "no_retry"]>>>;
628
+ /**
629
+ * Maximum retry attempts
630
+ */
631
+ maxAttempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
632
+ /**
633
+ * Initial delay in milliseconds
634
+ */
635
+ initialDelayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
636
+ /**
637
+ * Maximum delay in milliseconds
638
+ */
639
+ maxDelayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
640
+ /**
641
+ * Backoff multiplier (for exponential backoff)
642
+ */
643
+ backoffMultiplier: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
644
+ /**
645
+ * HTTP status codes to retry
646
+ */
647
+ retryableStatusCodes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
648
+ /**
649
+ * Retry on network errors
650
+ */
651
+ retryOnNetworkError: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
652
+ /**
653
+ * Jitter to add randomness to retry delays
654
+ */
655
+ jitter: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ strategy: "no_retry" | "exponential_backoff" | "linear_backoff" | "fixed_delay";
658
+ backoffMultiplier: number;
659
+ initialDelayMs: number;
660
+ maxDelayMs: number;
661
+ maxAttempts: number;
662
+ retryableStatusCodes: number[];
663
+ retryOnNetworkError: boolean;
664
+ jitter: boolean;
665
+ }, {
666
+ strategy?: "no_retry" | "exponential_backoff" | "linear_backoff" | "fixed_delay" | undefined;
667
+ backoffMultiplier?: number | undefined;
668
+ initialDelayMs?: number | undefined;
669
+ maxDelayMs?: number | undefined;
670
+ maxAttempts?: number | undefined;
671
+ retryableStatusCodes?: number[] | undefined;
672
+ retryOnNetworkError?: boolean | undefined;
673
+ jitter?: boolean | undefined;
674
+ }>;
675
+ export type RetryConfig = z.infer<typeof RetryConfigSchema>;
676
+ /**
677
+ * Connector Type
678
+ */
679
+ export declare const ConnectorTypeSchema: z.ZodEnum<["saas", "database", "file_storage", "message_queue", "api", "custom"]>;
680
+ export type ConnectorType = z.infer<typeof ConnectorTypeSchema>;
681
+ /**
682
+ * Connector Status
683
+ */
684
+ export declare const ConnectorStatusSchema: z.ZodEnum<["active", "inactive", "error", "configuring"]>;
685
+ export type ConnectorStatus = z.infer<typeof ConnectorStatusSchema>;
686
+ /**
687
+ * Base Connector Schema
688
+ * Core connector configuration shared across all connector types
689
+ */
690
+ export declare const ConnectorSchema: z.ZodObject<{
691
+ /**
692
+ * Machine name (snake_case)
693
+ */
694
+ name: z.ZodString;
695
+ /**
696
+ * Human-readable label
697
+ */
698
+ label: z.ZodString;
699
+ /**
700
+ * Connector type
701
+ */
702
+ type: z.ZodEnum<["saas", "database", "file_storage", "message_queue", "api", "custom"]>;
703
+ /**
704
+ * Description
705
+ */
706
+ description: z.ZodOptional<z.ZodString>;
707
+ /**
708
+ * Icon identifier
709
+ */
710
+ icon: z.ZodOptional<z.ZodString>;
711
+ /**
712
+ * Authentication configuration
713
+ */
714
+ authentication: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
715
+ type: z.ZodLiteral<"oauth2">;
716
+ authorizationUrl: z.ZodString;
717
+ tokenUrl: z.ZodString;
718
+ clientId: z.ZodString;
719
+ clientSecret: z.ZodString;
720
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
721
+ redirectUri: z.ZodOptional<z.ZodString>;
722
+ refreshToken: z.ZodOptional<z.ZodString>;
723
+ tokenExpiry: z.ZodOptional<z.ZodNumber>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ type: "oauth2";
726
+ authorizationUrl: string;
727
+ tokenUrl: string;
728
+ clientId: string;
729
+ clientSecret: string;
730
+ scopes?: string[] | undefined;
731
+ redirectUri?: string | undefined;
732
+ refreshToken?: string | undefined;
733
+ tokenExpiry?: number | undefined;
734
+ }, {
735
+ type: "oauth2";
736
+ authorizationUrl: string;
737
+ tokenUrl: string;
738
+ clientId: string;
739
+ clientSecret: string;
740
+ scopes?: string[] | undefined;
741
+ redirectUri?: string | undefined;
742
+ refreshToken?: string | undefined;
743
+ tokenExpiry?: number | undefined;
744
+ }>, z.ZodObject<{
745
+ type: z.ZodLiteral<"api-key">;
746
+ key: z.ZodString;
747
+ headerName: z.ZodDefault<z.ZodString>;
748
+ paramName: z.ZodOptional<z.ZodString>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ type: "api-key";
751
+ key: string;
752
+ headerName: string;
753
+ paramName?: string | undefined;
754
+ }, {
755
+ type: "api-key";
756
+ key: string;
757
+ headerName?: string | undefined;
758
+ paramName?: string | undefined;
759
+ }>, z.ZodObject<{
760
+ type: z.ZodLiteral<"basic">;
761
+ username: z.ZodString;
762
+ password: z.ZodString;
763
+ }, "strip", z.ZodTypeAny, {
764
+ type: "basic";
765
+ password: string;
766
+ username: string;
767
+ }, {
768
+ type: "basic";
769
+ password: string;
770
+ username: string;
771
+ }>, z.ZodObject<{
772
+ type: z.ZodLiteral<"bearer">;
773
+ token: z.ZodString;
774
+ }, "strip", z.ZodTypeAny, {
775
+ type: "bearer";
776
+ token: string;
777
+ }, {
778
+ type: "bearer";
779
+ token: string;
780
+ }>, z.ZodObject<{
781
+ type: z.ZodLiteral<"jwt">;
782
+ token: z.ZodOptional<z.ZodString>;
783
+ secretKey: z.ZodOptional<z.ZodString>;
784
+ algorithm: z.ZodDefault<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512"]>>;
785
+ issuer: z.ZodOptional<z.ZodString>;
786
+ audience: z.ZodOptional<z.ZodString>;
787
+ subject: z.ZodOptional<z.ZodString>;
788
+ expiresIn: z.ZodDefault<z.ZodNumber>;
789
+ claims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
790
+ }, "strip", z.ZodTypeAny, {
791
+ type: "jwt";
792
+ algorithm: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512";
793
+ expiresIn: number;
794
+ token?: string | undefined;
795
+ subject?: string | undefined;
796
+ secretKey?: string | undefined;
797
+ issuer?: string | undefined;
798
+ audience?: string | undefined;
799
+ claims?: Record<string, any> | undefined;
800
+ }, {
801
+ type: "jwt";
802
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | undefined;
803
+ token?: string | undefined;
804
+ expiresIn?: number | undefined;
805
+ subject?: string | undefined;
806
+ secretKey?: string | undefined;
807
+ issuer?: string | undefined;
808
+ audience?: string | undefined;
809
+ claims?: Record<string, any> | undefined;
810
+ }>, z.ZodObject<{
811
+ type: z.ZodLiteral<"saml">;
812
+ entryPoint: z.ZodString;
813
+ issuer: z.ZodString;
814
+ certificate: z.ZodString;
815
+ privateKey: z.ZodOptional<z.ZodString>;
816
+ callbackUrl: z.ZodOptional<z.ZodString>;
817
+ signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha1", "sha256", "sha512"]>>;
818
+ wantAssertionsSigned: z.ZodDefault<z.ZodBoolean>;
819
+ identifierFormat: z.ZodOptional<z.ZodString>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ type: "saml";
822
+ issuer: string;
823
+ entryPoint: string;
824
+ certificate: string;
825
+ signatureAlgorithm: "sha1" | "sha256" | "sha512";
826
+ wantAssertionsSigned: boolean;
827
+ privateKey?: string | undefined;
828
+ callbackUrl?: string | undefined;
829
+ identifierFormat?: string | undefined;
830
+ }, {
831
+ type: "saml";
832
+ issuer: string;
833
+ entryPoint: string;
834
+ certificate: string;
835
+ privateKey?: string | undefined;
836
+ callbackUrl?: string | undefined;
837
+ signatureAlgorithm?: "sha1" | "sha256" | "sha512" | undefined;
838
+ wantAssertionsSigned?: boolean | undefined;
839
+ identifierFormat?: string | undefined;
840
+ }>, z.ZodObject<{
841
+ type: z.ZodLiteral<"none">;
842
+ }, "strip", z.ZodTypeAny, {
843
+ type: "none";
844
+ }, {
845
+ type: "none";
846
+ }>]>;
847
+ /**
848
+ * Data synchronization configuration
849
+ */
850
+ syncConfig: z.ZodOptional<z.ZodObject<{
851
+ /**
852
+ * Sync strategy
853
+ */
854
+ strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["full", "incremental", "upsert", "append_only"]>>>;
855
+ /**
856
+ * Sync direction
857
+ */
858
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["import", "export", "bidirectional"]>>>;
859
+ /**
860
+ * Sync frequency (cron expression)
861
+ */
862
+ schedule: z.ZodOptional<z.ZodString>;
863
+ /**
864
+ * Enable real-time sync via webhooks
865
+ */
866
+ realtimeSync: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
867
+ /**
868
+ * Field to track last sync timestamp
869
+ */
870
+ timestampField: z.ZodOptional<z.ZodString>;
871
+ /**
872
+ * Conflict resolution strategy
873
+ */
874
+ conflictResolution: z.ZodDefault<z.ZodOptional<z.ZodEnum<["source_wins", "target_wins", "latest_wins", "manual"]>>>;
875
+ /**
876
+ * Batch size for bulk operations
877
+ */
878
+ batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
879
+ /**
880
+ * Delete handling
881
+ */
882
+ deleteMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["hard_delete", "soft_delete", "ignore"]>>>;
883
+ /**
884
+ * Filter criteria for selective sync
885
+ */
886
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ strategy: "full" | "upsert" | "incremental" | "append_only";
889
+ batchSize: number;
890
+ direction: "import" | "export" | "bidirectional";
891
+ conflictResolution: "manual" | "source_wins" | "latest_wins" | "target_wins";
892
+ realtimeSync: boolean;
893
+ deleteMode: "ignore" | "hard_delete" | "soft_delete";
894
+ filters?: Record<string, any> | undefined;
895
+ schedule?: string | undefined;
896
+ timestampField?: string | undefined;
897
+ }, {
898
+ strategy?: "full" | "upsert" | "incremental" | "append_only" | undefined;
899
+ filters?: Record<string, any> | undefined;
900
+ batchSize?: number | undefined;
901
+ schedule?: string | undefined;
902
+ direction?: "import" | "export" | "bidirectional" | undefined;
903
+ conflictResolution?: "manual" | "source_wins" | "latest_wins" | "target_wins" | undefined;
904
+ realtimeSync?: boolean | undefined;
905
+ timestampField?: string | undefined;
906
+ deleteMode?: "ignore" | "hard_delete" | "soft_delete" | undefined;
907
+ }>>;
908
+ /**
909
+ * Field mappings
910
+ */
911
+ fieldMappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
912
+ source: z.ZodString;
913
+ target: z.ZodString;
914
+ transform: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
915
+ type: z.ZodLiteral<"constant">;
916
+ value: z.ZodAny;
917
+ }, "strip", z.ZodTypeAny, {
918
+ type: "constant";
919
+ value?: any;
920
+ }, {
921
+ type: "constant";
922
+ value?: any;
923
+ }>, z.ZodObject<{
924
+ type: z.ZodLiteral<"cast">;
925
+ targetType: z.ZodEnum<["string", "number", "boolean", "date"]>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ type: "cast";
928
+ targetType: "string" | "number" | "boolean" | "date";
929
+ }, {
930
+ type: "cast";
931
+ targetType: "string" | "number" | "boolean" | "date";
932
+ }>, z.ZodObject<{
933
+ type: z.ZodLiteral<"lookup">;
934
+ table: z.ZodString;
935
+ keyField: z.ZodString;
936
+ valueField: z.ZodString;
937
+ }, "strip", z.ZodTypeAny, {
938
+ type: "lookup";
939
+ table: string;
940
+ keyField: string;
941
+ valueField: string;
942
+ }, {
943
+ type: "lookup";
944
+ table: string;
945
+ keyField: string;
946
+ valueField: string;
947
+ }>, z.ZodObject<{
948
+ type: z.ZodLiteral<"javascript">;
949
+ expression: z.ZodString;
950
+ }, "strip", z.ZodTypeAny, {
951
+ type: "javascript";
952
+ expression: string;
953
+ }, {
954
+ type: "javascript";
955
+ expression: string;
956
+ }>, z.ZodObject<{
957
+ type: z.ZodLiteral<"map">;
958
+ mappings: z.ZodRecord<z.ZodString, z.ZodAny>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ type: "map";
961
+ mappings: Record<string, any>;
962
+ }, {
963
+ type: "map";
964
+ mappings: Record<string, any>;
965
+ }>]>>;
966
+ defaultValue: z.ZodOptional<z.ZodAny>;
967
+ } & {
968
+ /**
969
+ * Data type mapping (connector-specific)
970
+ */
971
+ dataType: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "datetime", "json", "array"]>>;
972
+ /**
973
+ * Is this field required?
974
+ */
975
+ required: z.ZodDefault<z.ZodBoolean>;
976
+ /**
977
+ * Bidirectional sync mode (connector-specific)
978
+ */
979
+ syncMode: z.ZodDefault<z.ZodEnum<["read_only", "write_only", "bidirectional"]>>;
980
+ }, "strip", z.ZodTypeAny, {
981
+ source: string;
982
+ target: string;
983
+ required: boolean;
984
+ syncMode: "bidirectional" | "read_only" | "write_only";
985
+ transform?: {
986
+ type: "constant";
987
+ value?: any;
988
+ } | {
989
+ type: "cast";
990
+ targetType: "string" | "number" | "boolean" | "date";
991
+ } | {
992
+ type: "lookup";
993
+ table: string;
994
+ keyField: string;
995
+ valueField: string;
996
+ } | {
997
+ type: "javascript";
998
+ expression: string;
999
+ } | {
1000
+ type: "map";
1001
+ mappings: Record<string, any>;
1002
+ } | undefined;
1003
+ defaultValue?: any;
1004
+ dataType?: "string" | "number" | "boolean" | "date" | "array" | "datetime" | "json" | undefined;
1005
+ }, {
1006
+ source: string;
1007
+ target: string;
1008
+ transform?: {
1009
+ type: "constant";
1010
+ value?: any;
1011
+ } | {
1012
+ type: "cast";
1013
+ targetType: "string" | "number" | "boolean" | "date";
1014
+ } | {
1015
+ type: "lookup";
1016
+ table: string;
1017
+ keyField: string;
1018
+ valueField: string;
1019
+ } | {
1020
+ type: "javascript";
1021
+ expression: string;
1022
+ } | {
1023
+ type: "map";
1024
+ mappings: Record<string, any>;
1025
+ } | undefined;
1026
+ defaultValue?: any;
1027
+ required?: boolean | undefined;
1028
+ dataType?: "string" | "number" | "boolean" | "date" | "array" | "datetime" | "json" | undefined;
1029
+ syncMode?: "bidirectional" | "read_only" | "write_only" | undefined;
1030
+ }>, "many">>;
1031
+ /**
1032
+ * Webhook configuration
1033
+ */
1034
+ webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1035
+ name: z.ZodString;
1036
+ label: z.ZodOptional<z.ZodString>;
1037
+ object: z.ZodOptional<z.ZodString>;
1038
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["create", "update", "delete", "undelete", "api"]>, "many">>;
1039
+ url: z.ZodString;
1040
+ method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>;
1041
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1042
+ body: z.ZodOptional<z.ZodAny>;
1043
+ payloadFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1044
+ includeSession: z.ZodDefault<z.ZodBoolean>;
1045
+ authentication: z.ZodOptional<z.ZodObject<{
1046
+ type: z.ZodEnum<["none", "bearer", "basic", "api-key"]>;
1047
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ type: "none" | "api-key" | "basic" | "bearer";
1050
+ credentials?: Record<string, string> | undefined;
1051
+ }, {
1052
+ type: "none" | "api-key" | "basic" | "bearer";
1053
+ credentials?: Record<string, string> | undefined;
1054
+ }>>;
1055
+ retryPolicy: z.ZodOptional<z.ZodObject<{
1056
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1057
+ backoffStrategy: z.ZodDefault<z.ZodEnum<["exponential", "linear", "fixed"]>>;
1058
+ initialDelayMs: z.ZodDefault<z.ZodNumber>;
1059
+ maxDelayMs: z.ZodDefault<z.ZodNumber>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ maxRetries: number;
1062
+ backoffStrategy: "fixed" | "linear" | "exponential";
1063
+ initialDelayMs: number;
1064
+ maxDelayMs: number;
1065
+ }, {
1066
+ maxRetries?: number | undefined;
1067
+ backoffStrategy?: "fixed" | "linear" | "exponential" | undefined;
1068
+ initialDelayMs?: number | undefined;
1069
+ maxDelayMs?: number | undefined;
1070
+ }>>;
1071
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1072
+ secret: z.ZodOptional<z.ZodString>;
1073
+ isActive: z.ZodDefault<z.ZodBoolean>;
1074
+ description: z.ZodOptional<z.ZodString>;
1075
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1076
+ } & {
1077
+ /**
1078
+ * Events to listen for
1079
+ * Connector-specific events like sync completion, auth expiry, etc.
1080
+ */
1081
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<["record.created", "record.updated", "record.deleted", "sync.started", "sync.completed", "sync.failed", "auth.expired", "rate_limit.exceeded"]>, "many">>;
1082
+ /**
1083
+ * Signature algorithm for webhook security
1084
+ */
1085
+ signatureAlgorithm: z.ZodDefault<z.ZodOptional<z.ZodEnum<["hmac_sha256", "hmac_sha512", "none"]>>>;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ url: string;
1088
+ name: string;
1089
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
1090
+ timeoutMs: number;
1091
+ signatureAlgorithm: "none" | "hmac_sha256" | "hmac_sha512";
1092
+ includeSession: boolean;
1093
+ isActive: boolean;
1094
+ object?: string | undefined;
1095
+ tags?: string[] | undefined;
1096
+ label?: string | undefined;
1097
+ description?: string | undefined;
1098
+ events?: ("record.created" | "record.updated" | "record.deleted" | "sync.started" | "sync.completed" | "sync.failed" | "auth.expired" | "rate_limit.exceeded")[] | undefined;
1099
+ headers?: Record<string, string> | undefined;
1100
+ authentication?: {
1101
+ type: "none" | "api-key" | "basic" | "bearer";
1102
+ credentials?: Record<string, string> | undefined;
1103
+ } | undefined;
1104
+ body?: any;
1105
+ secret?: string | undefined;
1106
+ retryPolicy?: {
1107
+ maxRetries: number;
1108
+ backoffStrategy: "fixed" | "linear" | "exponential";
1109
+ initialDelayMs: number;
1110
+ maxDelayMs: number;
1111
+ } | undefined;
1112
+ triggers?: ("update" | "delete" | "create" | "api" | "undelete")[] | undefined;
1113
+ payloadFields?: string[] | undefined;
1114
+ }, {
1115
+ url: string;
1116
+ name: string;
1117
+ object?: string | undefined;
1118
+ tags?: string[] | undefined;
1119
+ label?: string | undefined;
1120
+ description?: string | undefined;
1121
+ events?: ("record.created" | "record.updated" | "record.deleted" | "sync.started" | "sync.completed" | "sync.failed" | "auth.expired" | "rate_limit.exceeded")[] | undefined;
1122
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
1123
+ headers?: Record<string, string> | undefined;
1124
+ authentication?: {
1125
+ type: "none" | "api-key" | "basic" | "bearer";
1126
+ credentials?: Record<string, string> | undefined;
1127
+ } | undefined;
1128
+ body?: any;
1129
+ secret?: string | undefined;
1130
+ timeoutMs?: number | undefined;
1131
+ retryPolicy?: {
1132
+ maxRetries?: number | undefined;
1133
+ backoffStrategy?: "fixed" | "linear" | "exponential" | undefined;
1134
+ initialDelayMs?: number | undefined;
1135
+ maxDelayMs?: number | undefined;
1136
+ } | undefined;
1137
+ signatureAlgorithm?: "none" | "hmac_sha256" | "hmac_sha512" | undefined;
1138
+ triggers?: ("update" | "delete" | "create" | "api" | "undelete")[] | undefined;
1139
+ payloadFields?: string[] | undefined;
1140
+ includeSession?: boolean | undefined;
1141
+ isActive?: boolean | undefined;
1142
+ }>, "many">>;
1143
+ /**
1144
+ * Rate limiting configuration
1145
+ */
1146
+ rateLimitConfig: z.ZodOptional<z.ZodObject<{
1147
+ /**
1148
+ * Rate limiting strategy
1149
+ */
1150
+ strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["fixed_window", "sliding_window", "token_bucket", "leaky_bucket"]>>>;
1151
+ /**
1152
+ * Maximum requests per window
1153
+ */
1154
+ maxRequests: z.ZodNumber;
1155
+ /**
1156
+ * Time window in seconds
1157
+ */
1158
+ windowSeconds: z.ZodNumber;
1159
+ /**
1160
+ * Burst capacity (for token bucket)
1161
+ */
1162
+ burstCapacity: z.ZodOptional<z.ZodNumber>;
1163
+ /**
1164
+ * Respect external system rate limits
1165
+ */
1166
+ respectUpstreamLimits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1167
+ /**
1168
+ * Custom rate limit headers to check
1169
+ */
1170
+ rateLimitHeaders: z.ZodOptional<z.ZodObject<{
1171
+ remaining: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1172
+ limit: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1173
+ reset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ limit: string;
1176
+ remaining: string;
1177
+ reset: string;
1178
+ }, {
1179
+ limit?: string | undefined;
1180
+ remaining?: string | undefined;
1181
+ reset?: string | undefined;
1182
+ }>>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ maxRequests: number;
1185
+ strategy: "sliding_window" | "token_bucket" | "fixed_window" | "leaky_bucket";
1186
+ windowSeconds: number;
1187
+ respectUpstreamLimits: boolean;
1188
+ burstCapacity?: number | undefined;
1189
+ rateLimitHeaders?: {
1190
+ limit: string;
1191
+ remaining: string;
1192
+ reset: string;
1193
+ } | undefined;
1194
+ }, {
1195
+ maxRequests: number;
1196
+ windowSeconds: number;
1197
+ strategy?: "sliding_window" | "token_bucket" | "fixed_window" | "leaky_bucket" | undefined;
1198
+ burstCapacity?: number | undefined;
1199
+ respectUpstreamLimits?: boolean | undefined;
1200
+ rateLimitHeaders?: {
1201
+ limit?: string | undefined;
1202
+ remaining?: string | undefined;
1203
+ reset?: string | undefined;
1204
+ } | undefined;
1205
+ }>>;
1206
+ /**
1207
+ * Retry configuration
1208
+ */
1209
+ retryConfig: z.ZodOptional<z.ZodObject<{
1210
+ /**
1211
+ * Retry strategy
1212
+ */
1213
+ strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["exponential_backoff", "linear_backoff", "fixed_delay", "no_retry"]>>>;
1214
+ /**
1215
+ * Maximum retry attempts
1216
+ */
1217
+ maxAttempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1218
+ /**
1219
+ * Initial delay in milliseconds
1220
+ */
1221
+ initialDelayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1222
+ /**
1223
+ * Maximum delay in milliseconds
1224
+ */
1225
+ maxDelayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1226
+ /**
1227
+ * Backoff multiplier (for exponential backoff)
1228
+ */
1229
+ backoffMultiplier: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1230
+ /**
1231
+ * HTTP status codes to retry
1232
+ */
1233
+ retryableStatusCodes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1234
+ /**
1235
+ * Retry on network errors
1236
+ */
1237
+ retryOnNetworkError: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1238
+ /**
1239
+ * Jitter to add randomness to retry delays
1240
+ */
1241
+ jitter: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ strategy: "no_retry" | "exponential_backoff" | "linear_backoff" | "fixed_delay";
1244
+ backoffMultiplier: number;
1245
+ initialDelayMs: number;
1246
+ maxDelayMs: number;
1247
+ maxAttempts: number;
1248
+ retryableStatusCodes: number[];
1249
+ retryOnNetworkError: boolean;
1250
+ jitter: boolean;
1251
+ }, {
1252
+ strategy?: "no_retry" | "exponential_backoff" | "linear_backoff" | "fixed_delay" | undefined;
1253
+ backoffMultiplier?: number | undefined;
1254
+ initialDelayMs?: number | undefined;
1255
+ maxDelayMs?: number | undefined;
1256
+ maxAttempts?: number | undefined;
1257
+ retryableStatusCodes?: number[] | undefined;
1258
+ retryOnNetworkError?: boolean | undefined;
1259
+ jitter?: boolean | undefined;
1260
+ }>>;
1261
+ /**
1262
+ * Connection timeout in milliseconds
1263
+ */
1264
+ connectionTimeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1265
+ /**
1266
+ * Request timeout in milliseconds
1267
+ */
1268
+ requestTimeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1269
+ /**
1270
+ * Connector status
1271
+ */
1272
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["active", "inactive", "error", "configuring"]>>>;
1273
+ /**
1274
+ * Enable connector
1275
+ */
1276
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1277
+ /**
1278
+ * Custom metadata
1279
+ */
1280
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ type: "custom" | "database" | "api" | "saas" | "file_storage" | "message_queue";
1283
+ status: "active" | "error" | "inactive" | "configuring";
1284
+ enabled: boolean;
1285
+ label: string;
1286
+ name: string;
1287
+ authentication: {
1288
+ type: "oauth2";
1289
+ authorizationUrl: string;
1290
+ tokenUrl: string;
1291
+ clientId: string;
1292
+ clientSecret: string;
1293
+ scopes?: string[] | undefined;
1294
+ redirectUri?: string | undefined;
1295
+ refreshToken?: string | undefined;
1296
+ tokenExpiry?: number | undefined;
1297
+ } | {
1298
+ type: "api-key";
1299
+ key: string;
1300
+ headerName: string;
1301
+ paramName?: string | undefined;
1302
+ } | {
1303
+ type: "basic";
1304
+ password: string;
1305
+ username: string;
1306
+ } | {
1307
+ type: "bearer";
1308
+ token: string;
1309
+ } | {
1310
+ type: "none";
1311
+ } | {
1312
+ type: "jwt";
1313
+ algorithm: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512";
1314
+ expiresIn: number;
1315
+ token?: string | undefined;
1316
+ subject?: string | undefined;
1317
+ secretKey?: string | undefined;
1318
+ issuer?: string | undefined;
1319
+ audience?: string | undefined;
1320
+ claims?: Record<string, any> | undefined;
1321
+ } | {
1322
+ type: "saml";
1323
+ issuer: string;
1324
+ entryPoint: string;
1325
+ certificate: string;
1326
+ signatureAlgorithm: "sha1" | "sha256" | "sha512";
1327
+ wantAssertionsSigned: boolean;
1328
+ privateKey?: string | undefined;
1329
+ callbackUrl?: string | undefined;
1330
+ identifierFormat?: string | undefined;
1331
+ };
1332
+ connectionTimeoutMs: number;
1333
+ requestTimeoutMs: number;
1334
+ description?: string | undefined;
1335
+ icon?: string | undefined;
1336
+ metadata?: Record<string, any> | undefined;
1337
+ fieldMappings?: {
1338
+ source: string;
1339
+ target: string;
1340
+ required: boolean;
1341
+ syncMode: "bidirectional" | "read_only" | "write_only";
1342
+ transform?: {
1343
+ type: "constant";
1344
+ value?: any;
1345
+ } | {
1346
+ type: "cast";
1347
+ targetType: "string" | "number" | "boolean" | "date";
1348
+ } | {
1349
+ type: "lookup";
1350
+ table: string;
1351
+ keyField: string;
1352
+ valueField: string;
1353
+ } | {
1354
+ type: "javascript";
1355
+ expression: string;
1356
+ } | {
1357
+ type: "map";
1358
+ mappings: Record<string, any>;
1359
+ } | undefined;
1360
+ defaultValue?: any;
1361
+ dataType?: "string" | "number" | "boolean" | "date" | "array" | "datetime" | "json" | undefined;
1362
+ }[] | undefined;
1363
+ webhooks?: {
1364
+ url: string;
1365
+ name: string;
1366
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
1367
+ timeoutMs: number;
1368
+ signatureAlgorithm: "none" | "hmac_sha256" | "hmac_sha512";
1369
+ includeSession: boolean;
1370
+ isActive: boolean;
1371
+ object?: string | undefined;
1372
+ tags?: string[] | undefined;
1373
+ label?: string | undefined;
1374
+ description?: string | undefined;
1375
+ events?: ("record.created" | "record.updated" | "record.deleted" | "sync.started" | "sync.completed" | "sync.failed" | "auth.expired" | "rate_limit.exceeded")[] | undefined;
1376
+ headers?: Record<string, string> | undefined;
1377
+ authentication?: {
1378
+ type: "none" | "api-key" | "basic" | "bearer";
1379
+ credentials?: Record<string, string> | undefined;
1380
+ } | undefined;
1381
+ body?: any;
1382
+ secret?: string | undefined;
1383
+ retryPolicy?: {
1384
+ maxRetries: number;
1385
+ backoffStrategy: "fixed" | "linear" | "exponential";
1386
+ initialDelayMs: number;
1387
+ maxDelayMs: number;
1388
+ } | undefined;
1389
+ triggers?: ("update" | "delete" | "create" | "api" | "undelete")[] | undefined;
1390
+ payloadFields?: string[] | undefined;
1391
+ }[] | undefined;
1392
+ syncConfig?: {
1393
+ strategy: "full" | "upsert" | "incremental" | "append_only";
1394
+ batchSize: number;
1395
+ direction: "import" | "export" | "bidirectional";
1396
+ conflictResolution: "manual" | "source_wins" | "latest_wins" | "target_wins";
1397
+ realtimeSync: boolean;
1398
+ deleteMode: "ignore" | "hard_delete" | "soft_delete";
1399
+ filters?: Record<string, any> | undefined;
1400
+ schedule?: string | undefined;
1401
+ timestampField?: string | undefined;
1402
+ } | undefined;
1403
+ rateLimitConfig?: {
1404
+ maxRequests: number;
1405
+ strategy: "sliding_window" | "token_bucket" | "fixed_window" | "leaky_bucket";
1406
+ windowSeconds: number;
1407
+ respectUpstreamLimits: boolean;
1408
+ burstCapacity?: number | undefined;
1409
+ rateLimitHeaders?: {
1410
+ limit: string;
1411
+ remaining: string;
1412
+ reset: string;
1413
+ } | undefined;
1414
+ } | undefined;
1415
+ retryConfig?: {
1416
+ strategy: "no_retry" | "exponential_backoff" | "linear_backoff" | "fixed_delay";
1417
+ backoffMultiplier: number;
1418
+ initialDelayMs: number;
1419
+ maxDelayMs: number;
1420
+ maxAttempts: number;
1421
+ retryableStatusCodes: number[];
1422
+ retryOnNetworkError: boolean;
1423
+ jitter: boolean;
1424
+ } | undefined;
1425
+ }, {
1426
+ type: "custom" | "database" | "api" | "saas" | "file_storage" | "message_queue";
1427
+ label: string;
1428
+ name: string;
1429
+ authentication: {
1430
+ type: "oauth2";
1431
+ authorizationUrl: string;
1432
+ tokenUrl: string;
1433
+ clientId: string;
1434
+ clientSecret: string;
1435
+ scopes?: string[] | undefined;
1436
+ redirectUri?: string | undefined;
1437
+ refreshToken?: string | undefined;
1438
+ tokenExpiry?: number | undefined;
1439
+ } | {
1440
+ type: "api-key";
1441
+ key: string;
1442
+ headerName?: string | undefined;
1443
+ paramName?: string | undefined;
1444
+ } | {
1445
+ type: "basic";
1446
+ password: string;
1447
+ username: string;
1448
+ } | {
1449
+ type: "bearer";
1450
+ token: string;
1451
+ } | {
1452
+ type: "none";
1453
+ } | {
1454
+ type: "jwt";
1455
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | undefined;
1456
+ token?: string | undefined;
1457
+ expiresIn?: number | undefined;
1458
+ subject?: string | undefined;
1459
+ secretKey?: string | undefined;
1460
+ issuer?: string | undefined;
1461
+ audience?: string | undefined;
1462
+ claims?: Record<string, any> | undefined;
1463
+ } | {
1464
+ type: "saml";
1465
+ issuer: string;
1466
+ entryPoint: string;
1467
+ certificate: string;
1468
+ privateKey?: string | undefined;
1469
+ callbackUrl?: string | undefined;
1470
+ signatureAlgorithm?: "sha1" | "sha256" | "sha512" | undefined;
1471
+ wantAssertionsSigned?: boolean | undefined;
1472
+ identifierFormat?: string | undefined;
1473
+ };
1474
+ status?: "active" | "error" | "inactive" | "configuring" | undefined;
1475
+ enabled?: boolean | undefined;
1476
+ description?: string | undefined;
1477
+ icon?: string | undefined;
1478
+ metadata?: Record<string, any> | undefined;
1479
+ fieldMappings?: {
1480
+ source: string;
1481
+ target: string;
1482
+ transform?: {
1483
+ type: "constant";
1484
+ value?: any;
1485
+ } | {
1486
+ type: "cast";
1487
+ targetType: "string" | "number" | "boolean" | "date";
1488
+ } | {
1489
+ type: "lookup";
1490
+ table: string;
1491
+ keyField: string;
1492
+ valueField: string;
1493
+ } | {
1494
+ type: "javascript";
1495
+ expression: string;
1496
+ } | {
1497
+ type: "map";
1498
+ mappings: Record<string, any>;
1499
+ } | undefined;
1500
+ defaultValue?: any;
1501
+ required?: boolean | undefined;
1502
+ dataType?: "string" | "number" | "boolean" | "date" | "array" | "datetime" | "json" | undefined;
1503
+ syncMode?: "bidirectional" | "read_only" | "write_only" | undefined;
1504
+ }[] | undefined;
1505
+ webhooks?: {
1506
+ url: string;
1507
+ name: string;
1508
+ object?: string | undefined;
1509
+ tags?: string[] | undefined;
1510
+ label?: string | undefined;
1511
+ description?: string | undefined;
1512
+ events?: ("record.created" | "record.updated" | "record.deleted" | "sync.started" | "sync.completed" | "sync.failed" | "auth.expired" | "rate_limit.exceeded")[] | undefined;
1513
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
1514
+ headers?: Record<string, string> | undefined;
1515
+ authentication?: {
1516
+ type: "none" | "api-key" | "basic" | "bearer";
1517
+ credentials?: Record<string, string> | undefined;
1518
+ } | undefined;
1519
+ body?: any;
1520
+ secret?: string | undefined;
1521
+ timeoutMs?: number | undefined;
1522
+ retryPolicy?: {
1523
+ maxRetries?: number | undefined;
1524
+ backoffStrategy?: "fixed" | "linear" | "exponential" | undefined;
1525
+ initialDelayMs?: number | undefined;
1526
+ maxDelayMs?: number | undefined;
1527
+ } | undefined;
1528
+ signatureAlgorithm?: "none" | "hmac_sha256" | "hmac_sha512" | undefined;
1529
+ triggers?: ("update" | "delete" | "create" | "api" | "undelete")[] | undefined;
1530
+ payloadFields?: string[] | undefined;
1531
+ includeSession?: boolean | undefined;
1532
+ isActive?: boolean | undefined;
1533
+ }[] | undefined;
1534
+ syncConfig?: {
1535
+ strategy?: "full" | "upsert" | "incremental" | "append_only" | undefined;
1536
+ filters?: Record<string, any> | undefined;
1537
+ batchSize?: number | undefined;
1538
+ schedule?: string | undefined;
1539
+ direction?: "import" | "export" | "bidirectional" | undefined;
1540
+ conflictResolution?: "manual" | "source_wins" | "latest_wins" | "target_wins" | undefined;
1541
+ realtimeSync?: boolean | undefined;
1542
+ timestampField?: string | undefined;
1543
+ deleteMode?: "ignore" | "hard_delete" | "soft_delete" | undefined;
1544
+ } | undefined;
1545
+ rateLimitConfig?: {
1546
+ maxRequests: number;
1547
+ windowSeconds: number;
1548
+ strategy?: "sliding_window" | "token_bucket" | "fixed_window" | "leaky_bucket" | undefined;
1549
+ burstCapacity?: number | undefined;
1550
+ respectUpstreamLimits?: boolean | undefined;
1551
+ rateLimitHeaders?: {
1552
+ limit?: string | undefined;
1553
+ remaining?: string | undefined;
1554
+ reset?: string | undefined;
1555
+ } | undefined;
1556
+ } | undefined;
1557
+ retryConfig?: {
1558
+ strategy?: "no_retry" | "exponential_backoff" | "linear_backoff" | "fixed_delay" | undefined;
1559
+ backoffMultiplier?: number | undefined;
1560
+ initialDelayMs?: number | undefined;
1561
+ maxDelayMs?: number | undefined;
1562
+ maxAttempts?: number | undefined;
1563
+ retryableStatusCodes?: number[] | undefined;
1564
+ retryOnNetworkError?: boolean | undefined;
1565
+ jitter?: boolean | undefined;
1566
+ } | undefined;
1567
+ connectionTimeoutMs?: number | undefined;
1568
+ requestTimeoutMs?: number | undefined;
1569
+ }>;
1570
+ export type Connector = z.infer<typeof ConnectorSchema>;
1571
+ //# sourceMappingURL=connector.zod.d.ts.map