@standards/schema 1.0.0-alpha.445 → 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.
- package/dist/access-levels-BWuVeyAD.js +2 -0
- package/dist/access-levels-CpH_EGwX.mjs +2 -0
- package/dist/access-output.schema-DdveaHhd.js +2 -0
- package/dist/access-output.schema-DrsybmDW.mjs +2 -0
- package/dist/access.operations-Bfr0Hr5a.mjs +2 -0
- package/dist/access.operations-Ta7Yti9-.js +2 -0
- package/dist/actors-D6cncaeM.mjs +2 -0
- package/dist/actors-DtSC4jD7.js +2 -0
- package/dist/actors.operations-BRdW-IBc.js +2 -0
- package/dist/actors.operations-SAbl_3vt.mjs +2 -0
- package/dist/admin-tenant-CnP_XZGi.js +2 -0
- package/dist/admin-tenant-DJ_Vt8X6.mjs +2 -0
- package/dist/agent-appearance.schema-5maenk3l.mjs +2 -0
- package/dist/agent-appearance.schema-Azj0Y4h4.js +2 -0
- package/dist/agent-approvals.operations-BXtDpYb9.js +2 -0
- package/dist/agent-approvals.operations-DrEi2amV.mjs +2 -0
- package/dist/agent-definitions.operations-CkfVj_vQ.mjs +2 -0
- package/dist/agent-definitions.operations-Dah-26La.js +2 -0
- package/dist/agent-fronts.operations-Q92n0JZN.js +2 -0
- package/dist/agent-fronts.operations-ZQUdWd_4.mjs +2 -0
- package/dist/agent-memory.operations-B0nLFWs9.js +2 -0
- package/dist/agent-memory.operations-C25OLsqq.mjs +2 -0
- package/dist/agent-message.schema-DwQVDXLy.mjs +2 -0
- package/dist/agent-message.schema-SmA4ydqf.js +2 -0
- package/dist/agent-messages.operations-Aa1vk7xu.mjs +2 -0
- package/dist/agent-messages.operations-CCXX8cuW.js +2 -0
- package/dist/agent-output.schema-8ajlE5_g.js +2 -0
- package/dist/agent-output.schema-BQsbh8pJ.mjs +2 -0
- package/dist/agent-runs.operations-BVNctI5C.js +2 -0
- package/dist/agent-runs.operations-Gp-UpNB9.mjs +2 -0
- package/dist/agent-schemas-52_rE61D.mjs +2 -0
- package/dist/agent-schemas-BmTE5O3J.js +2 -0
- package/dist/agent-session-list-cursor-BFnecxvH.js +2 -0
- package/dist/agent-session-list-cursor-cpmpINuz.mjs +2 -0
- package/dist/agent-sessions.operations-B8yM9St8.mjs +2 -0
- package/dist/agent-sessions.operations-Bu04RCgZ.js +2 -0
- package/dist/agent-triggers.operations-0tOTD7Vh.js +2 -0
- package/dist/agent-triggers.operations-BJz4_xUq.mjs +2 -0
- package/dist/ai-dictation-BJvVgzjC.mjs +2 -0
- package/dist/ai-dictation-zV6sAESe.js +2 -0
- package/dist/ai-output.schema-CQKoZCbn.mjs +2 -0
- package/dist/ai-output.schema-DHm6HAfH.js +2 -0
- package/dist/ai.operations--Cx0o8wQ.mjs +2 -0
- package/dist/ai.operations-DAKLy-dv.js +2 -0
- package/dist/all-BCAZCVxV.mjs +4 -0
- package/dist/all-PUaQuM_2.js +4 -0
- package/dist/api/http.d.mts +6 -0
- package/dist/api/http.d.ts +6 -0
- package/dist/api/http.js +2 -0
- package/dist/api/http.mjs +2 -0
- package/dist/api/index.d.mts +10 -26922
- package/dist/api/index.d.ts +10 -26922
- package/dist/api/index.js +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/api/wire.d.mts +93 -0
- package/dist/api/wire.d.ts +93 -0
- package/dist/api/wire.js +2 -0
- package/dist/api/wire.mjs +2 -0
- package/dist/api-keys-C9vGsnf5.mjs +2 -0
- package/dist/api-keys-DrqoTFFb.js +2 -0
- package/dist/api-keys.operations-BbAn06Vn.mjs +2 -0
- package/dist/api-keys.operations-Dtiv6rWJ.js +2 -0
- package/dist/app-operation-groups-B0GLoqHi.d.ts +26792 -0
- package/dist/app-operation-groups-CG6l7J3l.d.mts +26791 -0
- package/dist/appearance-C0Mh9jK2.mjs +2 -0
- package/dist/appearance-DrCaK9XJ.js +2 -0
- package/dist/artifacts.operations-D6aBIbPf.mjs +2 -0
- package/dist/artifacts.operations-DZ60VQ3Q.js +2 -0
- package/dist/attribute-validators-D9vS6qK9.mjs +11 -0
- package/dist/attribute-validators-j-HiW0On.js +11 -0
- package/dist/attributes-B2wmzoDI.js +2 -0
- package/dist/attributes-DYUkML5S.mjs +2 -0
- package/dist/audit-Cjoaib0c.js +2 -0
- package/dist/audit-jbBwdDtV.mjs +2 -0
- package/dist/audit.operations-CzoEnsuj.js +2 -0
- package/dist/audit.operations-R7llfS_r.mjs +2 -0
- package/dist/browser-profile-output.schema-ChhKkoin.mjs +2 -0
- package/dist/browser-profile-output.schema-DOGfwtLW.js +2 -0
- package/dist/browser-profiles.operations-BBdmypd0.js +2 -0
- package/dist/browser-profiles.operations-CUJaaU8y.mjs +2 -0
- package/dist/bundle-output.schema-Ck4tpVVV.js +2 -0
- package/dist/bundle-output.schema-UAlU8-CS.mjs +2 -0
- package/dist/bundles.operations-CplZLAxi.js +2 -0
- package/dist/bundles.operations-CrgrLCAC.mjs +2 -0
- package/dist/cli-login.operations-C1KbNeHA.js +2 -0
- package/dist/cli-login.operations-cUUchS4E.mjs +2 -0
- package/dist/connected-apps.operations-BavndGSL.js +2 -0
- package/dist/connected-apps.operations-DDDkIn_k.mjs +2 -0
- package/dist/connectors.operations-CR20Yhbf.mjs +2 -0
- package/dist/connectors.operations-CWW21SJJ.js +2 -0
- package/dist/consumer-variables.operations-Cc90oB8D.mjs +2 -0
- package/dist/consumer-variables.operations-DY9v4AY-.js +2 -0
- package/dist/decisions-CFoL49Jb.js +2 -0
- package/dist/decisions-DNvAXetH.mjs +2 -0
- package/dist/decisions.operations-BmQnmIwC.js +2 -0
- package/dist/decisions.operations-Dx-QEhXt.mjs +2 -0
- package/dist/device-channel-BQ8SMmLM.js +2 -0
- package/dist/device-channel-CmrDyl1C.mjs +2 -0
- package/dist/devices.operations-BJG7PBgi.js +2 -0
- package/dist/devices.operations-D4vKQtuv.mjs +2 -0
- package/dist/dictation.operations-BqbZnhBo.mjs +2 -0
- package/dist/dictation.operations-D0JxX5Ut.js +2 -0
- package/dist/documents-BrgkFEjS.mjs +2 -0
- package/dist/documents-KBlpK-vw.js +2 -0
- package/dist/documents.operations-BOstEBEu.mjs +2 -0
- package/dist/documents.operations-eY2Z-5Ss.js +2 -0
- package/dist/email-classification-DEHTSbVv.js +2 -0
- package/dist/email-classification-Jk8hARsL.mjs +2 -0
- package/dist/email-classification.operations-BBmw-sma.mjs +2 -0
- package/dist/email-classification.operations-C0nSe3CD.js +2 -0
- package/dist/email-classification.schema-B2RE9-Sz.js +2 -0
- package/dist/email-classification.schema-CzlbP3hF.mjs +2 -0
- package/dist/emails-COHIot9L.mjs +2 -0
- package/dist/emails-scn5zKZZ.js +2 -0
- package/dist/emails.operations-Bqd4AR-o.mjs +2 -0
- package/dist/emails.operations-nOPoU4qW.js +2 -0
- package/dist/embeddings-admin.operations-Cf12v9Y6.mjs +2 -0
- package/dist/embeddings-admin.operations-DN0wBZuY.js +2 -0
- package/dist/env-vars-C6h8XxDu.js +2 -0
- package/dist/env-vars-jepH5HKe.mjs +2 -0
- package/dist/env-vars.operations-CtwkPw4o.mjs +2 -0
- package/dist/env-vars.operations-DxgfKwIg.js +2 -0
- package/dist/environment-output.schema-BI9aKP85.js +2 -0
- package/dist/environment-output.schema-BLWKrRV9.mjs +2 -0
- package/dist/environments-Cjl7Rn63.js +2 -0
- package/dist/environments-NJ6AU6QA.mjs +2 -0
- package/dist/environments.operations-DOC5sPZj.js +2 -0
- package/dist/environments.operations-sRFx_6kV.mjs +2 -0
- package/dist/{exceptions-YHdKk5N8.d.ts → exceptions-Csd70p_-.d.ts} +19 -2
- package/dist/{exceptions-zQlC2r1F.d.mts → exceptions-gxRQUb2w.d.mts} +19 -2
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/files-BX-FFR4x.js +2 -0
- package/dist/files-sTU3trJX.mjs +2 -0
- package/dist/files.operations-ByEQ45rC.mjs +2 -0
- package/dist/files.operations-DvsUX624.js +2 -0
- package/dist/folders.operations-DjhIHfPy.mjs +2 -0
- package/dist/folders.operations-Dn9m5HgA.js +2 -0
- package/dist/forms.operations-DTe1LrLl.js +2 -0
- package/dist/forms.operations-HHnD9fWG.mjs +2 -0
- package/dist/geocoding.operations-C_22EAvv.mjs +2 -0
- package/dist/geocoding.operations-DI5T-bXQ.js +2 -0
- package/dist/human-request-BuTNChfy.js +2 -0
- package/dist/human-request-D386w0xS.mjs +2 -0
- package/dist/image-generation-JBLnNqb4.js +2 -0
- package/dist/image-generation-RBIQzj-e.mjs +2 -0
- package/dist/{index-D7FwaSvK.d.ts → index-O2gvfWg3.d.ts} +2354 -3541
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/input--LxhjMnL.js +2 -0
- package/dist/input-De22VS-9.mjs +2 -0
- package/dist/input-g4tO6Jkf.d.ts +82 -0
- package/dist/limits-C23L0g-a.js +2 -0
- package/dist/limits-DVUX5n4b.mjs +2 -0
- package/dist/linked-records-BjT-7LOU.mjs +2 -0
- package/dist/linked-records-CzzwaP1w.js +2 -0
- package/dist/logos.operations-Cof7YcyL.js +2 -0
- package/dist/logos.operations-DMp3Fv_i.mjs +2 -0
- package/dist/machines-BgWsvhyM.js +2 -0
- package/dist/machines-BwCQPG_y.mjs +2 -0
- package/dist/machines.operations-DuXeEb9-.js +2 -0
- package/dist/machines.operations-L17tNtr7.mjs +2 -0
- package/dist/mail-drafts.operations-BKMuIsFk.js +2 -0
- package/dist/mail-drafts.operations-CM-7tBgp.mjs +2 -0
- package/dist/mail-signatures.operations-maphvktU.js +2 -0
- package/dist/mail-signatures.operations-u61NViKI.mjs +2 -0
- package/dist/mcp-output.schema-B4xXiOjp.mjs +2 -0
- package/dist/mcp-output.schema-DWfW_GXR.js +2 -0
- package/dist/mcp-servers.operations-BBrpVqtv.mjs +2 -0
- package/dist/mcp-servers.operations-DKv3os6D.js +2 -0
- package/dist/meetings-C3LSWdAv.js +2 -0
- package/dist/meetings-ZzFZppmw.mjs +2 -0
- package/dist/meetings-admin.operations-CqOdAuEY.js +2 -0
- package/dist/meetings-admin.operations-DlBEkQ3A.mjs +2 -0
- package/dist/meetings.operations-CEodnE61.js +2 -0
- package/dist/meetings.operations-C_S4qoij.mjs +2 -0
- package/dist/models.operations-B-KLcOff.mjs +2 -0
- package/dist/models.operations-D1mh86qV.js +2 -0
- package/dist/move-impact.schema-CIhGrFEu.mjs +2 -0
- package/dist/move-impact.schema-Ur5k3_PI.js +2 -0
- package/dist/my-preferences-CtaRodws.js +2 -0
- package/dist/my-preferences-DLy4chuc.mjs +2 -0
- package/dist/news-feed.schema-BXcS3qnp.js +2 -0
- package/dist/news-feed.schema-uNDJX8lC.mjs +2 -0
- package/dist/news.operations-Ct__1yeE.js +2 -0
- package/dist/news.operations-bv6Xi29p.mjs +2 -0
- package/dist/oauth.operations-BkKp9Hys.js +2 -0
- package/dist/oauth.operations-Dwz0dPe0.mjs +2 -0
- package/dist/objects-DjZy05b7.js +2 -0
- package/dist/objects-LC_PpZf5.mjs +2 -0
- package/dist/operation-Ljhj0S-y.mjs +2 -0
- package/dist/operation-b0CY8USr.js +2 -0
- package/dist/output-CcagLVwl.js +2 -0
- package/dist/output-D0Gkm-0Z.mjs +2 -0
- package/dist/page-query-B8Evn_OX.mjs +2 -0
- package/dist/page-query-BIn1m1Dx.js +2 -0
- package/dist/pages-C1vZaC93.mjs +2 -0
- package/dist/pages-DQEuRvk2.js +2 -0
- package/dist/pages.operations-CWBsE2KN.js +2 -0
- package/dist/pages.operations-DE4h2piU.mjs +2 -0
- package/dist/pagination-B06cCddv.mjs +2 -0
- package/dist/pagination-CheieRD0.js +2 -0
- package/dist/path-Ch_NPREA.d.mts +81 -0
- package/dist/permission-catalog-7nqArygr.js +2 -0
- package/dist/permission-catalog-DVCRvATl.mjs +2 -0
- package/dist/permissions-BsNNXXmY.js +2 -0
- package/dist/permissions-CGYTdS2h.mjs +2 -0
- package/dist/permissions.operations-BpGpRcI5.js +2 -0
- package/dist/permissions.operations-CUOPZGr_.mjs +2 -0
- package/dist/plain-record-BnKWrGQv.js +2 -0
- package/dist/plain-record-is3DxPBL.mjs +2 -0
- package/dist/primitives-BlZoUw54.mjs +2 -0
- package/dist/primitives-x0WE42fG.js +2 -0
- package/dist/{record-query-BiyWXSWA.d.mts → proposal-types-BnAD5nxA.d.mts} +9741 -10928
- package/dist/proposal-types-Buln0mbM.js +2 -0
- package/dist/proposal-types-ncv1cymr.mjs +2 -0
- package/dist/query-integers-CZDEkFmm.mjs +2 -0
- package/dist/query-integers-EVkedFO4.js +2 -0
- package/dist/quota-CremykHV.mjs +2 -0
- package/dist/quota-lbHfQAU7.js +2 -0
- package/dist/quotas.operations-CDn6mxGZ.js +2 -0
- package/dist/quotas.operations-DuUMhQct.mjs +2 -0
- package/dist/recent-activity-CDUZCvvx.mjs +2 -0
- package/dist/recent-activity-CTn3aJC5.js +2 -0
- package/dist/recent-activity.operations-C8HN3T2E.mjs +2 -0
- package/dist/recent-activity.operations-Cv7zUBG5.js +2 -0
- package/dist/record-memory.operations-D8K9_bDh.js +2 -0
- package/dist/record-memory.operations-DNRWqANQ.mjs +2 -0
- package/dist/record-operation-CD04q2YF.mjs +2 -0
- package/dist/record-operation-CHR8fOWv.js +2 -0
- package/dist/record-operations.operations-2fObhHf5.mjs +2 -0
- package/dist/record-operations.operations-iGcbXsAX.js +2 -0
- package/dist/record-output.schema-7M4ZhtFF.mjs +2 -0
- package/dist/record-output.schema-B-LsiXui.js +2 -0
- package/dist/records.operations-DesIdHKN.js +2 -0
- package/dist/records.operations-XplmsQb5.mjs +2 -0
- package/dist/relation-output.schema-CMfZ80ZC.js +2 -0
- package/dist/relation-output.schema-DnC1Swai.mjs +2 -0
- package/dist/relations.operations-C8OKmNI3.mjs +2 -0
- package/dist/relations.operations-TbsHto3V.js +2 -0
- package/dist/rolldown-runtime-BXZUx0GO.js +2 -0
- package/dist/schema-draft.operations-BrhXpB88.js +2 -0
- package/dist/schema-draft.operations-DO2aPqiB.mjs +2 -0
- package/dist/schema-groups.operations-BKGvDU0g.mjs +2 -0
- package/dist/schema-groups.operations-CQJVh2ul.js +2 -0
- package/dist/schema-objects.operations-BIm7_OUC.js +2 -0
- package/dist/schema-objects.operations-CKZquSV-.mjs +2 -0
- package/dist/schema-output.schema-DToLL5Hj.mjs +2 -0
- package/dist/schema-output.schema-yXth-j90.js +2 -0
- package/dist/schema-state.operations-YgW67wKw.mjs +2 -0
- package/dist/schema-state.operations-_rWxCFRF.js +2 -0
- package/dist/screens.operations-C2PmD9Jo.mjs +2 -0
- package/dist/screens.operations-CMCDeLu5.js +2 -0
- package/dist/search-admin.operations-BuNlL2_R.js +2 -0
- package/dist/search-admin.operations-MaUHp0Ws.mjs +2 -0
- package/dist/search-output.schema-BGEo1jc3.mjs +2 -0
- package/dist/search-output.schema-BOnf-I4-.js +2 -0
- package/dist/search.operations-BU2vkMiM.mjs +2 -0
- package/dist/search.operations-CV4h80dL.js +2 -0
- package/dist/skills.operations-B89X73C5.mjs +2 -0
- package/dist/skills.operations-CI7WSfj8.js +2 -0
- package/dist/string-rules-BGEVHs7B.js +2 -0
- package/dist/string-rules-Oo22T_2_.mjs +2 -0
- package/dist/submission-DQQndGsT.mjs +2 -0
- package/dist/submission-Y4L17hji.js +2 -0
- package/dist/system-attributes-4e6FXKws.js +2 -0
- package/dist/system-attributes-vbOzw6KO.mjs +2 -0
- package/dist/tenant-invitations-C8eRu6F1.mjs +2 -0
- package/dist/tenant-invitations-DMnJYl5A.js +2 -0
- package/dist/tenant-invitations.operations-CoENfK1m.mjs +2 -0
- package/dist/tenant-invitations.operations-DVzd6sH6.js +2 -0
- package/dist/tenant-settings-DibR3Pj9.mjs +2 -0
- package/dist/tenant-settings-H8PuqeVJ.js +2 -0
- package/dist/tenant-settings.operations-BlOjAUBb.mjs +2 -0
- package/dist/tenant-settings.operations-D1tiAc5T.js +2 -0
- package/dist/tool-group-catalog-DcmK8-aP.mjs +2 -0
- package/dist/tool-group-catalog-VfPutaoA.js +2 -0
- package/dist/types-BaRAoumN.mjs +2 -0
- package/dist/types-Bbd8SJk_.mjs +2 -0
- package/dist/types-DLY2ZL0J.js +2 -0
- package/dist/types-HyrREoFh.js +2 -0
- package/dist/unchecked-C4sB97e1.js +2 -0
- package/dist/unchecked-DAFXyX5y.mjs +2 -0
- package/dist/user-profiles-CJHB2U55.js +2 -0
- package/dist/user-profiles-Dh5QFnXc.mjs +2 -0
- package/dist/users.operations-Bdz9bPn7.js +2 -0
- package/dist/users.operations-BhIIB4IN.mjs +2 -0
- package/dist/{utils-BZMgedee.d.mts → utils-BHf9KKOr.d.mts} +1 -1
- package/dist/{utils-CwQlKDYz.d.ts → utils-_R0m2ygt.d.ts} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/uuid-param-BuV4RQRp.mjs +2 -0
- package/dist/uuid-param-Djtff5Vy.js +2 -0
- package/dist/validation/all.d.mts +2 -2
- package/dist/validation/all.d.ts +2 -2
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/view-config.schema-BimOzKR_.js +2 -0
- package/dist/view-config.schema-DstNUMiD.mjs +2 -0
- package/dist/views.operations-B23oCL5P.js +2 -0
- package/dist/views.operations-B38jfGlX.mjs +2 -0
- package/dist/wire-types-B5ixUf2P.d.mts +11 -0
- package/dist/wire-types-btvuxrFk.d.ts +11 -0
- package/openapi.json +1957 -2503
- package/package.json +22 -2
- package/dist/all-BrGOpgV8.js +0 -4
- package/dist/all-Df9IeCkI.mjs +0 -4
- package/dist/attribute-validators-BJdOkURX.mjs +0 -11
- package/dist/attribute-validators-rgM_bLG1.js +0 -11
- package/dist/record-operation-BrYpYAKR.js +0 -2
- package/dist/record-operation-DSjDUW-6.mjs +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
|
+
import{colorIdFromString as e}from"@standards/constants";const t=`box`,n=[`circle`,`square`],r=[`upload`,`website`,`name`,`email`];function isImageSource(e){return r.some(t=>t===e)}const i={object:[`icon`,`color`],record:[`icon`,`image`],emailCategory:[`icon`,`color`],option:[`color`],view:[`icon`],agent:[`color`],user:[`image`]};function imageFileIdOf(e){return`image`in e?e.image?.fileId:`imageFileId`in e?e.imageFileId:void 0}function resolveAppearance(t,n){let r=imageFileIdOf(t);if(r)return{kind:`image`,imageFileId:r,shape:n?.image?.shape??`square`};let i=n?.name??t.name,a=t.color??n?.color??(i?e(i):void 0),o=t.icon??n?.icon??`box`;return a?{kind:`tile`,icon:o,color:a}:{kind:`glyph`,icon:o}}export{i as APPEARANCE_FACETS,t as DEFAULT_APPEARANCE_ICON,n as IMAGE_SHAPES,r as IMAGE_SOURCES,isImageSource,resolveAppearance};
|
|
@@ -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
|
+
let e=require("@standards/constants");const t=[`circle`,`square`],n=[`upload`,`website`,`name`,`email`];function isImageSource(e){return n.some(t=>t===e)}const r={object:[`icon`,`color`],record:[`icon`,`image`],emailCategory:[`icon`,`color`],option:[`color`],view:[`icon`],agent:[`color`],user:[`image`]};function imageFileIdOf(e){return`image`in e?e.image?.fileId:`imageFileId`in e?e.imageFileId:void 0}function resolveAppearance(t,n){let r=imageFileIdOf(t);if(r)return{kind:`image`,imageFileId:r,shape:n?.image?.shape??`square`};let i=n?.name??t.name,a=t.color??n?.color??(i?(0,e.colorIdFromString)(i):void 0),o=t.icon??n?.icon??`box`;return a?{kind:`tile`,icon:o,color:a}:{kind:`glyph`,icon:o}}Object.defineProperty(exports,"APPEARANCE_FACETS",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"DEFAULT_APPEARANCE_ICON",{enumerable:!0,get:function(){return`box`}}),Object.defineProperty(exports,"IMAGE_SHAPES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"IMAGE_SOURCES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"isImageSource",{enumerable:!0,get:function(){return isImageSource}}),Object.defineProperty(exports,"resolveAppearance",{enumerable:!0,get:function(){return resolveAppearance}});
|
|
@@ -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{operation as t,type as n}from"./operation-Ljhj0S-y.mjs";import*as r from"zod";var i=/* @__PURE__ */ e({artifactsOperations:()=>s});const a=`revision must be a positive safe integer`,o=r.coerce.number({error:a}).refine(e=>Number.isSafeInteger(e)&&e>=1,a),s={revision:t({name:`artifacts.revision`,method:`GET`,path:`/artifacts/:artifactId/revisions/:revision`,input:r.object({artifactId:r.string(),revision:o}),output:n(),permission:[`documents`,`read`]})};export{s as artifactsOperations,i as artifacts_operations_exports};
|
|
@@ -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("./operation-b0CY8USr.js");let n=require("zod");n=e.__toESM(n);var r=/* @__PURE__ */ e.__exportAll({artifactsOperations:()=>o});const i=`revision must be a positive safe integer`,a=n.coerce.number({error:i}).refine(e=>Number.isSafeInteger(e)&&e>=1,i),o={revision:t.operation({name:`artifacts.revision`,method:`GET`,path:`/artifacts/:artifactId/revisions/:revision`,input:n.object({artifactId:n.string(),revision:a}),output:t.type(),permission:[`documents`,`read`]})};Object.defineProperty(exports,"artifactsOperations",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"artifacts_operations_exports",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,11 @@
|
|
|
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{SchemaError as e,SchemaErrorCode as t,ValidationError as n}from"./exceptions.mjs";import{RESERVED_ATTRIBUTE_NAMES as r}from"./objects-LC_PpZf5.mjs";import{SCHEMA_LIMITS as i}from"./limits-DVUX5n4b.mjs";import*as a from"zod";import{ICONS as o}from"@standards/constants";const s=new Set(o),c=/^[a-zA-Z_][a-zA-Z0-9_]*$/,l=/^[a-z][a-z0-9-]*$/,u=i.labelLength,d=a.string().min(1,`Object name cannot be empty`).max(63,`Object name is too long (max 63 characters)`).regex(/^[a-z][a-z0-9-]*$/,{message:`Invalid object name format.
|
|
3
|
+
Name must be in kebab-case (slug format):
|
|
4
|
+
✅ Valid: 'products', 'user-profiles', 'order-items'
|
|
5
|
+
❌ Invalid: 'Products', 'userProfiles', 'user_profiles'`});function validateObjectName(n){try{d.parse(n)}catch(n){throw n instanceof a.ZodError?new e(n.issues[0].message,t.INVALID_OBJECT_NAME):n}}function validateViewName(e){if(!e||e.length===0)throw new n(`View name cannot be empty`,[{path:[`name`],message:`View name cannot be empty`}]);if(e.length>63)throw new n(`View name is too long`,[{path:[`name`],message:`View name is too long (max 63 characters)`}]);if(!l.test(e))throw new n(`Invalid view name format`,[{path:[`name`],message:`View name must be in kebab-case (e.g., 'detail', 'list-view')`}])}function assertUniqueBy(e,t,n){let r=/* @__PURE__ */ new Set;for(let i of e){let e=t(i);if(r.has(e))throw n(e);r.add(e)}}const f=a.string().min(1,`Attribute name cannot be empty`).max(63,`Attribute name is too long (max 63 characters)`).regex(c,{message:`Invalid attribute name format.
|
|
6
|
+
Name must be a valid variable identifier:
|
|
7
|
+
✅ Valid: 'firstName', 'first_name', 'FirstName', 'FIRST_NAME'
|
|
8
|
+
❌ Invalid: 'first-name', 'first name', '123name', 'first.name'`}).refine(e=>!r.includes(e),{message:`This is a reserved attribute name. Reserved names: ${r.join(`, `)}`});function validateAttributeName(e){if(!e||e.length===0)throw Error(`[AttributeBuilder] Attribute name cannot be empty`);if(e.length>63)throw Error(`[AttributeBuilder] Attribute name is too long (max 63 characters)`);if(!c.test(e))throw Error(`[AttributeBuilder] Invalid attribute name format.
|
|
9
|
+
Name must be a valid variable identifier:
|
|
10
|
+
✅ Valid: 'firstName', 'first_name', 'FirstName', 'FIRST_NAME'
|
|
11
|
+
❌ Invalid: 'first-name', 'first name', '123name', 'first.name'`);if(r.includes(e))throw Error(`[AttributeBuilder] "${e}" is a reserved name and cannot be used as an attribute name.\nReserved names: ${r.join(`, `)}`)}function validateLabel(e){if(!e||e.length===0)throw Error(`[AttributeBuilder] Attribute label cannot be empty`);if(e.length>u)throw Error(`[AttributeBuilder] Attribute label is too long (max ${u} characters)`)}function validateIconName(e,t){if(!s.has(e))throw Error(`[AttributeBuilder] Invalid icon "${e}" in ${t}.\nIcon must be one of the predefined icons from @standards/constants.`)}function validateOptions(e,t){let n=/* @__PURE__ */ new Set;for(let r of t){if(!r.value?.trim())throw Error(`[AttributeBuilder] Option in "${e}" has an empty or missing value.`);if(!r.label?.trim())throw Error(`[AttributeBuilder] Option "${r.value}" in "${e}" has an empty or missing label.`);if(n.has(r.value))throw Error(`[AttributeBuilder] Duplicate option value "${r.value}" in "${e}".`);n.add(r.value)}let r=optionInverseMismatch(t);if(r&&r.back===void 0)throw Error(`[AttributeBuilder] Option "${r.value}" in "${e}" has inverse "${r.inverse}" which does not match any option value.`);if(r)throw Error(`[AttributeBuilder] Inverse mismatch in "${e}": "${r.value}" points to "${r.inverse}", but "${r.inverse}" points to "${r.back??`(none)`}". Inverse pairs must be symmetric.`)}function optionInverseMismatch(e){for(let t of e){if(t.inverse===void 0)continue;let n=e.find(e=>e.value===t.inverse);if(!n)return{value:t.value,inverse:t.inverse,back:void 0};if(n.inverse!==t.value)return{value:t.value,inverse:t.inverse,back:n.inverse??null}}}export{f as ATTRIBUTE_NAME_SCHEMA,d as OBJECT_NAME_SCHEMA,assertUniqueBy,optionInverseMismatch,validateAttributeName,validateIconName,validateLabel,validateObjectName,validateOptions,validateViewName};
|
|
@@ -0,0 +1,11 @@
|
|
|
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("./exceptions.js"),n=require("./objects-DjZy05b7.js"),r=require("./limits-C23L0g-a.js");let i=require("zod");i=e.__toESM(i);let a=require("@standards/constants");const o=new Set(a.ICONS),s=/^[a-zA-Z_][a-zA-Z0-9_]*$/,c=/^[a-z][a-z0-9-]*$/,l=r.SCHEMA_LIMITS.labelLength,u=i.string().min(1,`Object name cannot be empty`).max(63,`Object name is too long (max 63 characters)`).regex(/^[a-z][a-z0-9-]*$/,{message:`Invalid object name format.
|
|
3
|
+
Name must be in kebab-case (slug format):
|
|
4
|
+
✅ Valid: 'products', 'user-profiles', 'order-items'
|
|
5
|
+
❌ Invalid: 'Products', 'userProfiles', 'user_profiles'`});function validateObjectName(e){try{u.parse(e)}catch(e){throw e instanceof i.ZodError?new t.SchemaError(e.issues[0].message,t.SchemaErrorCode.INVALID_OBJECT_NAME):e}}function validateViewName(e){if(!e||e.length===0)throw new t.ValidationError(`View name cannot be empty`,[{path:[`name`],message:`View name cannot be empty`}]);if(e.length>63)throw new t.ValidationError(`View name is too long`,[{path:[`name`],message:`View name is too long (max 63 characters)`}]);if(!c.test(e))throw new t.ValidationError(`Invalid view name format`,[{path:[`name`],message:`View name must be in kebab-case (e.g., 'detail', 'list-view')`}])}function assertUniqueBy(e,t,n){let r=/* @__PURE__ */ new Set;for(let i of e){let e=t(i);if(r.has(e))throw n(e);r.add(e)}}const d=i.string().min(1,`Attribute name cannot be empty`).max(63,`Attribute name is too long (max 63 characters)`).regex(s,{message:`Invalid attribute name format.
|
|
6
|
+
Name must be a valid variable identifier:
|
|
7
|
+
✅ Valid: 'firstName', 'first_name', 'FirstName', 'FIRST_NAME'
|
|
8
|
+
❌ Invalid: 'first-name', 'first name', '123name', 'first.name'`}).refine(e=>!n.RESERVED_ATTRIBUTE_NAMES.includes(e),{message:`This is a reserved attribute name. Reserved names: ${n.RESERVED_ATTRIBUTE_NAMES.join(`, `)}`});function validateAttributeName(e){if(!e||e.length===0)throw Error(`[AttributeBuilder] Attribute name cannot be empty`);if(e.length>63)throw Error(`[AttributeBuilder] Attribute name is too long (max 63 characters)`);if(!s.test(e))throw Error(`[AttributeBuilder] Invalid attribute name format.
|
|
9
|
+
Name must be a valid variable identifier:
|
|
10
|
+
✅ Valid: 'firstName', 'first_name', 'FirstName', 'FIRST_NAME'
|
|
11
|
+
❌ Invalid: 'first-name', 'first name', '123name', 'first.name'`);if(n.RESERVED_ATTRIBUTE_NAMES.includes(e))throw Error(`[AttributeBuilder] "${e}" is a reserved name and cannot be used as an attribute name.\nReserved names: ${n.RESERVED_ATTRIBUTE_NAMES.join(`, `)}`)}function validateLabel(e){if(!e||e.length===0)throw Error(`[AttributeBuilder] Attribute label cannot be empty`);if(e.length>l)throw Error(`[AttributeBuilder] Attribute label is too long (max ${l} characters)`)}function validateIconName(e,t){if(!o.has(e))throw Error(`[AttributeBuilder] Invalid icon "${e}" in ${t}.\nIcon must be one of the predefined icons from @standards/constants.`)}function validateOptions(e,t){let n=/* @__PURE__ */ new Set;for(let r of t){if(!r.value?.trim())throw Error(`[AttributeBuilder] Option in "${e}" has an empty or missing value.`);if(!r.label?.trim())throw Error(`[AttributeBuilder] Option "${r.value}" in "${e}" has an empty or missing label.`);if(n.has(r.value))throw Error(`[AttributeBuilder] Duplicate option value "${r.value}" in "${e}".`);n.add(r.value)}let r=optionInverseMismatch(t);if(r&&r.back===void 0)throw Error(`[AttributeBuilder] Option "${r.value}" in "${e}" has inverse "${r.inverse}" which does not match any option value.`);if(r)throw Error(`[AttributeBuilder] Inverse mismatch in "${e}": "${r.value}" points to "${r.inverse}", but "${r.inverse}" points to "${r.back??`(none)`}". Inverse pairs must be symmetric.`)}function optionInverseMismatch(e){for(let t of e){if(t.inverse===void 0)continue;let n=e.find(e=>e.value===t.inverse);if(!n)return{value:t.value,inverse:t.inverse,back:void 0};if(n.inverse!==t.value)return{value:t.value,inverse:t.inverse,back:n.inverse??null}}}Object.defineProperty(exports,"ATTRIBUTE_NAME_SCHEMA",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"OBJECT_NAME_SCHEMA",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"assertUniqueBy",{enumerable:!0,get:function(){return assertUniqueBy}}),Object.defineProperty(exports,"optionInverseMismatch",{enumerable:!0,get:function(){return optionInverseMismatch}}),Object.defineProperty(exports,"validateAttributeName",{enumerable:!0,get:function(){return validateAttributeName}}),Object.defineProperty(exports,"validateIconName",{enumerable:!0,get:function(){return validateIconName}}),Object.defineProperty(exports,"validateLabel",{enumerable:!0,get:function(){return validateLabel}}),Object.defineProperty(exports,"validateObjectName",{enumerable:!0,get:function(){return validateObjectName}}),Object.defineProperty(exports,"validateOptions",{enumerable:!0,get:function(){return validateOptions}}),Object.defineProperty(exports,"validateViewName",{enumerable:!0,get:function(){return validateViewName}});
|
|
@@ -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("./system-attributes-4e6FXKws.js"),t=[`is`,`is_not`,`contains`,`not_contains`,`starts_with`,`ends_with`,`is_empty`,`is_not_empty`],n=[`is`,`is_not`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`is_empty`,`is_not_empty`],r=[`is`],i=[`is`,`is_not`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`is_within`,`on_day_month`,`is_empty`,`is_not_empty`],a=[`is`,`is_not`,`any_of`,`none_of`,`is_empty`,`is_not_empty`],o=[`any_of`,`none_of`,`is_empty`,`is_not_empty`],s=[`is`,`is_not`,`any_of`,`none_of`,`is_empty`,`is_not_empty`],c=[`is_empty`,`is_not_empty`],l=[`is`,`is_not`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`contains`,`not_contains`,`is_empty`,`is_not_empty`],u=[`city`,`postalCode`,`country`];function isLocationFilterProperty(e){return u.includes(e)}const d={text:t,richtext:[],number:n,checkbox:r,date:i,phone:[`is`,`is_not`,`contains`,`not_contains`,`starts_with`,`is_empty`,`is_not_empty`],currency:n,status:a,select:a,multiselect:o,location:[],user:s,relation:s,formula:l,document:c},f={text:{value:`plain`,traits:[`placeholder`,`searchable`,`sortable`]},richtext:{value:`plain`,traits:[`searchable`,`content`]},number:{value:`plain`,traits:[`placeholder`,`sortable`]},checkbox:{value:`boolean`,traits:[`sortable`]},date:{value:`plain`,traits:[`placeholder`,`sortable`]},phone:{value:`plain`,traits:[`placeholder`,`searchable`,`sortable`]},currency:{value:`plain`,traits:[`placeholder`,`sortable`,`groupable`]},status:{value:`options`,traits:[`searchable`,`sortable`,`groupable`]},location:{value:`plain`,traits:[]},select:{value:`options`,traits:[`placeholder`,`searchable`,`sortable`]},multiselect:{value:`options`,traits:[`placeholder`,`searchable`]},user:{value:`reference`,traits:[]},relation:{value:`reference`,traits:[`qualified`]},formula:{value:`computed`,traits:[]},rollup:{value:`computed`,traits:[]},document:{value:`reference`,traits:[`content`,`qualified`]}};function descriptorOf(e){return Object.prototype.hasOwnProperty.call(f,e)?f[e]:void 0}function isValueKindType(e,t){return descriptorOf(e)?.value===t}function hasValueKind(e,t){return isValueKindType(e.type,t)}function hasTypeTrait(e,t){return descriptorOf(e)?.traits.includes(t)??!1}const p={plain:`static`,boolean:`automatic`,options:`static`,reference:`static`,computed:`forbidden`};function getAttributeCapabilities(t){let n=!!(t.hidden||t.archived),r=!t.archived,i=descriptorOf(t.type)?.value,a=i===`computed`,o=t.type===`document`,s=i===`reference`&&!e.isHierarchyAttribute(t),c=getAttributeCardinality(t),l=n?[]:getRawFilterOperators(t),u=l.length>0&&!n,d=!n&&hasTypeTrait(t.type,`searchable`),f=!n&&hasTypeTrait(t.type,`sortable`),m=!n&&hasTypeTrait(t.type,`groupable`),h=!n&&(t.type===`status`||t.type===`select`),g=e.isManagedSystemAttribute(t),_=a||o||g,v=!(n||_),y=i===void 0?`forbidden`:p[i],b=i===`boolean`||a?`forbidden`:`allowed`,x=supportsMaxItems(t),S=hasTypeTrait(t.type,`placeholder`),C=hasTypeTrait(t.type,`content`),w=!(!t.deprecated||n),T=resolveEditMode(t);return{lifecycle:{active:r,deprecated:!!t.deprecated,visibleInArchitect:!0,visibleInRuntime:!n,warningWhenDeprecated:w},storage:{mode:a?`computed`:s?`edge`:`value`,cardinality:c,edgeBacked:s,preservesExistingValues:!!t.archived,qualifiedProperties:hasTypeTrait(t.type,`qualified`),polymorphic:getPolymorphicCapability(t),maxItems:x},authoring:{editable:v,readOnly:_,directEdit:v&&T===`inline`,required:b,defaultValue:y,placeholder:S,maxItems:x},presentation:{formField:!n&&t.type!==`richtext`,tableCell:!(n||C),defaultColumn:!(n||C),compactDisplay:!n,popoverEditor:!n&&T===`popover`,placeholder:S,warningWhenDeprecated:w},query:{filterable:u,searchable:d,sortable:f,groupable:m,kanbanGroupable:h,operators:l},agent:{readable:!n,writable:v&&!o,compactReadable:!n,contentReadable:!n&&C,requiresDedicatedTool:o},exchange:{importable:!n,exportable:!n,schemaExportable:!0,metadataExportable:!1}}}function getAttributeFilterOperators(e){return getAttributeCapabilities(e).query.operators}function isAttributeFilterable(e){return getAttributeCapabilities(e).query.filterable}function isAttributeSearchable(e){return getAttributeCapabilities(e).query.searchable}function isAttributeSortable$1(e){return getAttributeCapabilities(e).query.sortable}function isAttributeGroupable(e){return getAttributeCapabilities(e).query.groupable}function isAttributeKanbanGroupable(e){return getAttributeCapabilities(e).query.kanbanGroupable}function resolveEffectiveFilterType(e){if(e.type!==`rollup`)return e.type;let t=e;if(t.function===`earliest`||t.function===`latest`)return`date`;if(t.function===`original`){let e=t.targetAttributeType;if(e&&hasFilterOperatorEntry(e))return e}return`number`}function getRollupFilterOperators(e){let t=resolveEffectiveFilterType(e);return hasFilterOperatorEntry(t)?d[t]:d.number}function getRawFilterOperators(e){return e.type===`rollup`?getRollupFilterOperators(e):d[e.type]??[]}function getAttributeCardinality(e){return e.type===`multiselect`||e.type===`document`||e.type===`user`&&e.multiple===!0||e.type===`relation`&&e.cardinality===`many`?`many`:`one`}function getPolymorphicCapability(e){if(e.type!==`relation`)return`none`;let t=e.targets??[];return t.length===1&&t[0]?.object===`*`?`internal`:t.length>1?`code-only`:`none`}function supportsMaxItems(e){return e.type===`multiselect`||e.type===`relation`&&e.cardinality===`many`}function resolveEditMode(e){switch(e.type){case`checkbox`:return`inline`;case`number`:return e.renderAs===`rating`?`inline`:`default`;case`select`:case`multiselect`:return e.renderAs===`badges`?`inline`:`popover`;case`status`:case`relation`:case`user`:case`date`:return`popover`;default:return`default`}}function hasFilterOperatorEntry(e){return Object.prototype.hasOwnProperty.call(d,e)}const m=[`text`,`richtext`,`number`,`checkbox`,`date`,`phone`,`currency`,`status`,`location`,`select`,`multiselect`,`user`,`relation`,`formula`,`rollup`,`document`];function relationTargetsOf(e){return e.type!==`relation`||!Array.isArray(e.targets)?[]:e.targets.map(e=>e.object).filter(e=>e!==`*`)}function isUniversalRelation(e){return e.targets.length===1&&e.targets[0].object===`*`}function isBilateralRelation(e){return e.bilateral!==void 0}function inferInverseCardinality(e){return`many`}function isAttributeSortable(e){return isAttributeSortable$1(e)}Object.defineProperty(exports,"ATTRIBUTE_FILTER_OPERATORS",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"ATTRIBUTE_TYPES",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"ATTRIBUTE_TYPE_DESCRIPTORS",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"LOCATION_FILTER_PROPERTIES",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"RELATION_TARGET_ANY",{enumerable:!0,get:function(){return`*`}}),Object.defineProperty(exports,"getAttributeCapabilities",{enumerable:!0,get:function(){return getAttributeCapabilities}}),Object.defineProperty(exports,"getAttributeFilterOperators",{enumerable:!0,get:function(){return getAttributeFilterOperators}}),Object.defineProperty(exports,"getRollupFilterOperators",{enumerable:!0,get:function(){return getRollupFilterOperators}}),Object.defineProperty(exports,"hasTypeTrait",{enumerable:!0,get:function(){return hasTypeTrait}}),Object.defineProperty(exports,"hasValueKind",{enumerable:!0,get:function(){return hasValueKind}}),Object.defineProperty(exports,"inferInverseCardinality",{enumerable:!0,get:function(){return inferInverseCardinality}}),Object.defineProperty(exports,"isAttributeFilterable",{enumerable:!0,get:function(){return isAttributeFilterable}}),Object.defineProperty(exports,"isAttributeGroupable",{enumerable:!0,get:function(){return isAttributeGroupable}}),Object.defineProperty(exports,"isAttributeKanbanGroupable",{enumerable:!0,get:function(){return isAttributeKanbanGroupable}}),Object.defineProperty(exports,"isAttributeSearchable",{enumerable:!0,get:function(){return isAttributeSearchable}}),Object.defineProperty(exports,"isAttributeSortable",{enumerable:!0,get:function(){return isAttributeSortable}}),Object.defineProperty(exports,"isBilateralRelation",{enumerable:!0,get:function(){return isBilateralRelation}}),Object.defineProperty(exports,"isLocationFilterProperty",{enumerable:!0,get:function(){return isLocationFilterProperty}}),Object.defineProperty(exports,"isUniversalRelation",{enumerable:!0,get:function(){return isUniversalRelation}}),Object.defineProperty(exports,"isValueKindType",{enumerable:!0,get:function(){return isValueKindType}}),Object.defineProperty(exports,"relationTargetsOf",{enumerable:!0,get:function(){return relationTargetsOf}}),Object.defineProperty(exports,"resolveEffectiveFilterType",{enumerable:!0,get:function(){return resolveEffectiveFilterType}});
|
|
@@ -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{isHierarchyAttribute as e,isManagedSystemAttribute as t}from"./system-attributes-vbOzw6KO.mjs";const n=[`is`,`is_not`,`contains`,`not_contains`,`starts_with`,`ends_with`,`is_empty`,`is_not_empty`],r=[`is`,`is_not`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`is_empty`,`is_not_empty`],i=[`is`],a=[`is`,`is_not`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`is_within`,`on_day_month`,`is_empty`,`is_not_empty`],o=[`is`,`is_not`,`any_of`,`none_of`,`is_empty`,`is_not_empty`],s=[`any_of`,`none_of`,`is_empty`,`is_not_empty`],c=[`is`,`is_not`,`any_of`,`none_of`,`is_empty`,`is_not_empty`],l=[`is_empty`,`is_not_empty`],u=[`is`,`is_not`,`less_than`,`greater_than`,`less_or_equal`,`greater_or_equal`,`contains`,`not_contains`,`is_empty`,`is_not_empty`],d=[`city`,`postalCode`,`country`];function isLocationFilterProperty(e){return d.includes(e)}const f={text:n,richtext:[],number:r,checkbox:i,date:a,phone:[`is`,`is_not`,`contains`,`not_contains`,`starts_with`,`is_empty`,`is_not_empty`],currency:r,status:o,select:o,multiselect:s,location:[],user:c,relation:c,formula:u,document:l},p={text:{value:`plain`,traits:[`placeholder`,`searchable`,`sortable`]},richtext:{value:`plain`,traits:[`searchable`,`content`]},number:{value:`plain`,traits:[`placeholder`,`sortable`]},checkbox:{value:`boolean`,traits:[`sortable`]},date:{value:`plain`,traits:[`placeholder`,`sortable`]},phone:{value:`plain`,traits:[`placeholder`,`searchable`,`sortable`]},currency:{value:`plain`,traits:[`placeholder`,`sortable`,`groupable`]},status:{value:`options`,traits:[`searchable`,`sortable`,`groupable`]},location:{value:`plain`,traits:[]},select:{value:`options`,traits:[`placeholder`,`searchable`,`sortable`]},multiselect:{value:`options`,traits:[`placeholder`,`searchable`]},user:{value:`reference`,traits:[]},relation:{value:`reference`,traits:[`qualified`]},formula:{value:`computed`,traits:[]},rollup:{value:`computed`,traits:[]},document:{value:`reference`,traits:[`content`,`qualified`]}};function descriptorOf(e){return Object.prototype.hasOwnProperty.call(p,e)?p[e]:void 0}function isValueKindType(e,t){return descriptorOf(e)?.value===t}function hasValueKind(e,t){return isValueKindType(e.type,t)}function hasTypeTrait(e,t){return descriptorOf(e)?.traits.includes(t)??!1}const m={plain:`static`,boolean:`automatic`,options:`static`,reference:`static`,computed:`forbidden`};function getAttributeCapabilities(n){let r=!!(n.hidden||n.archived),i=!n.archived,a=descriptorOf(n.type)?.value,o=a===`computed`,s=n.type===`document`,c=a===`reference`&&!e(n),l=getAttributeCardinality(n),u=r?[]:getRawFilterOperators(n),d=u.length>0&&!r,f=!r&&hasTypeTrait(n.type,`searchable`),p=!r&&hasTypeTrait(n.type,`sortable`),h=!r&&hasTypeTrait(n.type,`groupable`),g=!r&&(n.type===`status`||n.type===`select`),_=t(n),v=o||s||_,y=!(r||v),b=a===void 0?`forbidden`:m[a],x=a===`boolean`||o?`forbidden`:`allowed`,S=supportsMaxItems(n),C=hasTypeTrait(n.type,`placeholder`),w=hasTypeTrait(n.type,`content`),T=!(!n.deprecated||r),E=resolveEditMode(n);return{lifecycle:{active:i,deprecated:!!n.deprecated,visibleInArchitect:!0,visibleInRuntime:!r,warningWhenDeprecated:T},storage:{mode:o?`computed`:c?`edge`:`value`,cardinality:l,edgeBacked:c,preservesExistingValues:!!n.archived,qualifiedProperties:hasTypeTrait(n.type,`qualified`),polymorphic:getPolymorphicCapability(n),maxItems:S},authoring:{editable:y,readOnly:v,directEdit:y&&E===`inline`,required:x,defaultValue:b,placeholder:C,maxItems:S},presentation:{formField:!r&&n.type!==`richtext`,tableCell:!(r||w),defaultColumn:!(r||w),compactDisplay:!r,popoverEditor:!r&&E===`popover`,placeholder:C,warningWhenDeprecated:T},query:{filterable:d,searchable:f,sortable:p,groupable:h,kanbanGroupable:g,operators:u},agent:{readable:!r,writable:y&&!s,compactReadable:!r,contentReadable:!r&&w,requiresDedicatedTool:s},exchange:{importable:!r,exportable:!r,schemaExportable:!0,metadataExportable:!1}}}function getAttributeFilterOperators(e){return getAttributeCapabilities(e).query.operators}function isAttributeFilterable(e){return getAttributeCapabilities(e).query.filterable}function isAttributeSearchable(e){return getAttributeCapabilities(e).query.searchable}function isAttributeSortable$1(e){return getAttributeCapabilities(e).query.sortable}function isAttributeGroupable(e){return getAttributeCapabilities(e).query.groupable}function isAttributeKanbanGroupable(e){return getAttributeCapabilities(e).query.kanbanGroupable}function resolveEffectiveFilterType(e){if(e.type!==`rollup`)return e.type;let t=e;if(t.function===`earliest`||t.function===`latest`)return`date`;if(t.function===`original`){let e=t.targetAttributeType;if(e&&hasFilterOperatorEntry(e))return e}return`number`}function getRollupFilterOperators(e){let t=resolveEffectiveFilterType(e);return hasFilterOperatorEntry(t)?f[t]:f.number}function getRawFilterOperators(e){return e.type===`rollup`?getRollupFilterOperators(e):f[e.type]??[]}function getAttributeCardinality(e){return e.type===`multiselect`||e.type===`document`||e.type===`user`&&e.multiple===!0||e.type===`relation`&&e.cardinality===`many`?`many`:`one`}function getPolymorphicCapability(e){if(e.type!==`relation`)return`none`;let t=e.targets??[];return t.length===1&&t[0]?.object===`*`?`internal`:t.length>1?`code-only`:`none`}function supportsMaxItems(e){return e.type===`multiselect`||e.type===`relation`&&e.cardinality===`many`}function resolveEditMode(e){switch(e.type){case`checkbox`:return`inline`;case`number`:return e.renderAs===`rating`?`inline`:`default`;case`select`:case`multiselect`:return e.renderAs===`badges`?`inline`:`popover`;case`status`:case`relation`:case`user`:case`date`:return`popover`;default:return`default`}}function hasFilterOperatorEntry(e){return Object.prototype.hasOwnProperty.call(f,e)}const h=[`text`,`richtext`,`number`,`checkbox`,`date`,`phone`,`currency`,`status`,`location`,`select`,`multiselect`,`user`,`relation`,`formula`,`rollup`,`document`],g=`*`;function relationTargetsOf(e){return e.type!==`relation`||!Array.isArray(e.targets)?[]:e.targets.map(e=>e.object).filter(e=>e!==`*`)}function isUniversalRelation(e){return e.targets.length===1&&e.targets[0].object===`*`}function isBilateralRelation(e){return e.bilateral!==void 0}function inferInverseCardinality(e){return`many`}function isAttributeSortable(e){return isAttributeSortable$1(e)}export{f as ATTRIBUTE_FILTER_OPERATORS,h as ATTRIBUTE_TYPES,p as ATTRIBUTE_TYPE_DESCRIPTORS,d as LOCATION_FILTER_PROPERTIES,g as RELATION_TARGET_ANY,getAttributeCapabilities,getAttributeFilterOperators,getRollupFilterOperators,hasTypeTrait,hasValueKind,inferInverseCardinality,isAttributeFilterable,isAttributeGroupable,isAttributeKanbanGroupable,isAttributeSearchable,isAttributeSortable,isBilateralRelation,isLocationFilterProperty,isUniversalRelation,isValueKindType,relationTargetsOf,resolveEffectiveFilterType};
|
|
@@ -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"),n=require("./actors-DtSC4jD7.js");let r=require("zod");r=e.__toESM(r);const i=[`record`,`object`,`attribute`,`view`,`user`,`role`,`settings`,`file`,`agent`,`bundle`,`tenant_invitation`,`api_key`,`agent_session`],a=/* @__PURE__ */ `record.created,record.updated,record.deleted,record.restored,record.purged,record.access_changed,agent.access_changed,agent_session.supervised_read,object.created,object.updated,object.deleted,attribute.created,attribute.updated,attribute.retyped,attribute.deleted,view.created,view.updated,view.deleted,bundle.synced,bundle.removed,bundle.added,bundle.updated,user.created,user.invited,user.updated,user.deleted,user.login,user.logout,tenant_invitation.created,tenant_invitation.delivery_failed,tenant_invitation.resent,tenant_invitation.revoked,tenant_invitation.accepted,role.created,role.updated,role.deleted,role.assigned,role.revoked,api_key.created,api_key.revoked,api_key.detached,settings.updated,file.uploaded,file.updated,file.deleted`.split(`,`),o=r.object({field:r.string(),oldValue:r.unknown().optional(),newValue:r.unknown().optional(),oldLabel:r.string().optional(),newLabel:r.string().optional(),oldLabels:r.array(r.string()).optional(),newLabels:r.array(r.string()).optional()});function isAgentWrittenAuditEntry(e){return e.actorType===`agent`||typeof e.metadata?.agentSessionId==`string`}const s=r.object({id:r.string(),tenantId:r.string(),actorId:r.string().optional(),actorEmail:r.string().optional(),actorType:r.enum(n.ACTOR_TYPES),triggeredByActorId:r.string().optional(),rootActorId:r.string().optional(),action:r.enum(a),resourceType:r.enum(i),resourceId:r.string(),resourceLabel:r.string().optional(),objectName:r.string().optional(),objectId:r.string().optional(),changes:r.array(o).optional(),metadata:r.record(r.string(),r.unknown()).optional(),createdAt:t.isoDateTime});Object.defineProperty(exports,"AUDIT_ACTIONS",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"AUDIT_AGENT_SESSION_METADATA_KEY",{enumerable:!0,get:function(){return`agentSessionId`}}),Object.defineProperty(exports,"AUDIT_RESOURCE_TYPES",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"auditChangeSchema",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"auditLogEntrySchema",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"isAgentWrittenAuditEntry",{enumerable:!0,get:function(){return isAgentWrittenAuditEntry}});
|
|
@@ -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{ACTOR_TYPES as t}from"./actors-D6cncaeM.mjs";import*as n from"zod";const r=[`record`,`object`,`attribute`,`view`,`user`,`role`,`settings`,`file`,`agent`,`bundle`,`tenant_invitation`,`api_key`,`agent_session`],i=/* @__PURE__ */ `record.created,record.updated,record.deleted,record.restored,record.purged,record.access_changed,agent.access_changed,agent_session.supervised_read,object.created,object.updated,object.deleted,attribute.created,attribute.updated,attribute.retyped,attribute.deleted,view.created,view.updated,view.deleted,bundle.synced,bundle.removed,bundle.added,bundle.updated,user.created,user.invited,user.updated,user.deleted,user.login,user.logout,tenant_invitation.created,tenant_invitation.delivery_failed,tenant_invitation.resent,tenant_invitation.revoked,tenant_invitation.accepted,role.created,role.updated,role.deleted,role.assigned,role.revoked,api_key.created,api_key.revoked,api_key.detached,settings.updated,file.uploaded,file.updated,file.deleted`.split(`,`),a=n.object({field:n.string(),oldValue:n.unknown().optional(),newValue:n.unknown().optional(),oldLabel:n.string().optional(),newLabel:n.string().optional(),oldLabels:n.array(n.string()).optional(),newLabels:n.array(n.string()).optional()}),o=`agentSessionId`;function isAgentWrittenAuditEntry(e){return e.actorType===`agent`||typeof e.metadata?.agentSessionId==`string`}const s=n.object({id:n.string(),tenantId:n.string(),actorId:n.string().optional(),actorEmail:n.string().optional(),actorType:n.enum(t),triggeredByActorId:n.string().optional(),rootActorId:n.string().optional(),action:n.enum(i),resourceType:n.enum(r),resourceId:n.string(),resourceLabel:n.string().optional(),objectName:n.string().optional(),objectId:n.string().optional(),changes:n.array(a).optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:e});export{i as AUDIT_ACTIONS,o as AUDIT_AGENT_SESSION_METADATA_KEY,r as AUDIT_RESOURCE_TYPES,a as auditChangeSchema,s as auditLogEntrySchema,isAgentWrittenAuditEntry};
|
|
@@ -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("./audit-Cjoaib0c.js"),n=require("./operation-b0CY8USr.js"),r=require("./page-query-BIn1m1Dx.js"),i=require("./query-integers-EVkedFO4.js");let a=require("zod");a=e.__toESM(a);var o=/* @__PURE__ */ e.__exportAll({auditOperations:()=>p});const s=new Set(t.AUDIT_ACTIONS),c=new Set(t.AUDIT_RESOURCE_TYPES),l=a.union([a.string(),a.number()]).optional();function commaList(e,t){let n=e.split(`,`).map(e=>e.trim());return{members:n,unknown:n.find(e=>!t.has(e))}}const u=a.object({limit:l,offset:l,action:a.string().optional(),resourceType:a.string().optional(),objectName:a.string().optional(),actorId:a.string().optional(),from:a.string().optional(),to:a.string().optional()}).transform((e,t)=>{let n={limit:i.parseBoundedPositiveInteger(e.limit,{defaultValue:50,max:200}),offset:i.parseNonNegativeInteger(e.offset)??0};function refuse(e,n){return t.addIssue({code:`custom`,path:[e],message:n}),a.NEVER}if(e.action){let{members:t,unknown:r}=commaList(e.action,s);if(r!==void 0)return refuse(`action`,`Unknown audit action: "${r}"`);n.action=t.length===1?t[0]:t}if(e.resourceType){let{members:t,unknown:r}=commaList(e.resourceType,c);if(r!==void 0)return refuse(`resourceType`,`Unknown audit resource type: "${r}"`);n.resourceType=t.length===1?t[0]:t}if(e.objectName&&(n.objectName=e.objectName),e.actorId&&(n.actorId=e.actorId),e.from){let t=new Date(e.from);if(Number.isNaN(t.getTime()))return refuse(`from`,`Invalid 'from' date: "${e.from}"`);n.from=t}if(e.to){let t=new Date(e.to);if(Number.isNaN(t.getTime()))return refuse(`to`,`Invalid 'to' date: "${e.to}"`);n.to=t}return n}),d=r.offsetPageQuery({defaultLimit:50,maxLimit:200}),f=a.object({entries:a.array(t.auditLogEntrySchema),total:a.number(),nextOffset:a.number().nullable()}),p={list:n.operation({name:`audit.list`,method:`GET`,path:`/audit`,input:u,output:f,permission:[`audit`,`read`]}),recordHistory:n.operation({name:`audit.recordHistory`,method:`GET`,path:`/audit/records/:recordId`,input:a.object({recordId:a.string()}).extend(d.shape),output:a.array(t.auditLogEntrySchema)})};Object.defineProperty(exports,"auditListQuery",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"auditListResponseSchema",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"auditOperations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"audit_operations_exports",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"recordHistoryQuery",{enumerable:!0,get:function(){return d}});
|
|
@@ -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{AUDIT_ACTIONS as t,AUDIT_RESOURCE_TYPES as n,auditLogEntrySchema as r}from"./audit-jbBwdDtV.mjs";import{operation as i}from"./operation-Ljhj0S-y.mjs";import{offsetPageQuery as a}from"./page-query-B8Evn_OX.mjs";import{parseBoundedPositiveInteger as o,parseNonNegativeInteger as s}from"./query-integers-CZDEkFmm.mjs";import*as c from"zod";var l=/* @__PURE__ */ e({auditOperations:()=>g});const u=new Set(t),d=new Set(n),f=c.union([c.string(),c.number()]).optional();function commaList(e,t){let n=e.split(`,`).map(e=>e.trim());return{members:n,unknown:n.find(e=>!t.has(e))}}const p=c.object({limit:f,offset:f,action:c.string().optional(),resourceType:c.string().optional(),objectName:c.string().optional(),actorId:c.string().optional(),from:c.string().optional(),to:c.string().optional()}).transform((e,t)=>{let n={limit:o(e.limit,{defaultValue:50,max:200}),offset:s(e.offset)??0};function refuse(e,n){return t.addIssue({code:`custom`,path:[e],message:n}),c.NEVER}if(e.action){let{members:t,unknown:r}=commaList(e.action,u);if(r!==void 0)return refuse(`action`,`Unknown audit action: "${r}"`);n.action=t.length===1?t[0]:t}if(e.resourceType){let{members:t,unknown:r}=commaList(e.resourceType,d);if(r!==void 0)return refuse(`resourceType`,`Unknown audit resource type: "${r}"`);n.resourceType=t.length===1?t[0]:t}if(e.objectName&&(n.objectName=e.objectName),e.actorId&&(n.actorId=e.actorId),e.from){let t=new Date(e.from);if(Number.isNaN(t.getTime()))return refuse(`from`,`Invalid 'from' date: "${e.from}"`);n.from=t}if(e.to){let t=new Date(e.to);if(Number.isNaN(t.getTime()))return refuse(`to`,`Invalid 'to' date: "${e.to}"`);n.to=t}return n}),m=a({defaultLimit:50,maxLimit:200}),h=c.object({entries:c.array(r),total:c.number(),nextOffset:c.number().nullable()}),g={list:i({name:`audit.list`,method:`GET`,path:`/audit`,input:p,output:h,permission:[`audit`,`read`]}),recordHistory:i({name:`audit.recordHistory`,method:`GET`,path:`/audit/records/:recordId`,input:c.object({recordId:c.string()}).extend(m.shape),output:c.array(r)})};export{p as auditListQuery,h as auditListResponseSchema,g as auditOperations,l as audit_operations_exports,m as recordHistoryQuery};
|
|
@@ -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{RESOURCE_VISIBILITIES as e}from"./objects-LC_PpZf5.mjs";import*as t from"zod";const n=t.object({id:t.string(),name:t.string(),visibility:t.enum(e),ownedBy:t.string(),preparedAt:t.string().nullable(),lastUsedAt:t.string().nullable(),inUse:t.object({kind:t.enum([`agent`,`prepare`]),sessionId:t.string()}).nullable(),usedBy:t.array(t.object({id:t.string(),name:t.string(),kind:t.enum([`agent`,`routine`])})),personal:t.boolean()}),r=t.object({sessionId:t.string()}),i=t.object({url:t.string()});export{r as browserProfilePreparationSchema,n as browserProfileViewSchema,i as cloudBrowserLiveViewSchema};
|
|
@@ -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");let n=require("zod");n=e.__toESM(n);const r=n.object({id:n.string(),name:n.string(),visibility:n.enum(t.RESOURCE_VISIBILITIES),ownedBy:n.string(),preparedAt:n.string().nullable(),lastUsedAt:n.string().nullable(),inUse:n.object({kind:n.enum([`agent`,`prepare`]),sessionId:n.string()}).nullable(),usedBy:n.array(n.object({id:n.string(),name:n.string(),kind:n.enum([`agent`,`routine`])})),personal:n.boolean()}),i=n.object({sessionId:n.string()}),a=n.object({url:n.string()});Object.defineProperty(exports,"browserProfilePreparationSchema",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"browserProfileViewSchema",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"cloudBrowserLiveViewSchema",{enumerable:!0,get:function(){return a}});
|
|
@@ -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("./browser-profile-output.schema-DOGfwtLW.js"),n=require("./operation-b0CY8USr.js"),r=require("./uuid-param-Djtff5Vy.js");let i=require("zod");i=e.__toESM(i);var a=/* @__PURE__ */ e.__exportAll({browserProfilesOperations:()=>f,cloudBrowsersOperations:()=>p});const o=i.string().trim().min(1).max(100),s=i.enum([`private`,`workspace`]),c=i.strictObject({name:o,visibility:s.optional(),confirmShared:i.boolean().optional()}),l=i.strictObject({name:o.optional(),visibility:s.optional(),confirmShared:i.boolean().optional()}),u=i.strictObject({takeOver:i.boolean().optional()}),d=i.strictObject({id:r.uuidParam}),f={list:n.operation({name:`browserProfiles.list`,method:`GET`,path:`/browser-profiles`,input:i.object({}),output:i.array(t.browserProfileViewSchema)}),create:n.operation({name:`browserProfiles.create`,method:`POST`,path:`/browser-profiles`,input:c,output:t.browserProfileViewSchema,permission:[`browser-profiles`,`create`]}),update:n.operation({name:`browserProfiles.update`,method:`PATCH`,path:`/browser-profiles/:id`,input:d.extend(l.shape),output:t.browserProfileViewSchema}),delete:n.operation({name:`browserProfiles.delete`,method:`DELETE`,path:`/browser-profiles/:id`,input:d,output:n.type(),status:204}),prepare:n.operation({name:`browserProfiles.prepare`,method:`POST`,path:`/browser-profiles/:id/prepare`,input:d.extend(u.shape),output:t.browserProfilePreparationSchema,status:200}),finishPreparation:n.operation({name:`browserProfiles.finishPreparation`,method:`POST`,path:`/browser-profiles/:id/prepare/finish`,input:d,output:n.type(),status:204}),ensurePersonal:n.operation({name:`browserProfiles.ensurePersonal`,method:`POST`,path:`/browser-profiles/personal`,input:i.object({}),output:t.browserProfileViewSchema,status:200}),reset:n.operation({name:`browserProfiles.reset`,method:`POST`,path:`/browser-profiles/:id/reset`,input:d,output:n.type(),status:204})},p={live:n.operation({name:`cloudBrowsers.live`,method:`GET`,path:`/cloud-browsers/:sessionId/live`,input:i.strictObject({sessionId:r.uuidParam}),output:t.cloudBrowserLiveViewSchema})};Object.defineProperty(exports,"browserProfilesOperations",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"browser_profiles_operations_exports",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"cloudBrowsersOperations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"createBrowserProfileBody",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"prepareBrowserProfileBody",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"updateBrowserProfileBody",{enumerable:!0,get:function(){return l}});
|
|
@@ -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{browserProfilePreparationSchema as t,browserProfileViewSchema as n,cloudBrowserLiveViewSchema as r}from"./browser-profile-output.schema-ChhKkoin.mjs";import{operation as i,type as a}from"./operation-Ljhj0S-y.mjs";import{uuidParam as o}from"./uuid-param-BuV4RQRp.mjs";import*as s from"zod";var c=/* @__PURE__ */ e({browserProfilesOperations:()=>h,cloudBrowsersOperations:()=>g});const l=s.string().trim().min(1).max(100),u=s.enum([`private`,`workspace`]),d=s.strictObject({name:l,visibility:u.optional(),confirmShared:s.boolean().optional()}),f=s.strictObject({name:l.optional(),visibility:u.optional(),confirmShared:s.boolean().optional()}),p=s.strictObject({takeOver:s.boolean().optional()}),m=s.strictObject({id:o}),h={list:i({name:`browserProfiles.list`,method:`GET`,path:`/browser-profiles`,input:s.object({}),output:s.array(n)}),create:i({name:`browserProfiles.create`,method:`POST`,path:`/browser-profiles`,input:d,output:n,permission:[`browser-profiles`,`create`]}),update:i({name:`browserProfiles.update`,method:`PATCH`,path:`/browser-profiles/:id`,input:m.extend(f.shape),output:n}),delete:i({name:`browserProfiles.delete`,method:`DELETE`,path:`/browser-profiles/:id`,input:m,output:a(),status:204}),prepare:i({name:`browserProfiles.prepare`,method:`POST`,path:`/browser-profiles/:id/prepare`,input:m.extend(p.shape),output:t,status:200}),finishPreparation:i({name:`browserProfiles.finishPreparation`,method:`POST`,path:`/browser-profiles/:id/prepare/finish`,input:m,output:a(),status:204}),ensurePersonal:i({name:`browserProfiles.ensurePersonal`,method:`POST`,path:`/browser-profiles/personal`,input:s.object({}),output:n,status:200}),reset:i({name:`browserProfiles.reset`,method:`POST`,path:`/browser-profiles/:id/reset`,input:m,output:a(),status:204})},g={live:i({name:`cloudBrowsers.live`,method:`GET`,path:`/cloud-browsers/:sessionId/live`,input:s.strictObject({sessionId:o}),output:r})};export{h as browserProfilesOperations,c as browser_profiles_operations_exports,g as cloudBrowsersOperations,d as createBrowserProfileBody,p as prepareBrowserProfileBody,f as updateBrowserProfileBody};
|
|
@@ -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"),n=require("./attributes-B2wmzoDI.js");let r=require("zod");r=e.__toESM(r);const i=[`fr`,`en`],a=r.enum([`synced`,`added`]),o=r.enum([`code`,`http`]),s=r.object({name:r.string(),label:r.string(),description:r.string().nullable(),mode:a,origin:o.nullable(),hash:r.string().nullable(),uses:r.array(r.string()),installedAt:r.string(),updatedAt:r.string(),installedBy:r.string().nullable()}),c=r.enum([`current`,`update`,`repair`]),l=r.object({name:r.string(),status:c,usedBy:r.array(r.string())}),u=t.brandedString().nullable(),d=r.object({objects:r.array(r.object({name:r.string(),label:r.string(),icon:r.string().nullable(),color:u,attributes:r.array(r.string()),optionsLabel:r.string().nullable(),options:r.array(r.object({label:r.string(),color:u})),inWorkspace:r.boolean()})),views:r.array(r.object({object:r.string(),tabs:r.array(r.string()),kind:r.enum([`table`,`kanban`,`list`,`record`])})),pages:r.array(r.object({name:r.string(),label:r.string(),inWorkspace:r.boolean(),home:r.boolean()})),extends:r.array(r.object({name:r.string(),label:r.string(),icon:r.string().nullable(),color:u})),skills:r.array(r.string()),agents:r.array(r.object({name:r.string(),label:r.string(),kind:r.enum([`routine`,`agent`]),inWorkspace:r.boolean()}))}),f=r.object({name:r.string(),label:r.string(),description:r.string().nullable(),uses:r.array(r.string()),hasSamples:r.boolean(),installed:r.boolean(),contents:d}),p=r.object({installed:r.array(s),available:r.array(f)}),m=r.object({kind:r.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:r.string()}),h=r.object({object:r.string(),attribute:r.string(),to:r.enum(n.ATTRIBUTE_TYPES),dependents:r.array(m),hiddenDependents:r.number()}),g=r.object({object:r.string(),attribute:r.string(),declared:r.enum(n.ATTRIBUTE_TYPES),stored:r.enum(n.ATTRIBUTE_TYPES)}),_=r.enum([`object`,`view`,`agent`]),v=r.object({pieceId:r.string(),bundleName:r.string(),kind:_,status:r.enum([`new`,`collides`]),existingName:r.string().optional(),installed:r.literal(!0).optional(),installable:r.boolean(),reason:r.string().optional(),inverseRelations:r.array(r.object({objectName:r.string(),attributeName:r.string()})).optional()}),y=r.object({pieces:r.array(v),fingerprint:r.string()}),b=r.enum([`object`,`view`,`page`,`tab`,`agent`,`attribute`,`option`,`skill`]),x=r.enum([`added`,`updated`,`conflict`,`missing`,`notApplied`,`removed`]),S=r.enum([`lossy`,`required`,`retype`,`move`,`nameTaken`,`refused`,`precondition`,`dependents`,`conversion`,`ambiguousRename`,`heldWith`,`invalid`,`blockedByWorkspace`,`resolved`,`needsConfirmation`,`usedByBundle`,`takeoverOfAdded`]),C=r.object({pieceId:r.string(),kind:b,group:x,label:r.string(),reasonCode:S.optional(),reasonName:r.string().optional(),fromType:r.enum(n.ATTRIBUTE_TYPES).optional(),toType:r.enum(n.ATTRIBUTE_TYPES).optional(),dependents:r.array(m).optional(),hiddenDependents:r.number().optional()}),w=r.object({objectLabel:r.string(),attributeLabel:r.string()}),T=r.object({blockedBy:r.array(r.string()),objects:r.array(r.object({name:r.string(),label:r.string(),records:r.number()})),views:r.number(),viewContents:r.array(r.object({viewLabel:r.string(),contentLabel:r.string()})),hiddenViewContents:r.number(),pages:r.number(),routines:r.number(),agents:r.number(),skills:r.number(),inboundRelations:r.array(w),computedAttributes:r.array(w),prunedRelations:r.array(w),emptiedViews:r.array(r.object({viewLabel:r.string()})),citedBy:r.array(r.object({objectLabel:r.string(),attributeLabel:r.string().optional(),viewLabel:r.string().optional()})),fingerprint:r.string()}),E=T.pick({viewContents:!0,hiddenViewContents:!0,inboundRelations:!0,computedAttributes:!0,prunedRelations:!0,emptiedViews:!0}),D=r.object({pieceId:r.string(),kind:b,label:r.string(),records:r.number().optional(),cascade:E.optional()}),O=r.object({applied:r.boolean(),hash:r.string(),objects:r.object({created:r.number(),updated:r.number(),deleted:r.number()}).optional(),views:r.object({created:r.number(),updated:r.number(),adopted:r.number(),released:r.number()}).optional(),deferredRetypes:r.array(h).optional(),servedAsIs:r.array(g).optional(),pendingRemovals:r.array(D)}),k=r.object({pieces:r.array(C),removals:r.array(D),totalRecords:r.number().optional(),fingerprint:r.string()}),A=r.object({pieces:r.array(C),removals:r.array(D),fingerprint:r.string(),totalRecords:r.number().optional()}),j=r.object({applied:r.number()}),M=r.object({added:r.array(r.object({bundleName:r.string(),targetKind:_,targetId:r.string()})),failed:r.array(r.object({pieceId:r.string(),reason:r.string()}))});Object.defineProperty(exports,"BUNDLE_LOCALES",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"BUNDLE_SETUP_PROMPT_MAX_LENGTH",{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,"availableBundleSummarySchema",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"bundleAddPlanSchema",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"bundleAddResultSchema",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"bundleContentsSchema",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"bundleListSchema",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"bundleModeSchema",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"bundleOriginSchema",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"bundlePieceKindSchema",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"bundlePlanPieceSchema",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"bundleRemovalCascadeSchema",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"bundleRemovalPreviewSchema",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"bundleRemovalRowSchema",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"bundleStatusEntrySchema",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"bundleStatusSchema",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"bundleSyncPreviewSchema",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"bundleUpdateDependentSchema",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"bundleUpdateGroupSchema",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"bundleUpdatePieceKindSchema",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"bundleUpdatePieceSchema",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"bundleUpdatePlanSchema",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"bundleUpdateReasonCodeSchema",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"bundleUpdateResultSchema",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"deferredRetypeSchema",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"installedBundleSummarySchema",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"servedAsIsAttributeSchema",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"syncBundleResultSchema",{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{brandedString as e}from"./output-D0Gkm-0Z.mjs";import{ATTRIBUTE_TYPES as t}from"./attributes-DYUkML5S.mjs";import*as n from"zod";const r=[`fr`,`en`],i=2e3,a=n.enum([`synced`,`added`]),o=n.enum([`code`,`http`]),s=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),mode:a,origin:o.nullable(),hash:n.string().nullable(),uses:n.array(n.string()),installedAt:n.string(),updatedAt:n.string(),installedBy:n.string().nullable()}),c=n.enum([`current`,`update`,`repair`]),l=n.object({name:n.string(),status:c,usedBy:n.array(n.string())}),u=e().nullable(),d=n.object({objects:n.array(n.object({name:n.string(),label:n.string(),icon:n.string().nullable(),color:u,attributes:n.array(n.string()),optionsLabel:n.string().nullable(),options:n.array(n.object({label:n.string(),color:u})),inWorkspace:n.boolean()})),views:n.array(n.object({object:n.string(),tabs:n.array(n.string()),kind:n.enum([`table`,`kanban`,`list`,`record`])})),pages:n.array(n.object({name:n.string(),label:n.string(),inWorkspace:n.boolean(),home:n.boolean()})),extends:n.array(n.object({name:n.string(),label:n.string(),icon:n.string().nullable(),color:u})),skills:n.array(n.string()),agents:n.array(n.object({name:n.string(),label:n.string(),kind:n.enum([`routine`,`agent`]),inWorkspace:n.boolean()}))}),f=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),uses:n.array(n.string()),hasSamples:n.boolean(),installed:n.boolean(),contents:d}),p=n.object({installed:n.array(s),available:n.array(f)}),m=n.object({kind:n.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:n.string()}),h=n.object({object:n.string(),attribute:n.string(),to:n.enum(t),dependents:n.array(m),hiddenDependents:n.number()}),g=n.object({object:n.string(),attribute:n.string(),declared:n.enum(t),stored:n.enum(t)}),_=n.enum([`object`,`view`,`agent`]),v=n.object({pieceId:n.string(),bundleName:n.string(),kind:_,status:n.enum([`new`,`collides`]),existingName:n.string().optional(),installed:n.literal(!0).optional(),installable:n.boolean(),reason:n.string().optional(),inverseRelations:n.array(n.object({objectName:n.string(),attributeName:n.string()})).optional()}),y=n.object({pieces:n.array(v),fingerprint:n.string()}),b=n.enum([`object`,`view`,`page`,`tab`,`agent`,`attribute`,`option`,`skill`]),x=n.enum([`added`,`updated`,`conflict`,`missing`,`notApplied`,`removed`]),S=n.enum([`lossy`,`required`,`retype`,`move`,`nameTaken`,`refused`,`precondition`,`dependents`,`conversion`,`ambiguousRename`,`heldWith`,`invalid`,`blockedByWorkspace`,`resolved`,`needsConfirmation`,`usedByBundle`,`takeoverOfAdded`]),C=n.object({pieceId:n.string(),kind:b,group:x,label:n.string(),reasonCode:S.optional(),reasonName:n.string().optional(),fromType:n.enum(t).optional(),toType:n.enum(t).optional(),dependents:n.array(m).optional(),hiddenDependents:n.number().optional()}),w=n.object({objectLabel:n.string(),attributeLabel:n.string()}),T=n.object({blockedBy:n.array(n.string()),objects:n.array(n.object({name:n.string(),label:n.string(),records:n.number()})),views:n.number(),viewContents:n.array(n.object({viewLabel:n.string(),contentLabel:n.string()})),hiddenViewContents:n.number(),pages:n.number(),routines:n.number(),agents:n.number(),skills:n.number(),inboundRelations:n.array(w),computedAttributes:n.array(w),prunedRelations:n.array(w),emptiedViews:n.array(n.object({viewLabel:n.string()})),citedBy:n.array(n.object({objectLabel:n.string(),attributeLabel:n.string().optional(),viewLabel:n.string().optional()})),fingerprint:n.string()}),E=T.pick({viewContents:!0,hiddenViewContents:!0,inboundRelations:!0,computedAttributes:!0,prunedRelations:!0,emptiedViews:!0}),D=n.object({pieceId:n.string(),kind:b,label:n.string(),records:n.number().optional(),cascade:E.optional()}),O=n.object({applied:n.boolean(),hash:n.string(),objects:n.object({created:n.number(),updated:n.number(),deleted:n.number()}).optional(),views:n.object({created:n.number(),updated:n.number(),adopted:n.number(),released:n.number()}).optional(),deferredRetypes:n.array(h).optional(),servedAsIs:n.array(g).optional(),pendingRemovals:n.array(D)}),k=n.object({pieces:n.array(C),removals:n.array(D),totalRecords:n.number().optional(),fingerprint:n.string()}),A=n.object({pieces:n.array(C),removals:n.array(D),fingerprint:n.string(),totalRecords:n.number().optional()}),j=n.object({applied:n.number()}),M=n.object({added:n.array(n.object({bundleName:n.string(),targetKind:_,targetId:n.string()})),failed:n.array(n.object({pieceId:n.string(),reason:n.string()}))});export{r as BUNDLE_LOCALES,i as BUNDLE_SETUP_PROMPT_MAX_LENGTH,f as availableBundleSummarySchema,y as bundleAddPlanSchema,M as bundleAddResultSchema,d as bundleContentsSchema,p as bundleListSchema,a as bundleModeSchema,o as bundleOriginSchema,_ as bundlePieceKindSchema,v as bundlePlanPieceSchema,E as bundleRemovalCascadeSchema,T as bundleRemovalPreviewSchema,D as bundleRemovalRowSchema,l as bundleStatusEntrySchema,c as bundleStatusSchema,A as bundleSyncPreviewSchema,m as bundleUpdateDependentSchema,x as bundleUpdateGroupSchema,b as bundleUpdatePieceKindSchema,C as bundleUpdatePieceSchema,k as bundleUpdatePlanSchema,S as bundleUpdateReasonCodeSchema,j as bundleUpdateResultSchema,h as deferredRetypeSchema,s as installedBundleSummarySchema,g as servedAsIsAttributeSchema,O as syncBundleResultSchema};
|
|
@@ -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("./bundle-output.schema-Ck4tpVVV.js"),n=require("./operation-b0CY8USr.js"),r=require("./unchecked-C4sB97e1.js");let i=require("zod");i=e.__toESM(i);var a=/* @__PURE__ */ e.__exportAll({bundlesOperations:()=>u});const o=i.object({name:i.string()}),s=i.enum(t.BUNDLE_LOCALES),c=i.object({bundles:i.array(i.string()),withSamples:i.boolean().optional(),locale:s,notes:i.record(i.string(),i.string()).optional()}),l=i.union([i.literal(`bind`),i.literal(`skip`),i.object({rename:i.string()})]),u={list:n.operation({name:`bundles.list`,method:`GET`,path:`/bundles`,input:i.object({locale:s.optional()}),output:t.bundleListSchema,permission:[`architect`,`read`],throttle:`skip`}),status:n.operation({name:`bundles.status`,method:`GET`,path:`/bundle-statuses`,input:i.object({}),output:i.array(t.bundleStatusEntrySchema),permission:[`architect`,`read`],throttle:`skip`}),updatePreview:n.operation({name:`bundles.updatePreview`,method:`GET`,path:`/bundles/:name/update`,input:o,output:t.bundleUpdatePlanSchema,permission:[`architect`,`read`],throttle:`skip`}),update:n.operation({name:`bundles.update`,method:`POST`,path:`/bundles/:name/update`,input:o.extend({fingerprint:i.string(),take:i.array(i.string()),skipMissing:i.array(i.string()),confirmedRecords:i.number().int().nonnegative().optional(),decisions:i.record(i.string(),l).optional()}),output:t.bundleUpdateResultSchema,permission:[`architect`,`update`],throttle:`skip`}),get:n.operation({name:`bundles.get`,method:`GET`,path:`/bundles/:name`,input:o,output:t.installedBundleSummarySchema,permission:[`architect`,`read`],throttle:`skip`}),sync:n.operation({name:`bundles.sync`,method:`PUT`,path:`/bundles/:name`,input:o.extend({bundle:r.unchecked()}),body:`bundle`,output:t.syncBundleResultSchema,permission:[`architect`,`update`],throttle:`skip`}),syncPreview:n.operation({name:`bundles.syncPreview`,method:`POST`,path:`/bundles/:name/sync-preview`,input:o.extend({bundle:r.unchecked()}),output:t.bundleSyncPreviewSchema,permission:[`architect`,`update`],throttle:`skip`}),removalPreview:n.operation({name:`bundles.removalPreview`,method:`GET`,path:`/bundles/:name/removal`,input:o,output:t.bundleRemovalPreviewSchema,permission:[`architect`,`delete`],throttle:`skip`}),remove:n.operation({name:`bundles.remove`,method:`DELETE`,path:`/bundles/:name`,input:o.extend({fingerprint:i.string().optional(),confirmedRecords:i.number().int().nonnegative().optional()}),output:n.type(),permission:[`architect`,`delete`],status:204,throttle:`skip`}),preview:n.operation({name:`bundles.preview`,method:`POST`,path:`/bundles/preview`,input:c,output:t.bundleAddPlanSchema,permission:[`architect`,`read`],throttle:`skip`}),add:n.operation({name:`bundles.add`,method:`POST`,path:`/bundles/add`,input:c.extend({decisions:i.record(i.string(),l),fingerprint:i.string()}),output:t.bundleAddResultSchema,permission:[`architect`,`create`],throttle:`skip`})};Object.defineProperty(exports,"bundlesOperations",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"bundles_operations_exports",{enumerable:!0,get:function(){return a}});
|
|
@@ -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{BUNDLE_LOCALES as t,bundleAddPlanSchema as n,bundleAddResultSchema as r,bundleListSchema as i,bundleRemovalPreviewSchema as a,bundleStatusEntrySchema as o,bundleSyncPreviewSchema as s,bundleUpdatePlanSchema as c,bundleUpdateResultSchema as l,installedBundleSummarySchema as u,syncBundleResultSchema as d}from"./bundle-output.schema-UAlU8-CS.mjs";import{operation as f,type as p}from"./operation-Ljhj0S-y.mjs";import{unchecked as m}from"./unchecked-DAFXyX5y.mjs";import*as h from"zod";var g=/* @__PURE__ */ e({bundlesOperations:()=>x});const _=h.object({name:h.string()}),v=h.enum(t),y=h.object({bundles:h.array(h.string()),withSamples:h.boolean().optional(),locale:v,notes:h.record(h.string(),h.string()).optional()}),b=h.union([h.literal(`bind`),h.literal(`skip`),h.object({rename:h.string()})]),x={list:f({name:`bundles.list`,method:`GET`,path:`/bundles`,input:h.object({locale:v.optional()}),output:i,permission:[`architect`,`read`],throttle:`skip`}),status:f({name:`bundles.status`,method:`GET`,path:`/bundle-statuses`,input:h.object({}),output:h.array(o),permission:[`architect`,`read`],throttle:`skip`}),updatePreview:f({name:`bundles.updatePreview`,method:`GET`,path:`/bundles/:name/update`,input:_,output:c,permission:[`architect`,`read`],throttle:`skip`}),update:f({name:`bundles.update`,method:`POST`,path:`/bundles/:name/update`,input:_.extend({fingerprint:h.string(),take:h.array(h.string()),skipMissing:h.array(h.string()),confirmedRecords:h.number().int().nonnegative().optional(),decisions:h.record(h.string(),b).optional()}),output:l,permission:[`architect`,`update`],throttle:`skip`}),get:f({name:`bundles.get`,method:`GET`,path:`/bundles/:name`,input:_,output:u,permission:[`architect`,`read`],throttle:`skip`}),sync:f({name:`bundles.sync`,method:`PUT`,path:`/bundles/:name`,input:_.extend({bundle:m()}),body:`bundle`,output:d,permission:[`architect`,`update`],throttle:`skip`}),syncPreview:f({name:`bundles.syncPreview`,method:`POST`,path:`/bundles/:name/sync-preview`,input:_.extend({bundle:m()}),output:s,permission:[`architect`,`update`],throttle:`skip`}),removalPreview:f({name:`bundles.removalPreview`,method:`GET`,path:`/bundles/:name/removal`,input:_,output:a,permission:[`architect`,`delete`],throttle:`skip`}),remove:f({name:`bundles.remove`,method:`DELETE`,path:`/bundles/:name`,input:_.extend({fingerprint:h.string().optional(),confirmedRecords:h.number().int().nonnegative().optional()}),output:p(),permission:[`architect`,`delete`],status:204,throttle:`skip`}),preview:f({name:`bundles.preview`,method:`POST`,path:`/bundles/preview`,input:y,output:n,permission:[`architect`,`read`],throttle:`skip`}),add:f({name:`bundles.add`,method:`POST`,path:`/bundles/add`,input:y.extend({decisions:h.record(h.string(),b),fingerprint:h.string()}),output:r,permission:[`architect`,`create`],throttle:`skip`})};export{x as bundlesOperations,g as bundles_operations_exports};
|
|
@@ -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("./api-keys-DrqoTFFb.js"),n=require("./operation-b0CY8USr.js");let r=require("zod");r=e.__toESM(r);let i=require("@standards/constants");var a=/* @__PURE__ */ e.__exportAll({cliLoginOperations:()=>s});const o=r.object({device:r.string().trim().min(1).max(i.CLI_DEVICE_LABEL_MAX).regex(i.CLI_DEVICE_LABEL_PATTERN),replaces:r.array(r.string().uuid()).max(20).optional()}).strict(),s={createKey:n.operation({name:`cliLogin.createKey`,method:`POST`,path:`/cli/keys`,input:o,output:r.object({apiKey:t.apiKeyWithSecretSchema,workspace:r.object({name:r.string()}),replaced:r.array(r.string())})})};Object.defineProperty(exports,"cliLoginBody",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"cliLoginOperations",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"cli_login_operations_exports",{enumerable:!0,get:function(){return a}});
|
|
@@ -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{apiKeyWithSecretSchema as t}from"./api-keys-C9vGsnf5.mjs";import{operation as n}from"./operation-Ljhj0S-y.mjs";import*as r from"zod";import{CLI_DEVICE_LABEL_MAX as i,CLI_DEVICE_LABEL_PATTERN as a}from"@standards/constants";var o=/* @__PURE__ */ e({cliLoginOperations:()=>c});const s=r.object({device:r.string().trim().min(1).max(i).regex(a),replaces:r.array(r.string().uuid()).max(20).optional()}).strict(),c={createKey:n({name:`cliLogin.createKey`,method:`POST`,path:`/cli/keys`,input:s,output:r.object({apiKey:t,workspace:r.object({name:r.string()}),replaced:r.array(r.string())})})};export{s as cliLoginBody,c as cliLoginOperations,o as cli_login_operations_exports};
|
|
@@ -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("./access-levels-BWuVeyAD.js"),n=require("./operation-b0CY8USr.js");let r=require("zod");r=e.__toESM(r);var i=/* @__PURE__ */ e.__exportAll({connectedAppsOperations:()=>l});const a=r.object({grantId:r.string(),clientId:r.string(),clientName:r.string(),verifiedHost:r.string().nullable(),tenantId:r.string(),workspaceName:r.string(),level:r.enum(t.ACCESS_LEVELS).nullable(),selectableLevels:r.array(r.enum(t.ACCESS_LEVELS)),unavailableLevels:r.array(r.object({level:r.enum(t.ACCESS_LEVELS),reason:r.enum([`role`,`notRequested`])})),granted:r.array(r.enum(t.ACCESS_CAPABILITIES)),withheld:r.array(r.enum(t.ACCESS_CAPABILITIES)),createdAt:r.string(),lastUsedAt:r.string().nullable()}),o=r.object({success:r.literal(!0)}),s=r.string().min(1).max(255),c=r.strictObject({level:r.enum(t.ACCESS_LEVELS)}),l={list:n.operation({name:`connectedApps.list`,credential:`session`,method:`GET`,path:`/connected-apps`,input:r.object({}),output:r.object({data:r.array(a)})}),setLevel:n.operation({name:`connectedApps.setLevel`,credential:`session`,method:`PATCH`,path:`/connected-apps/:grantId`,input:r.strictObject({grantId:s,...c.shape}),output:o}),revoke:n.operation({name:`connectedApps.revoke`,credential:`session`,method:`DELETE`,path:`/connected-apps/:grantId`,input:r.object({grantId:s}),output:o})};Object.defineProperty(exports,"connectedAppGrantId",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"connectedAppViewSchema",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"connectedAppsOperations",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"connected_apps_operations_exports",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"setConnectionLevelBody",{enumerable:!0,get:function(){return c}});
|
|
@@ -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{ACCESS_CAPABILITIES as t,ACCESS_LEVELS as n}from"./access-levels-CpH_EGwX.mjs";import{operation as r}from"./operation-Ljhj0S-y.mjs";import*as i from"zod";var a=/* @__PURE__ */ e({connectedAppsOperations:()=>u});const o=i.object({grantId:i.string(),clientId:i.string(),clientName:i.string(),verifiedHost:i.string().nullable(),tenantId:i.string(),workspaceName:i.string(),level:i.enum(n).nullable(),selectableLevels:i.array(i.enum(n)),unavailableLevels:i.array(i.object({level:i.enum(n),reason:i.enum([`role`,`notRequested`])})),granted:i.array(i.enum(t)),withheld:i.array(i.enum(t)),createdAt:i.string(),lastUsedAt:i.string().nullable()}),s=i.object({success:i.literal(!0)}),c=i.string().min(1).max(255),l=i.strictObject({level:i.enum(n)}),u={list:r({name:`connectedApps.list`,credential:`session`,method:`GET`,path:`/connected-apps`,input:i.object({}),output:i.object({data:i.array(o)})}),setLevel:r({name:`connectedApps.setLevel`,credential:`session`,method:`PATCH`,path:`/connected-apps/:grantId`,input:i.strictObject({grantId:c,...l.shape}),output:s}),revoke:r({name:`connectedApps.revoke`,credential:`session`,method:`DELETE`,path:`/connected-apps/:grantId`,input:i.object({grantId:c}),output:s})};export{c as connectedAppGrantId,o as connectedAppViewSchema,u as connectedAppsOperations,a as connected_apps_operations_exports,l as setConnectionLevelBody};
|
|
@@ -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{CONNECTOR_PROVIDER_IDS as t,CONNECTOR_SCOPES as n,connectionViewSchema as r,connectorProvidersResultSchema as i}from"./types-BaRAoumN.mjs";import{oauthAttemptStartedSchema as a}from"./types-Bbd8SJk_.mjs";import{operation as o,type as s}from"./operation-Ljhj0S-y.mjs";import{unchecked as c}from"./unchecked-DAFXyX5y.mjs";import*as l from"zod";var u=/* @__PURE__ */ e({connectorsOperations:()=>S});const d=l.enum([`desktop`],{error:`unknown completion mode`}).optional(),f=l.unknown().transform(e=>typeof e==`string`?e:void 0),p=l.enum(n,{error:e=>`unknown scope: ${String(e.input)}`}),m=l.object({provider:l.enum(t,{error:e=>`unknown provider: ${String(e.input)}`}),scope:p,returnUrl:f.optional(),mode:d,loginHint:f.optional(),capabilities:l.array(l.enum([`modify`],{error:`unknown capability`}),{error:`unknown capability`}).optional()}),h=l.object({returnUrl:f.optional(),mode:d,capabilities:m.shape.capabilities}),g=l.object({returnUrl:l.string().optional(),mode:d}),_=l.object({address:l.string({error:`address is required`}).refine(e=>e.trim()!==``,{error:`address is required`}),scope:p}),v=l.object({id:l.string(),fullName:l.string(),defaultBranch:l.string(),private:l.boolean()}),y=l.object({id:l.string(),name:l.string(),email:l.string().optional()}),b=l.object({id:l.string(),name:l.string(),private:l.boolean(),member:l.boolean()}),x=l.object({id:l.string()}),S={list:o({name:`connectors.list`,method:`GET`,path:`/connectors/connections`,input:l.object({scope:l.string().optional()}),output:l.array(r),permission:[`connectors`,`read`]}),providers:o({name:`connectors.providers`,method:`GET`,path:`/connectors/providers`,input:l.object({}),output:i,permission:[`connectors`,`read`]}),startAuth:o({name:`connectors.startAuth`,method:`POST`,path:`/connectors/auth/start`,input:m,output:a,permission:[`connectors`,`create`]}),reconnect:o({name:`connectors.reconnect`,method:`POST`,path:`/connectors/connections/:id/reconnect`,input:x.extend(h.shape),output:a,permission:[`connectors`,`create`]}),startGitHubInstallation:o({name:`connectors.startGitHubInstallation`,method:`POST`,path:`/connectors/github/install`,input:g,output:a,permission:[`connectors`,`create`]}),chooseGitHubInstallation:o({name:`connectors.chooseGitHubInstallation`,credential:`session`,method:`POST`,path:`/connectors/github/installations/choose`,input:l.object({attemptId:l.string().min(1),installationId:l.string().min(1)}),output:a,permission:[`connectors`,`create`]}),githubRepositories:o({name:`connectors.githubRepositories`,method:`GET`,path:`/connectors/connections/:id/github/repositories`,input:x,output:l.array(v),permission:[`connectors`,`read`]}),slackMembers:o({name:`connectors.slackMembers`,method:`GET`,path:`/connectors/connections/:id/slack/members`,input:x,output:l.array(y),permission:[`connectors`,`read`]}),slackChannels:o({name:`connectors.slackChannels`,method:`GET`,path:`/connectors/connections/:id/slack/channels`,input:x,output:l.array(b),permission:[`connectors`,`read`]}),startGitHubAccount:o({name:`connectors.startGitHubAccount`,method:`POST`,path:`/connectors/connections/:id/github-account`,input:x.extend(g.shape),output:a,permission:[`connectors`,`create`]}),disconnect:o({name:`connectors.disconnect`,method:`POST`,path:`/connectors/connections/:id/disconnect`,input:x,output:s(),permission:[`connectors`,`update`]}),retrySync:o({name:`connectors.retrySync`,method:`POST`,path:`/connectors/connections/:id/retry-sync`,input:x,output:s(),permission:[`connectors`,`update`]}),delete:o({name:`connectors.delete`,method:`DELETE`,path:`/connectors/connections/:id`,input:x.extend({removeImported:c().optional()}),query:[`removeImported`],output:s(),permission:[`connectors`,`delete`]}),addSharedMailbox:o({name:`connectors.addSharedMailbox`,method:`POST`,path:`/connectors/connections/:id/shared-mailboxes`,input:x.extend(_.shape),output:r,permission:[`connectors`,`create`]}),push:o({name:`connectors.push`,method:`POST`,path:`/connectors/push/:provider`,input:l.object({provider:l.string()}).passthrough(),output:s(),status:200}),whatsappEvent:o({name:`connectors.whatsappEvent`,method:`POST`,path:`/connectors/events/whatsapp`,input:l.object({}).passthrough(),output:s(),status:200}),whatsappChallenge:o({name:`connectors.whatsappChallenge`,method:`GET`,path:`/connectors/events/whatsapp`,input:l.object({}).passthrough(),output:l.string(),status:200})};export{_ as addSharedMailboxBody,S as connectorsOperations,u as connectors_operations_exports,v as gitHubRepositoryOptionSchema,h as reconnectConnectorBody,b as slackChannelOptionSchema,y as slackMemberOptionSchema,m as startConnectorAuthBody,g as startGitHubAuthBody};
|
|
@@ -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("./types-HyrREoFh.js"),n=require("./types-DLY2ZL0J.js"),r=require("./operation-b0CY8USr.js"),i=require("./unchecked-C4sB97e1.js");let a=require("zod");a=e.__toESM(a);var o=/* @__PURE__ */ e.__exportAll({connectorsOperations:()=>v});const s=a.enum([`desktop`],{error:`unknown completion mode`}).optional(),c=a.unknown().transform(e=>typeof e==`string`?e:void 0),l=a.enum(t.CONNECTOR_SCOPES,{error:e=>`unknown scope: ${String(e.input)}`}),u=a.object({provider:a.enum(t.CONNECTOR_PROVIDER_IDS,{error:e=>`unknown provider: ${String(e.input)}`}),scope:l,returnUrl:c.optional(),mode:s,loginHint:c.optional(),capabilities:a.array(a.enum([`modify`],{error:`unknown capability`}),{error:`unknown capability`}).optional()}),d=a.object({returnUrl:c.optional(),mode:s,capabilities:u.shape.capabilities}),f=a.object({returnUrl:a.string().optional(),mode:s}),p=a.object({address:a.string({error:`address is required`}).refine(e=>e.trim()!==``,{error:`address is required`}),scope:l}),m=a.object({id:a.string(),fullName:a.string(),defaultBranch:a.string(),private:a.boolean()}),h=a.object({id:a.string(),name:a.string(),email:a.string().optional()}),g=a.object({id:a.string(),name:a.string(),private:a.boolean(),member:a.boolean()}),_=a.object({id:a.string()}),v={list:r.operation({name:`connectors.list`,method:`GET`,path:`/connectors/connections`,input:a.object({scope:a.string().optional()}),output:a.array(t.connectionViewSchema),permission:[`connectors`,`read`]}),providers:r.operation({name:`connectors.providers`,method:`GET`,path:`/connectors/providers`,input:a.object({}),output:t.connectorProvidersResultSchema,permission:[`connectors`,`read`]}),startAuth:r.operation({name:`connectors.startAuth`,method:`POST`,path:`/connectors/auth/start`,input:u,output:n.oauthAttemptStartedSchema,permission:[`connectors`,`create`]}),reconnect:r.operation({name:`connectors.reconnect`,method:`POST`,path:`/connectors/connections/:id/reconnect`,input:_.extend(d.shape),output:n.oauthAttemptStartedSchema,permission:[`connectors`,`create`]}),startGitHubInstallation:r.operation({name:`connectors.startGitHubInstallation`,method:`POST`,path:`/connectors/github/install`,input:f,output:n.oauthAttemptStartedSchema,permission:[`connectors`,`create`]}),chooseGitHubInstallation:r.operation({name:`connectors.chooseGitHubInstallation`,credential:`session`,method:`POST`,path:`/connectors/github/installations/choose`,input:a.object({attemptId:a.string().min(1),installationId:a.string().min(1)}),output:n.oauthAttemptStartedSchema,permission:[`connectors`,`create`]}),githubRepositories:r.operation({name:`connectors.githubRepositories`,method:`GET`,path:`/connectors/connections/:id/github/repositories`,input:_,output:a.array(m),permission:[`connectors`,`read`]}),slackMembers:r.operation({name:`connectors.slackMembers`,method:`GET`,path:`/connectors/connections/:id/slack/members`,input:_,output:a.array(h),permission:[`connectors`,`read`]}),slackChannels:r.operation({name:`connectors.slackChannels`,method:`GET`,path:`/connectors/connections/:id/slack/channels`,input:_,output:a.array(g),permission:[`connectors`,`read`]}),startGitHubAccount:r.operation({name:`connectors.startGitHubAccount`,method:`POST`,path:`/connectors/connections/:id/github-account`,input:_.extend(f.shape),output:n.oauthAttemptStartedSchema,permission:[`connectors`,`create`]}),disconnect:r.operation({name:`connectors.disconnect`,method:`POST`,path:`/connectors/connections/:id/disconnect`,input:_,output:r.type(),permission:[`connectors`,`update`]}),retrySync:r.operation({name:`connectors.retrySync`,method:`POST`,path:`/connectors/connections/:id/retry-sync`,input:_,output:r.type(),permission:[`connectors`,`update`]}),delete:r.operation({name:`connectors.delete`,method:`DELETE`,path:`/connectors/connections/:id`,input:_.extend({removeImported:i.unchecked().optional()}),query:[`removeImported`],output:r.type(),permission:[`connectors`,`delete`]}),addSharedMailbox:r.operation({name:`connectors.addSharedMailbox`,method:`POST`,path:`/connectors/connections/:id/shared-mailboxes`,input:_.extend(p.shape),output:t.connectionViewSchema,permission:[`connectors`,`create`]}),push:r.operation({name:`connectors.push`,method:`POST`,path:`/connectors/push/:provider`,input:a.object({provider:a.string()}).passthrough(),output:r.type(),status:200}),whatsappEvent:r.operation({name:`connectors.whatsappEvent`,method:`POST`,path:`/connectors/events/whatsapp`,input:a.object({}).passthrough(),output:r.type(),status:200}),whatsappChallenge:r.operation({name:`connectors.whatsappChallenge`,method:`GET`,path:`/connectors/events/whatsapp`,input:a.object({}).passthrough(),output:a.string(),status:200})};Object.defineProperty(exports,"addSharedMailboxBody",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"connectorsOperations",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"connectors_operations_exports",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"gitHubRepositoryOptionSchema",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"reconnectConnectorBody",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"slackChannelOptionSchema",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"slackMemberOptionSchema",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"startConnectorAuthBody",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"startGitHubAuthBody",{enumerable:!0,get:function(){return f}});
|
|
@@ -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{agentPathId as t}from"./agent-schemas-52_rE61D.mjs";import{operation as n}from"./operation-Ljhj0S-y.mjs";import{uuidParam as r}from"./uuid-param-BuV4RQRp.mjs";import*as i from"zod";var a=/* @__PURE__ */ e({agentVariablesOperations:()=>p,chatVariablesOperations:()=>m,envVarUsageOperations:()=>h,environmentVariablesOperations:()=>f});const o=i.enum([`list`,`all`]),s=i.strictObject({mode:o,workspace:i.array(i.guid())}),c=i.strictObject({add:i.array(i.guid()).optional(),remove:i.array(i.guid()).optional()}),l=i.strictObject({id:r}),u=i.object({id:t}),d=i.object({byVariable:i.record(i.string(),i.object({environments:i.number(),agents:i.number(),chat:i.boolean()})),allModeConsumers:i.number()}),f={get:n({name:`environmentVariables.get`,method:`GET`,path:`/environments/:id/variables`,input:l,output:s}),set:n({name:`environmentVariables.set`,method:`PUT`,path:`/environments/:id/variables`,input:s.extend(l.shape),output:s}),change:n({name:`environmentVariables.change`,method:`PATCH`,path:`/environments/:id/variables`,input:c.extend(l.shape),output:s})},p={get:n({name:`agentVariables.get`,method:`GET`,path:`/agents/definitions/:id/variables`,input:u,output:s,permission:[`agents`,`read`]}),set:n({name:`agentVariables.set`,method:`PUT`,path:`/agents/definitions/:id/variables`,input:s.extend(u.shape),output:s,permission:[`agents`,`update`]}),change:n({name:`agentVariables.change`,method:`PATCH`,path:`/agents/definitions/:id/variables`,input:c.extend(u.shape),output:s,permission:[`agents`,`update`]})},m={get:n({name:`chatVariables.get`,method:`GET`,path:`/env-vars/chat`,input:i.object({}),output:s,permission:[`env-vars`,`read`]}),set:n({name:`chatVariables.set`,method:`PUT`,path:`/env-vars/chat`,input:s,output:s,permission:[`env-vars`,`create`]}),change:n({name:`chatVariables.change`,method:`PATCH`,path:`/env-vars/chat`,input:c,output:s,permission:[`env-vars`,`create`]})},h={get:n({name:`envVarUsage.get`,method:`GET`,path:`/env-vars/usage`,input:i.object({}),output:d,permission:[`env-vars`,`read`]})};export{p as agentVariablesOperations,m as chatVariablesOperations,c as consumerVariablesChangeSchema,s as consumerVariablesSchema,a as consumer_variables_operations_exports,h as envVarUsageOperations,d as envVarUsageSchema,f as environmentVariablesOperations,o as variablesModeSchema};
|
|
@@ -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-schemas-BmTE5O3J.js"),n=require("./operation-b0CY8USr.js"),r=require("./uuid-param-Djtff5Vy.js");let i=require("zod");i=e.__toESM(i);var a=/* @__PURE__ */ e.__exportAll({agentVariablesOperations:()=>p,chatVariablesOperations:()=>m,envVarUsageOperations:()=>h,environmentVariablesOperations:()=>f});const o=i.enum([`list`,`all`]),s=i.strictObject({mode:o,workspace:i.array(i.guid())}),c=i.strictObject({add:i.array(i.guid()).optional(),remove:i.array(i.guid()).optional()}),l=i.strictObject({id:r.uuidParam}),u=i.object({id:t.agentPathId}),d=i.object({byVariable:i.record(i.string(),i.object({environments:i.number(),agents:i.number(),chat:i.boolean()})),allModeConsumers:i.number()}),f={get:n.operation({name:`environmentVariables.get`,method:`GET`,path:`/environments/:id/variables`,input:l,output:s}),set:n.operation({name:`environmentVariables.set`,method:`PUT`,path:`/environments/:id/variables`,input:s.extend(l.shape),output:s}),change:n.operation({name:`environmentVariables.change`,method:`PATCH`,path:`/environments/:id/variables`,input:c.extend(l.shape),output:s})},p={get:n.operation({name:`agentVariables.get`,method:`GET`,path:`/agents/definitions/:id/variables`,input:u,output:s,permission:[`agents`,`read`]}),set:n.operation({name:`agentVariables.set`,method:`PUT`,path:`/agents/definitions/:id/variables`,input:s.extend(u.shape),output:s,permission:[`agents`,`update`]}),change:n.operation({name:`agentVariables.change`,method:`PATCH`,path:`/agents/definitions/:id/variables`,input:c.extend(u.shape),output:s,permission:[`agents`,`update`]})},m={get:n.operation({name:`chatVariables.get`,method:`GET`,path:`/env-vars/chat`,input:i.object({}),output:s,permission:[`env-vars`,`read`]}),set:n.operation({name:`chatVariables.set`,method:`PUT`,path:`/env-vars/chat`,input:s,output:s,permission:[`env-vars`,`create`]}),change:n.operation({name:`chatVariables.change`,method:`PATCH`,path:`/env-vars/chat`,input:c,output:s,permission:[`env-vars`,`create`]})},h={get:n.operation({name:`envVarUsage.get`,method:`GET`,path:`/env-vars/usage`,input:i.object({}),output:d,permission:[`env-vars`,`read`]})};Object.defineProperty(exports,"agentVariablesOperations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"chatVariablesOperations",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"consumerVariablesChangeSchema",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"consumerVariablesSchema",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"consumer_variables_operations_exports",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"envVarUsageOperations",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"envVarUsageSchema",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"environmentVariablesOperations",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"variablesModeSchema",{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
|
+
const e=require("./rolldown-runtime-BXZUx0GO.js");require("./zod-locale.js");const t=require("./output-CcagLVwl.js"),n=require("./unchecked-C4sB97e1.js");let r=require("zod");r=e.__toESM(r);const i=[`question`,`approval`,`review`,`handoff`,`report`,`fyi`],a=[`unread`,`read`,`archived`],o=[`none`,`pending`,`completed`,`dismissed`,`expired`],s=[`open`,`snoozed`,`closed`,`answered`,`withdrawn`,`expired`,`unread`,`read`,`archived`],c=[`record`,`session`,`document`,`agent`,`routine`,`page`,`email_thread`,`url`],l=r.object({targetType:r.enum(c),targetId:r.string(),objectName:r.string().optional(),label:r.string().optional()});function formatDecisionLink(e){return e.targetType===`record`?`record:${e.objectName??``}:${e.targetId}`:`${e.targetType}:${e.targetId}`}function parseDecisionLink(e){let[t,...n]=e.split(`:`);if(!c.includes(t??``))return null;let r=t;if(r===`record`){let[e,t]=n;return n.length===2&&e&&t?{targetType:r,targetId:t,objectName:e}:null}let i=n.join(`:`);return i?{targetType:r,targetId:i}:null}function decisionThreadKey(e){return`decision:${e}`}const u=`agent.question`,d=`agent.approval`,f=`agent.review`,p=`agent.setup`,m=`agent.routine_run.failed`,h=`agent.message`,g=`connector.connection.reauth_required`,_=`connector.connection.error`,v=`connector.connection.send_not_granted`,y=`record.assigned`,b=`record.mentioned`,x=`access.granted`,S=`environment.build.failed`,C=`person.decision`,w=`bundle.setup`,T=[u,d,f,p,m,h,g,_,v,y,b,x,S,C,w],E=[`question`,`approval`,`review`,`handoff`];function isActionableDecisionKind(e){return E.includes(e)}const D=[`agents`,`connectors`,`assignment`,`mentions`,`sharing`],O={[u]:{kind:`question`,area:null},[d]:{kind:`approval`,area:null},[f]:{kind:`review`,area:null},[p]:{kind:`handoff`,area:null},[m]:{kind:`question`,area:`agents`},[h]:{kind:`report`,area:`agents`},[g]:{kind:`handoff`,area:`connectors`},[_]:{kind:`handoff`,area:`connectors`},[v]:{kind:`handoff`,area:`connectors`},[y]:{kind:`fyi`,area:`assignment`},[b]:{kind:`fyi`,area:`mentions`},[x]:{kind:`fyi`,area:`sharing`},[S]:{kind:`fyi`,area:`agents`},[C]:{kind:`question`,area:null},[w]:{kind:`handoff`,area:null}},k=[`person`,`agent`,`system`],A=r.object({actorId:r.string(),kind:r.enum(k),label:r.string()}),j=r.object({id:r.string(),tenantId:r.string(),senderActorId:r.string().optional(),rootActorId:r.string().optional(),triggeredByActorId:r.string().optional(),kind:r.enum(i),type:r.string(),title:r.string(),summary:r.string().optional(),questions:n.unchecked().optional(),answer:n.unchecked().optional(),answeredBy:r.string().optional(),effect:r.string().optional(),links:r.array(l),sender:A.optional(),recipientActorIds:r.array(r.string()).optional(),payload:r.record(r.string(),r.unknown()),threadKey:r.string(),idempotencyKey:r.string().optional(),createdAt:t.isoDateTime,updatedAt:t.isoDateTime}),M=r.object({documentId:r.string(),fileId:r.string(),name:r.string(),mimeType:r.string(),size:r.number(),url:r.string()}),N=r.object({id:r.string(),tenantId:r.string(),decisionId:r.string(),recipientActorId:r.string(),inboxState:r.enum(a),workState:r.enum(o),readAt:t.isoDateTime.optional(),archivedAt:t.isoDateTime.optional(),snoozedUntil:t.isoDateTime.optional(),completedAt:t.isoDateTime.optional(),dismissedAt:t.isoDateTime.optional(),createdAt:t.isoDateTime,updatedAt:t.isoDateTime}),P=`transfers`;function isDecisionTransfer(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.fromActorId==`string`&&typeof t.toActorId==`string`&&typeof t.toLabel==`string`&&typeof t.at==`string`}function decisionTransfersOf(e){let t=e.payload[P];return Array.isArray(t)?t.filter(isDecisionTransfer):[]}function decisionTransferBy(e,t){return decisionTransfersOf(e).filter(e=>e.fromActorId===t).at(-1)}function decisionTransferTo(e,t){return decisionTransfersOf(e).filter(e=>e.toActorId===t).at(-1)}function decisionHandedBy(e,t){return decisionTransferTo(e,t)?.fromActorId}const F=r.object({decision:j,recipient:N,testLink:r.object({link:n.unchecked(),canOpen:r.boolean()}).optional()}),I=r.object({items:r.array(F),nextCursor:r.string().optional()}),L=[`open`,`answered`,`withdrawn`,`expired`,`info`],R=r.object({open:r.number(),unread:r.number()}),z=r.object({archivedCount:r.number()}),B=r.object({to:r.array(r.string()).nullable()});Object.defineProperty(exports,"ACTIONABLE_DECISION_KINDS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"DECISION_INBOX_STATES",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"DECISION_KINDS",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"DECISION_LINE_MAX_LENGTH",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"DECISION_LINK_TARGET_TYPES",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"DECISION_LIST_STATES",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"DECISION_READ_STATES",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"DECISION_SENDER_KINDS",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"DECISION_SETTINGS_AREAS",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"DECISION_TITLE_MAX_LENGTH",{enumerable:!0,get:function(){return 120}}),Object.defineProperty(exports,"DECISION_TRANSFERS_KEY",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"DECISION_TYPES_V1",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"DECISION_TYPE_ACCESS_GRANTED",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_APPROVAL",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_MESSAGE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_QUESTION",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_REVIEW",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_ROUTINE_RUN_FAILED",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_SETUP",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"DECISION_TYPE_BUNDLE_SETUP",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"DECISION_TYPE_CONNECTOR_CONNECTION_ERROR",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"DECISION_TYPE_CONNECTOR_CONNECTION_SEND_NOT_GRANTED",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"DECISION_TYPE_ENVIRONMENT_BUILD_FAILED",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"DECISION_TYPE_KINDS",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"DECISION_TYPE_PERSON",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"DECISION_TYPE_RECORD_ASSIGNED",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"DECISION_TYPE_RECORD_MENTIONED",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"DECISION_WORK_STATES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"decisionArchiveAllResultSchema",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"decisionAttachmentSchema",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"decisionCountsSchema",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"decisionHandedBy",{enumerable:!0,get:function(){return decisionHandedBy}}),Object.defineProperty(exports,"decisionLinkSchema",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"decisionListResultSchema",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"decisionRecipientSchema",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"decisionSchema",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"decisionSenderSchema",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"decisionThreadKey",{enumerable:!0,get:function(){return decisionThreadKey}}),Object.defineProperty(exports,"decisionTransferBy",{enumerable:!0,get:function(){return decisionTransferBy}}),Object.defineProperty(exports,"decisionTransferTargetsSchema",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"decisionTransferTo",{enumerable:!0,get:function(){return decisionTransferTo}}),Object.defineProperty(exports,"decisionTransfersOf",{enumerable:!0,get:function(){return decisionTransfersOf}}),Object.defineProperty(exports,"decisionWithRecipientSchema",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"formatDecisionLink",{enumerable:!0,get:function(){return formatDecisionLink}}),Object.defineProperty(exports,"isActionableDecisionKind",{enumerable:!0,get:function(){return isActionableDecisionKind}}),Object.defineProperty(exports,"parseDecisionLink",{enumerable:!0,get:function(){return parseDecisionLink}});
|
|
@@ -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{unchecked as t}from"./unchecked-DAFXyX5y.mjs";import*as n from"zod";const r=[`question`,`approval`,`review`,`handoff`,`report`,`fyi`],i=[`unread`,`read`,`archived`],a=[`none`,`pending`,`completed`,`dismissed`,`expired`],o=[`open`,`snoozed`,`closed`,`answered`,`withdrawn`,`expired`,`unread`,`read`,`archived`],s=[`record`,`session`,`document`,`agent`,`routine`,`page`,`email_thread`,`url`],c=n.object({targetType:n.enum(s),targetId:n.string(),objectName:n.string().optional(),label:n.string().optional()});function formatDecisionLink(e){return e.targetType===`record`?`record:${e.objectName??``}:${e.targetId}`:`${e.targetType}:${e.targetId}`}function parseDecisionLink(e){let[t,...n]=e.split(`:`);if(!s.includes(t??``))return null;let r=t;if(r===`record`){let[e,t]=n;return n.length===2&&e&&t?{targetType:r,targetId:t,objectName:e}:null}let i=n.join(`:`);return i?{targetType:r,targetId:i}:null}function decisionThreadKey(e){return`decision:${e}`}const l=120,u=200,d=`agent.question`,f=`agent.approval`,p=`agent.review`,m=`agent.setup`,h=`agent.routine_run.failed`,g=`agent.message`,_=`connector.connection.reauth_required`,v=`connector.connection.error`,y=`connector.connection.send_not_granted`,b=`record.assigned`,x=`record.mentioned`,S=`access.granted`,C=`environment.build.failed`,w=`person.decision`,T=`bundle.setup`,E=[d,f,p,m,h,g,_,v,y,b,x,S,C,w,T],D=[`question`,`approval`,`review`,`handoff`];function isActionableDecisionKind(e){return D.includes(e)}const O=[`agents`,`connectors`,`assignment`,`mentions`,`sharing`],k={[d]:{kind:`question`,area:null},[f]:{kind:`approval`,area:null},[p]:{kind:`review`,area:null},[m]:{kind:`handoff`,area:null},[h]:{kind:`question`,area:`agents`},[g]:{kind:`report`,area:`agents`},[_]:{kind:`handoff`,area:`connectors`},[v]:{kind:`handoff`,area:`connectors`},[y]:{kind:`handoff`,area:`connectors`},[b]:{kind:`fyi`,area:`assignment`},[x]:{kind:`fyi`,area:`mentions`},[S]:{kind:`fyi`,area:`sharing`},[C]:{kind:`fyi`,area:`agents`},[w]:{kind:`question`,area:null},[T]:{kind:`handoff`,area:null}},A=[`person`,`agent`,`system`],j=n.object({actorId:n.string(),kind:n.enum(A),label:n.string()}),M=n.object({id:n.string(),tenantId:n.string(),senderActorId:n.string().optional(),rootActorId:n.string().optional(),triggeredByActorId:n.string().optional(),kind:n.enum(r),type:n.string(),title:n.string(),summary:n.string().optional(),questions:t().optional(),answer:t().optional(),answeredBy:n.string().optional(),effect:n.string().optional(),links:n.array(c),sender:j.optional(),recipientActorIds:n.array(n.string()).optional(),payload:n.record(n.string(),n.unknown()),threadKey:n.string(),idempotencyKey:n.string().optional(),createdAt:e,updatedAt:e}),N=n.object({documentId:n.string(),fileId:n.string(),name:n.string(),mimeType:n.string(),size:n.number(),url:n.string()}),P=n.object({id:n.string(),tenantId:n.string(),decisionId:n.string(),recipientActorId:n.string(),inboxState:n.enum(i),workState:n.enum(a),readAt:e.optional(),archivedAt:e.optional(),snoozedUntil:e.optional(),completedAt:e.optional(),dismissedAt:e.optional(),createdAt:e,updatedAt:e}),F=`transfers`;function isDecisionTransfer(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.fromActorId==`string`&&typeof t.toActorId==`string`&&typeof t.toLabel==`string`&&typeof t.at==`string`}function decisionTransfersOf(e){let t=e.payload[F];return Array.isArray(t)?t.filter(isDecisionTransfer):[]}function decisionTransferBy(e,t){return decisionTransfersOf(e).filter(e=>e.fromActorId===t).at(-1)}function decisionTransferTo(e,t){return decisionTransfersOf(e).filter(e=>e.toActorId===t).at(-1)}function decisionHandedBy(e,t){return decisionTransferTo(e,t)?.fromActorId}const I=n.object({decision:M,recipient:P,testLink:n.object({link:t(),canOpen:n.boolean()}).optional()}),L=n.object({items:n.array(I),nextCursor:n.string().optional()}),R=[`open`,`answered`,`withdrawn`,`expired`,`info`],z=n.object({open:n.number(),unread:n.number()}),B=n.object({archivedCount:n.number()}),V=n.object({to:n.array(n.string()).nullable()});export{D as ACTIONABLE_DECISION_KINDS,i as DECISION_INBOX_STATES,r as DECISION_KINDS,u as DECISION_LINE_MAX_LENGTH,s as DECISION_LINK_TARGET_TYPES,o as DECISION_LIST_STATES,R as DECISION_READ_STATES,A as DECISION_SENDER_KINDS,O as DECISION_SETTINGS_AREAS,l as DECISION_TITLE_MAX_LENGTH,F as DECISION_TRANSFERS_KEY,E as DECISION_TYPES_V1,S as DECISION_TYPE_ACCESS_GRANTED,f as DECISION_TYPE_AGENT_APPROVAL,g as DECISION_TYPE_AGENT_MESSAGE,d as DECISION_TYPE_AGENT_QUESTION,p as DECISION_TYPE_AGENT_REVIEW,h as DECISION_TYPE_AGENT_ROUTINE_RUN_FAILED,m as DECISION_TYPE_AGENT_SETUP,T as DECISION_TYPE_BUNDLE_SETUP,v as DECISION_TYPE_CONNECTOR_CONNECTION_ERROR,_ as DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED,y as DECISION_TYPE_CONNECTOR_CONNECTION_SEND_NOT_GRANTED,C as DECISION_TYPE_ENVIRONMENT_BUILD_FAILED,k as DECISION_TYPE_KINDS,w as DECISION_TYPE_PERSON,b as DECISION_TYPE_RECORD_ASSIGNED,x as DECISION_TYPE_RECORD_MENTIONED,a as DECISION_WORK_STATES,B as decisionArchiveAllResultSchema,N as decisionAttachmentSchema,z as decisionCountsSchema,decisionHandedBy,c as decisionLinkSchema,L as decisionListResultSchema,P as decisionRecipientSchema,M as decisionSchema,j as decisionSenderSchema,decisionThreadKey,decisionTransferBy,V as decisionTransferTargetsSchema,decisionTransferTo,decisionTransfersOf,I as decisionWithRecipientSchema,formatDecisionLink,isActionableDecisionKind,parseDecisionLink};
|
|
@@ -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("./decisions-CFoL49Jb.js"),n=require("./agent-approvals.operations-BXtDpYb9.js"),r=require("./operation-b0CY8USr.js");let i=require("zod");i=e.__toESM(i);var a=/* @__PURE__ */ e.__exportAll({decisionsOperations:()=>p});const o=/^[A-Za-z0-9_-]+$/;function isDecisionCursor(e){if(!o.test(e))return!1;try{let t=JSON.parse(Buffer.from(e,`base64url`).toString(`utf8`));return typeof t.createdAt==`string`&&typeof t.id==`string`}catch{return!1}}const s=i.union([i.string(),i.array(i.string())]).transform(e=>Array.isArray(e)?e:e.split(`,`).filter(Boolean)).pipe(i.array(i.enum(t.DECISION_KINDS)).min(1)),c=i.object({state:i.enum(t.DECISION_LIST_STATES).optional(),kind:s.optional(),link:i.string().min(1).refine(e=>t.parseDecisionLink(e)!==null,`Invalid decision link`).optional(),since:i.iso.datetime({offset:!0}).optional(),limit:i.coerce.number().int().positive().transform(e=>Math.min(e,100)).optional(),cursor:i.string().min(1).refine(isDecisionCursor,`Invalid decision cursor`).optional()}),l=i.object({recipientId:i.guid()}),u=i.discriminatedUnion(`kind`,[n.answerAgentRequestBody.extend({kind:i.literal(`answers`)}),n.resolveApprovalBody.extend({kind:i.literal(`approval`)}),i.strictObject({kind:i.literal(`review`),outcome:i.enum([`approved`,`changes`]),feedback:i.string().max(2e3).optional()}),i.strictObject({kind:i.literal(`setup`),action:i.enum([`continue`,`skip`])}),i.strictObject({kind:i.literal(`text`),text:i.string().min(1).max(2e3)}),i.strictObject({kind:i.literal(`configure`)})]),d=i.strictObject({title:i.string().trim().min(1).max(120),question:i.strictObject({text:i.string().trim().max(200),context:i.string().trim().max(200).optional(),options:i.array(i.strictObject({label:i.string().trim().min(1).max(200)})).max(9).default([]),freeText:i.boolean().default(!1)}).optional(),recipients:i.array(i.guid()).max(20).default([]),links:i.array(i.string().min(1)).max(10).default([]),attachments:i.array(i.string().min(1)).max(10).default([]),followUpOf:i.guid().optional()}),f=i.object({decisionId:i.guid()}),p={list:r.operation({name:`decisions.list`,method:`GET`,path:`/decisions`,input:c,output:t.decisionListResultSchema}),counts:r.operation({name:`decisions.counts`,method:`GET`,path:`/decisions/counts`,input:i.object({}),output:t.decisionCountsSchema}),archiveAll:r.operation({name:`decisions.archiveAll`,method:`POST`,path:`/decisions/archive-all`,input:i.object({kinds:i.array(i.enum(t.DECISION_KINDS)).min(1).optional()}),output:t.decisionArchiveAllResultSchema,status:200}),markRead:r.operation({name:`decisions.markRead`,method:`POST`,path:`/decisions/:recipientId/read`,input:l,output:t.decisionWithRecipientSchema,status:200}),archive:r.operation({name:`decisions.archive`,method:`POST`,path:`/decisions/:recipientId/archive`,input:l,output:t.decisionWithRecipientSchema,status:200}),transfer:r.operation({name:`decisions.transfer`,method:`POST`,path:`/decisions/:recipientId/transfer`,input:l.extend({to:i.guid()}),output:t.decisionWithRecipientSchema,status:200}),transferTargets:r.operation({name:`decisions.transferTargets`,method:`GET`,path:`/decisions/:recipientId/transfer-targets`,input:l,output:t.decisionTransferTargetsSchema}),snooze:r.operation({name:`decisions.snooze`,method:`POST`,path:`/decisions/:recipientId/snooze`,input:l.extend({until:i.iso.datetime({offset:!0})}),output:t.decisionWithRecipientSchema,status:200}),answer:r.operation({name:`decisions.answer`,method:`POST`,path:`/decisions/:decisionId/answer`,input:f.extend({answer:u}),output:t.decisionWithRecipientSchema,status:200}),create:r.operation({name:`decisions.create`,method:`POST`,path:`/decisions`,input:d,output:t.decisionSchema}),withdraw:r.operation({name:`decisions.withdraw`,method:`POST`,path:`/decisions/:decisionId/withdraw`,input:f,output:t.decisionSchema,status:200}),attachments:r.operation({name:`decisions.attachments`,method:`GET`,path:`/decisions/:decisionId/attachments`,input:f,output:i.array(t.decisionAttachmentSchema)}),transform:r.operation({name:`decisions.transform`,method:`POST`,path:`/decisions/:recipientId/transform`,input:l,output:t.decisionSchema})};Object.defineProperty(exports,"createPersonDecisionBody",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"decisionAnswerInputSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"decisionListQuery",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"decisionsOperations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"decisions_operations_exports",{enumerable:!0,get:function(){return a}});
|
|
@@ -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{DECISION_KINDS as t,DECISION_LIST_STATES as n,decisionArchiveAllResultSchema as r,decisionAttachmentSchema as i,decisionCountsSchema as a,decisionListResultSchema as o,decisionSchema as s,decisionTransferTargetsSchema as c,decisionWithRecipientSchema as l,parseDecisionLink as u}from"./decisions-DNvAXetH.mjs";import{answerAgentRequestBody as d,resolveApprovalBody as f}from"./agent-approvals.operations-DrEi2amV.mjs";import{operation as p}from"./operation-Ljhj0S-y.mjs";import*as m from"zod";var h=/* @__PURE__ */ e({decisionsOperations:()=>C});const g=/^[A-Za-z0-9_-]+$/;function isDecisionCursor(e){if(!g.test(e))return!1;try{let t=JSON.parse(Buffer.from(e,`base64url`).toString(`utf8`));return typeof t.createdAt==`string`&&typeof t.id==`string`}catch{return!1}}const _=m.union([m.string(),m.array(m.string())]).transform(e=>Array.isArray(e)?e:e.split(`,`).filter(Boolean)).pipe(m.array(m.enum(t)).min(1)),v=m.object({state:m.enum(n).optional(),kind:_.optional(),link:m.string().min(1).refine(e=>u(e)!==null,`Invalid decision link`).optional(),since:m.iso.datetime({offset:!0}).optional(),limit:m.coerce.number().int().positive().transform(e=>Math.min(e,100)).optional(),cursor:m.string().min(1).refine(isDecisionCursor,`Invalid decision cursor`).optional()}),y=m.object({recipientId:m.guid()}),b=m.discriminatedUnion(`kind`,[d.extend({kind:m.literal(`answers`)}),f.extend({kind:m.literal(`approval`)}),m.strictObject({kind:m.literal(`review`),outcome:m.enum([`approved`,`changes`]),feedback:m.string().max(2e3).optional()}),m.strictObject({kind:m.literal(`setup`),action:m.enum([`continue`,`skip`])}),m.strictObject({kind:m.literal(`text`),text:m.string().min(1).max(2e3)}),m.strictObject({kind:m.literal(`configure`)})]),x=m.strictObject({title:m.string().trim().min(1).max(120),question:m.strictObject({text:m.string().trim().max(200),context:m.string().trim().max(200).optional(),options:m.array(m.strictObject({label:m.string().trim().min(1).max(200)})).max(9).default([]),freeText:m.boolean().default(!1)}).optional(),recipients:m.array(m.guid()).max(20).default([]),links:m.array(m.string().min(1)).max(10).default([]),attachments:m.array(m.string().min(1)).max(10).default([]),followUpOf:m.guid().optional()}),S=m.object({decisionId:m.guid()}),C={list:p({name:`decisions.list`,method:`GET`,path:`/decisions`,input:v,output:o}),counts:p({name:`decisions.counts`,method:`GET`,path:`/decisions/counts`,input:m.object({}),output:a}),archiveAll:p({name:`decisions.archiveAll`,method:`POST`,path:`/decisions/archive-all`,input:m.object({kinds:m.array(m.enum(t)).min(1).optional()}),output:r,status:200}),markRead:p({name:`decisions.markRead`,method:`POST`,path:`/decisions/:recipientId/read`,input:y,output:l,status:200}),archive:p({name:`decisions.archive`,method:`POST`,path:`/decisions/:recipientId/archive`,input:y,output:l,status:200}),transfer:p({name:`decisions.transfer`,method:`POST`,path:`/decisions/:recipientId/transfer`,input:y.extend({to:m.guid()}),output:l,status:200}),transferTargets:p({name:`decisions.transferTargets`,method:`GET`,path:`/decisions/:recipientId/transfer-targets`,input:y,output:c}),snooze:p({name:`decisions.snooze`,method:`POST`,path:`/decisions/:recipientId/snooze`,input:y.extend({until:m.iso.datetime({offset:!0})}),output:l,status:200}),answer:p({name:`decisions.answer`,method:`POST`,path:`/decisions/:decisionId/answer`,input:S.extend({answer:b}),output:l,status:200}),create:p({name:`decisions.create`,method:`POST`,path:`/decisions`,input:x,output:s}),withdraw:p({name:`decisions.withdraw`,method:`POST`,path:`/decisions/:decisionId/withdraw`,input:S,output:s,status:200}),attachments:p({name:`decisions.attachments`,method:`GET`,path:`/decisions/:decisionId/attachments`,input:S,output:m.array(i)}),transform:p({name:`decisions.transform`,method:`POST`,path:`/decisions/:recipientId/transform`,input:y,output:s})};export{x as createPersonDecisionBody,b as decisionAnswerInputSchema,v as decisionListQuery,C as decisionsOperations,h as decisions_operations_exports};
|
|
@@ -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("./exceptions.js");let n=require("zod");n=e.__toESM(n);const r=`/v1/device-worker/channel`,i={initialMs:1e3,maxMs:3e4};function deviceChannelUrl(e){let t=new URL(e);return`${t.protocol===`https:`?`wss:`:`ws:`}//${t.host}${r}`}function computeRetryDelay(e,t,n){return Math.min(n.initialMs*2**e,n.maxMs)+Math.floor(t()*250)}function computeReconnectDelay(e,t=Math.random){return computeRetryDelay(e,t,i)}const a=[`worker_disconnected`,`cancelled`,`timed_out`,`execution_failed`];var DeviceChannelProtocolError=class extends t.SchemaError{constructor(e){super(e,t.SchemaErrorCode.DEVICE_CHANNEL_PROTOCOL),this._tag=`DeviceChannelProtocolError`,this.name=`DeviceChannelProtocolError`}};const o=[`zsh`,`bash`,`sh`,`fish`,`pwsh`,`powershell`],s=[`ready`,`permission_missing`,`no_session`,`unavailable`],c=n.strictObject({state:n.enum(s),version:n.string().min(1)}),l={id:n.uuid(),leaseToken:n.string().min(1)},u=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`authenticate`),credential:n.string().regex(/^Device \S+$/),protocol:n.number().int().positive().optional(),desktop:c.optional(),shell:n.enum(o).optional()}),n.strictObject({type:n.literal(`running`),...l}),n.strictObject({type:n.literal(`heartbeat`),...l}),n.strictObject({type:n.literal(`output`),...l,stdout:n.string().optional(),stderr:n.string().optional()}),n.strictObject({type:n.literal(`complete`),...l,result:n.strictObject({stdout:n.string().optional(),stderr:n.string().optional(),exitCode:n.number().int(),success:n.boolean(),errorCode:n.enum(a).optional()}),background:n.strictObject({pid:n.number().int(),logPath:n.string().min(1)}).optional()}),n.strictObject({type:n.literal(`pong`)})]),d=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`ready`),device:n.strictObject({id:n.string(),name:n.string(),capability:n.enum([`shell`,`browser`])}),protocol:n.number().int().positive().optional()}),n.strictObject({type:n.literal(`command`),...l,kind:n.enum([`shell`,`browser`]),intent:n.string(),timeoutMs:n.number().int(),command:n.string().optional(),cwd:n.string().nullable().optional(),rootSessionId:n.string().min(1).optional(),background:n.boolean().optional()}),n.strictObject({type:n.literal(`release_session`),rootSessionId:n.string().min(1)}),n.strictObject({type:n.literal(`cancel`),id:n.uuid(),reason:n.enum([`cancelled`,`timed_out`,`revoked`])}),n.strictObject({type:n.literal(`reauthenticate`)}),n.strictObject({type:n.literal(`revoked`)}),n.strictObject({type:n.literal(`ping`)})]);function parseDeviceChannelFrame(e,t){let n;try{n=JSON.parse(t)}catch{throw new DeviceChannelProtocolError(`Frame is not JSON`)}let r=e.safeParse(n);if(!r.success)throw new DeviceChannelProtocolError(`Frame does not match the channel protocol`);return r.data}function parseWorkerFrame(e){return parseDeviceChannelFrame(u,e)}function parseServerFrame(e){return parseDeviceChannelFrame(d,e)}Object.defineProperty(exports,"DEVICE_CHANNEL_AUTHENTICATE_TIMEOUT_MS",{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,"DEVICE_CHANNEL_IDLE_POLL_MS",{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,"DEVICE_CHANNEL_KEEPALIVE_MS",{enumerable:!0,get:function(){return 2e4}}),Object.defineProperty(exports,"DEVICE_CHANNEL_MAX_FRAME_BYTES",{enumerable:!0,get:function(){return 262144}}),Object.defineProperty(exports,"DEVICE_CHANNEL_PATH",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"DEVICE_CHANNEL_PRESENCE_MS",{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,"DEVICE_CHANNEL_WORKER_CLOSE_PROTOCOL_VIOLATION",{enumerable:!0,get:function(){return 4008}}),Object.defineProperty(exports,"DEVICE_COMMAND_ERROR_CODES",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"DEVICE_DESKTOP_STATES",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"DEVICE_SHELLS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"DeviceChannelProtocolError",{enumerable:!0,get:function(){return DeviceChannelProtocolError}}),Object.defineProperty(exports,"DeviceChannelServerFrameSchema",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"DeviceChannelWorkerFrameSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"DeviceDesktopStatusSchema",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"computeReconnectDelay",{enumerable:!0,get:function(){return computeReconnectDelay}}),Object.defineProperty(exports,"computeRetryDelay",{enumerable:!0,get:function(){return computeRetryDelay}}),Object.defineProperty(exports,"deviceChannelUrl",{enumerable:!0,get:function(){return deviceChannelUrl}}),Object.defineProperty(exports,"parseDeviceChannelFrame",{enumerable:!0,get:function(){return parseDeviceChannelFrame}}),Object.defineProperty(exports,"parseServerFrame",{enumerable:!0,get:function(){return parseServerFrame}}),Object.defineProperty(exports,"parseWorkerFrame",{enumerable:!0,get:function(){return parseWorkerFrame}});
|
|
@@ -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{SchemaError as e,SchemaErrorCode as t}from"./exceptions.mjs";import*as n from"zod";const r=`/v1/device-worker/channel`,i=262144,a=1e4,o=2e3,s=2e3,c=2e4,l=4008,u={initialMs:1e3,maxMs:3e4};function deviceChannelUrl(e){let t=new URL(e);return`${t.protocol===`https:`?`wss:`:`ws:`}//${t.host}${r}`}function computeRetryDelay(e,t,n){return Math.min(n.initialMs*2**e,n.maxMs)+Math.floor(t()*250)}function computeReconnectDelay(e,t=Math.random){return computeRetryDelay(e,t,u)}const d=[`worker_disconnected`,`cancelled`,`timed_out`,`execution_failed`];var DeviceChannelProtocolError=class extends e{constructor(e){super(e,t.DEVICE_CHANNEL_PROTOCOL),this._tag=`DeviceChannelProtocolError`,this.name=`DeviceChannelProtocolError`}};const f=[`zsh`,`bash`,`sh`,`fish`,`pwsh`,`powershell`],p=[`ready`,`permission_missing`,`no_session`,`unavailable`],m=n.strictObject({state:n.enum(p),version:n.string().min(1)}),h={id:n.uuid(),leaseToken:n.string().min(1)},g=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`authenticate`),credential:n.string().regex(/^Device \S+$/),protocol:n.number().int().positive().optional(),desktop:m.optional(),shell:n.enum(f).optional()}),n.strictObject({type:n.literal(`running`),...h}),n.strictObject({type:n.literal(`heartbeat`),...h}),n.strictObject({type:n.literal(`output`),...h,stdout:n.string().optional(),stderr:n.string().optional()}),n.strictObject({type:n.literal(`complete`),...h,result:n.strictObject({stdout:n.string().optional(),stderr:n.string().optional(),exitCode:n.number().int(),success:n.boolean(),errorCode:n.enum(d).optional()}),background:n.strictObject({pid:n.number().int(),logPath:n.string().min(1)}).optional()}),n.strictObject({type:n.literal(`pong`)})]),_=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`ready`),device:n.strictObject({id:n.string(),name:n.string(),capability:n.enum([`shell`,`browser`])}),protocol:n.number().int().positive().optional()}),n.strictObject({type:n.literal(`command`),...h,kind:n.enum([`shell`,`browser`]),intent:n.string(),timeoutMs:n.number().int(),command:n.string().optional(),cwd:n.string().nullable().optional(),rootSessionId:n.string().min(1).optional(),background:n.boolean().optional()}),n.strictObject({type:n.literal(`release_session`),rootSessionId:n.string().min(1)}),n.strictObject({type:n.literal(`cancel`),id:n.uuid(),reason:n.enum([`cancelled`,`timed_out`,`revoked`])}),n.strictObject({type:n.literal(`reauthenticate`)}),n.strictObject({type:n.literal(`revoked`)}),n.strictObject({type:n.literal(`ping`)})]);function parseDeviceChannelFrame(e,t){let n;try{n=JSON.parse(t)}catch{throw new DeviceChannelProtocolError(`Frame is not JSON`)}let r=e.safeParse(n);if(!r.success)throw new DeviceChannelProtocolError(`Frame does not match the channel protocol`);return r.data}function parseWorkerFrame(e){return parseDeviceChannelFrame(g,e)}function parseServerFrame(e){return parseDeviceChannelFrame(_,e)}export{a as DEVICE_CHANNEL_AUTHENTICATE_TIMEOUT_MS,o as DEVICE_CHANNEL_IDLE_POLL_MS,c as DEVICE_CHANNEL_KEEPALIVE_MS,i as DEVICE_CHANNEL_MAX_FRAME_BYTES,r as DEVICE_CHANNEL_PATH,s as DEVICE_CHANNEL_PRESENCE_MS,l as DEVICE_CHANNEL_WORKER_CLOSE_PROTOCOL_VIOLATION,d as DEVICE_COMMAND_ERROR_CODES,p as DEVICE_DESKTOP_STATES,f as DEVICE_SHELLS,DeviceChannelProtocolError,_ as DeviceChannelServerFrameSchema,g as DeviceChannelWorkerFrameSchema,m as DeviceDesktopStatusSchema,computeReconnectDelay,computeRetryDelay,deviceChannelUrl,parseDeviceChannelFrame,parseServerFrame,parseWorkerFrame};
|
|
@@ -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("./device-channel-BQ8SMmLM.js"),n=require("./operation-b0CY8USr.js"),r=require("./uuid-param-Djtff5Vy.js");let i=require("zod");i=e.__toESM(i);var a=/* @__PURE__ */ e.__exportAll({deviceEnrollmentTokensOperations:()=>w,devicesOperations:()=>S});const o=[`darwin`,`linux`,`win32`],s=i.enum([`online`,`offline`,`revoked`]),c=i.object({id:i.string(),tenantId:i.string(),ownerActorId:i.string(),name:i.string(),platform:i.enum(o),arch:i.string(),hostname:i.string(),lastSeenAt:i.string().nullable(),revokedAt:i.string().nullable(),agentExecutionAuthorizedAt:i.string().nullable(),managed:i.boolean(),desktopStatus:i.object({state:i.enum(t.DEVICE_DESKTOP_STATES),version:i.string()}).nullable(),shell:i.enum(t.DEVICE_SHELLS).nullable(),createdAt:i.string(),updatedAt:i.string(),status:s}),l=i.uuid(),u=i.string().trim().min(1).max(100),d=i.strictObject({token:i.string().min(1).max(512),installationId:l,hostname:i.string().trim().min(1).max(255),platform:i.enum(o),arch:i.string().trim().min(1).max(50),currentCredential:i.string().min(1).optional()}),f=i.strictObject({namePrefix:i.string().trim().min(1).max(60).optional(),runnerActorIds:i.array(r.uuidParam).max(100).default([]),agentExecutionAuthorized:i.boolean().default(!1),maxUses:i.number().int().min(1).max(100).default(1),expiresInSeconds:i.number().int().min(60).max(604800).default(86400)}),p=i.object({deviceId:i.string(),deviceToken:i.string(),name:i.string()}),m=i.enum([`fleet`,`personal`]),h=i.object({id:i.string(),kind:m,namePrefix:i.string().nullable(),runnerActorIds:i.array(i.string()),agentExecutionAuthorized:i.boolean(),maxUses:i.number(),uses:i.number(),createdBy:i.string(),expiresAt:i.string(),revokedAt:i.string().nullable(),createdAt:i.string()}),g=i.object({token:i.string(),enrollmentToken:h}),_=i.object({success:i.literal(!0)}),v={name:u.optional(),agentExecutionAuthorized:i.boolean().optional()};function namesAField(e){return e.name!==void 0||e.agentExecutionAuthorized!==void 0}const y={message:`At least one device field is required`},b=i.strictObject(v).refine(namesAField,y),x=i.object({id:r.uuidParam}),S={list:n.operation({name:`devices.list`,method:`GET`,path:`/devices`,input:i.object({}),output:i.array(c),actor:`required`}),enroll:n.operation({name:`devices.enroll`,method:`POST`,path:`/devices/enroll`,input:d,output:p,throttle:{limit:10,ttlMs:6e4}}),update:n.operation({name:`devices.update`,method:`PATCH`,path:`/devices/:id`,input:i.strictObject({id:r.uuidParam,...v}).refine(namesAField,y),output:c,actor:`required`}),revoke:n.operation({name:`devices.revoke`,method:`DELETE`,path:`/devices/:id`,input:x,output:_,actor:`required`})},C=i.object({id:r.uuidParam}),w={create:n.operation({name:`deviceEnrollmentTokens.create`,method:`POST`,path:`/devices/enrollment-tokens`,input:f,output:g,permission:[`devices`,`manage`],credential:`session`}),list:n.operation({name:`deviceEnrollmentTokens.list`,method:`GET`,path:`/devices/enrollment-tokens`,input:i.object({}),output:i.array(h),permission:[`devices`,`manage`],credential:`session`}),revoke:n.operation({name:`deviceEnrollmentTokens.revoke`,method:`DELETE`,path:`/devices/enrollment-tokens/:id`,input:C,output:_,permission:[`devices`,`manage`],credential:`session`}),createPersonal:n.operation({name:`deviceEnrollmentTokens.createPersonal`,method:`POST`,path:`/devices/enrollment-tokens/personal`,input:i.object({}),output:g})};Object.defineProperty(exports,"REMOTE_DEVICE_PLATFORMS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"createEnrollmentTokenBody",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"createdEnrollmentTokenSchema",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"deviceEnrollmentTokensOperations",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"devicesOperations",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"devices_operations_exports",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"enrollDeviceBody",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"enrolledDeviceSchema",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"enrollmentTokenViewSchema",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"remoteDeviceViewSchema",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"updateDeviceBody",{enumerable:!0,get:function(){return b}});
|
|
@@ -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{DEVICE_DESKTOP_STATES as t,DEVICE_SHELLS as n}from"./device-channel-CmrDyl1C.mjs";import{operation as r}from"./operation-Ljhj0S-y.mjs";import{uuidParam as i}from"./uuid-param-BuV4RQRp.mjs";import*as a from"zod";var o=/* @__PURE__ */ e({deviceEnrollmentTokensOperations:()=>T,devicesOperations:()=>C});const s=[`darwin`,`linux`,`win32`],c=a.enum([`online`,`offline`,`revoked`]),l=a.object({id:a.string(),tenantId:a.string(),ownerActorId:a.string(),name:a.string(),platform:a.enum(s),arch:a.string(),hostname:a.string(),lastSeenAt:a.string().nullable(),revokedAt:a.string().nullable(),agentExecutionAuthorizedAt:a.string().nullable(),managed:a.boolean(),desktopStatus:a.object({state:a.enum(t),version:a.string()}).nullable(),shell:a.enum(n).nullable(),createdAt:a.string(),updatedAt:a.string(),status:c}),u=a.uuid(),d=a.string().trim().min(1).max(100),f=a.strictObject({token:a.string().min(1).max(512),installationId:u,hostname:a.string().trim().min(1).max(255),platform:a.enum(s),arch:a.string().trim().min(1).max(50),currentCredential:a.string().min(1).optional()}),p=a.strictObject({namePrefix:a.string().trim().min(1).max(60).optional(),runnerActorIds:a.array(i).max(100).default([]),agentExecutionAuthorized:a.boolean().default(!1),maxUses:a.number().int().min(1).max(100).default(1),expiresInSeconds:a.number().int().min(60).max(604800).default(86400)}),m=a.object({deviceId:a.string(),deviceToken:a.string(),name:a.string()}),h=a.enum([`fleet`,`personal`]),g=a.object({id:a.string(),kind:h,namePrefix:a.string().nullable(),runnerActorIds:a.array(a.string()),agentExecutionAuthorized:a.boolean(),maxUses:a.number(),uses:a.number(),createdBy:a.string(),expiresAt:a.string(),revokedAt:a.string().nullable(),createdAt:a.string()}),_=a.object({token:a.string(),enrollmentToken:g}),v=a.object({success:a.literal(!0)}),y={name:d.optional(),agentExecutionAuthorized:a.boolean().optional()};function namesAField(e){return e.name!==void 0||e.agentExecutionAuthorized!==void 0}const b={message:`At least one device field is required`},x=a.strictObject(y).refine(namesAField,b),S=a.object({id:i}),C={list:r({name:`devices.list`,method:`GET`,path:`/devices`,input:a.object({}),output:a.array(l),actor:`required`}),enroll:r({name:`devices.enroll`,method:`POST`,path:`/devices/enroll`,input:f,output:m,throttle:{limit:10,ttlMs:6e4}}),update:r({name:`devices.update`,method:`PATCH`,path:`/devices/:id`,input:a.strictObject({id:i,...y}).refine(namesAField,b),output:l,actor:`required`}),revoke:r({name:`devices.revoke`,method:`DELETE`,path:`/devices/:id`,input:S,output:v,actor:`required`})},w=a.object({id:i}),T={create:r({name:`deviceEnrollmentTokens.create`,method:`POST`,path:`/devices/enrollment-tokens`,input:p,output:_,permission:[`devices`,`manage`],credential:`session`}),list:r({name:`deviceEnrollmentTokens.list`,method:`GET`,path:`/devices/enrollment-tokens`,input:a.object({}),output:a.array(g),permission:[`devices`,`manage`],credential:`session`}),revoke:r({name:`deviceEnrollmentTokens.revoke`,method:`DELETE`,path:`/devices/enrollment-tokens/:id`,input:w,output:v,permission:[`devices`,`manage`],credential:`session`}),createPersonal:r({name:`deviceEnrollmentTokens.createPersonal`,method:`POST`,path:`/devices/enrollment-tokens/personal`,input:a.object({}),output:_})};export{s as REMOTE_DEVICE_PLATFORMS,p as createEnrollmentTokenBody,_ as createdEnrollmentTokenSchema,T as deviceEnrollmentTokensOperations,C as devicesOperations,o as devices_operations_exports,f as enrollDeviceBody,m as enrolledDeviceSchema,g as enrollmentTokenViewSchema,l as remoteDeviceViewSchema,x as updateDeviceBody};
|
|
@@ -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{dictationAdmissionSchema as t,dictationCapabilitiesSchema as n,dictationUsageSummarySchema as r}from"./ai-output.schema-CQKoZCbn.mjs";import{operation as i}from"./operation-Ljhj0S-y.mjs";import*as a from"zod";var o=/* @__PURE__ */ e({dictationOperations:()=>c});const s=`/ai/dictation/stream`,c={capabilities:i({name:`dictation.capabilities`,method:`GET`,path:`/ai/dictation`,input:a.object({}),output:n}),createSession:i({name:`dictation.createSession`,method:`POST`,path:`/ai/dictation/sessions`,input:a.object({}),output:t}),usage:i({name:`dictation.usage`,method:`GET`,path:`/ai/dictation/usage`,input:a.object({}),output:r})};export{s as DICTATION_STREAM_PATH,c as dictationOperations,o as dictation_operations_exports};
|
|
@@ -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("./ai-output.schema-DHm6HAfH.js"),n=require("./operation-b0CY8USr.js");let r=require("zod");r=e.__toESM(r);var i=/* @__PURE__ */ e.__exportAll({dictationOperations:()=>a});const a={capabilities:n.operation({name:`dictation.capabilities`,method:`GET`,path:`/ai/dictation`,input:r.object({}),output:t.dictationCapabilitiesSchema}),createSession:n.operation({name:`dictation.createSession`,method:`POST`,path:`/ai/dictation/sessions`,input:r.object({}),output:t.dictationAdmissionSchema}),usage:n.operation({name:`dictation.usage`,method:`GET`,path:`/ai/dictation/usage`,input:r.object({}),output:t.dictationUsageSummarySchema})};Object.defineProperty(exports,"DICTATION_STREAM_PATH",{enumerable:!0,get:function(){return`/ai/dictation/stream`}}),Object.defineProperty(exports,"dictationOperations",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"dictation_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"./zod-locale.mjs";import{isoDateTime as e}from"./output-D0Gkm-0Z.mjs";import*as t from"zod";const n=[`file`,`folder`],r=t.object({id:t.string(),tenantId:t.string(),title:t.string(),kind:t.enum(n),parentId:t.string().nullable().optional(),description:t.string().optional(),contentHash:t.string().optional(),createdBy:t.string().optional(),updatedBy:t.string().optional(),deletedAt:e.nullable().optional(),position:t.number(),createdAt:e,updatedAt:e}),i=r.extend({subCount:t.number().nullable()}),a=t.object({id:t.string(),kind:t.enum(n),title:t.string(),path:t.string(),parentId:t.string().nullable(),depth:t.number()}),o=t.object({recordId:t.string(),hits:t.array(a),truncated:t.object({maxEntries:t.number(),returnedEntries:t.number()}).optional()}),s=[`pending`,`processing`,`completed`,`failed`,`unsupported`,`skipped`],c=t.object({id:t.string(),documentId:t.string(),position:t.number(),name:t.string(),mimeType:t.string(),size:t.number(),ocrStatus:t.enum(s).nullable(),ocrText:t.string().nullable(),ocrConfidence:t.number().nullable(),processedAt:e.nullable()}),l=[`created`,`appended`,`linked-existing`],u=t.object({document:r,file:c,action:t.enum(l)}),d=c.omit({ocrText:!0}),f=i.extend({files:t.array(d),attributeName:t.string().optional(),properties:t.record(t.string(),t.unknown()).optional()}),p=[`manual`,`name-asc`,`name-desc`,`date-desc`,`date-asc`],m=100,h=500,g=2048,_=t.object({items:t.array(f),nextCursor:t.string().nullable()}),v=t.object({recordId:t.string(),objectName:t.string(),label:t.string(),itemCount:t.number(),fileCount:t.number(),lastActivityAt:t.string()}),y=t.object({data:t.array(v),nextOffset:t.number().nullable()});export{l as ATTACH_FILE_ACTIONS,n as DOCUMENT_KINDS,p as DOCUMENT_SORT_MODES,s as FILE_OCR_STATUSES,g as RECORD_DRIVE_CURSOR_MAX_LENGTH,m as RECORD_DRIVE_PAGE_DEFAULT_LIMIT,h as RECORD_DRIVE_PAGE_MAX_LIMIT,u as attachedRecordDocumentSchema,c as documentFileSchema,y as documentRecordOwnerPageSchema,v as documentRecordOwnerSchema,r as documentSchema,i as documentWithSubCountSchema,d as driveFileSchema,f as recordDriveChildSchema,_ as recordDriveChildrenPageSchema,a as recordDriveSearchHitSchema,o as recordDriveSearchResultSchema};
|
|
@@ -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=[`file`,`folder`],i=n.object({id:n.string(),tenantId:n.string(),title:n.string(),kind:n.enum(r),parentId:n.string().nullable().optional(),description:n.string().optional(),contentHash:n.string().optional(),createdBy:n.string().optional(),updatedBy:n.string().optional(),deletedAt:t.isoDateTime.nullable().optional(),position:n.number(),createdAt:t.isoDateTime,updatedAt:t.isoDateTime}),a=i.extend({subCount:n.number().nullable()}),o=n.object({id:n.string(),kind:n.enum(r),title:n.string(),path:n.string(),parentId:n.string().nullable(),depth:n.number()}),s=n.object({recordId:n.string(),hits:n.array(o),truncated:n.object({maxEntries:n.number(),returnedEntries:n.number()}).optional()}),c=[`pending`,`processing`,`completed`,`failed`,`unsupported`,`skipped`],l=n.object({id:n.string(),documentId:n.string(),position:n.number(),name:n.string(),mimeType:n.string(),size:n.number(),ocrStatus:n.enum(c).nullable(),ocrText:n.string().nullable(),ocrConfidence:n.number().nullable(),processedAt:t.isoDateTime.nullable()}),u=[`created`,`appended`,`linked-existing`],d=n.object({document:i,file:l,action:n.enum(u)}),f=l.omit({ocrText:!0}),p=a.extend({files:n.array(f),attributeName:n.string().optional(),properties:n.record(n.string(),n.unknown()).optional()}),m=[`manual`,`name-asc`,`name-desc`,`date-desc`,`date-asc`],h=n.object({items:n.array(p),nextCursor:n.string().nullable()}),g=n.object({recordId:n.string(),objectName:n.string(),label:n.string(),itemCount:n.number(),fileCount:n.number(),lastActivityAt:n.string()}),_=n.object({data:n.array(g),nextOffset:n.number().nullable()});Object.defineProperty(exports,"ATTACH_FILE_ACTIONS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"DOCUMENT_KINDS",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"DOCUMENT_SORT_MODES",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"FILE_OCR_STATUSES",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"RECORD_DRIVE_CURSOR_MAX_LENGTH",{enumerable:!0,get:function(){return 2048}}),Object.defineProperty(exports,"RECORD_DRIVE_PAGE_DEFAULT_LIMIT",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"RECORD_DRIVE_PAGE_MAX_LIMIT",{enumerable:!0,get:function(){return 500}}),Object.defineProperty(exports,"attachedRecordDocumentSchema",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"documentFileSchema",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"documentRecordOwnerPageSchema",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"documentRecordOwnerSchema",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"documentSchema",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"documentWithSubCountSchema",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"driveFileSchema",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"recordDriveChildSchema",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"recordDriveChildrenPageSchema",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"recordDriveSearchHitSchema",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"recordDriveSearchResultSchema",{enumerable:!0,get:function(){return s}});
|
|
@@ -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{documentFileSchema as t,documentRecordOwnerPageSchema as n,documentSchema as r}from"./documents-BrgkFEjS.mjs";import{operation as i,type as a}from"./operation-Ljhj0S-y.mjs";import{parseNonNegativeInteger as o,parsePositiveInteger as s}from"./query-integers-CZDEkFmm.mjs";import*as c from"zod";var l=/* @__PURE__ */ e({documentsOperations:()=>_});function queryInteger(e){return c.preprocess(t=>e(typeof t==`string`||typeof t==`number`?t:void 0),c.number().int().optional()).optional()}const u=c.object({limit:queryInteger(s),offset:queryInteger(o)}),d=c.object({title:c.string(),parentId:c.string().nullish(),kind:c.enum([`file`,`folder`]).optional(),description:c.string().optional(),position:c.number().optional(),objectName:c.string().min(1),sourceRecordId:c.string().min(1),attributeName:c.string().min(1)}),f=c.object({limit:queryInteger(s),offset:queryInteger(o),q:c.string().optional(),includeDrives:c.string().optional(),ids:c.string().optional()}),p=c.object({name:c.string()}),m=c.object({id:c.string(),name:c.string(),url:c.string(),mimeType:c.string(),size:c.number().optional()}),h=c.object({id:c.string()}),g=h.extend({fileId:c.string()}),_={list:i({name:`documents.list`,method:`GET`,path:`/documents`,input:u,output:c.array(r),permission:[`documents`,`read`]}),recordOwners:i({name:`documents.recordOwners`,method:`GET`,path:`/documents/record-owners`,input:f,output:n,permission:[`documents`,`read`]}),get:i({name:`documents.get`,method:`GET`,path:`/documents/:id`,input:h,output:r,permission:[`documents`,`read`]}),create:i({name:`documents.create`,method:`POST`,path:`/documents`,input:d,output:r,permission:[`documents`,`create`]}),delete:i({name:`documents.delete`,method:`DELETE`,path:`/documents/:id`,input:h,output:a(),permission:[`documents`,`delete`],status:204}),restore:i({name:`documents.restore`,method:`POST`,path:`/documents/:id/restore`,input:h,output:r,permission:[`documents`,`delete`],status:200}),files:i({name:`documents.files`,method:`GET`,path:`/documents/:id/files`,input:h,output:c.array(t),permission:[`documents`,`read`]}),addFile:i({name:`documents.addFile`,method:`POST`,path:`/documents/:id/files`,input:h.extend({fileId:c.string().min(1)}),output:t,permission:[`documents`,`update`]}),removeFile:i({name:`documents.removeFile`,method:`DELETE`,path:`/documents/:id/files/:fileId`,input:g,output:a(),permission:[`documents`,`update`],status:204}),fileDownloadUrl:i({name:`documents.fileDownloadUrl`,method:`GET`,path:`/documents/:id/files/:fileId/download-url`,input:g,output:c.object({url:c.string()}),permission:[`documents`,`read`]}),preview:i({name:`documents.preview`,method:`GET`,path:`/documents/:id/preview`,input:h,output:m.nullable(),permission:[`documents`,`read`],jsonNull:!0}),rename:i({name:`documents.rename`,method:`POST`,path:`/documents/:id/rename`,input:h.extend(p.shape),output:r,permission:[`documents`,`update`]}),content:i({name:`documents.content`,method:`GET`,path:`/documents/:id/content`,input:h,output:a(),permission:[`documents`,`read`],response:`bytes`})};export{d as createDocumentBody,f as documentOwnersQuery,m as documentPreviewFileSchema,_ as documentsOperations,l as documents_operations_exports,u as listDocumentsQuery,p as renameDocumentBody};
|
|
@@ -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("./documents-KBlpK-vw.js"),n=require("./operation-b0CY8USr.js"),r=require("./query-integers-EVkedFO4.js");let i=require("zod");i=e.__toESM(i);var a=/* @__PURE__ */ e.__exportAll({documentsOperations:()=>p});function queryInteger(e){return i.preprocess(t=>e(typeof t==`string`||typeof t==`number`?t:void 0),i.number().int().optional()).optional()}const o=i.object({limit:queryInteger(r.parsePositiveInteger),offset:queryInteger(r.parseNonNegativeInteger)}),s=i.object({title:i.string(),parentId:i.string().nullish(),kind:i.enum([`file`,`folder`]).optional(),description:i.string().optional(),position:i.number().optional(),objectName:i.string().min(1),sourceRecordId:i.string().min(1),attributeName:i.string().min(1)}),c=i.object({limit:queryInteger(r.parsePositiveInteger),offset:queryInteger(r.parseNonNegativeInteger),q:i.string().optional(),includeDrives:i.string().optional(),ids:i.string().optional()}),l=i.object({name:i.string()}),u=i.object({id:i.string(),name:i.string(),url:i.string(),mimeType:i.string(),size:i.number().optional()}),d=i.object({id:i.string()}),f=d.extend({fileId:i.string()}),p={list:n.operation({name:`documents.list`,method:`GET`,path:`/documents`,input:o,output:i.array(t.documentSchema),permission:[`documents`,`read`]}),recordOwners:n.operation({name:`documents.recordOwners`,method:`GET`,path:`/documents/record-owners`,input:c,output:t.documentRecordOwnerPageSchema,permission:[`documents`,`read`]}),get:n.operation({name:`documents.get`,method:`GET`,path:`/documents/:id`,input:d,output:t.documentSchema,permission:[`documents`,`read`]}),create:n.operation({name:`documents.create`,method:`POST`,path:`/documents`,input:s,output:t.documentSchema,permission:[`documents`,`create`]}),delete:n.operation({name:`documents.delete`,method:`DELETE`,path:`/documents/:id`,input:d,output:n.type(),permission:[`documents`,`delete`],status:204}),restore:n.operation({name:`documents.restore`,method:`POST`,path:`/documents/:id/restore`,input:d,output:t.documentSchema,permission:[`documents`,`delete`],status:200}),files:n.operation({name:`documents.files`,method:`GET`,path:`/documents/:id/files`,input:d,output:i.array(t.documentFileSchema),permission:[`documents`,`read`]}),addFile:n.operation({name:`documents.addFile`,method:`POST`,path:`/documents/:id/files`,input:d.extend({fileId:i.string().min(1)}),output:t.documentFileSchema,permission:[`documents`,`update`]}),removeFile:n.operation({name:`documents.removeFile`,method:`DELETE`,path:`/documents/:id/files/:fileId`,input:f,output:n.type(),permission:[`documents`,`update`],status:204}),fileDownloadUrl:n.operation({name:`documents.fileDownloadUrl`,method:`GET`,path:`/documents/:id/files/:fileId/download-url`,input:f,output:i.object({url:i.string()}),permission:[`documents`,`read`]}),preview:n.operation({name:`documents.preview`,method:`GET`,path:`/documents/:id/preview`,input:d,output:u.nullable(),permission:[`documents`,`read`],jsonNull:!0}),rename:n.operation({name:`documents.rename`,method:`POST`,path:`/documents/:id/rename`,input:d.extend(l.shape),output:t.documentSchema,permission:[`documents`,`update`]}),content:n.operation({name:`documents.content`,method:`GET`,path:`/documents/:id/content`,input:d,output:n.type(),permission:[`documents`,`read`],response:`bytes`})};Object.defineProperty(exports,"createDocumentBody",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"documentOwnersQuery",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"documentPreviewFileSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"documentsOperations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"documents_operations_exports",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"listDocumentsQuery",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"renameDocumentBody",{enumerable:!0,get:function(){return l}});
|
|
@@ -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=[`personal`,`workspace`],i=[`model`,`rule`,`manual`],a=[`address`,`domain`],o=n.object({id:n.string(),scope:n.enum([...r,`system`]),name:n.string().nullable(),description:n.string(),icon:t.brandedString(),color:t.brandedString()}),s=n.object({category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(i).nullable()}),c=n.object({id:n.string(),connectionId:n.string(),mailboxAddress:n.string(),scope:n.enum(a),match:n.string(),category:n.string(),createdBy:n.string(),createdAt:n.string(),updatedAt:n.string()}),l=n.object({emails:n.number(),rules:n.number()}),u=n.object({verdict:s,ruleId:n.string().nullable(),previousRule:n.object({scope:n.enum(a),match:n.string(),category:n.string()}).nullable()}),d=n.object({verdict:s,rule:c.nullable(),undo:u});Object.defineProperty(exports,"EMAIL_CATEGORY_SCOPES",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"EMAIL_CLASSIFIED_BY",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"EMAIL_RULE_SCOPES",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"classificationUndoSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"classifyEmailResultSchema",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"emailCategorySchema",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"emailCategoryUsageSchema",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"emailSenderRuleSchema",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"emailVerdictSchema",{enumerable:!0,get:function(){return s}});
|
|
@@ -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{brandedString as e}from"./output-D0Gkm-0Z.mjs";import*as t from"zod";const n=[`personal`,`workspace`],r=[`model`,`rule`,`manual`],i=[`address`,`domain`],a=t.object({id:t.string(),scope:t.enum([...n,`system`]),name:t.string().nullable(),description:t.string(),icon:e(),color:e()}),o=t.object({category:t.string().nullable(),important:t.boolean(),classifiedBy:t.enum(r).nullable()}),s=t.object({id:t.string(),connectionId:t.string(),mailboxAddress:t.string(),scope:t.enum(i),match:t.string(),category:t.string(),createdBy:t.string(),createdAt:t.string(),updatedAt:t.string()}),c=t.object({emails:t.number(),rules:t.number()}),l=t.object({verdict:o,ruleId:t.string().nullable(),previousRule:t.object({scope:t.enum(i),match:t.string(),category:t.string()}).nullable()}),u=t.object({verdict:o,rule:s.nullable(),undo:l});export{n as EMAIL_CATEGORY_SCOPES,r as EMAIL_CLASSIFIED_BY,i as EMAIL_RULE_SCOPES,l as classificationUndoSchema,u as classifyEmailResultSchema,a as emailCategorySchema,c as emailCategoryUsageSchema,s as emailSenderRuleSchema,o as emailVerdictSchema};
|
|
@@ -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{classifyEmailResultSchema as t,emailCategorySchema as n,emailCategoryUsageSchema as r,emailSenderRuleSchema as i,emailVerdictSchema as a}from"./email-classification-Jk8hARsL.mjs";import{classificationRestoreSchema as o,classifyEmailSchema as s,emailCategoryCreateSchema as c,emailCategoryDeleteSchema as l,emailCategoryScopeQuerySchema as u,emailCategoryUpdateSchema as d,emailRuleScopeSchema as f}from"./email-classification.schema-CzlbP3hF.mjs";import{operation as p,type as m}from"./operation-Ljhj0S-y.mjs";import*as h from"zod";var g=/* @__PURE__ */ e({emailCategoriesOperations:()=>b,emailClassificationOperations:()=>x});const _=h.object({id:h.string()}),v=h.object({ruleId:h.string()}),y=h.object({emailId:h.string()}),b={list:p({name:`emailCategories.list`,permission:[`emails`,`read`],method:`GET`,path:`/email-categories`,input:u,output:h.array(n)}),create:p({name:`emailCategories.create`,permission:[`emails`,`create`],method:`POST`,path:`/email-categories`,input:c,output:n}),rules:p({name:`emailCategories.rules`,permission:[`emails`,`read`],method:`GET`,path:`/email-categories/rules`,input:u,output:h.array(i)}),widenRule:p({name:`emailCategories.widenRule`,permission:[`emails`,`update`],method:`PATCH`,path:`/email-categories/rules/:ruleId`,input:v.extend(f.shape),output:i}),removeRule:p({name:`emailCategories.removeRule`,permission:[`emails`,`delete`],method:`DELETE`,path:`/email-categories/rules/:ruleId`,input:v,output:m(),status:204}),usage:p({name:`emailCategories.usage`,permission:[`emails`,`read`],method:`GET`,path:`/email-categories/:id/usage`,input:_,output:r}),update:p({name:`emailCategories.update`,permission:[`emails`,`update`],method:`PATCH`,path:`/email-categories/:id`,input:_.and(d),output:n}),delete:p({name:`emailCategories.delete`,permission:[`emails`,`delete`],method:`DELETE`,path:`/email-categories/:id`,input:_.extend(l.shape),output:m(),status:204})},x={classify:p({name:`emailClassification.classify`,permission:[`emails`,`update`],method:`PATCH`,path:`/emails/:emailId/classification`,input:s.safeExtend(y.shape),output:t}),restore:p({name:`emailClassification.restore`,permission:[`emails`,`update`],method:`POST`,path:`/emails/:emailId/classification/restore`,input:o.safeExtend(y.shape),output:a})};export{b as emailCategoriesOperations,x as emailClassificationOperations,g as email_classification_operations_exports};
|
|
@@ -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("./email-classification-DEHTSbVv.js"),n=require("./email-classification.schema-B2RE9-Sz.js"),r=require("./operation-b0CY8USr.js");let i=require("zod");i=e.__toESM(i);var a=/* @__PURE__ */ e.__exportAll({emailCategoriesOperations:()=>l,emailClassificationOperations:()=>u});const o=i.object({id:i.string()}),s=i.object({ruleId:i.string()}),c=i.object({emailId:i.string()}),l={list:r.operation({name:`emailCategories.list`,permission:[`emails`,`read`],method:`GET`,path:`/email-categories`,input:n.emailCategoryScopeQuerySchema,output:i.array(t.emailCategorySchema)}),create:r.operation({name:`emailCategories.create`,permission:[`emails`,`create`],method:`POST`,path:`/email-categories`,input:n.emailCategoryCreateSchema,output:t.emailCategorySchema}),rules:r.operation({name:`emailCategories.rules`,permission:[`emails`,`read`],method:`GET`,path:`/email-categories/rules`,input:n.emailCategoryScopeQuerySchema,output:i.array(t.emailSenderRuleSchema)}),widenRule:r.operation({name:`emailCategories.widenRule`,permission:[`emails`,`update`],method:`PATCH`,path:`/email-categories/rules/:ruleId`,input:s.extend(n.emailRuleScopeSchema.shape),output:t.emailSenderRuleSchema}),removeRule:r.operation({name:`emailCategories.removeRule`,permission:[`emails`,`delete`],method:`DELETE`,path:`/email-categories/rules/:ruleId`,input:s,output:r.type(),status:204}),usage:r.operation({name:`emailCategories.usage`,permission:[`emails`,`read`],method:`GET`,path:`/email-categories/:id/usage`,input:o,output:t.emailCategoryUsageSchema}),update:r.operation({name:`emailCategories.update`,permission:[`emails`,`update`],method:`PATCH`,path:`/email-categories/:id`,input:o.and(n.emailCategoryUpdateSchema),output:t.emailCategorySchema}),delete:r.operation({name:`emailCategories.delete`,permission:[`emails`,`delete`],method:`DELETE`,path:`/email-categories/:id`,input:o.extend(n.emailCategoryDeleteSchema.shape),output:r.type(),status:204})},u={classify:r.operation({name:`emailClassification.classify`,permission:[`emails`,`update`],method:`PATCH`,path:`/emails/:emailId/classification`,input:n.classifyEmailSchema.safeExtend(c.shape),output:t.classifyEmailResultSchema}),restore:r.operation({name:`emailClassification.restore`,permission:[`emails`,`update`],method:`POST`,path:`/emails/:emailId/classification/restore`,input:n.classificationRestoreSchema.safeExtend(c.shape),output:t.emailVerdictSchema})};Object.defineProperty(exports,"emailCategoriesOperations",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"emailClassificationOperations",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"email_classification_operations_exports",{enumerable:!0,get:function(){return a}});
|
|
@@ -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("./email-classification-DEHTSbVv.js"),n=require("./primitives-x0WE42fG.js");let r=require("zod");r=e.__toESM(r);const i=[{key:`direct`,icon:`message`,color:`ink`,description:`A message a person wrote to this mailbox: a conversation, a question, a request, a reply.`},{key:`transactional`,icon:`credit-card`,color:`terra`,description:`An automated message about an account or an operation: receipt, invoice, payment, order, shipping, booking, password reset, security alert.`},{key:`notifications`,icon:`bell`,color:`ochre`,description:`An automated alert from a tool or a service: activity on GitHub, Slack, a calendar, a CRM, a monitoring system.`},{key:`newsletters`,icon:`book-open`,color:`stone`,description:`Editorial content the mailbox subscribed to: newsletters, digests, articles, community updates.`},{key:`marketing`,icon:`percentage`,color:`iris`,description:`Promotion or prospecting: offers, discounts, product announcements, cold sales outreach.`}],a={direct:{en:`Direct`,fr:`Direct`},transactional:{en:`Transactional`,fr:`Transactionnel`},notifications:{en:`Notifications`,fr:`Notifications`},newsletters:{en:`Newsletters`,fr:`Newsletters`},marketing:{en:`Marketing`,fr:`Marketing`}},o=`stone`,s=/* @__PURE__ */ new Set(/* @__PURE__ */ `gmail.com,googlemail.com,outlook.com,hotmail.com,hotmail.fr,outlook.fr,live.com,live.fr,msn.com,yahoo.com,yahoo.fr,icloud.com,me.com,mac.com,proton.me,protonmail.com,gmx.com,gmx.fr,orange.fr,wanadoo.fr,free.fr,laposte.net,sfr.fr,bbox.fr,numericable.fr,aol.com`.split(`,`)),c=new Set(i.map(e=>e.key)),l=new Set(Object.entries(a).flatMap(([e,t])=>[e,t.en,t.fr].map(e=>e.toLowerCase())));function isSystemEmailCategory(e){return c.has(e)}function isSystemEmailCategoryName(e){return l.has(e.trim().toLowerCase())}function isPublicMailDomain(e){return s.has(e.toLowerCase())}const u=r.string().trim().min(1).max(24),d=r.string().trim().min(10).max(500),f=r.enum(t.EMAIL_RULE_SCOPES),p=r.object({scope:r.enum(t.EMAIL_CATEGORY_SCOPES),name:u,description:d,icon:n.iconNameSchema.default(`tag`),color:n.colorIdSchema.default(o)}),m=r.object({name:u.optional(),description:d.optional(),icon:n.iconNameSchema.optional(),color:n.colorIdSchema.optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),h=r.object({moveTo:r.string().min(1).nullable().default(null)}),g=r.object({category:r.string().min(1).optional(),important:r.boolean().optional()}).refine(e=>e.category!==void 0||e.important!==void 0,{message:`Nothing to classify`}),_=r.object({verdict:r.object({category:r.string().min(1).nullable(),important:r.boolean(),classifiedBy:r.enum(t.EMAIL_CLASSIFIED_BY).nullable()}),ruleId:r.string().uuid().nullable(),previousRule:r.object({scope:f,match:r.string().trim().toLowerCase().min(1),category:r.string().min(1)}).nullable()}).refine(e=>e.ruleId!==null||e.previousRule===null,{message:`A previous rule needs the rule it restores`}),v=r.object({scope:r.literal(`domain`)}),y=r.object({scope:r.enum(t.EMAIL_CATEGORY_SCOPES)});Object.defineProperty(exports,"EMAIL_CATEGORY_DEFAULT_COLOR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DEFAULT_ICON",{enumerable:!0,get:function(){return`tag`}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DESCRIPTION_MAX",{enumerable:!0,get:function(){return 500}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DESCRIPTION_MIN",{enumerable:!0,get:function(){return 10}}),Object.defineProperty(exports,"EMAIL_CATEGORY_LIMIT",{enumerable:!0,get:function(){return 8}}),Object.defineProperty(exports,"EMAIL_CATEGORY_NAME_MAX",{enumerable:!0,get:function(){return 24}}),Object.defineProperty(exports,"PUBLIC_MAIL_DOMAINS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"SYSTEM_EMAIL_CATEGORIES",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"SYSTEM_EMAIL_CATEGORY_NAMES",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"classificationRestoreSchema",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"classifyEmailSchema",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"emailCategoryCreateSchema",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"emailCategoryDeleteSchema",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"emailCategoryScopeQuerySchema",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"emailCategoryUpdateSchema",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"emailRuleScopeSchema",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"isPublicMailDomain",{enumerable:!0,get:function(){return isPublicMailDomain}}),Object.defineProperty(exports,"isSystemEmailCategory",{enumerable:!0,get:function(){return isSystemEmailCategory}}),Object.defineProperty(exports,"isSystemEmailCategoryName",{enumerable:!0,get:function(){return isSystemEmailCategoryName}});
|