@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,2099 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Real-Time Collaboration Protocol
4
+ *
5
+ * Defines schemas for real-time collaborative editing in ObjectStack.
6
+ * Supports Operational Transformation (OT), CRDT (Conflict-free Replicated Data Types),
7
+ * cursor sharing, and awareness state for collaborative applications.
8
+ *
9
+ * Industry alignment: Google Docs, Figma, VSCode Live Share, Yjs
10
+ */
11
+ /**
12
+ * OT Operation Type Enum
13
+ * Types of operations in Operational Transformation
14
+ */
15
+ export declare const OTOperationType: z.ZodEnum<["insert", "delete", "retain"]>;
16
+ export type OTOperationType = z.infer<typeof OTOperationType>;
17
+ /**
18
+ * OT Operation Component
19
+ * Single component of an OT operation
20
+ */
21
+ export declare const OTComponentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
22
+ type: z.ZodLiteral<"insert">;
23
+ text: z.ZodString;
24
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: "insert";
27
+ text: string;
28
+ attributes?: Record<string, any> | undefined;
29
+ }, {
30
+ type: "insert";
31
+ text: string;
32
+ attributes?: Record<string, any> | undefined;
33
+ }>, z.ZodObject<{
34
+ type: z.ZodLiteral<"delete">;
35
+ count: z.ZodNumber;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: "delete";
38
+ count: number;
39
+ }, {
40
+ type: "delete";
41
+ count: number;
42
+ }>, z.ZodObject<{
43
+ type: z.ZodLiteral<"retain">;
44
+ count: z.ZodNumber;
45
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: "retain";
48
+ count: number;
49
+ attributes?: Record<string, any> | undefined;
50
+ }, {
51
+ type: "retain";
52
+ count: number;
53
+ attributes?: Record<string, any> | undefined;
54
+ }>]>;
55
+ export type OTComponent = z.infer<typeof OTComponentSchema>;
56
+ /**
57
+ * OT Operation Schema
58
+ * Represents a complete OT operation
59
+ * Based on the OT algorithm used by Google Docs and other collaborative editors
60
+ */
61
+ export declare const OTOperationSchema: z.ZodObject<{
62
+ operationId: z.ZodString;
63
+ documentId: z.ZodString;
64
+ userId: z.ZodString;
65
+ sessionId: z.ZodString;
66
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
67
+ type: z.ZodLiteral<"insert">;
68
+ text: z.ZodString;
69
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ type: "insert";
72
+ text: string;
73
+ attributes?: Record<string, any> | undefined;
74
+ }, {
75
+ type: "insert";
76
+ text: string;
77
+ attributes?: Record<string, any> | undefined;
78
+ }>, z.ZodObject<{
79
+ type: z.ZodLiteral<"delete">;
80
+ count: z.ZodNumber;
81
+ }, "strip", z.ZodTypeAny, {
82
+ type: "delete";
83
+ count: number;
84
+ }, {
85
+ type: "delete";
86
+ count: number;
87
+ }>, z.ZodObject<{
88
+ type: z.ZodLiteral<"retain">;
89
+ count: z.ZodNumber;
90
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ type: "retain";
93
+ count: number;
94
+ attributes?: Record<string, any> | undefined;
95
+ }, {
96
+ type: "retain";
97
+ count: number;
98
+ attributes?: Record<string, any> | undefined;
99
+ }>]>, "many">;
100
+ baseVersion: z.ZodNumber;
101
+ timestamp: z.ZodString;
102
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ userId: string;
105
+ components: ({
106
+ type: "insert";
107
+ text: string;
108
+ attributes?: Record<string, any> | undefined;
109
+ } | {
110
+ type: "delete";
111
+ count: number;
112
+ } | {
113
+ type: "retain";
114
+ count: number;
115
+ attributes?: Record<string, any> | undefined;
116
+ })[];
117
+ timestamp: string;
118
+ operationId: string;
119
+ documentId: string;
120
+ sessionId: string;
121
+ baseVersion: number;
122
+ metadata?: Record<string, any> | undefined;
123
+ }, {
124
+ userId: string;
125
+ components: ({
126
+ type: "insert";
127
+ text: string;
128
+ attributes?: Record<string, any> | undefined;
129
+ } | {
130
+ type: "delete";
131
+ count: number;
132
+ } | {
133
+ type: "retain";
134
+ count: number;
135
+ attributes?: Record<string, any> | undefined;
136
+ })[];
137
+ timestamp: string;
138
+ operationId: string;
139
+ documentId: string;
140
+ sessionId: string;
141
+ baseVersion: number;
142
+ metadata?: Record<string, any> | undefined;
143
+ }>;
144
+ export type OTOperation = z.infer<typeof OTOperationSchema>;
145
+ /**
146
+ * OT Transform Result
147
+ * Result of transforming one operation against another
148
+ */
149
+ export declare const OTTransformResultSchema: z.ZodObject<{
150
+ operation: z.ZodObject<{
151
+ operationId: z.ZodString;
152
+ documentId: z.ZodString;
153
+ userId: z.ZodString;
154
+ sessionId: z.ZodString;
155
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
156
+ type: z.ZodLiteral<"insert">;
157
+ text: z.ZodString;
158
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type: "insert";
161
+ text: string;
162
+ attributes?: Record<string, any> | undefined;
163
+ }, {
164
+ type: "insert";
165
+ text: string;
166
+ attributes?: Record<string, any> | undefined;
167
+ }>, z.ZodObject<{
168
+ type: z.ZodLiteral<"delete">;
169
+ count: z.ZodNumber;
170
+ }, "strip", z.ZodTypeAny, {
171
+ type: "delete";
172
+ count: number;
173
+ }, {
174
+ type: "delete";
175
+ count: number;
176
+ }>, z.ZodObject<{
177
+ type: z.ZodLiteral<"retain">;
178
+ count: z.ZodNumber;
179
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ type: "retain";
182
+ count: number;
183
+ attributes?: Record<string, any> | undefined;
184
+ }, {
185
+ type: "retain";
186
+ count: number;
187
+ attributes?: Record<string, any> | undefined;
188
+ }>]>, "many">;
189
+ baseVersion: z.ZodNumber;
190
+ timestamp: z.ZodString;
191
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ userId: string;
194
+ components: ({
195
+ type: "insert";
196
+ text: string;
197
+ attributes?: Record<string, any> | undefined;
198
+ } | {
199
+ type: "delete";
200
+ count: number;
201
+ } | {
202
+ type: "retain";
203
+ count: number;
204
+ attributes?: Record<string, any> | undefined;
205
+ })[];
206
+ timestamp: string;
207
+ operationId: string;
208
+ documentId: string;
209
+ sessionId: string;
210
+ baseVersion: number;
211
+ metadata?: Record<string, any> | undefined;
212
+ }, {
213
+ userId: string;
214
+ components: ({
215
+ type: "insert";
216
+ text: string;
217
+ attributes?: Record<string, any> | undefined;
218
+ } | {
219
+ type: "delete";
220
+ count: number;
221
+ } | {
222
+ type: "retain";
223
+ count: number;
224
+ attributes?: Record<string, any> | undefined;
225
+ })[];
226
+ timestamp: string;
227
+ operationId: string;
228
+ documentId: string;
229
+ sessionId: string;
230
+ baseVersion: number;
231
+ metadata?: Record<string, any> | undefined;
232
+ }>;
233
+ transformed: z.ZodBoolean;
234
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ operation: {
237
+ userId: string;
238
+ components: ({
239
+ type: "insert";
240
+ text: string;
241
+ attributes?: Record<string, any> | undefined;
242
+ } | {
243
+ type: "delete";
244
+ count: number;
245
+ } | {
246
+ type: "retain";
247
+ count: number;
248
+ attributes?: Record<string, any> | undefined;
249
+ })[];
250
+ timestamp: string;
251
+ operationId: string;
252
+ documentId: string;
253
+ sessionId: string;
254
+ baseVersion: number;
255
+ metadata?: Record<string, any> | undefined;
256
+ };
257
+ transformed: boolean;
258
+ conflicts?: string[] | undefined;
259
+ }, {
260
+ operation: {
261
+ userId: string;
262
+ components: ({
263
+ type: "insert";
264
+ text: string;
265
+ attributes?: Record<string, any> | undefined;
266
+ } | {
267
+ type: "delete";
268
+ count: number;
269
+ } | {
270
+ type: "retain";
271
+ count: number;
272
+ attributes?: Record<string, any> | undefined;
273
+ })[];
274
+ timestamp: string;
275
+ operationId: string;
276
+ documentId: string;
277
+ sessionId: string;
278
+ baseVersion: number;
279
+ metadata?: Record<string, any> | undefined;
280
+ };
281
+ transformed: boolean;
282
+ conflicts?: string[] | undefined;
283
+ }>;
284
+ export type OTTransformResult = z.infer<typeof OTTransformResultSchema>;
285
+ /**
286
+ * CRDT Type Enum
287
+ * Types of CRDTs supported
288
+ */
289
+ export declare const CRDTType: z.ZodEnum<["lww-register", "g-counter", "pn-counter", "g-set", "or-set", "lww-map", "text", "tree", "json"]>;
290
+ export type CRDTType = z.infer<typeof CRDTType>;
291
+ /**
292
+ * Vector Clock Schema
293
+ * Tracks causality in distributed systems
294
+ */
295
+ export declare const VectorClockSchema: z.ZodObject<{
296
+ clock: z.ZodRecord<z.ZodString, z.ZodNumber>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ clock: Record<string, number>;
299
+ }, {
300
+ clock: Record<string, number>;
301
+ }>;
302
+ export type VectorClock = z.infer<typeof VectorClockSchema>;
303
+ /**
304
+ * LWW-Register Schema
305
+ * Last-Write-Wins Register CRDT
306
+ */
307
+ export declare const LWWRegisterSchema: z.ZodObject<{
308
+ type: z.ZodLiteral<"lww-register">;
309
+ value: z.ZodAny;
310
+ timestamp: z.ZodString;
311
+ replicaId: z.ZodString;
312
+ vectorClock: z.ZodOptional<z.ZodObject<{
313
+ clock: z.ZodRecord<z.ZodString, z.ZodNumber>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ clock: Record<string, number>;
316
+ }, {
317
+ clock: Record<string, number>;
318
+ }>>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ type: "lww-register";
321
+ timestamp: string;
322
+ replicaId: string;
323
+ value?: any;
324
+ vectorClock?: {
325
+ clock: Record<string, number>;
326
+ } | undefined;
327
+ }, {
328
+ type: "lww-register";
329
+ timestamp: string;
330
+ replicaId: string;
331
+ value?: any;
332
+ vectorClock?: {
333
+ clock: Record<string, number>;
334
+ } | undefined;
335
+ }>;
336
+ export type LWWRegister = z.infer<typeof LWWRegisterSchema>;
337
+ /**
338
+ * Counter Operation Schema
339
+ * Operations for Counter CRDTs
340
+ */
341
+ export declare const CounterOperationSchema: z.ZodObject<{
342
+ replicaId: z.ZodString;
343
+ delta: z.ZodNumber;
344
+ timestamp: z.ZodString;
345
+ }, "strip", z.ZodTypeAny, {
346
+ delta: number;
347
+ timestamp: string;
348
+ replicaId: string;
349
+ }, {
350
+ delta: number;
351
+ timestamp: string;
352
+ replicaId: string;
353
+ }>;
354
+ export type CounterOperation = z.infer<typeof CounterOperationSchema>;
355
+ /**
356
+ * G-Counter Schema
357
+ * Grow-only Counter CRDT
358
+ */
359
+ export declare const GCounterSchema: z.ZodObject<{
360
+ type: z.ZodLiteral<"g-counter">;
361
+ counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ type: "g-counter";
364
+ counts: Record<string, number>;
365
+ }, {
366
+ type: "g-counter";
367
+ counts: Record<string, number>;
368
+ }>;
369
+ export type GCounter = z.infer<typeof GCounterSchema>;
370
+ /**
371
+ * PN-Counter Schema
372
+ * Positive-Negative Counter CRDT (supports increment and decrement)
373
+ */
374
+ export declare const PNCounterSchema: z.ZodObject<{
375
+ type: z.ZodLiteral<"pn-counter">;
376
+ positive: z.ZodRecord<z.ZodString, z.ZodNumber>;
377
+ negative: z.ZodRecord<z.ZodString, z.ZodNumber>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ type: "pn-counter";
380
+ positive: Record<string, number>;
381
+ negative: Record<string, number>;
382
+ }, {
383
+ type: "pn-counter";
384
+ positive: Record<string, number>;
385
+ negative: Record<string, number>;
386
+ }>;
387
+ export type PNCounter = z.infer<typeof PNCounterSchema>;
388
+ /**
389
+ * OR-Set Element Schema
390
+ * Element in an Observed-Remove Set
391
+ */
392
+ export declare const ORSetElementSchema: z.ZodObject<{
393
+ value: z.ZodAny;
394
+ timestamp: z.ZodString;
395
+ replicaId: z.ZodString;
396
+ uid: z.ZodString;
397
+ removed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ timestamp: string;
400
+ replicaId: string;
401
+ uid: string;
402
+ removed: boolean;
403
+ value?: any;
404
+ }, {
405
+ timestamp: string;
406
+ replicaId: string;
407
+ uid: string;
408
+ value?: any;
409
+ removed?: boolean | undefined;
410
+ }>;
411
+ export type ORSetElement = z.infer<typeof ORSetElementSchema>;
412
+ /**
413
+ * OR-Set Schema
414
+ * Observed-Remove Set CRDT
415
+ */
416
+ export declare const ORSetSchema: z.ZodObject<{
417
+ type: z.ZodLiteral<"or-set">;
418
+ elements: z.ZodArray<z.ZodObject<{
419
+ value: z.ZodAny;
420
+ timestamp: z.ZodString;
421
+ replicaId: z.ZodString;
422
+ uid: z.ZodString;
423
+ removed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ timestamp: string;
426
+ replicaId: string;
427
+ uid: string;
428
+ removed: boolean;
429
+ value?: any;
430
+ }, {
431
+ timestamp: string;
432
+ replicaId: string;
433
+ uid: string;
434
+ value?: any;
435
+ removed?: boolean | undefined;
436
+ }>, "many">;
437
+ }, "strip", z.ZodTypeAny, {
438
+ type: "or-set";
439
+ elements: {
440
+ timestamp: string;
441
+ replicaId: string;
442
+ uid: string;
443
+ removed: boolean;
444
+ value?: any;
445
+ }[];
446
+ }, {
447
+ type: "or-set";
448
+ elements: {
449
+ timestamp: string;
450
+ replicaId: string;
451
+ uid: string;
452
+ value?: any;
453
+ removed?: boolean | undefined;
454
+ }[];
455
+ }>;
456
+ export type ORSet = z.infer<typeof ORSetSchema>;
457
+ /**
458
+ * Text CRDT Operation Schema
459
+ * Operations for text-based CRDTs (e.g., Yjs, Automerge)
460
+ */
461
+ export declare const TextCRDTOperationSchema: z.ZodObject<{
462
+ operationId: z.ZodString;
463
+ replicaId: z.ZodString;
464
+ position: z.ZodNumber;
465
+ insert: z.ZodOptional<z.ZodString>;
466
+ delete: z.ZodOptional<z.ZodNumber>;
467
+ timestamp: z.ZodString;
468
+ lamportTimestamp: z.ZodNumber;
469
+ }, "strip", z.ZodTypeAny, {
470
+ position: number;
471
+ timestamp: string;
472
+ operationId: string;
473
+ replicaId: string;
474
+ lamportTimestamp: number;
475
+ insert?: string | undefined;
476
+ delete?: number | undefined;
477
+ }, {
478
+ position: number;
479
+ timestamp: string;
480
+ operationId: string;
481
+ replicaId: string;
482
+ lamportTimestamp: number;
483
+ insert?: string | undefined;
484
+ delete?: number | undefined;
485
+ }>;
486
+ export type TextCRDTOperation = z.infer<typeof TextCRDTOperationSchema>;
487
+ /**
488
+ * Text CRDT State Schema
489
+ * State of a text-based CRDT document
490
+ */
491
+ export declare const TextCRDTStateSchema: z.ZodObject<{
492
+ type: z.ZodLiteral<"text">;
493
+ documentId: z.ZodString;
494
+ content: z.ZodString;
495
+ operations: z.ZodArray<z.ZodObject<{
496
+ operationId: z.ZodString;
497
+ replicaId: z.ZodString;
498
+ position: z.ZodNumber;
499
+ insert: z.ZodOptional<z.ZodString>;
500
+ delete: z.ZodOptional<z.ZodNumber>;
501
+ timestamp: z.ZodString;
502
+ lamportTimestamp: z.ZodNumber;
503
+ }, "strip", z.ZodTypeAny, {
504
+ position: number;
505
+ timestamp: string;
506
+ operationId: string;
507
+ replicaId: string;
508
+ lamportTimestamp: number;
509
+ insert?: string | undefined;
510
+ delete?: number | undefined;
511
+ }, {
512
+ position: number;
513
+ timestamp: string;
514
+ operationId: string;
515
+ replicaId: string;
516
+ lamportTimestamp: number;
517
+ insert?: string | undefined;
518
+ delete?: number | undefined;
519
+ }>, "many">;
520
+ lamportClock: z.ZodNumber;
521
+ vectorClock: z.ZodObject<{
522
+ clock: z.ZodRecord<z.ZodString, z.ZodNumber>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ clock: Record<string, number>;
525
+ }, {
526
+ clock: Record<string, number>;
527
+ }>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ type: "text";
530
+ documentId: string;
531
+ vectorClock: {
532
+ clock: Record<string, number>;
533
+ };
534
+ content: string;
535
+ operations: {
536
+ position: number;
537
+ timestamp: string;
538
+ operationId: string;
539
+ replicaId: string;
540
+ lamportTimestamp: number;
541
+ insert?: string | undefined;
542
+ delete?: number | undefined;
543
+ }[];
544
+ lamportClock: number;
545
+ }, {
546
+ type: "text";
547
+ documentId: string;
548
+ vectorClock: {
549
+ clock: Record<string, number>;
550
+ };
551
+ content: string;
552
+ operations: {
553
+ position: number;
554
+ timestamp: string;
555
+ operationId: string;
556
+ replicaId: string;
557
+ lamportTimestamp: number;
558
+ insert?: string | undefined;
559
+ delete?: number | undefined;
560
+ }[];
561
+ lamportClock: number;
562
+ }>;
563
+ export type TextCRDTState = z.infer<typeof TextCRDTStateSchema>;
564
+ /**
565
+ * CRDT State Union
566
+ * Discriminated union of all CRDT types
567
+ */
568
+ export declare const CRDTStateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
569
+ type: z.ZodLiteral<"lww-register">;
570
+ value: z.ZodAny;
571
+ timestamp: z.ZodString;
572
+ replicaId: z.ZodString;
573
+ vectorClock: z.ZodOptional<z.ZodObject<{
574
+ clock: z.ZodRecord<z.ZodString, z.ZodNumber>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ clock: Record<string, number>;
577
+ }, {
578
+ clock: Record<string, number>;
579
+ }>>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ type: "lww-register";
582
+ timestamp: string;
583
+ replicaId: string;
584
+ value?: any;
585
+ vectorClock?: {
586
+ clock: Record<string, number>;
587
+ } | undefined;
588
+ }, {
589
+ type: "lww-register";
590
+ timestamp: string;
591
+ replicaId: string;
592
+ value?: any;
593
+ vectorClock?: {
594
+ clock: Record<string, number>;
595
+ } | undefined;
596
+ }>, z.ZodObject<{
597
+ type: z.ZodLiteral<"g-counter">;
598
+ counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ type: "g-counter";
601
+ counts: Record<string, number>;
602
+ }, {
603
+ type: "g-counter";
604
+ counts: Record<string, number>;
605
+ }>, z.ZodObject<{
606
+ type: z.ZodLiteral<"pn-counter">;
607
+ positive: z.ZodRecord<z.ZodString, z.ZodNumber>;
608
+ negative: z.ZodRecord<z.ZodString, z.ZodNumber>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ type: "pn-counter";
611
+ positive: Record<string, number>;
612
+ negative: Record<string, number>;
613
+ }, {
614
+ type: "pn-counter";
615
+ positive: Record<string, number>;
616
+ negative: Record<string, number>;
617
+ }>, z.ZodObject<{
618
+ type: z.ZodLiteral<"or-set">;
619
+ elements: z.ZodArray<z.ZodObject<{
620
+ value: z.ZodAny;
621
+ timestamp: z.ZodString;
622
+ replicaId: z.ZodString;
623
+ uid: z.ZodString;
624
+ removed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ timestamp: string;
627
+ replicaId: string;
628
+ uid: string;
629
+ removed: boolean;
630
+ value?: any;
631
+ }, {
632
+ timestamp: string;
633
+ replicaId: string;
634
+ uid: string;
635
+ value?: any;
636
+ removed?: boolean | undefined;
637
+ }>, "many">;
638
+ }, "strip", z.ZodTypeAny, {
639
+ type: "or-set";
640
+ elements: {
641
+ timestamp: string;
642
+ replicaId: string;
643
+ uid: string;
644
+ removed: boolean;
645
+ value?: any;
646
+ }[];
647
+ }, {
648
+ type: "or-set";
649
+ elements: {
650
+ timestamp: string;
651
+ replicaId: string;
652
+ uid: string;
653
+ value?: any;
654
+ removed?: boolean | undefined;
655
+ }[];
656
+ }>, z.ZodObject<{
657
+ type: z.ZodLiteral<"text">;
658
+ documentId: z.ZodString;
659
+ content: z.ZodString;
660
+ operations: z.ZodArray<z.ZodObject<{
661
+ operationId: z.ZodString;
662
+ replicaId: z.ZodString;
663
+ position: z.ZodNumber;
664
+ insert: z.ZodOptional<z.ZodString>;
665
+ delete: z.ZodOptional<z.ZodNumber>;
666
+ timestamp: z.ZodString;
667
+ lamportTimestamp: z.ZodNumber;
668
+ }, "strip", z.ZodTypeAny, {
669
+ position: number;
670
+ timestamp: string;
671
+ operationId: string;
672
+ replicaId: string;
673
+ lamportTimestamp: number;
674
+ insert?: string | undefined;
675
+ delete?: number | undefined;
676
+ }, {
677
+ position: number;
678
+ timestamp: string;
679
+ operationId: string;
680
+ replicaId: string;
681
+ lamportTimestamp: number;
682
+ insert?: string | undefined;
683
+ delete?: number | undefined;
684
+ }>, "many">;
685
+ lamportClock: z.ZodNumber;
686
+ vectorClock: z.ZodObject<{
687
+ clock: z.ZodRecord<z.ZodString, z.ZodNumber>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ clock: Record<string, number>;
690
+ }, {
691
+ clock: Record<string, number>;
692
+ }>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ type: "text";
695
+ documentId: string;
696
+ vectorClock: {
697
+ clock: Record<string, number>;
698
+ };
699
+ content: string;
700
+ operations: {
701
+ position: number;
702
+ timestamp: string;
703
+ operationId: string;
704
+ replicaId: string;
705
+ lamportTimestamp: number;
706
+ insert?: string | undefined;
707
+ delete?: number | undefined;
708
+ }[];
709
+ lamportClock: number;
710
+ }, {
711
+ type: "text";
712
+ documentId: string;
713
+ vectorClock: {
714
+ clock: Record<string, number>;
715
+ };
716
+ content: string;
717
+ operations: {
718
+ position: number;
719
+ timestamp: string;
720
+ operationId: string;
721
+ replicaId: string;
722
+ lamportTimestamp: number;
723
+ insert?: string | undefined;
724
+ delete?: number | undefined;
725
+ }[];
726
+ lamportClock: number;
727
+ }>]>;
728
+ export type CRDTState = z.infer<typeof CRDTStateSchema>;
729
+ /**
730
+ * CRDT Merge Schema
731
+ * Result of merging two CRDT states
732
+ */
733
+ export declare const CRDTMergeResultSchema: z.ZodObject<{
734
+ state: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
735
+ type: z.ZodLiteral<"lww-register">;
736
+ value: z.ZodAny;
737
+ timestamp: z.ZodString;
738
+ replicaId: z.ZodString;
739
+ vectorClock: z.ZodOptional<z.ZodObject<{
740
+ clock: z.ZodRecord<z.ZodString, z.ZodNumber>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ clock: Record<string, number>;
743
+ }, {
744
+ clock: Record<string, number>;
745
+ }>>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ type: "lww-register";
748
+ timestamp: string;
749
+ replicaId: string;
750
+ value?: any;
751
+ vectorClock?: {
752
+ clock: Record<string, number>;
753
+ } | undefined;
754
+ }, {
755
+ type: "lww-register";
756
+ timestamp: string;
757
+ replicaId: string;
758
+ value?: any;
759
+ vectorClock?: {
760
+ clock: Record<string, number>;
761
+ } | undefined;
762
+ }>, z.ZodObject<{
763
+ type: z.ZodLiteral<"g-counter">;
764
+ counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ type: "g-counter";
767
+ counts: Record<string, number>;
768
+ }, {
769
+ type: "g-counter";
770
+ counts: Record<string, number>;
771
+ }>, z.ZodObject<{
772
+ type: z.ZodLiteral<"pn-counter">;
773
+ positive: z.ZodRecord<z.ZodString, z.ZodNumber>;
774
+ negative: z.ZodRecord<z.ZodString, z.ZodNumber>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ type: "pn-counter";
777
+ positive: Record<string, number>;
778
+ negative: Record<string, number>;
779
+ }, {
780
+ type: "pn-counter";
781
+ positive: Record<string, number>;
782
+ negative: Record<string, number>;
783
+ }>, z.ZodObject<{
784
+ type: z.ZodLiteral<"or-set">;
785
+ elements: z.ZodArray<z.ZodObject<{
786
+ value: z.ZodAny;
787
+ timestamp: z.ZodString;
788
+ replicaId: z.ZodString;
789
+ uid: z.ZodString;
790
+ removed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ timestamp: string;
793
+ replicaId: string;
794
+ uid: string;
795
+ removed: boolean;
796
+ value?: any;
797
+ }, {
798
+ timestamp: string;
799
+ replicaId: string;
800
+ uid: string;
801
+ value?: any;
802
+ removed?: boolean | undefined;
803
+ }>, "many">;
804
+ }, "strip", z.ZodTypeAny, {
805
+ type: "or-set";
806
+ elements: {
807
+ timestamp: string;
808
+ replicaId: string;
809
+ uid: string;
810
+ removed: boolean;
811
+ value?: any;
812
+ }[];
813
+ }, {
814
+ type: "or-set";
815
+ elements: {
816
+ timestamp: string;
817
+ replicaId: string;
818
+ uid: string;
819
+ value?: any;
820
+ removed?: boolean | undefined;
821
+ }[];
822
+ }>, z.ZodObject<{
823
+ type: z.ZodLiteral<"text">;
824
+ documentId: z.ZodString;
825
+ content: z.ZodString;
826
+ operations: z.ZodArray<z.ZodObject<{
827
+ operationId: z.ZodString;
828
+ replicaId: z.ZodString;
829
+ position: z.ZodNumber;
830
+ insert: z.ZodOptional<z.ZodString>;
831
+ delete: z.ZodOptional<z.ZodNumber>;
832
+ timestamp: z.ZodString;
833
+ lamportTimestamp: z.ZodNumber;
834
+ }, "strip", z.ZodTypeAny, {
835
+ position: number;
836
+ timestamp: string;
837
+ operationId: string;
838
+ replicaId: string;
839
+ lamportTimestamp: number;
840
+ insert?: string | undefined;
841
+ delete?: number | undefined;
842
+ }, {
843
+ position: number;
844
+ timestamp: string;
845
+ operationId: string;
846
+ replicaId: string;
847
+ lamportTimestamp: number;
848
+ insert?: string | undefined;
849
+ delete?: number | undefined;
850
+ }>, "many">;
851
+ lamportClock: z.ZodNumber;
852
+ vectorClock: z.ZodObject<{
853
+ clock: z.ZodRecord<z.ZodString, z.ZodNumber>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ clock: Record<string, number>;
856
+ }, {
857
+ clock: Record<string, number>;
858
+ }>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ type: "text";
861
+ documentId: string;
862
+ vectorClock: {
863
+ clock: Record<string, number>;
864
+ };
865
+ content: string;
866
+ operations: {
867
+ position: number;
868
+ timestamp: string;
869
+ operationId: string;
870
+ replicaId: string;
871
+ lamportTimestamp: number;
872
+ insert?: string | undefined;
873
+ delete?: number | undefined;
874
+ }[];
875
+ lamportClock: number;
876
+ }, {
877
+ type: "text";
878
+ documentId: string;
879
+ vectorClock: {
880
+ clock: Record<string, number>;
881
+ };
882
+ content: string;
883
+ operations: {
884
+ position: number;
885
+ timestamp: string;
886
+ operationId: string;
887
+ replicaId: string;
888
+ lamportTimestamp: number;
889
+ insert?: string | undefined;
890
+ delete?: number | undefined;
891
+ }[];
892
+ lamportClock: number;
893
+ }>]>;
894
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
895
+ type: z.ZodString;
896
+ description: z.ZodString;
897
+ resolved: z.ZodBoolean;
898
+ }, "strip", z.ZodTypeAny, {
899
+ type: string;
900
+ description: string;
901
+ resolved: boolean;
902
+ }, {
903
+ type: string;
904
+ description: string;
905
+ resolved: boolean;
906
+ }>, "many">>;
907
+ }, "strip", z.ZodTypeAny, {
908
+ state: {
909
+ type: "lww-register";
910
+ timestamp: string;
911
+ replicaId: string;
912
+ value?: any;
913
+ vectorClock?: {
914
+ clock: Record<string, number>;
915
+ } | undefined;
916
+ } | {
917
+ type: "g-counter";
918
+ counts: Record<string, number>;
919
+ } | {
920
+ type: "pn-counter";
921
+ positive: Record<string, number>;
922
+ negative: Record<string, number>;
923
+ } | {
924
+ type: "or-set";
925
+ elements: {
926
+ timestamp: string;
927
+ replicaId: string;
928
+ uid: string;
929
+ removed: boolean;
930
+ value?: any;
931
+ }[];
932
+ } | {
933
+ type: "text";
934
+ documentId: string;
935
+ vectorClock: {
936
+ clock: Record<string, number>;
937
+ };
938
+ content: string;
939
+ operations: {
940
+ position: number;
941
+ timestamp: string;
942
+ operationId: string;
943
+ replicaId: string;
944
+ lamportTimestamp: number;
945
+ insert?: string | undefined;
946
+ delete?: number | undefined;
947
+ }[];
948
+ lamportClock: number;
949
+ };
950
+ conflicts?: {
951
+ type: string;
952
+ description: string;
953
+ resolved: boolean;
954
+ }[] | undefined;
955
+ }, {
956
+ state: {
957
+ type: "lww-register";
958
+ timestamp: string;
959
+ replicaId: string;
960
+ value?: any;
961
+ vectorClock?: {
962
+ clock: Record<string, number>;
963
+ } | undefined;
964
+ } | {
965
+ type: "g-counter";
966
+ counts: Record<string, number>;
967
+ } | {
968
+ type: "pn-counter";
969
+ positive: Record<string, number>;
970
+ negative: Record<string, number>;
971
+ } | {
972
+ type: "or-set";
973
+ elements: {
974
+ timestamp: string;
975
+ replicaId: string;
976
+ uid: string;
977
+ value?: any;
978
+ removed?: boolean | undefined;
979
+ }[];
980
+ } | {
981
+ type: "text";
982
+ documentId: string;
983
+ vectorClock: {
984
+ clock: Record<string, number>;
985
+ };
986
+ content: string;
987
+ operations: {
988
+ position: number;
989
+ timestamp: string;
990
+ operationId: string;
991
+ replicaId: string;
992
+ lamportTimestamp: number;
993
+ insert?: string | undefined;
994
+ delete?: number | undefined;
995
+ }[];
996
+ lamportClock: number;
997
+ };
998
+ conflicts?: {
999
+ type: string;
1000
+ description: string;
1001
+ resolved: boolean;
1002
+ }[] | undefined;
1003
+ }>;
1004
+ export type CRDTMergeResult = z.infer<typeof CRDTMergeResultSchema>;
1005
+ /**
1006
+ * Cursor Color Preset Enum
1007
+ * Standard color presets for cursor visualization
1008
+ */
1009
+ export declare const CursorColorPreset: z.ZodEnum<["blue", "green", "red", "yellow", "purple", "orange", "pink", "teal", "indigo", "cyan"]>;
1010
+ export type CursorColorPreset = z.infer<typeof CursorColorPreset>;
1011
+ /**
1012
+ * Cursor Style Schema
1013
+ * Visual styling for collaborative cursors
1014
+ */
1015
+ export declare const CursorStyleSchema: z.ZodObject<{
1016
+ color: z.ZodUnion<[z.ZodEnum<["blue", "green", "red", "yellow", "purple", "orange", "pink", "teal", "indigo", "cyan"]>, z.ZodString]>;
1017
+ opacity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1018
+ label: z.ZodOptional<z.ZodString>;
1019
+ showLabel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1020
+ pulseOnUpdate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ color: string;
1023
+ opacity: number;
1024
+ showLabel: boolean;
1025
+ pulseOnUpdate: boolean;
1026
+ label?: string | undefined;
1027
+ }, {
1028
+ color: string;
1029
+ label?: string | undefined;
1030
+ opacity?: number | undefined;
1031
+ showLabel?: boolean | undefined;
1032
+ pulseOnUpdate?: boolean | undefined;
1033
+ }>;
1034
+ export type CursorStyle = z.infer<typeof CursorStyleSchema>;
1035
+ /**
1036
+ * Cursor Selection Schema
1037
+ * Represents a text selection in collaborative editing
1038
+ */
1039
+ export declare const CursorSelectionSchema: z.ZodObject<{
1040
+ anchor: z.ZodObject<{
1041
+ line: z.ZodNumber;
1042
+ column: z.ZodNumber;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ column: number;
1045
+ line: number;
1046
+ }, {
1047
+ column: number;
1048
+ line: number;
1049
+ }>;
1050
+ focus: z.ZodObject<{
1051
+ line: z.ZodNumber;
1052
+ column: z.ZodNumber;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ column: number;
1055
+ line: number;
1056
+ }, {
1057
+ column: number;
1058
+ line: number;
1059
+ }>;
1060
+ direction: z.ZodOptional<z.ZodEnum<["forward", "backward"]>>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ anchor: {
1063
+ column: number;
1064
+ line: number;
1065
+ };
1066
+ focus: {
1067
+ column: number;
1068
+ line: number;
1069
+ };
1070
+ direction?: "forward" | "backward" | undefined;
1071
+ }, {
1072
+ anchor: {
1073
+ column: number;
1074
+ line: number;
1075
+ };
1076
+ focus: {
1077
+ column: number;
1078
+ line: number;
1079
+ };
1080
+ direction?: "forward" | "backward" | undefined;
1081
+ }>;
1082
+ export type CursorSelection = z.infer<typeof CursorSelectionSchema>;
1083
+ /**
1084
+ * Collaborative Cursor Schema
1085
+ * Complete cursor state for a collaborative user
1086
+ */
1087
+ export declare const CollaborativeCursorSchema: z.ZodObject<{
1088
+ userId: z.ZodString;
1089
+ sessionId: z.ZodString;
1090
+ documentId: z.ZodString;
1091
+ userName: z.ZodString;
1092
+ position: z.ZodObject<{
1093
+ line: z.ZodNumber;
1094
+ column: z.ZodNumber;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ column: number;
1097
+ line: number;
1098
+ }, {
1099
+ column: number;
1100
+ line: number;
1101
+ }>;
1102
+ selection: z.ZodOptional<z.ZodObject<{
1103
+ anchor: z.ZodObject<{
1104
+ line: z.ZodNumber;
1105
+ column: z.ZodNumber;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ column: number;
1108
+ line: number;
1109
+ }, {
1110
+ column: number;
1111
+ line: number;
1112
+ }>;
1113
+ focus: z.ZodObject<{
1114
+ line: z.ZodNumber;
1115
+ column: z.ZodNumber;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ column: number;
1118
+ line: number;
1119
+ }, {
1120
+ column: number;
1121
+ line: number;
1122
+ }>;
1123
+ direction: z.ZodOptional<z.ZodEnum<["forward", "backward"]>>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ anchor: {
1126
+ column: number;
1127
+ line: number;
1128
+ };
1129
+ focus: {
1130
+ column: number;
1131
+ line: number;
1132
+ };
1133
+ direction?: "forward" | "backward" | undefined;
1134
+ }, {
1135
+ anchor: {
1136
+ column: number;
1137
+ line: number;
1138
+ };
1139
+ focus: {
1140
+ column: number;
1141
+ line: number;
1142
+ };
1143
+ direction?: "forward" | "backward" | undefined;
1144
+ }>>;
1145
+ style: z.ZodObject<{
1146
+ color: z.ZodUnion<[z.ZodEnum<["blue", "green", "red", "yellow", "purple", "orange", "pink", "teal", "indigo", "cyan"]>, z.ZodString]>;
1147
+ opacity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1148
+ label: z.ZodOptional<z.ZodString>;
1149
+ showLabel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1150
+ pulseOnUpdate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ color: string;
1153
+ opacity: number;
1154
+ showLabel: boolean;
1155
+ pulseOnUpdate: boolean;
1156
+ label?: string | undefined;
1157
+ }, {
1158
+ color: string;
1159
+ label?: string | undefined;
1160
+ opacity?: number | undefined;
1161
+ showLabel?: boolean | undefined;
1162
+ pulseOnUpdate?: boolean | undefined;
1163
+ }>;
1164
+ isTyping: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1165
+ lastUpdate: z.ZodString;
1166
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ userId: string;
1169
+ position: {
1170
+ column: number;
1171
+ line: number;
1172
+ };
1173
+ documentId: string;
1174
+ sessionId: string;
1175
+ userName: string;
1176
+ style: {
1177
+ color: string;
1178
+ opacity: number;
1179
+ showLabel: boolean;
1180
+ pulseOnUpdate: boolean;
1181
+ label?: string | undefined;
1182
+ };
1183
+ isTyping: boolean;
1184
+ lastUpdate: string;
1185
+ metadata?: Record<string, any> | undefined;
1186
+ selection?: {
1187
+ anchor: {
1188
+ column: number;
1189
+ line: number;
1190
+ };
1191
+ focus: {
1192
+ column: number;
1193
+ line: number;
1194
+ };
1195
+ direction?: "forward" | "backward" | undefined;
1196
+ } | undefined;
1197
+ }, {
1198
+ userId: string;
1199
+ position: {
1200
+ column: number;
1201
+ line: number;
1202
+ };
1203
+ documentId: string;
1204
+ sessionId: string;
1205
+ userName: string;
1206
+ style: {
1207
+ color: string;
1208
+ label?: string | undefined;
1209
+ opacity?: number | undefined;
1210
+ showLabel?: boolean | undefined;
1211
+ pulseOnUpdate?: boolean | undefined;
1212
+ };
1213
+ lastUpdate: string;
1214
+ metadata?: Record<string, any> | undefined;
1215
+ selection?: {
1216
+ anchor: {
1217
+ column: number;
1218
+ line: number;
1219
+ };
1220
+ focus: {
1221
+ column: number;
1222
+ line: number;
1223
+ };
1224
+ direction?: "forward" | "backward" | undefined;
1225
+ } | undefined;
1226
+ isTyping?: boolean | undefined;
1227
+ }>;
1228
+ export type CollaborativeCursor = z.infer<typeof CollaborativeCursorSchema>;
1229
+ /**
1230
+ * Cursor Update Schema
1231
+ * Update to a collaborative cursor
1232
+ */
1233
+ export declare const CursorUpdateSchema: z.ZodObject<{
1234
+ position: z.ZodOptional<z.ZodObject<{
1235
+ line: z.ZodNumber;
1236
+ column: z.ZodNumber;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ column: number;
1239
+ line: number;
1240
+ }, {
1241
+ column: number;
1242
+ line: number;
1243
+ }>>;
1244
+ selection: z.ZodOptional<z.ZodObject<{
1245
+ anchor: z.ZodObject<{
1246
+ line: z.ZodNumber;
1247
+ column: z.ZodNumber;
1248
+ }, "strip", z.ZodTypeAny, {
1249
+ column: number;
1250
+ line: number;
1251
+ }, {
1252
+ column: number;
1253
+ line: number;
1254
+ }>;
1255
+ focus: z.ZodObject<{
1256
+ line: z.ZodNumber;
1257
+ column: z.ZodNumber;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ column: number;
1260
+ line: number;
1261
+ }, {
1262
+ column: number;
1263
+ line: number;
1264
+ }>;
1265
+ direction: z.ZodOptional<z.ZodEnum<["forward", "backward"]>>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ anchor: {
1268
+ column: number;
1269
+ line: number;
1270
+ };
1271
+ focus: {
1272
+ column: number;
1273
+ line: number;
1274
+ };
1275
+ direction?: "forward" | "backward" | undefined;
1276
+ }, {
1277
+ anchor: {
1278
+ column: number;
1279
+ line: number;
1280
+ };
1281
+ focus: {
1282
+ column: number;
1283
+ line: number;
1284
+ };
1285
+ direction?: "forward" | "backward" | undefined;
1286
+ }>>;
1287
+ isTyping: z.ZodOptional<z.ZodBoolean>;
1288
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ metadata?: Record<string, any> | undefined;
1291
+ selection?: {
1292
+ anchor: {
1293
+ column: number;
1294
+ line: number;
1295
+ };
1296
+ focus: {
1297
+ column: number;
1298
+ line: number;
1299
+ };
1300
+ direction?: "forward" | "backward" | undefined;
1301
+ } | undefined;
1302
+ position?: {
1303
+ column: number;
1304
+ line: number;
1305
+ } | undefined;
1306
+ isTyping?: boolean | undefined;
1307
+ }, {
1308
+ metadata?: Record<string, any> | undefined;
1309
+ selection?: {
1310
+ anchor: {
1311
+ column: number;
1312
+ line: number;
1313
+ };
1314
+ focus: {
1315
+ column: number;
1316
+ line: number;
1317
+ };
1318
+ direction?: "forward" | "backward" | undefined;
1319
+ } | undefined;
1320
+ position?: {
1321
+ column: number;
1322
+ line: number;
1323
+ } | undefined;
1324
+ isTyping?: boolean | undefined;
1325
+ }>;
1326
+ export type CursorUpdate = z.infer<typeof CursorUpdateSchema>;
1327
+ /**
1328
+ * User Activity Status Enum
1329
+ * User activity status for awareness
1330
+ */
1331
+ export declare const UserActivityStatus: z.ZodEnum<["active", "idle", "viewing", "disconnected"]>;
1332
+ export type UserActivityStatus = z.infer<typeof UserActivityStatus>;
1333
+ /**
1334
+ * Awareness User State Schema
1335
+ * Tracks what a user is doing in the collaborative session
1336
+ */
1337
+ export declare const AwarenessUserStateSchema: z.ZodObject<{
1338
+ userId: z.ZodString;
1339
+ sessionId: z.ZodString;
1340
+ userName: z.ZodString;
1341
+ userAvatar: z.ZodOptional<z.ZodString>;
1342
+ status: z.ZodEnum<["active", "idle", "viewing", "disconnected"]>;
1343
+ currentDocument: z.ZodOptional<z.ZodString>;
1344
+ currentView: z.ZodOptional<z.ZodString>;
1345
+ lastActivity: z.ZodString;
1346
+ joinedAt: z.ZodString;
1347
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1348
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ status: "active" | "idle" | "viewing" | "disconnected";
1351
+ userId: string;
1352
+ sessionId: string;
1353
+ userName: string;
1354
+ lastActivity: string;
1355
+ joinedAt: string;
1356
+ metadata?: Record<string, any> | undefined;
1357
+ userAvatar?: string | undefined;
1358
+ currentDocument?: string | undefined;
1359
+ currentView?: string | undefined;
1360
+ permissions?: string[] | undefined;
1361
+ }, {
1362
+ status: "active" | "idle" | "viewing" | "disconnected";
1363
+ userId: string;
1364
+ sessionId: string;
1365
+ userName: string;
1366
+ lastActivity: string;
1367
+ joinedAt: string;
1368
+ metadata?: Record<string, any> | undefined;
1369
+ userAvatar?: string | undefined;
1370
+ currentDocument?: string | undefined;
1371
+ currentView?: string | undefined;
1372
+ permissions?: string[] | undefined;
1373
+ }>;
1374
+ export type AwarenessUserState = z.infer<typeof AwarenessUserStateSchema>;
1375
+ /**
1376
+ * Awareness Session Schema
1377
+ * Represents the complete awareness state for a collaboration session
1378
+ */
1379
+ export declare const AwarenessSessionSchema: z.ZodObject<{
1380
+ sessionId: z.ZodString;
1381
+ documentId: z.ZodOptional<z.ZodString>;
1382
+ users: z.ZodArray<z.ZodObject<{
1383
+ userId: z.ZodString;
1384
+ sessionId: z.ZodString;
1385
+ userName: z.ZodString;
1386
+ userAvatar: z.ZodOptional<z.ZodString>;
1387
+ status: z.ZodEnum<["active", "idle", "viewing", "disconnected"]>;
1388
+ currentDocument: z.ZodOptional<z.ZodString>;
1389
+ currentView: z.ZodOptional<z.ZodString>;
1390
+ lastActivity: z.ZodString;
1391
+ joinedAt: z.ZodString;
1392
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1393
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ status: "active" | "idle" | "viewing" | "disconnected";
1396
+ userId: string;
1397
+ sessionId: string;
1398
+ userName: string;
1399
+ lastActivity: string;
1400
+ joinedAt: string;
1401
+ metadata?: Record<string, any> | undefined;
1402
+ userAvatar?: string | undefined;
1403
+ currentDocument?: string | undefined;
1404
+ currentView?: string | undefined;
1405
+ permissions?: string[] | undefined;
1406
+ }, {
1407
+ status: "active" | "idle" | "viewing" | "disconnected";
1408
+ userId: string;
1409
+ sessionId: string;
1410
+ userName: string;
1411
+ lastActivity: string;
1412
+ joinedAt: string;
1413
+ metadata?: Record<string, any> | undefined;
1414
+ userAvatar?: string | undefined;
1415
+ currentDocument?: string | undefined;
1416
+ currentView?: string | undefined;
1417
+ permissions?: string[] | undefined;
1418
+ }>, "many">;
1419
+ startedAt: z.ZodString;
1420
+ lastUpdate: z.ZodString;
1421
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1422
+ }, "strip", z.ZodTypeAny, {
1423
+ startedAt: string;
1424
+ users: {
1425
+ status: "active" | "idle" | "viewing" | "disconnected";
1426
+ userId: string;
1427
+ sessionId: string;
1428
+ userName: string;
1429
+ lastActivity: string;
1430
+ joinedAt: string;
1431
+ metadata?: Record<string, any> | undefined;
1432
+ userAvatar?: string | undefined;
1433
+ currentDocument?: string | undefined;
1434
+ currentView?: string | undefined;
1435
+ permissions?: string[] | undefined;
1436
+ }[];
1437
+ sessionId: string;
1438
+ lastUpdate: string;
1439
+ metadata?: Record<string, any> | undefined;
1440
+ documentId?: string | undefined;
1441
+ }, {
1442
+ startedAt: string;
1443
+ users: {
1444
+ status: "active" | "idle" | "viewing" | "disconnected";
1445
+ userId: string;
1446
+ sessionId: string;
1447
+ userName: string;
1448
+ lastActivity: string;
1449
+ joinedAt: string;
1450
+ metadata?: Record<string, any> | undefined;
1451
+ userAvatar?: string | undefined;
1452
+ currentDocument?: string | undefined;
1453
+ currentView?: string | undefined;
1454
+ permissions?: string[] | undefined;
1455
+ }[];
1456
+ sessionId: string;
1457
+ lastUpdate: string;
1458
+ metadata?: Record<string, any> | undefined;
1459
+ documentId?: string | undefined;
1460
+ }>;
1461
+ export type AwarenessSession = z.infer<typeof AwarenessSessionSchema>;
1462
+ /**
1463
+ * Awareness Update Schema
1464
+ * Update to awareness state
1465
+ */
1466
+ export declare const AwarenessUpdateSchema: z.ZodObject<{
1467
+ status: z.ZodOptional<z.ZodEnum<["active", "idle", "viewing", "disconnected"]>>;
1468
+ currentDocument: z.ZodOptional<z.ZodString>;
1469
+ currentView: z.ZodOptional<z.ZodString>;
1470
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ status?: "active" | "idle" | "viewing" | "disconnected" | undefined;
1473
+ metadata?: Record<string, any> | undefined;
1474
+ currentDocument?: string | undefined;
1475
+ currentView?: string | undefined;
1476
+ }, {
1477
+ status?: "active" | "idle" | "viewing" | "disconnected" | undefined;
1478
+ metadata?: Record<string, any> | undefined;
1479
+ currentDocument?: string | undefined;
1480
+ currentView?: string | undefined;
1481
+ }>;
1482
+ export type AwarenessUpdate = z.infer<typeof AwarenessUpdateSchema>;
1483
+ /**
1484
+ * Awareness Event Schema
1485
+ * Events that occur in awareness tracking
1486
+ */
1487
+ export declare const AwarenessEventSchema: z.ZodObject<{
1488
+ eventId: z.ZodString;
1489
+ sessionId: z.ZodString;
1490
+ eventType: z.ZodEnum<["user.joined", "user.left", "user.updated", "session.created", "session.ended"]>;
1491
+ userId: z.ZodOptional<z.ZodString>;
1492
+ timestamp: z.ZodString;
1493
+ payload: z.ZodAny;
1494
+ }, "strip", z.ZodTypeAny, {
1495
+ eventType: "user.joined" | "user.left" | "user.updated" | "session.created" | "session.ended";
1496
+ timestamp: string;
1497
+ sessionId: string;
1498
+ eventId: string;
1499
+ userId?: string | undefined;
1500
+ payload?: any;
1501
+ }, {
1502
+ eventType: "user.joined" | "user.left" | "user.updated" | "session.created" | "session.ended";
1503
+ timestamp: string;
1504
+ sessionId: string;
1505
+ eventId: string;
1506
+ userId?: string | undefined;
1507
+ payload?: any;
1508
+ }>;
1509
+ export type AwarenessEvent = z.infer<typeof AwarenessEventSchema>;
1510
+ /**
1511
+ * Collaboration Mode Enum
1512
+ * Types of collaboration modes
1513
+ */
1514
+ export declare const CollaborationMode: z.ZodEnum<["ot", "crdt", "lock", "hybrid"]>;
1515
+ export type CollaborationMode = z.infer<typeof CollaborationMode>;
1516
+ /**
1517
+ * Collaboration Session Config
1518
+ * Configuration for a collaboration session
1519
+ */
1520
+ export declare const CollaborationSessionConfigSchema: z.ZodObject<{
1521
+ mode: z.ZodEnum<["ot", "crdt", "lock", "hybrid"]>;
1522
+ enableCursorSharing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1523
+ enablePresence: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1524
+ enableAwareness: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1525
+ maxUsers: z.ZodOptional<z.ZodNumber>;
1526
+ idleTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1527
+ conflictResolution: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ot", "crdt", "manual"]>>>;
1528
+ persistence: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1529
+ snapshot: z.ZodOptional<z.ZodObject<{
1530
+ enabled: z.ZodBoolean;
1531
+ interval: z.ZodNumber;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ enabled: boolean;
1534
+ interval: number;
1535
+ }, {
1536
+ enabled: boolean;
1537
+ interval: number;
1538
+ }>>;
1539
+ }, "strip", z.ZodTypeAny, {
1540
+ mode: "hybrid" | "ot" | "crdt" | "lock";
1541
+ persistence: boolean;
1542
+ enableCursorSharing: boolean;
1543
+ enablePresence: boolean;
1544
+ enableAwareness: boolean;
1545
+ idleTimeout: number;
1546
+ conflictResolution: "ot" | "crdt" | "manual";
1547
+ snapshot?: {
1548
+ enabled: boolean;
1549
+ interval: number;
1550
+ } | undefined;
1551
+ maxUsers?: number | undefined;
1552
+ }, {
1553
+ mode: "hybrid" | "ot" | "crdt" | "lock";
1554
+ snapshot?: {
1555
+ enabled: boolean;
1556
+ interval: number;
1557
+ } | undefined;
1558
+ persistence?: boolean | undefined;
1559
+ enableCursorSharing?: boolean | undefined;
1560
+ enablePresence?: boolean | undefined;
1561
+ enableAwareness?: boolean | undefined;
1562
+ maxUsers?: number | undefined;
1563
+ idleTimeout?: number | undefined;
1564
+ conflictResolution?: "ot" | "crdt" | "manual" | undefined;
1565
+ }>;
1566
+ export type CollaborationSessionConfig = z.infer<typeof CollaborationSessionConfigSchema>;
1567
+ /**
1568
+ * Collaboration Session Schema
1569
+ * Complete collaboration session state
1570
+ */
1571
+ export declare const CollaborationSessionSchema: z.ZodObject<{
1572
+ sessionId: z.ZodString;
1573
+ documentId: z.ZodString;
1574
+ config: z.ZodObject<{
1575
+ mode: z.ZodEnum<["ot", "crdt", "lock", "hybrid"]>;
1576
+ enableCursorSharing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1577
+ enablePresence: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1578
+ enableAwareness: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1579
+ maxUsers: z.ZodOptional<z.ZodNumber>;
1580
+ idleTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1581
+ conflictResolution: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ot", "crdt", "manual"]>>>;
1582
+ persistence: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1583
+ snapshot: z.ZodOptional<z.ZodObject<{
1584
+ enabled: z.ZodBoolean;
1585
+ interval: z.ZodNumber;
1586
+ }, "strip", z.ZodTypeAny, {
1587
+ enabled: boolean;
1588
+ interval: number;
1589
+ }, {
1590
+ enabled: boolean;
1591
+ interval: number;
1592
+ }>>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ mode: "hybrid" | "ot" | "crdt" | "lock";
1595
+ persistence: boolean;
1596
+ enableCursorSharing: boolean;
1597
+ enablePresence: boolean;
1598
+ enableAwareness: boolean;
1599
+ idleTimeout: number;
1600
+ conflictResolution: "ot" | "crdt" | "manual";
1601
+ snapshot?: {
1602
+ enabled: boolean;
1603
+ interval: number;
1604
+ } | undefined;
1605
+ maxUsers?: number | undefined;
1606
+ }, {
1607
+ mode: "hybrid" | "ot" | "crdt" | "lock";
1608
+ snapshot?: {
1609
+ enabled: boolean;
1610
+ interval: number;
1611
+ } | undefined;
1612
+ persistence?: boolean | undefined;
1613
+ enableCursorSharing?: boolean | undefined;
1614
+ enablePresence?: boolean | undefined;
1615
+ enableAwareness?: boolean | undefined;
1616
+ maxUsers?: number | undefined;
1617
+ idleTimeout?: number | undefined;
1618
+ conflictResolution?: "ot" | "crdt" | "manual" | undefined;
1619
+ }>;
1620
+ users: z.ZodArray<z.ZodObject<{
1621
+ userId: z.ZodString;
1622
+ sessionId: z.ZodString;
1623
+ userName: z.ZodString;
1624
+ userAvatar: z.ZodOptional<z.ZodString>;
1625
+ status: z.ZodEnum<["active", "idle", "viewing", "disconnected"]>;
1626
+ currentDocument: z.ZodOptional<z.ZodString>;
1627
+ currentView: z.ZodOptional<z.ZodString>;
1628
+ lastActivity: z.ZodString;
1629
+ joinedAt: z.ZodString;
1630
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1631
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ status: "active" | "idle" | "viewing" | "disconnected";
1634
+ userId: string;
1635
+ sessionId: string;
1636
+ userName: string;
1637
+ lastActivity: string;
1638
+ joinedAt: string;
1639
+ metadata?: Record<string, any> | undefined;
1640
+ userAvatar?: string | undefined;
1641
+ currentDocument?: string | undefined;
1642
+ currentView?: string | undefined;
1643
+ permissions?: string[] | undefined;
1644
+ }, {
1645
+ status: "active" | "idle" | "viewing" | "disconnected";
1646
+ userId: string;
1647
+ sessionId: string;
1648
+ userName: string;
1649
+ lastActivity: string;
1650
+ joinedAt: string;
1651
+ metadata?: Record<string, any> | undefined;
1652
+ userAvatar?: string | undefined;
1653
+ currentDocument?: string | undefined;
1654
+ currentView?: string | undefined;
1655
+ permissions?: string[] | undefined;
1656
+ }>, "many">;
1657
+ cursors: z.ZodArray<z.ZodObject<{
1658
+ userId: z.ZodString;
1659
+ sessionId: z.ZodString;
1660
+ documentId: z.ZodString;
1661
+ userName: z.ZodString;
1662
+ position: z.ZodObject<{
1663
+ line: z.ZodNumber;
1664
+ column: z.ZodNumber;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ column: number;
1667
+ line: number;
1668
+ }, {
1669
+ column: number;
1670
+ line: number;
1671
+ }>;
1672
+ selection: z.ZodOptional<z.ZodObject<{
1673
+ anchor: z.ZodObject<{
1674
+ line: z.ZodNumber;
1675
+ column: z.ZodNumber;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ column: number;
1678
+ line: number;
1679
+ }, {
1680
+ column: number;
1681
+ line: number;
1682
+ }>;
1683
+ focus: z.ZodObject<{
1684
+ line: z.ZodNumber;
1685
+ column: z.ZodNumber;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ column: number;
1688
+ line: number;
1689
+ }, {
1690
+ column: number;
1691
+ line: number;
1692
+ }>;
1693
+ direction: z.ZodOptional<z.ZodEnum<["forward", "backward"]>>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ anchor: {
1696
+ column: number;
1697
+ line: number;
1698
+ };
1699
+ focus: {
1700
+ column: number;
1701
+ line: number;
1702
+ };
1703
+ direction?: "forward" | "backward" | undefined;
1704
+ }, {
1705
+ anchor: {
1706
+ column: number;
1707
+ line: number;
1708
+ };
1709
+ focus: {
1710
+ column: number;
1711
+ line: number;
1712
+ };
1713
+ direction?: "forward" | "backward" | undefined;
1714
+ }>>;
1715
+ style: z.ZodObject<{
1716
+ color: z.ZodUnion<[z.ZodEnum<["blue", "green", "red", "yellow", "purple", "orange", "pink", "teal", "indigo", "cyan"]>, z.ZodString]>;
1717
+ opacity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1718
+ label: z.ZodOptional<z.ZodString>;
1719
+ showLabel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1720
+ pulseOnUpdate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ color: string;
1723
+ opacity: number;
1724
+ showLabel: boolean;
1725
+ pulseOnUpdate: boolean;
1726
+ label?: string | undefined;
1727
+ }, {
1728
+ color: string;
1729
+ label?: string | undefined;
1730
+ opacity?: number | undefined;
1731
+ showLabel?: boolean | undefined;
1732
+ pulseOnUpdate?: boolean | undefined;
1733
+ }>;
1734
+ isTyping: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1735
+ lastUpdate: z.ZodString;
1736
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1737
+ }, "strip", z.ZodTypeAny, {
1738
+ userId: string;
1739
+ position: {
1740
+ column: number;
1741
+ line: number;
1742
+ };
1743
+ documentId: string;
1744
+ sessionId: string;
1745
+ userName: string;
1746
+ style: {
1747
+ color: string;
1748
+ opacity: number;
1749
+ showLabel: boolean;
1750
+ pulseOnUpdate: boolean;
1751
+ label?: string | undefined;
1752
+ };
1753
+ isTyping: boolean;
1754
+ lastUpdate: string;
1755
+ metadata?: Record<string, any> | undefined;
1756
+ selection?: {
1757
+ anchor: {
1758
+ column: number;
1759
+ line: number;
1760
+ };
1761
+ focus: {
1762
+ column: number;
1763
+ line: number;
1764
+ };
1765
+ direction?: "forward" | "backward" | undefined;
1766
+ } | undefined;
1767
+ }, {
1768
+ userId: string;
1769
+ position: {
1770
+ column: number;
1771
+ line: number;
1772
+ };
1773
+ documentId: string;
1774
+ sessionId: string;
1775
+ userName: string;
1776
+ style: {
1777
+ color: string;
1778
+ label?: string | undefined;
1779
+ opacity?: number | undefined;
1780
+ showLabel?: boolean | undefined;
1781
+ pulseOnUpdate?: boolean | undefined;
1782
+ };
1783
+ lastUpdate: string;
1784
+ metadata?: Record<string, any> | undefined;
1785
+ selection?: {
1786
+ anchor: {
1787
+ column: number;
1788
+ line: number;
1789
+ };
1790
+ focus: {
1791
+ column: number;
1792
+ line: number;
1793
+ };
1794
+ direction?: "forward" | "backward" | undefined;
1795
+ } | undefined;
1796
+ isTyping?: boolean | undefined;
1797
+ }>, "many">;
1798
+ version: z.ZodNumber;
1799
+ operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1800
+ operationId: z.ZodString;
1801
+ documentId: z.ZodString;
1802
+ userId: z.ZodString;
1803
+ sessionId: z.ZodString;
1804
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1805
+ type: z.ZodLiteral<"insert">;
1806
+ text: z.ZodString;
1807
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1808
+ }, "strip", z.ZodTypeAny, {
1809
+ type: "insert";
1810
+ text: string;
1811
+ attributes?: Record<string, any> | undefined;
1812
+ }, {
1813
+ type: "insert";
1814
+ text: string;
1815
+ attributes?: Record<string, any> | undefined;
1816
+ }>, z.ZodObject<{
1817
+ type: z.ZodLiteral<"delete">;
1818
+ count: z.ZodNumber;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ type: "delete";
1821
+ count: number;
1822
+ }, {
1823
+ type: "delete";
1824
+ count: number;
1825
+ }>, z.ZodObject<{
1826
+ type: z.ZodLiteral<"retain">;
1827
+ count: z.ZodNumber;
1828
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ type: "retain";
1831
+ count: number;
1832
+ attributes?: Record<string, any> | undefined;
1833
+ }, {
1834
+ type: "retain";
1835
+ count: number;
1836
+ attributes?: Record<string, any> | undefined;
1837
+ }>]>, "many">;
1838
+ baseVersion: z.ZodNumber;
1839
+ timestamp: z.ZodString;
1840
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1841
+ }, "strip", z.ZodTypeAny, {
1842
+ userId: string;
1843
+ components: ({
1844
+ type: "insert";
1845
+ text: string;
1846
+ attributes?: Record<string, any> | undefined;
1847
+ } | {
1848
+ type: "delete";
1849
+ count: number;
1850
+ } | {
1851
+ type: "retain";
1852
+ count: number;
1853
+ attributes?: Record<string, any> | undefined;
1854
+ })[];
1855
+ timestamp: string;
1856
+ operationId: string;
1857
+ documentId: string;
1858
+ sessionId: string;
1859
+ baseVersion: number;
1860
+ metadata?: Record<string, any> | undefined;
1861
+ }, {
1862
+ userId: string;
1863
+ components: ({
1864
+ type: "insert";
1865
+ text: string;
1866
+ attributes?: Record<string, any> | undefined;
1867
+ } | {
1868
+ type: "delete";
1869
+ count: number;
1870
+ } | {
1871
+ type: "retain";
1872
+ count: number;
1873
+ attributes?: Record<string, any> | undefined;
1874
+ })[];
1875
+ timestamp: string;
1876
+ operationId: string;
1877
+ documentId: string;
1878
+ sessionId: string;
1879
+ baseVersion: number;
1880
+ metadata?: Record<string, any> | undefined;
1881
+ }>, z.ZodObject<{
1882
+ operationId: z.ZodString;
1883
+ replicaId: z.ZodString;
1884
+ position: z.ZodNumber;
1885
+ insert: z.ZodOptional<z.ZodString>;
1886
+ delete: z.ZodOptional<z.ZodNumber>;
1887
+ timestamp: z.ZodString;
1888
+ lamportTimestamp: z.ZodNumber;
1889
+ }, "strip", z.ZodTypeAny, {
1890
+ position: number;
1891
+ timestamp: string;
1892
+ operationId: string;
1893
+ replicaId: string;
1894
+ lamportTimestamp: number;
1895
+ insert?: string | undefined;
1896
+ delete?: number | undefined;
1897
+ }, {
1898
+ position: number;
1899
+ timestamp: string;
1900
+ operationId: string;
1901
+ replicaId: string;
1902
+ lamportTimestamp: number;
1903
+ insert?: string | undefined;
1904
+ delete?: number | undefined;
1905
+ }>]>, "many">>;
1906
+ createdAt: z.ZodString;
1907
+ lastActivity: z.ZodString;
1908
+ status: z.ZodEnum<["active", "idle", "ended"]>;
1909
+ }, "strip", z.ZodTypeAny, {
1910
+ status: "active" | "idle" | "ended";
1911
+ version: number;
1912
+ createdAt: string;
1913
+ config: {
1914
+ mode: "hybrid" | "ot" | "crdt" | "lock";
1915
+ persistence: boolean;
1916
+ enableCursorSharing: boolean;
1917
+ enablePresence: boolean;
1918
+ enableAwareness: boolean;
1919
+ idleTimeout: number;
1920
+ conflictResolution: "ot" | "crdt" | "manual";
1921
+ snapshot?: {
1922
+ enabled: boolean;
1923
+ interval: number;
1924
+ } | undefined;
1925
+ maxUsers?: number | undefined;
1926
+ };
1927
+ users: {
1928
+ status: "active" | "idle" | "viewing" | "disconnected";
1929
+ userId: string;
1930
+ sessionId: string;
1931
+ userName: string;
1932
+ lastActivity: string;
1933
+ joinedAt: string;
1934
+ metadata?: Record<string, any> | undefined;
1935
+ userAvatar?: string | undefined;
1936
+ currentDocument?: string | undefined;
1937
+ currentView?: string | undefined;
1938
+ permissions?: string[] | undefined;
1939
+ }[];
1940
+ documentId: string;
1941
+ sessionId: string;
1942
+ lastActivity: string;
1943
+ cursors: {
1944
+ userId: string;
1945
+ position: {
1946
+ column: number;
1947
+ line: number;
1948
+ };
1949
+ documentId: string;
1950
+ sessionId: string;
1951
+ userName: string;
1952
+ style: {
1953
+ color: string;
1954
+ opacity: number;
1955
+ showLabel: boolean;
1956
+ pulseOnUpdate: boolean;
1957
+ label?: string | undefined;
1958
+ };
1959
+ isTyping: boolean;
1960
+ lastUpdate: string;
1961
+ metadata?: Record<string, any> | undefined;
1962
+ selection?: {
1963
+ anchor: {
1964
+ column: number;
1965
+ line: number;
1966
+ };
1967
+ focus: {
1968
+ column: number;
1969
+ line: number;
1970
+ };
1971
+ direction?: "forward" | "backward" | undefined;
1972
+ } | undefined;
1973
+ }[];
1974
+ operations?: ({
1975
+ userId: string;
1976
+ components: ({
1977
+ type: "insert";
1978
+ text: string;
1979
+ attributes?: Record<string, any> | undefined;
1980
+ } | {
1981
+ type: "delete";
1982
+ count: number;
1983
+ } | {
1984
+ type: "retain";
1985
+ count: number;
1986
+ attributes?: Record<string, any> | undefined;
1987
+ })[];
1988
+ timestamp: string;
1989
+ operationId: string;
1990
+ documentId: string;
1991
+ sessionId: string;
1992
+ baseVersion: number;
1993
+ metadata?: Record<string, any> | undefined;
1994
+ } | {
1995
+ position: number;
1996
+ timestamp: string;
1997
+ operationId: string;
1998
+ replicaId: string;
1999
+ lamportTimestamp: number;
2000
+ insert?: string | undefined;
2001
+ delete?: number | undefined;
2002
+ })[] | undefined;
2003
+ }, {
2004
+ status: "active" | "idle" | "ended";
2005
+ version: number;
2006
+ createdAt: string;
2007
+ config: {
2008
+ mode: "hybrid" | "ot" | "crdt" | "lock";
2009
+ snapshot?: {
2010
+ enabled: boolean;
2011
+ interval: number;
2012
+ } | undefined;
2013
+ persistence?: boolean | undefined;
2014
+ enableCursorSharing?: boolean | undefined;
2015
+ enablePresence?: boolean | undefined;
2016
+ enableAwareness?: boolean | undefined;
2017
+ maxUsers?: number | undefined;
2018
+ idleTimeout?: number | undefined;
2019
+ conflictResolution?: "ot" | "crdt" | "manual" | undefined;
2020
+ };
2021
+ users: {
2022
+ status: "active" | "idle" | "viewing" | "disconnected";
2023
+ userId: string;
2024
+ sessionId: string;
2025
+ userName: string;
2026
+ lastActivity: string;
2027
+ joinedAt: string;
2028
+ metadata?: Record<string, any> | undefined;
2029
+ userAvatar?: string | undefined;
2030
+ currentDocument?: string | undefined;
2031
+ currentView?: string | undefined;
2032
+ permissions?: string[] | undefined;
2033
+ }[];
2034
+ documentId: string;
2035
+ sessionId: string;
2036
+ lastActivity: string;
2037
+ cursors: {
2038
+ userId: string;
2039
+ position: {
2040
+ column: number;
2041
+ line: number;
2042
+ };
2043
+ documentId: string;
2044
+ sessionId: string;
2045
+ userName: string;
2046
+ style: {
2047
+ color: string;
2048
+ label?: string | undefined;
2049
+ opacity?: number | undefined;
2050
+ showLabel?: boolean | undefined;
2051
+ pulseOnUpdate?: boolean | undefined;
2052
+ };
2053
+ lastUpdate: string;
2054
+ metadata?: Record<string, any> | undefined;
2055
+ selection?: {
2056
+ anchor: {
2057
+ column: number;
2058
+ line: number;
2059
+ };
2060
+ focus: {
2061
+ column: number;
2062
+ line: number;
2063
+ };
2064
+ direction?: "forward" | "backward" | undefined;
2065
+ } | undefined;
2066
+ isTyping?: boolean | undefined;
2067
+ }[];
2068
+ operations?: ({
2069
+ userId: string;
2070
+ components: ({
2071
+ type: "insert";
2072
+ text: string;
2073
+ attributes?: Record<string, any> | undefined;
2074
+ } | {
2075
+ type: "delete";
2076
+ count: number;
2077
+ } | {
2078
+ type: "retain";
2079
+ count: number;
2080
+ attributes?: Record<string, any> | undefined;
2081
+ })[];
2082
+ timestamp: string;
2083
+ operationId: string;
2084
+ documentId: string;
2085
+ sessionId: string;
2086
+ baseVersion: number;
2087
+ metadata?: Record<string, any> | undefined;
2088
+ } | {
2089
+ position: number;
2090
+ timestamp: string;
2091
+ operationId: string;
2092
+ replicaId: string;
2093
+ lamportTimestamp: number;
2094
+ insert?: string | undefined;
2095
+ delete?: number | undefined;
2096
+ })[] | undefined;
2097
+ }>;
2098
+ export type CollaborationSession = z.infer<typeof CollaborationSessionSchema>;
2099
+ //# sourceMappingURL=collaboration.zod.d.ts.map