@objectstack/spec 0.3.1 → 0.3.3

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 (409) hide show
  1. package/README.md +32 -10
  2. package/dist/ai/agent.zod.d.ts +12 -12
  3. package/dist/ai/conversation.zod.d.ts +65 -65
  4. package/dist/ai/cost.zod.d.ts +125 -125
  5. package/dist/ai/index.d.ts +1 -1
  6. package/dist/ai/index.d.ts.map +1 -1
  7. package/dist/ai/index.js +1 -1
  8. package/dist/ai/model-registry.zod.d.ts +94 -94
  9. package/dist/ai/nlq.zod.d.ts +70 -70
  10. package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +50 -49
  11. package/dist/ai/orchestration.zod.d.ts.map +1 -0
  12. package/dist/ai/{workflow-automation.zod.js → orchestration.zod.js} +26 -25
  13. package/dist/ai/predictive.zod.d.ts +31 -31
  14. package/dist/ai/rag-pipeline.zod.d.ts +86 -86
  15. package/dist/api/contract.zod.d.ts +125 -109
  16. package/dist/api/contract.zod.d.ts.map +1 -1
  17. package/dist/{system → api}/discovery.zod.d.ts +26 -26
  18. package/dist/api/discovery.zod.d.ts.map +1 -0
  19. package/dist/{system → api}/discovery.zod.js +9 -9
  20. package/dist/{system/api.zod.d.ts → api/endpoint.zod.d.ts} +53 -57
  21. package/dist/api/endpoint.zod.d.ts.map +1 -0
  22. package/dist/{system/api.zod.js → api/endpoint.zod.js} +3 -6
  23. package/dist/api/index.d.ts +4 -0
  24. package/dist/api/index.d.ts.map +1 -1
  25. package/dist/api/index.js +4 -0
  26. package/dist/{system → api}/realtime.zod.d.ts +4 -4
  27. package/dist/api/realtime.zod.d.ts.map +1 -0
  28. package/dist/api/router.zod.d.ts +182 -0
  29. package/dist/api/router.zod.d.ts.map +1 -0
  30. package/dist/api/router.zod.js +103 -0
  31. package/dist/{system/auth.zod.d.ts → auth/config.zod.d.ts} +191 -191
  32. package/dist/auth/config.zod.d.ts.map +1 -0
  33. package/dist/{system → auth}/identity.zod.d.ts +8 -8
  34. package/dist/auth/identity.zod.d.ts.map +1 -0
  35. package/dist/auth/index.d.ts +7 -0
  36. package/dist/auth/index.d.ts.map +1 -0
  37. package/dist/auth/index.js +22 -0
  38. package/dist/{system → auth}/organization.zod.d.ts +5 -5
  39. package/dist/auth/organization.zod.d.ts.map +1 -0
  40. package/dist/{system → auth}/policy.zod.d.ts +3 -3
  41. package/dist/auth/policy.zod.d.ts.map +1 -0
  42. package/dist/{system/auth-protocol.d.ts → auth/protocol.d.ts} +1 -1
  43. package/dist/auth/protocol.d.ts.map +1 -0
  44. package/dist/auth/role.zod.d.ts.map +1 -0
  45. package/dist/{data → automation}/flow.zod.d.ts +34 -16
  46. package/dist/automation/flow.zod.d.ts.map +1 -0
  47. package/dist/{data → automation}/flow.zod.js +6 -1
  48. package/dist/automation/index.d.ts +4 -0
  49. package/dist/automation/index.d.ts.map +1 -0
  50. package/dist/automation/index.js +19 -0
  51. package/dist/{system → automation}/webhook.zod.d.ts +2 -2
  52. package/dist/automation/webhook.zod.d.ts.map +1 -0
  53. package/dist/automation/workflow.zod.d.ts +2045 -0
  54. package/dist/automation/workflow.zod.d.ts.map +1 -0
  55. package/dist/{data → automation}/workflow.zod.js +24 -1
  56. package/dist/data/dataset.zod.d.ts +2 -2
  57. package/dist/data/field.zod.d.ts +443 -213
  58. package/dist/data/field.zod.d.ts.map +1 -1
  59. package/dist/data/field.zod.js +29 -1
  60. package/dist/data/filter.zod.d.ts +167 -30
  61. package/dist/data/filter.zod.d.ts.map +1 -1
  62. package/dist/data/filter.zod.js +25 -13
  63. package/dist/data/hook.zod.d.ts +191 -0
  64. package/dist/data/hook.zod.d.ts.map +1 -0
  65. package/dist/data/hook.zod.js +144 -0
  66. package/dist/data/index.d.ts +4 -17
  67. package/dist/data/index.d.ts.map +1 -1
  68. package/dist/data/index.js +4 -17
  69. package/dist/data/mapping.zod.d.ts +103 -91
  70. package/dist/data/mapping.zod.d.ts.map +1 -1
  71. package/dist/data/object.zod.d.ts +387 -127
  72. package/dist/data/object.zod.d.ts.map +1 -1
  73. package/dist/data/object.zod.js +87 -42
  74. package/dist/data/query.zod.d.ts +98 -169
  75. package/dist/data/query.zod.d.ts.map +1 -1
  76. package/dist/data/query.zod.js +42 -130
  77. package/dist/data/validation.zod.d.ts +166 -26
  78. package/dist/data/validation.zod.d.ts.map +1 -1
  79. package/dist/data/validation.zod.js +38 -16
  80. package/dist/{system → driver}/datasource.zod.d.ts +42 -8
  81. package/dist/driver/datasource.zod.d.ts.map +1 -0
  82. package/dist/{system → driver}/datasource.zod.js +17 -13
  83. package/dist/driver/driver.zod.d.ts +3392 -0
  84. package/dist/driver/driver.zod.d.ts.map +1 -0
  85. package/dist/{system → driver}/driver.zod.js +99 -0
  86. package/dist/driver/index.d.ts +5 -0
  87. package/dist/driver/index.d.ts.map +1 -0
  88. package/dist/driver/index.js +20 -0
  89. package/dist/driver/mongo.zod.d.ts +107 -0
  90. package/dist/driver/mongo.zod.d.ts.map +1 -0
  91. package/dist/driver/mongo.zod.js +80 -0
  92. package/dist/driver/postgres.zod.d.ts +134 -0
  93. package/dist/driver/postgres.zod.d.ts.map +1 -0
  94. package/dist/driver/postgres.zod.js +88 -0
  95. package/dist/hub/composer.zod.d.ts +2768 -0
  96. package/dist/hub/composer.zod.d.ts.map +1 -0
  97. package/dist/hub/composer.zod.js +111 -0
  98. package/dist/hub/index.d.ts +6 -0
  99. package/dist/hub/index.d.ts.map +1 -0
  100. package/dist/hub/index.js +22 -0
  101. package/dist/{system → hub}/license.zod.d.ts +11 -7
  102. package/dist/hub/license.zod.d.ts.map +1 -0
  103. package/dist/{system → hub}/license.zod.js +5 -3
  104. package/dist/hub/marketplace.zod.d.ts +191 -0
  105. package/dist/hub/marketplace.zod.d.ts.map +1 -0
  106. package/dist/hub/marketplace.zod.js +85 -0
  107. package/dist/hub/space.zod.d.ts +383 -0
  108. package/dist/hub/space.zod.d.ts.map +1 -0
  109. package/dist/hub/space.zod.js +103 -0
  110. package/dist/{system → hub}/tenant.zod.d.ts +73 -47
  111. package/dist/hub/tenant.zod.d.ts.map +1 -0
  112. package/dist/{system → hub}/tenant.zod.js +36 -10
  113. package/dist/index.d.ts +11 -4
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.js +12 -5
  116. package/dist/kernel/context.zod.d.ts +56 -0
  117. package/dist/kernel/context.zod.d.ts.map +1 -0
  118. package/dist/kernel/context.zod.js +43 -0
  119. package/dist/kernel/index.d.ts +12 -0
  120. package/dist/kernel/index.d.ts.map +1 -0
  121. package/dist/kernel/index.js +27 -0
  122. package/dist/kernel/logger.zod.d.ts +111 -0
  123. package/dist/kernel/logger.zod.d.ts.map +1 -0
  124. package/dist/kernel/logger.zod.js +75 -0
  125. package/dist/kernel/manifest.zod.d.ts +2153 -0
  126. package/dist/kernel/manifest.zod.d.ts.map +1 -0
  127. package/dist/{system → kernel}/manifest.zod.js +40 -0
  128. package/dist/{system → kernel}/plugin.zod.d.ts +598 -318
  129. package/dist/kernel/plugin.zod.d.ts.map +1 -0
  130. package/dist/{system → kernel}/plugin.zod.js +13 -0
  131. package/dist/kernel/scoped-storage.zod.d.ts +81 -0
  132. package/dist/kernel/scoped-storage.zod.d.ts.map +1 -0
  133. package/dist/kernel/scoped-storage.zod.js +66 -0
  134. package/dist/permission/index.d.ts +12 -0
  135. package/dist/permission/index.d.ts.map +1 -0
  136. package/dist/permission/index.js +27 -0
  137. package/dist/{data → permission}/permission.zod.d.ts +34 -3
  138. package/dist/permission/permission.zod.d.ts.map +1 -0
  139. package/dist/{data → permission}/permission.zod.js +10 -1
  140. package/dist/permission/sharing.zod.d.ts +146 -0
  141. package/dist/permission/sharing.zod.d.ts.map +1 -0
  142. package/dist/permission/sharing.zod.js +88 -0
  143. package/dist/permission/territory.zod.d.ts.map +1 -0
  144. package/dist/system/audit.zod.d.ts +52 -52
  145. package/dist/system/events.zod.d.ts +17 -17
  146. package/dist/system/index.d.ts +1 -20
  147. package/dist/system/index.d.ts.map +1 -1
  148. package/dist/system/index.js +3 -20
  149. package/dist/system/job.zod.d.ts +13 -13
  150. package/dist/ui/action.zod.d.ts +13 -13
  151. package/dist/ui/app.zod.d.ts +11 -11
  152. package/dist/ui/dashboard.zod.d.ts +12 -12
  153. package/dist/ui/page.zod.d.ts +2 -2
  154. package/dist/ui/report.zod.d.ts +7 -7
  155. package/dist/ui/theme.zod.d.ts +42 -42
  156. package/dist/ui/view.zod.d.ts +2320 -59
  157. package/dist/ui/view.zod.d.ts.map +1 -1
  158. package/dist/ui/view.zod.js +102 -3
  159. package/dist/ui/widget.zod.d.ts +61 -28
  160. package/dist/ui/widget.zod.d.ts.map +1 -1
  161. package/json-schema/ai/{AIWorkflowAutomation.json → AIOrchestration.json} +5 -5
  162. package/json-schema/ai/{AIWorkflowExecutionResult.json → AIOrchestrationExecutionResult.json} +2 -2
  163. package/json-schema/ai/{AIWorkflowTrigger.json → AIOrchestrationTrigger.json} +2 -2
  164. package/json-schema/ai/{BatchAIWorkflowExecution.json → BatchAIOrchestrationExecution.json} +3 -3
  165. package/json-schema/{system → api}/ApiEndpoint.json +3 -1
  166. package/json-schema/{system → api}/ApiRoutes.json +7 -7
  167. package/json-schema/{system → api}/Discovery.json +7 -7
  168. package/json-schema/api/ExportRequest.json +402 -438
  169. package/json-schema/api/HttpMethod.json +18 -0
  170. package/json-schema/api/RouteCategory.json +17 -0
  171. package/json-schema/api/RouteDefinition.json +77 -0
  172. package/json-schema/api/RouterConfig.json +117 -0
  173. package/json-schema/{data → automation}/Flow.json +31 -1
  174. package/json-schema/{data → automation}/FlowEdge.json +9 -0
  175. package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
  176. package/json-schema/automation/WorkflowRule.json +1031 -0
  177. package/json-schema/data/AggregationNode.json +23 -0
  178. package/json-schema/data/AsyncValidation.json +49 -2
  179. package/json-schema/data/ComparisonOperator.json +52 -0
  180. package/json-schema/data/ConditionalValidation.json +693 -46
  181. package/json-schema/data/CrossFieldValidation.json +33 -2
  182. package/json-schema/data/CurrencyConfig.json +35 -0
  183. package/json-schema/data/CurrencyValue.json +26 -0
  184. package/json-schema/data/CustomValidator.json +37 -10
  185. package/json-schema/data/Field.json +30 -0
  186. package/json-schema/data/FieldOperators.json +78 -0
  187. package/json-schema/data/FieldReference.json +19 -0
  188. package/json-schema/data/FormatValidation.json +33 -2
  189. package/json-schema/data/Hook.json +95 -0
  190. package/json-schema/data/HookContext.json +88 -0
  191. package/json-schema/data/HookEvent.json +29 -0
  192. package/json-schema/data/Index.json +10 -0
  193. package/json-schema/data/JSONValidation.json +85 -0
  194. package/json-schema/data/JoinNode.json +197 -213
  195. package/json-schema/data/{TriggerAction.json → JoinStrategy.json} +6 -5
  196. package/json-schema/data/NormalizedFilter.json +234 -0
  197. package/json-schema/data/Object.json +1580 -28
  198. package/json-schema/data/ObjectCapabilities.json +30 -12
  199. package/json-schema/data/Query.json +246 -262
  200. package/json-schema/data/RangeOperator.json +26 -0
  201. package/json-schema/data/ScriptValidation.json +33 -2
  202. package/json-schema/data/SearchConfig.json +36 -0
  203. package/json-schema/data/StateMachineValidation.json +33 -2
  204. package/json-schema/data/UniquenessValidation.json +33 -2
  205. package/json-schema/data/ValidationRule.json +693 -46
  206. package/json-schema/{system → driver}/Datasource.json +35 -0
  207. package/json-schema/{system → driver}/DriverCapabilities.json +10 -0
  208. package/json-schema/{system → driver}/DriverInterface.json +10 -0
  209. package/json-schema/{system → driver}/DriverOptions.json +11 -0
  210. package/json-schema/driver/MongoConfig.json +82 -0
  211. package/json-schema/driver/PostgresConfig.json +98 -0
  212. package/json-schema/hub/BillOfMaterials.json +70 -0
  213. package/json-schema/hub/ComposerRequest.json +86 -0
  214. package/json-schema/hub/ComposerResponse.json +2645 -0
  215. package/json-schema/hub/ConflictReport.json +53 -0
  216. package/json-schema/hub/DependencyRequirement.json +36 -0
  217. package/json-schema/hub/DeploymentTarget.json +38 -0
  218. package/json-schema/hub/HubSpace.json +279 -0
  219. package/json-schema/{system → hub}/License.json +11 -3
  220. package/json-schema/hub/MarketplacePlugin.json +141 -0
  221. package/json-schema/hub/PluginAuthor.json +26 -0
  222. package/json-schema/hub/PluginPricing.json +43 -0
  223. package/json-schema/hub/SpaceSubscription.json +77 -0
  224. package/json-schema/hub/SubscriptionStatus.json +16 -0
  225. package/json-schema/{system → hub}/Tenant.json +3 -5
  226. package/json-schema/kernel/FileMetadata.json +43 -0
  227. package/json-schema/kernel/KernelContext.json +62 -0
  228. package/json-schema/kernel/LogEntry.json +63 -0
  229. package/json-schema/kernel/LogFormat.json +15 -0
  230. package/json-schema/kernel/LogLevel.json +17 -0
  231. package/json-schema/kernel/LoggerConfig.json +70 -0
  232. package/json-schema/kernel/Manifest.json +2557 -0
  233. package/json-schema/{system → kernel}/PluginContext.json +8 -1
  234. package/json-schema/kernel/RuntimeMode.json +16 -0
  235. package/json-schema/kernel/ScopedStorageConfig.json +54 -0
  236. package/json-schema/kernel/StorageAdapterType.json +17 -0
  237. package/json-schema/kernel/StorageScope.json +18 -0
  238. package/json-schema/permission/CriteriaSharingRule.json +82 -0
  239. package/json-schema/{data → permission}/OWDModel.json +2 -1
  240. package/json-schema/{data → permission}/ObjectPermission.json +15 -0
  241. package/json-schema/permission/OwnerSharingRule.json +102 -0
  242. package/json-schema/{data → permission}/PermissionSet.json +15 -0
  243. package/json-schema/permission/ShareRecipientType.json +16 -0
  244. package/json-schema/{data → permission}/SharingLevel.json +2 -1
  245. package/json-schema/permission/SharingRule.json +182 -0
  246. package/json-schema/{data → permission}/SharingRuleType.json +1 -3
  247. package/json-schema/ui/FieldWidgetProps.json +30 -0
  248. package/json-schema/ui/FormField.json +61 -0
  249. package/json-schema/ui/FormSection.json +60 -1
  250. package/json-schema/ui/FormView.json +257 -2
  251. package/json-schema/{system → ui}/HttpMethod.json +2 -2
  252. package/json-schema/ui/HttpRequest.json +46 -0
  253. package/json-schema/ui/ListColumn.json +57 -0
  254. package/json-schema/ui/ListView.json +249 -4
  255. package/json-schema/ui/PaginationConfig.json +26 -0
  256. package/json-schema/ui/SelectionConfig.json +22 -0
  257. package/json-schema/ui/View.json +1012 -12
  258. package/json-schema/ui/ViewData.json +142 -0
  259. package/llms.txt +182 -0
  260. package/package.json +38 -16
  261. package/prompts/README.md +18 -0
  262. package/prompts/architecture.md +81 -0
  263. package/prompts/implement-objectai.md +39 -0
  264. package/prompts/implement-objectos.md +48 -0
  265. package/prompts/implement-objectql.md +39 -0
  266. package/prompts/implement-objectui.md +46 -0
  267. package/prompts/instructions.md +91 -0
  268. package/dist/ai/workflow-automation.zod.d.ts.map +0 -1
  269. package/dist/data/flow.zod.d.ts.map +0 -1
  270. package/dist/data/permission.zod.d.ts.map +0 -1
  271. package/dist/data/sharing.zod.d.ts +0 -63
  272. package/dist/data/sharing.zod.d.ts.map +0 -1
  273. package/dist/data/sharing.zod.js +0 -57
  274. package/dist/data/trigger.zod.d.ts +0 -354
  275. package/dist/data/trigger.zod.d.ts.map +0 -1
  276. package/dist/data/trigger.zod.js +0 -195
  277. package/dist/data/workflow.zod.d.ts +0 -986
  278. package/dist/data/workflow.zod.d.ts.map +0 -1
  279. package/dist/system/api.zod.d.ts.map +0 -1
  280. package/dist/system/auth-protocol.d.ts.map +0 -1
  281. package/dist/system/auth.zod.d.ts.map +0 -1
  282. package/dist/system/datasource.zod.d.ts.map +0 -1
  283. package/dist/system/discovery.zod.d.ts.map +0 -1
  284. package/dist/system/driver.zod.d.ts +0 -1631
  285. package/dist/system/driver.zod.d.ts.map +0 -1
  286. package/dist/system/identity.zod.d.ts.map +0 -1
  287. package/dist/system/license.zod.d.ts.map +0 -1
  288. package/dist/system/manifest.zod.d.ts +0 -397
  289. package/dist/system/manifest.zod.d.ts.map +0 -1
  290. package/dist/system/organization.zod.d.ts.map +0 -1
  291. package/dist/system/plugin.zod.d.ts.map +0 -1
  292. package/dist/system/policy.zod.d.ts.map +0 -1
  293. package/dist/system/realtime.zod.d.ts.map +0 -1
  294. package/dist/system/role.zod.d.ts.map +0 -1
  295. package/dist/system/tenant.zod.d.ts.map +0 -1
  296. package/dist/system/territory.zod.d.ts.map +0 -1
  297. package/dist/system/webhook.zod.d.ts.map +0 -1
  298. package/json-schema/README.md +0 -127
  299. package/json-schema/data/FieldMapping.json +0 -83
  300. package/json-schema/data/FilterNode.json +0 -52
  301. package/json-schema/data/FilterOperator.json +0 -26
  302. package/json-schema/data/LogicOperator.json +0 -14
  303. package/json-schema/data/Mapping.json +0 -598
  304. package/json-schema/data/SharingRule.json +0 -58
  305. package/json-schema/data/TransformType.json +0 -18
  306. package/json-schema/data/Trigger.json +0 -73
  307. package/json-schema/data/TriggerContext.json +0 -61
  308. package/json-schema/data/TriggerTiming.json +0 -13
  309. package/json-schema/system/Manifest.json +0 -315
  310. /package/dist/{system → api}/realtime.zod.js +0 -0
  311. /package/dist/{system/auth.zod.js → auth/config.zod.js} +0 -0
  312. /package/dist/{system → auth}/identity.zod.js +0 -0
  313. /package/dist/{system → auth}/organization.zod.js +0 -0
  314. /package/dist/{system → auth}/policy.zod.js +0 -0
  315. /package/dist/{system/auth-protocol.js → auth/protocol.js} +0 -0
  316. /package/dist/{system → auth}/role.zod.d.ts +0 -0
  317. /package/dist/{system → auth}/role.zod.js +0 -0
  318. /package/dist/{system → automation}/webhook.zod.js +0 -0
  319. /package/dist/{system → permission}/territory.zod.d.ts +0 -0
  320. /package/dist/{system → permission}/territory.zod.js +0 -0
  321. /package/json-schema/{system → api}/ApiCapabilities.json +0 -0
  322. /package/json-schema/{system → api}/ApiMapping.json +0 -0
  323. /package/json-schema/{system → api}/Presence.json +0 -0
  324. /package/json-schema/{system → api}/PresenceStatus.json +0 -0
  325. /package/json-schema/{system → api}/RateLimit.json +0 -0
  326. /package/json-schema/{system → api}/RealtimeAction.json +0 -0
  327. /package/json-schema/{system → api}/RealtimeEvent.json +0 -0
  328. /package/json-schema/{system → api}/RealtimeEventType.json +0 -0
  329. /package/json-schema/{system → api}/Subscription.json +0 -0
  330. /package/json-schema/{system → api}/SubscriptionEvent.json +0 -0
  331. /package/json-schema/{system → api}/TransportProtocol.json +0 -0
  332. /package/json-schema/{system → auth}/Account.json +0 -0
  333. /package/json-schema/{system → auth}/AccountLinkingConfig.json +0 -0
  334. /package/json-schema/{system → auth}/AuditPolicy.json +0 -0
  335. /package/json-schema/{system → auth}/AuthConfig.json +0 -0
  336. /package/json-schema/{system → auth}/AuthPluginConfig.json +0 -0
  337. /package/json-schema/{system → auth}/AuthStrategy.json +0 -0
  338. /package/json-schema/{system → auth}/CSRFConfig.json +0 -0
  339. /package/json-schema/{system → auth}/DatabaseAdapter.json +0 -0
  340. /package/json-schema/{system → auth}/DatabaseMapping.json +0 -0
  341. /package/json-schema/{system → auth}/EmailPasswordConfig.json +0 -0
  342. /package/json-schema/{system → auth}/EnterpriseAuthConfig.json +0 -0
  343. /package/json-schema/{system → auth}/Invitation.json +0 -0
  344. /package/json-schema/{system → auth}/InvitationStatus.json +0 -0
  345. /package/json-schema/{system → auth}/LDAPConfig.json +0 -0
  346. /package/json-schema/{system → auth}/MagicLinkConfig.json +0 -0
  347. /package/json-schema/{system → auth}/Member.json +0 -0
  348. /package/json-schema/{system → auth}/NetworkPolicy.json +0 -0
  349. /package/json-schema/{system → auth}/OAuthProvider.json +0 -0
  350. /package/json-schema/{system → auth}/OIDCConfig.json +0 -0
  351. /package/json-schema/{system → auth}/Organization.json +0 -0
  352. /package/json-schema/{system → auth}/PasskeyConfig.json +0 -0
  353. /package/json-schema/{system → auth}/PasswordPolicy.json +0 -0
  354. /package/json-schema/{system → auth}/Policy.json +0 -0
  355. /package/json-schema/{system → auth}/RateLimitConfig.json +0 -0
  356. /package/json-schema/{system → auth}/Role.json +0 -0
  357. /package/json-schema/{system → auth}/SAMLConfig.json +0 -0
  358. /package/json-schema/{system → auth}/Session.json +0 -0
  359. /package/json-schema/{system → auth}/SessionConfig.json +0 -0
  360. /package/json-schema/{system → auth}/SessionPolicy.json +0 -0
  361. /package/json-schema/{system → auth}/StandardAuthProvider.json +0 -0
  362. /package/json-schema/{system → auth}/TwoFactorConfig.json +0 -0
  363. /package/json-schema/{system → auth}/User.json +0 -0
  364. /package/json-schema/{system → auth}/UserFieldMapping.json +0 -0
  365. /package/json-schema/{system → auth}/VerificationToken.json +0 -0
  366. /package/json-schema/{data → automation}/CustomScriptAction.json +0 -0
  367. /package/json-schema/{data → automation}/EmailAlertAction.json +0 -0
  368. /package/json-schema/{data → automation}/FieldUpdateAction.json +0 -0
  369. /package/json-schema/{data → automation}/FlowNode.json +0 -0
  370. /package/json-schema/{data → automation}/FlowNodeAction.json +0 -0
  371. /package/json-schema/{data → automation}/FlowVariable.json +0 -0
  372. /package/json-schema/{data → automation}/HttpCallAction.json +0 -0
  373. /package/json-schema/{data → automation}/PushNotificationAction.json +0 -0
  374. /package/json-schema/{data → automation}/SlackMessageAction.json +0 -0
  375. /package/json-schema/{data → automation}/SmsNotificationAction.json +0 -0
  376. /package/json-schema/{data → automation}/TaskCreationAction.json +0 -0
  377. /package/json-schema/{data → automation}/TeamsMessageAction.json +0 -0
  378. /package/json-schema/{system → automation}/Webhook.json +0 -0
  379. /package/json-schema/{system → automation}/WebhookReceiver.json +0 -0
  380. /package/json-schema/{data → automation}/WebhookTriggerAction.json +0 -0
  381. /package/json-schema/{system → automation}/WebhookTriggerType.json +0 -0
  382. /package/json-schema/{data → automation}/WorkflowAction.json +0 -0
  383. /package/json-schema/{data → automation}/WorkflowTriggerType.json +0 -0
  384. /package/json-schema/{system → driver}/DatasourceCapabilities.json +0 -0
  385. /package/json-schema/{system → driver}/DriverDefinition.json +0 -0
  386. /package/json-schema/{system → driver}/DriverType.json +0 -0
  387. /package/json-schema/{system → hub}/DatabaseLevelIsolationStrategy.json +0 -0
  388. /package/json-schema/{system → hub}/Feature.json +0 -0
  389. /package/json-schema/{system → hub}/LevelIsolationStrategySchema.json +0 -0
  390. /package/json-schema/{system → hub}/MetricType.json +0 -0
  391. /package/json-schema/{system → hub}/Plan.json +0 -0
  392. /package/json-schema/{system → hub}/RowLevelIsolationStrategy.json +0 -0
  393. /package/json-schema/{system → hub}/TenantIsolationConfig.json +0 -0
  394. /package/json-schema/{system → hub}/TenantIsolationLevel.json +0 -0
  395. /package/json-schema/{system → hub}/TenantQuota.json +0 -0
  396. /package/json-schema/{system → hub}/TenantSecurityPolicy.json +0 -0
  397. /package/json-schema/{system → kernel}/I18nContext.json +0 -0
  398. /package/json-schema/{system → kernel}/Logger.json +0 -0
  399. /package/json-schema/{system → kernel}/ObjectQLClient.json +0 -0
  400. /package/json-schema/{system → kernel}/Plugin.json +0 -0
  401. /package/json-schema/{system → kernel}/PluginLifecycle.json +0 -0
  402. /package/json-schema/{system → kernel}/Router.json +0 -0
  403. /package/json-schema/{system → kernel}/Scheduler.json +0 -0
  404. /package/json-schema/{system → kernel}/ScopedStorage.json +0 -0
  405. /package/json-schema/{system → kernel}/SystemAPI.json +0 -0
  406. /package/json-schema/{data → permission}/FieldPermission.json +0 -0
  407. /package/json-schema/{system → permission}/Territory.json +0 -0
  408. /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
  409. /package/json-schema/{system → permission}/TerritoryType.json +0 -0
@@ -54,14 +54,14 @@ export declare const AuditEventActorSchema: z.ZodObject<{
54
54
  */
55
55
  userAgent: z.ZodOptional<z.ZodString>;
56
56
  }, "strip", z.ZodTypeAny, {
57
- type: "system" | "user" | "service" | "api_client" | "integration";
57
+ type: "user" | "system" | "service" | "api_client" | "integration";
58
58
  id: string;
59
59
  email?: string | undefined;
60
60
  name?: string | undefined;
61
61
  ipAddress?: string | undefined;
62
62
  userAgent?: string | undefined;
63
63
  }, {
64
- type: "system" | "user" | "service" | "api_client" | "integration";
64
+ type: "user" | "system" | "service" | "api_client" | "integration";
65
65
  id: string;
66
66
  email?: string | undefined;
67
67
  name?: string | undefined;
@@ -179,14 +179,14 @@ export declare const AuditEventSchema: z.ZodObject<{
179
179
  */
180
180
  userAgent: z.ZodOptional<z.ZodString>;
181
181
  }, "strip", z.ZodTypeAny, {
182
- type: "system" | "user" | "service" | "api_client" | "integration";
182
+ type: "user" | "system" | "service" | "api_client" | "integration";
183
183
  id: string;
184
184
  email?: string | undefined;
185
185
  name?: string | undefined;
186
186
  ipAddress?: string | undefined;
187
187
  userAgent?: string | undefined;
188
188
  }, {
189
- type: "system" | "user" | "service" | "api_client" | "integration";
189
+ type: "user" | "system" | "service" | "api_client" | "integration";
190
190
  id: string;
191
191
  email?: string | undefined;
192
192
  name?: string | undefined;
@@ -293,22 +293,23 @@ export declare const AuditEventSchema: z.ZodObject<{
293
293
  description: string;
294
294
  severity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
295
295
  id: string;
296
+ result: "partial" | "success" | "failure";
296
297
  eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
297
298
  timestamp: string;
298
299
  actor: {
299
- type: "system" | "user" | "service" | "api_client" | "integration";
300
+ type: "user" | "system" | "service" | "api_client" | "integration";
300
301
  id: string;
301
302
  email?: string | undefined;
302
303
  name?: string | undefined;
303
304
  ipAddress?: string | undefined;
304
305
  userAgent?: string | undefined;
305
306
  };
306
- result: "partial" | "success" | "failure";
307
307
  location?: {
308
308
  city?: string | undefined;
309
309
  country?: string | undefined;
310
310
  region?: string | undefined;
311
311
  } | undefined;
312
+ tenantId?: string | undefined;
312
313
  target?: {
313
314
  type: string;
314
315
  id: string;
@@ -322,7 +323,6 @@ export declare const AuditEventSchema: z.ZodObject<{
322
323
  newValue?: any;
323
324
  }[] | undefined;
324
325
  errorMessage?: string | undefined;
325
- tenantId?: string | undefined;
326
326
  requestId?: string | undefined;
327
327
  }, {
328
328
  description: string;
@@ -330,7 +330,7 @@ export declare const AuditEventSchema: z.ZodObject<{
330
330
  eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
331
331
  timestamp: string;
332
332
  actor: {
333
- type: "system" | "user" | "service" | "api_client" | "integration";
333
+ type: "user" | "system" | "service" | "api_client" | "integration";
334
334
  id: string;
335
335
  email?: string | undefined;
336
336
  name?: string | undefined;
@@ -343,6 +343,8 @@ export declare const AuditEventSchema: z.ZodObject<{
343
343
  region?: string | undefined;
344
344
  } | undefined;
345
345
  severity?: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency" | undefined;
346
+ result?: "partial" | "success" | "failure" | undefined;
347
+ tenantId?: string | undefined;
346
348
  target?: {
347
349
  type: string;
348
350
  id: string;
@@ -355,9 +357,7 @@ export declare const AuditEventSchema: z.ZodObject<{
355
357
  oldValue?: any;
356
358
  newValue?: any;
357
359
  }[] | undefined;
358
- result?: "partial" | "success" | "failure" | undefined;
359
360
  errorMessage?: string | undefined;
360
- tenantId?: string | undefined;
361
361
  requestId?: string | undefined;
362
362
  }>;
363
363
  export type AuditEvent = z.infer<typeof AuditEventSchema>;
@@ -388,15 +388,15 @@ export declare const AuditRetentionPolicySchema: z.ZodObject<{
388
388
  }, "strip", z.ZodTypeAny, {
389
389
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
390
390
  path?: string | undefined;
391
- credentials?: Record<string, any> | undefined;
392
391
  endpoint?: string | undefined;
393
392
  bucket?: string | undefined;
393
+ credentials?: Record<string, any> | undefined;
394
394
  }, {
395
395
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
396
396
  path?: string | undefined;
397
- credentials?: Record<string, any> | undefined;
398
397
  endpoint?: string | undefined;
399
398
  bucket?: string | undefined;
399
+ credentials?: Record<string, any> | undefined;
400
400
  }>>;
401
401
  /**
402
402
  * Event types that have different retention periods
@@ -414,9 +414,9 @@ export declare const AuditRetentionPolicySchema: z.ZodObject<{
414
414
  archiveStorage?: {
415
415
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
416
416
  path?: string | undefined;
417
- credentials?: Record<string, any> | undefined;
418
417
  endpoint?: string | undefined;
419
418
  bucket?: string | undefined;
419
+ credentials?: Record<string, any> | undefined;
420
420
  } | undefined;
421
421
  customRetention?: Record<string, number> | undefined;
422
422
  minimumRetentionDays?: number | undefined;
@@ -426,9 +426,9 @@ export declare const AuditRetentionPolicySchema: z.ZodObject<{
426
426
  archiveStorage?: {
427
427
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
428
428
  path?: string | undefined;
429
- credentials?: Record<string, any> | undefined;
430
429
  endpoint?: string | undefined;
431
430
  bucket?: string | undefined;
431
+ credentials?: Record<string, any> | undefined;
432
432
  } | undefined;
433
433
  customRetention?: Record<string, number> | undefined;
434
434
  minimumRetentionDays?: number | undefined;
@@ -482,13 +482,13 @@ export declare const SuspiciousActivityRuleSchema: z.ZodObject<{
482
482
  }, "strip", z.ZodTypeAny, {
483
483
  threshold: number;
484
484
  windowSeconds: number;
485
- filters?: Record<string, any> | undefined;
486
485
  groupBy?: string[] | undefined;
486
+ filters?: Record<string, any> | undefined;
487
487
  }, {
488
488
  threshold: number;
489
489
  windowSeconds: number;
490
- filters?: Record<string, any> | undefined;
491
490
  groupBy?: string[] | undefined;
491
+ filters?: Record<string, any> | undefined;
492
492
  }>;
493
493
  /**
494
494
  * Actions to take when rule is triggered
@@ -528,13 +528,13 @@ export declare const SuspiciousActivityRuleSchema: z.ZodObject<{
528
528
  condition: {
529
529
  threshold: number;
530
530
  windowSeconds: number;
531
- filters?: Record<string, any> | undefined;
532
531
  groupBy?: string[] | undefined;
532
+ filters?: Record<string, any> | undefined;
533
533
  };
534
- actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
535
534
  id: string;
536
535
  enabled: boolean;
537
536
  eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
537
+ actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
538
538
  alertSeverity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
539
539
  description?: string | undefined;
540
540
  notifications?: {
@@ -547,12 +547,12 @@ export declare const SuspiciousActivityRuleSchema: z.ZodObject<{
547
547
  condition: {
548
548
  threshold: number;
549
549
  windowSeconds: number;
550
- filters?: Record<string, any> | undefined;
551
550
  groupBy?: string[] | undefined;
551
+ filters?: Record<string, any> | undefined;
552
552
  };
553
- actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
554
553
  id: string;
555
554
  eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
555
+ actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
556
556
  description?: string | undefined;
557
557
  enabled?: boolean | undefined;
558
558
  alertSeverity?: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency" | undefined;
@@ -642,11 +642,11 @@ export declare const AuditEventFilterSchema: z.ZodObject<{
642
642
  from: z.ZodString;
643
643
  to: z.ZodString;
644
644
  }, "strip", z.ZodTypeAny, {
645
- to: string;
646
645
  from: string;
647
- }, {
648
646
  to: string;
647
+ }, {
649
648
  from: string;
649
+ to: string;
650
650
  }>>;
651
651
  /**
652
652
  * Filter by result status
@@ -667,8 +667,8 @@ export declare const AuditEventFilterSchema: z.ZodObject<{
667
667
  severities?: ("error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency")[] | undefined;
668
668
  actorId?: string | undefined;
669
669
  timeRange?: {
670
- to: string;
671
670
  from: string;
671
+ to: string;
672
672
  } | undefined;
673
673
  searchQuery?: string | undefined;
674
674
  customFilters?: Record<string, any> | undefined;
@@ -679,8 +679,8 @@ export declare const AuditEventFilterSchema: z.ZodObject<{
679
679
  severities?: ("error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency")[] | undefined;
680
680
  actorId?: string | undefined;
681
681
  timeRange?: {
682
- to: string;
683
682
  from: string;
683
+ to: string;
684
684
  } | undefined;
685
685
  searchQuery?: string | undefined;
686
686
  customFilters?: Record<string, any> | undefined;
@@ -794,15 +794,15 @@ export declare const AuditConfigSchema: z.ZodObject<{
794
794
  }, "strip", z.ZodTypeAny, {
795
795
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
796
796
  path?: string | undefined;
797
- credentials?: Record<string, any> | undefined;
798
797
  endpoint?: string | undefined;
799
798
  bucket?: string | undefined;
799
+ credentials?: Record<string, any> | undefined;
800
800
  }, {
801
801
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
802
802
  path?: string | undefined;
803
- credentials?: Record<string, any> | undefined;
804
803
  endpoint?: string | undefined;
805
804
  bucket?: string | undefined;
805
+ credentials?: Record<string, any> | undefined;
806
806
  }>>;
807
807
  /**
808
808
  * Event types that have different retention periods
@@ -820,9 +820,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
820
820
  archiveStorage?: {
821
821
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
822
822
  path?: string | undefined;
823
- credentials?: Record<string, any> | undefined;
824
823
  endpoint?: string | undefined;
825
824
  bucket?: string | undefined;
825
+ credentials?: Record<string, any> | undefined;
826
826
  } | undefined;
827
827
  customRetention?: Record<string, number> | undefined;
828
828
  minimumRetentionDays?: number | undefined;
@@ -832,9 +832,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
832
832
  archiveStorage?: {
833
833
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
834
834
  path?: string | undefined;
835
- credentials?: Record<string, any> | undefined;
836
835
  endpoint?: string | undefined;
837
836
  bucket?: string | undefined;
837
+ credentials?: Record<string, any> | undefined;
838
838
  } | undefined;
839
839
  customRetention?: Record<string, number> | undefined;
840
840
  minimumRetentionDays?: number | undefined;
@@ -886,13 +886,13 @@ export declare const AuditConfigSchema: z.ZodObject<{
886
886
  }, "strip", z.ZodTypeAny, {
887
887
  threshold: number;
888
888
  windowSeconds: number;
889
- filters?: Record<string, any> | undefined;
890
889
  groupBy?: string[] | undefined;
890
+ filters?: Record<string, any> | undefined;
891
891
  }, {
892
892
  threshold: number;
893
893
  windowSeconds: number;
894
- filters?: Record<string, any> | undefined;
895
894
  groupBy?: string[] | undefined;
895
+ filters?: Record<string, any> | undefined;
896
896
  }>;
897
897
  /**
898
898
  * Actions to take when rule is triggered
@@ -932,13 +932,13 @@ export declare const AuditConfigSchema: z.ZodObject<{
932
932
  condition: {
933
933
  threshold: number;
934
934
  windowSeconds: number;
935
- filters?: Record<string, any> | undefined;
936
935
  groupBy?: string[] | undefined;
936
+ filters?: Record<string, any> | undefined;
937
937
  };
938
- actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
939
938
  id: string;
940
939
  enabled: boolean;
941
940
  eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
941
+ actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
942
942
  alertSeverity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
943
943
  description?: string | undefined;
944
944
  notifications?: {
@@ -951,12 +951,12 @@ export declare const AuditConfigSchema: z.ZodObject<{
951
951
  condition: {
952
952
  threshold: number;
953
953
  windowSeconds: number;
954
- filters?: Record<string, any> | undefined;
955
954
  groupBy?: string[] | undefined;
955
+ filters?: Record<string, any> | undefined;
956
956
  };
957
- actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
958
957
  id: string;
959
958
  eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
959
+ actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
960
960
  description?: string | undefined;
961
961
  enabled?: boolean | undefined;
962
962
  alertSeverity?: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency" | undefined;
@@ -1054,9 +1054,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
1054
1054
  archiveStorage?: {
1055
1055
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
1056
1056
  path?: string | undefined;
1057
- credentials?: Record<string, any> | undefined;
1058
1057
  endpoint?: string | undefined;
1059
1058
  bucket?: string | undefined;
1059
+ credentials?: Record<string, any> | undefined;
1060
1060
  } | undefined;
1061
1061
  customRetention?: Record<string, number> | undefined;
1062
1062
  minimumRetentionDays?: number | undefined;
@@ -1066,13 +1066,13 @@ export declare const AuditConfigSchema: z.ZodObject<{
1066
1066
  condition: {
1067
1067
  threshold: number;
1068
1068
  windowSeconds: number;
1069
- filters?: Record<string, any> | undefined;
1070
1069
  groupBy?: string[] | undefined;
1070
+ filters?: Record<string, any> | undefined;
1071
1071
  };
1072
- actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
1073
1072
  id: string;
1074
1073
  enabled: boolean;
1075
1074
  eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
1075
+ actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
1076
1076
  alertSeverity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
1077
1077
  description?: string | undefined;
1078
1078
  notifications?: {
@@ -1086,18 +1086,18 @@ export declare const AuditConfigSchema: z.ZodObject<{
1086
1086
  logReads: boolean;
1087
1087
  readSamplingRate: number;
1088
1088
  logSystemEvents: boolean;
1089
- compliance?: {
1090
- immutableLogs: boolean;
1091
- requireSigning: boolean;
1092
- standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
1093
- signingKey?: string | undefined;
1094
- } | undefined;
1095
1089
  eventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
1096
1090
  excludeEventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
1097
1091
  customHandlers?: {
1098
1092
  eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
1099
1093
  handlerId: string;
1100
1094
  }[] | undefined;
1095
+ compliance?: {
1096
+ immutableLogs: boolean;
1097
+ requireSigning: boolean;
1098
+ standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
1099
+ signingKey?: string | undefined;
1100
+ } | undefined;
1101
1101
  }, {
1102
1102
  label: string;
1103
1103
  name: string;
@@ -1111,12 +1111,6 @@ export declare const AuditConfigSchema: z.ZodObject<{
1111
1111
  compression?: boolean | undefined;
1112
1112
  };
1113
1113
  enabled?: boolean | undefined;
1114
- compliance?: {
1115
- standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
1116
- immutableLogs?: boolean | undefined;
1117
- requireSigning?: boolean | undefined;
1118
- signingKey?: string | undefined;
1119
- } | undefined;
1120
1114
  eventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
1121
1115
  excludeEventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
1122
1116
  minimumSeverity?: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency" | undefined;
@@ -1126,9 +1120,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
1126
1120
  archiveStorage?: {
1127
1121
  type: "s3" | "gcs" | "azure_blob" | "filesystem";
1128
1122
  path?: string | undefined;
1129
- credentials?: Record<string, any> | undefined;
1130
1123
  endpoint?: string | undefined;
1131
1124
  bucket?: string | undefined;
1125
+ credentials?: Record<string, any> | undefined;
1132
1126
  } | undefined;
1133
1127
  customRetention?: Record<string, number> | undefined;
1134
1128
  minimumRetentionDays?: number | undefined;
@@ -1138,12 +1132,12 @@ export declare const AuditConfigSchema: z.ZodObject<{
1138
1132
  condition: {
1139
1133
  threshold: number;
1140
1134
  windowSeconds: number;
1141
- filters?: Record<string, any> | undefined;
1142
1135
  groupBy?: string[] | undefined;
1136
+ filters?: Record<string, any> | undefined;
1143
1137
  };
1144
- actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
1145
1138
  id: string;
1146
1139
  eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
1140
+ actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
1147
1141
  description?: string | undefined;
1148
1142
  enabled?: boolean | undefined;
1149
1143
  alertSeverity?: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency" | undefined;
@@ -1162,6 +1156,12 @@ export declare const AuditConfigSchema: z.ZodObject<{
1162
1156
  eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
1163
1157
  handlerId: string;
1164
1158
  }[] | undefined;
1159
+ compliance?: {
1160
+ standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
1161
+ immutableLogs?: boolean | undefined;
1162
+ requireSigning?: boolean | undefined;
1163
+ signingKey?: string | undefined;
1164
+ } | undefined;
1165
1165
  }>;
1166
1166
  export type AuditConfig = z.infer<typeof AuditConfigSchema>;
1167
1167
  /**
@@ -9,13 +9,13 @@ export declare const EventMetadataSchema: z.ZodObject<{
9
9
  userId: z.ZodOptional<z.ZodString>;
10
10
  tenantId: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
- source: string;
13
12
  timestamp: string;
13
+ source: string;
14
14
  userId?: string | undefined;
15
15
  tenantId?: string | undefined;
16
16
  }, {
17
- source: string;
18
17
  timestamp: string;
18
+ source: string;
19
19
  userId?: string | undefined;
20
20
  tenantId?: string | undefined;
21
21
  }>;
@@ -32,21 +32,21 @@ export declare const EventSchema: z.ZodObject<{
32
32
  userId: z.ZodOptional<z.ZodString>;
33
33
  tenantId: z.ZodOptional<z.ZodString>;
34
34
  }, "strip", z.ZodTypeAny, {
35
- source: string;
36
35
  timestamp: string;
36
+ source: string;
37
37
  userId?: string | undefined;
38
38
  tenantId?: string | undefined;
39
39
  }, {
40
- source: string;
41
40
  timestamp: string;
41
+ source: string;
42
42
  userId?: string | undefined;
43
43
  tenantId?: string | undefined;
44
44
  }>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  name: string;
47
47
  metadata: {
48
- source: string;
49
48
  timestamp: string;
49
+ source: string;
50
50
  userId?: string | undefined;
51
51
  tenantId?: string | undefined;
52
52
  };
@@ -54,8 +54,8 @@ export declare const EventSchema: z.ZodObject<{
54
54
  }, {
55
55
  name: string;
56
56
  metadata: {
57
- source: string;
58
57
  timestamp: string;
58
+ source: string;
59
59
  userId?: string | undefined;
60
60
  tenantId?: string | undefined;
61
61
  };
@@ -77,21 +77,21 @@ export declare const EventHandlerSchema: z.ZodObject<{
77
77
  userId: z.ZodOptional<z.ZodString>;
78
78
  tenantId: z.ZodOptional<z.ZodString>;
79
79
  }, "strip", z.ZodTypeAny, {
80
- source: string;
81
80
  timestamp: string;
81
+ source: string;
82
82
  userId?: string | undefined;
83
83
  tenantId?: string | undefined;
84
84
  }, {
85
- source: string;
86
85
  timestamp: string;
86
+ source: string;
87
87
  userId?: string | undefined;
88
88
  tenantId?: string | undefined;
89
89
  }>;
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  name: string;
92
92
  metadata: {
93
- source: string;
94
93
  timestamp: string;
94
+ source: string;
95
95
  userId?: string | undefined;
96
96
  tenantId?: string | undefined;
97
97
  };
@@ -99,8 +99,8 @@ export declare const EventHandlerSchema: z.ZodObject<{
99
99
  }, {
100
100
  name: string;
101
101
  metadata: {
102
- source: string;
103
102
  timestamp: string;
103
+ source: string;
104
104
  userId?: string | undefined;
105
105
  tenantId?: string | undefined;
106
106
  };
@@ -110,30 +110,30 @@ export declare const EventHandlerSchema: z.ZodObject<{
110
110
  async: z.ZodDefault<z.ZodBoolean>;
111
111
  }, "strip", z.ZodTypeAny, {
112
112
  async: boolean;
113
- priority: number;
114
- eventName: string;
115
113
  handler: (args_0: {
116
114
  name: string;
117
115
  metadata: {
118
- source: string;
119
116
  timestamp: string;
117
+ source: string;
120
118
  userId?: string | undefined;
121
119
  tenantId?: string | undefined;
122
120
  };
123
121
  payload?: any;
124
122
  }, ...args: unknown[]) => Promise<void>;
125
- }, {
123
+ priority: number;
126
124
  eventName: string;
125
+ }, {
127
126
  handler: (args_0: {
128
127
  name: string;
129
128
  metadata: {
130
- source: string;
131
129
  timestamp: string;
130
+ source: string;
132
131
  userId?: string | undefined;
133
132
  tenantId?: string | undefined;
134
133
  };
135
134
  payload?: any;
136
135
  }, ...args: unknown[]) => Promise<void>;
136
+ eventName: string;
137
137
  async?: boolean | undefined;
138
138
  priority?: number | undefined;
139
139
  }>;
@@ -147,12 +147,12 @@ export declare const EventRouteSchema: z.ZodObject<{
147
147
  to: z.ZodArray<z.ZodString, "many">;
148
148
  transform: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
149
149
  }, "strip", z.ZodTypeAny, {
150
- to: string[];
151
150
  from: string;
151
+ to: string[];
152
152
  transform?: ((...args: unknown[]) => unknown) | undefined;
153
153
  }, {
154
- to: string[];
155
154
  from: string;
155
+ to: string[];
156
156
  transform?: ((...args: unknown[]) => unknown) | undefined;
157
157
  }>;
158
158
  export type EventRoute = z.infer<typeof EventRouteSchema>;
@@ -3,31 +3,12 @@
3
3
  *
4
4
  * Runtime Configuration & Security
5
5
  * - Manifest (Config), Datasource
6
- * - Role (Hierarchy), Identity (Auth)
7
- * - Webhook (Integration), Policy (Compliance)
6
+ * - Webhook (Integration), Audit (Compliance)
8
7
  * - Plugin Architecture
9
8
  */
10
- export * from './manifest.zod';
11
- export * from './datasource.zod';
12
- export * from './api.zod';
13
- export * from './identity.zod';
14
- export * from './auth.zod';
15
- export * from './auth-protocol';
16
- export * from './organization.zod';
17
- export * from './policy.zod';
18
- export * from './role.zod';
19
- export * from './territory.zod';
20
- export * from './tenant.zod';
21
9
  export * from './audit.zod';
22
- export * from './license.zod';
23
- export * from './webhook.zod';
24
10
  export * from './translation.zod';
25
- export * from './driver.zod';
26
- export * from './discovery.zod';
27
- export * from './plugin.zod';
28
- export * from './realtime.zod';
29
11
  export * from './events.zod';
30
12
  export * from './job.zod';
31
- export * from './constants';
32
13
  export * from './types';
33
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -4,8 +4,7 @@
4
4
  *
5
5
  * Runtime Configuration & Security
6
6
  * - Manifest (Config), Datasource
7
- * - Role (Hierarchy), Identity (Auth)
8
- * - Webhook (Integration), Policy (Compliance)
7
+ * - Webhook (Integration), Audit (Compliance)
9
8
  * - Plugin Architecture
10
9
  */
11
10
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -23,26 +22,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
22
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
24
23
  };
25
24
  Object.defineProperty(exports, "__esModule", { value: true });
26
- __exportStar(require("./manifest.zod"), exports);
27
- __exportStar(require("./datasource.zod"), exports);
28
- __exportStar(require("./api.zod"), exports);
29
- __exportStar(require("./identity.zod"), exports);
30
- __exportStar(require("./auth.zod"), exports);
31
- __exportStar(require("./auth-protocol"), exports);
32
- __exportStar(require("./organization.zod"), exports);
33
- __exportStar(require("./policy.zod"), exports);
34
- __exportStar(require("./role.zod"), exports);
35
- __exportStar(require("./territory.zod"), exports);
36
- __exportStar(require("./tenant.zod"), exports);
37
25
  __exportStar(require("./audit.zod"), exports);
38
- __exportStar(require("./license.zod"), exports);
39
- __exportStar(require("./webhook.zod"), exports);
40
26
  __exportStar(require("./translation.zod"), exports);
41
- __exportStar(require("./driver.zod"), exports);
42
- __exportStar(require("./discovery.zod"), exports);
43
- __exportStar(require("./plugin.zod"), exports);
44
- __exportStar(require("./realtime.zod"), exports);
45
27
  __exportStar(require("./events.zod"), exports);
46
28
  __exportStar(require("./job.zod"), exports);
47
- __exportStar(require("./constants"), exports);
48
29
  __exportStar(require("./types"), exports);
30
+ // Note: Auth, Identity, Policy, Role, Organization moved to @objectstack/spec/auth
31
+ // Note: Territory moved to @objectstack/spec/permission