@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,1740 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * WebSocket Event Protocol
4
+ *
5
+ * Defines the schema for WebSocket-based real-time communication in ObjectStack.
6
+ * Supports event subscriptions, filtering, presence tracking, and collaborative editing.
7
+ *
8
+ * Industry alignment: Firebase Realtime Database, Socket.IO, Pusher
9
+ */
10
+ /**
11
+ * WebSocket Message Type Enum
12
+ * Defines the types of messages that can be sent over WebSocket
13
+ */
14
+ export declare const WebSocketMessageType: z.ZodEnum<["subscribe", "unsubscribe", "event", "ping", "pong", "ack", "error", "presence", "cursor", "edit"]>;
15
+ export type WebSocketMessageType = z.infer<typeof WebSocketMessageType>;
16
+ /**
17
+ * Event Filter Operator Enum
18
+ * SQL-like filter operators for event filtering
19
+ */
20
+ export declare const FilterOperator: z.ZodEnum<["eq", "ne", "gt", "gte", "lt", "lte", "in", "nin", "contains", "startsWith", "endsWith", "exists", "regex"]>;
21
+ export type FilterOperator = z.infer<typeof FilterOperator>;
22
+ /**
23
+ * Event Filter Condition
24
+ * Defines a single filter condition for event filtering
25
+ */
26
+ export declare const EventFilterCondition: z.ZodObject<{
27
+ field: z.ZodString;
28
+ operator: z.ZodEnum<["eq", "ne", "gt", "gte", "lt", "lte", "in", "nin", "contains", "startsWith", "endsWith", "exists", "regex"]>;
29
+ value: z.ZodOptional<z.ZodAny>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ field: string;
32
+ operator: "regex" | "startsWith" | "endsWith" | "lt" | "lte" | "gt" | "gte" | "eq" | "ne" | "in" | "nin" | "contains" | "exists";
33
+ value?: any;
34
+ }, {
35
+ field: string;
36
+ operator: "regex" | "startsWith" | "endsWith" | "lt" | "lte" | "gt" | "gte" | "eq" | "ne" | "in" | "nin" | "contains" | "exists";
37
+ value?: any;
38
+ }>;
39
+ export type EventFilterCondition = z.infer<typeof EventFilterCondition>;
40
+ /**
41
+ * Event Filter Schema
42
+ * Logical combination of filter conditions
43
+ */
44
+ export declare const EventFilterSchema: z.ZodType<{
45
+ conditions?: EventFilterCondition[];
46
+ and?: EventFilter[];
47
+ or?: EventFilter[];
48
+ not?: EventFilter;
49
+ }>;
50
+ export type EventFilter = z.infer<typeof EventFilterSchema>;
51
+ /**
52
+ * Event Pattern Schema
53
+ * Event name pattern that supports wildcards for subscriptions
54
+ */
55
+ export declare const EventPatternSchema: z.ZodString;
56
+ export type EventPattern = z.infer<typeof EventPatternSchema>;
57
+ /**
58
+ * Event Subscription Config
59
+ * Configuration for subscribing to specific events
60
+ */
61
+ export declare const EventSubscriptionSchema: z.ZodObject<{
62
+ subscriptionId: z.ZodString;
63
+ events: z.ZodArray<z.ZodString, "many">;
64
+ objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
65
+ filters: z.ZodOptional<z.ZodType<{
66
+ conditions?: EventFilterCondition[];
67
+ and?: EventFilter[];
68
+ or?: EventFilter[];
69
+ not?: EventFilter;
70
+ }, z.ZodTypeDef, {
71
+ conditions?: EventFilterCondition[];
72
+ and?: EventFilter[];
73
+ or?: EventFilter[];
74
+ not?: EventFilter;
75
+ }>>;
76
+ channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ events: string[];
79
+ subscriptionId: string;
80
+ filters?: {
81
+ conditions?: EventFilterCondition[];
82
+ and?: EventFilter[];
83
+ or?: EventFilter[];
84
+ not?: EventFilter;
85
+ } | undefined;
86
+ objects?: string[] | undefined;
87
+ channels?: string[] | undefined;
88
+ }, {
89
+ events: string[];
90
+ subscriptionId: string;
91
+ filters?: {
92
+ conditions?: EventFilterCondition[];
93
+ and?: EventFilter[];
94
+ or?: EventFilter[];
95
+ not?: EventFilter;
96
+ } | undefined;
97
+ objects?: string[] | undefined;
98
+ channels?: string[] | undefined;
99
+ }>;
100
+ export type EventSubscription = z.infer<typeof EventSubscriptionSchema>;
101
+ /**
102
+ * Unsubscribe Request
103
+ * Request to unsubscribe from events
104
+ */
105
+ export declare const UnsubscribeRequestSchema: z.ZodObject<{
106
+ subscriptionId: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ subscriptionId: string;
109
+ }, {
110
+ subscriptionId: string;
111
+ }>;
112
+ export type UnsubscribeRequest = z.infer<typeof UnsubscribeRequestSchema>;
113
+ /**
114
+ * Presence Status Enum
115
+ * User availability status for presence tracking
116
+ */
117
+ export declare const WebSocketPresenceStatus: z.ZodEnum<["online", "away", "busy", "offline"]>;
118
+ export type WebSocketPresenceStatus = z.infer<typeof WebSocketPresenceStatus>;
119
+ /**
120
+ * Presence State Schema
121
+ * Tracks real-time user presence and activity
122
+ */
123
+ export declare const PresenceStateSchema: z.ZodObject<{
124
+ userId: z.ZodString;
125
+ sessionId: z.ZodString;
126
+ status: z.ZodEnum<["online", "away", "busy", "offline"]>;
127
+ lastSeen: z.ZodString;
128
+ currentLocation: z.ZodOptional<z.ZodString>;
129
+ device: z.ZodOptional<z.ZodEnum<["desktop", "mobile", "tablet", "other"]>>;
130
+ customStatus: z.ZodOptional<z.ZodString>;
131
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ status: "online" | "away" | "offline" | "busy";
134
+ userId: string;
135
+ sessionId: string;
136
+ lastSeen: string;
137
+ metadata?: Record<string, any> | undefined;
138
+ currentLocation?: string | undefined;
139
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
140
+ customStatus?: string | undefined;
141
+ }, {
142
+ status: "online" | "away" | "offline" | "busy";
143
+ userId: string;
144
+ sessionId: string;
145
+ lastSeen: string;
146
+ metadata?: Record<string, any> | undefined;
147
+ currentLocation?: string | undefined;
148
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
149
+ customStatus?: string | undefined;
150
+ }>;
151
+ export type PresenceState = z.infer<typeof PresenceStateSchema>;
152
+ /**
153
+ * Presence Update Request
154
+ * Client request to update presence status
155
+ */
156
+ export declare const PresenceUpdateSchema: z.ZodObject<{
157
+ status: z.ZodOptional<z.ZodEnum<["online", "away", "busy", "offline"]>>;
158
+ currentLocation: z.ZodOptional<z.ZodString>;
159
+ customStatus: z.ZodOptional<z.ZodString>;
160
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ status?: "online" | "away" | "offline" | "busy" | undefined;
163
+ metadata?: Record<string, any> | undefined;
164
+ currentLocation?: string | undefined;
165
+ customStatus?: string | undefined;
166
+ }, {
167
+ status?: "online" | "away" | "offline" | "busy" | undefined;
168
+ metadata?: Record<string, any> | undefined;
169
+ currentLocation?: string | undefined;
170
+ customStatus?: string | undefined;
171
+ }>;
172
+ export type PresenceUpdate = z.infer<typeof PresenceUpdateSchema>;
173
+ /**
174
+ * Cursor Position Schema
175
+ * Represents a cursor position in a document
176
+ */
177
+ export declare const CursorPositionSchema: z.ZodObject<{
178
+ userId: z.ZodString;
179
+ sessionId: z.ZodString;
180
+ documentId: z.ZodString;
181
+ position: z.ZodOptional<z.ZodObject<{
182
+ line: z.ZodNumber;
183
+ column: z.ZodNumber;
184
+ }, "strip", z.ZodTypeAny, {
185
+ column: number;
186
+ line: number;
187
+ }, {
188
+ column: number;
189
+ line: number;
190
+ }>>;
191
+ selection: z.ZodOptional<z.ZodObject<{
192
+ start: z.ZodObject<{
193
+ line: z.ZodNumber;
194
+ column: z.ZodNumber;
195
+ }, "strip", z.ZodTypeAny, {
196
+ column: number;
197
+ line: number;
198
+ }, {
199
+ column: number;
200
+ line: number;
201
+ }>;
202
+ end: z.ZodObject<{
203
+ line: z.ZodNumber;
204
+ column: z.ZodNumber;
205
+ }, "strip", z.ZodTypeAny, {
206
+ column: number;
207
+ line: number;
208
+ }, {
209
+ column: number;
210
+ line: number;
211
+ }>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ start: {
214
+ column: number;
215
+ line: number;
216
+ };
217
+ end: {
218
+ column: number;
219
+ line: number;
220
+ };
221
+ }, {
222
+ start: {
223
+ column: number;
224
+ line: number;
225
+ };
226
+ end: {
227
+ column: number;
228
+ line: number;
229
+ };
230
+ }>>;
231
+ color: z.ZodOptional<z.ZodString>;
232
+ userName: z.ZodOptional<z.ZodString>;
233
+ lastUpdate: z.ZodString;
234
+ }, "strip", z.ZodTypeAny, {
235
+ userId: string;
236
+ documentId: string;
237
+ sessionId: string;
238
+ lastUpdate: string;
239
+ color?: string | undefined;
240
+ selection?: {
241
+ start: {
242
+ column: number;
243
+ line: number;
244
+ };
245
+ end: {
246
+ column: number;
247
+ line: number;
248
+ };
249
+ } | undefined;
250
+ position?: {
251
+ column: number;
252
+ line: number;
253
+ } | undefined;
254
+ userName?: string | undefined;
255
+ }, {
256
+ userId: string;
257
+ documentId: string;
258
+ sessionId: string;
259
+ lastUpdate: string;
260
+ color?: string | undefined;
261
+ selection?: {
262
+ start: {
263
+ column: number;
264
+ line: number;
265
+ };
266
+ end: {
267
+ column: number;
268
+ line: number;
269
+ };
270
+ } | undefined;
271
+ position?: {
272
+ column: number;
273
+ line: number;
274
+ } | undefined;
275
+ userName?: string | undefined;
276
+ }>;
277
+ export type CursorPosition = z.infer<typeof CursorPositionSchema>;
278
+ /**
279
+ * Edit Operation Type Enum
280
+ * Types of edit operations for collaborative editing
281
+ */
282
+ export declare const EditOperationType: z.ZodEnum<["insert", "delete", "replace"]>;
283
+ export type EditOperationType = z.infer<typeof EditOperationType>;
284
+ /**
285
+ * Edit Operation Schema
286
+ * Represents a single edit operation on a document
287
+ * Supports Operational Transformation (OT) for conflict resolution
288
+ */
289
+ export declare const EditOperationSchema: z.ZodObject<{
290
+ operationId: z.ZodString;
291
+ documentId: z.ZodString;
292
+ userId: z.ZodString;
293
+ sessionId: z.ZodString;
294
+ type: z.ZodEnum<["insert", "delete", "replace"]>;
295
+ position: z.ZodObject<{
296
+ line: z.ZodNumber;
297
+ column: z.ZodNumber;
298
+ }, "strip", z.ZodTypeAny, {
299
+ column: number;
300
+ line: number;
301
+ }, {
302
+ column: number;
303
+ line: number;
304
+ }>;
305
+ endPosition: z.ZodOptional<z.ZodObject<{
306
+ line: z.ZodNumber;
307
+ column: z.ZodNumber;
308
+ }, "strip", z.ZodTypeAny, {
309
+ column: number;
310
+ line: number;
311
+ }, {
312
+ column: number;
313
+ line: number;
314
+ }>>;
315
+ content: z.ZodOptional<z.ZodString>;
316
+ version: z.ZodNumber;
317
+ timestamp: z.ZodString;
318
+ baseOperationId: z.ZodOptional<z.ZodString>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ type: "insert" | "delete" | "replace";
321
+ version: number;
322
+ userId: string;
323
+ position: {
324
+ column: number;
325
+ line: number;
326
+ };
327
+ timestamp: string;
328
+ operationId: string;
329
+ documentId: string;
330
+ sessionId: string;
331
+ content?: string | undefined;
332
+ endPosition?: {
333
+ column: number;
334
+ line: number;
335
+ } | undefined;
336
+ baseOperationId?: string | undefined;
337
+ }, {
338
+ type: "insert" | "delete" | "replace";
339
+ version: number;
340
+ userId: string;
341
+ position: {
342
+ column: number;
343
+ line: number;
344
+ };
345
+ timestamp: string;
346
+ operationId: string;
347
+ documentId: string;
348
+ sessionId: string;
349
+ content?: string | undefined;
350
+ endPosition?: {
351
+ column: number;
352
+ line: number;
353
+ } | undefined;
354
+ baseOperationId?: string | undefined;
355
+ }>;
356
+ export type EditOperation = z.infer<typeof EditOperationSchema>;
357
+ /**
358
+ * Document State Schema
359
+ * Represents the current state of a collaborative document
360
+ */
361
+ export declare const DocumentStateSchema: z.ZodObject<{
362
+ documentId: z.ZodString;
363
+ version: z.ZodNumber;
364
+ content: z.ZodString;
365
+ lastModified: z.ZodString;
366
+ activeSessions: z.ZodArray<z.ZodString, "many">;
367
+ checksum: z.ZodOptional<z.ZodString>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ version: number;
370
+ documentId: string;
371
+ content: string;
372
+ lastModified: string;
373
+ activeSessions: string[];
374
+ checksum?: string | undefined;
375
+ }, {
376
+ version: number;
377
+ documentId: string;
378
+ content: string;
379
+ lastModified: string;
380
+ activeSessions: string[];
381
+ checksum?: string | undefined;
382
+ }>;
383
+ export type DocumentState = z.infer<typeof DocumentStateSchema>;
384
+ /**
385
+ * Subscribe Message
386
+ * Client sends this to subscribe to events
387
+ */
388
+ export declare const SubscribeMessageSchema: z.ZodObject<{
389
+ messageId: z.ZodString;
390
+ timestamp: z.ZodString;
391
+ } & {
392
+ type: z.ZodLiteral<"subscribe">;
393
+ subscription: z.ZodObject<{
394
+ subscriptionId: z.ZodString;
395
+ events: z.ZodArray<z.ZodString, "many">;
396
+ objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
397
+ filters: z.ZodOptional<z.ZodType<{
398
+ conditions?: EventFilterCondition[];
399
+ and?: EventFilter[];
400
+ or?: EventFilter[];
401
+ not?: EventFilter;
402
+ }, z.ZodTypeDef, {
403
+ conditions?: EventFilterCondition[];
404
+ and?: EventFilter[];
405
+ or?: EventFilter[];
406
+ not?: EventFilter;
407
+ }>>;
408
+ channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ events: string[];
411
+ subscriptionId: string;
412
+ filters?: {
413
+ conditions?: EventFilterCondition[];
414
+ and?: EventFilter[];
415
+ or?: EventFilter[];
416
+ not?: EventFilter;
417
+ } | undefined;
418
+ objects?: string[] | undefined;
419
+ channels?: string[] | undefined;
420
+ }, {
421
+ events: string[];
422
+ subscriptionId: string;
423
+ filters?: {
424
+ conditions?: EventFilterCondition[];
425
+ and?: EventFilter[];
426
+ or?: EventFilter[];
427
+ not?: EventFilter;
428
+ } | undefined;
429
+ objects?: string[] | undefined;
430
+ channels?: string[] | undefined;
431
+ }>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ type: "subscribe";
434
+ timestamp: string;
435
+ subscription: {
436
+ events: string[];
437
+ subscriptionId: string;
438
+ filters?: {
439
+ conditions?: EventFilterCondition[];
440
+ and?: EventFilter[];
441
+ or?: EventFilter[];
442
+ not?: EventFilter;
443
+ } | undefined;
444
+ objects?: string[] | undefined;
445
+ channels?: string[] | undefined;
446
+ };
447
+ messageId: string;
448
+ }, {
449
+ type: "subscribe";
450
+ timestamp: string;
451
+ subscription: {
452
+ events: string[];
453
+ subscriptionId: string;
454
+ filters?: {
455
+ conditions?: EventFilterCondition[];
456
+ and?: EventFilter[];
457
+ or?: EventFilter[];
458
+ not?: EventFilter;
459
+ } | undefined;
460
+ objects?: string[] | undefined;
461
+ channels?: string[] | undefined;
462
+ };
463
+ messageId: string;
464
+ }>;
465
+ export type SubscribeMessage = z.infer<typeof SubscribeMessageSchema>;
466
+ /**
467
+ * Unsubscribe Message
468
+ * Client sends this to unsubscribe from events
469
+ */
470
+ export declare const UnsubscribeMessageSchema: z.ZodObject<{
471
+ messageId: z.ZodString;
472
+ timestamp: z.ZodString;
473
+ } & {
474
+ type: z.ZodLiteral<"unsubscribe">;
475
+ request: z.ZodObject<{
476
+ subscriptionId: z.ZodString;
477
+ }, "strip", z.ZodTypeAny, {
478
+ subscriptionId: string;
479
+ }, {
480
+ subscriptionId: string;
481
+ }>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ type: "unsubscribe";
484
+ timestamp: string;
485
+ request: {
486
+ subscriptionId: string;
487
+ };
488
+ messageId: string;
489
+ }, {
490
+ type: "unsubscribe";
491
+ timestamp: string;
492
+ request: {
493
+ subscriptionId: string;
494
+ };
495
+ messageId: string;
496
+ }>;
497
+ export type UnsubscribeMessage = z.infer<typeof UnsubscribeMessageSchema>;
498
+ /**
499
+ * Event Message
500
+ * Server sends this when a subscribed event occurs
501
+ */
502
+ export declare const EventMessageSchema: z.ZodObject<{
503
+ messageId: z.ZodString;
504
+ timestamp: z.ZodString;
505
+ } & {
506
+ type: z.ZodLiteral<"event">;
507
+ subscriptionId: z.ZodString;
508
+ eventName: z.ZodString;
509
+ object: z.ZodOptional<z.ZodString>;
510
+ payload: z.ZodAny;
511
+ userId: z.ZodOptional<z.ZodString>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ type: "event";
514
+ timestamp: string;
515
+ eventName: string;
516
+ messageId: string;
517
+ subscriptionId: string;
518
+ object?: string | undefined;
519
+ userId?: string | undefined;
520
+ payload?: any;
521
+ }, {
522
+ type: "event";
523
+ timestamp: string;
524
+ eventName: string;
525
+ messageId: string;
526
+ subscriptionId: string;
527
+ object?: string | undefined;
528
+ userId?: string | undefined;
529
+ payload?: any;
530
+ }>;
531
+ export type EventMessage = z.infer<typeof EventMessageSchema>;
532
+ /**
533
+ * Presence Message
534
+ * Presence update message
535
+ */
536
+ export declare const PresenceMessageSchema: z.ZodObject<{
537
+ messageId: z.ZodString;
538
+ timestamp: z.ZodString;
539
+ } & {
540
+ type: z.ZodLiteral<"presence">;
541
+ presence: z.ZodObject<{
542
+ userId: z.ZodString;
543
+ sessionId: z.ZodString;
544
+ status: z.ZodEnum<["online", "away", "busy", "offline"]>;
545
+ lastSeen: z.ZodString;
546
+ currentLocation: z.ZodOptional<z.ZodString>;
547
+ device: z.ZodOptional<z.ZodEnum<["desktop", "mobile", "tablet", "other"]>>;
548
+ customStatus: z.ZodOptional<z.ZodString>;
549
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ status: "online" | "away" | "offline" | "busy";
552
+ userId: string;
553
+ sessionId: string;
554
+ lastSeen: string;
555
+ metadata?: Record<string, any> | undefined;
556
+ currentLocation?: string | undefined;
557
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
558
+ customStatus?: string | undefined;
559
+ }, {
560
+ status: "online" | "away" | "offline" | "busy";
561
+ userId: string;
562
+ sessionId: string;
563
+ lastSeen: string;
564
+ metadata?: Record<string, any> | undefined;
565
+ currentLocation?: string | undefined;
566
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
567
+ customStatus?: string | undefined;
568
+ }>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ type: "presence";
571
+ timestamp: string;
572
+ messageId: string;
573
+ presence: {
574
+ status: "online" | "away" | "offline" | "busy";
575
+ userId: string;
576
+ sessionId: string;
577
+ lastSeen: string;
578
+ metadata?: Record<string, any> | undefined;
579
+ currentLocation?: string | undefined;
580
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
581
+ customStatus?: string | undefined;
582
+ };
583
+ }, {
584
+ type: "presence";
585
+ timestamp: string;
586
+ messageId: string;
587
+ presence: {
588
+ status: "online" | "away" | "offline" | "busy";
589
+ userId: string;
590
+ sessionId: string;
591
+ lastSeen: string;
592
+ metadata?: Record<string, any> | undefined;
593
+ currentLocation?: string | undefined;
594
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
595
+ customStatus?: string | undefined;
596
+ };
597
+ }>;
598
+ export type PresenceMessage = z.infer<typeof PresenceMessageSchema>;
599
+ /**
600
+ * Cursor Message
601
+ * Cursor position update for collaborative editing
602
+ */
603
+ export declare const CursorMessageSchema: z.ZodObject<{
604
+ messageId: z.ZodString;
605
+ timestamp: z.ZodString;
606
+ } & {
607
+ type: z.ZodLiteral<"cursor">;
608
+ cursor: z.ZodObject<{
609
+ userId: z.ZodString;
610
+ sessionId: z.ZodString;
611
+ documentId: z.ZodString;
612
+ position: z.ZodOptional<z.ZodObject<{
613
+ line: z.ZodNumber;
614
+ column: z.ZodNumber;
615
+ }, "strip", z.ZodTypeAny, {
616
+ column: number;
617
+ line: number;
618
+ }, {
619
+ column: number;
620
+ line: number;
621
+ }>>;
622
+ selection: z.ZodOptional<z.ZodObject<{
623
+ start: z.ZodObject<{
624
+ line: z.ZodNumber;
625
+ column: z.ZodNumber;
626
+ }, "strip", z.ZodTypeAny, {
627
+ column: number;
628
+ line: number;
629
+ }, {
630
+ column: number;
631
+ line: number;
632
+ }>;
633
+ end: z.ZodObject<{
634
+ line: z.ZodNumber;
635
+ column: z.ZodNumber;
636
+ }, "strip", z.ZodTypeAny, {
637
+ column: number;
638
+ line: number;
639
+ }, {
640
+ column: number;
641
+ line: number;
642
+ }>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ start: {
645
+ column: number;
646
+ line: number;
647
+ };
648
+ end: {
649
+ column: number;
650
+ line: number;
651
+ };
652
+ }, {
653
+ start: {
654
+ column: number;
655
+ line: number;
656
+ };
657
+ end: {
658
+ column: number;
659
+ line: number;
660
+ };
661
+ }>>;
662
+ color: z.ZodOptional<z.ZodString>;
663
+ userName: z.ZodOptional<z.ZodString>;
664
+ lastUpdate: z.ZodString;
665
+ }, "strip", z.ZodTypeAny, {
666
+ userId: string;
667
+ documentId: string;
668
+ sessionId: string;
669
+ lastUpdate: string;
670
+ color?: string | undefined;
671
+ selection?: {
672
+ start: {
673
+ column: number;
674
+ line: number;
675
+ };
676
+ end: {
677
+ column: number;
678
+ line: number;
679
+ };
680
+ } | undefined;
681
+ position?: {
682
+ column: number;
683
+ line: number;
684
+ } | undefined;
685
+ userName?: string | undefined;
686
+ }, {
687
+ userId: string;
688
+ documentId: string;
689
+ sessionId: string;
690
+ lastUpdate: string;
691
+ color?: string | undefined;
692
+ selection?: {
693
+ start: {
694
+ column: number;
695
+ line: number;
696
+ };
697
+ end: {
698
+ column: number;
699
+ line: number;
700
+ };
701
+ } | undefined;
702
+ position?: {
703
+ column: number;
704
+ line: number;
705
+ } | undefined;
706
+ userName?: string | undefined;
707
+ }>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ type: "cursor";
710
+ cursor: {
711
+ userId: string;
712
+ documentId: string;
713
+ sessionId: string;
714
+ lastUpdate: string;
715
+ color?: string | undefined;
716
+ selection?: {
717
+ start: {
718
+ column: number;
719
+ line: number;
720
+ };
721
+ end: {
722
+ column: number;
723
+ line: number;
724
+ };
725
+ } | undefined;
726
+ position?: {
727
+ column: number;
728
+ line: number;
729
+ } | undefined;
730
+ userName?: string | undefined;
731
+ };
732
+ timestamp: string;
733
+ messageId: string;
734
+ }, {
735
+ type: "cursor";
736
+ cursor: {
737
+ userId: string;
738
+ documentId: string;
739
+ sessionId: string;
740
+ lastUpdate: string;
741
+ color?: string | undefined;
742
+ selection?: {
743
+ start: {
744
+ column: number;
745
+ line: number;
746
+ };
747
+ end: {
748
+ column: number;
749
+ line: number;
750
+ };
751
+ } | undefined;
752
+ position?: {
753
+ column: number;
754
+ line: number;
755
+ } | undefined;
756
+ userName?: string | undefined;
757
+ };
758
+ timestamp: string;
759
+ messageId: string;
760
+ }>;
761
+ export type CursorMessage = z.infer<typeof CursorMessageSchema>;
762
+ /**
763
+ * Edit Message
764
+ * Document edit operation for collaborative editing
765
+ */
766
+ export declare const EditMessageSchema: z.ZodObject<{
767
+ messageId: z.ZodString;
768
+ timestamp: z.ZodString;
769
+ } & {
770
+ type: z.ZodLiteral<"edit">;
771
+ operation: z.ZodObject<{
772
+ operationId: z.ZodString;
773
+ documentId: z.ZodString;
774
+ userId: z.ZodString;
775
+ sessionId: z.ZodString;
776
+ type: z.ZodEnum<["insert", "delete", "replace"]>;
777
+ position: z.ZodObject<{
778
+ line: z.ZodNumber;
779
+ column: z.ZodNumber;
780
+ }, "strip", z.ZodTypeAny, {
781
+ column: number;
782
+ line: number;
783
+ }, {
784
+ column: number;
785
+ line: number;
786
+ }>;
787
+ endPosition: z.ZodOptional<z.ZodObject<{
788
+ line: z.ZodNumber;
789
+ column: z.ZodNumber;
790
+ }, "strip", z.ZodTypeAny, {
791
+ column: number;
792
+ line: number;
793
+ }, {
794
+ column: number;
795
+ line: number;
796
+ }>>;
797
+ content: z.ZodOptional<z.ZodString>;
798
+ version: z.ZodNumber;
799
+ timestamp: z.ZodString;
800
+ baseOperationId: z.ZodOptional<z.ZodString>;
801
+ }, "strip", z.ZodTypeAny, {
802
+ type: "insert" | "delete" | "replace";
803
+ version: number;
804
+ userId: string;
805
+ position: {
806
+ column: number;
807
+ line: number;
808
+ };
809
+ timestamp: string;
810
+ operationId: string;
811
+ documentId: string;
812
+ sessionId: string;
813
+ content?: string | undefined;
814
+ endPosition?: {
815
+ column: number;
816
+ line: number;
817
+ } | undefined;
818
+ baseOperationId?: string | undefined;
819
+ }, {
820
+ type: "insert" | "delete" | "replace";
821
+ version: number;
822
+ userId: string;
823
+ position: {
824
+ column: number;
825
+ line: number;
826
+ };
827
+ timestamp: string;
828
+ operationId: string;
829
+ documentId: string;
830
+ sessionId: string;
831
+ content?: string | undefined;
832
+ endPosition?: {
833
+ column: number;
834
+ line: number;
835
+ } | undefined;
836
+ baseOperationId?: string | undefined;
837
+ }>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ type: "edit";
840
+ operation: {
841
+ type: "insert" | "delete" | "replace";
842
+ version: number;
843
+ userId: string;
844
+ position: {
845
+ column: number;
846
+ line: number;
847
+ };
848
+ timestamp: string;
849
+ operationId: string;
850
+ documentId: string;
851
+ sessionId: string;
852
+ content?: string | undefined;
853
+ endPosition?: {
854
+ column: number;
855
+ line: number;
856
+ } | undefined;
857
+ baseOperationId?: string | undefined;
858
+ };
859
+ timestamp: string;
860
+ messageId: string;
861
+ }, {
862
+ type: "edit";
863
+ operation: {
864
+ type: "insert" | "delete" | "replace";
865
+ version: number;
866
+ userId: string;
867
+ position: {
868
+ column: number;
869
+ line: number;
870
+ };
871
+ timestamp: string;
872
+ operationId: string;
873
+ documentId: string;
874
+ sessionId: string;
875
+ content?: string | undefined;
876
+ endPosition?: {
877
+ column: number;
878
+ line: number;
879
+ } | undefined;
880
+ baseOperationId?: string | undefined;
881
+ };
882
+ timestamp: string;
883
+ messageId: string;
884
+ }>;
885
+ export type EditMessage = z.infer<typeof EditMessageSchema>;
886
+ /**
887
+ * Acknowledgment Message
888
+ * Server acknowledges receipt of a message
889
+ */
890
+ export declare const AckMessageSchema: z.ZodObject<{
891
+ messageId: z.ZodString;
892
+ timestamp: z.ZodString;
893
+ } & {
894
+ type: z.ZodLiteral<"ack">;
895
+ ackMessageId: z.ZodString;
896
+ success: z.ZodBoolean;
897
+ error: z.ZodOptional<z.ZodString>;
898
+ }, "strip", z.ZodTypeAny, {
899
+ type: "ack";
900
+ success: boolean;
901
+ timestamp: string;
902
+ messageId: string;
903
+ ackMessageId: string;
904
+ error?: string | undefined;
905
+ }, {
906
+ type: "ack";
907
+ success: boolean;
908
+ timestamp: string;
909
+ messageId: string;
910
+ ackMessageId: string;
911
+ error?: string | undefined;
912
+ }>;
913
+ export type AckMessage = z.infer<typeof AckMessageSchema>;
914
+ /**
915
+ * Error Message
916
+ * Server sends error information
917
+ */
918
+ export declare const ErrorMessageSchema: z.ZodObject<{
919
+ messageId: z.ZodString;
920
+ timestamp: z.ZodString;
921
+ } & {
922
+ type: z.ZodLiteral<"error">;
923
+ code: z.ZodString;
924
+ message: z.ZodString;
925
+ details: z.ZodOptional<z.ZodAny>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ message: string;
928
+ code: string;
929
+ type: "error";
930
+ timestamp: string;
931
+ messageId: string;
932
+ details?: any;
933
+ }, {
934
+ message: string;
935
+ code: string;
936
+ type: "error";
937
+ timestamp: string;
938
+ messageId: string;
939
+ details?: any;
940
+ }>;
941
+ export type ErrorMessage = z.infer<typeof ErrorMessageSchema>;
942
+ /**
943
+ * Ping Message
944
+ * Keepalive ping from client or server
945
+ */
946
+ export declare const PingMessageSchema: z.ZodObject<{
947
+ messageId: z.ZodString;
948
+ timestamp: z.ZodString;
949
+ } & {
950
+ type: z.ZodLiteral<"ping">;
951
+ }, "strip", z.ZodTypeAny, {
952
+ type: "ping";
953
+ timestamp: string;
954
+ messageId: string;
955
+ }, {
956
+ type: "ping";
957
+ timestamp: string;
958
+ messageId: string;
959
+ }>;
960
+ export type PingMessage = z.infer<typeof PingMessageSchema>;
961
+ /**
962
+ * Pong Message
963
+ * Keepalive pong response
964
+ */
965
+ export declare const PongMessageSchema: z.ZodObject<{
966
+ messageId: z.ZodString;
967
+ timestamp: z.ZodString;
968
+ } & {
969
+ type: z.ZodLiteral<"pong">;
970
+ pingMessageId: z.ZodOptional<z.ZodString>;
971
+ }, "strip", z.ZodTypeAny, {
972
+ type: "pong";
973
+ timestamp: string;
974
+ messageId: string;
975
+ pingMessageId?: string | undefined;
976
+ }, {
977
+ type: "pong";
978
+ timestamp: string;
979
+ messageId: string;
980
+ pingMessageId?: string | undefined;
981
+ }>;
982
+ export type PongMessage = z.infer<typeof PongMessageSchema>;
983
+ /**
984
+ * WebSocket Message Union
985
+ * Discriminated union of all WebSocket message types
986
+ */
987
+ export declare const WebSocketMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
988
+ messageId: z.ZodString;
989
+ timestamp: z.ZodString;
990
+ } & {
991
+ type: z.ZodLiteral<"subscribe">;
992
+ subscription: z.ZodObject<{
993
+ subscriptionId: z.ZodString;
994
+ events: z.ZodArray<z.ZodString, "many">;
995
+ objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
996
+ filters: z.ZodOptional<z.ZodType<{
997
+ conditions?: EventFilterCondition[];
998
+ and?: EventFilter[];
999
+ or?: EventFilter[];
1000
+ not?: EventFilter;
1001
+ }, z.ZodTypeDef, {
1002
+ conditions?: EventFilterCondition[];
1003
+ and?: EventFilter[];
1004
+ or?: EventFilter[];
1005
+ not?: EventFilter;
1006
+ }>>;
1007
+ channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ events: string[];
1010
+ subscriptionId: string;
1011
+ filters?: {
1012
+ conditions?: EventFilterCondition[];
1013
+ and?: EventFilter[];
1014
+ or?: EventFilter[];
1015
+ not?: EventFilter;
1016
+ } | undefined;
1017
+ objects?: string[] | undefined;
1018
+ channels?: string[] | undefined;
1019
+ }, {
1020
+ events: string[];
1021
+ subscriptionId: string;
1022
+ filters?: {
1023
+ conditions?: EventFilterCondition[];
1024
+ and?: EventFilter[];
1025
+ or?: EventFilter[];
1026
+ not?: EventFilter;
1027
+ } | undefined;
1028
+ objects?: string[] | undefined;
1029
+ channels?: string[] | undefined;
1030
+ }>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ type: "subscribe";
1033
+ timestamp: string;
1034
+ subscription: {
1035
+ events: string[];
1036
+ subscriptionId: string;
1037
+ filters?: {
1038
+ conditions?: EventFilterCondition[];
1039
+ and?: EventFilter[];
1040
+ or?: EventFilter[];
1041
+ not?: EventFilter;
1042
+ } | undefined;
1043
+ objects?: string[] | undefined;
1044
+ channels?: string[] | undefined;
1045
+ };
1046
+ messageId: string;
1047
+ }, {
1048
+ type: "subscribe";
1049
+ timestamp: string;
1050
+ subscription: {
1051
+ events: string[];
1052
+ subscriptionId: string;
1053
+ filters?: {
1054
+ conditions?: EventFilterCondition[];
1055
+ and?: EventFilter[];
1056
+ or?: EventFilter[];
1057
+ not?: EventFilter;
1058
+ } | undefined;
1059
+ objects?: string[] | undefined;
1060
+ channels?: string[] | undefined;
1061
+ };
1062
+ messageId: string;
1063
+ }>, z.ZodObject<{
1064
+ messageId: z.ZodString;
1065
+ timestamp: z.ZodString;
1066
+ } & {
1067
+ type: z.ZodLiteral<"unsubscribe">;
1068
+ request: z.ZodObject<{
1069
+ subscriptionId: z.ZodString;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ subscriptionId: string;
1072
+ }, {
1073
+ subscriptionId: string;
1074
+ }>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ type: "unsubscribe";
1077
+ timestamp: string;
1078
+ request: {
1079
+ subscriptionId: string;
1080
+ };
1081
+ messageId: string;
1082
+ }, {
1083
+ type: "unsubscribe";
1084
+ timestamp: string;
1085
+ request: {
1086
+ subscriptionId: string;
1087
+ };
1088
+ messageId: string;
1089
+ }>, z.ZodObject<{
1090
+ messageId: z.ZodString;
1091
+ timestamp: z.ZodString;
1092
+ } & {
1093
+ type: z.ZodLiteral<"event">;
1094
+ subscriptionId: z.ZodString;
1095
+ eventName: z.ZodString;
1096
+ object: z.ZodOptional<z.ZodString>;
1097
+ payload: z.ZodAny;
1098
+ userId: z.ZodOptional<z.ZodString>;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ type: "event";
1101
+ timestamp: string;
1102
+ eventName: string;
1103
+ messageId: string;
1104
+ subscriptionId: string;
1105
+ object?: string | undefined;
1106
+ userId?: string | undefined;
1107
+ payload?: any;
1108
+ }, {
1109
+ type: "event";
1110
+ timestamp: string;
1111
+ eventName: string;
1112
+ messageId: string;
1113
+ subscriptionId: string;
1114
+ object?: string | undefined;
1115
+ userId?: string | undefined;
1116
+ payload?: any;
1117
+ }>, z.ZodObject<{
1118
+ messageId: z.ZodString;
1119
+ timestamp: z.ZodString;
1120
+ } & {
1121
+ type: z.ZodLiteral<"presence">;
1122
+ presence: z.ZodObject<{
1123
+ userId: z.ZodString;
1124
+ sessionId: z.ZodString;
1125
+ status: z.ZodEnum<["online", "away", "busy", "offline"]>;
1126
+ lastSeen: z.ZodString;
1127
+ currentLocation: z.ZodOptional<z.ZodString>;
1128
+ device: z.ZodOptional<z.ZodEnum<["desktop", "mobile", "tablet", "other"]>>;
1129
+ customStatus: z.ZodOptional<z.ZodString>;
1130
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ status: "online" | "away" | "offline" | "busy";
1133
+ userId: string;
1134
+ sessionId: string;
1135
+ lastSeen: string;
1136
+ metadata?: Record<string, any> | undefined;
1137
+ currentLocation?: string | undefined;
1138
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
1139
+ customStatus?: string | undefined;
1140
+ }, {
1141
+ status: "online" | "away" | "offline" | "busy";
1142
+ userId: string;
1143
+ sessionId: string;
1144
+ lastSeen: string;
1145
+ metadata?: Record<string, any> | undefined;
1146
+ currentLocation?: string | undefined;
1147
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
1148
+ customStatus?: string | undefined;
1149
+ }>;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ type: "presence";
1152
+ timestamp: string;
1153
+ messageId: string;
1154
+ presence: {
1155
+ status: "online" | "away" | "offline" | "busy";
1156
+ userId: string;
1157
+ sessionId: string;
1158
+ lastSeen: string;
1159
+ metadata?: Record<string, any> | undefined;
1160
+ currentLocation?: string | undefined;
1161
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
1162
+ customStatus?: string | undefined;
1163
+ };
1164
+ }, {
1165
+ type: "presence";
1166
+ timestamp: string;
1167
+ messageId: string;
1168
+ presence: {
1169
+ status: "online" | "away" | "offline" | "busy";
1170
+ userId: string;
1171
+ sessionId: string;
1172
+ lastSeen: string;
1173
+ metadata?: Record<string, any> | undefined;
1174
+ currentLocation?: string | undefined;
1175
+ device?: "other" | "mobile" | "desktop" | "tablet" | undefined;
1176
+ customStatus?: string | undefined;
1177
+ };
1178
+ }>, z.ZodObject<{
1179
+ messageId: z.ZodString;
1180
+ timestamp: z.ZodString;
1181
+ } & {
1182
+ type: z.ZodLiteral<"cursor">;
1183
+ cursor: z.ZodObject<{
1184
+ userId: z.ZodString;
1185
+ sessionId: z.ZodString;
1186
+ documentId: z.ZodString;
1187
+ position: z.ZodOptional<z.ZodObject<{
1188
+ line: z.ZodNumber;
1189
+ column: z.ZodNumber;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ column: number;
1192
+ line: number;
1193
+ }, {
1194
+ column: number;
1195
+ line: number;
1196
+ }>>;
1197
+ selection: z.ZodOptional<z.ZodObject<{
1198
+ start: z.ZodObject<{
1199
+ line: z.ZodNumber;
1200
+ column: z.ZodNumber;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ column: number;
1203
+ line: number;
1204
+ }, {
1205
+ column: number;
1206
+ line: number;
1207
+ }>;
1208
+ end: z.ZodObject<{
1209
+ line: z.ZodNumber;
1210
+ column: z.ZodNumber;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ column: number;
1213
+ line: number;
1214
+ }, {
1215
+ column: number;
1216
+ line: number;
1217
+ }>;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ start: {
1220
+ column: number;
1221
+ line: number;
1222
+ };
1223
+ end: {
1224
+ column: number;
1225
+ line: number;
1226
+ };
1227
+ }, {
1228
+ start: {
1229
+ column: number;
1230
+ line: number;
1231
+ };
1232
+ end: {
1233
+ column: number;
1234
+ line: number;
1235
+ };
1236
+ }>>;
1237
+ color: z.ZodOptional<z.ZodString>;
1238
+ userName: z.ZodOptional<z.ZodString>;
1239
+ lastUpdate: z.ZodString;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ userId: string;
1242
+ documentId: string;
1243
+ sessionId: string;
1244
+ lastUpdate: string;
1245
+ color?: string | undefined;
1246
+ selection?: {
1247
+ start: {
1248
+ column: number;
1249
+ line: number;
1250
+ };
1251
+ end: {
1252
+ column: number;
1253
+ line: number;
1254
+ };
1255
+ } | undefined;
1256
+ position?: {
1257
+ column: number;
1258
+ line: number;
1259
+ } | undefined;
1260
+ userName?: string | undefined;
1261
+ }, {
1262
+ userId: string;
1263
+ documentId: string;
1264
+ sessionId: string;
1265
+ lastUpdate: string;
1266
+ color?: string | undefined;
1267
+ selection?: {
1268
+ start: {
1269
+ column: number;
1270
+ line: number;
1271
+ };
1272
+ end: {
1273
+ column: number;
1274
+ line: number;
1275
+ };
1276
+ } | undefined;
1277
+ position?: {
1278
+ column: number;
1279
+ line: number;
1280
+ } | undefined;
1281
+ userName?: string | undefined;
1282
+ }>;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ type: "cursor";
1285
+ cursor: {
1286
+ userId: string;
1287
+ documentId: string;
1288
+ sessionId: string;
1289
+ lastUpdate: string;
1290
+ color?: string | undefined;
1291
+ selection?: {
1292
+ start: {
1293
+ column: number;
1294
+ line: number;
1295
+ };
1296
+ end: {
1297
+ column: number;
1298
+ line: number;
1299
+ };
1300
+ } | undefined;
1301
+ position?: {
1302
+ column: number;
1303
+ line: number;
1304
+ } | undefined;
1305
+ userName?: string | undefined;
1306
+ };
1307
+ timestamp: string;
1308
+ messageId: string;
1309
+ }, {
1310
+ type: "cursor";
1311
+ cursor: {
1312
+ userId: string;
1313
+ documentId: string;
1314
+ sessionId: string;
1315
+ lastUpdate: string;
1316
+ color?: string | undefined;
1317
+ selection?: {
1318
+ start: {
1319
+ column: number;
1320
+ line: number;
1321
+ };
1322
+ end: {
1323
+ column: number;
1324
+ line: number;
1325
+ };
1326
+ } | undefined;
1327
+ position?: {
1328
+ column: number;
1329
+ line: number;
1330
+ } | undefined;
1331
+ userName?: string | undefined;
1332
+ };
1333
+ timestamp: string;
1334
+ messageId: string;
1335
+ }>, z.ZodObject<{
1336
+ messageId: z.ZodString;
1337
+ timestamp: z.ZodString;
1338
+ } & {
1339
+ type: z.ZodLiteral<"edit">;
1340
+ operation: z.ZodObject<{
1341
+ operationId: z.ZodString;
1342
+ documentId: z.ZodString;
1343
+ userId: z.ZodString;
1344
+ sessionId: z.ZodString;
1345
+ type: z.ZodEnum<["insert", "delete", "replace"]>;
1346
+ position: z.ZodObject<{
1347
+ line: z.ZodNumber;
1348
+ column: z.ZodNumber;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ column: number;
1351
+ line: number;
1352
+ }, {
1353
+ column: number;
1354
+ line: number;
1355
+ }>;
1356
+ endPosition: z.ZodOptional<z.ZodObject<{
1357
+ line: z.ZodNumber;
1358
+ column: z.ZodNumber;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ column: number;
1361
+ line: number;
1362
+ }, {
1363
+ column: number;
1364
+ line: number;
1365
+ }>>;
1366
+ content: z.ZodOptional<z.ZodString>;
1367
+ version: z.ZodNumber;
1368
+ timestamp: z.ZodString;
1369
+ baseOperationId: z.ZodOptional<z.ZodString>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ type: "insert" | "delete" | "replace";
1372
+ version: number;
1373
+ userId: string;
1374
+ position: {
1375
+ column: number;
1376
+ line: number;
1377
+ };
1378
+ timestamp: string;
1379
+ operationId: string;
1380
+ documentId: string;
1381
+ sessionId: string;
1382
+ content?: string | undefined;
1383
+ endPosition?: {
1384
+ column: number;
1385
+ line: number;
1386
+ } | undefined;
1387
+ baseOperationId?: string | undefined;
1388
+ }, {
1389
+ type: "insert" | "delete" | "replace";
1390
+ version: number;
1391
+ userId: string;
1392
+ position: {
1393
+ column: number;
1394
+ line: number;
1395
+ };
1396
+ timestamp: string;
1397
+ operationId: string;
1398
+ documentId: string;
1399
+ sessionId: string;
1400
+ content?: string | undefined;
1401
+ endPosition?: {
1402
+ column: number;
1403
+ line: number;
1404
+ } | undefined;
1405
+ baseOperationId?: string | undefined;
1406
+ }>;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ type: "edit";
1409
+ operation: {
1410
+ type: "insert" | "delete" | "replace";
1411
+ version: number;
1412
+ userId: string;
1413
+ position: {
1414
+ column: number;
1415
+ line: number;
1416
+ };
1417
+ timestamp: string;
1418
+ operationId: string;
1419
+ documentId: string;
1420
+ sessionId: string;
1421
+ content?: string | undefined;
1422
+ endPosition?: {
1423
+ column: number;
1424
+ line: number;
1425
+ } | undefined;
1426
+ baseOperationId?: string | undefined;
1427
+ };
1428
+ timestamp: string;
1429
+ messageId: string;
1430
+ }, {
1431
+ type: "edit";
1432
+ operation: {
1433
+ type: "insert" | "delete" | "replace";
1434
+ version: number;
1435
+ userId: string;
1436
+ position: {
1437
+ column: number;
1438
+ line: number;
1439
+ };
1440
+ timestamp: string;
1441
+ operationId: string;
1442
+ documentId: string;
1443
+ sessionId: string;
1444
+ content?: string | undefined;
1445
+ endPosition?: {
1446
+ column: number;
1447
+ line: number;
1448
+ } | undefined;
1449
+ baseOperationId?: string | undefined;
1450
+ };
1451
+ timestamp: string;
1452
+ messageId: string;
1453
+ }>, z.ZodObject<{
1454
+ messageId: z.ZodString;
1455
+ timestamp: z.ZodString;
1456
+ } & {
1457
+ type: z.ZodLiteral<"ack">;
1458
+ ackMessageId: z.ZodString;
1459
+ success: z.ZodBoolean;
1460
+ error: z.ZodOptional<z.ZodString>;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ type: "ack";
1463
+ success: boolean;
1464
+ timestamp: string;
1465
+ messageId: string;
1466
+ ackMessageId: string;
1467
+ error?: string | undefined;
1468
+ }, {
1469
+ type: "ack";
1470
+ success: boolean;
1471
+ timestamp: string;
1472
+ messageId: string;
1473
+ ackMessageId: string;
1474
+ error?: string | undefined;
1475
+ }>, z.ZodObject<{
1476
+ messageId: z.ZodString;
1477
+ timestamp: z.ZodString;
1478
+ } & {
1479
+ type: z.ZodLiteral<"error">;
1480
+ code: z.ZodString;
1481
+ message: z.ZodString;
1482
+ details: z.ZodOptional<z.ZodAny>;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ message: string;
1485
+ code: string;
1486
+ type: "error";
1487
+ timestamp: string;
1488
+ messageId: string;
1489
+ details?: any;
1490
+ }, {
1491
+ message: string;
1492
+ code: string;
1493
+ type: "error";
1494
+ timestamp: string;
1495
+ messageId: string;
1496
+ details?: any;
1497
+ }>, z.ZodObject<{
1498
+ messageId: z.ZodString;
1499
+ timestamp: z.ZodString;
1500
+ } & {
1501
+ type: z.ZodLiteral<"ping">;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ type: "ping";
1504
+ timestamp: string;
1505
+ messageId: string;
1506
+ }, {
1507
+ type: "ping";
1508
+ timestamp: string;
1509
+ messageId: string;
1510
+ }>, z.ZodObject<{
1511
+ messageId: z.ZodString;
1512
+ timestamp: z.ZodString;
1513
+ } & {
1514
+ type: z.ZodLiteral<"pong">;
1515
+ pingMessageId: z.ZodOptional<z.ZodString>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ type: "pong";
1518
+ timestamp: string;
1519
+ messageId: string;
1520
+ pingMessageId?: string | undefined;
1521
+ }, {
1522
+ type: "pong";
1523
+ timestamp: string;
1524
+ messageId: string;
1525
+ pingMessageId?: string | undefined;
1526
+ }>]>;
1527
+ export type WebSocketMessage = z.infer<typeof WebSocketMessageSchema>;
1528
+ /**
1529
+ * WebSocket Connection Config
1530
+ * Configuration for WebSocket connections
1531
+ */
1532
+ export declare const WebSocketConfigSchema: z.ZodObject<{
1533
+ url: z.ZodString;
1534
+ protocols: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1535
+ reconnect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1536
+ reconnectInterval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1537
+ maxReconnectAttempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1538
+ pingInterval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1539
+ timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1540
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ url: string;
1543
+ timeout: number;
1544
+ reconnect: boolean;
1545
+ reconnectInterval: number;
1546
+ maxReconnectAttempts: number;
1547
+ pingInterval: number;
1548
+ headers?: Record<string, string> | undefined;
1549
+ protocols?: string[] | undefined;
1550
+ }, {
1551
+ url: string;
1552
+ headers?: Record<string, string> | undefined;
1553
+ timeout?: number | undefined;
1554
+ protocols?: string[] | undefined;
1555
+ reconnect?: boolean | undefined;
1556
+ reconnectInterval?: number | undefined;
1557
+ maxReconnectAttempts?: number | undefined;
1558
+ pingInterval?: number | undefined;
1559
+ }>;
1560
+ export type WebSocketConfig = z.infer<typeof WebSocketConfigSchema>;
1561
+ /**
1562
+ * Simplified WebSocket Event Schema
1563
+ *
1564
+ * A simplified event schema for basic WebSocket communication.
1565
+ * Complements the comprehensive WebSocketMessageSchema above for simpler use cases.
1566
+ *
1567
+ * @example Subscribe to channel
1568
+ * ```typescript
1569
+ * {
1570
+ * type: 'subscribe',
1571
+ * channel: 'record.account.123',
1572
+ * payload: { events: ['created', 'updated'] },
1573
+ * timestamp: Date.now()
1574
+ * }
1575
+ * ```
1576
+ *
1577
+ * @example Data change notification
1578
+ * ```typescript
1579
+ * {
1580
+ * type: 'data-change',
1581
+ * channel: 'record.account.123',
1582
+ * payload: { id: '123', action: 'updated', data: {...} },
1583
+ * timestamp: Date.now()
1584
+ * }
1585
+ * ```
1586
+ */
1587
+ export declare const WebSocketEventSchema: z.ZodObject<{
1588
+ type: z.ZodEnum<["subscribe", "unsubscribe", "data-change", "presence-update", "cursor-update", "error"]>;
1589
+ channel: z.ZodString;
1590
+ payload: z.ZodAny;
1591
+ timestamp: z.ZodNumber;
1592
+ }, "strip", z.ZodTypeAny, {
1593
+ type: "error" | "subscribe" | "unsubscribe" | "data-change" | "presence-update" | "cursor-update";
1594
+ timestamp: number;
1595
+ channel: string;
1596
+ payload?: any;
1597
+ }, {
1598
+ type: "error" | "subscribe" | "unsubscribe" | "data-change" | "presence-update" | "cursor-update";
1599
+ timestamp: number;
1600
+ channel: string;
1601
+ payload?: any;
1602
+ }>;
1603
+ export type WebSocketEvent = z.infer<typeof WebSocketEventSchema>;
1604
+ /**
1605
+ * Simplified Presence State Schema
1606
+ *
1607
+ * A simplified presence schema for basic user presence tracking.
1608
+ * Complements the comprehensive PresenceStateSchema for simpler integrations.
1609
+ *
1610
+ * Use this for basic presence features. For advanced features like device tracking,
1611
+ * custom status, and session management, use the comprehensive PresenceStateSchema above.
1612
+ *
1613
+ * @example User online
1614
+ * ```typescript
1615
+ * {
1616
+ * userId: 'user123',
1617
+ * userName: 'John Doe',
1618
+ * status: 'online',
1619
+ * lastSeen: Date.now(),
1620
+ * metadata: { currentPage: '/dashboard' }
1621
+ * }
1622
+ * ```
1623
+ */
1624
+ export declare const SimplePresenceStateSchema: z.ZodObject<{
1625
+ userId: z.ZodString;
1626
+ userName: z.ZodString;
1627
+ status: z.ZodEnum<["online", "away", "offline"]>;
1628
+ lastSeen: z.ZodNumber;
1629
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ status: "online" | "away" | "offline";
1632
+ userId: string;
1633
+ userName: string;
1634
+ lastSeen: number;
1635
+ metadata?: Record<string, any> | undefined;
1636
+ }, {
1637
+ status: "online" | "away" | "offline";
1638
+ userId: string;
1639
+ userName: string;
1640
+ lastSeen: number;
1641
+ metadata?: Record<string, any> | undefined;
1642
+ }>;
1643
+ export type SimplePresenceState = z.infer<typeof SimplePresenceStateSchema>;
1644
+ /**
1645
+ * Simplified Cursor Position Schema
1646
+ *
1647
+ * A simplified cursor position schema for basic collaborative editing.
1648
+ * Complements the comprehensive CursorPositionSchema for simpler use cases.
1649
+ *
1650
+ * Use this for basic cursor sharing. For advanced features like selections,
1651
+ * color coding, and document versioning, use the comprehensive CursorPositionSchema above.
1652
+ *
1653
+ * @example Cursor in text field
1654
+ * ```typescript
1655
+ * {
1656
+ * userId: 'user123',
1657
+ * recordId: 'account_456',
1658
+ * fieldName: 'description',
1659
+ * position: 42,
1660
+ * selection: { start: 42, end: 57 }
1661
+ * }
1662
+ * ```
1663
+ */
1664
+ export declare const SimpleCursorPositionSchema: z.ZodObject<{
1665
+ userId: z.ZodString;
1666
+ recordId: z.ZodString;
1667
+ fieldName: z.ZodString;
1668
+ position: z.ZodNumber;
1669
+ selection: z.ZodOptional<z.ZodObject<{
1670
+ start: z.ZodNumber;
1671
+ end: z.ZodNumber;
1672
+ }, "strip", z.ZodTypeAny, {
1673
+ start: number;
1674
+ end: number;
1675
+ }, {
1676
+ start: number;
1677
+ end: number;
1678
+ }>>;
1679
+ }, "strip", z.ZodTypeAny, {
1680
+ fieldName: string;
1681
+ userId: string;
1682
+ position: number;
1683
+ recordId: string;
1684
+ selection?: {
1685
+ start: number;
1686
+ end: number;
1687
+ } | undefined;
1688
+ }, {
1689
+ fieldName: string;
1690
+ userId: string;
1691
+ position: number;
1692
+ recordId: string;
1693
+ selection?: {
1694
+ start: number;
1695
+ end: number;
1696
+ } | undefined;
1697
+ }>;
1698
+ export type SimpleCursorPosition = z.infer<typeof SimpleCursorPositionSchema>;
1699
+ /**
1700
+ * WebSocket Server Configuration Schema
1701
+ *
1702
+ * Server-side configuration for WebSocket services.
1703
+ * Controls features like presence tracking, cursor sharing, and connection management.
1704
+ *
1705
+ * @example Production configuration
1706
+ * ```typescript
1707
+ * {
1708
+ * enabled: true,
1709
+ * path: '/ws',
1710
+ * heartbeatInterval: 30000,
1711
+ * reconnectAttempts: 5,
1712
+ * presence: true,
1713
+ * cursorSharing: true
1714
+ * }
1715
+ * ```
1716
+ */
1717
+ export declare const WebSocketServerConfigSchema: z.ZodObject<{
1718
+ enabled: z.ZodDefault<z.ZodBoolean>;
1719
+ path: z.ZodDefault<z.ZodString>;
1720
+ heartbeatInterval: z.ZodDefault<z.ZodNumber>;
1721
+ reconnectAttempts: z.ZodDefault<z.ZodNumber>;
1722
+ presence: z.ZodDefault<z.ZodBoolean>;
1723
+ cursorSharing: z.ZodDefault<z.ZodBoolean>;
1724
+ }, "strip", z.ZodTypeAny, {
1725
+ path: string;
1726
+ enabled: boolean;
1727
+ presence: boolean;
1728
+ heartbeatInterval: number;
1729
+ reconnectAttempts: number;
1730
+ cursorSharing: boolean;
1731
+ }, {
1732
+ path?: string | undefined;
1733
+ enabled?: boolean | undefined;
1734
+ presence?: boolean | undefined;
1735
+ heartbeatInterval?: number | undefined;
1736
+ reconnectAttempts?: number | undefined;
1737
+ cursorSharing?: boolean | undefined;
1738
+ }>;
1739
+ export type WebSocketServerConfig = z.infer<typeof WebSocketServerConfigSchema>;
1740
+ //# sourceMappingURL=websocket.zod.d.ts.map