@standards/schema 1.0.0-alpha.446 → 1.0.0-alpha.447

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 (315) hide show
  1. package/dist/access-levels-BWuVeyAD.js +2 -0
  2. package/dist/access-levels-CpH_EGwX.mjs +2 -0
  3. package/dist/access-output.schema-DdveaHhd.js +2 -0
  4. package/dist/access-output.schema-DrsybmDW.mjs +2 -0
  5. package/dist/access.operations-Bfr0Hr5a.mjs +2 -0
  6. package/dist/access.operations-Ta7Yti9-.js +2 -0
  7. package/dist/actors-D6cncaeM.mjs +2 -0
  8. package/dist/actors-DtSC4jD7.js +2 -0
  9. package/dist/actors.operations-BRdW-IBc.js +2 -0
  10. package/dist/actors.operations-SAbl_3vt.mjs +2 -0
  11. package/dist/admin-tenant-CnP_XZGi.js +2 -0
  12. package/dist/admin-tenant-DJ_Vt8X6.mjs +2 -0
  13. package/dist/agent-appearance.schema-5maenk3l.mjs +2 -0
  14. package/dist/agent-appearance.schema-Azj0Y4h4.js +2 -0
  15. package/dist/agent-approvals.operations-BXtDpYb9.js +2 -0
  16. package/dist/agent-approvals.operations-DrEi2amV.mjs +2 -0
  17. package/dist/agent-definitions.operations-CkfVj_vQ.mjs +2 -0
  18. package/dist/agent-definitions.operations-Dah-26La.js +2 -0
  19. package/dist/agent-fronts.operations-Q92n0JZN.js +2 -0
  20. package/dist/agent-fronts.operations-ZQUdWd_4.mjs +2 -0
  21. package/dist/agent-memory.operations-B0nLFWs9.js +2 -0
  22. package/dist/agent-memory.operations-C25OLsqq.mjs +2 -0
  23. package/dist/agent-message.schema-DwQVDXLy.mjs +2 -0
  24. package/dist/agent-message.schema-SmA4ydqf.js +2 -0
  25. package/dist/agent-messages.operations-Aa1vk7xu.mjs +2 -0
  26. package/dist/agent-messages.operations-CCXX8cuW.js +2 -0
  27. package/dist/agent-output.schema-8ajlE5_g.js +2 -0
  28. package/dist/agent-output.schema-BQsbh8pJ.mjs +2 -0
  29. package/dist/agent-runs.operations-BVNctI5C.js +2 -0
  30. package/dist/agent-runs.operations-Gp-UpNB9.mjs +2 -0
  31. package/dist/agent-schemas-52_rE61D.mjs +2 -0
  32. package/dist/agent-schemas-BmTE5O3J.js +2 -0
  33. package/dist/agent-session-list-cursor-BFnecxvH.js +2 -0
  34. package/dist/agent-session-list-cursor-cpmpINuz.mjs +2 -0
  35. package/dist/agent-sessions.operations-B8yM9St8.mjs +2 -0
  36. package/dist/agent-sessions.operations-Bu04RCgZ.js +2 -0
  37. package/dist/agent-triggers.operations-0tOTD7Vh.js +2 -0
  38. package/dist/agent-triggers.operations-BJz4_xUq.mjs +2 -0
  39. package/dist/ai-dictation-BJvVgzjC.mjs +2 -0
  40. package/dist/ai-dictation-zV6sAESe.js +2 -0
  41. package/dist/ai-output.schema-CQKoZCbn.mjs +2 -0
  42. package/dist/ai-output.schema-DHm6HAfH.js +2 -0
  43. package/dist/ai.operations--Cx0o8wQ.mjs +2 -0
  44. package/dist/ai.operations-DAKLy-dv.js +2 -0
  45. package/dist/all-BCAZCVxV.mjs +4 -0
  46. package/dist/all-PUaQuM_2.js +4 -0
  47. package/dist/api/http.d.mts +6 -0
  48. package/dist/api/http.d.ts +6 -0
  49. package/dist/api/http.js +2 -0
  50. package/dist/api/http.mjs +2 -0
  51. package/dist/api/index.d.mts +10 -26963
  52. package/dist/api/index.d.ts +10 -26963
  53. package/dist/api/index.js +1 -1
  54. package/dist/api/index.mjs +1 -1
  55. package/dist/api/wire.d.mts +93 -0
  56. package/dist/api/wire.d.ts +93 -0
  57. package/dist/api/wire.js +2 -0
  58. package/dist/api/wire.mjs +2 -0
  59. package/dist/api-keys-C9vGsnf5.mjs +2 -0
  60. package/dist/api-keys-DrqoTFFb.js +2 -0
  61. package/dist/api-keys.operations-BbAn06Vn.mjs +2 -0
  62. package/dist/api-keys.operations-Dtiv6rWJ.js +2 -0
  63. package/dist/app-operation-groups-B0GLoqHi.d.ts +26792 -0
  64. package/dist/app-operation-groups-CG6l7J3l.d.mts +26791 -0
  65. package/dist/appearance-C0Mh9jK2.mjs +2 -0
  66. package/dist/appearance-DrCaK9XJ.js +2 -0
  67. package/dist/artifacts.operations-D6aBIbPf.mjs +2 -0
  68. package/dist/artifacts.operations-DZ60VQ3Q.js +2 -0
  69. package/dist/attribute-validators-D9vS6qK9.mjs +11 -0
  70. package/dist/attribute-validators-j-HiW0On.js +11 -0
  71. package/dist/attributes-B2wmzoDI.js +2 -0
  72. package/dist/attributes-DYUkML5S.mjs +2 -0
  73. package/dist/audit-Cjoaib0c.js +2 -0
  74. package/dist/audit-jbBwdDtV.mjs +2 -0
  75. package/dist/audit.operations-CzoEnsuj.js +2 -0
  76. package/dist/audit.operations-R7llfS_r.mjs +2 -0
  77. package/dist/browser-profile-output.schema-ChhKkoin.mjs +2 -0
  78. package/dist/browser-profile-output.schema-DOGfwtLW.js +2 -0
  79. package/dist/browser-profiles.operations-BBdmypd0.js +2 -0
  80. package/dist/browser-profiles.operations-CUJaaU8y.mjs +2 -0
  81. package/dist/bundle-output.schema-Ck4tpVVV.js +2 -0
  82. package/dist/bundle-output.schema-UAlU8-CS.mjs +2 -0
  83. package/dist/bundles.operations-CplZLAxi.js +2 -0
  84. package/dist/bundles.operations-CrgrLCAC.mjs +2 -0
  85. package/dist/cli-login.operations-C1KbNeHA.js +2 -0
  86. package/dist/cli-login.operations-cUUchS4E.mjs +2 -0
  87. package/dist/connected-apps.operations-BavndGSL.js +2 -0
  88. package/dist/connected-apps.operations-DDDkIn_k.mjs +2 -0
  89. package/dist/connectors.operations-CR20Yhbf.mjs +2 -0
  90. package/dist/connectors.operations-CWW21SJJ.js +2 -0
  91. package/dist/consumer-variables.operations-Cc90oB8D.mjs +2 -0
  92. package/dist/consumer-variables.operations-DY9v4AY-.js +2 -0
  93. package/dist/decisions-CFoL49Jb.js +2 -0
  94. package/dist/decisions-DNvAXetH.mjs +2 -0
  95. package/dist/decisions.operations-BmQnmIwC.js +2 -0
  96. package/dist/decisions.operations-Dx-QEhXt.mjs +2 -0
  97. package/dist/device-channel-BQ8SMmLM.js +2 -0
  98. package/dist/device-channel-CmrDyl1C.mjs +2 -0
  99. package/dist/devices.operations-BJG7PBgi.js +2 -0
  100. package/dist/devices.operations-D4vKQtuv.mjs +2 -0
  101. package/dist/dictation.operations-BqbZnhBo.mjs +2 -0
  102. package/dist/dictation.operations-D0JxX5Ut.js +2 -0
  103. package/dist/documents-BrgkFEjS.mjs +2 -0
  104. package/dist/documents-KBlpK-vw.js +2 -0
  105. package/dist/documents.operations-BOstEBEu.mjs +2 -0
  106. package/dist/documents.operations-eY2Z-5Ss.js +2 -0
  107. package/dist/email-classification-DEHTSbVv.js +2 -0
  108. package/dist/email-classification-Jk8hARsL.mjs +2 -0
  109. package/dist/email-classification.operations-BBmw-sma.mjs +2 -0
  110. package/dist/email-classification.operations-C0nSe3CD.js +2 -0
  111. package/dist/email-classification.schema-B2RE9-Sz.js +2 -0
  112. package/dist/email-classification.schema-CzlbP3hF.mjs +2 -0
  113. package/dist/emails-COHIot9L.mjs +2 -0
  114. package/dist/emails-scn5zKZZ.js +2 -0
  115. package/dist/emails.operations-Bqd4AR-o.mjs +2 -0
  116. package/dist/emails.operations-nOPoU4qW.js +2 -0
  117. package/dist/embeddings-admin.operations-Cf12v9Y6.mjs +2 -0
  118. package/dist/embeddings-admin.operations-DN0wBZuY.js +2 -0
  119. package/dist/env-vars-C6h8XxDu.js +2 -0
  120. package/dist/env-vars-jepH5HKe.mjs +2 -0
  121. package/dist/env-vars.operations-CtwkPw4o.mjs +2 -0
  122. package/dist/env-vars.operations-DxgfKwIg.js +2 -0
  123. package/dist/environment-output.schema-BI9aKP85.js +2 -0
  124. package/dist/environment-output.schema-BLWKrRV9.mjs +2 -0
  125. package/dist/environments-Cjl7Rn63.js +2 -0
  126. package/dist/environments-NJ6AU6QA.mjs +2 -0
  127. package/dist/environments.operations-DOC5sPZj.js +2 -0
  128. package/dist/environments.operations-sRFx_6kV.mjs +2 -0
  129. package/dist/{exceptions-CxTJ-9hJ.d.ts → exceptions-Csd70p_-.d.ts} +9 -0
  130. package/dist/{exceptions-BjtmXIip.d.mts → exceptions-gxRQUb2w.d.mts} +9 -0
  131. package/dist/exceptions.d.mts +1 -1
  132. package/dist/exceptions.d.ts +1 -1
  133. package/dist/exceptions.js +1 -1
  134. package/dist/exceptions.mjs +1 -1
  135. package/dist/files-BX-FFR4x.js +2 -0
  136. package/dist/files-sTU3trJX.mjs +2 -0
  137. package/dist/files.operations-ByEQ45rC.mjs +2 -0
  138. package/dist/files.operations-DvsUX624.js +2 -0
  139. package/dist/folders.operations-DjhIHfPy.mjs +2 -0
  140. package/dist/folders.operations-Dn9m5HgA.js +2 -0
  141. package/dist/forms.operations-DTe1LrLl.js +2 -0
  142. package/dist/forms.operations-HHnD9fWG.mjs +2 -0
  143. package/dist/geocoding.operations-C_22EAvv.mjs +2 -0
  144. package/dist/geocoding.operations-DI5T-bXQ.js +2 -0
  145. package/dist/human-request-BuTNChfy.js +2 -0
  146. package/dist/human-request-D386w0xS.mjs +2 -0
  147. package/dist/image-generation-JBLnNqb4.js +2 -0
  148. package/dist/image-generation-RBIQzj-e.mjs +2 -0
  149. package/dist/{index-BoesrnBX.d.ts → index-O2gvfWg3.d.ts} +250 -545
  150. package/dist/index.d.mts +4 -4
  151. package/dist/index.d.ts +4 -4
  152. package/dist/index.js +2 -2
  153. package/dist/index.mjs +2 -2
  154. package/dist/input--LxhjMnL.js +2 -0
  155. package/dist/input-De22VS-9.mjs +2 -0
  156. package/dist/input-g4tO6Jkf.d.ts +82 -0
  157. package/dist/limits-C23L0g-a.js +2 -0
  158. package/dist/limits-DVUX5n4b.mjs +2 -0
  159. package/dist/linked-records-BjT-7LOU.mjs +2 -0
  160. package/dist/linked-records-CzzwaP1w.js +2 -0
  161. package/dist/logos.operations-Cof7YcyL.js +2 -0
  162. package/dist/logos.operations-DMp3Fv_i.mjs +2 -0
  163. package/dist/machines-BgWsvhyM.js +2 -0
  164. package/dist/machines-BwCQPG_y.mjs +2 -0
  165. package/dist/machines.operations-DuXeEb9-.js +2 -0
  166. package/dist/machines.operations-L17tNtr7.mjs +2 -0
  167. package/dist/mail-drafts.operations-BKMuIsFk.js +2 -0
  168. package/dist/mail-drafts.operations-CM-7tBgp.mjs +2 -0
  169. package/dist/mail-signatures.operations-maphvktU.js +2 -0
  170. package/dist/mail-signatures.operations-u61NViKI.mjs +2 -0
  171. package/dist/mcp-output.schema-B4xXiOjp.mjs +2 -0
  172. package/dist/mcp-output.schema-DWfW_GXR.js +2 -0
  173. package/dist/mcp-servers.operations-BBrpVqtv.mjs +2 -0
  174. package/dist/mcp-servers.operations-DKv3os6D.js +2 -0
  175. package/dist/meetings-C3LSWdAv.js +2 -0
  176. package/dist/meetings-ZzFZppmw.mjs +2 -0
  177. package/dist/meetings-admin.operations-CqOdAuEY.js +2 -0
  178. package/dist/meetings-admin.operations-DlBEkQ3A.mjs +2 -0
  179. package/dist/meetings.operations-CEodnE61.js +2 -0
  180. package/dist/meetings.operations-C_S4qoij.mjs +2 -0
  181. package/dist/models.operations-B-KLcOff.mjs +2 -0
  182. package/dist/models.operations-D1mh86qV.js +2 -0
  183. package/dist/move-impact.schema-CIhGrFEu.mjs +2 -0
  184. package/dist/move-impact.schema-Ur5k3_PI.js +2 -0
  185. package/dist/my-preferences-CtaRodws.js +2 -0
  186. package/dist/my-preferences-DLy4chuc.mjs +2 -0
  187. package/dist/news-feed.schema-BXcS3qnp.js +2 -0
  188. package/dist/news-feed.schema-uNDJX8lC.mjs +2 -0
  189. package/dist/news.operations-Ct__1yeE.js +2 -0
  190. package/dist/news.operations-bv6Xi29p.mjs +2 -0
  191. package/dist/oauth.operations-BkKp9Hys.js +2 -0
  192. package/dist/oauth.operations-Dwz0dPe0.mjs +2 -0
  193. package/dist/objects-DjZy05b7.js +2 -0
  194. package/dist/objects-LC_PpZf5.mjs +2 -0
  195. package/dist/operation-Ljhj0S-y.mjs +2 -0
  196. package/dist/operation-b0CY8USr.js +2 -0
  197. package/dist/output-CcagLVwl.js +2 -0
  198. package/dist/output-D0Gkm-0Z.mjs +2 -0
  199. package/dist/page-query-B8Evn_OX.mjs +2 -0
  200. package/dist/page-query-BIn1m1Dx.js +2 -0
  201. package/dist/pages-C1vZaC93.mjs +2 -0
  202. package/dist/pages-DQEuRvk2.js +2 -0
  203. package/dist/pages.operations-CWBsE2KN.js +2 -0
  204. package/dist/pages.operations-DE4h2piU.mjs +2 -0
  205. package/dist/pagination-B06cCddv.mjs +2 -0
  206. package/dist/pagination-CheieRD0.js +2 -0
  207. package/dist/path-Ch_NPREA.d.mts +81 -0
  208. package/dist/permission-catalog-7nqArygr.js +2 -0
  209. package/dist/permission-catalog-DVCRvATl.mjs +2 -0
  210. package/dist/permissions-BsNNXXmY.js +2 -0
  211. package/dist/permissions-CGYTdS2h.mjs +2 -0
  212. package/dist/permissions.operations-BpGpRcI5.js +2 -0
  213. package/dist/permissions.operations-CUOPZGr_.mjs +2 -0
  214. package/dist/plain-record-BnKWrGQv.js +2 -0
  215. package/dist/plain-record-is3DxPBL.mjs +2 -0
  216. package/dist/primitives-BlZoUw54.mjs +2 -0
  217. package/dist/primitives-x0WE42fG.js +2 -0
  218. package/dist/{record-query-BMeq7JRi.d.mts → proposal-types-BnAD5nxA.d.mts} +10084 -10379
  219. package/dist/proposal-types-Buln0mbM.js +2 -0
  220. package/dist/proposal-types-ncv1cymr.mjs +2 -0
  221. package/dist/query-integers-CZDEkFmm.mjs +2 -0
  222. package/dist/query-integers-EVkedFO4.js +2 -0
  223. package/dist/quota-CremykHV.mjs +2 -0
  224. package/dist/quota-lbHfQAU7.js +2 -0
  225. package/dist/quotas.operations-CDn6mxGZ.js +2 -0
  226. package/dist/quotas.operations-DuUMhQct.mjs +2 -0
  227. package/dist/recent-activity-CDUZCvvx.mjs +2 -0
  228. package/dist/recent-activity-CTn3aJC5.js +2 -0
  229. package/dist/recent-activity.operations-C8HN3T2E.mjs +2 -0
  230. package/dist/recent-activity.operations-Cv7zUBG5.js +2 -0
  231. package/dist/record-memory.operations-D8K9_bDh.js +2 -0
  232. package/dist/record-memory.operations-DNRWqANQ.mjs +2 -0
  233. package/dist/record-operation-CD04q2YF.mjs +2 -0
  234. package/dist/record-operation-CHR8fOWv.js +2 -0
  235. package/dist/record-operations.operations-2fObhHf5.mjs +2 -0
  236. package/dist/record-operations.operations-iGcbXsAX.js +2 -0
  237. package/dist/record-output.schema-7M4ZhtFF.mjs +2 -0
  238. package/dist/record-output.schema-B-LsiXui.js +2 -0
  239. package/dist/records.operations-DesIdHKN.js +2 -0
  240. package/dist/records.operations-XplmsQb5.mjs +2 -0
  241. package/dist/relation-output.schema-CMfZ80ZC.js +2 -0
  242. package/dist/relation-output.schema-DnC1Swai.mjs +2 -0
  243. package/dist/relations.operations-C8OKmNI3.mjs +2 -0
  244. package/dist/relations.operations-TbsHto3V.js +2 -0
  245. package/dist/rolldown-runtime-BXZUx0GO.js +2 -0
  246. package/dist/schema-draft.operations-BrhXpB88.js +2 -0
  247. package/dist/schema-draft.operations-DO2aPqiB.mjs +2 -0
  248. package/dist/schema-groups.operations-BKGvDU0g.mjs +2 -0
  249. package/dist/schema-groups.operations-CQJVh2ul.js +2 -0
  250. package/dist/schema-objects.operations-BIm7_OUC.js +2 -0
  251. package/dist/schema-objects.operations-CKZquSV-.mjs +2 -0
  252. package/dist/schema-output.schema-DToLL5Hj.mjs +2 -0
  253. package/dist/schema-output.schema-yXth-j90.js +2 -0
  254. package/dist/schema-state.operations-YgW67wKw.mjs +2 -0
  255. package/dist/schema-state.operations-_rWxCFRF.js +2 -0
  256. package/dist/screens.operations-C2PmD9Jo.mjs +2 -0
  257. package/dist/screens.operations-CMCDeLu5.js +2 -0
  258. package/dist/search-admin.operations-BuNlL2_R.js +2 -0
  259. package/dist/search-admin.operations-MaUHp0Ws.mjs +2 -0
  260. package/dist/search-output.schema-BGEo1jc3.mjs +2 -0
  261. package/dist/search-output.schema-BOnf-I4-.js +2 -0
  262. package/dist/search.operations-BU2vkMiM.mjs +2 -0
  263. package/dist/search.operations-CV4h80dL.js +2 -0
  264. package/dist/skills.operations-B89X73C5.mjs +2 -0
  265. package/dist/skills.operations-CI7WSfj8.js +2 -0
  266. package/dist/string-rules-BGEVHs7B.js +2 -0
  267. package/dist/string-rules-Oo22T_2_.mjs +2 -0
  268. package/dist/submission-DQQndGsT.mjs +2 -0
  269. package/dist/submission-Y4L17hji.js +2 -0
  270. package/dist/system-attributes-4e6FXKws.js +2 -0
  271. package/dist/system-attributes-vbOzw6KO.mjs +2 -0
  272. package/dist/tenant-invitations-C8eRu6F1.mjs +2 -0
  273. package/dist/tenant-invitations-DMnJYl5A.js +2 -0
  274. package/dist/tenant-invitations.operations-CoENfK1m.mjs +2 -0
  275. package/dist/tenant-invitations.operations-DVzd6sH6.js +2 -0
  276. package/dist/tenant-settings-DibR3Pj9.mjs +2 -0
  277. package/dist/tenant-settings-H8PuqeVJ.js +2 -0
  278. package/dist/tenant-settings.operations-BlOjAUBb.mjs +2 -0
  279. package/dist/tenant-settings.operations-D1tiAc5T.js +2 -0
  280. package/dist/tool-group-catalog-DcmK8-aP.mjs +2 -0
  281. package/dist/tool-group-catalog-VfPutaoA.js +2 -0
  282. package/dist/types-BaRAoumN.mjs +2 -0
  283. package/dist/types-Bbd8SJk_.mjs +2 -0
  284. package/dist/types-DLY2ZL0J.js +2 -0
  285. package/dist/types-HyrREoFh.js +2 -0
  286. package/dist/unchecked-C4sB97e1.js +2 -0
  287. package/dist/unchecked-DAFXyX5y.mjs +2 -0
  288. package/dist/user-profiles-CJHB2U55.js +2 -0
  289. package/dist/user-profiles-Dh5QFnXc.mjs +2 -0
  290. package/dist/users.operations-Bdz9bPn7.js +2 -0
  291. package/dist/users.operations-BhIIB4IN.mjs +2 -0
  292. package/dist/{utils-DPto28bh.d.mts → utils-BHf9KKOr.d.mts} +1 -1
  293. package/dist/{utils-BdmqhdNL.d.ts → utils-_R0m2ygt.d.ts} +1 -1
  294. package/dist/utils.d.mts +1 -1
  295. package/dist/utils.d.ts +1 -1
  296. package/dist/uuid-param-BuV4RQRp.mjs +2 -0
  297. package/dist/uuid-param-Djtff5Vy.js +2 -0
  298. package/dist/validation/all.d.mts +2 -2
  299. package/dist/validation/all.d.ts +2 -2
  300. package/dist/validation/all.js +1 -1
  301. package/dist/validation/all.mjs +1 -1
  302. package/dist/view-config.schema-BimOzKR_.js +2 -0
  303. package/dist/view-config.schema-DstNUMiD.mjs +2 -0
  304. package/dist/views.operations-B23oCL5P.js +2 -0
  305. package/dist/views.operations-B38jfGlX.mjs +2 -0
  306. package/dist/wire-types-B5ixUf2P.d.mts +11 -0
  307. package/dist/wire-types-btvuxrFk.d.ts +11 -0
  308. package/openapi.json +1292 -1839
  309. package/package.json +22 -2
  310. package/dist/all-2xry8t7d.js +0 -4
  311. package/dist/all-BWpaP2E2.mjs +0 -4
  312. package/dist/attribute-validators-CFa9B00S.mjs +0 -11
  313. package/dist/attribute-validators-Djse5LWc.js +0 -11
  314. package/dist/record-operation-BBOde9mE.mjs +0 -2
  315. package/dist/record-operation-BLhz84I4.js +0 -2
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./agent-output.schema-8ajlE5_g.js"),t=[`search`,`query`,`read`,`write`,`delete`,`organize`,`copy`,`send`,`start`],n=[...t,`edit_content`],r=[...n,`compact_context`,`write_todos`],i=[e.BROWSER_LAUNCH_TOOL_NAME],a=[`discard_architect_draft`,`draft_schema`,`get_architect_draft`,`search_icons`],o=[`record`,`document`,`file`,`skill`,`schema`,`guide`,`decision`],s={memory:{kinds:[`memory`],capabilities:[],tools:[]},bulk:{kinds:[],capabilities:[`bulk`],tools:[]},activity:{kinds:[],capabilities:[`activity`],tools:[]},"email.read":{kinds:[`email`,`thread`],capabilities:[`copy_email`],tools:[]},"email.send":{kinds:[`email`,`thread`,`draft`],capabilities:[`copy_email`],tools:[]},"calendar.read":{kinds:[`event`],capabilities:[`transcript`],tools:[]}},c={orchestration:{kinds:[],capabilities:[`subagent`],tools:[]},"agent-config":{kinds:[],capabilities:[`agent_setup`],tools:[]}},l={sandbox:{icon:`terminal`,tools:[`exec_command`,`publish_artifact`,`sandbox_validate_payload`]},web:{icon:`globe`,tools:[`read_webpage`,`web_search`]},image:{icon:`image`,tools:[`generate_image`]},memory:{icon:`book-open`,tools:s.memory.tools},bulk:{icon:`layers-two`,tools:s.bulk.tools},activity:{icon:`activity`,tools:s.activity.tools},orchestration:{icon:`git-branch`,tools:c.orchestration.tools},host:{icon:`wrench`,tools:[]},"cloud-browser":{icon:`globe`,tools:i},"agent-config":{icon:`sparkles`,tools:c[`agent-config`].tools},schema:{icon:`database`,tools:a}},u={mcp:{icon:`puzzle`,tools:[]},"email.read":{icon:`envelope`,tools:s[`email.read`].tools},"email.send":{icon:`send`,tools:s[`email.send`].tools},"calendar.read":{icon:`calendar`,tools:s[`calendar.read`].tools},github:{icon:`brand-github`,tools:[]},"slack.read":{icon:`brand-slack`,tools:[`slack_read`,`slack_find`,`slack_download_file`]},"slack.write":{icon:`brand-slack`,tools:[`slack_send`,`slack_react`]},device:{icon:`desktop`,tools:[`exec_command`]},"browser-profile":{icon:`globe`,tools:i},login:{icon:`key`,tools:[]}},d={sandbox:{kinds:[],capabilities:[],tools:l.sandbox.tools},web:{kinds:[],capabilities:[],tools:l.web.tools},image:{kinds:[],capabilities:[],tools:l.image.tools},memory:s.memory,bulk:s.bulk,activity:s.activity,orchestration:c.orchestration,host:{kinds:[],capabilities:[],tools:l.host.tools},"cloud-browser":{kinds:[],capabilities:[],tools:l[`cloud-browser`].tools},"agent-config":c[`agent-config`],schema:{kinds:[],capabilities:[],tools:l.schema.tools},mcp:{kinds:[],capabilities:[],tools:u.mcp.tools},"email.read":s[`email.read`],"email.send":s[`email.send`],"calendar.read":s[`calendar.read`],github:{kinds:[],capabilities:[],tools:u.github.tools},"slack.read":{kinds:[],capabilities:[],tools:u[`slack.read`].tools},"slack.write":{kinds:[],capabilities:[],tools:u[`slack.write`].tools},device:{kinds:[],capabilities:[],tools:u.device.tools},"browser-profile":{kinds:[],capabilities:[],tools:u[`browser-profile`].tools},login:{kinds:[],capabilities:[],tools:u.login.tools}},f={schema:[...a,`get_schema_history`,`request_design_review`],setup:[`request_setup`],internal:[`load_toolset`]},p=[.../* @__PURE__ */ new Set([...r,...e.NATIVE_TOOL_GROUPS.flatMap(e=>l[e].tools),...e.RESOURCE_GRANT_KINDS.flatMap(e=>u[e].tools)])],m={"email.read":[`gmail`,`outlook`],"email.send":[`gmail`,`outlook`],"calendar.read":[`google-calendar`,`outlook-calendar`]};function connectionGrantKindsOf(e){switch(e){case`github`:return[`github`];case`slack`:return[`slack.read`,`slack.write`];case`google-calendar`:case`outlook-calendar`:return[`calendar.read`];case`gmail`:case`outlook`:return[`email.read`,`email.send`]}}const h=[`activity`,`bulk`,`image`,`memory`,`orchestration`,`sandbox`,`web`],g=[`memory`],_=/* @__PURE__ */ new Set([`sandbox`,`host`,`cloud-browser`]);function needsManageWhenUnattended(e){return _.has(e)||isResourceGrant(e)}function isNativeToolGroup(t){return e.NATIVE_TOOL_GROUPS.includes(t)}function parseToolGroupGrant(t){if(isNativeToolGroup(t))return{type:`native`,group:t};let n=t.indexOf(`:`);if(n<=0)return null;let r=t.slice(0,n),i=t.slice(n+1);return i.length===0||!e.RESOURCE_GRANT_KINDS.includes(r)?null:{type:`resource`,kind:r,id:i}}function grantKindOf(e){let t=parseToolGroupGrant(e);return t?.type===`resource`?t.kind:null}function isResourceGrant(e){return parseToolGroupGrant(e)?.type===`resource`}function resourceGrant(e,t){return`${e}:${t}`}function canonicalToolGroups(e){return[...new Set(e)].sort()}Object.defineProperty(exports,"ALL_CATALOG_TOOL_NAMES",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"ALWAYS_KINDS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"BROWSER_TOOL_NAMES",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"CONNECTION_GRANT_PROVIDERS",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"COPY_VERB_NAME",{enumerable:!0,get:function(){return`copy`}}),Object.defineProperty(exports,"CORE_RECORD_TOOL_NAMES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"CORE_TOOL_NAMES",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"DEFAULT_AGENT_TOOL_GROUPS",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"DEFAULT_BLUEPRINT_TOOL_GROUPS",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"GRANT_ENABLES",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"NATIVE_TOOL_GROUP_CATALOG",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"RESOURCE_KIND_CATALOG",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"SEND_VERB_NAME",{enumerable:!0,get:function(){return`send`}}),Object.defineProperty(exports,"START_VERB_NAME",{enumerable:!0,get:function(){return`start`}}),Object.defineProperty(exports,"SURFACE_TOOL_NAMES",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"VERB_NAMES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"canonicalToolGroups",{enumerable:!0,get:function(){return canonicalToolGroups}}),Object.defineProperty(exports,"connectionGrantKindsOf",{enumerable:!0,get:function(){return connectionGrantKindsOf}}),Object.defineProperty(exports,"grantKindOf",{enumerable:!0,get:function(){return grantKindOf}}),Object.defineProperty(exports,"isNativeToolGroup",{enumerable:!0,get:function(){return isNativeToolGroup}}),Object.defineProperty(exports,"isResourceGrant",{enumerable:!0,get:function(){return isResourceGrant}}),Object.defineProperty(exports,"needsManageWhenUnattended",{enumerable:!0,get:function(){return needsManageWhenUnattended}}),Object.defineProperty(exports,"parseToolGroupGrant",{enumerable:!0,get:function(){return parseToolGroupGrant}}),Object.defineProperty(exports,"resourceGrant",{enumerable:!0,get:function(){return resourceGrant}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import"./zod-locale.mjs";import{resourceUsedBySchema as e}from"./agent-output.schema-BQsbh8pJ.mjs";import*as t from"zod";const n=[`gmail`,`outlook`,`google-calendar`,`outlook-calendar`,`github`,`slack`],r=[`slack`,`whatsapp`],i=[`active`,`reauth_required`,`error`,`disconnected`],a=t.object({canRead:t.boolean(),canModify:t.boolean(),canSend:t.boolean()});function requestedCapabilities(e){return e.canModify?[`modify`]:[]}const o=t.object({processed:t.number(),total:t.number().nullable(),backfilling:t.boolean()}),s=t.object({id:t.string(),provider:t.enum(n),ownerActorId:t.string().nullable(),parentConnectionId:t.string().nullable(),connectedByActorId:t.string().nullable().optional(),externalAccountId:t.string(),displayName:t.string().optional(),status:t.enum(i),lastSyncedAt:t.string().nullable(),createdAt:t.string(),capabilities:a,syncProgress:o,usedBy:e.optional()}),c=[`actor`,`tenant`],l=t.object({providers:t.array(t.enum(n))});export{r as CHAT_PROVIDERS,i as CONNECTION_STATUS_IDS,n as CONNECTOR_PROVIDER_IDS,c as CONNECTOR_SCOPES,a as connectionCapabilitiesSchema,o as connectionSyncProgressSchema,s as connectionViewSchema,l as connectorProvidersResultSchema,requestedCapabilities};
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import"./zod-locale.mjs";import*as e from"zod";const t=3e5,n=e.object({attemptId:e.string(),authorizeUrl:e.string(),expiresAt:e.string()});export{t as OAUTH_TICKET_TTL_MS,n as oauthAttemptStartedSchema};
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");let t=require("zod");t=e.__toESM(t);const n=t.object({attemptId:t.string(),authorizeUrl:t.string(),expiresAt:t.string()});Object.defineProperty(exports,"OAUTH_TICKET_TTL_MS",{enumerable:!0,get:function(){return 3e5}}),Object.defineProperty(exports,"oauthAttemptStartedSchema",{enumerable:!0,get:function(){return n}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");const t=require("./agent-output.schema-8ajlE5_g.js");let n=require("zod");n=e.__toESM(n);const r=[`gmail`,`outlook`,`google-calendar`,`outlook-calendar`,`github`,`slack`],i=[`slack`,`whatsapp`],a=[`active`,`reauth_required`,`error`,`disconnected`],o=n.object({canRead:n.boolean(),canModify:n.boolean(),canSend:n.boolean()});function requestedCapabilities(e){return e.canModify?[`modify`]:[]}const s=n.object({processed:n.number(),total:n.number().nullable(),backfilling:n.boolean()}),c=n.object({id:n.string(),provider:n.enum(r),ownerActorId:n.string().nullable(),parentConnectionId:n.string().nullable(),connectedByActorId:n.string().nullable().optional(),externalAccountId:n.string(),displayName:n.string().optional(),status:n.enum(a),lastSyncedAt:n.string().nullable(),createdAt:n.string(),capabilities:o,syncProgress:s,usedBy:t.resourceUsedBySchema.optional()}),l=[`actor`,`tenant`],u=n.object({providers:n.array(n.enum(r))});Object.defineProperty(exports,"CHAT_PROVIDERS",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"CONNECTION_STATUS_IDS",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"CONNECTOR_PROVIDER_IDS",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"CONNECTOR_SCOPES",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"connectionCapabilitiesSchema",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"connectionSyncProgressSchema",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"connectionViewSchema",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"connectorProvidersResultSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"requestedCapabilities",{enumerable:!0,get:function(){return requestedCapabilities}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");let t=require("zod");t=e.__toESM(t);function unchecked(){return t.custom()}Object.defineProperty(exports,"unchecked",{enumerable:!0,get:function(){return unchecked}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import"./zod-locale.mjs";import*as e from"zod";function unchecked(){return e.custom()}export{unchecked};
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");const t=require("./output-CcagLVwl.js");let n=require("zod");n=e.__toESM(n);const r=[`active`,`suspended`],i=[`manual`,`auto`],a=[`panel`,`fullscreen`],o=n.object({id:n.string(),tenantId:n.string(),authId:n.string(),email:n.string(),preferredName:n.string().optional(),firstName:n.string().optional(),lastName:n.string().optional(),avatarUrl:n.string().optional(),status:n.enum(r),lastLoginAt:t.isoDateTime.optional(),createdAt:t.isoDateTime,updatedAt:t.isoDateTime}),s=o.extend({actorId:n.string().nullable(),roleIds:n.array(n.string())});Object.defineProperty(exports,"CONVERSATION_SURFACES",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"USERS_RESOLVE_MAX_IDS",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"USER_STATUSES",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"USER_WORK_POSTURES",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"memberSchema",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"userProfileSchema",{enumerable:!0,get:function(){return o}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import"./zod-locale.mjs";import{isoDateTime as e}from"./output-D0Gkm-0Z.mjs";import*as t from"zod";const n=[`active`,`suspended`],r=[`manual`,`auto`],i=[`panel`,`fullscreen`],a=200,o=t.object({id:t.string(),tenantId:t.string(),authId:t.string(),email:t.string(),preferredName:t.string().optional(),firstName:t.string().optional(),lastName:t.string().optional(),avatarUrl:t.string().optional(),status:t.enum(n),lastLoginAt:e.optional(),createdAt:e,updatedAt:e}),s=o.extend({actorId:t.string().nullable(),roleIds:t.array(t.string())});export{i as CONVERSATION_SURFACES,a as USERS_RESOLVE_MAX_IDS,n as USER_STATUSES,r as USER_WORK_POSTURES,s as memberSchema,o as userProfileSchema};
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");const t=require("./my-preferences-CtaRodws.js"),n=require("./user-profiles-CJHB2U55.js"),r=require("./local-path-CDRPquGU.js"),i=require("./operation-b0CY8USr.js"),a=require("./query-integers-EVkedFO4.js"),o=require("./string-rules-BGEVHs7B.js"),s=require("./unchecked-C4sB97e1.js");let c=require("zod");c=e.__toESM(c);let l=require("@standards/constants");var u=/* @__PURE__ */ e.__exportAll({usersOperations:()=>y});function oneOf(e){return c.custom(t=>e.some(e=>e===t),{message:`must be one of: ${e.join(`, `)}`})}const d=c.object({authId:s.unchecked(),email:o.emailSchema,firstName:s.unchecked().optional(),lastName:s.unchecked().optional(),avatarUrl:o.classValidatorUrlSchema.nullish(),status:s.unchecked().optional()});function toProfileCreate(e){return{authId:e.authId,email:e.email,firstName:e.firstName,lastName:e.lastName,avatarUrl:e.avatarUrl??void 0,status:e.status??`active`}}const f=c.looseObject({preferredName:c.string().nullish(),firstName:c.string().nullish(),lastName:c.string().nullish(),avatarUrl:o.classValidatorUrlSchema.nullish(),status:oneOf(n.USER_STATUSES).nullish()}),p=`redirectTo must be a relative path (e.g. /dashboard). Absolute URLs are not allowed.`,m=c.object({redirectTo:c.string().nullish().transform(e=>e??`/`).refine(e=>e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`://`),p).transform(e=>e.replace(/\.\./g,``).replace(/\/+/g,`/`)).refine(r.isLocalPath,p)}),h=c.object({status:oneOf(n.USER_STATUSES).optional()}),g=c.object({limit:c.union([c.string(),c.number()]).optional(),offset:c.union([c.string(),c.number()]).optional()}).transform(({limit:e,offset:t})=>({limit:a.parsePositiveInteger(e),offset:a.parseNonNegativeInteger(t)})),_=c.object({id:c.string()}),v=c.object({parameter:c.string().max(256).optional(),value:c.unknown()}),y={list:i.operation({name:`users.list`,method:`GET`,path:`/users`,input:g,output:c.array(n.userProfileSchema),permission:[`people`,`read`]}),members:i.operation({name:`users.members`,method:`GET`,path:`/users/members`,input:c.object({}),output:c.array(n.memberSchema),permission:[`people`,`read`]}),me:i.operation({name:`users.me`,method:`GET`,path:`/users/me`,input:c.object({}),output:n.userProfileSchema,actor:`required`}),updateMe:i.operation({name:`users.updateMe`,method:`PUT`,path:`/users/me`,input:f,output:n.userProfileSchema,actor:`required`}),myPreferences:i.operation({name:`users.myPreferences`,method:`GET`,path:`/users/me/preferences`,input:c.object({}),output:t.myPreferencesSchema,actor:`required`}),setMyPreference:i.operation({name:`users.setMyPreference`,method:`PUT`,path:`/users/me/preferences/:key`,input:v.extend({key:c.string()}),output:t.preferenceEntrySchema,actor:`required`}),uploadMyAvatar:i.operation({name:`users.uploadMyAvatar`,method:`PUT`,path:`/users/me/avatar`,input:c.object({}),output:n.userProfileSchema,actor:`required`,upload:{field:`file`,maxCount:1,maxBytes:l.AVATAR_MAX_BYTES}}),deleteMyAvatar:i.operation({name:`users.deleteMyAvatar`,method:`DELETE`,path:`/users/me/avatar`,input:c.object({}),output:n.userProfileSchema,actor:`required`}),resolve:i.operation({name:`users.resolve`,method:`POST`,path:`/users/resolve`,input:c.object({ids:c.array(c.string()).min(1).max(200)}),output:c.array(n.userProfileSchema),permission:[`people`,`read`]}),get:i.operation({name:`users.get`,method:`GET`,path:`/users/:id`,input:_,output:n.userProfileSchema,permission:[`people`,`read`]}),create:i.operation({name:`users.create`,method:`POST`,path:`/users`,input:d.transform(toProfileCreate),output:n.userProfileSchema,permission:[`people`,`create`]}),update:i.operation({name:`users.update`,method:`PUT`,path:`/users/:id`,input:f.extend(_.shape),output:n.userProfileSchema,permission:[`people`,`update`]}),delete:i.operation({name:`users.delete`,method:`DELETE`,path:`/users/:id`,input:_,output:i.type(),permission:[`people`,`delete`],status:204}),changeStatus:i.operation({name:`users.changeStatus`,method:`PUT`,path:`/users/:id/status`,input:h.extend(_.shape),output:n.userProfileSchema,permission:[`people`,`update`]}),resetAccess:i.operation({name:`users.resetAccess`,method:`POST`,path:`/users/:id/reset-access`,input:m.extend(_.shape),output:i.type(),permission:[`people`,`update`],status:204})};Object.defineProperty(exports,"changeStatusBody",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"createUserProfileBody",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"resetAccessBody",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"setMyPreferenceBody",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"updateUserProfileBody",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"usersOperations",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"users_operations_exports",{enumerable:!0,get:function(){return u}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import{__exportAll as e}from"./rolldown-runtime-CirMkZhQ.mjs";import"./zod-locale.mjs";import{myPreferencesSchema as t,preferenceEntrySchema as n}from"./my-preferences-DLy4chuc.mjs";import{USER_STATUSES as r,memberSchema as i,userProfileSchema as a}from"./user-profiles-Dh5QFnXc.mjs";import{isLocalPath as o}from"./local-path-PA4ZoNKq.mjs";import{operation as s,type as c}from"./operation-Ljhj0S-y.mjs";import{parseNonNegativeInteger as l,parsePositiveInteger as u}from"./query-integers-CZDEkFmm.mjs";import{classValidatorUrlSchema as d,emailSchema as f}from"./string-rules-Oo22T_2_.mjs";import{unchecked as p}from"./unchecked-DAFXyX5y.mjs";import*as m from"zod";import{AVATAR_MAX_BYTES as h}from"@standards/constants";var g=/* @__PURE__ */ e({usersOperations:()=>T});function oneOf(e){return m.custom(t=>e.some(e=>e===t),{message:`must be one of: ${e.join(`, `)}`})}const _=m.object({authId:p(),email:f,firstName:p().optional(),lastName:p().optional(),avatarUrl:d.nullish(),status:p().optional()});function toProfileCreate(e){return{authId:e.authId,email:e.email,firstName:e.firstName,lastName:e.lastName,avatarUrl:e.avatarUrl??void 0,status:e.status??`active`}}const v=m.looseObject({preferredName:m.string().nullish(),firstName:m.string().nullish(),lastName:m.string().nullish(),avatarUrl:d.nullish(),status:oneOf(r).nullish()}),y=`redirectTo must be a relative path (e.g. /dashboard). Absolute URLs are not allowed.`,b=m.object({redirectTo:m.string().nullish().transform(e=>e??`/`).refine(e=>e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`://`),y).transform(e=>e.replace(/\.\./g,``).replace(/\/+/g,`/`)).refine(o,y)}),x=m.object({status:oneOf(r).optional()}),S=m.object({limit:m.union([m.string(),m.number()]).optional(),offset:m.union([m.string(),m.number()]).optional()}).transform(({limit:e,offset:t})=>({limit:u(e),offset:l(t)})),C=m.object({id:m.string()}),w=m.object({parameter:m.string().max(256).optional(),value:m.unknown()}),T={list:s({name:`users.list`,method:`GET`,path:`/users`,input:S,output:m.array(a),permission:[`people`,`read`]}),members:s({name:`users.members`,method:`GET`,path:`/users/members`,input:m.object({}),output:m.array(i),permission:[`people`,`read`]}),me:s({name:`users.me`,method:`GET`,path:`/users/me`,input:m.object({}),output:a,actor:`required`}),updateMe:s({name:`users.updateMe`,method:`PUT`,path:`/users/me`,input:v,output:a,actor:`required`}),myPreferences:s({name:`users.myPreferences`,method:`GET`,path:`/users/me/preferences`,input:m.object({}),output:t,actor:`required`}),setMyPreference:s({name:`users.setMyPreference`,method:`PUT`,path:`/users/me/preferences/:key`,input:w.extend({key:m.string()}),output:n,actor:`required`}),uploadMyAvatar:s({name:`users.uploadMyAvatar`,method:`PUT`,path:`/users/me/avatar`,input:m.object({}),output:a,actor:`required`,upload:{field:`file`,maxCount:1,maxBytes:h}}),deleteMyAvatar:s({name:`users.deleteMyAvatar`,method:`DELETE`,path:`/users/me/avatar`,input:m.object({}),output:a,actor:`required`}),resolve:s({name:`users.resolve`,method:`POST`,path:`/users/resolve`,input:m.object({ids:m.array(m.string()).min(1).max(200)}),output:m.array(a),permission:[`people`,`read`]}),get:s({name:`users.get`,method:`GET`,path:`/users/:id`,input:C,output:a,permission:[`people`,`read`]}),create:s({name:`users.create`,method:`POST`,path:`/users`,input:_.transform(toProfileCreate),output:a,permission:[`people`,`create`]}),update:s({name:`users.update`,method:`PUT`,path:`/users/:id`,input:v.extend(C.shape),output:a,permission:[`people`,`update`]}),delete:s({name:`users.delete`,method:`DELETE`,path:`/users/:id`,input:C,output:c(),permission:[`people`,`delete`],status:204}),changeStatus:s({name:`users.changeStatus`,method:`PUT`,path:`/users/:id/status`,input:x.extend(C.shape),output:a,permission:[`people`,`update`]}),resetAccess:s({name:`users.resetAccess`,method:`POST`,path:`/users/:id/reset-access`,input:b.extend(C.shape),output:c(),permission:[`people`,`update`],status:204})};export{x as changeStatusBody,_ as createUserProfileBody,b as resetAccessBody,w as setMyPreferenceBody,v as updateUserProfileBody,T as usersOperations,g as users_operations_exports};
@@ -1,5 +1,5 @@
1
1
 
2
- import { SchemaError } from "./exceptions-BjtmXIip.mjs";
2
+ import { SchemaError } from "./exceptions-gxRQUb2w.mjs";
3
3
  export declare class NonJsonValueError extends SchemaError {
4
4
  constructor();
5
5
  }
@@ -1,5 +1,5 @@
1
1
 
2
- import { SchemaError } from "./exceptions-CxTJ-9hJ.js";
2
+ import { SchemaError } from "./exceptions-Csd70p_-.js";
3
3
  export declare class NonJsonValueError extends SchemaError {
4
4
  constructor();
5
5
  }
package/dist/utils.d.mts CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
- import { TenantId, UserId, Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy, isLocalPath } from "./utils-DPto28bh.mjs";
2
+ import { TenantId, UserId, Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy, isLocalPath } from "./utils-BHf9KKOr.mjs";
3
3
  export { TenantId, UserId, Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy, isLocalPath };
package/dist/utils.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
- import { TenantId, UserId, Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy, isLocalPath } from "./utils-BdmqhdNL.js";
2
+ import { TenantId, UserId, Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy, isLocalPath } from "./utils-_R0m2ygt.js";
3
3
  export { TenantId, UserId, Uuid, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy, isLocalPath };
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import"./zod-locale.mjs";import*as e from"zod";const t=e.guid({error:`must be a UUID`});export{t as uuidParam};
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");let t=require("zod");t=e.__toESM(t);const n=t.guid({error:`must be a UUID`});Object.defineProperty(exports,"uuidParam",{enumerable:!0,get:function(){return n}});
@@ -7,5 +7,5 @@
7
7
  * createObjectValidator, etc.) are intentionally package-private — consumers
8
8
  * should use createFormAttributeValidator() as the single entry point.
9
9
  */
10
- import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../record-query-BMeq7JRi.mjs";
11
- export { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, type ValidationMessages, type ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys };
10
+ import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertySchemaSchema, publishedViewContentDefinitionSchema, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../proposal-types-BnAD5nxA.mjs";
11
+ export { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, type ValidationMessages, type ValidationResult, WIRE_OFFERED_BASE_CONFIG, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertySchemaSchema, publishedViewContentDefinitionSchema, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireOmittedConfigKeysFor, withoutUnknownOptionKeys };
@@ -7,5 +7,5 @@
7
7
  * createObjectValidator, etc.) are intentionally package-private — consumers
8
8
  * should use createFormAttributeValidator() as the single entry point.
9
9
  */
10
- import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../index-BoesrnBX.js";
11
- export { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, type ValidationMessages, type ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys };
10
+ import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertySchemaSchema, publishedViewContentDefinitionSchema, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../index-O2gvfWg3.js";
11
+ export { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, type ValidationMessages, type ValidationResult, WIRE_OFFERED_BASE_CONFIG, attributeConfigSchemas, characterCount, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertySchemaSchema, publishedViewContentDefinitionSchema, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireOmittedConfigKeysFor, withoutUnknownOptionKeys };
@@ -1,2 +1,2 @@
1
1
  /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../attribute-validators-Djse5LWc.js"),t=require("../all-2xry8t7d.js");exports.DEFAULT_VALIDATION_MESSAGES=t.DEFAULT_VALIDATION_MESSAGES,exports.SCHEMA_LIMITS=e.SCHEMA_LIMITS,exports.SIMPLE_PROPERTY_TYPES=t.SIMPLE_PROPERTY_TYPES,exports.WIRE_OFFERED_BASE_CONFIG=t.WIRE_OFFERED_BASE_CONFIG,exports.WIRE_OMITTED_CONFIG_KEYS=t.WIRE_OMITTED_CONFIG_KEYS,exports.attributeConfigSchemas=t.attributeConfigSchemas,exports.characterCount=e.characterCount,exports.collectionContentSourceSchema=e.collectionContentSourceSchema,exports.colorIdSchema=e.colorIdSchema,exports.contentViewDefinitionSchema=e.contentViewDefinitionSchema,exports.createAttributeValidator=t.createAttributeValidator,exports.createFormAttributeValidator=t.createFormAttributeValidator,exports.draftContentViewDefinitionSchema=e.draftContentViewDefinitionSchema,exports.formatZodErrors=t.formatZodErrors,exports.getAttributeConfigSchema=t.getAttributeConfigSchema,exports.getAttributeConfigWriteSchema=t.getAttributeConfigWriteSchema,exports.iconNameSchema=e.iconNameSchema,exports.parseAttributeConfig=t.parseAttributeConfig,exports.parseAttributeConfigForCreate=t.parseAttributeConfigForCreate,exports.parseAttributeConfigForUpdate=t.parseAttributeConfigForUpdate,exports.propertyAttributeSchema=t.propertyAttributeSchema,exports.propertyAttributeWireSchema=t.propertyAttributeWireSchema,exports.propertySchemaSchema=t.propertySchemaSchema,exports.propertySchemaWireSchema=t.propertySchemaWireSchema,exports.publishedViewContentDefinitionSchema=e.publishedViewContentDefinitionSchema,exports.refuseForeignKeys=t.refuseForeignKeys,exports.rejectUnknownAttributesOrThrow=t.rejectUnknownAttributesOrThrow,exports.selectOptionWriteSchema=t.selectOptionWriteSchema,exports.statusGroupSchema=t.statusGroupSchema,exports.statusOptionWriteSchema=t.statusOptionWriteSchema,exports.validateAttribute=t.validateAttribute,exports.validateDraft=t.validateDraft,exports.validateDraftOrThrow=t.validateDraftOrThrow,exports.validateObject=t.validateObject,exports.validateObjectOrThrow=t.validateObjectOrThrow,exports.wireHiddenTypeConfigMask=t.wireHiddenTypeConfigMask,exports.wireOmittedConfigKeysFor=t.wireOmittedConfigKeysFor,exports.withoutUnknownOptionKeys=t.withoutUnknownOptionKeys;
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../view-config.schema-BimOzKR_.js"),t=require("../limits-C23L0g-a.js"),n=require("../all-PUaQuM_2.js"),r=require("../primitives-x0WE42fG.js");exports.DEFAULT_VALIDATION_MESSAGES=n.DEFAULT_VALIDATION_MESSAGES,exports.SCHEMA_LIMITS=t.SCHEMA_LIMITS,exports.WIRE_OFFERED_BASE_CONFIG=n.WIRE_OFFERED_BASE_CONFIG,exports.attributeConfigSchemas=n.attributeConfigSchemas,exports.characterCount=t.characterCount,exports.collectionContentSourceSchema=e.collectionContentSourceSchema,exports.colorIdSchema=r.colorIdSchema,exports.contentViewDefinitionSchema=e.contentViewDefinitionSchema,exports.createAttributeValidator=n.createAttributeValidator,exports.createFormAttributeValidator=n.createFormAttributeValidator,exports.draftContentViewDefinitionSchema=e.draftContentViewDefinitionSchema,exports.formatZodErrors=n.formatZodErrors,exports.getAttributeConfigSchema=n.getAttributeConfigSchema,exports.iconNameSchema=r.iconNameSchema,exports.parseAttributeConfig=n.parseAttributeConfig,exports.parseAttributeConfigForCreate=n.parseAttributeConfigForCreate,exports.parseAttributeConfigForUpdate=n.parseAttributeConfigForUpdate,exports.propertyAttributeSchema=n.propertyAttributeSchema,exports.propertySchemaSchema=n.propertySchemaSchema,exports.publishedViewContentDefinitionSchema=e.publishedViewContentDefinitionSchema,exports.rejectUnknownAttributesOrThrow=n.rejectUnknownAttributesOrThrow,exports.selectOptionWriteSchema=n.selectOptionWriteSchema,exports.statusGroupSchema=n.statusGroupSchema,exports.statusOptionWriteSchema=n.statusOptionWriteSchema,exports.validateAttribute=n.validateAttribute,exports.validateDraft=n.validateDraft,exports.validateDraftOrThrow=n.validateDraftOrThrow,exports.validateObject=n.validateObject,exports.validateObjectOrThrow=n.validateObjectOrThrow,exports.wireOmittedConfigKeysFor=n.wireOmittedConfigKeysFor,exports.withoutUnknownOptionKeys=n.withoutUnknownOptionKeys;
@@ -1,2 +1,2 @@
1
1
  /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
- import{SCHEMA_LIMITS as e,characterCount as t,collectionContentSourceSchema as n,colorIdSchema as r,contentViewDefinitionSchema as i,draftContentViewDefinitionSchema as a,iconNameSchema as o,publishedViewContentDefinitionSchema as s}from"../attribute-validators-CFa9B00S.mjs";import{DEFAULT_VALIDATION_MESSAGES as c,SIMPLE_PROPERTY_TYPES as l,WIRE_OFFERED_BASE_CONFIG as u,WIRE_OMITTED_CONFIG_KEYS as d,attributeConfigSchemas as f,createAttributeValidator as p,createFormAttributeValidator as m,formatZodErrors as h,getAttributeConfigSchema as g,getAttributeConfigWriteSchema as _,parseAttributeConfig as v,parseAttributeConfigForCreate as y,parseAttributeConfigForUpdate as b,propertyAttributeSchema as x,propertyAttributeWireSchema as S,propertySchemaSchema as C,propertySchemaWireSchema as w,refuseForeignKeys as T,rejectUnknownAttributesOrThrow as E,selectOptionWriteSchema as D,statusGroupSchema as O,statusOptionWriteSchema as k,validateAttribute as A,validateDraft as j,validateDraftOrThrow as M,validateObject as N,validateObjectOrThrow as P,wireHiddenTypeConfigMask as F,wireOmittedConfigKeysFor as I,withoutUnknownOptionKeys as L}from"../all-BWpaP2E2.mjs";export{c as DEFAULT_VALIDATION_MESSAGES,e as SCHEMA_LIMITS,l as SIMPLE_PROPERTY_TYPES,u as WIRE_OFFERED_BASE_CONFIG,d as WIRE_OMITTED_CONFIG_KEYS,f as attributeConfigSchemas,t as characterCount,n as collectionContentSourceSchema,r as colorIdSchema,i as contentViewDefinitionSchema,p as createAttributeValidator,m as createFormAttributeValidator,a as draftContentViewDefinitionSchema,h as formatZodErrors,g as getAttributeConfigSchema,_ as getAttributeConfigWriteSchema,o as iconNameSchema,v as parseAttributeConfig,y as parseAttributeConfigForCreate,b as parseAttributeConfigForUpdate,x as propertyAttributeSchema,S as propertyAttributeWireSchema,C as propertySchemaSchema,w as propertySchemaWireSchema,s as publishedViewContentDefinitionSchema,T as refuseForeignKeys,E as rejectUnknownAttributesOrThrow,D as selectOptionWriteSchema,O as statusGroupSchema,k as statusOptionWriteSchema,A as validateAttribute,j as validateDraft,M as validateDraftOrThrow,N as validateObject,P as validateObjectOrThrow,F as wireHiddenTypeConfigMask,I as wireOmittedConfigKeysFor,L as withoutUnknownOptionKeys};
2
+ import{collectionContentSourceSchema as e,contentViewDefinitionSchema as t,draftContentViewDefinitionSchema as n,publishedViewContentDefinitionSchema as r}from"../view-config.schema-DstNUMiD.mjs";import{SCHEMA_LIMITS as i,characterCount as a}from"../limits-DVUX5n4b.mjs";import{DEFAULT_VALIDATION_MESSAGES as o,WIRE_OFFERED_BASE_CONFIG as s,attributeConfigSchemas as c,createAttributeValidator as l,createFormAttributeValidator as u,formatZodErrors as d,getAttributeConfigSchema as f,parseAttributeConfig as p,parseAttributeConfigForCreate as m,parseAttributeConfigForUpdate as h,propertyAttributeSchema as g,propertySchemaSchema as _,rejectUnknownAttributesOrThrow as v,selectOptionWriteSchema as y,statusGroupSchema as b,statusOptionWriteSchema as x,validateAttribute as S,validateDraft as C,validateDraftOrThrow as w,validateObject as T,validateObjectOrThrow as E,wireOmittedConfigKeysFor as D,withoutUnknownOptionKeys as O}from"../all-BCAZCVxV.mjs";import{colorIdSchema as k,iconNameSchema as A}from"../primitives-BlZoUw54.mjs";export{o as DEFAULT_VALIDATION_MESSAGES,i as SCHEMA_LIMITS,s as WIRE_OFFERED_BASE_CONFIG,c as attributeConfigSchemas,a as characterCount,e as collectionContentSourceSchema,k as colorIdSchema,t as contentViewDefinitionSchema,l as createAttributeValidator,u as createFormAttributeValidator,n as draftContentViewDefinitionSchema,d as formatZodErrors,f as getAttributeConfigSchema,A as iconNameSchema,p as parseAttributeConfig,m as parseAttributeConfigForCreate,h as parseAttributeConfigForUpdate,g as propertyAttributeSchema,_ as propertySchemaSchema,r as publishedViewContentDefinitionSchema,v as rejectUnknownAttributesOrThrow,y as selectOptionWriteSchema,b as statusGroupSchema,x as statusOptionWriteSchema,S as validateAttribute,C as validateDraft,w as validateDraftOrThrow,T as validateObject,E as validateObjectOrThrow,D as wireOmittedConfigKeysFor,O as withoutUnknownOptionKeys};
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");const t=require("./objects-DjZy05b7.js"),n=require("./limits-C23L0g-a.js"),r=require("./primitives-x0WE42fG.js"),i=require("./exceptions.js"),a=require("./attributes-B2wmzoDI.js"),o=require("./system-attributes-4e6FXKws.js");let s=require("zod");s=e.__toESM(s);const c=a.ATTRIBUTE_FILTER_OPERATORS,l=[`is_empty`,`is_not_empty`];function isNoValueOperator(e){return l.includes(e)}function getRollupFilterOperators(e){return a.getRollupFilterOperators(e)}const u=[1,2,3,4,5,6,7,8,9,10,11,12],d=u.length;function isBlockWidth(e){return u.includes(e)}const ee=/^\d{4}-\d{2}-\d{2}$/u;function isCalendarDay(e){if(!ee.test(e))return!1;let t=/* @__PURE__ */ new Date(`${e}T00:00:00Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e}function isDynamicValue(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`dynamic`in e}function currentActor(){return{dynamic:`actor`,ref:`current`}}function today(){return{dynamic:`date`,anchor:`today`}}function now(){return{dynamic:`date`,anchor:`now`}}function toAmount(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;if(typeof e==`string`&&e.trim()!==``){let t=Number(e);return Number.isFinite(t)?t:null}return null}function extractCurrencyFilterValue(e){return typeof e==`object`&&e?`value`in e?toAmount(e.value):null:toAmount(e)}function extractFilterValue(e){return e==null?null:typeof e==`object`&&`value`in e?e.value??null:e}const te=/* @__PURE__ */ new Set([`is_not`,`not_contains`,`none_of`,`is_empty`]),f={is_not:`is`,not_contains:`contains`,none_of:`any_of`,is_empty:`is_not_empty`};function getOperatorPolarity(e){return te.has(e)?`none`:`any`}function normalizeForEdgeRpc(e){return f[e]??e}const p={is:`any_of`,is_not:`none_of`};function toMultiValueOperator(e){return p[e]??e}const ne=new Set(Object.values(p).filter(e=>e!==void 0));function isSetMembershipOperator(e){return ne.has(e)}function canonicalizeFilterValue(e,t){let n=e.value;if(isNoValueOperator(e.operator)||n==null||isDynamicValue(n))return;if(isSetMembershipOperator(e.operator)){Array.isArray(n)||(e.value=[n]);return}if(t!==`currency`)return;let r=extractCurrencyFilterValue(n);if(r!==null){e.value=r;return}if(!hasCurrencyAmount(n))return;let a=`Filter on a currency attribute expected a numeric amount, received ${JSON.stringify(n)}`;throw new i.ValidationError(a,[{path:[`value`],message:a}])}function hasCurrencyAmount(e){return typeof e!=`object`||`value`in e&&e.value!=null}function parseQualifiedAttribute(e){let t=e.indexOf(`__`);return t<=0||t+2>=e.length?{kind:`scalar`,attribute:e}:{kind:`qualified`,root:e.slice(0,t),property:e.slice(t+2)}}function buildQualifiedAttribute(e,t){return`${e}__${t}`}const m=a.ATTRIBUTE_FILTER_OPERATORS.text,re=[`is`,`is_not`,`is_empty`,`is_not_empty`],h=[`is`,`is_not`,`any_of`,`none_of`,`is_empty`,`is_not_empty`],g={id:h,objectId:h,tenantId:h,label:a.ATTRIBUTE_FILTER_OPERATORS.text,createdAt:a.ATTRIBUTE_FILTER_OPERATORS.date,updatedAt:a.ATTRIBUTE_FILTER_OPERATORS.date,deletedAt:a.ATTRIBUTE_FILTER_OPERATORS.date,createdBy:a.ATTRIBUTE_FILTER_OPERATORS.user,lastUpdatedBy:a.ATTRIBUTE_FILTER_OPERATORS.user,parentId:h,childIds:[`is_empty`,`is_not_empty`]},_=/* @__PURE__ */ new Set([`createdAt`,`updatedAt`,`deletedAt`]);function offeredOn(e,t){return _.has(e)?t.filter(e=>e!==`on_day_month`):t}function fullyOffered(e,t,n,r){return{target:e,attribute:t,...r?{property:r}:{},operators:n,offered:n}}function attributeFilterTarget(e){let t=o.isHierarchyAttribute(e)?systemColumnFilterTarget(e.name):void 0;if(t)return t;let n=a.getAttributeFilterOperators(e);return{target:e.name,attribute:e.name,operators:n,offered:offeredOn(e.name,n)}}function locationPartFilterTarget(e,t){return{target:buildQualifiedAttribute(e,t),attribute:e,property:t,operators:m,offered:t===`country`?re:m}}function edgePropertyFilterTarget(e,t){let n=hasOperatorEntry(t.type)?a.ATTRIBUTE_FILTER_OPERATORS[t.type]:[];return fullyOffered(buildQualifiedAttribute(e,t.name),e,n,t.name)}function hasOperatorEntry(e){return Object.prototype.hasOwnProperty.call(a.ATTRIBUTE_FILTER_OPERATORS,e)}const v=[`is`,`is_not`,`is_empty`,`is_not_empty`];function isMetadataKeyPath(e){return e.startsWith(`metadata.`)?e.slice(9).split(`.`).every(e=>e.length>0):!1}function systemColumnFilterTarget(e){if(isMetadataKeyPath(e))return{target:e,attribute:e,operators:v,offered:[]};let t=Object.prototype.hasOwnProperty.call(g,e)?g[e]:void 0;return t?{target:e,attribute:e,operators:t,offered:offeredOn(e,t)}:void 0}function filterOperatorsOfType(e){return isAttributeType(e)?a.getAttributeFilterOperators({type:e}):[]}function isAttributeType(e){return a.ATTRIBUTE_TYPES.includes(e)}function isLocationPartOperator(e){return m.includes(e)}function carriesEdgeProperties(e){return a.hasTypeTrait(e.type,`qualified`)}function filterTargetsOf(e){let t=[];for(let n of e){if(n.type===`location`){for(let e of a.LOCATION_FILTER_PROPERTIES)t.push(locationPartFilterTarget(n.name,e));continue}if(t.push(attributeFilterTarget(n)),!carriesEdgeProperties(n))continue;let e=n.properties?.definitions;for(let r of e??[])t.push(edgePropertyFilterTarget(n.name,r))}let n=new Set(e.map(e=>e.name));for(let e of Object.keys(g)){if(n.has(e))continue;let r=systemColumnFilterTarget(e);r&&t.push(r)}return t.filter(e=>e.operators.length>0)}const y={eq:`is`,equals:`is`,equal:`is`,"==":`is`,"=":`is`,neq:`is_not`,notEqual:`is_not`,isNot:`is_not`,"!=":`is_not`,"<>":`is_not`,lt:`less_than`,"<":`less_than`,gt:`greater_than`,">":`greater_than`,lte:`less_or_equal`,"<=":`less_or_equal`,gte:`greater_or_equal`,">=":`greater_or_equal`,in:`any_of`,isAnyOf:`any_of`,anyOf:`any_of`,oneOf:`any_of`,notIn:`none_of`,not_in:`none_of`,isNoneOf:`none_of`,noneOf:`none_of`,notOneOf:`none_of`,startsWith:`starts_with`,beginsWith:`starts_with`,endsWith:`ends_with`,doesNotContain:`not_contains`,notContain:`not_contains`,isEmpty:`is_empty`,isNotEmpty:`is_not_empty`};function normalizeOperator(e){return y[e]??e}function normalizeFilterRule(e){let t=normalizeOperator(e.operator);return t===e.operator?e:{...e,operator:t}}const b=864e5,x=/* @__PURE__ */ new Set([`days`,`weeks`,`months`,`years`]),S=/* @__PURE__ */ new Set([`past`,`future`]);function isRelativeDateValue(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.amount==`number`&&Number.isFinite(t.amount)&&t.amount>0&&typeof t.unit==`string`&&x.has(t.unit)&&typeof t.direction==`string`&&S.has(t.direction)}function utcDayStart(e){return Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}function shiftUtcDay(e,t,n){if(n===`days`)return e+t*b;if(n===`weeks`)return e+t*7*b;let r=new Date(e),i=r.getUTCFullYear()+(n===`years`?t:0),a=r.getUTCMonth()+(n===`months`?t:0),o=new Date(Date.UTC(i,a+1,0)).getUTCDate();return Date.UTC(i,a,Math.min(r.getUTCDate(),o))}function resolveIsWithinBounds(e,t=/* @__PURE__ */ new Date){if(!isRelativeDateValue(e))return null;let n=utcDayStart(t),r=Math.trunc(e.amount),i=e.direction===`past`?{startMs:shiftUtcDay(n,-r,e.unit),endMs:n+b}:{startMs:n,endMs:shiftUtcDay(n,r,e.unit)+b};return Number.isFinite(i.startMs)&&Number.isFinite(i.endMs)?i:null}function resolveUtcDayBounds(e){if(!Number.isFinite(e))return null;let t=utcDayStart(new Date(e));return Number.isFinite(t)?{startMs:t,endMs:t+b}:null}function toUtcDayString(e){return new Date(e).toISOString().slice(0,10)}const C=/* @__PURE__ */ new Set([`relation`,`document`,`user`]),w={id:`text`,objectId:`text`,objectName:`text`,tenantId:`text`,label:`text`,createdAt:`date`,updatedAt:`date`,deletedAt:`date`,deletedBy:`user`,createdBy:`user`,lastUpdatedBy:`user`,visibility:`select`,ownedBy:`user`,parentId:`text`,childIds:`relation`},T={before:`"less_than"`,after:`"greater_than"`,on_or_before:`"less_or_equal"`,on_or_after:`"greater_or_equal"`,is_checked:`"is" with value true`,is_not_checked:`"is" with value false`,day_month_eq:`"on_day_month"`},ie=new Set(Object.entries(a.ATTRIBUTE_FILTER_OPERATORS).filter(([,e])=>e.includes(`any_of`)&&!e.includes(`contains`)).map(([e])=>e)),ae={contains:`any_of`,not_contains:`none_of`};function resolveCanonicalOperator(e,t){let n=T[e];if(n){let t=`Unknown filter operator "${e}" — use ${n}`;throw new i.ValidationError(t,[{path:[`operator`],message:t}])}let r=normalizeOperator(e),a=ae[r];if(a&&ie.has(t)){let e=`Operator "${r}" is not valid for type "${t}" — use "${a}"`;throw new i.ValidationError(e,[{path:[`operator`],message:e}])}return r}function assertPropertyOperator(e,t,n){let r=resolveCanonicalOperator(e,t);if(!n.includes(r)){let r=`Operator "${e}" is not valid for property type "${t}". Valid operators: ${n.length?n.join(`, `):`(no operators registered for this type)`}.`;throw new i.ValidationError(r,[{path:[`operator`],message:r}])}return r}function assertRelativeDateValue(e){if(e.operator===`is_within`&&!isRelativeDateValue(e.value)){let e=`Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }`;throw new i.ValidationError(e,[{path:[`value`],message:e}])}}const oe=/^(\d{4}-\d{2}-\d{2})(?:[T ](?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|[+-](?:(?:0\d|1[0-3])(?::[0-5]\d)?|14(?::00)?))?)?$/,E=/* @__PURE__ */ new Set([`is`,`is_not`,`less_than`,`less_or_equal`,`greater_than`,`greater_or_equal`]);function assertAbsoluteDateValue(e,t){if(t!==`date`||!E.has(e.operator))return;let n=e.value;if(n==null||isDynamicValue(n)||typeof n==`string`&&isCastableDay(n))return;let r=`Filter on a date attribute expected a YYYY-MM-DD day, optionally followed by a time, received ${JSON.stringify(n)}`;throw new i.ValidationError(r,[{path:[`value`],message:r}])}function isCastableDay(e){let t=oe.exec(e)?.[1];return!t||t.startsWith(`0000-`)?!1:isCalendarDay(t)}function resolveComparandType(e){return e.type===`formula`&&e.returnType===`date`?`date`:a.resolveEffectiveFilterType(e)}function applyCanonicalForm(e,t,n){e.operator=t,canonicalizeFilterValue(e,n),assertRelativeDateValue(e),assertAbsoluteDateValue(e,n)}function assertDynamicValueForAttribute(e,t){if(!isDynamicValue(e.value))return;let n=e.value;if(n.dynamic===`actor`&&t!==`user`){let e=`actor token (@me) is only valid on user attributes, not "${t}"`;throw new i.ValidationError(e,[{path:[`value`],message:e}])}if(n.dynamic===`date`&&t!==`date`){let e=`date token (@today/@now) is only valid on date attributes, not "${t}"`;throw new i.ValidationError(e,[{path:[`value`],message:e}])}}const D=a.LOCATION_FILTER_PROPERTIES.map(e=>`"${e}"`).join(`, `);function operatorList(e){return e.length?e.join(`, `):`(not filterable)`}function qualifyWithSchema(e){if(C.has(e.type))return e.properties}function locationPartsHint(e){return e===`location`?` A location is filtered on one of its parts: set "property" to one of ${D} and use a text operator (e.g. contains).`:``}function dottedPathHint(e,t,n){let r=` Dotted paths are not supported — `;if(n.type===`location`)return`${r}set "attribute" to "${e}" and "property" to ${a.isLocationFilterProperty(t)?`"${t}"`:`one of ${D}`}.`;let i=qualifyWithSchema(n);if(i){let n=i.definitions.map(e=>`"${e.name}"`).join(`, `);return`${r}set "attribute" to "${e}" and "property" to ${i.definitions.some(e=>e.name===t)?`"${t}"`:`one of ${n}`} to filter on the edge property.`}let o=attributeFilterTarget(n).operators;return`${r}${o.length?`set "attribute" to "${e}" and use one of ${o.join(`, `)}`:`"${e}" is not filterable`}; the full-text "query" parameter matches tokens by relevance, not values.`}function collectQualifiedRuleIssues(e,t){try{return validateQualifiedRule({...e},t),[]}catch(e){if(!(e instanceof i.ValidationError))throw e;return e.errors.map(e=>({...e,path:[...e.path]}))}}function validateQualifiedRule(e,t){if(typeof e.attribute!=`string`){let e=`A filter rule needs an attribute: filters are one combinator and a flat list of rules`;throw new i.ValidationError(e,[{path:[`attribute`],message:e}])}let n=t.attributes.find(t=>t.name===e.attribute),r=n?[]:systemColumnFilterTarget(e.attribute)?.operators??[];if(!n&&r.length===0){let[n,...r]=e.attribute.split(`.`),a=r.length>0?t.attributes.find(e=>e.name===n):void 0,o=a?dottedPathHint(n??``,r[0]??``,a):e.attribute.includes(`.`)?` Dotted paths are not supported — filter on the attribute name alone with a structured operator (contains, any_of, …); the full-text "query" parameter matches tokens by relevance, not values.`:``,s=`Unknown attribute: ${e.attribute}${o}`;throw new i.ValidationError(s,[{path:[`attribute`],message:s}])}if(e.quantifier!==void 0&&!e.property){let e=`quantifier is only valid on qualified edge rules (set "property")`;throw new i.ValidationError(e,[{path:[`quantifier`],message:e}])}if(!n){if(e.property)throw new i.ValidationError(`Cannot qualify system attribute "${e.attribute}"`,[{path:[`property`],message:`"${e.attribute}" is a system column, not a reference`}]);let t=w[e.attribute]??`text`,n=resolveCanonicalOperator(e.operator,t);if(!r.includes(n)){let t=`Operator "${e.operator}" is not valid for system attribute "${e.attribute}". Valid operators: ${r.join(`, `)}.`;throw new i.ValidationError(t,[{path:[`operator`],message:t}])}applyCanonicalForm(e,n,t);return}if(!e.property){assertDynamicValueForAttribute(e,n.type);let t=attributeFilterTarget(n).operators,r=resolveCanonicalOperator(e.operator,n.type);if(!t.includes(r)){let r=`Operator "${e.operator}" is not valid for attribute "${n.name}". Valid operators: ${operatorList(t)}.${locationPartsHint(n.type)}`;throw new i.ValidationError(r,[{path:[`operator`],message:r}])}applyCanonicalForm(e,r,resolveComparandType(n));return}if(n.type===`location`){if(e.quantifier!==void 0){let e=`quantifier is not valid on a location part — a location is one value, not a set of edges`;throw new i.ValidationError(e,[{path:[`quantifier`],message:e}])}if(!a.isLocationFilterProperty(e.property)){let t=`Property "${e.property}" is not a part of location "${e.attribute}". Valid parts: ${D}.`;throw new i.ValidationError(t,[{path:[`property`],message:t}])}assertDynamicValueForAttribute(e,`text`);let{operators:t}=locationPartFilterTarget(n.name,e.property);applyCanonicalForm(e,assertPropertyOperator(e.operator,`text`,t),`text`);return}if(!C.has(n.type))throw new i.ValidationError(`Cannot qualify ${n.type} attribute "${e.attribute}"`,[{path:[`property`],message:`Attribute "${e.attribute}" is not a reference type`}]);let o=n.properties;if(!o)throw new i.ValidationError(`Attribute "${e.attribute}" has no qualifyWith schema`,[{path:[`property`],message:`"${e.attribute}" has no qualifyWith`}]);let s=o.definitions.find(t=>t.name===e.property);if(!s)throw new i.ValidationError(`Property "${e.property}" not defined on "${e.attribute}".qualifyWith()`,[{path:[`property`],message:`Unknown property: ${e.property}`}]);let{operators:c}=edgePropertyFilterTarget(n.name,s);applyCanonicalForm(e,assertPropertyOperator(e.operator,s.type,c),s.type)}const O=s.array(s.string()).max(n.SCHEMA_LIMITS.columnsPerTab),k=s.array(s.string().min(1)).max(n.SCHEMA_LIMITS.columnsPerTab).refine(e=>new Set(e).size===e.length,{message:`Displayed attribute names must be unique`}),A=s.object({attribute:s.string().describe(`Attribute to sort by`),direction:s.enum([`asc`,`desc`]).describe(`asc or desc`)}).strict(),j=s.array(A).max(n.SCHEMA_LIMITS.sortsPerTab),M=s.object({amount:s.number().describe(`Count`),unit:s.enum([`days`,`weeks`,`months`,`years`]).describe(`Unit`),direction:s.enum([`past`,`future`]).describe(`Past or future`)}).strict(),N=s.object({value:s.number().nullable().describe(`Amount`),code:s.array(s.string()).optional().describe(`Currency codes`)}).strict(),P=s.object({phoneNumber:s.string().nullable().describe(`Number`),countryCode:s.string().optional().describe(`ISO country code`)}).strict(),F=s.discriminatedUnion(`dynamic`,[s.object({dynamic:s.literal(`actor`).describe(`Resolved at filter time`),ref:s.literal(`current`).describe(`The current actor`)}).strict(),s.object({dynamic:s.literal(`date`).describe(`Resolved at filter time`),anchor:s.enum([`today`,`now`]).describe(`Anchor`)}).strict()]),I=s.object({month:s.number().describe(`1-12`),day:s.number().describe(`Day`)}).strict(),L=s.union([s.string(),s.number(),s.boolean(),s.array(s.string()),M,N,P,I,F,s.null()]),R=s.enum([`is`,`is_not`,`contains`,`not_contains`,`starts_with`,`ends_with`,`is_empty`,`is_not_empty`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`is_within`,`on_day_month`,`any_of`,`none_of`],{error:e=>{let t=e.input,n=typeof t==`string`?T[t]:void 0;return n?`Unknown filter operator "${t}" — use ${n}`:void 0}}),z=s.object({attribute:s.string().describe(`Attribute to filter on`),property:s.string().optional().describe(`Qualified edge property`),quantifier:s.enum([`any`,`none`]).optional().describe(`For a multi-value attribute`),operator:R.describe(`Comparison`),value:L.describe(`Comparison value, by attribute type`)}).strict(),B=s.array(z).max(n.SCHEMA_LIMITS.filterRulesPerTab),V=s.object({combinator:s.enum([`and`,`or`]).describe(`Match every rule or any rule`),rules:B.describe(`The rules`)}).strict(),H=s.object({object:s.string().optional().describe(`Every record of this object`),relation:s.string().optional().describe(`Records linked through this relation`)}).strict().superRefine((e,t)=>{e.object===void 0&&e.relation===void 0&&t.addIssue({code:`custom`,message:`Collection source must define an object, a relation, or both`})}).transform(e=>e.relation===void 0?{object:e.object}:e.object===void 0?{relation:e.relation}:{object:e.object,relation:e.relation}),U=1e4;function isPlainJsonObject(e){let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null&&t.constructor?.name===`Object`}function addJsonIssue(e,t,n=[]){e.addIssue({code:`custom`,message:t,path:n})}function pushJsonArrayChildren(e,t,n,r){for(let n of Reflect.ownKeys(e))n!==`length`&&(n===`__proto__`?addJsonIssue(r,`The __proto__ key is not allowed in custom props`,[...t.path,n]):typeof n!=`symbol`&&/^(0|[1-9]\d*)$/.test(n)||addJsonIssue(r,`Arrays cannot contain non-index JSON properties`,[...t.path,n]));for(let i=e.length-1;i>=0;i--){let a=Object.getOwnPropertyDescriptor(e,String(i)),o=[...t.path,i];a&&`value`in a?n.push({kind:`enter`,value:a.value,path:o,depth:t.depth+1}):addJsonIssue(r,`Sparse arrays are not valid JSON values`,o)}}function pushJsonObjectChildren(e,t,n,r){let i=Reflect.ownKeys(e);for(let a=i.length-1;a>=0;a--){let o=i[a],s=[...t.path,o];if(o===`__proto__`){addJsonIssue(r,`The __proto__ key is not allowed in custom props`,s);continue}if(typeof o==`symbol`){addJsonIssue(r,`Symbol keys are not valid JSON keys`,s);continue}let c=Object.getOwnPropertyDescriptor(e,o);c?.enumerable&&`value`in c?n.push({kind:`enter`,value:c.value,path:s,depth:t.depth+1}):addJsonIssue(r,`Custom props must contain enumerable data properties only`,s)}}function validateJsonProps(e,t){if(typeof e!=`object`||!e){addJsonIssue(t,`Expected a plain JSON object`);return}try{if(Array.isArray(e)||!isPlainJsonObject(e)){addJsonIssue(t,`Expected a plain JSON object`);return}}catch{addJsonIssue(t,`Custom props contain an object that cannot be safely inspected`);return}let n=/* @__PURE__ */ new WeakSet,r=[{kind:`enter`,value:e,path:[],depth:0}],i=0;for(;r.length>0;){let e=r.pop();if(!e)break;if(e.kind===`exit`){n.delete(e.value);continue}if(i++,i>U){addJsonIssue(t,`Custom props cannot exceed ${U.toLocaleString(`en-US`)} total JSON nodes`,e.path);return}if(e.depth>64){addJsonIssue(t,`Custom props cannot exceed depth 64`,e.path);continue}let a=e.value;if(!(a===null||typeof a==`string`||typeof a==`boolean`||typeof a==`number`&&Number.isFinite(a))){if(typeof a!=`object`)addJsonIssue(t,`Expected a JSON value`,e.path);else if(n.has(a))addJsonIssue(t,`Custom props cannot contain circular references`,e.path);else try{if(Array.isArray(a)){n.add(a),r.push({kind:`exit`,value:a}),pushJsonArrayChildren(a,e,r,t);continue}if(!isPlainJsonObject(a)){addJsonIssue(t,`Expected an array or plain JSON object`,e.path);continue}n.add(a),r.push({kind:`exit`,value:a}),pushJsonObjectChildren(a,e,r,t)}catch{addJsonIssue(t,`Custom props contain an object that cannot be safely inspected`,e.path)}}}}const W=s.unknown().superRefine(validateJsonProps).transform(e=>e),G=s.literal(u),K={span:G.optional().describe(`Columns of 12 this field occupies`),label:s.string().optional().describe(`Overrides the attribute's label`),readOnly:s.boolean().optional().describe(`Shows the value, not editable`)},q=s.object({attribute:s.string().describe(`Attribute API name shown by this field`),...K}).strict(),se=s.object({name:s.string().describe(`Group API name, unique in the form`),label:s.string().describe(`Label people see`),description:s.string().optional().describe(`Extra context under the label`),collapsible:s.boolean().optional().describe(`Whether the group can be collapsed`),collapsed:s.boolean().optional().describe(`Whether the group starts collapsed`),fields:s.array(q).max(n.SCHEMA_LIMITS.fieldsPerGroup).describe(`Fields in this group, in order`)}).strict();function refineFormContent(e,t){e.groups.reduce((e,t)=>e+t.fields.length,0)>n.SCHEMA_LIMITS.fieldsPerFormTab&&t.addIssue({code:`too_big`,origin:`array`,maximum:n.SCHEMA_LIMITS.fieldsPerFormTab,inclusive:!0,message:`A form content can contain at most ${n.SCHEMA_LIMITS.fieldsPerFormTab} fields`,path:[`groups`]});let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set;e.groups.forEach((e,n)=>{r.has(e.name)&&t.addIssue({code:`custom`,message:`Duplicate group name "${e.name}"`,path:[`groups`,n,`name`]}),r.add(e.name),e.fields.forEach((e,r)=>{i.has(e.attribute)&&t.addIssue({code:`custom`,message:`Duplicate field attribute "${e.attribute}"`,path:[`groups`,n,`fields`,r,`attribute`]}),i.add(e.attribute)})})}const J={name:s.string().describe(`Content API name, unique in the view`),label:s.string().optional().describe(`Label people see`),icon:r.iconNameSchema.optional().describe(`Icon name`),placement:s.enum([`main`,`aside`,`grid`]).describe(`main: the tab strip. aside: the side panel. grid: a page block`),width:G.optional().describe(`Page block width in twelfths of its line`),height:s.number().int().positive().optional().describe(`Page block height in rows, for kinds that stretch`),joined:s.boolean().optional().describe(`Page block sharing the card of the block before it`)},ce={...J,type:s.literal(`collection`),source:H.describe(`object: every record; relation: records linked to this record; both: records of object whose relation points at this record`),visibility:s.enum(t.LIST_VIEW_TAB_VISIBILITIES).optional().describe(`all: no scope; workspace: every member; private: viewer's own; shared: private records other members shared with the viewer`),columns:s.array(s.union([s.string(),s.object({relationProperty:s.string().refine(e=>e.trim().length>0).describe(`Qualified edge property shown as a column`)}).strict()])).max(n.SCHEMA_LIMITS.columnsPerTab).optional().describe(`Table columns, in order`),descriptionAttribute:s.string().optional().describe(`Secondary line under each row's title (list layout)`),displayAttributes:k.optional().describe(`Attributes shown on each card`),filters:V.optional().describe(`Restricts which records show`),sorts:j.optional().describe(`Sort order`),actions:s.enum([`create`,`update`,`delete`,`attach`,`detach`]).array().optional().describe(`Offered actions; absent = every action, [] = none`),openMode:s.enum([`page`,`peek`]).optional().describe(`page or peek (the record panel)`),createMode:s.enum([`page`,`peek`,`inline`]).optional().describe(`page, peek, or inline (creates without opening)`)},le=s.object({...ce,layout:s.enum([`table`,`list`,`kanban`]).describe(`table columns, list cards, kanban board grouped by a select/status attribute`),columnSizing:s.record(s.string(),s.number()).optional().describe(`Column widths in pixels, by attribute name`),groupByAttribute:s.string().optional().describe(`Kanban only: the select or status attribute that names the columns`),kanbanColumnOrder:s.array(s.string()).optional().describe(`Kanban: column order by option value`),kanbanColumnVisibility:s.record(s.string(),s.boolean()).optional().describe(`Kanban: which columns are shown`),kanbanPinnedColumns:s.array(s.string()).optional().describe(`Kanban: columns pinned first`)}).strict().superRefine((e,t)=>{let n=[`groupByAttribute`,`kanbanColumnOrder`,`kanbanColumnVisibility`,`kanbanPinnedColumns`];if(e.layout===`kanban`)e.groupByAttribute===void 0&&t.addIssue({code:`custom`,path:[`groupByAttribute`],message:`A kanban layout requires groupByAttribute`});else for(let r of n)e[r]!==void 0&&t.addIssue({code:`custom`,path:[r],message:`Only a kanban layout groups by an attribute`})}),Y={...J,type:s.literal(`form`),groups:s.array(se).max(n.SCHEMA_LIMITS.groupsPerFormTab).describe(`Field groups, in order`),formColumns:s.union([s.literal(1),s.literal(2),s.literal(3)]).optional().describe(`Grid columns, 1-3`),density:s.enum([`compact`,`comfortable`,`spacious`]).optional().describe(`Vertical spacing between fields`)},ue=s.object(Y).strict().superRefine(refineFormContent),de=s.object({...Y,groups:Y.groups.min(1,`A published form content requires at least one group`)}).strict().superRefine(refineFormContent),X=[le,s.object({...J,type:s.literal(`custom`),extension:s.string().describe(`Name of a registered extension`),parameters:s.lazy(()=>W).optional().describe(`Extension parameters`)}).strict(),s.object({...J,type:s.literal(`activity`)}).strict(),s.object({...J,type:s.literal(`richtext`),attribute:s.string().describe(`Richtext attribute edited in place`),titleAttribute:s.string().optional().describe(`Text attribute shown as the title`)}).strict(),s.object({...J,type:s.literal(`documents`),allowUpload:s.boolean().optional().describe(`Lets people add files here`),allowRemove:s.boolean().optional().describe(`Lets people remove files here`),hideAttachments:s.boolean().optional().describe(`Hides files attached elsewhere (e.g. emails)`),relations:s.array(s.string()).optional().describe(`Document relations shown; the record's own files if absent`)}).strict(),s.object({...J,type:s.literal(`forms`),objectName:s.string().optional().describe(`Limits to this object's published forms`)}).strict(),s.object({...J,type:s.literal(`emails`),emailAttributes:s.array(s.string()).max(n.SCHEMA_LIMITS.emailAttributesPerTab).describe(`Addresses`)}).strict(),s.object({...J,type:s.literal(`meetings`),emailAttributes:s.array(s.string()).max(n.SCHEMA_LIMITS.emailAttributesPerTab).describe(`Addresses`)}).strict(),s.object({...J,type:s.literal(`page`),page:s.object({object:s.string().describe(`Its object`),name:s.string().describe(`Its name`)}).strict().describe(`The record page this tab renders`)}).strict()],Z=s.discriminatedUnion(`type`,[ue,...X]),Q=s.discriminatedUnion(`type`,[de,...X]),$={name:s.string(),label:s.string(),description:s.string().optional(),icon:r.iconNameSchema.optional()};function contentViewBaseSchemaFor(e){let t=s.array(e).max(n.SCHEMA_LIMITS.tabsPerView);return s.discriminatedUnion(`context`,[s.object({...$,object:s.string(),context:s.enum([`collection`,`record`]),default:s.boolean().optional(),anchors:s.record(s.string(),s.object({after:s.string()}).strict()).optional(),contents:t}).strict(),s.object({...$,object:s.string().optional(),context:s.literal(`page`),home:s.boolean().optional(),contents:t}).strict()])}const fe=contentViewBaseSchemaFor(Z),pe=contentViewBaseSchemaFor(Q);function addDuplicateContentNameIssues(e,t){let n=/* @__PURE__ */ new Set;e.contents.forEach((e,r)=>{n.has(e.name)&&t.addIssue({code:`custom`,message:`Duplicate content name "${e.name}"`,path:[`contents`,r,`name`]}),n.add(e.name)})}const me=[`width`,`height`,`joined`];function addPlacementIssues(e,t){e.contents.forEach((n,r)=>{let i=n.placement===`grid`;if(!i)for(let e of me)n[e]!==void 0&&t.addIssue({code:`custom`,message:`Only a page block takes ${e}`,path:[`contents`,r,e]});e.context===`page`&&!i&&t.addIssue({code:`custom`,message:`Content "${n.name}" of a page must be placed on the grid`,path:[`contents`,r,`placement`]}),e.context!==`page`&&i&&t.addIssue({code:`custom`,message:`Content "${n.name}" cannot be placed on a grid outside a page`,path:[`contents`,r,`placement`]})}),e.contents.forEach((e,n)=>{e.type===`custom`&&e.extension===`heading`&&(e.label===void 0||e.label.trim()===``)&&t.addIssue({code:`custom`,message:`A heading needs a label`,path:[`contents`,n,`label`]})}),e.home&&e.object!==void 0&&t.addIssue({code:`custom`,message:`Only a standalone page can be the home`,path:[`home`]})}const he=fe.superRefine((e,t)=>{let n=e;addDuplicateContentNameIssues(n,t),addPlacementIssues(n,t)}),ge=pe.superRefine((e,t)=>{let n=e;addDuplicateContentNameIssues(n,t),addPlacementIssues(n,t),e.context!==`page`&&!e.contents.some(e=>e.placement===`main`)&&t.addIssue({code:`custom`,message:`A published view requires at least one main content`,path:[`contents`]})});Object.defineProperty(exports,"NO_VALUE_OPERATORS",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"OPERATORS_BY_TYPE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"PAGE_GRID_COLUMNS",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"QUALIFIED_SEPARATOR",{enumerable:!0,get:function(){return`__`}}),Object.defineProperty(exports,"REMOVED_OPERATOR_REPLACEMENTS",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"SYNONYM_ALIASES",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"SYSTEM_FILTER_ATTRIBUTE_TYPES",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"attributeFilterTarget",{enumerable:!0,get:function(){return attributeFilterTarget}}),Object.defineProperty(exports,"buildQualifiedAttribute",{enumerable:!0,get:function(){return buildQualifiedAttribute}}),Object.defineProperty(exports,"canonicalizeFilterValue",{enumerable:!0,get:function(){return canonicalizeFilterValue}}),Object.defineProperty(exports,"collectQualifiedRuleIssues",{enumerable:!0,get:function(){return collectQualifiedRuleIssues}}),Object.defineProperty(exports,"collectionContentSourceSchema",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"columnsSchema",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"contentViewDefinitionSchema",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"currentActor",{enumerable:!0,get:function(){return currentActor}}),Object.defineProperty(exports,"displayAttributesSchema",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"draftContentViewDefinitionSchema",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"edgePropertyFilterTarget",{enumerable:!0,get:function(){return edgePropertyFilterTarget}}),Object.defineProperty(exports,"extractCurrencyFilterValue",{enumerable:!0,get:function(){return extractCurrencyFilterValue}}),Object.defineProperty(exports,"extractFilterValue",{enumerable:!0,get:function(){return extractFilterValue}}),Object.defineProperty(exports,"filterOperatorsOfType",{enumerable:!0,get:function(){return filterOperatorsOfType}}),Object.defineProperty(exports,"filterStateSchema",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"filterTargetsOf",{enumerable:!0,get:function(){return filterTargetsOf}}),Object.defineProperty(exports,"getOperatorPolarity",{enumerable:!0,get:function(){return getOperatorPolarity}}),Object.defineProperty(exports,"getRollupFilterOperators",{enumerable:!0,get:function(){return getRollupFilterOperators}}),Object.defineProperty(exports,"isBlockWidth",{enumerable:!0,get:function(){return isBlockWidth}}),Object.defineProperty(exports,"isCalendarDay",{enumerable:!0,get:function(){return isCalendarDay}}),Object.defineProperty(exports,"isDynamicValue",{enumerable:!0,get:function(){return isDynamicValue}}),Object.defineProperty(exports,"isLocationPartOperator",{enumerable:!0,get:function(){return isLocationPartOperator}}),Object.defineProperty(exports,"isNoValueOperator",{enumerable:!0,get:function(){return isNoValueOperator}}),Object.defineProperty(exports,"isRelativeDateValue",{enumerable:!0,get:function(){return isRelativeDateValue}}),Object.defineProperty(exports,"isSetMembershipOperator",{enumerable:!0,get:function(){return isSetMembershipOperator}}),Object.defineProperty(exports,"locationPartFilterTarget",{enumerable:!0,get:function(){return locationPartFilterTarget}}),Object.defineProperty(exports,"normalizeFilterRule",{enumerable:!0,get:function(){return normalizeFilterRule}}),Object.defineProperty(exports,"normalizeForEdgeRpc",{enumerable:!0,get:function(){return normalizeForEdgeRpc}}),Object.defineProperty(exports,"normalizeOperator",{enumerable:!0,get:function(){return normalizeOperator}}),Object.defineProperty(exports,"now",{enumerable:!0,get:function(){return now}}),Object.defineProperty(exports,"parseQualifiedAttribute",{enumerable:!0,get:function(){return parseQualifiedAttribute}}),Object.defineProperty(exports,"publishedViewContentDefinitionSchema",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"resolveIsWithinBounds",{enumerable:!0,get:function(){return resolveIsWithinBounds}}),Object.defineProperty(exports,"resolveUtcDayBounds",{enumerable:!0,get:function(){return resolveUtcDayBounds}}),Object.defineProperty(exports,"sortsSchema",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"systemColumnFilterTarget",{enumerable:!0,get:function(){return systemColumnFilterTarget}}),Object.defineProperty(exports,"toMultiValueOperator",{enumerable:!0,get:function(){return toMultiValueOperator}}),Object.defineProperty(exports,"toUtcDayString",{enumerable:!0,get:function(){return toUtcDayString}}),Object.defineProperty(exports,"today",{enumerable:!0,get:function(){return today}}),Object.defineProperty(exports,"twelfthsSchema",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"validateQualifiedRule",{enumerable:!0,get:function(){return validateQualifiedRule}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import"./zod-locale.mjs";import{LIST_VIEW_TAB_VISIBILITIES as e}from"./objects-LC_PpZf5.mjs";import{SCHEMA_LIMITS as t}from"./limits-DVUX5n4b.mjs";import{iconNameSchema as n}from"./primitives-BlZoUw54.mjs";import{ValidationError as r}from"./exceptions.mjs";import{ATTRIBUTE_FILTER_OPERATORS as i,ATTRIBUTE_TYPES as a,LOCATION_FILTER_PROPERTIES as o,getAttributeFilterOperators as s,getRollupFilterOperators as c,hasTypeTrait as l,isLocationFilterProperty as u,resolveEffectiveFilterType as ee}from"./attributes-DYUkML5S.mjs";import{isHierarchyAttribute as d}from"./system-attributes-vbOzw6KO.mjs";import*as f from"zod";const te=i,p=[`is_empty`,`is_not_empty`];function isNoValueOperator(e){return p.includes(e)}function getRollupFilterOperators(e){return c(e)}const m=[1,2,3,4,5,6,7,8,9,10,11,12],h=m.length;function isBlockWidth(e){return m.includes(e)}const ne=/^\d{4}-\d{2}-\d{2}$/u;function isCalendarDay(e){if(!ne.test(e))return!1;let t=/* @__PURE__ */ new Date(`${e}T00:00:00Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e}function isDynamicValue(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`dynamic`in e}function currentActor(){return{dynamic:`actor`,ref:`current`}}function today(){return{dynamic:`date`,anchor:`today`}}function now(){return{dynamic:`date`,anchor:`now`}}function toAmount(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;if(typeof e==`string`&&e.trim()!==``){let t=Number(e);return Number.isFinite(t)?t:null}return null}function extractCurrencyFilterValue(e){return typeof e==`object`&&e?`value`in e?toAmount(e.value):null:toAmount(e)}function extractFilterValue(e){return e==null?null:typeof e==`object`&&`value`in e?e.value??null:e}const re=/* @__PURE__ */ new Set([`is_not`,`not_contains`,`none_of`,`is_empty`]),ie={is_not:`is`,not_contains:`contains`,none_of:`any_of`,is_empty:`is_not_empty`};function getOperatorPolarity(e){return re.has(e)?`none`:`any`}function normalizeForEdgeRpc(e){return ie[e]??e}const g={is:`any_of`,is_not:`none_of`};function toMultiValueOperator(e){return g[e]??e}const ae=new Set(Object.values(g).filter(e=>e!==void 0));function isSetMembershipOperator(e){return ae.has(e)}function canonicalizeFilterValue(e,t){let n=e.value;if(isNoValueOperator(e.operator)||n==null||isDynamicValue(n))return;if(isSetMembershipOperator(e.operator)){Array.isArray(n)||(e.value=[n]);return}if(t!==`currency`)return;let i=extractCurrencyFilterValue(n);if(i!==null){e.value=i;return}if(!hasCurrencyAmount(n))return;let a=`Filter on a currency attribute expected a numeric amount, received ${JSON.stringify(n)}`;throw new r(a,[{path:[`value`],message:a}])}function hasCurrencyAmount(e){return typeof e!=`object`||`value`in e&&e.value!=null}const oe=`__`;function parseQualifiedAttribute(e){let t=e.indexOf(`__`);return t<=0||t+2>=e.length?{kind:`scalar`,attribute:e}:{kind:`qualified`,root:e.slice(0,t),property:e.slice(t+2)}}function buildQualifiedAttribute(e,t){return`${e}__${t}`}const _=i.text,se=[`is`,`is_not`,`is_empty`,`is_not_empty`],v=[`is`,`is_not`,`any_of`,`none_of`,`is_empty`,`is_not_empty`],y={id:v,objectId:v,tenantId:v,label:i.text,createdAt:i.date,updatedAt:i.date,deletedAt:i.date,createdBy:i.user,lastUpdatedBy:i.user,parentId:v,childIds:[`is_empty`,`is_not_empty`]},b=/* @__PURE__ */ new Set([`createdAt`,`updatedAt`,`deletedAt`]);function offeredOn(e,t){return b.has(e)?t.filter(e=>e!==`on_day_month`):t}function fullyOffered(e,t,n,r){return{target:e,attribute:t,...r?{property:r}:{},operators:n,offered:n}}function attributeFilterTarget(e){let t=d(e)?systemColumnFilterTarget(e.name):void 0;if(t)return t;let n=s(e);return{target:e.name,attribute:e.name,operators:n,offered:offeredOn(e.name,n)}}function locationPartFilterTarget(e,t){return{target:buildQualifiedAttribute(e,t),attribute:e,property:t,operators:_,offered:t===`country`?se:_}}function edgePropertyFilterTarget(e,t){let n=hasOperatorEntry(t.type)?i[t.type]:[];return fullyOffered(buildQualifiedAttribute(e,t.name),e,n,t.name)}function hasOperatorEntry(e){return Object.prototype.hasOwnProperty.call(i,e)}const ce=[`is`,`is_not`,`is_empty`,`is_not_empty`];function isMetadataKeyPath(e){return e.startsWith(`metadata.`)?e.slice(9).split(`.`).every(e=>e.length>0):!1}function systemColumnFilterTarget(e){if(isMetadataKeyPath(e))return{target:e,attribute:e,operators:ce,offered:[]};let t=Object.prototype.hasOwnProperty.call(y,e)?y[e]:void 0;return t?{target:e,attribute:e,operators:t,offered:offeredOn(e,t)}:void 0}function filterOperatorsOfType(e){return isAttributeType(e)?s({type:e}):[]}function isAttributeType(e){return a.includes(e)}function isLocationPartOperator(e){return _.includes(e)}function carriesEdgeProperties(e){return l(e.type,`qualified`)}function filterTargetsOf(e){let t=[];for(let n of e){if(n.type===`location`){for(let e of o)t.push(locationPartFilterTarget(n.name,e));continue}if(t.push(attributeFilterTarget(n)),!carriesEdgeProperties(n))continue;let e=n.properties?.definitions;for(let r of e??[])t.push(edgePropertyFilterTarget(n.name,r))}let n=new Set(e.map(e=>e.name));for(let e of Object.keys(y)){if(n.has(e))continue;let r=systemColumnFilterTarget(e);r&&t.push(r)}return t.filter(e=>e.operators.length>0)}const x={eq:`is`,equals:`is`,equal:`is`,"==":`is`,"=":`is`,neq:`is_not`,notEqual:`is_not`,isNot:`is_not`,"!=":`is_not`,"<>":`is_not`,lt:`less_than`,"<":`less_than`,gt:`greater_than`,">":`greater_than`,lte:`less_or_equal`,"<=":`less_or_equal`,gte:`greater_or_equal`,">=":`greater_or_equal`,in:`any_of`,isAnyOf:`any_of`,anyOf:`any_of`,oneOf:`any_of`,notIn:`none_of`,not_in:`none_of`,isNoneOf:`none_of`,noneOf:`none_of`,notOneOf:`none_of`,startsWith:`starts_with`,beginsWith:`starts_with`,endsWith:`ends_with`,doesNotContain:`not_contains`,notContain:`not_contains`,isEmpty:`is_empty`,isNotEmpty:`is_not_empty`};function normalizeOperator(e){return x[e]??e}function normalizeFilterRule(e){let t=normalizeOperator(e.operator);return t===e.operator?e:{...e,operator:t}}const S=864e5,le=/* @__PURE__ */ new Set([`days`,`weeks`,`months`,`years`]),ue=/* @__PURE__ */ new Set([`past`,`future`]);function isRelativeDateValue(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.amount==`number`&&Number.isFinite(t.amount)&&t.amount>0&&typeof t.unit==`string`&&le.has(t.unit)&&typeof t.direction==`string`&&ue.has(t.direction)}function utcDayStart(e){return Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}function shiftUtcDay(e,t,n){if(n===`days`)return e+t*S;if(n===`weeks`)return e+t*7*S;let r=new Date(e),i=r.getUTCFullYear()+(n===`years`?t:0),a=r.getUTCMonth()+(n===`months`?t:0),o=new Date(Date.UTC(i,a+1,0)).getUTCDate();return Date.UTC(i,a,Math.min(r.getUTCDate(),o))}function resolveIsWithinBounds(e,t=/* @__PURE__ */ new Date){if(!isRelativeDateValue(e))return null;let n=utcDayStart(t),r=Math.trunc(e.amount),i=e.direction===`past`?{startMs:shiftUtcDay(n,-r,e.unit),endMs:n+S}:{startMs:n,endMs:shiftUtcDay(n,r,e.unit)+S};return Number.isFinite(i.startMs)&&Number.isFinite(i.endMs)?i:null}function resolveUtcDayBounds(e){if(!Number.isFinite(e))return null;let t=utcDayStart(new Date(e));return Number.isFinite(t)?{startMs:t,endMs:t+S}:null}function toUtcDayString(e){return new Date(e).toISOString().slice(0,10)}const C=/* @__PURE__ */ new Set([`relation`,`document`,`user`]),w={id:`text`,objectId:`text`,objectName:`text`,tenantId:`text`,label:`text`,createdAt:`date`,updatedAt:`date`,deletedAt:`date`,deletedBy:`user`,createdBy:`user`,lastUpdatedBy:`user`,visibility:`select`,ownedBy:`user`,parentId:`text`,childIds:`relation`},T={before:`"less_than"`,after:`"greater_than"`,on_or_before:`"less_or_equal"`,on_or_after:`"greater_or_equal"`,is_checked:`"is" with value true`,is_not_checked:`"is" with value false`,day_month_eq:`"on_day_month"`},E=new Set(Object.entries(i).filter(([,e])=>e.includes(`any_of`)&&!e.includes(`contains`)).map(([e])=>e)),D={contains:`any_of`,not_contains:`none_of`};function resolveCanonicalOperator(e,t){let n=T[e];if(n){let t=`Unknown filter operator "${e}" — use ${n}`;throw new r(t,[{path:[`operator`],message:t}])}let i=normalizeOperator(e),a=D[i];if(a&&E.has(t)){let e=`Operator "${i}" is not valid for type "${t}" — use "${a}"`;throw new r(e,[{path:[`operator`],message:e}])}return i}function assertPropertyOperator(e,t,n){let i=resolveCanonicalOperator(e,t);if(!n.includes(i)){let i=`Operator "${e}" is not valid for property type "${t}". Valid operators: ${n.length?n.join(`, `):`(no operators registered for this type)`}.`;throw new r(i,[{path:[`operator`],message:i}])}return i}function assertRelativeDateValue(e){if(e.operator===`is_within`&&!isRelativeDateValue(e.value)){let e=`Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }`;throw new r(e,[{path:[`value`],message:e}])}}const O=/^(\d{4}-\d{2}-\d{2})(?:[T ](?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|[+-](?:(?:0\d|1[0-3])(?::[0-5]\d)?|14(?::00)?))?)?$/,k=/* @__PURE__ */ new Set([`is`,`is_not`,`less_than`,`less_or_equal`,`greater_than`,`greater_or_equal`]);function assertAbsoluteDateValue(e,t){if(t!==`date`||!k.has(e.operator))return;let n=e.value;if(n==null||isDynamicValue(n)||typeof n==`string`&&isCastableDay(n))return;let i=`Filter on a date attribute expected a YYYY-MM-DD day, optionally followed by a time, received ${JSON.stringify(n)}`;throw new r(i,[{path:[`value`],message:i}])}function isCastableDay(e){let t=O.exec(e)?.[1];return!t||t.startsWith(`0000-`)?!1:isCalendarDay(t)}function resolveComparandType(e){return e.type===`formula`&&e.returnType===`date`?`date`:ee(e)}function applyCanonicalForm(e,t,n){e.operator=t,canonicalizeFilterValue(e,n),assertRelativeDateValue(e),assertAbsoluteDateValue(e,n)}function assertDynamicValueForAttribute(e,t){if(!isDynamicValue(e.value))return;let n=e.value;if(n.dynamic===`actor`&&t!==`user`){let e=`actor token (@me) is only valid on user attributes, not "${t}"`;throw new r(e,[{path:[`value`],message:e}])}if(n.dynamic===`date`&&t!==`date`){let e=`date token (@today/@now) is only valid on date attributes, not "${t}"`;throw new r(e,[{path:[`value`],message:e}])}}const A=o.map(e=>`"${e}"`).join(`, `);function operatorList(e){return e.length?e.join(`, `):`(not filterable)`}function qualifyWithSchema(e){if(C.has(e.type))return e.properties}function locationPartsHint(e){return e===`location`?` A location is filtered on one of its parts: set "property" to one of ${A} and use a text operator (e.g. contains).`:``}function dottedPathHint(e,t,n){let r=` Dotted paths are not supported — `;if(n.type===`location`)return`${r}set "attribute" to "${e}" and "property" to ${u(t)?`"${t}"`:`one of ${A}`}.`;let i=qualifyWithSchema(n);if(i){let n=i.definitions.map(e=>`"${e.name}"`).join(`, `);return`${r}set "attribute" to "${e}" and "property" to ${i.definitions.some(e=>e.name===t)?`"${t}"`:`one of ${n}`} to filter on the edge property.`}let a=attributeFilterTarget(n).operators;return`${r}${a.length?`set "attribute" to "${e}" and use one of ${a.join(`, `)}`:`"${e}" is not filterable`}; the full-text "query" parameter matches tokens by relevance, not values.`}function collectQualifiedRuleIssues(e,t){try{return validateQualifiedRule({...e},t),[]}catch(e){if(!(e instanceof r))throw e;return e.errors.map(e=>({...e,path:[...e.path]}))}}function validateQualifiedRule(e,t){if(typeof e.attribute!=`string`){let e=`A filter rule needs an attribute: filters are one combinator and a flat list of rules`;throw new r(e,[{path:[`attribute`],message:e}])}let n=t.attributes.find(t=>t.name===e.attribute),i=n?[]:systemColumnFilterTarget(e.attribute)?.operators??[];if(!n&&i.length===0){let[n,...i]=e.attribute.split(`.`),a=i.length>0?t.attributes.find(e=>e.name===n):void 0,o=a?dottedPathHint(n??``,i[0]??``,a):e.attribute.includes(`.`)?` Dotted paths are not supported — filter on the attribute name alone with a structured operator (contains, any_of, …); the full-text "query" parameter matches tokens by relevance, not values.`:``,s=`Unknown attribute: ${e.attribute}${o}`;throw new r(s,[{path:[`attribute`],message:s}])}if(e.quantifier!==void 0&&!e.property){let e=`quantifier is only valid on qualified edge rules (set "property")`;throw new r(e,[{path:[`quantifier`],message:e}])}if(!n){if(e.property)throw new r(`Cannot qualify system attribute "${e.attribute}"`,[{path:[`property`],message:`"${e.attribute}" is a system column, not a reference`}]);let t=w[e.attribute]??`text`,n=resolveCanonicalOperator(e.operator,t);if(!i.includes(n)){let t=`Operator "${e.operator}" is not valid for system attribute "${e.attribute}". Valid operators: ${i.join(`, `)}.`;throw new r(t,[{path:[`operator`],message:t}])}applyCanonicalForm(e,n,t);return}if(!e.property){assertDynamicValueForAttribute(e,n.type);let t=attributeFilterTarget(n).operators,i=resolveCanonicalOperator(e.operator,n.type);if(!t.includes(i)){let i=`Operator "${e.operator}" is not valid for attribute "${n.name}". Valid operators: ${operatorList(t)}.${locationPartsHint(n.type)}`;throw new r(i,[{path:[`operator`],message:i}])}applyCanonicalForm(e,i,resolveComparandType(n));return}if(n.type===`location`){if(e.quantifier!==void 0){let e=`quantifier is not valid on a location part — a location is one value, not a set of edges`;throw new r(e,[{path:[`quantifier`],message:e}])}if(!u(e.property)){let t=`Property "${e.property}" is not a part of location "${e.attribute}". Valid parts: ${A}.`;throw new r(t,[{path:[`property`],message:t}])}assertDynamicValueForAttribute(e,`text`);let{operators:t}=locationPartFilterTarget(n.name,e.property);applyCanonicalForm(e,assertPropertyOperator(e.operator,`text`,t),`text`);return}if(!C.has(n.type))throw new r(`Cannot qualify ${n.type} attribute "${e.attribute}"`,[{path:[`property`],message:`Attribute "${e.attribute}" is not a reference type`}]);let a=n.properties;if(!a)throw new r(`Attribute "${e.attribute}" has no qualifyWith schema`,[{path:[`property`],message:`"${e.attribute}" has no qualifyWith`}]);let o=a.definitions.find(t=>t.name===e.property);if(!o)throw new r(`Property "${e.property}" not defined on "${e.attribute}".qualifyWith()`,[{path:[`property`],message:`Unknown property: ${e.property}`}]);let{operators:s}=edgePropertyFilterTarget(n.name,o);applyCanonicalForm(e,assertPropertyOperator(e.operator,o.type,s),o.type)}const j=f.array(f.string()).max(t.columnsPerTab),M=f.array(f.string().min(1)).max(t.columnsPerTab).refine(e=>new Set(e).size===e.length,{message:`Displayed attribute names must be unique`}),N=f.object({attribute:f.string().describe(`Attribute to sort by`),direction:f.enum([`asc`,`desc`]).describe(`asc or desc`)}).strict(),P=f.array(N).max(t.sortsPerTab),F=f.object({amount:f.number().describe(`Count`),unit:f.enum([`days`,`weeks`,`months`,`years`]).describe(`Unit`),direction:f.enum([`past`,`future`]).describe(`Past or future`)}).strict(),I=f.object({value:f.number().nullable().describe(`Amount`),code:f.array(f.string()).optional().describe(`Currency codes`)}).strict(),L=f.object({phoneNumber:f.string().nullable().describe(`Number`),countryCode:f.string().optional().describe(`ISO country code`)}).strict(),R=f.discriminatedUnion(`dynamic`,[f.object({dynamic:f.literal(`actor`).describe(`Resolved at filter time`),ref:f.literal(`current`).describe(`The current actor`)}).strict(),f.object({dynamic:f.literal(`date`).describe(`Resolved at filter time`),anchor:f.enum([`today`,`now`]).describe(`Anchor`)}).strict()]),z=f.object({month:f.number().describe(`1-12`),day:f.number().describe(`Day`)}).strict(),B=f.union([f.string(),f.number(),f.boolean(),f.array(f.string()),F,I,L,z,R,f.null()]),V=f.enum([`is`,`is_not`,`contains`,`not_contains`,`starts_with`,`ends_with`,`is_empty`,`is_not_empty`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`is_within`,`on_day_month`,`any_of`,`none_of`],{error:e=>{let t=e.input,n=typeof t==`string`?T[t]:void 0;return n?`Unknown filter operator "${t}" — use ${n}`:void 0}}),H=f.object({attribute:f.string().describe(`Attribute to filter on`),property:f.string().optional().describe(`Qualified edge property`),quantifier:f.enum([`any`,`none`]).optional().describe(`For a multi-value attribute`),operator:V.describe(`Comparison`),value:B.describe(`Comparison value, by attribute type`)}).strict(),U=f.array(H).max(t.filterRulesPerTab),W=f.object({combinator:f.enum([`and`,`or`]).describe(`Match every rule or any rule`),rules:U.describe(`The rules`)}).strict(),G=f.object({object:f.string().optional().describe(`Every record of this object`),relation:f.string().optional().describe(`Records linked through this relation`)}).strict().superRefine((e,t)=>{e.object===void 0&&e.relation===void 0&&t.addIssue({code:`custom`,message:`Collection source must define an object, a relation, or both`})}).transform(e=>e.relation===void 0?{object:e.object}:e.object===void 0?{relation:e.relation}:{object:e.object,relation:e.relation}),K=1e4;function isPlainJsonObject(e){let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null&&t.constructor?.name===`Object`}function addJsonIssue(e,t,n=[]){e.addIssue({code:`custom`,message:t,path:n})}function pushJsonArrayChildren(e,t,n,r){for(let n of Reflect.ownKeys(e))n!==`length`&&(n===`__proto__`?addJsonIssue(r,`The __proto__ key is not allowed in custom props`,[...t.path,n]):typeof n!=`symbol`&&/^(0|[1-9]\d*)$/.test(n)||addJsonIssue(r,`Arrays cannot contain non-index JSON properties`,[...t.path,n]));for(let i=e.length-1;i>=0;i--){let a=Object.getOwnPropertyDescriptor(e,String(i)),o=[...t.path,i];a&&`value`in a?n.push({kind:`enter`,value:a.value,path:o,depth:t.depth+1}):addJsonIssue(r,`Sparse arrays are not valid JSON values`,o)}}function pushJsonObjectChildren(e,t,n,r){let i=Reflect.ownKeys(e);for(let a=i.length-1;a>=0;a--){let o=i[a],s=[...t.path,o];if(o===`__proto__`){addJsonIssue(r,`The __proto__ key is not allowed in custom props`,s);continue}if(typeof o==`symbol`){addJsonIssue(r,`Symbol keys are not valid JSON keys`,s);continue}let c=Object.getOwnPropertyDescriptor(e,o);c?.enumerable&&`value`in c?n.push({kind:`enter`,value:c.value,path:s,depth:t.depth+1}):addJsonIssue(r,`Custom props must contain enumerable data properties only`,s)}}function validateJsonProps(e,t){if(typeof e!=`object`||!e){addJsonIssue(t,`Expected a plain JSON object`);return}try{if(Array.isArray(e)||!isPlainJsonObject(e)){addJsonIssue(t,`Expected a plain JSON object`);return}}catch{addJsonIssue(t,`Custom props contain an object that cannot be safely inspected`);return}let n=/* @__PURE__ */ new WeakSet,r=[{kind:`enter`,value:e,path:[],depth:0}],i=0;for(;r.length>0;){let e=r.pop();if(!e)break;if(e.kind===`exit`){n.delete(e.value);continue}if(i++,i>K){addJsonIssue(t,`Custom props cannot exceed ${K.toLocaleString(`en-US`)} total JSON nodes`,e.path);return}if(e.depth>64){addJsonIssue(t,`Custom props cannot exceed depth 64`,e.path);continue}let a=e.value;if(!(a===null||typeof a==`string`||typeof a==`boolean`||typeof a==`number`&&Number.isFinite(a))){if(typeof a!=`object`)addJsonIssue(t,`Expected a JSON value`,e.path);else if(n.has(a))addJsonIssue(t,`Custom props cannot contain circular references`,e.path);else try{if(Array.isArray(a)){n.add(a),r.push({kind:`exit`,value:a}),pushJsonArrayChildren(a,e,r,t);continue}if(!isPlainJsonObject(a)){addJsonIssue(t,`Expected an array or plain JSON object`,e.path);continue}n.add(a),r.push({kind:`exit`,value:a}),pushJsonObjectChildren(a,e,r,t)}catch{addJsonIssue(t,`Custom props contain an object that cannot be safely inspected`,e.path)}}}}const de=f.unknown().superRefine(validateJsonProps).transform(e=>e),q=f.literal(m),fe={span:q.optional().describe(`Columns of 12 this field occupies`),label:f.string().optional().describe(`Overrides the attribute's label`),readOnly:f.boolean().optional().describe(`Shows the value, not editable`)},pe=f.object({attribute:f.string().describe(`Attribute API name shown by this field`),...fe}).strict(),me=f.object({name:f.string().describe(`Group API name, unique in the form`),label:f.string().describe(`Label people see`),description:f.string().optional().describe(`Extra context under the label`),collapsible:f.boolean().optional().describe(`Whether the group can be collapsed`),collapsed:f.boolean().optional().describe(`Whether the group starts collapsed`),fields:f.array(pe).max(t.fieldsPerGroup).describe(`Fields in this group, in order`)}).strict();function refineFormContent(e,n){e.groups.reduce((e,t)=>e+t.fields.length,0)>t.fieldsPerFormTab&&n.addIssue({code:`too_big`,origin:`array`,maximum:t.fieldsPerFormTab,inclusive:!0,message:`A form content can contain at most ${t.fieldsPerFormTab} fields`,path:[`groups`]});let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set;e.groups.forEach((e,t)=>{r.has(e.name)&&n.addIssue({code:`custom`,message:`Duplicate group name "${e.name}"`,path:[`groups`,t,`name`]}),r.add(e.name),e.fields.forEach((e,r)=>{i.has(e.attribute)&&n.addIssue({code:`custom`,message:`Duplicate field attribute "${e.attribute}"`,path:[`groups`,t,`fields`,r,`attribute`]}),i.add(e.attribute)})})}const J={name:f.string().describe(`Content API name, unique in the view`),label:f.string().optional().describe(`Label people see`),icon:n.optional().describe(`Icon name`),placement:f.enum([`main`,`aside`,`grid`]).describe(`main: the tab strip. aside: the side panel. grid: a page block`),width:q.optional().describe(`Page block width in twelfths of its line`),height:f.number().int().positive().optional().describe(`Page block height in rows, for kinds that stretch`),joined:f.boolean().optional().describe(`Page block sharing the card of the block before it`)},he={...J,type:f.literal(`collection`),source:G.describe(`object: every record; relation: records linked to this record; both: records of object whose relation points at this record`),visibility:f.enum(e).optional().describe(`all: no scope; workspace: every member; private: viewer's own; shared: private records other members shared with the viewer`),columns:f.array(f.union([f.string(),f.object({relationProperty:f.string().refine(e=>e.trim().length>0).describe(`Qualified edge property shown as a column`)}).strict()])).max(t.columnsPerTab).optional().describe(`Table columns, in order`),descriptionAttribute:f.string().optional().describe(`Secondary line under each row's title (list layout)`),displayAttributes:M.optional().describe(`Attributes shown on each card`),filters:W.optional().describe(`Restricts which records show`),sorts:P.optional().describe(`Sort order`),actions:f.enum([`create`,`update`,`delete`,`attach`,`detach`]).array().optional().describe(`Offered actions; absent = every action, [] = none`),openMode:f.enum([`page`,`peek`]).optional().describe(`page or peek (the record panel)`),createMode:f.enum([`page`,`peek`,`inline`]).optional().describe(`page, peek, or inline (creates without opening)`)},ge=f.object({...he,layout:f.enum([`table`,`list`,`kanban`]).describe(`table columns, list cards, kanban board grouped by a select/status attribute`),columnSizing:f.record(f.string(),f.number()).optional().describe(`Column widths in pixels, by attribute name`),groupByAttribute:f.string().optional().describe(`Kanban only: the select or status attribute that names the columns`),kanbanColumnOrder:f.array(f.string()).optional().describe(`Kanban: column order by option value`),kanbanColumnVisibility:f.record(f.string(),f.boolean()).optional().describe(`Kanban: which columns are shown`),kanbanPinnedColumns:f.array(f.string()).optional().describe(`Kanban: columns pinned first`)}).strict().superRefine((e,t)=>{let n=[`groupByAttribute`,`kanbanColumnOrder`,`kanbanColumnVisibility`,`kanbanPinnedColumns`];if(e.layout===`kanban`)e.groupByAttribute===void 0&&t.addIssue({code:`custom`,path:[`groupByAttribute`],message:`A kanban layout requires groupByAttribute`});else for(let r of n)e[r]!==void 0&&t.addIssue({code:`custom`,path:[r],message:`Only a kanban layout groups by an attribute`})}),Y={...J,type:f.literal(`form`),groups:f.array(me).max(t.groupsPerFormTab).describe(`Field groups, in order`),formColumns:f.union([f.literal(1),f.literal(2),f.literal(3)]).optional().describe(`Grid columns, 1-3`),density:f.enum([`compact`,`comfortable`,`spacious`]).optional().describe(`Vertical spacing between fields`)},_e=f.object(Y).strict().superRefine(refineFormContent),ve=f.object({...Y,groups:Y.groups.min(1,`A published form content requires at least one group`)}).strict().superRefine(refineFormContent),X=[ge,f.object({...J,type:f.literal(`custom`),extension:f.string().describe(`Name of a registered extension`),parameters:f.lazy(()=>de).optional().describe(`Extension parameters`)}).strict(),f.object({...J,type:f.literal(`activity`)}).strict(),f.object({...J,type:f.literal(`richtext`),attribute:f.string().describe(`Richtext attribute edited in place`),titleAttribute:f.string().optional().describe(`Text attribute shown as the title`)}).strict(),f.object({...J,type:f.literal(`documents`),allowUpload:f.boolean().optional().describe(`Lets people add files here`),allowRemove:f.boolean().optional().describe(`Lets people remove files here`),hideAttachments:f.boolean().optional().describe(`Hides files attached elsewhere (e.g. emails)`),relations:f.array(f.string()).optional().describe(`Document relations shown; the record's own files if absent`)}).strict(),f.object({...J,type:f.literal(`forms`),objectName:f.string().optional().describe(`Limits to this object's published forms`)}).strict(),f.object({...J,type:f.literal(`emails`),emailAttributes:f.array(f.string()).max(t.emailAttributesPerTab).describe(`Addresses`)}).strict(),f.object({...J,type:f.literal(`meetings`),emailAttributes:f.array(f.string()).max(t.emailAttributesPerTab).describe(`Addresses`)}).strict(),f.object({...J,type:f.literal(`page`),page:f.object({object:f.string().describe(`Its object`),name:f.string().describe(`Its name`)}).strict().describe(`The record page this tab renders`)}).strict()],Z=f.discriminatedUnion(`type`,[_e,...X]),Q=f.discriminatedUnion(`type`,[ve,...X]),$={name:f.string(),label:f.string(),description:f.string().optional(),icon:n.optional()};function contentViewBaseSchemaFor(e){let n=f.array(e).max(t.tabsPerView);return f.discriminatedUnion(`context`,[f.object({...$,object:f.string(),context:f.enum([`collection`,`record`]),default:f.boolean().optional(),anchors:f.record(f.string(),f.object({after:f.string()}).strict()).optional(),contents:n}).strict(),f.object({...$,object:f.string().optional(),context:f.literal(`page`),home:f.boolean().optional(),contents:n}).strict()])}const ye=contentViewBaseSchemaFor(Z),be=contentViewBaseSchemaFor(Q);function addDuplicateContentNameIssues(e,t){let n=/* @__PURE__ */ new Set;e.contents.forEach((e,r)=>{n.has(e.name)&&t.addIssue({code:`custom`,message:`Duplicate content name "${e.name}"`,path:[`contents`,r,`name`]}),n.add(e.name)})}const xe=[`width`,`height`,`joined`];function addPlacementIssues(e,t){e.contents.forEach((n,r)=>{let i=n.placement===`grid`;if(!i)for(let e of xe)n[e]!==void 0&&t.addIssue({code:`custom`,message:`Only a page block takes ${e}`,path:[`contents`,r,e]});e.context===`page`&&!i&&t.addIssue({code:`custom`,message:`Content "${n.name}" of a page must be placed on the grid`,path:[`contents`,r,`placement`]}),e.context!==`page`&&i&&t.addIssue({code:`custom`,message:`Content "${n.name}" cannot be placed on a grid outside a page`,path:[`contents`,r,`placement`]})}),e.contents.forEach((e,n)=>{e.type===`custom`&&e.extension===`heading`&&(e.label===void 0||e.label.trim()===``)&&t.addIssue({code:`custom`,message:`A heading needs a label`,path:[`contents`,n,`label`]})}),e.home&&e.object!==void 0&&t.addIssue({code:`custom`,message:`Only a standalone page can be the home`,path:[`home`]})}const Se=ye.superRefine((e,t)=>{let n=e;addDuplicateContentNameIssues(n,t),addPlacementIssues(n,t)}),Ce=be.superRefine((e,t)=>{let n=e;addDuplicateContentNameIssues(n,t),addPlacementIssues(n,t),e.context!==`page`&&!e.contents.some(e=>e.placement===`main`)&&t.addIssue({code:`custom`,message:`A published view requires at least one main content`,path:[`contents`]})});export{p as NO_VALUE_OPERATORS,te as OPERATORS_BY_TYPE,h as PAGE_GRID_COLUMNS,oe as QUALIFIED_SEPARATOR,T as REMOVED_OPERATOR_REPLACEMENTS,x as SYNONYM_ALIASES,w as SYSTEM_FILTER_ATTRIBUTE_TYPES,attributeFilterTarget,buildQualifiedAttribute,canonicalizeFilterValue,collectQualifiedRuleIssues,G as collectionContentSourceSchema,j as columnsSchema,Ce as contentViewDefinitionSchema,currentActor,M as displayAttributesSchema,Se as draftContentViewDefinitionSchema,edgePropertyFilterTarget,extractCurrencyFilterValue,extractFilterValue,filterOperatorsOfType,W as filterStateSchema,filterTargetsOf,getOperatorPolarity,getRollupFilterOperators,isBlockWidth,isCalendarDay,isDynamicValue,isLocationPartOperator,isNoValueOperator,isRelativeDateValue,isSetMembershipOperator,locationPartFilterTarget,normalizeFilterRule,normalizeForEdgeRpc,normalizeOperator,now,parseQualifiedAttribute,Q as publishedViewContentDefinitionSchema,resolveIsWithinBounds,resolveUtcDayBounds,P as sortsSchema,systemColumnFilterTarget,toMultiValueOperator,toUtcDayString,today,q as twelfthsSchema,validateQualifiedRule};
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");const t=require("./schema-output.schema-yXth-j90.js"),n=require("./operation-b0CY8USr.js");let r=require("zod");r=e.__toESM(r);var i=/* @__PURE__ */ e.__exportAll({viewsOperations:()=>s});const a=r.enum([`record`,`collection`],{error:`Invalid view context`}),o=r.object({objectName:r.string()}),s={list:n.operation({name:`views.list`,method:`GET`,path:`/views`,input:r.object({objectName:r.string().min(1,{error:`Invalid objectName`}).optional(),context:a.optional()}).strict(),output:r.array(t.viewReadSchema),permission:[`architect`,`read`]}),preferenceMigration:n.operation({name:`views.preferenceMigration`,method:`GET`,path:`/views/preference-migration`,input:r.object({}).strict(),output:r.array(t.viewPreferenceAddressSchema),permission:[`architect`,`read`]}),forObject:n.operation({name:`views.forObject`,method:`GET`,path:`/views/objects/:objectName`,input:o.extend({context:a.optional()}).strict(),output:r.array(t.viewReadSchema),permission:[`architect`,`read`]}),defaultForObject:n.operation({name:`views.defaultForObject`,method:`GET`,path:`/views/objects/:objectName/default`,input:o.extend({context:a.optional()}).strict(),output:t.viewReadSchema,permission:[`architect`,`read`]}),byName:n.operation({name:`views.byName`,method:`GET`,path:`/views/objects/:objectName/:viewName`,input:o.extend({viewName:r.string()}).strict(),output:t.viewReadSchema,permission:[`architect`,`read`]}),get:n.operation({name:`views.get`,method:`GET`,path:`/views/:viewId`,input:r.object({viewId:r.string()}).strict(),output:t.viewReadSchema,permission:[`architect`,`read`]})};Object.defineProperty(exports,"viewsOperations",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"views_operations_exports",{enumerable:!0,get:function(){return i}});
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ import{__exportAll as e}from"./rolldown-runtime-CirMkZhQ.mjs";import"./zod-locale.mjs";import{viewPreferenceAddressSchema as t,viewReadSchema as n}from"./schema-output.schema-DToLL5Hj.mjs";import{operation as r}from"./operation-Ljhj0S-y.mjs";import*as i from"zod";var a=/* @__PURE__ */ e({viewsOperations:()=>c});const o=i.enum([`record`,`collection`],{error:`Invalid view context`}),s=i.object({objectName:i.string()}),c={list:r({name:`views.list`,method:`GET`,path:`/views`,input:i.object({objectName:i.string().min(1,{error:`Invalid objectName`}).optional(),context:o.optional()}).strict(),output:i.array(n),permission:[`architect`,`read`]}),preferenceMigration:r({name:`views.preferenceMigration`,method:`GET`,path:`/views/preference-migration`,input:i.object({}).strict(),output:i.array(t),permission:[`architect`,`read`]}),forObject:r({name:`views.forObject`,method:`GET`,path:`/views/objects/:objectName`,input:s.extend({context:o.optional()}).strict(),output:i.array(n),permission:[`architect`,`read`]}),defaultForObject:r({name:`views.defaultForObject`,method:`GET`,path:`/views/objects/:objectName/default`,input:s.extend({context:o.optional()}).strict(),output:n,permission:[`architect`,`read`]}),byName:r({name:`views.byName`,method:`GET`,path:`/views/objects/:objectName/:viewName`,input:s.extend({viewName:i.string()}).strict(),output:n,permission:[`architect`,`read`]}),get:r({name:`views.get`,method:`GET`,path:`/views/:viewId`,input:i.object({viewId:i.string()}).strict(),output:n,permission:[`architect`,`read`]})};export{c as viewsOperations,a as views_operations_exports};
@@ -0,0 +1,11 @@
1
+
2
+ import { Operation } from "./proposal-types-BnAD5nxA.mjs";
3
+ type WireField = "name" | "method" | "path" | "status" | "query" | "body" | "headers" | "upload" | "response" | "jsonNull";
4
+ /** Only the canonical fields needed to put an operation on the wire. */
5
+ export type OperationWire<O extends Operation = Operation> = Pick<O, Extract<keyof O, WireField>>;
6
+ /** A real wire projection associated with its full input/output contract through a resolver. */
7
+ export interface DeferredOperation<O extends Operation = Operation> {
8
+ readonly wire: OperationWire<O>;
9
+ readonly load: () => Promise<O>;
10
+ }
11
+ export {};
@@ -0,0 +1,11 @@
1
+
2
+ import { Operation } from "./index-O2gvfWg3.js";
3
+ type WireField = "name" | "method" | "path" | "status" | "query" | "body" | "headers" | "upload" | "response" | "jsonNull";
4
+ /** Only the canonical fields needed to put an operation on the wire. */
5
+ export type OperationWire<O extends Operation = Operation> = Pick<O, Extract<keyof O, WireField>>;
6
+ /** A real wire projection associated with its full input/output contract through a resolver. */
7
+ export interface DeferredOperation<O extends Operation = Operation> {
8
+ readonly wire: OperationWire<O>;
9
+ readonly load: () => Promise<O>;
10
+ }
11
+ export {};