@myagentroam/server 0.15.3 → 0.15.5
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/node_modules/@myagentroam/protocol/dist/index.d.ts +135 -102
- package/node_modules/@myagentroam/protocol/dist/index.js +15 -7
- package/node_modules/@myagentroam/protocol/dist/scheduled-time.d.ts +1126 -0
- package/node_modules/@myagentroam/protocol/dist/scheduled-time.js +92 -0
- package/node_modules/@myagentroam/protocol/dist/workbench-notification.d.ts +391 -0
- package/node_modules/@myagentroam/protocol/dist/workbench-notification.js +43 -0
- package/node_modules/@myagentroam/protocol/package.json +1 -1
- package/node_modules/@myagentroam/server-core/dist/domain-errors.js +6 -0
- package/node_modules/@myagentroam/server-core/dist/i18n/workbench-notifications.d.ts +4 -0
- package/node_modules/@myagentroam/server-core/dist/i18n/workbench-notifications.js +4 -0
- package/node_modules/@myagentroam/server-core/dist/marctl-session-routes.js +41 -35
- package/node_modules/@myagentroam/server-core/dist/mysql-node-identity.js +2 -0
- package/node_modules/@myagentroam/server-core/dist/mysql-schema.d.ts +11 -0
- package/node_modules/@myagentroam/server-core/dist/mysql-schema.js +79 -9
- package/node_modules/@myagentroam/server-core/dist/node-identity-control.d.ts +3 -0
- package/node_modules/@myagentroam/server-core/dist/node-identity-control.js +3 -0
- package/node_modules/@myagentroam/server-core/dist/node-projection.d.ts +3 -0
- package/node_modules/@myagentroam/server-core/dist/node-projection.js +4 -2
- package/node_modules/@myagentroam/server-core/dist/node-request-channel.d.ts +6 -0
- package/node_modules/@myagentroam/server-core/dist/node-request-channel.js +9 -0
- package/node_modules/@myagentroam/server-core/dist/run-control-routes.js +7 -1
- package/node_modules/@myagentroam/server-core/dist/scheduled-task-index.d.ts +139 -0
- package/node_modules/@myagentroam/server-core/dist/scheduled-task-index.js +304 -0
- package/node_modules/@myagentroam/server-core/dist/scheduled-task-pagination.d.ts +18 -0
- package/node_modules/@myagentroam/server-core/dist/scheduled-task-pagination.js +37 -0
- package/node_modules/@myagentroam/server-core/dist/scheduled-task-routes.d.ts +45 -0
- package/node_modules/@myagentroam/server-core/dist/scheduled-task-routes.js +449 -0
- package/node_modules/@myagentroam/server-core/dist/session-run-routes.js +1 -125
- package/node_modules/@myagentroam/server-core/dist/workbench-notification-service.d.ts +14 -0
- package/node_modules/@myagentroam/server-core/dist/workbench-notification-service.js +101 -33
- package/node_modules/@myagentroam/server-core/package.json +12 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/node-control-factory.js +1 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/server-application.js +75 -4
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/mysql/server-database.js +3 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/node-control.d.ts +9 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/node-control.js +25 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/rbac/resource-access-service.d.ts +1 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/rbac/resource-access-service.js +6 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/rbac/resource-management-directory.d.ts +3 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/rbac/resource-mutation-service.d.ts +2 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/rbac/resource-mutation-service.js +6 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/background-execution-preparation-service.js +4 -5
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/node-request-broker.d.ts +5 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/node-request-broker.js +17 -4
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/node-resource-scope-index.js +10 -8
- package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
- package/package.json +5 -5
- package/web/assets/AuditManagementPage-Dsnzc0PN.js +1 -0
- package/web/assets/{AuthEntryPanel-Db_BWfJ0.js → AuthEntryPanel-D9ebBoo0.js} +4 -4
- package/web/assets/{AuthEntryPanel-BHf4PyTn.css → AuthEntryPanel-WpiFKAsq.css} +1 -1
- package/web/assets/{CodeFileEditor-CihFm6fB.js → CodeFileEditor-H71h18Kz.js} +3 -3
- package/web/assets/{ConversationTemplateManagementPage-v6A9UnHo.js → ConversationTemplateManagementPage-CbBgb5Un.js} +1 -1
- package/web/assets/{ConversationTemplateManagementPage--MLDP2Yq.js → ConversationTemplateManagementPage-DCJXWYdm.js} +1 -1
- package/web/assets/{EnterpriseUserManagementPage-DyFtLsCU.js → EnterpriseUserManagementPage-DRpFPO36.js} +1 -1
- package/web/assets/{EnvironmentSecretManager-DMI-sdv1.js → EnvironmentSecretManager-BYEu6pyC.js} +1 -1
- package/web/assets/{FilePreviewLoading-TmVJkujC.css → FilePreviewLoading-BCZE-xW1.css} +1 -1
- package/web/assets/{FilePreviewLoading-D8OWX-sl.js → FilePreviewLoading-LOmXglhH.js} +1 -1
- package/web/assets/{LicenseManagementPage-EO9mHum7.js → LicenseManagementPage-mhP8u0oZ.js} +1 -1
- package/web/assets/{ManagementPagination-B6TS3Pk4.js → ManagementPagination-DbiZ6CBx.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-CMT8p2qX.js → MarAgentModelManagementPage-BT44GgBh.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-DOPY6UOs.js → MarAgentModelManagementPage-CvvCbQCA.js} +1 -1
- package/web/assets/{MarAlert-C-dZd4T_.js → MarAlert-BIk_N-WC.js} +1 -1
- package/web/assets/{MarCascader-D3Vl-FFX.js → MarCascader-DvpPFe4o.js} +1 -1
- package/web/assets/{MarCheckTag-BwSYYsSE.js → MarCheckTag-BwvXnEnf.js} +1 -1
- package/web/assets/{MarCheckboxGroup-Cb135wMq.js → MarCheckboxGroup-5bVbf0lZ.js} +1 -1
- package/web/assets/{MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-BwTnPcE0.js → MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-DbEWuIHj.js} +1 -1
- package/web/assets/{MarDatePicker-tSQv6wvs.js → MarDatePicker-D0G2zEfT.js} +1 -1
- package/web/assets/{MarDescriptionsItem-PNPmf934.js → MarDescriptionsItem-CxLkpmQY.js} +1 -1
- package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-Dvh_fAz1.js → MarFormItem.vue_vue_type_script_setup_true_lang-CV1tzjdN.js} +1 -1
- package/web/assets/{MarInputNumber-OVs6j0FR.js → MarInputNumber-xVGdx2HY.js} +1 -1
- package/web/assets/{MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-Bsmm81si.js → MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-b5JJikqe.js} +1 -1
- package/web/assets/{MarSwitch-BGPjm8mm.js → MarSwitch-6B_KcOhu.js} +1 -1
- package/web/assets/{MarTableColumn.vue_vue_type_script_setup_true_lang-druOvKUy.js → MarTableColumn.vue_vue_type_script_setup_true_lang-BIKATpkO.js} +1 -1
- package/web/assets/{MarTabs-DGJMl1q0.js → MarTabs-BYc8P3EU.js} +1 -1
- package/web/assets/{MarTag-BoauUJly.js → MarTag-OPmx72Lz.js} +1 -1
- package/web/assets/{MarkdownFilePreview-Btw0b3eS.js → MarkdownFilePreview-B54_DszC.js} +2 -2
- package/web/assets/{McpDetailsDialog-ZmNHpt5x.js → McpDetailsDialog-BtMWSIeT.js} +1 -1
- package/web/assets/{McpSourceManagementPage-Cl3ypbMi.js → McpSourceManagementPage-B-126VRv.js} +1 -1
- package/web/assets/{McpSourceManagementPage-DuyBN1_y.js → McpSourceManagementPage-BWEFNm14.js} +1 -1
- package/web/assets/{NodeDetailsDialogs-B0LplIPv.js → NodeDetailsDialogs-21_kVbsi.js} +1 -1
- package/web/assets/NodeManagementPage-BH3_NvTe.js +1 -0
- package/web/assets/NodeManagementPage-D85qnsz4.js +1 -0
- package/web/assets/{OAuthManagementPage-6YC9ASJ5.js → OAuthManagementPage-DaUxJnvD.js} +1 -1
- package/web/assets/{OrganizationManagementPage-BKD6rHXr.js → OrganizationManagementPage-DOlN9TDa.js} +1 -1
- package/web/assets/{RemoteDesktopPage-BbaFFjeW.js → RemoteDesktopPage-BehdxoXV.js} +1 -1
- package/web/assets/{ResourceManagementPanel-ByySlr2x.js → ResourceManagementPanel-MXcleaI4.js} +1 -1
- package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-BmO8bTuI.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-B_Nm5nRe.js} +1 -1
- package/web/assets/{SecretManagementPage-D2W03gRh.js → SecretManagementPage-C8Cdzlae.js} +1 -1
- package/web/assets/SecretManagementPage-DqO4HEX4.js +1 -0
- package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-BBcFoXRw.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-ivOyaCL4.js} +1 -1
- package/web/assets/{SessionSharePage-BNgEp6w0.js → SessionSharePage-DSMxWgfS.js} +2 -2
- package/web/assets/SettingsContent-BLMdy5J4.css +1 -0
- package/web/assets/SettingsContent-BTiZ6U3Y.js +1 -0
- package/web/assets/{SettingsContent-leYkMe7Y.js → SettingsContent-CiDe4bJA.js} +1 -1
- package/web/assets/SkillCenterPage-BwE2Oimy.js +1 -0
- package/web/assets/{SkillCenterPage-kib4QG13.js → SkillCenterPage-DrSz-_cp.js} +1 -1
- package/web/assets/{SkillDetailsDialog-s5e4FvWZ.js → SkillDetailsDialog-ldoTDCcE.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-D42HRqgP.js → SkillSourceManagementPage-C0gMXRE5.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-CAPfoRGd.js → SkillSourceManagementPage-D7ipXJrA.js} +1 -1
- package/web/assets/{StandaloneFilePreviewPage-BoYp4pLI.js → StandaloneFilePreviewPage-BwddvGmo.js} +1 -1
- package/web/assets/{SystemConfigurationPage-B033PZiP.js → SystemConfigurationPage-CpzVPeAF.js} +1 -1
- package/web/assets/{SystemConfigurationPage-BImLLC7-.js → SystemConfigurationPage-i2e3-zND.js} +1 -1
- package/web/assets/{SystemInformationPage-CfN_9y2Q.js → SystemInformationPage-Bz0yFToK.js} +1 -1
- package/web/assets/{TerminalTabView-C0LlUwtD.js → TerminalTabView-DPXB2bXI.js} +1 -1
- package/web/assets/WorkbenchPage-B1oGIxD-.css +1 -0
- package/web/assets/WorkbenchPage-Kzj6M6Cw.js +22 -0
- package/web/assets/WorkspaceManagementPage-BTlzIlKC.js +1 -0
- package/web/assets/WorkspaceManagementPage-Dq1qIAjx.js +1 -0
- package/web/assets/{abnfDiagram-VCTEODGH-B3B520U3.js → abnfDiagram-VCTEODGH-DRytCsEV.js} +1 -1
- package/web/assets/{arc-CzRIICEp.js → arc-XoZS_jKf.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-Cwii7Vqj.js → architectureDiagram-5GKGNRK7-CfhN6NAI.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-DmXB7nEY.js → blockDiagram-OSKFZWR5-RWVqTWt9.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-DvFgqrKw.js → c4Diagram-7LVT6UL2-CO5F469-.js} +1 -1
- package/web/assets/{catalog-ownership-service-BxgleBKc.js → catalog-ownership-service-BZrBbgWj.js} +1 -1
- package/web/assets/{catalog-page-service-OpYIbvUW.js → catalog-page-service-Dvs0ECW7.js} +1 -1
- package/web/assets/channel-GTSu6otp.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-CRHWDv_q.js → chunk-2Q5K7J3B-B4DzBMFI.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-BWK_1AQI.js → chunk-5VM5RSS4-pVfLmPBw.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-8ThkQ-mU.js → chunk-F27PBJKO-BXqCh_pk.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-Ch5NYm1-.js → chunk-HLEWEB6X-BmD09ogS.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-B3jfIta9.js → chunk-JWPE2WC7-91KMh7-N.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-C_gUZd26.js → chunk-POPQ4Y6H-DWmBRn5X.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-CLYTuLPA.js → chunk-SVP7TREG-MYRwScnq.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-i9XwWX09.js → chunk-XXDRQBXY-Xd4UEOJR.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-DXNNy-Je.js → chunk-ZLD2IHE6-bksufRBt.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-BbDKYvfr.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-BbDKYvfr.js +1 -0
- package/web/assets/{conversation-history-BHVBrFPF.js → conversation-history-BPoLP3ZL.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-CbG82TkW.js → cose-bilkent-JH36ORCC-DWx37r3_.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-DXUJi6PL.js → cynefin-OW5HDTMX-DXjQqeAs.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-BbpaJaJc.js → cynefinDiagram-5FMLGOSQ-C0UoTc_K.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-B6_YQGif.js → dagre-OS7QT2EB-BJCceu3J.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-BRzqASNb.js → diagram-S7CK7UJ4-CKBa2I6a.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-vsBp6Ji0.js → diagram-UQ7AKVKN-C3iKHs0N.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-LePbDIih.js → diagram-VSXAHHWV-C69ZMkoA.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-Cn9ukbx8.js → diagram-VX7I27RA-i6dM64lY.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-CMl4dVbW.js → diagram-Z3DM3KII-DjmFpXQp.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-CBwYQRJ8.js → ebnfDiagram-PWID7BFC-deleYYQ9.js} +1 -1
- package/web/assets/{enterprise-management-service-DahI8TVf.js → enterprise-management-service-C1xVQRhM.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-CIIffxms.js → erDiagram-2YWLMYGG-C9FSq7LS.js} +1 -1
- package/web/assets/{error-presentation-BxUofys_.js → error-presentation-CLToNQLS.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-hWu2S6nd.js → flowDiagram-T62WH6J4-DtljfCw3.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-DQQyyM2R.js → ganttDiagram-EL5Y4UJY-CSXnaMni.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-bod8pPxm.js → gitGraphDiagram-WWUBYQGX-Di0kI-1M.js} +1 -1
- package/web/assets/{hosted-conversation-template-client-4N4KDMmd.js → hosted-conversation-template-client-DbIHvkrV.js} +1 -1
- package/web/assets/{index-BcU4a2UI.js → index-B5xNgQ1t.js} +1 -1
- package/web/assets/{index-fTGjG74c.js → index-BIm_Tk3o.js} +1 -1
- package/web/assets/{index-6BWD9-7y.js → index-BPzMXg_n.js} +1 -1
- package/web/assets/{index-DvTPCgd0.js → index-BRBLdEXg.js} +1 -1
- package/web/assets/{index-BV6jwloN.js → index-BSeoPuYp.js} +1 -1
- package/web/assets/{index-CqINCSE3.js → index-BZL0FA6c.js} +1 -1
- package/web/assets/{index-CKsN5tnJ.js → index-Blcdlvac.js} +1 -1
- package/web/assets/{index-WrhXkAuv.js → index-ByWLBx2B.js} +1 -1
- package/web/assets/{index-DtQPOl5N.js → index-BzSvld8B.js} +1 -1
- package/web/assets/{index-BGPZzJsA.js → index-C-VX-swt.js} +1 -1
- package/web/assets/{index-DkNKd-3B.js → index-C4DG-TeT.js} +1 -1
- package/web/assets/{index-BBmXtRn-.js → index-C5ytr62C.js} +1 -1
- package/web/assets/{index-DmVV73u3.js → index-CLqDl5dP.js} +1 -1
- package/web/assets/{index-CqmyW_rC.js → index-CMc6i3Wi.js} +1 -1
- package/web/assets/{index-B8VV5dHZ.js → index-CQoxyJVb.js} +1 -1
- package/web/assets/index-CVRqNx2a.js +24 -0
- package/web/assets/{index-C_5eJUYf.js → index-CnwTTmut.js} +1 -1
- package/web/assets/{index-DpVjIrhP.js → index-DJBpjVrN.js} +1 -1
- package/web/assets/{index-DvzWB-jx.js → index-DOHlV9Jh.js} +1 -1
- package/web/assets/{index-ngCP4sKA.js → index-DdQgI0Nw.js} +1 -1
- package/web/assets/{index-B4ZW-T6J.js → index-Dvd-FQwQ.js} +1 -1
- package/web/assets/{index-B5klvT1H.js → index-DyIDPBMW.js} +1 -1
- package/web/assets/index-Skcx40Vc.css +1 -0
- package/web/assets/{index-Dn7WvtF7.js → index-SpgzlIv_.js} +1 -1
- package/web/assets/{index-Dp3eq1zd.js → index-VJd0IGlY.js} +1 -1
- package/web/assets/{index-DWkq2AGW.js → index-boVb98GT.js} +1 -1
- package/web/assets/{index-CqTIvvh4.js → index-mX8fH4z4.js} +1 -1
- package/web/assets/{index-0qO_3KE2.js → index-tCTyx278.js} +1 -1
- package/web/assets/{infoDiagram-FKFFQAWI-CJqQEdwz.js → infoDiagram-FKFFQAWI-CbNMrx7h.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-Cj6-Lh3W.js → ishikawaDiagram-5VMMS53U-VSjH4PnX.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-BIL8wlwa.js → journeyDiagram-EYS64GPL-BRwD3GeT.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-BZQdoskd.js → kanban-definition-UXKFOSKX-D6br_A0l.js} +1 -1
- package/web/assets/{layout-C-meAuZp.js → layout-Bixg1i-E.js} +1 -1
- package/web/assets/{linear-BXP8QFmo.js → linear-DWmw_Gwx.js} +1 -1
- package/web/assets/{management-url-service-CEi28VSK.js → management-url-service-CPy3MZs4.js} +1 -1
- package/web/assets/{mar-agent-reasoning-effort-B8Q9Jpu3.js → mar-agent-reasoning-effort-1UkFSyMT.js} +1 -1
- package/web/assets/{mcp-center-service-CrXWIZ89.js → mcp-center-service-DmwSkGgg.js} +1 -1
- package/web/assets/{mermaid.core-DEciRvw4.js → mermaid.core-LS_zc-Bt.js} +5 -5
- package/web/assets/{mindmap-definition-THT77NOG-4232A9CN.js → mindmap-definition-THT77NOG-CrR0KKWF.js} +1 -1
- package/web/assets/{mobile-dialog-return-service-DRW4xZe4.js → mobile-dialog-return-service-5WbCQ9BU.js} +1 -1
- package/web/assets/{oauth-callback--0hD7dZ7.js → oauth-callback-BQLNsVmp.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-z74k-wFd.js → pegDiagram-XKGWAZYB-CxNV4d55.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-BxYWkM_Z.js → pieDiagram-E7YTZNPT-bsXYPsk0.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-Cd6maoR6.js → quadrantDiagram-AXDQQJYC-VwOtLvwy.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-fsMvr3v8.js → railroadDiagram-O6MQD6OU-1aQGKT9S.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X--tU9WVRs.js → requirementDiagram-IS5BZ75X-D9J-rRym.js} +1 -1
- package/web/assets/runner-presentation-Dl-dyc4s.js +1 -0
- package/web/assets/{sankeyDiagram-P5KCCOFB-AUpbouE8.js → sankeyDiagram-P5KCCOFB-DfBuQS79.js} +1 -1
- package/web/assets/{scoped-http-service-BUd40otX.js → scoped-http-service-C6O8jAaD.js} +3 -3
- package/web/assets/{sequenceDiagram-WJ2MYXX4-CjH5OTU4.js → sequenceDiagram-WJ2MYXX4-hhdMaxJq.js} +1 -1
- package/web/assets/{session-share-client-service-CxqkMHWQ.js → session-share-client-service-Dko2LCk8.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-DYvFOlqy.js → sizeCapture-INFHLROL-CiUP98ob.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-MwLwNWOb.js → stateDiagram-XQSTLZYL-KiAeEylc.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-BBopNovN.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-tf4B06so.js → swimlanes-V6O3JKXN-CMPrwHZc.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-yX0pvbP7.js +8 -0
- package/web/assets/{time-presentation-BLCYPkwu.js → time-presentation-Cx8NlbuB.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-wJWW5Met.js → timeline-definition-24CTP7MA-Cs8K8PAJ.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-Y_95t6qh.js → vennDiagram-4TSXK5OY-DRf0wRQQ.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-BscSDOEa.js → wardleyDiagram-VM6X3IG4-COGWwQ5R.js} +1 -1
- package/web/assets/{workbench-live-service-C2cXipPI.js → workbench-live-service-DB0U8ENT.js} +1 -1
- package/web/assets/{workbench-presentation-Cc9MAhUo.js → workbench-presentation-DRVLXW9E.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-CZLvj4Rq.js → xychartDiagram-S5SC5T6Z-nXmwJHjx.js} +1 -1
- package/web/docs/404.html +2 -2
- package/web/docs/administration/account.html +3 -3
- package/web/docs/administration/audit.html +3 -3
- package/web/docs/administration/conversation-templates.html +3 -3
- package/web/docs/administration/email-notifications.html +3 -3
- package/web/docs/administration/license.html +3 -3
- package/web/docs/administration/nodes-workspaces.html +3 -3
- package/web/docs/administration/oauth.html +3 -3
- package/web/docs/administration/secrets.html +3 -3
- package/web/docs/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/administration/users-organizations.html +3 -3
- package/web/docs/assets/{app.Ccx3H5CJ.js → app.DLMPS2hL.js} +1 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.DFCTHYzr.js +1 -0
- package/web/docs/assets/chunks/@localSearchIndexroot.Yfx6AKyP.js +1 -0
- package/web/docs/assets/chunks/{VPLocalSearchBox.CWPLf9EK.js → VPLocalSearchBox.6QoI_Fld.js} +1 -1
- package/web/docs/assets/chunks/{theme.DybUwjKs.js → theme.lQd303tB.js} +2 -2
- package/web/docs/assets/{concepts_node-and-workspace.md.D4_8X2QZ.js → concepts_node-and-workspace.md.kMVoeyoQ.js} +1 -1
- package/web/docs/assets/{concepts_node-and-workspace.md.D4_8X2QZ.lean.js → concepts_node-and-workspace.md.kMVoeyoQ.lean.js} +1 -1
- package/web/docs/assets/{en-US_concepts_node-and-workspace.md.BLl1KHPj.js → en-US_concepts_node-and-workspace.md.DXOEqvst.js} +1 -1
- package/web/docs/assets/{en-US_concepts_node-and-workspace.md.BLl1KHPj.lean.js → en-US_concepts_node-and-workspace.md.DXOEqvst.lean.js} +1 -1
- package/web/docs/assets/{en-US_operations_marctl.md.BwfEVzJW.js → en-US_operations_marctl.md.DRIQIZLV.js} +12 -7
- package/web/docs/assets/en-US_operations_marctl.md.DRIQIZLV.lean.js +1 -0
- package/web/docs/assets/en-US_workbench_composer.md.6M6RbR5_.js +1 -0
- package/web/docs/assets/{en-US_workbench_composer.md.DPuZWvfo.lean.js → en-US_workbench_composer.md.6M6RbR5_.lean.js} +1 -1
- package/web/docs/assets/en-US_workbench_hosted-conversations.md.KH0Jahs3.js +1 -0
- package/web/docs/assets/{en-US_workbench_hosted-conversations.md.CmeX1K43.lean.js → en-US_workbench_hosted-conversations.md.KH0Jahs3.lean.js} +1 -1
- package/web/docs/assets/en-US_workbench_navigation.md.jdb_CfyD.js +1 -0
- package/web/docs/assets/{en-US_workbench_navigation.md.3W7bsQ4I.lean.js → en-US_workbench_navigation.md.jdb_CfyD.lean.js} +1 -1
- package/web/docs/assets/{en-US_workbench_sessions.md.M9QKVl4Z.js → en-US_workbench_sessions.md.4DxY5XA7.js} +1 -1
- package/web/docs/assets/{en-US_workbench_sessions.md.M9QKVl4Z.lean.js → en-US_workbench_sessions.md.4DxY5XA7.lean.js} +1 -1
- package/web/docs/assets/operations_marctl.md.CGib1rcj.js +52 -0
- package/web/docs/assets/operations_marctl.md.CGib1rcj.lean.js +1 -0
- package/web/docs/assets/workbench_composer.md.CifbL-g0.js +1 -0
- package/web/docs/assets/{workbench_composer.md.fdtRWBnu.lean.js → workbench_composer.md.CifbL-g0.lean.js} +1 -1
- package/web/docs/assets/workbench_hosted-conversations.md.DzPCHOEK.js +1 -0
- package/web/docs/assets/{workbench_hosted-conversations.md.CxN8gwK2.lean.js → workbench_hosted-conversations.md.DzPCHOEK.lean.js} +1 -1
- package/web/docs/assets/workbench_navigation.md.B68IQzEX.js +1 -0
- package/web/docs/assets/workbench_navigation.md.B68IQzEX.lean.js +1 -0
- package/web/docs/assets/workbench_sessions.md.CeNjkWLp.js +1 -0
- package/web/docs/assets/workbench_sessions.md.CeNjkWLp.lean.js +1 -0
- package/web/docs/concepts/architecture.html +3 -3
- package/web/docs/concepts/data-and-security.html +3 -3
- package/web/docs/concepts/files-git-terminal.html +3 -3
- package/web/docs/concepts/node-and-workspace.html +5 -5
- package/web/docs/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/concepts/runner-control.html +3 -3
- package/web/docs/concepts/secrets.html +3 -3
- package/web/docs/concepts/session-run-turn.html +3 -3
- package/web/docs/deployment/backup-restore.html +3 -3
- package/web/docs/deployment/network.html +3 -3
- package/web/docs/deployment/node-installation.html +3 -3
- package/web/docs/deployment/node-linux.html +3 -3
- package/web/docs/deployment/node-macos.html +3 -3
- package/web/docs/deployment/node-windows.html +3 -3
- package/web/docs/deployment/production.html +3 -3
- package/web/docs/deployment/security-checklist.html +3 -3
- package/web/docs/deployment/upgrade.html +3 -3
- package/web/docs/en-US/administration/account.html +3 -3
- package/web/docs/en-US/administration/audit.html +3 -3
- package/web/docs/en-US/administration/conversation-templates.html +3 -3
- package/web/docs/en-US/administration/email-notifications.html +3 -3
- package/web/docs/en-US/administration/license.html +3 -3
- package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
- package/web/docs/en-US/administration/oauth.html +3 -3
- package/web/docs/en-US/administration/secrets.html +3 -3
- package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/en-US/administration/users-organizations.html +3 -3
- package/web/docs/en-US/concepts/architecture.html +3 -3
- package/web/docs/en-US/concepts/data-and-security.html +3 -3
- package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
- package/web/docs/en-US/concepts/node-and-workspace.html +5 -5
- package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/en-US/concepts/runner-control.html +3 -3
- package/web/docs/en-US/concepts/secrets.html +3 -3
- package/web/docs/en-US/concepts/session-run-turn.html +3 -3
- package/web/docs/en-US/deployment/backup-restore.html +3 -3
- package/web/docs/en-US/deployment/network.html +3 -3
- package/web/docs/en-US/deployment/node-installation.html +3 -3
- package/web/docs/en-US/deployment/node-linux.html +3 -3
- package/web/docs/en-US/deployment/node-macos.html +3 -3
- package/web/docs/en-US/deployment/node-windows.html +3 -3
- package/web/docs/en-US/deployment/production.html +3 -3
- package/web/docs/en-US/deployment/security-checklist.html +3 -3
- package/web/docs/en-US/deployment/upgrade.html +3 -3
- package/web/docs/en-US/getting-started/connect-node.html +3 -3
- package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
- package/web/docs/en-US/getting-started/first-login.html +3 -3
- package/web/docs/en-US/getting-started/next-steps.html +3 -3
- package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
- package/web/docs/en-US/getting-started/overview.html +3 -3
- package/web/docs/en-US/getting-started/prerequisites.html +3 -3
- package/web/docs/en-US/getting-started/register-workspace.html +3 -3
- package/web/docs/en-US/getting-started/server-installation.html +3 -3
- package/web/docs/en-US/operations/marctl.html +15 -10
- package/web/docs/en-US/reference/configuration.html +3 -3
- package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/en-US/reference/limits.html +3 -3
- package/web/docs/en-US/reference/ports-paths-data.html +3 -3
- package/web/docs/en-US/reference/status-and-errors.html +3 -3
- package/web/docs/en-US/runners/claude-code.html +3 -3
- package/web/docs/en-US/runners/codex.html +3 -3
- package/web/docs/en-US/runners/mar-agent.html +3 -3
- package/web/docs/en-US/runners/opencode.html +3 -3
- package/web/docs/en-US/runners/overview.html +3 -3
- package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
- package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
- package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/en-US/troubleshooting/session-run.html +3 -3
- package/web/docs/en-US/troubleshooting/terminal.html +3 -3
- package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
- package/web/docs/en-US/workbench/browser.html +3 -3
- package/web/docs/en-US/workbench/composer.html +5 -5
- package/web/docs/en-US/workbench/context-and-plan.html +3 -3
- package/web/docs/en-US/workbench/conversation.html +3 -3
- package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/en-US/workbench/files.html +3 -3
- package/web/docs/en-US/workbench/git-changes.html +3 -3
- package/web/docs/en-US/workbench/git-history.html +3 -3
- package/web/docs/en-US/workbench/hosted-conversations.html +5 -5
- package/web/docs/en-US/workbench/mobile.html +3 -3
- package/web/docs/en-US/workbench/navigation.html +5 -5
- package/web/docs/en-US/workbench/remote-desktop.html +3 -3
- package/web/docs/en-US/workbench/sessions.html +5 -5
- package/web/docs/en-US/workbench/skills.html +3 -3
- package/web/docs/en-US/workbench/terminal.html +3 -3
- package/web/docs/getting-started/connect-node.html +3 -3
- package/web/docs/getting-started/first-agent-session.html +3 -3
- package/web/docs/getting-started/first-login.html +3 -3
- package/web/docs/getting-started/next-steps.html +3 -3
- package/web/docs/getting-started/npm-quick-start.html +3 -3
- package/web/docs/getting-started/overview.html +3 -3
- package/web/docs/getting-started/prerequisites.html +3 -3
- package/web/docs/getting-started/register-workspace.html +3 -3
- package/web/docs/getting-started/server-installation.html +3 -3
- package/web/docs/hashmap.json +1 -1
- package/web/docs/operations/marctl.html +15 -10
- package/web/docs/reference/configuration.html +3 -3
- package/web/docs/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/reference/limits.html +3 -3
- package/web/docs/reference/ports-paths-data.html +3 -3
- package/web/docs/reference/status-and-errors.html +3 -3
- package/web/docs/runners/claude-code.html +3 -3
- package/web/docs/runners/codex.html +3 -3
- package/web/docs/runners/mar-agent.html +3 -3
- package/web/docs/runners/opencode.html +3 -3
- package/web/docs/runners/overview.html +3 -3
- package/web/docs/runners/runner-troubleshooting.html +3 -3
- package/web/docs/troubleshooting/node-offline.html +3 -3
- package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/troubleshooting/session-run.html +3 -3
- package/web/docs/troubleshooting/terminal.html +3 -3
- package/web/docs/troubleshooting/workspace-files.html +3 -3
- package/web/docs/workbench/browser.html +3 -3
- package/web/docs/workbench/composer.html +5 -5
- package/web/docs/workbench/context-and-plan.html +3 -3
- package/web/docs/workbench/conversation.html +3 -3
- package/web/docs/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/workbench/files.html +3 -3
- package/web/docs/workbench/git-changes.html +3 -3
- package/web/docs/workbench/git-history.html +3 -3
- package/web/docs/workbench/hosted-conversations.html +5 -5
- package/web/docs/workbench/mobile.html +3 -3
- package/web/docs/workbench/navigation.html +5 -5
- package/web/docs/workbench/remote-desktop.html +3 -3
- package/web/docs/workbench/sessions.html +5 -5
- package/web/docs/workbench/skills.html +3 -3
- package/web/docs/workbench/terminal.html +3 -3
- package/web/index.html +9 -9
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/AuditManagementPage-CYoJq8Xa.js +0 -1
- package/web/assets/NodeManagementPage-2pXVBnT4.js +0 -1
- package/web/assets/NodeManagementPage-D4RMXsxU.js +0 -1
- package/web/assets/SecretManagementPage-CmacyjNp.js +0 -1
- package/web/assets/SettingsContent-DbQffb3M.js +0 -1
- package/web/assets/SettingsContent-tt-arviP.css +0 -1
- package/web/assets/SkillCenterPage-fGS7KJAs.js +0 -1
- package/web/assets/WorkbenchPage-CRijp6VW.css +0 -1
- package/web/assets/WorkbenchPage-DcKTz_2C.js +0 -21
- package/web/assets/WorkspaceManagementPage-8Ys5XP7n.js +0 -1
- package/web/assets/WorkspaceManagementPage-C_VJkfy7.js +0 -1
- package/web/assets/channel-nZqGfUVf.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-Bx88BLRs.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-Bx88BLRs.js +0 -1
- package/web/assets/index-Bnw27ovL.css +0 -1
- package/web/assets/index-DX5iLtIS.js +0 -24
- package/web/assets/runner-presentation-CQEHD1-x.js +0 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-pXCRAnFo.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-DnlQN3xG.js +0 -8
- package/web/docs/assets/chunks/@localSearchIndexen-US.CB1zBLop.js +0 -1
- package/web/docs/assets/chunks/@localSearchIndexroot.Dt1o2ZGd.js +0 -1
- package/web/docs/assets/en-US_operations_marctl.md.BwfEVzJW.lean.js +0 -1
- package/web/docs/assets/en-US_workbench_composer.md.DPuZWvfo.js +0 -1
- package/web/docs/assets/en-US_workbench_hosted-conversations.md.CmeX1K43.js +0 -1
- package/web/docs/assets/en-US_workbench_navigation.md.3W7bsQ4I.js +0 -1
- package/web/docs/assets/operations_marctl.md.DViLDEoR.js +0 -47
- package/web/docs/assets/operations_marctl.md.DViLDEoR.lean.js +0 -1
- package/web/docs/assets/workbench_composer.md.fdtRWBnu.js +0 -1
- package/web/docs/assets/workbench_hosted-conversations.md.CxN8gwK2.js +0 -1
- package/web/docs/assets/workbench_navigation.md.HvELxpD-.js +0 -1
- package/web/docs/assets/workbench_navigation.md.HvELxpD-.lean.js +0 -1
- package/web/docs/assets/workbench_sessions.md.CwztGf0o.js +0 -1
- package/web/docs/assets/workbench_sessions.md.CwztGf0o.lean.js +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const integers = (min, max) => z
|
|
3
|
+
.array(z.number().int().min(min).max(max))
|
|
4
|
+
.min(1)
|
|
5
|
+
.max(max - min + 1);
|
|
6
|
+
export const scheduledClockTimeSchema = z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/);
|
|
7
|
+
const time = scheduledClockTimeSchema;
|
|
8
|
+
export const scheduledTriggerSchema = z.discriminatedUnion('kind', [
|
|
9
|
+
z.strictObject({ kind: z.literal('once'), time, date: z.string().date() }),
|
|
10
|
+
z.strictObject({ kind: z.literal('daily'), time }),
|
|
11
|
+
z.strictObject({ kind: z.literal('weekly'), time, weekdays: integers(0, 6) }),
|
|
12
|
+
z.strictObject({ kind: z.literal('monthly'), time, monthDays: integers(1, 31) })
|
|
13
|
+
]);
|
|
14
|
+
export const scheduledTriggerLimit = 1024;
|
|
15
|
+
export const scheduledTriggersSchema = z
|
|
16
|
+
.array(scheduledTriggerSchema)
|
|
17
|
+
.min(1)
|
|
18
|
+
.max(scheduledTriggerLimit);
|
|
19
|
+
export const scheduledPreviewFields = {
|
|
20
|
+
taskId: z.string().min(1).max(512).optional(),
|
|
21
|
+
triggers: scheduledTriggersSchema.optional(),
|
|
22
|
+
suggestTime: scheduledClockTimeSchema.optional()
|
|
23
|
+
};
|
|
24
|
+
export const scheduledTaskIdSchema = z.string().min(1).max(512);
|
|
25
|
+
export const scheduledTaskRevisionSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
26
|
+
export const scheduledTaskTargetKindSchema = z.enum(['existing', 'newSession', 'unbound']);
|
|
27
|
+
export const scheduledTaskStateSchema = z.enum(['scheduled', 'paused', 'finished', 'unbound']);
|
|
28
|
+
/** Transport invalidation only; never carries a task or execution snapshot. */
|
|
29
|
+
export const scheduledTaskChangedSchema = z.strictObject({
|
|
30
|
+
workspaceId: scheduledTaskIdSchema,
|
|
31
|
+
topic: z.literal('schedule.changed')
|
|
32
|
+
});
|
|
33
|
+
export const scheduledOccurrenceChangedSchema = scheduledTaskChangedSchema.extend({
|
|
34
|
+
topic: z.literal('schedule.occurrence.changed')
|
|
35
|
+
});
|
|
36
|
+
export const scheduleInvalidationSchema = z.discriminatedUnion('topic', [
|
|
37
|
+
scheduledTaskChangedSchema,
|
|
38
|
+
scheduledOccurrenceChangedSchema
|
|
39
|
+
]);
|
|
40
|
+
export const scheduledTasksApiVersion = 2;
|
|
41
|
+
export const scheduledTasksCapabilitySchema = z.strictObject({
|
|
42
|
+
apiVersion: z.number().int().positive()
|
|
43
|
+
});
|
|
44
|
+
export const scheduledTaskFields = {
|
|
45
|
+
name: z.string().trim().min(1).max(160).describe('Short name for this task.'),
|
|
46
|
+
objective: z
|
|
47
|
+
.string()
|
|
48
|
+
.trim()
|
|
49
|
+
.min(1)
|
|
50
|
+
.max(20_000)
|
|
51
|
+
.describe('Instructions to execute at each trigger, not instructions to configure the schedule.'),
|
|
52
|
+
triggers: scheduledTriggersSchema.describe('One HH:mm per entry in the task time zone (Node time zone on creation). Once requires a concrete date. Weekdays are 0 (Sunday) to 6 (Saturday).')
|
|
53
|
+
};
|
|
54
|
+
export const scheduledTaskFieldsSchema = z.strictObject(scheduledTaskFields);
|
|
55
|
+
export const scheduledTaskPatchSchema = scheduledTaskFieldsSchema
|
|
56
|
+
.partial()
|
|
57
|
+
.refine((patch) => Object.keys(patch).length > 0);
|
|
58
|
+
export const scheduledNewSessionSchema = z.strictObject({
|
|
59
|
+
runner: z.enum(['mar-agent', 'codex', 'claude-code', 'opencode']),
|
|
60
|
+
model: z.discriminatedUnion('kind', [
|
|
61
|
+
z.strictObject({ kind: z.literal('default') }),
|
|
62
|
+
z.strictObject({ kind: z.literal('fixed'), modelId: z.string().trim().min(1).max(256) })
|
|
63
|
+
]),
|
|
64
|
+
effort: z.string().trim().min(1).max(32).optional()
|
|
65
|
+
});
|
|
66
|
+
export const scheduledTargetSchema = z.discriminatedUnion('kind', [
|
|
67
|
+
z.strictObject({ kind: z.literal('existing'), sessionId: scheduledTaskIdSchema }),
|
|
68
|
+
scheduledNewSessionSchema.extend({ kind: z.literal('newSession') })
|
|
69
|
+
]);
|
|
70
|
+
export const scheduledTaskWriteSchema = z.object({
|
|
71
|
+
...scheduledTaskFields,
|
|
72
|
+
enabled: z.boolean().optional(),
|
|
73
|
+
notifyOnTerminal: z.boolean().optional(),
|
|
74
|
+
graceMinutes: z.number().int().min(0).max(60).optional()
|
|
75
|
+
});
|
|
76
|
+
export const scheduledTaskOwnerPatchSchema = scheduledTaskWriteSchema
|
|
77
|
+
.extend({ target: scheduledTargetSchema })
|
|
78
|
+
.partial()
|
|
79
|
+
.strict();
|
|
80
|
+
const limit = z.number().int().min(1).max(30).optional();
|
|
81
|
+
const taskId = scheduledTaskIdSchema.describe('Task ID returned by create or list.');
|
|
82
|
+
export const scheduleToolInputs = {
|
|
83
|
+
list: z.strictObject({ cursor: z.string().min(1).max(4096).optional(), limit }),
|
|
84
|
+
get: z.strictObject({ taskId }),
|
|
85
|
+
create: scheduledTaskFieldsSchema,
|
|
86
|
+
update: z.strictObject({
|
|
87
|
+
taskId,
|
|
88
|
+
expectedRevision: scheduledTaskRevisionSchema,
|
|
89
|
+
patch: scheduledTaskPatchSchema
|
|
90
|
+
}),
|
|
91
|
+
runs: z.strictObject({ taskId, before: scheduledTaskRevisionSchema.optional(), limit })
|
|
92
|
+
};
|
|
@@ -1,4 +1,161 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const scheduledTaskNotificationPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
3
|
+
targetType: z.ZodLiteral<"SCHEDULED_TASK">;
|
|
4
|
+
workspaceId: z.ZodString;
|
|
5
|
+
taskId: z.ZodString;
|
|
6
|
+
taskName: z.ZodString;
|
|
7
|
+
} & {
|
|
8
|
+
userId: z.ZodNumber;
|
|
9
|
+
notificationId: z.ZodString;
|
|
10
|
+
runId: z.ZodString;
|
|
11
|
+
occurredAt: z.ZodNumber;
|
|
12
|
+
} & {
|
|
13
|
+
kind: z.ZodEnum<["SCHEDULE_SKIPPED", "SCHEDULE_FAILED"]>;
|
|
14
|
+
reference: z.ZodObject<{
|
|
15
|
+
kind: z.ZodLiteral<"occurrence">;
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
id: string;
|
|
19
|
+
kind: "occurrence";
|
|
20
|
+
}, {
|
|
21
|
+
id: string;
|
|
22
|
+
kind: "occurrence";
|
|
23
|
+
}>;
|
|
24
|
+
code: z.ZodString;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
code: string;
|
|
27
|
+
workspaceId: string;
|
|
28
|
+
userId: number;
|
|
29
|
+
kind: "SCHEDULE_SKIPPED" | "SCHEDULE_FAILED";
|
|
30
|
+
reference: {
|
|
31
|
+
id: string;
|
|
32
|
+
kind: "occurrence";
|
|
33
|
+
};
|
|
34
|
+
targetType: "SCHEDULED_TASK";
|
|
35
|
+
occurredAt: number;
|
|
36
|
+
runId: string;
|
|
37
|
+
taskId: string;
|
|
38
|
+
notificationId: string;
|
|
39
|
+
taskName: string;
|
|
40
|
+
}, {
|
|
41
|
+
code: string;
|
|
42
|
+
workspaceId: string;
|
|
43
|
+
userId: number;
|
|
44
|
+
kind: "SCHEDULE_SKIPPED" | "SCHEDULE_FAILED";
|
|
45
|
+
reference: {
|
|
46
|
+
id: string;
|
|
47
|
+
kind: "occurrence";
|
|
48
|
+
};
|
|
49
|
+
targetType: "SCHEDULED_TASK";
|
|
50
|
+
occurredAt: number;
|
|
51
|
+
runId: string;
|
|
52
|
+
taskId: string;
|
|
53
|
+
notificationId: string;
|
|
54
|
+
taskName: string;
|
|
55
|
+
}>, z.ZodObject<{
|
|
56
|
+
targetType: z.ZodLiteral<"SCHEDULED_TASK">;
|
|
57
|
+
workspaceId: z.ZodString;
|
|
58
|
+
taskId: z.ZodString;
|
|
59
|
+
taskName: z.ZodString;
|
|
60
|
+
} & {
|
|
61
|
+
userId: z.ZodNumber;
|
|
62
|
+
notificationId: z.ZodString;
|
|
63
|
+
runId: z.ZodString;
|
|
64
|
+
occurredAt: z.ZodNumber;
|
|
65
|
+
} & {
|
|
66
|
+
kind: z.ZodLiteral<"SCHEDULE_PROPOSAL">;
|
|
67
|
+
reference: z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"proposal">;
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
}, "strict", z.ZodTypeAny, {
|
|
71
|
+
id: string;
|
|
72
|
+
kind: "proposal";
|
|
73
|
+
}, {
|
|
74
|
+
id: string;
|
|
75
|
+
kind: "proposal";
|
|
76
|
+
}>;
|
|
77
|
+
}, "strict", z.ZodTypeAny, {
|
|
78
|
+
workspaceId: string;
|
|
79
|
+
userId: number;
|
|
80
|
+
kind: "SCHEDULE_PROPOSAL";
|
|
81
|
+
reference: {
|
|
82
|
+
id: string;
|
|
83
|
+
kind: "proposal";
|
|
84
|
+
};
|
|
85
|
+
targetType: "SCHEDULED_TASK";
|
|
86
|
+
occurredAt: number;
|
|
87
|
+
runId: string;
|
|
88
|
+
taskId: string;
|
|
89
|
+
notificationId: string;
|
|
90
|
+
taskName: string;
|
|
91
|
+
}, {
|
|
92
|
+
workspaceId: string;
|
|
93
|
+
userId: number;
|
|
94
|
+
kind: "SCHEDULE_PROPOSAL";
|
|
95
|
+
reference: {
|
|
96
|
+
id: string;
|
|
97
|
+
kind: "proposal";
|
|
98
|
+
};
|
|
99
|
+
targetType: "SCHEDULED_TASK";
|
|
100
|
+
occurredAt: number;
|
|
101
|
+
runId: string;
|
|
102
|
+
taskId: string;
|
|
103
|
+
notificationId: string;
|
|
104
|
+
taskName: string;
|
|
105
|
+
}>, z.ZodObject<{
|
|
106
|
+
targetType: z.ZodLiteral<"SCHEDULED_TASK">;
|
|
107
|
+
workspaceId: z.ZodString;
|
|
108
|
+
taskId: z.ZodString;
|
|
109
|
+
taskName: z.ZodString;
|
|
110
|
+
} & {
|
|
111
|
+
userId: z.ZodNumber;
|
|
112
|
+
notificationId: z.ZodString;
|
|
113
|
+
runId: z.ZodString;
|
|
114
|
+
occurredAt: z.ZodNumber;
|
|
115
|
+
} & {
|
|
116
|
+
kind: z.ZodLiteral<"SCHEDULE_TERMINAL">;
|
|
117
|
+
reference: z.ZodObject<{
|
|
118
|
+
kind: z.ZodLiteral<"occurrence">;
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
}, "strict", z.ZodTypeAny, {
|
|
121
|
+
id: string;
|
|
122
|
+
kind: "occurrence";
|
|
123
|
+
}, {
|
|
124
|
+
id: string;
|
|
125
|
+
kind: "occurrence";
|
|
126
|
+
}>;
|
|
127
|
+
outcome: z.ZodEnum<["SUCCEEDED", "FAILED", "CANCELLED", "INTERRUPTED"]>;
|
|
128
|
+
}, "strict", z.ZodTypeAny, {
|
|
129
|
+
workspaceId: string;
|
|
130
|
+
userId: number;
|
|
131
|
+
kind: "SCHEDULE_TERMINAL";
|
|
132
|
+
reference: {
|
|
133
|
+
id: string;
|
|
134
|
+
kind: "occurrence";
|
|
135
|
+
};
|
|
136
|
+
targetType: "SCHEDULED_TASK";
|
|
137
|
+
occurredAt: number;
|
|
138
|
+
runId: string;
|
|
139
|
+
taskId: string;
|
|
140
|
+
notificationId: string;
|
|
141
|
+
taskName: string;
|
|
142
|
+
outcome: "SUCCEEDED" | "FAILED" | "CANCELLED" | "INTERRUPTED";
|
|
143
|
+
}, {
|
|
144
|
+
workspaceId: string;
|
|
145
|
+
userId: number;
|
|
146
|
+
kind: "SCHEDULE_TERMINAL";
|
|
147
|
+
reference: {
|
|
148
|
+
id: string;
|
|
149
|
+
kind: "occurrence";
|
|
150
|
+
};
|
|
151
|
+
targetType: "SCHEDULED_TASK";
|
|
152
|
+
occurredAt: number;
|
|
153
|
+
runId: string;
|
|
154
|
+
taskId: string;
|
|
155
|
+
notificationId: string;
|
|
156
|
+
taskName: string;
|
|
157
|
+
outcome: "SUCCEEDED" | "FAILED" | "CANCELLED" | "INTERRUPTED";
|
|
158
|
+
}>]>;
|
|
2
159
|
export declare const notificationTargetSchema: z.ZodDiscriminatedUnion<"targetType", [z.ZodObject<{
|
|
3
160
|
targetType: z.ZodLiteral<"WORKSPACE_SESSION">;
|
|
4
161
|
nodeId: z.ZodString;
|
|
@@ -35,6 +192,58 @@ export declare const notificationTargetSchema: z.ZodDiscriminatedUnion<"targetTy
|
|
|
35
192
|
targetType: "HOSTED_CONVERSATION";
|
|
36
193
|
conversationId: string;
|
|
37
194
|
conversationName: string;
|
|
195
|
+
}>, z.ZodObject<{
|
|
196
|
+
targetType: z.ZodLiteral<"SCHEDULED_TASK">;
|
|
197
|
+
workspaceId: z.ZodString;
|
|
198
|
+
taskId: z.ZodString;
|
|
199
|
+
taskName: z.ZodString;
|
|
200
|
+
} & {
|
|
201
|
+
nodeId: z.ZodString;
|
|
202
|
+
reference: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
203
|
+
kind: z.ZodLiteral<"occurrence">;
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
}, "strict", z.ZodTypeAny, {
|
|
206
|
+
id: string;
|
|
207
|
+
kind: "occurrence";
|
|
208
|
+
}, {
|
|
209
|
+
id: string;
|
|
210
|
+
kind: "occurrence";
|
|
211
|
+
}>, z.ZodObject<{
|
|
212
|
+
kind: z.ZodLiteral<"proposal">;
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
}, "strict", z.ZodTypeAny, {
|
|
215
|
+
id: string;
|
|
216
|
+
kind: "proposal";
|
|
217
|
+
}, {
|
|
218
|
+
id: string;
|
|
219
|
+
kind: "proposal";
|
|
220
|
+
}>]>;
|
|
221
|
+
}, "strict", z.ZodTypeAny, {
|
|
222
|
+
workspaceId: string;
|
|
223
|
+
nodeId: string;
|
|
224
|
+
reference: {
|
|
225
|
+
id: string;
|
|
226
|
+
kind: "occurrence";
|
|
227
|
+
} | {
|
|
228
|
+
id: string;
|
|
229
|
+
kind: "proposal";
|
|
230
|
+
};
|
|
231
|
+
targetType: "SCHEDULED_TASK";
|
|
232
|
+
taskId: string;
|
|
233
|
+
taskName: string;
|
|
234
|
+
}, {
|
|
235
|
+
workspaceId: string;
|
|
236
|
+
nodeId: string;
|
|
237
|
+
reference: {
|
|
238
|
+
id: string;
|
|
239
|
+
kind: "occurrence";
|
|
240
|
+
} | {
|
|
241
|
+
id: string;
|
|
242
|
+
kind: "proposal";
|
|
243
|
+
};
|
|
244
|
+
targetType: "SCHEDULED_TASK";
|
|
245
|
+
taskId: string;
|
|
246
|
+
taskName: string;
|
|
38
247
|
}>]>;
|
|
39
248
|
export declare const serverNotificationSchema: z.ZodObject<{
|
|
40
249
|
id: z.ZodString;
|
|
@@ -81,6 +290,58 @@ export declare const serverNotificationSchema: z.ZodObject<{
|
|
|
81
290
|
targetType: "HOSTED_CONVERSATION";
|
|
82
291
|
conversationId: string;
|
|
83
292
|
conversationName: string;
|
|
293
|
+
}>, z.ZodObject<{
|
|
294
|
+
targetType: z.ZodLiteral<"SCHEDULED_TASK">;
|
|
295
|
+
workspaceId: z.ZodString;
|
|
296
|
+
taskId: z.ZodString;
|
|
297
|
+
taskName: z.ZodString;
|
|
298
|
+
} & {
|
|
299
|
+
nodeId: z.ZodString;
|
|
300
|
+
reference: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
301
|
+
kind: z.ZodLiteral<"occurrence">;
|
|
302
|
+
id: z.ZodString;
|
|
303
|
+
}, "strict", z.ZodTypeAny, {
|
|
304
|
+
id: string;
|
|
305
|
+
kind: "occurrence";
|
|
306
|
+
}, {
|
|
307
|
+
id: string;
|
|
308
|
+
kind: "occurrence";
|
|
309
|
+
}>, z.ZodObject<{
|
|
310
|
+
kind: z.ZodLiteral<"proposal">;
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
}, "strict", z.ZodTypeAny, {
|
|
313
|
+
id: string;
|
|
314
|
+
kind: "proposal";
|
|
315
|
+
}, {
|
|
316
|
+
id: string;
|
|
317
|
+
kind: "proposal";
|
|
318
|
+
}>]>;
|
|
319
|
+
}, "strict", z.ZodTypeAny, {
|
|
320
|
+
workspaceId: string;
|
|
321
|
+
nodeId: string;
|
|
322
|
+
reference: {
|
|
323
|
+
id: string;
|
|
324
|
+
kind: "occurrence";
|
|
325
|
+
} | {
|
|
326
|
+
id: string;
|
|
327
|
+
kind: "proposal";
|
|
328
|
+
};
|
|
329
|
+
targetType: "SCHEDULED_TASK";
|
|
330
|
+
taskId: string;
|
|
331
|
+
taskName: string;
|
|
332
|
+
}, {
|
|
333
|
+
workspaceId: string;
|
|
334
|
+
nodeId: string;
|
|
335
|
+
reference: {
|
|
336
|
+
id: string;
|
|
337
|
+
kind: "occurrence";
|
|
338
|
+
} | {
|
|
339
|
+
id: string;
|
|
340
|
+
kind: "proposal";
|
|
341
|
+
};
|
|
342
|
+
targetType: "SCHEDULED_TASK";
|
|
343
|
+
taskId: string;
|
|
344
|
+
taskName: string;
|
|
84
345
|
}>]>;
|
|
85
346
|
}, "strict", z.ZodTypeAny, {
|
|
86
347
|
message: string;
|
|
@@ -101,6 +362,19 @@ export declare const serverNotificationSchema: z.ZodObject<{
|
|
|
101
362
|
targetType: "HOSTED_CONVERSATION";
|
|
102
363
|
conversationId: string;
|
|
103
364
|
conversationName: string;
|
|
365
|
+
} | {
|
|
366
|
+
workspaceId: string;
|
|
367
|
+
nodeId: string;
|
|
368
|
+
reference: {
|
|
369
|
+
id: string;
|
|
370
|
+
kind: "occurrence";
|
|
371
|
+
} | {
|
|
372
|
+
id: string;
|
|
373
|
+
kind: "proposal";
|
|
374
|
+
};
|
|
375
|
+
targetType: "SCHEDULED_TASK";
|
|
376
|
+
taskId: string;
|
|
377
|
+
taskName: string;
|
|
104
378
|
};
|
|
105
379
|
createdAt: number;
|
|
106
380
|
updatedAt: number;
|
|
@@ -123,6 +397,19 @@ export declare const serverNotificationSchema: z.ZodObject<{
|
|
|
123
397
|
targetType: "HOSTED_CONVERSATION";
|
|
124
398
|
conversationId: string;
|
|
125
399
|
conversationName: string;
|
|
400
|
+
} | {
|
|
401
|
+
workspaceId: string;
|
|
402
|
+
nodeId: string;
|
|
403
|
+
reference: {
|
|
404
|
+
id: string;
|
|
405
|
+
kind: "occurrence";
|
|
406
|
+
} | {
|
|
407
|
+
id: string;
|
|
408
|
+
kind: "proposal";
|
|
409
|
+
};
|
|
410
|
+
targetType: "SCHEDULED_TASK";
|
|
411
|
+
taskId: string;
|
|
412
|
+
taskName: string;
|
|
126
413
|
};
|
|
127
414
|
createdAt: number;
|
|
128
415
|
updatedAt: number;
|
|
@@ -174,6 +461,58 @@ export declare const notificationCreatedSchema: z.ZodObject<{
|
|
|
174
461
|
targetType: "HOSTED_CONVERSATION";
|
|
175
462
|
conversationId: string;
|
|
176
463
|
conversationName: string;
|
|
464
|
+
}>, z.ZodObject<{
|
|
465
|
+
targetType: z.ZodLiteral<"SCHEDULED_TASK">;
|
|
466
|
+
workspaceId: z.ZodString;
|
|
467
|
+
taskId: z.ZodString;
|
|
468
|
+
taskName: z.ZodString;
|
|
469
|
+
} & {
|
|
470
|
+
nodeId: z.ZodString;
|
|
471
|
+
reference: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
472
|
+
kind: z.ZodLiteral<"occurrence">;
|
|
473
|
+
id: z.ZodString;
|
|
474
|
+
}, "strict", z.ZodTypeAny, {
|
|
475
|
+
id: string;
|
|
476
|
+
kind: "occurrence";
|
|
477
|
+
}, {
|
|
478
|
+
id: string;
|
|
479
|
+
kind: "occurrence";
|
|
480
|
+
}>, z.ZodObject<{
|
|
481
|
+
kind: z.ZodLiteral<"proposal">;
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
}, "strict", z.ZodTypeAny, {
|
|
484
|
+
id: string;
|
|
485
|
+
kind: "proposal";
|
|
486
|
+
}, {
|
|
487
|
+
id: string;
|
|
488
|
+
kind: "proposal";
|
|
489
|
+
}>]>;
|
|
490
|
+
}, "strict", z.ZodTypeAny, {
|
|
491
|
+
workspaceId: string;
|
|
492
|
+
nodeId: string;
|
|
493
|
+
reference: {
|
|
494
|
+
id: string;
|
|
495
|
+
kind: "occurrence";
|
|
496
|
+
} | {
|
|
497
|
+
id: string;
|
|
498
|
+
kind: "proposal";
|
|
499
|
+
};
|
|
500
|
+
targetType: "SCHEDULED_TASK";
|
|
501
|
+
taskId: string;
|
|
502
|
+
taskName: string;
|
|
503
|
+
}, {
|
|
504
|
+
workspaceId: string;
|
|
505
|
+
nodeId: string;
|
|
506
|
+
reference: {
|
|
507
|
+
id: string;
|
|
508
|
+
kind: "occurrence";
|
|
509
|
+
} | {
|
|
510
|
+
id: string;
|
|
511
|
+
kind: "proposal";
|
|
512
|
+
};
|
|
513
|
+
targetType: "SCHEDULED_TASK";
|
|
514
|
+
taskId: string;
|
|
515
|
+
taskName: string;
|
|
177
516
|
}>]>;
|
|
178
517
|
}, "strict", z.ZodTypeAny, {
|
|
179
518
|
message: string;
|
|
@@ -194,6 +533,19 @@ export declare const notificationCreatedSchema: z.ZodObject<{
|
|
|
194
533
|
targetType: "HOSTED_CONVERSATION";
|
|
195
534
|
conversationId: string;
|
|
196
535
|
conversationName: string;
|
|
536
|
+
} | {
|
|
537
|
+
workspaceId: string;
|
|
538
|
+
nodeId: string;
|
|
539
|
+
reference: {
|
|
540
|
+
id: string;
|
|
541
|
+
kind: "occurrence";
|
|
542
|
+
} | {
|
|
543
|
+
id: string;
|
|
544
|
+
kind: "proposal";
|
|
545
|
+
};
|
|
546
|
+
targetType: "SCHEDULED_TASK";
|
|
547
|
+
taskId: string;
|
|
548
|
+
taskName: string;
|
|
197
549
|
};
|
|
198
550
|
createdAt: number;
|
|
199
551
|
updatedAt: number;
|
|
@@ -216,6 +568,19 @@ export declare const notificationCreatedSchema: z.ZodObject<{
|
|
|
216
568
|
targetType: "HOSTED_CONVERSATION";
|
|
217
569
|
conversationId: string;
|
|
218
570
|
conversationName: string;
|
|
571
|
+
} | {
|
|
572
|
+
workspaceId: string;
|
|
573
|
+
nodeId: string;
|
|
574
|
+
reference: {
|
|
575
|
+
id: string;
|
|
576
|
+
kind: "occurrence";
|
|
577
|
+
} | {
|
|
578
|
+
id: string;
|
|
579
|
+
kind: "proposal";
|
|
580
|
+
};
|
|
581
|
+
targetType: "SCHEDULED_TASK";
|
|
582
|
+
taskId: string;
|
|
583
|
+
taskName: string;
|
|
219
584
|
};
|
|
220
585
|
createdAt: number;
|
|
221
586
|
updatedAt: number;
|
|
@@ -241,6 +606,19 @@ export declare const notificationCreatedSchema: z.ZodObject<{
|
|
|
241
606
|
targetType: "HOSTED_CONVERSATION";
|
|
242
607
|
conversationId: string;
|
|
243
608
|
conversationName: string;
|
|
609
|
+
} | {
|
|
610
|
+
workspaceId: string;
|
|
611
|
+
nodeId: string;
|
|
612
|
+
reference: {
|
|
613
|
+
id: string;
|
|
614
|
+
kind: "occurrence";
|
|
615
|
+
} | {
|
|
616
|
+
id: string;
|
|
617
|
+
kind: "proposal";
|
|
618
|
+
};
|
|
619
|
+
targetType: "SCHEDULED_TASK";
|
|
620
|
+
taskId: string;
|
|
621
|
+
taskName: string;
|
|
244
622
|
};
|
|
245
623
|
createdAt: number;
|
|
246
624
|
updatedAt: number;
|
|
@@ -266,6 +644,19 @@ export declare const notificationCreatedSchema: z.ZodObject<{
|
|
|
266
644
|
targetType: "HOSTED_CONVERSATION";
|
|
267
645
|
conversationId: string;
|
|
268
646
|
conversationName: string;
|
|
647
|
+
} | {
|
|
648
|
+
workspaceId: string;
|
|
649
|
+
nodeId: string;
|
|
650
|
+
reference: {
|
|
651
|
+
id: string;
|
|
652
|
+
kind: "occurrence";
|
|
653
|
+
} | {
|
|
654
|
+
id: string;
|
|
655
|
+
kind: "proposal";
|
|
656
|
+
};
|
|
657
|
+
targetType: "SCHEDULED_TASK";
|
|
658
|
+
taskId: string;
|
|
659
|
+
taskName: string;
|
|
269
660
|
};
|
|
270
661
|
createdAt: number;
|
|
271
662
|
updatedAt: number;
|
|
@@ -2,6 +2,43 @@ import { z } from 'zod';
|
|
|
2
2
|
import { sessionGroupSchema } from './session-group.js';
|
|
3
3
|
const identity = z.string().min(1).max(256);
|
|
4
4
|
const timestamp = z.number().int().nonnegative().safe();
|
|
5
|
+
const scheduleIdentity = z.string().min(1).max(128);
|
|
6
|
+
const occurrenceReference = z
|
|
7
|
+
.object({ kind: z.literal('occurrence'), id: scheduleIdentity })
|
|
8
|
+
.strict();
|
|
9
|
+
const proposalReference = z.object({ kind: z.literal('proposal'), id: scheduleIdentity }).strict();
|
|
10
|
+
const scheduleTarget = z.object({
|
|
11
|
+
targetType: z.literal('SCHEDULED_TASK'),
|
|
12
|
+
workspaceId: scheduleIdentity,
|
|
13
|
+
taskId: scheduleIdentity,
|
|
14
|
+
taskName: z.string().min(1).max(160)
|
|
15
|
+
});
|
|
16
|
+
const scheduledNotificationBase = scheduleTarget.extend({
|
|
17
|
+
userId: z.number().int().positive().safe(),
|
|
18
|
+
notificationId: z.string().min(1).max(512),
|
|
19
|
+
runId: scheduleIdentity,
|
|
20
|
+
occurredAt: timestamp
|
|
21
|
+
});
|
|
22
|
+
// Node schedule notifications without a canonical Session intentionally have no Session route.
|
|
23
|
+
export const scheduledTaskNotificationPayloadSchema = z.union([
|
|
24
|
+
scheduledNotificationBase
|
|
25
|
+
.extend({
|
|
26
|
+
kind: z.enum(['SCHEDULE_SKIPPED', 'SCHEDULE_FAILED']),
|
|
27
|
+
reference: occurrenceReference,
|
|
28
|
+
code: z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/u)
|
|
29
|
+
})
|
|
30
|
+
.strict(),
|
|
31
|
+
scheduledNotificationBase
|
|
32
|
+
.extend({ kind: z.literal('SCHEDULE_PROPOSAL'), reference: proposalReference })
|
|
33
|
+
.strict(),
|
|
34
|
+
scheduledNotificationBase
|
|
35
|
+
.extend({
|
|
36
|
+
kind: z.literal('SCHEDULE_TERMINAL'),
|
|
37
|
+
reference: occurrenceReference,
|
|
38
|
+
outcome: z.enum(['SUCCEEDED', 'FAILED', 'CANCELLED', 'INTERRUPTED'])
|
|
39
|
+
})
|
|
40
|
+
.strict()
|
|
41
|
+
]);
|
|
5
42
|
export const notificationTargetSchema = z.discriminatedUnion('targetType', [
|
|
6
43
|
z
|
|
7
44
|
.object({
|
|
@@ -19,6 +56,12 @@ export const notificationTargetSchema = z.discriminatedUnion('targetType', [
|
|
|
19
56
|
nodeId: identity,
|
|
20
57
|
conversationId: identity,
|
|
21
58
|
conversationName: z.string()
|
|
59
|
+
})
|
|
60
|
+
.strict(),
|
|
61
|
+
scheduleTarget
|
|
62
|
+
.extend({
|
|
63
|
+
nodeId: identity,
|
|
64
|
+
reference: z.discriminatedUnion('kind', [occurrenceReference, proposalReference])
|
|
22
65
|
})
|
|
23
66
|
.strict()
|
|
24
67
|
]);
|
|
@@ -2,6 +2,12 @@ import { safePublicError, sendError, errorResponseOptions } from './http-errors.
|
|
|
2
2
|
export function domainErrorStatus(code) {
|
|
3
3
|
if (code === 'NODE_RESPONSE_INVALID')
|
|
4
4
|
return 502;
|
|
5
|
+
if (code === 'SCHEDULE_NOT_FOUND')
|
|
6
|
+
return 404;
|
|
7
|
+
if (code === 'SCHEDULE_OWNER_REQUIRED')
|
|
8
|
+
return 403;
|
|
9
|
+
if (code === 'SCHEDULE_REVISION_CONFLICT')
|
|
10
|
+
return 409;
|
|
5
11
|
if (code === 'SESSION_SHARE_NOT_FOUND')
|
|
6
12
|
return 404;
|
|
7
13
|
if (code === 'SESSION_SHARE_EXPIRED')
|
|
@@ -13,6 +13,8 @@ export declare const workbenchNotificationMessages: {
|
|
|
13
13
|
readonly detail: "请打开";
|
|
14
14
|
};
|
|
15
15
|
readonly schedule: {
|
|
16
|
+
readonly completed: "定时任务已完成";
|
|
17
|
+
readonly taskDetail: "请打开定时任务查看";
|
|
16
18
|
readonly skipped: {
|
|
17
19
|
readonly title: "定时任务已跳过";
|
|
18
20
|
readonly detail: "请打开会话查看记录";
|
|
@@ -51,6 +53,8 @@ export declare const workbenchNotificationMessages: {
|
|
|
51
53
|
readonly detail: "open it.";
|
|
52
54
|
};
|
|
53
55
|
readonly schedule: {
|
|
56
|
+
readonly completed: "Scheduled task completed";
|
|
57
|
+
readonly taskDetail: "open the scheduled task for details.";
|
|
54
58
|
readonly skipped: {
|
|
55
59
|
readonly title: "Scheduled task skipped";
|
|
56
60
|
readonly detail: "open the session for details.";
|
|
@@ -4,6 +4,8 @@ export const workbenchNotificationMessages = {
|
|
|
4
4
|
plan: { title: '计划可实施', detail: '请打开' },
|
|
5
5
|
userInput: { title: '需要你的回答', detail: '请打开' },
|
|
6
6
|
schedule: {
|
|
7
|
+
completed: '定时任务已完成',
|
|
8
|
+
taskDetail: '请打开定时任务查看',
|
|
7
9
|
skipped: { title: '定时任务已跳过', detail: '请打开会话查看记录' },
|
|
8
10
|
failed: { title: '定时任务运行失败', detail: '请打开会话查看记录' },
|
|
9
11
|
proposal: { title: '定时任务有待确认修改', detail: '请打开会话查看' }
|
|
@@ -24,6 +26,8 @@ export const workbenchNotificationMessages = {
|
|
|
24
26
|
plan: { title: 'Plan ready to implement', detail: 'open it.' },
|
|
25
27
|
userInput: { title: 'Your answer is required', detail: 'open it.' },
|
|
26
28
|
schedule: {
|
|
29
|
+
completed: 'Scheduled task completed',
|
|
30
|
+
taskDetail: 'open the scheduled task for details.',
|
|
27
31
|
skipped: { title: 'Scheduled task skipped', detail: 'open the session for details.' },
|
|
28
32
|
failed: { title: 'Scheduled task failed', detail: 'open the session for details.' },
|
|
29
33
|
proposal: { title: 'Scheduled task edit proposed', detail: 'open the session to review it.' }
|