@party-stack/ontology 0.19.0 → 0.20.0

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 (401) hide show
  1. package/lib/OntologyPullConfig.d.ts +15 -13
  2. package/lib/OntologyPullConfig.d.ts.map +1 -1
  3. package/lib/OntologyPullConfig.js +0 -1
  4. package/lib/cli/format.d.ts +4 -0
  5. package/lib/cli/format.d.ts.map +1 -0
  6. package/lib/cli/format.js +19 -0
  7. package/lib/cli/format.js.map +1 -0
  8. package/lib/cli/generate.d.ts +6 -5
  9. package/lib/cli/generate.d.ts.map +1 -1
  10. package/lib/cli/generate.js +86 -110
  11. package/lib/cli/generate.js.map +1 -1
  12. package/lib/cli/index.d.ts +1 -3
  13. package/lib/cli/index.js +42 -59
  14. package/lib/cli/index.js.map +1 -1
  15. package/lib/cli/pull.d.ts +3 -1
  16. package/lib/cli/pull.d.ts.map +1 -1
  17. package/lib/cli/pull.js +42 -60
  18. package/lib/cli/pull.js.map +1 -1
  19. package/lib/examples/blog.d.ts +347 -345
  20. package/lib/examples/blog.d.ts.map +1 -1
  21. package/lib/examples/blog.js +350 -337
  22. package/lib/examples/blog.js.map +1 -1
  23. package/lib/examples/blog.live-queries.d.ts +8 -3
  24. package/lib/examples/blog.live-queries.d.ts.map +1 -1
  25. package/lib/examples/blog.live-queries.js +28 -44
  26. package/lib/examples/blog.live-queries.js.map +1 -1
  27. package/lib/examples/generated/constants.d.ts +1 -2
  28. package/lib/examples/generated/constants.js +0 -2
  29. package/lib/examples/generated/live.d.ts +5 -3
  30. package/lib/examples/generated/live.d.ts.map +1 -1
  31. package/lib/examples/generated/live.js +12 -8
  32. package/lib/examples/generated/live.js.map +1 -1
  33. package/lib/examples/generated/types.d.ts +52 -50
  34. package/lib/examples/generated/types.d.ts.map +1 -1
  35. package/lib/examples/generated/types.js +0 -2
  36. package/lib/generate/builders.d.ts +8 -5
  37. package/lib/generate/builders.d.ts.map +1 -1
  38. package/lib/generate/builders.js +53 -55
  39. package/lib/generate/builders.js.map +1 -1
  40. package/lib/generate/constants.d.ts +3 -1
  41. package/lib/generate/constants.d.ts.map +1 -1
  42. package/lib/generate/constants.js +23 -26
  43. package/lib/generate/constants.js.map +1 -1
  44. package/lib/generate/index.d.ts +6 -6
  45. package/lib/generate/index.js +6 -6
  46. package/lib/generate/live.d.ts +8 -6
  47. package/lib/generate/live.d.ts.map +1 -1
  48. package/lib/generate/live.js +43 -42
  49. package/lib/generate/live.js.map +1 -1
  50. package/lib/generate/ontology.d.ts +4 -2
  51. package/lib/generate/ontology.d.ts.map +1 -1
  52. package/lib/generate/ontology.js +453 -354
  53. package/lib/generate/ontology.js.map +1 -1
  54. package/lib/generate/types.d.ts +7 -5
  55. package/lib/generate/types.d.ts.map +1 -1
  56. package/lib/generate/types.js +190 -262
  57. package/lib/generate/types.js.map +1 -1
  58. package/lib/generate/utils/buildJsDocs.d.ts +7 -4
  59. package/lib/generate/utils/buildJsDocs.d.ts.map +1 -1
  60. package/lib/generate/utils/buildJsDocs.js +14 -10
  61. package/lib/generate/utils/buildJsDocs.js.map +1 -1
  62. package/lib/index.d.ts +30 -13
  63. package/lib/index.js +18 -10
  64. package/lib/infer.d.ts +129 -151
  65. package/lib/infer.d.ts.map +1 -1
  66. package/lib/infer.js +10 -6
  67. package/lib/infer.js.map +1 -1
  68. package/lib/installation/createMetaOntologyConfiguration.d.ts +6 -3
  69. package/lib/installation/createMetaOntologyConfiguration.d.ts.map +1 -1
  70. package/lib/installation/createMetaOntologyConfiguration.js +13 -11
  71. package/lib/installation/createMetaOntologyConfiguration.js.map +1 -1
  72. package/lib/installation/createOntologyBackendInstallation.d.ts +3 -1
  73. package/lib/installation/createOntologyBackendInstallation.d.ts.map +1 -1
  74. package/lib/installation/createOntologyBackendInstallation.js +205 -268
  75. package/lib/installation/createOntologyBackendInstallation.js.map +1 -1
  76. package/lib/installation/index.d.ts +4 -4
  77. package/lib/installation/index.js +3 -3
  78. package/lib/installation/types.d.ts +83 -80
  79. package/lib/installation/types.d.ts.map +1 -1
  80. package/lib/installation/types.js +0 -1
  81. package/lib/ir/generated/builders.d.ts +294 -382
  82. package/lib/ir/generated/builders.d.ts.map +1 -1
  83. package/lib/ir/generated/builders.js +180 -119
  84. package/lib/ir/generated/builders.js.map +1 -1
  85. package/lib/ir/generated/constants.d.ts +137 -135
  86. package/lib/ir/generated/constants.d.ts.map +1 -1
  87. package/lib/ir/generated/constants.js +162 -129
  88. package/lib/ir/generated/constants.js.map +1 -1
  89. package/lib/ir/generated/types.d.ts +236 -234
  90. package/lib/ir/generated/types.d.ts.map +1 -1
  91. package/lib/ir/generated/types.js +0 -2
  92. package/lib/ir/index.d.ts +4 -4
  93. package/lib/ir/index.js +3 -4
  94. package/lib/ir/schema.d.ts +2174 -2172
  95. package/lib/ir/schema.d.ts.map +1 -1
  96. package/lib/ir/schema.js +1184 -1343
  97. package/lib/ir/schema.js.map +1 -1
  98. package/lib/ir/validate.d.ts +5 -3
  99. package/lib/ir/validate.d.ts.map +1 -1
  100. package/lib/ir/validate.js +589 -707
  101. package/lib/ir/validate.js.map +1 -1
  102. package/lib/json/index.d.ts +10 -8
  103. package/lib/json/index.d.ts.map +1 -1
  104. package/lib/json/index.js +101 -135
  105. package/lib/json/index.js.map +1 -1
  106. package/lib/lenses.d.ts +7 -4
  107. package/lib/lenses.d.ts.map +1 -1
  108. package/lib/lenses.js +96 -132
  109. package/lib/lenses.js.map +1 -1
  110. package/lib/live/LiveOntology.d.ts +55 -60
  111. package/lib/live/LiveOntology.d.ts.map +1 -1
  112. package/lib/live/LiveOntology.js +98 -124
  113. package/lib/live/LiveOntology.js.map +1 -1
  114. package/lib/live/OntologyBackendAdapter.d.ts +84 -77
  115. package/lib/live/OntologyBackendAdapter.d.ts.map +1 -1
  116. package/lib/live/OntologyBackendAdapter.js +0 -1
  117. package/lib/live/actions/createLiveOntologyAction.d.ts +27 -24
  118. package/lib/live/actions/createLiveOntologyAction.d.ts.map +1 -1
  119. package/lib/live/actions/createLiveOntologyAction.js +24 -21
  120. package/lib/live/actions/createLiveOntologyAction.js.map +1 -1
  121. package/lib/live/actions/createLiveOntologyActions.d.ts +23 -20
  122. package/lib/live/actions/createLiveOntologyActions.d.ts.map +1 -1
  123. package/lib/live/actions/createLiveOntologyActions.js +131 -161
  124. package/lib/live/actions/createLiveOntologyActions.js.map +1 -1
  125. package/lib/live/actions/prepareActionParameters.d.ts +14 -11
  126. package/lib/live/actions/prepareActionParameters.d.ts.map +1 -1
  127. package/lib/live/actions/prepareActionParameters.js +190 -228
  128. package/lib/live/actions/prepareActionParameters.js.map +1 -1
  129. package/lib/live/attachments/attachmentSources.d.ts +7 -4
  130. package/lib/live/attachments/attachmentSources.d.ts.map +1 -1
  131. package/lib/live/attachments/attachmentSources.js +55 -71
  132. package/lib/live/attachments/attachmentSources.js.map +1 -1
  133. package/lib/live/attachments/createLiveOntologyAttachments.d.ts +47 -44
  134. package/lib/live/attachments/createLiveOntologyAttachments.d.ts.map +1 -1
  135. package/lib/live/attachments/createLiveOntologyAttachments.js +65 -83
  136. package/lib/live/attachments/createLiveOntologyAttachments.js.map +1 -1
  137. package/lib/live/attachments/types.d.ts +10 -8
  138. package/lib/live/attachments/types.d.ts.map +1 -1
  139. package/lib/live/attachments/types.js +0 -1
  140. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts +3 -1
  141. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts.map +1 -1
  142. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js +5 -3
  143. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js.map +1 -1
  144. package/lib/live/expression.d.ts +16 -13
  145. package/lib/live/expression.d.ts.map +1 -1
  146. package/lib/live/expression.js +142 -223
  147. package/lib/live/expression.js.map +1 -1
  148. package/lib/live/index.d.ts +12 -9
  149. package/lib/live/index.js +6 -8
  150. package/lib/live/mutators/OntologyEdits.d.ts +12 -9
  151. package/lib/live/mutators/OntologyEdits.d.ts.map +1 -1
  152. package/lib/live/mutators/OntologyEdits.js +57 -74
  153. package/lib/live/mutators/OntologyEdits.js.map +1 -1
  154. package/lib/live/mutators/createMutatorTx.d.ts +7 -5
  155. package/lib/live/mutators/createMutatorTx.d.ts.map +1 -1
  156. package/lib/live/mutators/createMutatorTx.js +53 -69
  157. package/lib/live/mutators/createMutatorTx.js.map +1 -1
  158. package/lib/live/mutators/runOptimisticAction.d.ts +16 -13
  159. package/lib/live/mutators/runOptimisticAction.d.ts.map +1 -1
  160. package/lib/live/mutators/runOptimisticAction.js +26 -26
  161. package/lib/live/mutators/runOptimisticAction.js.map +1 -1
  162. package/lib/live/mutators/types.d.ts +18 -16
  163. package/lib/live/mutators/types.d.ts.map +1 -1
  164. package/lib/live/mutators/types.js +0 -1
  165. package/lib/live/objects/OntologyObject.d.ts +2 -0
  166. package/lib/live/objects/OntologyObject.d.ts.map +1 -1
  167. package/lib/live/objects/OntologyObject.js +0 -1
  168. package/lib/live/objects/createLiveOntologyObjectCollection.d.ts +14 -11
  169. package/lib/live/objects/createLiveOntologyObjectCollection.d.ts.map +1 -1
  170. package/lib/live/objects/createLiveOntologyObjectCollection.js +62 -49
  171. package/lib/live/objects/createLiveOntologyObjectCollection.js.map +1 -1
  172. package/lib/live/objects/ontologyObjectCollectionId.d.ts +2 -0
  173. package/lib/live/objects/ontologyObjectCollectionId.d.ts.map +1 -1
  174. package/lib/live/objects/ontologyObjectCollectionId.js +6 -2
  175. package/lib/live/objects/ontologyObjectCollectionId.js.map +1 -1
  176. package/lib/live/outbox/createOntologyOutbox.d.ts +16 -14
  177. package/lib/live/outbox/createOntologyOutbox.d.ts.map +1 -1
  178. package/lib/live/outbox/createOntologyOutbox.js +275 -326
  179. package/lib/live/outbox/createOntologyOutbox.js.map +1 -1
  180. package/lib/live/outbox/leaderExecutor.d.ts +15 -13
  181. package/lib/live/outbox/leaderExecutor.d.ts.map +1 -1
  182. package/lib/live/outbox/leaderExecutor.js +114 -153
  183. package/lib/live/outbox/leaderExecutor.js.map +1 -1
  184. package/lib/live/outbox/outboxService.d.ts +4 -2
  185. package/lib/live/outbox/outboxService.d.ts.map +1 -1
  186. package/lib/live/outbox/outboxService.js +66 -71
  187. package/lib/live/outbox/outboxService.js.map +1 -1
  188. package/lib/live/outbox/projectionManager.d.ts +26 -24
  189. package/lib/live/outbox/projectionManager.d.ts.map +1 -1
  190. package/lib/live/outbox/projectionManager.js +121 -147
  191. package/lib/live/outbox/projectionManager.js.map +1 -1
  192. package/lib/live/outbox/repository.d.ts +27 -25
  193. package/lib/live/outbox/repository.d.ts.map +1 -1
  194. package/lib/live/outbox/repository.js +192 -241
  195. package/lib/live/outbox/repository.js.map +1 -1
  196. package/lib/live/outbox/service.d.ts +52 -50
  197. package/lib/live/outbox/service.d.ts.map +1 -1
  198. package/lib/live/outbox/service.js +5 -1
  199. package/lib/live/outbox/service.js.map +1 -1
  200. package/lib/live/outbox/types.d.ts +35 -33
  201. package/lib/live/outbox/types.d.ts.map +1 -1
  202. package/lib/live/outbox/types.js +10 -6
  203. package/lib/live/outbox/types.js.map +1 -1
  204. package/lib/live/waitForCollectionReady.d.ts +3 -1
  205. package/lib/live/waitForCollectionReady.d.ts.map +1 -1
  206. package/lib/live/waitForCollectionReady.js +44 -65
  207. package/lib/live/waitForCollectionReady.js.map +1 -1
  208. package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts +5 -2
  209. package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts.map +1 -1
  210. package/lib/meta/createLocalMetaOntologyBackendAdapter.js +37 -39
  211. package/lib/meta/createLocalMetaOntologyBackendAdapter.js.map +1 -1
  212. package/lib/meta/generated/constants.d.ts +137 -135
  213. package/lib/meta/generated/constants.d.ts.map +1 -1
  214. package/lib/meta/generated/constants.js +162 -129
  215. package/lib/meta/generated/constants.js.map +1 -1
  216. package/lib/meta/generated/live.d.ts +5 -2
  217. package/lib/meta/generated/live.d.ts.map +1 -1
  218. package/lib/meta/generated/live.js +12 -8
  219. package/lib/meta/generated/live.js.map +1 -1
  220. package/lib/meta/generated/types.d.ts +233 -231
  221. package/lib/meta/generated/types.d.ts.map +1 -1
  222. package/lib/meta/generated/types.js +0 -2
  223. package/lib/meta/ontology.d.ts +23 -21
  224. package/lib/meta/ontology.d.ts.map +1 -1
  225. package/lib/meta/ontology.js +100 -104
  226. package/lib/meta/ontology.js.map +1 -1
  227. package/lib/meta/pull.d.ts +8 -6
  228. package/lib/meta/pull.d.ts.map +1 -1
  229. package/lib/meta/pull.js +39 -52
  230. package/lib/meta/pull.js.map +1 -1
  231. package/lib/utils/index.d.ts +8 -8
  232. package/lib/utils/index.js +5 -6
  233. package/lib/utils/links.d.ts +34 -31
  234. package/lib/utils/links.d.ts.map +1 -1
  235. package/lib/utils/links.js +10 -17
  236. package/lib/utils/links.js.map +1 -1
  237. package/lib/utils/paths.d.ts +2 -0
  238. package/lib/utils/paths.d.ts.map +1 -1
  239. package/lib/utils/paths.js +32 -44
  240. package/lib/utils/paths.js.map +1 -1
  241. package/lib/utils/provide.d.ts +2 -0
  242. package/lib/utils/provide.d.ts.map +1 -1
  243. package/lib/utils/provide.js +7 -9
  244. package/lib/utils/provide.js.map +1 -1
  245. package/lib/utils/targets.d.ts +20 -18
  246. package/lib/utils/targets.d.ts.map +1 -1
  247. package/lib/utils/targets.js +0 -1
  248. package/lib/utils/typeNames.d.ts +10 -8
  249. package/lib/utils/typeNames.d.ts.map +1 -1
  250. package/lib/utils/typeNames.js +0 -1
  251. package/lib/utils/types.d.ts +6 -4
  252. package/lib/utils/types.d.ts.map +1 -1
  253. package/lib/utils/types.js +38 -38
  254. package/lib/utils/types.js.map +1 -1
  255. package/lib/utils/uncertain.d.ts +5 -3
  256. package/lib/utils/uncertain.d.ts.map +1 -1
  257. package/lib/utils/uncertain.js +11 -9
  258. package/lib/utils/uncertain.js.map +1 -1
  259. package/lib/utils/validation.d.ts +4 -2
  260. package/lib/utils/validation.d.ts.map +1 -1
  261. package/lib/utils/validation.js +0 -1
  262. package/lib/utils/values.d.ts +18 -18
  263. package/lib/utils/values.d.ts.map +1 -1
  264. package/lib/utils/values.js +0 -1
  265. package/package.json +22 -26
  266. package/lib/OntologyPullConfig.js.map +0 -1
  267. package/lib/cli/index.d.ts.map +0 -1
  268. package/lib/cli/index.test.d.ts +0 -2
  269. package/lib/cli/index.test.d.ts.map +0 -1
  270. package/lib/cli/index.test.js +0 -34
  271. package/lib/cli/index.test.js.map +0 -1
  272. package/lib/cli/pull.test.d.ts +0 -2
  273. package/lib/cli/pull.test.d.ts.map +0 -1
  274. package/lib/cli/pull.test.js +0 -125
  275. package/lib/cli/pull.test.js.map +0 -1
  276. package/lib/examples/generated/constants.d.ts.map +0 -1
  277. package/lib/examples/generated/constants.js.map +0 -1
  278. package/lib/examples/generated/types.js.map +0 -1
  279. package/lib/generate/builders.test.d.ts +0 -2
  280. package/lib/generate/builders.test.d.ts.map +0 -1
  281. package/lib/generate/builders.test.js +0 -49
  282. package/lib/generate/builders.test.js.map +0 -1
  283. package/lib/generate/index.d.ts.map +0 -1
  284. package/lib/generate/index.js.map +0 -1
  285. package/lib/generate/live.test.d.ts +0 -2
  286. package/lib/generate/live.test.d.ts.map +0 -1
  287. package/lib/generate/live.test.js +0 -22
  288. package/lib/generate/live.test.js.map +0 -1
  289. package/lib/generate/ontology.test.d.ts +0 -2
  290. package/lib/generate/ontology.test.d.ts.map +0 -1
  291. package/lib/generate/ontology.test.js +0 -157
  292. package/lib/generate/ontology.test.js.map +0 -1
  293. package/lib/generate/types.test.d.ts +0 -2
  294. package/lib/generate/types.test.d.ts.map +0 -1
  295. package/lib/generate/types.test.js +0 -304
  296. package/lib/generate/types.test.js.map +0 -1
  297. package/lib/index.d.ts.map +0 -1
  298. package/lib/index.js.map +0 -1
  299. package/lib/infer.test.d.ts +0 -2
  300. package/lib/infer.test.d.ts.map +0 -1
  301. package/lib/infer.test.js +0 -125
  302. package/lib/infer.test.js.map +0 -1
  303. package/lib/installation/createMetaOntologyConfiguration.test.d.ts +0 -2
  304. package/lib/installation/createMetaOntologyConfiguration.test.d.ts.map +0 -1
  305. package/lib/installation/createMetaOntologyConfiguration.test.js +0 -20
  306. package/lib/installation/createMetaOntologyConfiguration.test.js.map +0 -1
  307. package/lib/installation/createOntologyBackendInstallation.test.d.ts +0 -2
  308. package/lib/installation/createOntologyBackendInstallation.test.d.ts.map +0 -1
  309. package/lib/installation/createOntologyBackendInstallation.test.js +0 -320
  310. package/lib/installation/createOntologyBackendInstallation.test.js.map +0 -1
  311. package/lib/installation/index.d.ts.map +0 -1
  312. package/lib/installation/index.js.map +0 -1
  313. package/lib/installation/types.js.map +0 -1
  314. package/lib/ir/generated/types.js.map +0 -1
  315. package/lib/ir/index.d.ts.map +0 -1
  316. package/lib/ir/index.js.map +0 -1
  317. package/lib/ir/validate.test.d.ts +0 -2
  318. package/lib/ir/validate.test.d.ts.map +0 -1
  319. package/lib/ir/validate.test.js +0 -1061
  320. package/lib/ir/validate.test.js.map +0 -1
  321. package/lib/json/index.test.d.ts +0 -2
  322. package/lib/json/index.test.d.ts.map +0 -1
  323. package/lib/json/index.test.js +0 -142
  324. package/lib/json/index.test.js.map +0 -1
  325. package/lib/lenses.test.d.ts +0 -2
  326. package/lib/lenses.test.d.ts.map +0 -1
  327. package/lib/lenses.test.js +0 -80
  328. package/lib/lenses.test.js.map +0 -1
  329. package/lib/live/LiveOntology.test.d.ts +0 -2
  330. package/lib/live/LiveOntology.test.d.ts.map +0 -1
  331. package/lib/live/LiveOntology.test.js +0 -507
  332. package/lib/live/LiveOntology.test.js.map +0 -1
  333. package/lib/live/OntologyBackendAdapter.js.map +0 -1
  334. package/lib/live/actions/createLiveOntologyAction.test.d.ts +0 -2
  335. package/lib/live/actions/createLiveOntologyAction.test.d.ts.map +0 -1
  336. package/lib/live/actions/createLiveOntologyAction.test.js +0 -232
  337. package/lib/live/actions/createLiveOntologyAction.test.js.map +0 -1
  338. package/lib/live/actions/prepareActionParameters.test.d.ts +0 -2
  339. package/lib/live/actions/prepareActionParameters.test.d.ts.map +0 -1
  340. package/lib/live/actions/prepareActionParameters.test.js +0 -165
  341. package/lib/live/actions/prepareActionParameters.test.js.map +0 -1
  342. package/lib/live/attachments/attachmentMetadata.test.d.ts +0 -2
  343. package/lib/live/attachments/attachmentMetadata.test.d.ts.map +0 -1
  344. package/lib/live/attachments/attachmentMetadata.test.js +0 -73
  345. package/lib/live/attachments/attachmentMetadata.test.js.map +0 -1
  346. package/lib/live/attachments/createLiveOntologyAttachments.test.d.ts +0 -2
  347. package/lib/live/attachments/createLiveOntologyAttachments.test.d.ts.map +0 -1
  348. package/lib/live/attachments/createLiveOntologyAttachments.test.js +0 -363
  349. package/lib/live/attachments/createLiveOntologyAttachments.test.js.map +0 -1
  350. package/lib/live/attachments/types.js.map +0 -1
  351. package/lib/live/expression.test.d.ts +0 -2
  352. package/lib/live/expression.test.d.ts.map +0 -1
  353. package/lib/live/expression.test.js +0 -311
  354. package/lib/live/expression.test.js.map +0 -1
  355. package/lib/live/index.d.ts.map +0 -1
  356. package/lib/live/index.js.map +0 -1
  357. package/lib/live/mutators/OntologyEdits.test.d.ts +0 -2
  358. package/lib/live/mutators/OntologyEdits.test.d.ts.map +0 -1
  359. package/lib/live/mutators/OntologyEdits.test.js +0 -85
  360. package/lib/live/mutators/OntologyEdits.test.js.map +0 -1
  361. package/lib/live/mutators/createMutatorTx.test.d.ts +0 -2
  362. package/lib/live/mutators/createMutatorTx.test.d.ts.map +0 -1
  363. package/lib/live/mutators/createMutatorTx.test.js +0 -180
  364. package/lib/live/mutators/createMutatorTx.test.js.map +0 -1
  365. package/lib/live/mutators/types.js.map +0 -1
  366. package/lib/live/objects/OntologyObject.js.map +0 -1
  367. package/lib/live/objects/createLiveOntologyObjectCollection.test.d.ts +0 -2
  368. package/lib/live/objects/createLiveOntologyObjectCollection.test.d.ts.map +0 -1
  369. package/lib/live/objects/createLiveOntologyObjectCollection.test.js +0 -310
  370. package/lib/live/objects/createLiveOntologyObjectCollection.test.js.map +0 -1
  371. package/lib/live/outbox/createOntologyOutbox.test.d.ts +0 -2
  372. package/lib/live/outbox/createOntologyOutbox.test.d.ts.map +0 -1
  373. package/lib/live/outbox/createOntologyOutbox.test.js +0 -1030
  374. package/lib/live/outbox/createOntologyOutbox.test.js.map +0 -1
  375. package/lib/meta/generated/types.js.map +0 -1
  376. package/lib/meta/ontology.test.d.ts +0 -2
  377. package/lib/meta/ontology.test.d.ts.map +0 -1
  378. package/lib/meta/ontology.test.js +0 -84
  379. package/lib/meta/ontology.test.js.map +0 -1
  380. package/lib/utils/index.d.ts.map +0 -1
  381. package/lib/utils/index.js.map +0 -1
  382. package/lib/utils/links.test.d.ts +0 -2
  383. package/lib/utils/links.test.d.ts.map +0 -1
  384. package/lib/utils/links.test.js +0 -109
  385. package/lib/utils/links.test.js.map +0 -1
  386. package/lib/utils/paths.test.d.ts +0 -2
  387. package/lib/utils/paths.test.d.ts.map +0 -1
  388. package/lib/utils/paths.test.js +0 -33
  389. package/lib/utils/paths.test.js.map +0 -1
  390. package/lib/utils/targets.js.map +0 -1
  391. package/lib/utils/typeNames.js.map +0 -1
  392. package/lib/utils/types.test.d.ts +0 -2
  393. package/lib/utils/types.test.d.ts.map +0 -1
  394. package/lib/utils/types.test.js +0 -157
  395. package/lib/utils/types.test.js.map +0 -1
  396. package/lib/utils/uncertain.test.d.ts +0 -2
  397. package/lib/utils/uncertain.test.d.ts.map +0 -1
  398. package/lib/utils/uncertain.test.js +0 -14
  399. package/lib/utils/uncertain.test.js.map +0 -1
  400. package/lib/utils/validation.js.map +0 -1
  401. package/lib/utils/values.js.map +0 -1
package/lib/ir/schema.js CHANGED
@@ -1,1346 +1,1187 @@
1
- import { IconNames } from "@party-stack/icons";
2
1
  import { o } from "./generated/builders.js";
3
- export default {
4
- types: [
5
- {
6
- name: "IconName",
7
- description: "A renderer-independent icon name from @party-stack/icons.",
8
- type: o.string({
9
- constraint: o.StringConstraint.enum({
10
- options: IconNames.map((value) => ({ value })),
11
- }),
12
- }),
13
- },
14
- {
15
- name: "IconDescriptor",
16
- description: "A portable icon descriptor with optional provider meta for lossless round trips.",
17
- type: o.struct({
18
- fields: [
19
- {
20
- name: "name",
21
- displayName: "Name",
22
- type: o.ref({ name: "IconName" }),
23
- description: "Renderer-independent icon name.",
24
- },
25
- {
26
- name: "meta",
27
- displayName: "Meta",
28
- type: o.optional({
29
- type: o.map({
30
- keyType: o.string({}),
31
- valueType: o.unknown({}),
32
- }),
33
- }),
34
- description: "Namespaced source-provider meta.",
35
- },
36
- ],
37
- }),
38
- },
39
- {
40
- name: "Deprecation",
41
- type: o.struct({
42
- fields: [
43
- {
44
- name: "message",
45
- displayName: "Message",
46
- type: o.string({}),
47
- },
48
- ],
49
- }),
50
- },
51
- {
52
- name: "StringSuggestion",
53
- description: "A suggested value for a string.",
54
- type: o.struct({
55
- fields: [
56
- {
57
- name: "value",
58
- displayName: "Value",
59
- type: o.string({}),
60
- },
61
- {
62
- name: "label",
63
- displayName: "Label",
64
- type: o.optional({ type: o.string({}) }),
65
- },
66
- ],
67
- }),
68
- },
69
- {
70
- name: "StringEnumConstraint",
71
- description: "Constrains a string to a set of allowed values.",
72
- type: o.struct({
73
- fields: [
74
- {
75
- name: "options",
76
- displayName: "Options",
77
- type: o.list({
78
- elementType: o.ref({ name: "StringSuggestion" }),
79
- }),
80
- },
81
- ],
82
- }),
83
- },
84
- {
85
- name: "StringRegexConstraint",
86
- description: "Constrains a string to a regex.",
87
- type: o.struct({
88
- fields: [
89
- {
90
- name: "regex",
91
- displayName: "Regex",
92
- type: o.string({}),
93
- },
94
- ],
95
- }),
96
- },
97
- {
98
- name: "StringConstraint",
99
- description: "A constraint that can be applied to a string type.",
100
- type: o.union({
101
- variants: [
102
- { name: "enum", type: o.ref({ name: "StringEnumConstraint" }) },
103
- { name: "regex", type: o.ref({ name: "StringRegexConstraint" }) },
104
- ],
105
- }),
106
- },
107
- {
108
- name: "StringTypeDef",
109
- description: "A string type with optional constraints.",
110
- type: o.struct({
111
- fields: [
112
- {
113
- name: "constraint",
114
- displayName: "Constraint",
115
- type: o.optional({ type: o.ref({ name: "StringConstraint" }) }),
116
- },
117
- {
118
- name: "suggestions",
119
- displayName: "Suggestions",
120
- type: o.optional({
121
- type: o.list({
122
- elementType: o.ref({ name: "StringSuggestion" }),
123
- }),
124
- }),
125
- },
126
- ],
127
- }),
128
- },
129
- {
130
- name: "BooleanTypeDef",
131
- description: "A boolean type.",
132
- type: o.struct({ fields: [] }),
133
- },
134
- {
135
- name: "IntegerTypeDef",
136
- description: "A 32-bit integer type.",
137
- type: o.struct({ fields: [] }),
138
- },
139
- // TODO: Add a 64-bit integer ("long") type for integral values such as byte sizes.
140
- {
141
- name: "FloatTypeDef",
142
- description: "A 32-bit floating point type.",
143
- type: o.struct({ fields: [] }),
144
- },
145
- {
146
- name: "DoubleTypeDef",
147
- description: "A 64-bit floating point type.",
148
- type: o.struct({ fields: [] }),
149
- },
150
- {
151
- name: "DateTypeDef",
152
- description: "A date type (no time component).",
153
- type: o.struct({ fields: [] }),
154
- },
155
- {
156
- name: "TimestampTypeDef",
157
- description: "A timestamp type (instant in time).",
158
- type: o.struct({ fields: [] }),
159
- },
160
- {
161
- name: "GeopointTypeDef",
162
- description: "A geographic point (lat/lon).",
163
- type: o.struct({ fields: [] }),
164
- },
165
- {
166
- name: "UnknownTypeDef",
167
- description: "An opaque type whose shape is not known at schema time.",
168
- type: o.struct({ fields: [] }),
169
- },
170
- {
171
- name: "ListTypeDef",
172
- description: "A list/array type.",
173
- type: o.struct({
174
- fields: [
175
- {
176
- name: "elementType",
177
- displayName: "Element Type",
178
- type: o.ref({ name: "TypeDef" }),
179
- description: "The type of elements in the list.",
180
- },
181
- ],
182
- }),
183
- },
184
- {
185
- name: "MapTypeDef",
186
- description: "A map/record type.",
187
- type: o.struct({
188
- fields: [
189
- {
190
- name: "keyType",
191
- displayName: "Key Type",
192
- type: o.ref({ name: "TypeDef" }),
193
- description: "The type of keys (must be string right now).",
194
- },
195
- {
196
- name: "valueType",
197
- displayName: "Value Type",
198
- type: o.ref({ name: "TypeDef" }),
199
- description: "The type of values.",
200
- },
201
- ],
202
- }),
203
- },
204
- {
205
- name: "FieldDef",
206
- description: "Definition of a field in a struct.",
207
- type: o.struct({
208
- fields: [
209
- {
210
- name: "name",
211
- displayName: "Name",
212
- type: o.string({}),
213
- description: "The field name in code.",
214
- },
215
- {
216
- name: "displayName",
217
- displayName: "Display Name",
218
- type: o.string({}),
219
- description: "Human-readable name.",
220
- },
221
- {
222
- name: "type",
223
- displayName: "Type",
224
- type: o.ref({ name: "TypeDef" }),
225
- description: "The field's type.",
226
- },
227
- {
228
- name: "description",
229
- displayName: "Description",
230
- type: o.optional({ type: o.string({}) }),
231
- description: "Optional description.",
232
- },
233
- {
234
- name: "deprecated",
235
- displayName: "Deprecated?",
236
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
237
- },
238
- ],
239
- }),
240
- },
241
- {
242
- name: "StructTypeDef",
243
- description: "A struct type with named fields.",
244
- type: o.struct({
245
- fields: [
246
- {
247
- name: "fields",
248
- displayName: "Fields",
249
- type: o.list({ elementType: o.ref({ name: "FieldDef" }) }),
250
- },
251
- ],
252
- }),
253
- },
254
- {
255
- name: "VariantDef",
256
- description: "Definition of a variant in a discriminated union.",
257
- type: o.struct({
258
- fields: [
259
- {
260
- name: "name",
261
- displayName: "Name",
262
- type: o.string({}),
263
- description: "The variant's discriminator value.",
264
- },
265
- {
266
- name: "type",
267
- displayName: "Type",
268
- type: o.ref({ name: "TypeDef" }),
269
- description: "The variant's payload type.",
270
- },
271
- ],
272
- }),
273
- },
274
- {
275
- name: "UnionTypeDef",
276
- description: "A discriminated union type.",
277
- type: o.struct({
278
- fields: [
279
- {
280
- name: "variants",
281
- displayName: "Variants",
282
- type: o.list({ elementType: o.ref({ name: "VariantDef" }) }),
283
- },
284
- ],
285
- }),
286
- },
287
- {
288
- name: "OptionalTypeDef",
289
- description: "Wraps a type to make it optional.",
290
- type: o.struct({
291
- fields: [
292
- {
293
- name: "type",
294
- displayName: "Type",
295
- type: o.ref({ name: "TypeDef" }),
296
- description: "The wrapped type.",
297
- },
298
- ],
299
- }),
300
- },
301
- {
302
- name: "ResultTypeDef",
303
- description: "A result type (ok or error).",
304
- type: o.struct({
305
- fields: [
306
- {
307
- name: "okType",
308
- displayName: "Ok Type",
309
- type: o.ref({ name: "TypeDef" }),
310
- description: "The type of the success value.",
311
- },
312
- {
313
- name: "errType",
314
- displayName: "Error Type",
315
- type: o.ref({ name: "TypeDef" }),
316
- description: "The type of the error value.",
317
- },
318
- ],
319
- }),
320
- },
321
- {
322
- name: "TypeRef",
323
- description: "A reference to a named type.",
324
- type: o.struct({
325
- fields: [
326
- {
327
- name: "name",
328
- displayName: "Name",
329
- type: o.string({}),
330
- description: "The name of the referenced type.",
331
- },
332
- ],
333
- }),
334
- },
335
- {
336
- name: "TypeDef",
337
- description: "A type definition. Can be a primitive, collection, struct, union, optional, result, or reference.",
338
- type: o.union({
339
- variants: [
340
- { name: "string", type: o.ref({ name: "StringTypeDef" }) },
341
- { name: "boolean", type: o.ref({ name: "BooleanTypeDef" }) },
342
- { name: "integer", type: o.ref({ name: "IntegerTypeDef" }) },
343
- { name: "float", type: o.ref({ name: "FloatTypeDef" }) },
344
- { name: "double", type: o.ref({ name: "DoubleTypeDef" }) },
345
- { name: "date", type: o.ref({ name: "DateTypeDef" }) },
346
- { name: "timestamp", type: o.ref({ name: "TimestampTypeDef" }) },
347
- { name: "geopoint", type: o.ref({ name: "GeopointTypeDef" }) },
348
- { name: "list", type: o.ref({ name: "ListTypeDef" }) },
349
- { name: "map", type: o.ref({ name: "MapTypeDef" }) },
350
- { name: "struct", type: o.ref({ name: "StructTypeDef" }) },
351
- { name: "union", type: o.ref({ name: "UnionTypeDef" }) },
352
- { name: "optional", type: o.ref({ name: "OptionalTypeDef" }) },
353
- { name: "result", type: o.ref({ name: "ResultTypeDef" }) },
354
- { name: "ref", type: o.ref({ name: "TypeRef" }) },
355
- { name: "attachment", type: o.ref({ name: "AttachmentTypeDef" }) },
356
- { name: "objectReference", type: o.ref({ name: "ObjectReferenceTypeDef" }) },
357
- { name: "unknown", type: o.ref({ name: "UnknownTypeDef" }) },
358
- ],
359
- }),
360
- },
361
- {
362
- name: "NamedTypeDef",
363
- description: "A named type definition that can be referenced by other types.",
364
- type: o.struct({
365
- fields: [
366
- {
367
- name: "name",
368
- displayName: "Name",
369
- type: o.string({}),
370
- description: "The type's name for use in code.",
371
- },
372
- {
373
- name: "description",
374
- displayName: "Description",
375
- type: o.optional({ type: o.string({}) }),
376
- description: "Optional documentation for the type.",
377
- },
378
- {
379
- name: "deprecated",
380
- displayName: "Deprecated?",
381
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
382
- },
383
- {
384
- name: "type",
385
- displayName: "Type",
386
- type: o.ref({ name: "TypeDef" }),
387
- description: "The type definition.",
388
- },
389
- ],
390
- }),
391
- },
392
- {
393
- name: "ImageMediaType",
394
- description: "A supported image media type.",
395
- type: o.string({
396
- constraint: o.StringConstraint.enum({
397
- options: [
398
- { value: "image/bmp", label: "BMP" },
399
- { value: "image/tiff", label: "TIFF" },
400
- { value: "image/nitf", label: "NITF" },
401
- { value: "image/jp2", label: "JPEG 2000" },
402
- { value: "image/jpeg", label: "JPEG" },
403
- { value: "image/png", label: "PNG" },
404
- { value: "image/gif", label: "GIF" },
405
- { value: "image/svg+xml", label: "SVG" },
406
- { value: "image/webp", label: "WebP" },
407
- ],
408
- }),
409
- }),
410
- },
411
- {
412
- name: "DimensionsConstraint",
413
- description: "Constrains intrinsic pixel dimensions.",
414
- type: o.struct({
415
- fields: [
416
- {
417
- name: "width",
418
- displayName: "Width",
419
- type: o.optional({
420
- type: o.struct({
421
- fields: [
422
- {
423
- name: "min",
424
- displayName: "Minimum",
425
- type: o.optional({ type: o.integer({}) }),
426
- },
427
- {
428
- name: "max",
429
- displayName: "Maximum",
430
- type: o.optional({ type: o.integer({}) }),
431
- },
432
- ],
433
- }),
434
- }),
435
- },
436
- {
437
- name: "height",
438
- displayName: "Height",
439
- type: o.optional({
440
- type: o.struct({
441
- fields: [
442
- {
443
- name: "min",
444
- displayName: "Minimum",
445
- type: o.optional({ type: o.integer({}) }),
446
- },
447
- {
448
- name: "max",
449
- displayName: "Maximum",
450
- type: o.optional({ type: o.integer({}) }),
451
- },
452
- ],
453
- }),
454
- }),
455
- },
456
- ],
457
- }),
458
- },
459
- {
460
- name: "ImageAttachmentConstraint",
461
- description: "Constraints specific to image attachments.",
462
- type: o.struct({
463
- fields: [
464
- {
465
- name: "mediaTypes",
466
- displayName: "Media types",
467
- type: o.optional({
468
- type: o.list({ elementType: o.ref({ name: "ImageMediaType" }) }),
469
- }),
470
- },
471
- {
472
- name: "dimensions",
473
- displayName: "Dimensions",
474
- type: o.optional({
475
- type: o.ref({ name: "DimensionsConstraint" }),
476
- }),
477
- },
478
- ],
479
- }),
480
- },
481
- {
482
- name: "AttachmentContentConstraint",
483
- description: "Content-specific attachment constraints.",
484
- type: o.union({
485
- variants: [
486
- {
487
- name: "image",
488
- type: o.ref({ name: "ImageAttachmentConstraint" }),
489
- },
490
- ],
491
- }),
492
- },
493
- {
494
- name: "AttachmentConstraint",
495
- description: "Constraints applied to an attachment.",
496
- type: o.struct({
497
- fields: [
498
- {
499
- name: "size",
500
- displayName: "Size",
501
- type: o.optional({
502
- type: o.struct({
503
- fields: [
504
- {
505
- name: "min",
506
- displayName: "Minimum",
507
- type: o.optional({ type: o.double({}) }),
508
- },
509
- {
510
- name: "max",
511
- displayName: "Maximum",
512
- type: o.optional({ type: o.double({}) }),
513
- },
514
- ],
515
- }),
516
- }),
517
- },
518
- {
519
- name: "content",
520
- displayName: "Content",
521
- type: o.optional({
522
- type: o.ref({ name: "AttachmentContentConstraint" }),
523
- }),
524
- },
525
- ],
526
- }),
527
- },
528
- {
529
- name: "AttachmentTypeDef",
530
- description: "A file handle with optional constraints.",
531
- type: o.struct({
532
- fields: [
533
- {
534
- name: "constraint",
535
- displayName: "Constraint",
536
- type: o.optional({ type: o.ref({ name: "AttachmentConstraint" }) }),
537
- },
538
- {
539
- name: "meta",
540
- displayName: "Meta",
541
- type: o.optional({
542
- type: o.map({ keyType: o.string({}), valueType: o.unknown({}) }),
543
- }),
544
- },
545
- ],
546
- }),
547
- },
548
- {
549
- name: "ObjectReferenceTypeDef",
550
- description: "A reference to an ontology object type.",
551
- type: o.struct({
552
- fields: [
553
- {
554
- name: "objectType",
555
- displayName: "Object type",
556
- type: o.string({}),
557
- description: "The referenced object type name.",
558
- },
559
- ],
560
- }),
561
- },
562
- {
563
- name: "PropertyDef",
564
- description: "A property on an Object type.",
565
- type: o.struct({
566
- fields: [
567
- {
568
- name: "name",
569
- displayName: "Name",
570
- type: o.string({}),
571
- description: "The property's name.",
572
- },
573
- {
574
- name: "displayName",
575
- displayName: "Display name",
576
- type: o.string({}),
577
- description: "Human-readable name.",
578
- },
579
- {
580
- name: "type",
581
- displayName: "Type",
582
- type: o.ref({ name: "TypeDef" }),
583
- description: "The property's type.",
584
- },
585
- {
586
- name: "description",
587
- displayName: "Description",
588
- type: o.optional({ type: o.string({}) }),
589
- description: "Optional description.",
590
- },
591
- {
592
- name: "deprecated",
593
- displayName: "Deprecated?",
594
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
595
- },
596
- ],
597
- }),
598
- },
599
- {
600
- name: "ObjectTypeDef",
601
- description: "An object type in the ontology.",
602
- type: o.struct({
603
- fields: [
604
- {
605
- name: "name",
606
- displayName: "Name",
607
- type: o.string({}),
608
- description: "The object type's programmatic name.",
609
- },
610
- {
611
- name: "displayName",
612
- displayName: "Display name",
613
- type: o.string({}),
614
- description: "Human-readable name.",
615
- },
616
- {
617
- name: "pluralDisplayName",
618
- displayName: "Plural display name",
619
- type: o.string({}),
620
- },
621
- {
622
- name: "primaryKey",
623
- displayName: "Primary key",
624
- type: o.string({}),
625
- description: "The name of the property that serves as primary key.",
626
- },
627
- {
628
- name: "title",
629
- displayName: "Title",
630
- type: o.optional({ type: o.string({}) }),
631
- description: "The optional property name used as the human-readable title for an object.",
632
- },
633
- {
634
- name: "icon",
635
- displayName: "Icon",
636
- type: o.optional({ type: o.ref({ name: "IconDescriptor" }) }),
637
- description: "Optional portable icon descriptor.",
638
- },
639
- {
640
- name: "color",
641
- displayName: "Color",
642
- type: o.optional({ type: o.string({}) }),
643
- description: "Optional display color independent of the icon.",
644
- },
645
- {
646
- name: "properties",
647
- displayName: "Properties",
648
- type: o.list({ elementType: o.ref({ name: "PropertyDef" }) }),
649
- description: "The object type's propertieo.",
650
- },
651
- {
652
- name: "description",
653
- displayName: "Description",
654
- type: o.optional({ type: o.string({}) }),
655
- description: "Optional description.",
656
- },
657
- {
658
- name: "deprecated",
659
- displayName: "Deprecated?",
660
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
661
- },
662
- ],
663
- }),
664
- },
665
- {
666
- name: "LinkTypeSideDef",
667
- type: o.struct({
668
- fields: [
669
- {
670
- name: "objectType",
671
- displayName: "Object type",
672
- type: o.string({}),
673
- },
674
- {
675
- name: "name",
676
- displayName: "Name",
677
- type: o.string({}),
678
- },
679
- {
680
- name: "displayName",
681
- displayName: "Display name",
682
- type: o.string({}),
683
- },
684
- ],
685
- }),
686
- },
687
- {
688
- name: "LinkCardinality",
689
- description: "The cardinality of a link from the source's perspective.",
690
- type: o.string({
691
- constraint: o.StringConstraint.enum({
692
- options: [
693
- { value: "one", label: "One" },
694
- { value: "many", label: "Many" },
695
- ],
696
- }),
697
- }),
698
- },
699
- {
700
- name: "LinkTypeDef",
701
- description: "A relationship between two object types.",
702
- type: o.struct({
703
- fields: [
704
- {
705
- name: "id",
706
- displayName: "ID",
707
- type: o.string({}),
708
- },
709
- {
710
- name: "source",
711
- displayName: "Source",
712
- type: o.ref({ name: "LinkTypeSideDef" }),
713
- },
714
- {
715
- name: "target",
716
- displayName: "Target",
717
- type: o.ref({ name: "LinkTypeSideDef" }),
718
- },
719
- {
720
- name: "foreignKey",
721
- displayName: "Foreign key",
722
- type: o.string({}),
723
- description: "The foreign key on the source.",
724
- },
725
- {
726
- name: "cardinality",
727
- displayName: "Cardinality",
728
- type: o.string({
729
- constraint: o.StringConstraint.enum({
730
- options: [
731
- { value: "one", label: "One" },
732
- { value: "many", label: "Many" },
733
- ],
734
- }),
735
- }),
736
- description: "How many sources are linked to the target.",
737
- },
738
- ],
739
- }),
740
- },
741
- {
742
- name: "ActionParameterDef",
743
- description: "A parameter of an Action type.",
744
- type: o.struct({
745
- fields: [
746
- {
747
- name: "name",
748
- displayName: "Name",
749
- type: o.string({}),
750
- description: "The parameter's name.",
751
- },
752
- {
753
- name: "displayName",
754
- displayName: "Display name",
755
- type: o.string({}),
756
- description: "Human-readable name.",
757
- },
758
- {
759
- name: "type",
760
- displayName: "Type",
761
- type: o.ref({ name: "TypeDef" }),
762
- description: "The parameter's type.",
763
- },
764
- {
765
- name: "description",
766
- displayName: "Description",
767
- type: o.optional({ type: o.string({}) }),
768
- description: "Optional description.",
769
- },
770
- {
771
- name: "deprecated",
772
- displayName: "Deprecated?",
773
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
774
- },
775
- {
776
- name: "defaultValue",
777
- displayName: "Default value",
778
- type: o.optional({ type: o.ref({ name: "Expression" }) }),
779
- description: "The expression used when the caller does not provide a value.",
780
- },
781
- ],
782
- }),
783
- },
784
- {
785
- name: "InputReferenceExpression",
786
- description: "Reads a named input from the root expression scope.",
787
- type: o.struct({
788
- fields: [
789
- {
790
- name: "name",
791
- displayName: "Name",
792
- type: o.string({}),
793
- },
794
- ],
795
- }),
796
- },
797
- {
798
- name: "LocalReferenceExpression",
799
- description: "Reads a named lexically scoped expression binding.",
800
- type: o.struct({
801
- fields: [
802
- {
803
- name: "name",
804
- displayName: "Name",
805
- type: o.string({}),
806
- },
807
- ],
808
- }),
809
- },
810
- {
811
- name: "ContextReferenceExpression",
812
- description: "Reads a named value from the expression context.",
813
- type: o.struct({
814
- fields: [
815
- {
816
- name: "name",
817
- displayName: "Name",
818
- type: o.string({}),
819
- },
820
- ],
821
- }),
822
- },
823
- {
824
- name: "GetAtExpression",
825
- description: "Reads a structural path from a source expression.",
826
- type: o.struct({
827
- fields: [
828
- {
829
- name: "source",
830
- displayName: "Source",
831
- type: o.ref({ name: "Expression" }),
832
- },
833
- {
834
- name: "path",
835
- displayName: "Path",
836
- type: o.list({ elementType: o.string({}) }),
837
- },
838
- ],
839
- }),
840
- },
841
- {
842
- name: "ObjectLookupExpression",
843
- description: "Resolves an object reference to its ontology object.",
844
- type: o.struct({
845
- fields: [
846
- {
847
- name: "reference",
848
- displayName: "Reference",
849
- type: o.ref({ name: "Expression" }),
850
- },
851
- ],
852
- }),
853
- },
854
- {
855
- name: "LinkHopExpression",
856
- description: "Follows one named to-one ontology link from a source object.",
857
- type: o.struct({
858
- fields: [
859
- {
860
- name: "source",
861
- displayName: "Source",
862
- type: o.ref({ name: "Expression" }),
863
- },
864
- {
865
- name: "link",
866
- displayName: "Link",
867
- type: o.string({}),
868
- },
869
- ],
870
- }),
871
- },
872
- {
873
- name: "StructExpressionField",
874
- description: "A named field constructed by a struct expression.",
875
- type: o.struct({
876
- fields: [
877
- {
878
- name: "name",
879
- displayName: "Name",
880
- type: o.string({}),
881
- },
882
- {
883
- name: "value",
884
- displayName: "Value",
885
- type: o.ref({ name: "Expression" }),
886
- },
887
- ],
888
- }),
889
- },
890
- {
891
- name: "StructExpression",
892
- description: "Constructs a struct value from field expressions.",
893
- type: o.struct({
894
- fields: [
895
- {
896
- name: "fields",
897
- displayName: "Fields",
898
- type: o.list({
899
- elementType: o.ref({
900
- name: "StructExpressionField",
901
- }),
902
- }),
903
- },
904
- ],
905
- }),
906
- },
907
- {
908
- name: "MapExpression",
909
- description: "Maps each element of a list to a new value.",
910
- type: o.struct({
911
- fields: [
912
- {
913
- name: "source",
914
- displayName: "Source",
915
- type: o.ref({ name: "Expression" }),
916
- },
917
- {
918
- name: "binding",
919
- displayName: "Binding",
920
- type: o.string({}),
921
- },
922
- {
923
- name: "body",
924
- displayName: "Body",
925
- type: o.ref({ name: "Expression" }),
926
- },
927
- ],
928
- }),
929
- },
930
- {
931
- name: "UuidExpression",
932
- description: "Generates a UUID value.",
933
- type: o.struct({
934
- fields: [],
935
- }),
936
- },
937
- {
938
- name: "NowExpression",
939
- description: "Returns the current timestamp.",
940
- type: o.struct({
941
- fields: [],
942
- }),
943
- },
944
- {
945
- name: "LiteralExpression",
946
- description: "A static literal value.",
947
- type: o.struct({
948
- fields: [
949
- {
950
- name: "value",
951
- displayName: "Value",
952
- type: o.unknown({}),
953
- description: "The literal value.",
954
- },
955
- ],
956
- }),
957
- },
958
- {
959
- name: "Expression",
960
- description: "An expression that resolves to a value.",
961
- type: o.union({
962
- variants: [
963
- {
964
- name: "inputReference",
965
- type: o.ref({ name: "InputReferenceExpression" }),
966
- },
967
- {
968
- name: "contextReference",
969
- type: o.ref({ name: "ContextReferenceExpression" }),
970
- },
971
- {
972
- name: "localReference",
973
- type: o.ref({ name: "LocalReferenceExpression" }),
974
- },
975
- {
976
- name: "getAt",
977
- type: o.ref({ name: "GetAtExpression" }),
978
- },
979
- {
980
- name: "objectLookup",
981
- type: o.ref({ name: "ObjectLookupExpression" }),
982
- },
983
- {
984
- name: "linkHop",
985
- type: o.ref({ name: "LinkHopExpression" }),
986
- },
987
- {
988
- name: "struct",
989
- type: o.ref({ name: "StructExpression" }),
990
- },
991
- {
992
- name: "map",
993
- type: o.ref({ name: "MapExpression" }),
994
- },
995
- {
996
- name: "uuid",
997
- type: o.ref({ name: "UuidExpression" }),
998
- },
999
- {
1000
- name: "now",
1001
- type: o.ref({ name: "NowExpression" }),
1002
- },
1003
- {
1004
- name: "literal",
1005
- type: o.ref({ name: "LiteralExpression" }),
1006
- },
1007
- ],
1008
- }),
1009
- },
1010
- {
1011
- name: "PropertyAssignment",
1012
- description: "Assigns an expression to a property path on an object written by an action.",
1013
- type: o.struct({
1014
- fields: [
1015
- {
1016
- name: "property",
1017
- displayName: "Property",
1018
- type: o.list({ elementType: o.string({}) }),
1019
- },
1020
- {
1021
- name: "value",
1022
- displayName: "Value",
1023
- type: o.ref({ name: "Expression" }),
1024
- },
1025
- ],
1026
- }),
1027
- },
1028
- {
1029
- name: "CreateObjectActionLogicStep",
1030
- description: "Creates an object and assigns property values.",
1031
- type: o.struct({
1032
- fields: [
1033
- {
1034
- name: "objectType",
1035
- displayName: "Object type",
1036
- type: o.string({}),
1037
- },
1038
- {
1039
- name: "values",
1040
- displayName: "Values",
1041
- type: o.list({ elementType: o.ref({ name: "PropertyAssignment" }) }),
1042
- },
1043
- ],
1044
- }),
1045
- },
1046
- {
1047
- name: "UpdateObjectActionLogicStep",
1048
- description: "Updates a referenced object and assigns property values.",
1049
- type: o.struct({
1050
- fields: [
1051
- {
1052
- name: "object",
1053
- displayName: "Object",
1054
- type: o.ref({ name: "InputReferenceExpression" }),
1055
- },
1056
- {
1057
- name: "values",
1058
- displayName: "Values",
1059
- type: o.list({ elementType: o.ref({ name: "PropertyAssignment" }) }),
1060
- },
1061
- ],
1062
- }),
1063
- },
1064
- {
1065
- name: "DeleteObjectActionLogicStep",
1066
- description: "Deletes a referenced object.",
1067
- type: o.struct({
1068
- fields: [
1069
- {
1070
- name: "object",
1071
- displayName: "Object",
1072
- type: o.ref({ name: "InputReferenceExpression" }),
1073
- },
1074
- ],
1075
- }),
1076
- },
1077
- {
1078
- name: "ActionLogicStep",
1079
- description: "A logic step performed by an action.",
1080
- type: o.union({
1081
- variants: [
1082
- {
1083
- name: "createObject",
1084
- type: o.ref({ name: "CreateObjectActionLogicStep" }),
1085
- },
1086
- {
1087
- name: "updateObject",
1088
- type: o.ref({ name: "UpdateObjectActionLogicStep" }),
1089
- },
1090
- {
1091
- name: "deleteObject",
1092
- type: o.ref({ name: "DeleteObjectActionLogicStep" }),
1093
- },
1094
- ],
1095
- }),
1096
- },
1097
- {
1098
- name: "ActionTypeDef",
1099
- description: "An action type in the ontology.",
1100
- type: o.struct({
1101
- fields: [
1102
- {
1103
- name: "meta",
1104
- displayName: "Meta",
1105
- type: o.optional({
1106
- type: o.map({
1107
- keyType: o.string({}),
1108
- valueType: o.unknown({}),
1109
- }),
1110
- }),
1111
- description: "Provider-specific metadata used to execute this action.",
1112
- },
1113
- {
1114
- name: "name",
1115
- displayName: "Name",
1116
- type: o.string({}),
1117
- description: "The object type's programmatic name.",
1118
- },
1119
- {
1120
- name: "displayName",
1121
- displayName: "Display name",
1122
- type: o.string({}),
1123
- description: "Human-readable name.",
1124
- },
1125
- {
1126
- name: "icon",
1127
- displayName: "Icon",
1128
- type: o.optional({ type: o.ref({ name: "IconDescriptor" }) }),
1129
- description: "Optional portable icon descriptor.",
1130
- },
1131
- {
1132
- name: "color",
1133
- displayName: "Color",
1134
- type: o.optional({ type: o.string({}) }),
1135
- description: "Optional display color independent of the icon.",
1136
- },
1137
- {
1138
- name: "parameters",
1139
- displayName: "Parameters",
1140
- type: o.list({ elementType: o.ref({ name: "ActionParameterDef" }) }),
1141
- description: "The action type's parametero.",
1142
- },
1143
- {
1144
- name: "logic",
1145
- displayName: "Logic",
1146
- type: o.list({ elementType: o.ref({ name: "ActionLogicStep" }) }),
1147
- description: "The action type's local logic stepo.",
1148
- },
1149
- {
1150
- name: "description",
1151
- displayName: "Description",
1152
- type: o.optional({ type: o.string({}) }),
1153
- description: "Optional description.",
1154
- },
1155
- {
1156
- name: "deprecated",
1157
- displayName: "Deprecated?",
1158
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
1159
- },
1160
- ],
1161
- }),
1162
- },
1163
- {
1164
- name: "QueryFunctionParameterDef",
1165
- description: "A parameter accepted by a query function type.",
1166
- type: o.struct({
1167
- fields: [
1168
- {
1169
- name: "name",
1170
- displayName: "Name",
1171
- type: o.string({}),
1172
- description: "The query function parameter's programmatic name.",
1173
- },
1174
- {
1175
- name: "displayName",
1176
- displayName: "Display name",
1177
- type: o.string({}),
1178
- description: "Human-readable name.",
1179
- },
1180
- {
1181
- name: "type",
1182
- displayName: "Type",
1183
- type: o.ref({ name: "TypeDef" }),
1184
- },
1185
- {
1186
- name: "description",
1187
- displayName: "Description",
1188
- type: o.optional({ type: o.string({}) }),
1189
- description: "Optional description.",
1190
- },
1191
- {
1192
- name: "deprecated",
1193
- displayName: "Deprecated?",
1194
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
1195
- },
1196
- ],
1197
- }),
1198
- },
1199
- {
1200
- name: "QueryFunctionTypeDef",
1201
- description: "A runnable query function type in the ontology.",
1202
- type: o.struct({
1203
- fields: [
1204
- {
1205
- name: "name",
1206
- displayName: "Name",
1207
- type: o.string({}),
1208
- description: "The query function type's programmatic name.",
1209
- },
1210
- {
1211
- name: "displayName",
1212
- displayName: "Display name",
1213
- type: o.string({}),
1214
- description: "Human-readable name.",
1215
- },
1216
- {
1217
- name: "parameters",
1218
- displayName: "Parameters",
1219
- type: o.list({ elementType: o.ref({ name: "QueryFunctionParameterDef" }) }),
1220
- description: "The query function type's parameters.",
1221
- },
1222
- {
1223
- name: "returnType",
1224
- displayName: "Return type",
1225
- type: o.ref({ name: "TypeDef" }),
1226
- description: "The query function type's return type.",
1227
- },
1228
- {
1229
- name: "description",
1230
- displayName: "Description",
1231
- type: o.optional({ type: o.string({}) }),
1232
- description: "Optional description.",
1233
- },
1234
- {
1235
- name: "deprecated",
1236
- displayName: "Deprecated?",
1237
- type: o.optional({ type: o.ref({ name: "Deprecation" }) }),
1238
- },
1239
- ],
1240
- }),
1241
- },
1242
- {
1243
- name: "MoveLensOp",
1244
- description: "Moves a property from one path to another.",
1245
- type: o.struct({
1246
- fields: [
1247
- {
1248
- name: "from",
1249
- displayName: "From",
1250
- type: o.list({ elementType: o.string({}) }),
1251
- },
1252
- {
1253
- name: "to",
1254
- displayName: "To",
1255
- type: o.list({ elementType: o.string({}) }),
1256
- },
1257
- ],
1258
- }),
1259
- },
1260
- {
1261
- name: "SelectLensOp",
1262
- description: "Retains only the selected top-level properties.",
1263
- type: o.struct({
1264
- fields: [
1265
- {
1266
- name: "properties",
1267
- displayName: "Properties",
1268
- type: o.list({ elementType: o.string({}) }),
1269
- },
1270
- ],
1271
- }),
1272
- },
1273
- {
1274
- name: "LensOp",
1275
- description: "One schema and value transformation operation.",
1276
- type: o.union({
1277
- variants: [
1278
- { name: "move", type: o.ref({ name: "MoveLensOp" }) },
1279
- { name: "select", type: o.ref({ name: "SelectLensOp" }) },
1280
- ],
1281
- }),
1282
- },
1283
- {
1284
- name: "Lens",
1285
- description: "An ordered sequence of source-to-target transformation operations.",
1286
- type: o.struct({
1287
- fields: [
1288
- {
1289
- name: "operations",
1290
- displayName: "Operations",
1291
- type: o.list({ elementType: o.ref({ name: "LensOp" }) }),
1292
- },
1293
- ],
1294
- }),
1295
- },
1296
- {
1297
- name: "OntologyIR",
1298
- description: "The root ontology definition containing all type definitions.",
1299
- type: o.struct({
1300
- fields: [
1301
- {
1302
- name: "types",
1303
- displayName: "Named types",
1304
- type: o.list({ elementType: o.ref({ name: "NamedTypeDef" }) }),
1305
- description: "Named, reusable value types.",
1306
- },
1307
- {
1308
- name: "objectTypes",
1309
- displayName: "Object types",
1310
- type: o.list({ elementType: o.ref({ name: "ObjectTypeDef" }) }),
1311
- description: "Object type definitions.",
1312
- },
1313
- {
1314
- name: "linkTypes",
1315
- displayName: "Link types",
1316
- type: o.list({ elementType: o.ref({ name: "LinkTypeDef" }) }),
1317
- description: "Relationship definitions between object types.",
1318
- },
1319
- {
1320
- name: "actionTypes",
1321
- displayName: "Action types",
1322
- type: o.list({ elementType: o.ref({ name: "ActionTypeDef" }) }),
1323
- description: "Action type definitions.",
1324
- },
1325
- {
1326
- name: "queryFunctionTypes",
1327
- displayName: "Query function types",
1328
- type: o.list({ elementType: o.ref({ name: "QueryFunctionTypeDef" }) }),
1329
- description: "Query function type definitions.",
1330
- },
1331
- {
1332
- name: "contextType",
1333
- displayName: "Context type",
1334
- type: o.optional({ type: o.ref({ name: "TypeDef" }) }),
1335
- description: "Optional typed execution context available to ontology expressions.",
1336
- },
1337
- ],
1338
- }),
1339
- },
1340
- ],
1341
- objectTypes: [],
1342
- linkTypes: [],
1343
- actionTypes: [],
1344
- queryFunctionTypes: [],
2
+ import { IconNames } from "@party-stack/icons";
3
+ //#region src/ir/schema.ts
4
+ var schema_default = {
5
+ types: [
6
+ {
7
+ name: "IconName",
8
+ description: "A renderer-independent icon name from @party-stack/icons.",
9
+ type: o.string({ constraint: o.StringConstraint.enum({ options: IconNames.map((value) => ({ value })) }) })
10
+ },
11
+ {
12
+ name: "IconDescriptor",
13
+ description: "A portable icon descriptor with optional provider meta for lossless round trips.",
14
+ type: o.struct({ fields: [{
15
+ name: "name",
16
+ displayName: "Name",
17
+ type: o.ref({ name: "IconName" }),
18
+ description: "Renderer-independent icon name."
19
+ }, {
20
+ name: "meta",
21
+ displayName: "Meta",
22
+ type: o.optional({ type: o.map({
23
+ keyType: o.string({}),
24
+ valueType: o.unknown({})
25
+ }) }),
26
+ description: "Namespaced source-provider meta."
27
+ }] })
28
+ },
29
+ {
30
+ name: "Deprecation",
31
+ type: o.struct({ fields: [{
32
+ name: "message",
33
+ displayName: "Message",
34
+ type: o.string({})
35
+ }] })
36
+ },
37
+ {
38
+ name: "StringSuggestion",
39
+ description: "A suggested value for a string.",
40
+ type: o.struct({ fields: [{
41
+ name: "value",
42
+ displayName: "Value",
43
+ type: o.string({})
44
+ }, {
45
+ name: "label",
46
+ displayName: "Label",
47
+ type: o.optional({ type: o.string({}) })
48
+ }] })
49
+ },
50
+ {
51
+ name: "StringEnumConstraint",
52
+ description: "Constrains a string to a set of allowed values.",
53
+ type: o.struct({ fields: [{
54
+ name: "options",
55
+ displayName: "Options",
56
+ type: o.list({ elementType: o.ref({ name: "StringSuggestion" }) })
57
+ }] })
58
+ },
59
+ {
60
+ name: "StringRegexConstraint",
61
+ description: "Constrains a string to a regex.",
62
+ type: o.struct({ fields: [{
63
+ name: "regex",
64
+ displayName: "Regex",
65
+ type: o.string({})
66
+ }] })
67
+ },
68
+ {
69
+ name: "StringConstraint",
70
+ description: "A constraint that can be applied to a string type.",
71
+ type: o.union({ variants: [{
72
+ name: "enum",
73
+ type: o.ref({ name: "StringEnumConstraint" })
74
+ }, {
75
+ name: "regex",
76
+ type: o.ref({ name: "StringRegexConstraint" })
77
+ }] })
78
+ },
79
+ {
80
+ name: "StringTypeDef",
81
+ description: "A string type with optional constraints.",
82
+ type: o.struct({ fields: [{
83
+ name: "constraint",
84
+ displayName: "Constraint",
85
+ type: o.optional({ type: o.ref({ name: "StringConstraint" }) })
86
+ }, {
87
+ name: "suggestions",
88
+ displayName: "Suggestions",
89
+ type: o.optional({ type: o.list({ elementType: o.ref({ name: "StringSuggestion" }) }) })
90
+ }] })
91
+ },
92
+ {
93
+ name: "BooleanTypeDef",
94
+ description: "A boolean type.",
95
+ type: o.struct({ fields: [] })
96
+ },
97
+ {
98
+ name: "IntegerTypeDef",
99
+ description: "A 32-bit integer type.",
100
+ type: o.struct({ fields: [] })
101
+ },
102
+ {
103
+ name: "FloatTypeDef",
104
+ description: "A 32-bit floating point type.",
105
+ type: o.struct({ fields: [] })
106
+ },
107
+ {
108
+ name: "DoubleTypeDef",
109
+ description: "A 64-bit floating point type.",
110
+ type: o.struct({ fields: [] })
111
+ },
112
+ {
113
+ name: "DateTypeDef",
114
+ description: "A date type (no time component).",
115
+ type: o.struct({ fields: [] })
116
+ },
117
+ {
118
+ name: "TimestampTypeDef",
119
+ description: "A timestamp type (instant in time).",
120
+ type: o.struct({ fields: [] })
121
+ },
122
+ {
123
+ name: "GeopointTypeDef",
124
+ description: "A geographic point (lat/lon).",
125
+ type: o.struct({ fields: [] })
126
+ },
127
+ {
128
+ name: "UnknownTypeDef",
129
+ description: "An opaque type whose shape is not known at schema time.",
130
+ type: o.struct({ fields: [] })
131
+ },
132
+ {
133
+ name: "ListTypeDef",
134
+ description: "A list/array type.",
135
+ type: o.struct({ fields: [{
136
+ name: "elementType",
137
+ displayName: "Element Type",
138
+ type: o.ref({ name: "TypeDef" }),
139
+ description: "The type of elements in the list."
140
+ }] })
141
+ },
142
+ {
143
+ name: "MapTypeDef",
144
+ description: "A map/record type.",
145
+ type: o.struct({ fields: [{
146
+ name: "keyType",
147
+ displayName: "Key Type",
148
+ type: o.ref({ name: "TypeDef" }),
149
+ description: "The type of keys (must be string right now)."
150
+ }, {
151
+ name: "valueType",
152
+ displayName: "Value Type",
153
+ type: o.ref({ name: "TypeDef" }),
154
+ description: "The type of values."
155
+ }] })
156
+ },
157
+ {
158
+ name: "FieldDef",
159
+ description: "Definition of a field in a struct.",
160
+ type: o.struct({ fields: [
161
+ {
162
+ name: "name",
163
+ displayName: "Name",
164
+ type: o.string({}),
165
+ description: "The field name in code."
166
+ },
167
+ {
168
+ name: "displayName",
169
+ displayName: "Display Name",
170
+ type: o.string({}),
171
+ description: "Human-readable name."
172
+ },
173
+ {
174
+ name: "type",
175
+ displayName: "Type",
176
+ type: o.ref({ name: "TypeDef" }),
177
+ description: "The field's type."
178
+ },
179
+ {
180
+ name: "description",
181
+ displayName: "Description",
182
+ type: o.optional({ type: o.string({}) }),
183
+ description: "Optional description."
184
+ },
185
+ {
186
+ name: "deprecated",
187
+ displayName: "Deprecated?",
188
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
189
+ }
190
+ ] })
191
+ },
192
+ {
193
+ name: "StructTypeDef",
194
+ description: "A struct type with named fields.",
195
+ type: o.struct({ fields: [{
196
+ name: "fields",
197
+ displayName: "Fields",
198
+ type: o.list({ elementType: o.ref({ name: "FieldDef" }) })
199
+ }] })
200
+ },
201
+ {
202
+ name: "VariantDef",
203
+ description: "Definition of a variant in a discriminated union.",
204
+ type: o.struct({ fields: [{
205
+ name: "name",
206
+ displayName: "Name",
207
+ type: o.string({}),
208
+ description: "The variant's discriminator value."
209
+ }, {
210
+ name: "type",
211
+ displayName: "Type",
212
+ type: o.ref({ name: "TypeDef" }),
213
+ description: "The variant's payload type."
214
+ }] })
215
+ },
216
+ {
217
+ name: "UnionTypeDef",
218
+ description: "A discriminated union type.",
219
+ type: o.struct({ fields: [{
220
+ name: "variants",
221
+ displayName: "Variants",
222
+ type: o.list({ elementType: o.ref({ name: "VariantDef" }) })
223
+ }] })
224
+ },
225
+ {
226
+ name: "OptionalTypeDef",
227
+ description: "Wraps a type to make it optional.",
228
+ type: o.struct({ fields: [{
229
+ name: "type",
230
+ displayName: "Type",
231
+ type: o.ref({ name: "TypeDef" }),
232
+ description: "The wrapped type."
233
+ }] })
234
+ },
235
+ {
236
+ name: "ResultTypeDef",
237
+ description: "A result type (ok or error).",
238
+ type: o.struct({ fields: [{
239
+ name: "okType",
240
+ displayName: "Ok Type",
241
+ type: o.ref({ name: "TypeDef" }),
242
+ description: "The type of the success value."
243
+ }, {
244
+ name: "errType",
245
+ displayName: "Error Type",
246
+ type: o.ref({ name: "TypeDef" }),
247
+ description: "The type of the error value."
248
+ }] })
249
+ },
250
+ {
251
+ name: "TypeRef",
252
+ description: "A reference to a named type.",
253
+ type: o.struct({ fields: [{
254
+ name: "name",
255
+ displayName: "Name",
256
+ type: o.string({}),
257
+ description: "The name of the referenced type."
258
+ }] })
259
+ },
260
+ {
261
+ name: "TypeDef",
262
+ description: "A type definition. Can be a primitive, collection, struct, union, optional, result, or reference.",
263
+ type: o.union({ variants: [
264
+ {
265
+ name: "string",
266
+ type: o.ref({ name: "StringTypeDef" })
267
+ },
268
+ {
269
+ name: "boolean",
270
+ type: o.ref({ name: "BooleanTypeDef" })
271
+ },
272
+ {
273
+ name: "integer",
274
+ type: o.ref({ name: "IntegerTypeDef" })
275
+ },
276
+ {
277
+ name: "float",
278
+ type: o.ref({ name: "FloatTypeDef" })
279
+ },
280
+ {
281
+ name: "double",
282
+ type: o.ref({ name: "DoubleTypeDef" })
283
+ },
284
+ {
285
+ name: "date",
286
+ type: o.ref({ name: "DateTypeDef" })
287
+ },
288
+ {
289
+ name: "timestamp",
290
+ type: o.ref({ name: "TimestampTypeDef" })
291
+ },
292
+ {
293
+ name: "geopoint",
294
+ type: o.ref({ name: "GeopointTypeDef" })
295
+ },
296
+ {
297
+ name: "list",
298
+ type: o.ref({ name: "ListTypeDef" })
299
+ },
300
+ {
301
+ name: "map",
302
+ type: o.ref({ name: "MapTypeDef" })
303
+ },
304
+ {
305
+ name: "struct",
306
+ type: o.ref({ name: "StructTypeDef" })
307
+ },
308
+ {
309
+ name: "union",
310
+ type: o.ref({ name: "UnionTypeDef" })
311
+ },
312
+ {
313
+ name: "optional",
314
+ type: o.ref({ name: "OptionalTypeDef" })
315
+ },
316
+ {
317
+ name: "result",
318
+ type: o.ref({ name: "ResultTypeDef" })
319
+ },
320
+ {
321
+ name: "ref",
322
+ type: o.ref({ name: "TypeRef" })
323
+ },
324
+ {
325
+ name: "attachment",
326
+ type: o.ref({ name: "AttachmentTypeDef" })
327
+ },
328
+ {
329
+ name: "objectReference",
330
+ type: o.ref({ name: "ObjectReferenceTypeDef" })
331
+ },
332
+ {
333
+ name: "unknown",
334
+ type: o.ref({ name: "UnknownTypeDef" })
335
+ }
336
+ ] })
337
+ },
338
+ {
339
+ name: "NamedTypeDef",
340
+ description: "A named type definition that can be referenced by other types.",
341
+ type: o.struct({ fields: [
342
+ {
343
+ name: "name",
344
+ displayName: "Name",
345
+ type: o.string({}),
346
+ description: "The type's name for use in code."
347
+ },
348
+ {
349
+ name: "description",
350
+ displayName: "Description",
351
+ type: o.optional({ type: o.string({}) }),
352
+ description: "Optional documentation for the type."
353
+ },
354
+ {
355
+ name: "deprecated",
356
+ displayName: "Deprecated?",
357
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
358
+ },
359
+ {
360
+ name: "type",
361
+ displayName: "Type",
362
+ type: o.ref({ name: "TypeDef" }),
363
+ description: "The type definition."
364
+ }
365
+ ] })
366
+ },
367
+ {
368
+ name: "ImageMediaType",
369
+ description: "A supported image media type.",
370
+ type: o.string({ constraint: o.StringConstraint.enum({ options: [
371
+ {
372
+ value: "image/bmp",
373
+ label: "BMP"
374
+ },
375
+ {
376
+ value: "image/tiff",
377
+ label: "TIFF"
378
+ },
379
+ {
380
+ value: "image/nitf",
381
+ label: "NITF"
382
+ },
383
+ {
384
+ value: "image/jp2",
385
+ label: "JPEG 2000"
386
+ },
387
+ {
388
+ value: "image/jpeg",
389
+ label: "JPEG"
390
+ },
391
+ {
392
+ value: "image/png",
393
+ label: "PNG"
394
+ },
395
+ {
396
+ value: "image/gif",
397
+ label: "GIF"
398
+ },
399
+ {
400
+ value: "image/svg+xml",
401
+ label: "SVG"
402
+ },
403
+ {
404
+ value: "image/webp",
405
+ label: "WebP"
406
+ }
407
+ ] }) })
408
+ },
409
+ {
410
+ name: "DimensionsConstraint",
411
+ description: "Constrains intrinsic pixel dimensions.",
412
+ type: o.struct({ fields: [{
413
+ name: "width",
414
+ displayName: "Width",
415
+ type: o.optional({ type: o.struct({ fields: [{
416
+ name: "min",
417
+ displayName: "Minimum",
418
+ type: o.optional({ type: o.integer({}) })
419
+ }, {
420
+ name: "max",
421
+ displayName: "Maximum",
422
+ type: o.optional({ type: o.integer({}) })
423
+ }] }) })
424
+ }, {
425
+ name: "height",
426
+ displayName: "Height",
427
+ type: o.optional({ type: o.struct({ fields: [{
428
+ name: "min",
429
+ displayName: "Minimum",
430
+ type: o.optional({ type: o.integer({}) })
431
+ }, {
432
+ name: "max",
433
+ displayName: "Maximum",
434
+ type: o.optional({ type: o.integer({}) })
435
+ }] }) })
436
+ }] })
437
+ },
438
+ {
439
+ name: "ImageAttachmentConstraint",
440
+ description: "Constraints specific to image attachments.",
441
+ type: o.struct({ fields: [{
442
+ name: "mediaTypes",
443
+ displayName: "Media types",
444
+ type: o.optional({ type: o.list({ elementType: o.ref({ name: "ImageMediaType" }) }) })
445
+ }, {
446
+ name: "dimensions",
447
+ displayName: "Dimensions",
448
+ type: o.optional({ type: o.ref({ name: "DimensionsConstraint" }) })
449
+ }] })
450
+ },
451
+ {
452
+ name: "AttachmentContentConstraint",
453
+ description: "Content-specific attachment constraints.",
454
+ type: o.union({ variants: [{
455
+ name: "image",
456
+ type: o.ref({ name: "ImageAttachmentConstraint" })
457
+ }] })
458
+ },
459
+ {
460
+ name: "AttachmentConstraint",
461
+ description: "Constraints applied to an attachment.",
462
+ type: o.struct({ fields: [{
463
+ name: "size",
464
+ displayName: "Size",
465
+ type: o.optional({ type: o.struct({ fields: [{
466
+ name: "min",
467
+ displayName: "Minimum",
468
+ type: o.optional({ type: o.double({}) })
469
+ }, {
470
+ name: "max",
471
+ displayName: "Maximum",
472
+ type: o.optional({ type: o.double({}) })
473
+ }] }) })
474
+ }, {
475
+ name: "content",
476
+ displayName: "Content",
477
+ type: o.optional({ type: o.ref({ name: "AttachmentContentConstraint" }) })
478
+ }] })
479
+ },
480
+ {
481
+ name: "AttachmentTypeDef",
482
+ description: "A file handle with optional constraints.",
483
+ type: o.struct({ fields: [{
484
+ name: "constraint",
485
+ displayName: "Constraint",
486
+ type: o.optional({ type: o.ref({ name: "AttachmentConstraint" }) })
487
+ }, {
488
+ name: "meta",
489
+ displayName: "Meta",
490
+ type: o.optional({ type: o.map({
491
+ keyType: o.string({}),
492
+ valueType: o.unknown({})
493
+ }) })
494
+ }] })
495
+ },
496
+ {
497
+ name: "ObjectReferenceTypeDef",
498
+ description: "A reference to an ontology object type.",
499
+ type: o.struct({ fields: [{
500
+ name: "objectType",
501
+ displayName: "Object type",
502
+ type: o.string({}),
503
+ description: "The referenced object type name."
504
+ }] })
505
+ },
506
+ {
507
+ name: "PropertyDef",
508
+ description: "A property on an Object type.",
509
+ type: o.struct({ fields: [
510
+ {
511
+ name: "name",
512
+ displayName: "Name",
513
+ type: o.string({}),
514
+ description: "The property's name."
515
+ },
516
+ {
517
+ name: "displayName",
518
+ displayName: "Display name",
519
+ type: o.string({}),
520
+ description: "Human-readable name."
521
+ },
522
+ {
523
+ name: "type",
524
+ displayName: "Type",
525
+ type: o.ref({ name: "TypeDef" }),
526
+ description: "The property's type."
527
+ },
528
+ {
529
+ name: "description",
530
+ displayName: "Description",
531
+ type: o.optional({ type: o.string({}) }),
532
+ description: "Optional description."
533
+ },
534
+ {
535
+ name: "deprecated",
536
+ displayName: "Deprecated?",
537
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
538
+ }
539
+ ] })
540
+ },
541
+ {
542
+ name: "ObjectTypeDef",
543
+ description: "An object type in the ontology.",
544
+ type: o.struct({ fields: [
545
+ {
546
+ name: "name",
547
+ displayName: "Name",
548
+ type: o.string({}),
549
+ description: "The object type's programmatic name."
550
+ },
551
+ {
552
+ name: "displayName",
553
+ displayName: "Display name",
554
+ type: o.string({}),
555
+ description: "Human-readable name."
556
+ },
557
+ {
558
+ name: "pluralDisplayName",
559
+ displayName: "Plural display name",
560
+ type: o.string({})
561
+ },
562
+ {
563
+ name: "primaryKey",
564
+ displayName: "Primary key",
565
+ type: o.string({}),
566
+ description: "The name of the property that serves as primary key."
567
+ },
568
+ {
569
+ name: "title",
570
+ displayName: "Title",
571
+ type: o.optional({ type: o.string({}) }),
572
+ description: "The optional property name used as the human-readable title for an object."
573
+ },
574
+ {
575
+ name: "icon",
576
+ displayName: "Icon",
577
+ type: o.optional({ type: o.ref({ name: "IconDescriptor" }) }),
578
+ description: "Optional portable icon descriptor."
579
+ },
580
+ {
581
+ name: "color",
582
+ displayName: "Color",
583
+ type: o.optional({ type: o.string({}) }),
584
+ description: "Optional display color independent of the icon."
585
+ },
586
+ {
587
+ name: "properties",
588
+ displayName: "Properties",
589
+ type: o.list({ elementType: o.ref({ name: "PropertyDef" }) }),
590
+ description: "The object type's propertieo."
591
+ },
592
+ {
593
+ name: "description",
594
+ displayName: "Description",
595
+ type: o.optional({ type: o.string({}) }),
596
+ description: "Optional description."
597
+ },
598
+ {
599
+ name: "deprecated",
600
+ displayName: "Deprecated?",
601
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
602
+ }
603
+ ] })
604
+ },
605
+ {
606
+ name: "LinkTypeSideDef",
607
+ type: o.struct({ fields: [
608
+ {
609
+ name: "objectType",
610
+ displayName: "Object type",
611
+ type: o.string({})
612
+ },
613
+ {
614
+ name: "name",
615
+ displayName: "Name",
616
+ type: o.string({})
617
+ },
618
+ {
619
+ name: "displayName",
620
+ displayName: "Display name",
621
+ type: o.string({})
622
+ }
623
+ ] })
624
+ },
625
+ {
626
+ name: "LinkCardinality",
627
+ description: "The cardinality of a link from the source's perspective.",
628
+ type: o.string({ constraint: o.StringConstraint.enum({ options: [{
629
+ value: "one",
630
+ label: "One"
631
+ }, {
632
+ value: "many",
633
+ label: "Many"
634
+ }] }) })
635
+ },
636
+ {
637
+ name: "LinkTypeDef",
638
+ description: "A relationship between two object types.",
639
+ type: o.struct({ fields: [
640
+ {
641
+ name: "id",
642
+ displayName: "ID",
643
+ type: o.string({})
644
+ },
645
+ {
646
+ name: "source",
647
+ displayName: "Source",
648
+ type: o.ref({ name: "LinkTypeSideDef" })
649
+ },
650
+ {
651
+ name: "target",
652
+ displayName: "Target",
653
+ type: o.ref({ name: "LinkTypeSideDef" })
654
+ },
655
+ {
656
+ name: "foreignKey",
657
+ displayName: "Foreign key",
658
+ type: o.string({}),
659
+ description: "The foreign key on the source."
660
+ },
661
+ {
662
+ name: "cardinality",
663
+ displayName: "Cardinality",
664
+ type: o.string({ constraint: o.StringConstraint.enum({ options: [{
665
+ value: "one",
666
+ label: "One"
667
+ }, {
668
+ value: "many",
669
+ label: "Many"
670
+ }] }) }),
671
+ description: "How many sources are linked to the target."
672
+ }
673
+ ] })
674
+ },
675
+ {
676
+ name: "ActionParameterDef",
677
+ description: "A parameter of an Action type.",
678
+ type: o.struct({ fields: [
679
+ {
680
+ name: "name",
681
+ displayName: "Name",
682
+ type: o.string({}),
683
+ description: "The parameter's name."
684
+ },
685
+ {
686
+ name: "displayName",
687
+ displayName: "Display name",
688
+ type: o.string({}),
689
+ description: "Human-readable name."
690
+ },
691
+ {
692
+ name: "type",
693
+ displayName: "Type",
694
+ type: o.ref({ name: "TypeDef" }),
695
+ description: "The parameter's type."
696
+ },
697
+ {
698
+ name: "description",
699
+ displayName: "Description",
700
+ type: o.optional({ type: o.string({}) }),
701
+ description: "Optional description."
702
+ },
703
+ {
704
+ name: "deprecated",
705
+ displayName: "Deprecated?",
706
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
707
+ },
708
+ {
709
+ name: "defaultValue",
710
+ displayName: "Default value",
711
+ type: o.optional({ type: o.ref({ name: "Expression" }) }),
712
+ description: "The expression used when the caller does not provide a value."
713
+ }
714
+ ] })
715
+ },
716
+ {
717
+ name: "InputReferenceExpression",
718
+ description: "Reads a named input from the root expression scope.",
719
+ type: o.struct({ fields: [{
720
+ name: "name",
721
+ displayName: "Name",
722
+ type: o.string({})
723
+ }] })
724
+ },
725
+ {
726
+ name: "LocalReferenceExpression",
727
+ description: "Reads a named lexically scoped expression binding.",
728
+ type: o.struct({ fields: [{
729
+ name: "name",
730
+ displayName: "Name",
731
+ type: o.string({})
732
+ }] })
733
+ },
734
+ {
735
+ name: "ContextReferenceExpression",
736
+ description: "Reads a named value from the expression context.",
737
+ type: o.struct({ fields: [{
738
+ name: "name",
739
+ displayName: "Name",
740
+ type: o.string({})
741
+ }] })
742
+ },
743
+ {
744
+ name: "GetAtExpression",
745
+ description: "Reads a structural path from a source expression.",
746
+ type: o.struct({ fields: [{
747
+ name: "source",
748
+ displayName: "Source",
749
+ type: o.ref({ name: "Expression" })
750
+ }, {
751
+ name: "path",
752
+ displayName: "Path",
753
+ type: o.list({ elementType: o.string({}) })
754
+ }] })
755
+ },
756
+ {
757
+ name: "ObjectLookupExpression",
758
+ description: "Resolves an object reference to its ontology object.",
759
+ type: o.struct({ fields: [{
760
+ name: "reference",
761
+ displayName: "Reference",
762
+ type: o.ref({ name: "Expression" })
763
+ }] })
764
+ },
765
+ {
766
+ name: "LinkHopExpression",
767
+ description: "Follows one named to-one ontology link from a source object.",
768
+ type: o.struct({ fields: [{
769
+ name: "source",
770
+ displayName: "Source",
771
+ type: o.ref({ name: "Expression" })
772
+ }, {
773
+ name: "link",
774
+ displayName: "Link",
775
+ type: o.string({})
776
+ }] })
777
+ },
778
+ {
779
+ name: "StructExpressionField",
780
+ description: "A named field constructed by a struct expression.",
781
+ type: o.struct({ fields: [{
782
+ name: "name",
783
+ displayName: "Name",
784
+ type: o.string({})
785
+ }, {
786
+ name: "value",
787
+ displayName: "Value",
788
+ type: o.ref({ name: "Expression" })
789
+ }] })
790
+ },
791
+ {
792
+ name: "StructExpression",
793
+ description: "Constructs a struct value from field expressions.",
794
+ type: o.struct({ fields: [{
795
+ name: "fields",
796
+ displayName: "Fields",
797
+ type: o.list({ elementType: o.ref({ name: "StructExpressionField" }) })
798
+ }] })
799
+ },
800
+ {
801
+ name: "MapExpression",
802
+ description: "Maps each element of a list to a new value.",
803
+ type: o.struct({ fields: [
804
+ {
805
+ name: "source",
806
+ displayName: "Source",
807
+ type: o.ref({ name: "Expression" })
808
+ },
809
+ {
810
+ name: "binding",
811
+ displayName: "Binding",
812
+ type: o.string({})
813
+ },
814
+ {
815
+ name: "body",
816
+ displayName: "Body",
817
+ type: o.ref({ name: "Expression" })
818
+ }
819
+ ] })
820
+ },
821
+ {
822
+ name: "UuidExpression",
823
+ description: "Generates a UUID value.",
824
+ type: o.struct({ fields: [] })
825
+ },
826
+ {
827
+ name: "NowExpression",
828
+ description: "Returns the current timestamp.",
829
+ type: o.struct({ fields: [] })
830
+ },
831
+ {
832
+ name: "LiteralExpression",
833
+ description: "A static literal value.",
834
+ type: o.struct({ fields: [{
835
+ name: "value",
836
+ displayName: "Value",
837
+ type: o.unknown({}),
838
+ description: "The literal value."
839
+ }] })
840
+ },
841
+ {
842
+ name: "Expression",
843
+ description: "An expression that resolves to a value.",
844
+ type: o.union({ variants: [
845
+ {
846
+ name: "inputReference",
847
+ type: o.ref({ name: "InputReferenceExpression" })
848
+ },
849
+ {
850
+ name: "contextReference",
851
+ type: o.ref({ name: "ContextReferenceExpression" })
852
+ },
853
+ {
854
+ name: "localReference",
855
+ type: o.ref({ name: "LocalReferenceExpression" })
856
+ },
857
+ {
858
+ name: "getAt",
859
+ type: o.ref({ name: "GetAtExpression" })
860
+ },
861
+ {
862
+ name: "objectLookup",
863
+ type: o.ref({ name: "ObjectLookupExpression" })
864
+ },
865
+ {
866
+ name: "linkHop",
867
+ type: o.ref({ name: "LinkHopExpression" })
868
+ },
869
+ {
870
+ name: "struct",
871
+ type: o.ref({ name: "StructExpression" })
872
+ },
873
+ {
874
+ name: "map",
875
+ type: o.ref({ name: "MapExpression" })
876
+ },
877
+ {
878
+ name: "uuid",
879
+ type: o.ref({ name: "UuidExpression" })
880
+ },
881
+ {
882
+ name: "now",
883
+ type: o.ref({ name: "NowExpression" })
884
+ },
885
+ {
886
+ name: "literal",
887
+ type: o.ref({ name: "LiteralExpression" })
888
+ }
889
+ ] })
890
+ },
891
+ {
892
+ name: "PropertyAssignment",
893
+ description: "Assigns an expression to a property path on an object written by an action.",
894
+ type: o.struct({ fields: [{
895
+ name: "property",
896
+ displayName: "Property",
897
+ type: o.list({ elementType: o.string({}) })
898
+ }, {
899
+ name: "value",
900
+ displayName: "Value",
901
+ type: o.ref({ name: "Expression" })
902
+ }] })
903
+ },
904
+ {
905
+ name: "CreateObjectActionLogicStep",
906
+ description: "Creates an object and assigns property values.",
907
+ type: o.struct({ fields: [{
908
+ name: "objectType",
909
+ displayName: "Object type",
910
+ type: o.string({})
911
+ }, {
912
+ name: "values",
913
+ displayName: "Values",
914
+ type: o.list({ elementType: o.ref({ name: "PropertyAssignment" }) })
915
+ }] })
916
+ },
917
+ {
918
+ name: "UpdateObjectActionLogicStep",
919
+ description: "Updates a referenced object and assigns property values.",
920
+ type: o.struct({ fields: [{
921
+ name: "object",
922
+ displayName: "Object",
923
+ type: o.ref({ name: "InputReferenceExpression" })
924
+ }, {
925
+ name: "values",
926
+ displayName: "Values",
927
+ type: o.list({ elementType: o.ref({ name: "PropertyAssignment" }) })
928
+ }] })
929
+ },
930
+ {
931
+ name: "DeleteObjectActionLogicStep",
932
+ description: "Deletes a referenced object.",
933
+ type: o.struct({ fields: [{
934
+ name: "object",
935
+ displayName: "Object",
936
+ type: o.ref({ name: "InputReferenceExpression" })
937
+ }] })
938
+ },
939
+ {
940
+ name: "ActionLogicStep",
941
+ description: "A logic step performed by an action.",
942
+ type: o.union({ variants: [
943
+ {
944
+ name: "createObject",
945
+ type: o.ref({ name: "CreateObjectActionLogicStep" })
946
+ },
947
+ {
948
+ name: "updateObject",
949
+ type: o.ref({ name: "UpdateObjectActionLogicStep" })
950
+ },
951
+ {
952
+ name: "deleteObject",
953
+ type: o.ref({ name: "DeleteObjectActionLogicStep" })
954
+ }
955
+ ] })
956
+ },
957
+ {
958
+ name: "ActionTypeDef",
959
+ description: "An action type in the ontology.",
960
+ type: o.struct({ fields: [
961
+ {
962
+ name: "meta",
963
+ displayName: "Meta",
964
+ type: o.optional({ type: o.map({
965
+ keyType: o.string({}),
966
+ valueType: o.unknown({})
967
+ }) }),
968
+ description: "Provider-specific metadata used to execute this action."
969
+ },
970
+ {
971
+ name: "name",
972
+ displayName: "Name",
973
+ type: o.string({}),
974
+ description: "The object type's programmatic name."
975
+ },
976
+ {
977
+ name: "displayName",
978
+ displayName: "Display name",
979
+ type: o.string({}),
980
+ description: "Human-readable name."
981
+ },
982
+ {
983
+ name: "icon",
984
+ displayName: "Icon",
985
+ type: o.optional({ type: o.ref({ name: "IconDescriptor" }) }),
986
+ description: "Optional portable icon descriptor."
987
+ },
988
+ {
989
+ name: "color",
990
+ displayName: "Color",
991
+ type: o.optional({ type: o.string({}) }),
992
+ description: "Optional display color independent of the icon."
993
+ },
994
+ {
995
+ name: "parameters",
996
+ displayName: "Parameters",
997
+ type: o.list({ elementType: o.ref({ name: "ActionParameterDef" }) }),
998
+ description: "The action type's parametero."
999
+ },
1000
+ {
1001
+ name: "logic",
1002
+ displayName: "Logic",
1003
+ type: o.list({ elementType: o.ref({ name: "ActionLogicStep" }) }),
1004
+ description: "The action type's local logic stepo."
1005
+ },
1006
+ {
1007
+ name: "description",
1008
+ displayName: "Description",
1009
+ type: o.optional({ type: o.string({}) }),
1010
+ description: "Optional description."
1011
+ },
1012
+ {
1013
+ name: "deprecated",
1014
+ displayName: "Deprecated?",
1015
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
1016
+ }
1017
+ ] })
1018
+ },
1019
+ {
1020
+ name: "QueryFunctionParameterDef",
1021
+ description: "A parameter accepted by a query function type.",
1022
+ type: o.struct({ fields: [
1023
+ {
1024
+ name: "name",
1025
+ displayName: "Name",
1026
+ type: o.string({}),
1027
+ description: "The query function parameter's programmatic name."
1028
+ },
1029
+ {
1030
+ name: "displayName",
1031
+ displayName: "Display name",
1032
+ type: o.string({}),
1033
+ description: "Human-readable name."
1034
+ },
1035
+ {
1036
+ name: "type",
1037
+ displayName: "Type",
1038
+ type: o.ref({ name: "TypeDef" })
1039
+ },
1040
+ {
1041
+ name: "description",
1042
+ displayName: "Description",
1043
+ type: o.optional({ type: o.string({}) }),
1044
+ description: "Optional description."
1045
+ },
1046
+ {
1047
+ name: "deprecated",
1048
+ displayName: "Deprecated?",
1049
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
1050
+ }
1051
+ ] })
1052
+ },
1053
+ {
1054
+ name: "QueryFunctionTypeDef",
1055
+ description: "A runnable query function type in the ontology.",
1056
+ type: o.struct({ fields: [
1057
+ {
1058
+ name: "name",
1059
+ displayName: "Name",
1060
+ type: o.string({}),
1061
+ description: "The query function type's programmatic name."
1062
+ },
1063
+ {
1064
+ name: "displayName",
1065
+ displayName: "Display name",
1066
+ type: o.string({}),
1067
+ description: "Human-readable name."
1068
+ },
1069
+ {
1070
+ name: "parameters",
1071
+ displayName: "Parameters",
1072
+ type: o.list({ elementType: o.ref({ name: "QueryFunctionParameterDef" }) }),
1073
+ description: "The query function type's parameters."
1074
+ },
1075
+ {
1076
+ name: "returnType",
1077
+ displayName: "Return type",
1078
+ type: o.ref({ name: "TypeDef" }),
1079
+ description: "The query function type's return type."
1080
+ },
1081
+ {
1082
+ name: "description",
1083
+ displayName: "Description",
1084
+ type: o.optional({ type: o.string({}) }),
1085
+ description: "Optional description."
1086
+ },
1087
+ {
1088
+ name: "deprecated",
1089
+ displayName: "Deprecated?",
1090
+ type: o.optional({ type: o.ref({ name: "Deprecation" }) })
1091
+ }
1092
+ ] })
1093
+ },
1094
+ {
1095
+ name: "MoveLensOp",
1096
+ description: "Moves a property from one path to another.",
1097
+ type: o.struct({ fields: [{
1098
+ name: "from",
1099
+ displayName: "From",
1100
+ type: o.list({ elementType: o.string({}) })
1101
+ }, {
1102
+ name: "to",
1103
+ displayName: "To",
1104
+ type: o.list({ elementType: o.string({}) })
1105
+ }] })
1106
+ },
1107
+ {
1108
+ name: "SelectLensOp",
1109
+ description: "Retains only the selected top-level properties.",
1110
+ type: o.struct({ fields: [{
1111
+ name: "properties",
1112
+ displayName: "Properties",
1113
+ type: o.list({ elementType: o.string({}) })
1114
+ }] })
1115
+ },
1116
+ {
1117
+ name: "LensOp",
1118
+ description: "One schema and value transformation operation.",
1119
+ type: o.union({ variants: [{
1120
+ name: "move",
1121
+ type: o.ref({ name: "MoveLensOp" })
1122
+ }, {
1123
+ name: "select",
1124
+ type: o.ref({ name: "SelectLensOp" })
1125
+ }] })
1126
+ },
1127
+ {
1128
+ name: "Lens",
1129
+ description: "An ordered sequence of source-to-target transformation operations.",
1130
+ type: o.struct({ fields: [{
1131
+ name: "operations",
1132
+ displayName: "Operations",
1133
+ type: o.list({ elementType: o.ref({ name: "LensOp" }) })
1134
+ }] })
1135
+ },
1136
+ {
1137
+ name: "OntologyIR",
1138
+ description: "The root ontology definition containing all type definitions.",
1139
+ type: o.struct({ fields: [
1140
+ {
1141
+ name: "types",
1142
+ displayName: "Named types",
1143
+ type: o.list({ elementType: o.ref({ name: "NamedTypeDef" }) }),
1144
+ description: "Named, reusable value types."
1145
+ },
1146
+ {
1147
+ name: "objectTypes",
1148
+ displayName: "Object types",
1149
+ type: o.list({ elementType: o.ref({ name: "ObjectTypeDef" }) }),
1150
+ description: "Object type definitions."
1151
+ },
1152
+ {
1153
+ name: "linkTypes",
1154
+ displayName: "Link types",
1155
+ type: o.list({ elementType: o.ref({ name: "LinkTypeDef" }) }),
1156
+ description: "Relationship definitions between object types."
1157
+ },
1158
+ {
1159
+ name: "actionTypes",
1160
+ displayName: "Action types",
1161
+ type: o.list({ elementType: o.ref({ name: "ActionTypeDef" }) }),
1162
+ description: "Action type definitions."
1163
+ },
1164
+ {
1165
+ name: "queryFunctionTypes",
1166
+ displayName: "Query function types",
1167
+ type: o.list({ elementType: o.ref({ name: "QueryFunctionTypeDef" }) }),
1168
+ description: "Query function type definitions."
1169
+ },
1170
+ {
1171
+ name: "contextType",
1172
+ displayName: "Context type",
1173
+ type: o.optional({ type: o.ref({ name: "TypeDef" }) }),
1174
+ description: "Optional typed execution context available to ontology expressions."
1175
+ }
1176
+ ] })
1177
+ }
1178
+ ],
1179
+ objectTypes: [],
1180
+ linkTypes: [],
1181
+ actionTypes: [],
1182
+ queryFunctionTypes: []
1345
1183
  };
1184
+ //#endregion
1185
+ export { schema_default as default };
1186
+
1346
1187
  //# sourceMappingURL=schema.js.map