@trycompai/mcp-server 0.2.0 → 0.2.1
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/README.md +2 -2
- package/bin/mcp-server.js +4473 -1881
- package/bin/mcp-server.js.map +71 -11
- package/esm/funcs/ismsISMSControllerAddControlsV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerAddControlsV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerAddControlsV1.js +90 -0
- package/esm/funcs/ismsISMSControllerAddControlsV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerApproveV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerApproveV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerApproveV1.js +89 -0
- package/esm/funcs/ismsISMSControllerApproveV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerDeclineV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerDeclineV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerDeclineV1.js +89 -0
- package/esm/funcs/ismsISMSControllerDeclineV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerDriftV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerDriftV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerDriftV1.js +89 -0
- package/esm/funcs/ismsISMSControllerDriftV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerEnsureSetupV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerEnsureSetupV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerEnsureSetupV1.js +84 -0
- package/esm/funcs/ismsISMSControllerEnsureSetupV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerExportDocumentV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerExportDocumentV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerExportDocumentV1.js +90 -0
- package/esm/funcs/ismsISMSControllerExportDocumentV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerGenerateV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerGenerateV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerGenerateV1.js +89 -0
- package/esm/funcs/ismsISMSControllerGenerateV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerGetDocumentV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerGetDocumentV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerGetDocumentV1.js +89 -0
- package/esm/funcs/ismsISMSControllerGetDocumentV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerRemoveControlV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerRemoveControlV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerRemoveControlV1.js +93 -0
- package/esm/funcs/ismsISMSControllerRemoveControlV1.js.map +1 -0
- package/esm/funcs/ismsISMSControllerSubmitForApprovalV1.d.ts +18 -0
- package/esm/funcs/ismsISMSControllerSubmitForApprovalV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSControllerSubmitForApprovalV1.js +90 -0
- package/esm/funcs/ismsISMSControllerSubmitForApprovalV1.js.map +1 -0
- package/esm/funcs/ismsISMSProfileControllerGenerateAllV1.d.ts +18 -0
- package/esm/funcs/ismsISMSProfileControllerGenerateAllV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSProfileControllerGenerateAllV1.js +84 -0
- package/esm/funcs/ismsISMSProfileControllerGenerateAllV1.js.map +1 -0
- package/esm/funcs/ismsISMSProfileControllerGetProfileV1.d.ts +18 -0
- package/esm/funcs/ismsISMSProfileControllerGetProfileV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSProfileControllerGetProfileV1.js +87 -0
- package/esm/funcs/ismsISMSProfileControllerGetProfileV1.js.map +1 -0
- package/esm/funcs/ismsISMSProfileControllerSaveProfileV1.d.ts +18 -0
- package/esm/funcs/ismsISMSProfileControllerSaveProfileV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSProfileControllerSaveProfileV1.js +84 -0
- package/esm/funcs/ismsISMSProfileControllerSaveProfileV1.js.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerCreateRowV1.d.ts +18 -0
- package/esm/funcs/ismsISMSRegistersControllerCreateRowV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerCreateRowV1.js +94 -0
- package/esm/funcs/ismsISMSRegistersControllerCreateRowV1.js.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerDeleteRowV1.d.ts +18 -0
- package/esm/funcs/ismsISMSRegistersControllerDeleteRowV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerDeleteRowV1.js +93 -0
- package/esm/funcs/ismsISMSRegistersControllerDeleteRowV1.js.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerSaveNarrativeV1.d.ts +18 -0
- package/esm/funcs/ismsISMSRegistersControllerSaveNarrativeV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerSaveNarrativeV1.js +90 -0
- package/esm/funcs/ismsISMSRegistersControllerSaveNarrativeV1.js.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerUpdateRowV1.d.ts +18 -0
- package/esm/funcs/ismsISMSRegistersControllerUpdateRowV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerUpdateRowV1.js +94 -0
- package/esm/funcs/ismsISMSRegistersControllerUpdateRowV1.js.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.d.ts +18 -0
- package/esm/funcs/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.d.ts.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.js +87 -0
- package/esm/funcs/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.js.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.d.ts +18 -0
- package/esm/funcs/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.d.ts.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.js +84 -0
- package/esm/funcs/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/retries.js +7 -0
- package/esm/lib/retries.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +39 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/ismsISMSControllerAddControlsV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerAddControlsV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerAddControlsV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerAddControlsV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerApproveV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerApproveV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerApproveV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerApproveV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerDeclineV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerDeclineV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerDeclineV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerDeclineV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerDriftV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerDriftV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerDriftV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerDriftV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerEnsureSetupV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerEnsureSetupV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerEnsureSetupV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerEnsureSetupV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerExportDocumentV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerExportDocumentV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerExportDocumentV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerExportDocumentV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerGenerateV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerGenerateV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerGenerateV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerGenerateV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerGetDocumentV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerGetDocumentV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerGetDocumentV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerGetDocumentV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerRemoveControlV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerRemoveControlV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerRemoveControlV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerRemoveControlV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerSubmitForApprovalV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSControllerSubmitForApprovalV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSControllerSubmitForApprovalV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSControllerSubmitForApprovalV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGenerateAllV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGenerateAllV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGenerateAllV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGenerateAllV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGetProfileV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGetProfileV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGetProfileV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerGetProfileV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerSaveProfileV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerSaveProfileV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerSaveProfileV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSProfileControllerSaveProfileV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerCreateRowV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerCreateRowV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerCreateRowV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerCreateRowV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerDeleteRowV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerDeleteRowV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerDeleteRowV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerDeleteRowV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerSaveNarrativeV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerSaveNarrativeV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerSaveNarrativeV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerSaveNarrativeV1.js.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerUpdateRowV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerUpdateRowV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerUpdateRowV1.js +34 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerUpdateRowV1.js.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.d.ts +7 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.js +34 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.js.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.d.ts +7 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.js +34 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.js.map +1 -0
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +2 -0
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts.map +1 -1
- package/esm/models/customframeworkbadgeresponsedto.d.ts +7 -0
- package/esm/models/customframeworkbadgeresponsedto.d.ts.map +1 -0
- package/esm/models/customframeworkbadgeresponsedto.js +9 -0
- package/esm/models/customframeworkbadgeresponsedto.js.map +1 -0
- package/esm/models/ensureismssetupdto.d.ts +6 -0
- package/esm/models/ensureismssetupdto.d.ts.map +1 -0
- package/esm/models/ensureismssetupdto.js +9 -0
- package/esm/models/ensureismssetupdto.js.map +1 -0
- package/esm/models/exportismsdocumentdto.d.ts +22 -0
- package/esm/models/exportismsdocumentdto.d.ts.map +1 -0
- package/esm/models/exportismsdocumentdto.js +19 -0
- package/esm/models/exportismsdocumentdto.js.map +1 -0
- package/esm/models/generatealldto.d.ts +6 -0
- package/esm/models/generatealldto.d.ts.map +1 -0
- package/esm/models/generatealldto.js +8 -0
- package/esm/models/generatealldto.js.map +1 -0
- package/esm/models/ismscontrolleraddcontrolsv1op.d.ts +8 -0
- package/esm/models/ismscontrolleraddcontrolsv1op.d.ts.map +1 -0
- package/esm/models/ismscontrolleraddcontrolsv1op.js +10 -0
- package/esm/models/ismscontrolleraddcontrolsv1op.js.map +1 -0
- package/esm/models/ismscontrollerapprovev1op.d.ts +6 -0
- package/esm/models/ismscontrollerapprovev1op.d.ts.map +1 -0
- package/esm/models/ismscontrollerapprovev1op.js +8 -0
- package/esm/models/ismscontrollerapprovev1op.js.map +1 -0
- package/esm/models/ismscontrollerdeclinev1op.d.ts +6 -0
- package/esm/models/ismscontrollerdeclinev1op.d.ts.map +1 -0
- package/esm/models/ismscontrollerdeclinev1op.js +8 -0
- package/esm/models/ismscontrollerdeclinev1op.js.map +1 -0
- package/esm/models/ismscontrollerdriftv1op.d.ts +6 -0
- package/esm/models/ismscontrollerdriftv1op.d.ts.map +1 -0
- package/esm/models/ismscontrollerdriftv1op.js +8 -0
- package/esm/models/ismscontrollerdriftv1op.js.map +1 -0
- package/esm/models/ismscontrollerexportdocumentv1op.d.ts +8 -0
- package/esm/models/ismscontrollerexportdocumentv1op.d.ts.map +1 -0
- package/esm/models/ismscontrollerexportdocumentv1op.js +10 -0
- package/esm/models/ismscontrollerexportdocumentv1op.js.map +1 -0
- package/esm/models/ismscontrollergeneratev1op.d.ts +6 -0
- package/esm/models/ismscontrollergeneratev1op.d.ts.map +1 -0
- package/esm/models/ismscontrollergeneratev1op.js +8 -0
- package/esm/models/ismscontrollergeneratev1op.js.map +1 -0
- package/esm/models/ismscontrollergetdocumentv1op.d.ts +6 -0
- package/esm/models/ismscontrollergetdocumentv1op.d.ts.map +1 -0
- package/esm/models/ismscontrollergetdocumentv1op.js +8 -0
- package/esm/models/ismscontrollergetdocumentv1op.js.map +1 -0
- package/esm/models/ismscontrollerremovecontrolv1op.d.ts +7 -0
- package/esm/models/ismscontrollerremovecontrolv1op.d.ts.map +1 -0
- package/esm/models/ismscontrollerremovecontrolv1op.js +9 -0
- package/esm/models/ismscontrollerremovecontrolv1op.js.map +1 -0
- package/esm/models/ismscontrollersubmitforapprovalv1op.d.ts +8 -0
- package/esm/models/ismscontrollersubmitforapprovalv1op.d.ts.map +1 -0
- package/esm/models/ismscontrollersubmitforapprovalv1op.js +10 -0
- package/esm/models/ismscontrollersubmitforapprovalv1op.js.map +1 -0
- package/esm/models/ismsprofilecontrollergetprofilev1op.d.ts +6 -0
- package/esm/models/ismsprofilecontrollergetprofilev1op.d.ts.map +1 -0
- package/esm/models/ismsprofilecontrollergetprofilev1op.js +8 -0
- package/esm/models/ismsprofilecontrollergetprofilev1op.js.map +1 -0
- package/esm/models/ismsprofilecontrollersaveprofilev1op.d.ts +13 -0
- package/esm/models/ismsprofilecontrollersaveprofilev1op.d.ts.map +1 -0
- package/esm/models/ismsprofilecontrollersaveprofilev1op.js +10 -0
- package/esm/models/ismsprofilecontrollersaveprofilev1op.js.map +1 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.d.ts +55 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.d.ts.map +1 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.js +51 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.js.map +1 -0
- package/esm/models/ismsregisterscontrollerdeleterowv1op.d.ts +7 -0
- package/esm/models/ismsregisterscontrollerdeleterowv1op.d.ts.map +1 -0
- package/esm/models/ismsregisterscontrollerdeleterowv1op.js +9 -0
- package/esm/models/ismsregisterscontrollerdeleterowv1op.js.map +1 -0
- package/esm/models/ismsregisterscontrollersavenarrativev1op.d.ts +16 -0
- package/esm/models/ismsregisterscontrollersavenarrativev1op.d.ts.map +1 -0
- package/esm/models/ismsregisterscontrollersavenarrativev1op.js +12 -0
- package/esm/models/ismsregisterscontrollersavenarrativev1op.js.map +1 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.d.ts +55 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.d.ts.map +1 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.js +51 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.js.map +1 -0
- package/esm/models/linkismscontrolsdto.d.ts +6 -0
- package/esm/models/linkismscontrolsdto.d.ts.map +1 -0
- package/esm/models/linkismscontrolsdto.js +9 -0
- package/esm/models/linkismscontrolsdto.js.map +1 -0
- package/esm/models/questionnairecontrollerautoanswerandexportuploadv1op.d.ts +1 -1
- package/esm/models/questionnairecontrollerparsequestionnaireuploadv1op.d.ts +1 -1
- package/esm/models/submitismsforapprovaldto.d.ts +6 -0
- package/esm/models/submitismsforapprovaldto.d.ts.map +1 -0
- package/esm/models/submitismsforapprovaldto.js +8 -0
- package/esm/models/submitismsforapprovaldto.js.map +1 -0
- package/esm/models/trustportalcontrollerremovecustomframeworkbadgev1op.d.ts +6 -0
- package/esm/models/trustportalcontrollerremovecustomframeworkbadgev1op.d.ts.map +1 -0
- package/esm/models/trustportalcontrollerremovecustomframeworkbadgev1op.js +9 -0
- package/esm/models/trustportalcontrollerremovecustomframeworkbadgev1op.js.map +1 -0
- package/esm/models/uploadcustomframeworkbadgedto.d.ts +9 -0
- package/esm/models/uploadcustomframeworkbadgedto.d.ts.map +1 -0
- package/esm/models/uploadcustomframeworkbadgedto.js +11 -0
- package/esm/models/uploadcustomframeworkbadgedto.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +76 -0
- package/esm/tool-names.js.map +1 -1
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +6 -6
- package/esm/types/async.js.map +1 -1
- package/package.json +4 -2
- package/src/funcs/ismsISMSControllerAddControlsV1.ts +155 -0
- package/src/funcs/ismsISMSControllerApproveV1.ts +154 -0
- package/src/funcs/ismsISMSControllerDeclineV1.ts +154 -0
- package/src/funcs/ismsISMSControllerDriftV1.ts +154 -0
- package/src/funcs/ismsISMSControllerEnsureSetupV1.ts +146 -0
- package/src/funcs/ismsISMSControllerExportDocumentV1.ts +155 -0
- package/src/funcs/ismsISMSControllerGenerateV1.ts +154 -0
- package/src/funcs/ismsISMSControllerGetDocumentV1.ts +154 -0
- package/src/funcs/ismsISMSControllerRemoveControlV1.ts +158 -0
- package/src/funcs/ismsISMSControllerSubmitForApprovalV1.ts +156 -0
- package/src/funcs/ismsISMSProfileControllerGenerateAllV1.ts +146 -0
- package/src/funcs/ismsISMSProfileControllerGetProfileV1.ts +150 -0
- package/src/funcs/ismsISMSProfileControllerSaveProfileV1.ts +147 -0
- package/src/funcs/ismsISMSRegistersControllerCreateRowV1.ts +160 -0
- package/src/funcs/ismsISMSRegistersControllerDeleteRowV1.ts +159 -0
- package/src/funcs/ismsISMSRegistersControllerSaveNarrativeV1.ts +156 -0
- package/src/funcs/ismsISMSRegistersControllerUpdateRowV1.ts +160 -0
- package/src/funcs/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.ts +152 -0
- package/src/funcs/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.ts +146 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +8 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +39 -1
- package/src/mcp-server/tools/ismsISMSControllerAddControlsV1.ts +43 -0
- package/src/mcp-server/tools/ismsISMSControllerApproveV1.ts +42 -0
- package/src/mcp-server/tools/ismsISMSControllerDeclineV1.ts +42 -0
- package/src/mcp-server/tools/ismsISMSControllerDriftV1.ts +42 -0
- package/src/mcp-server/tools/ismsISMSControllerEnsureSetupV1.ts +43 -0
- package/src/mcp-server/tools/ismsISMSControllerExportDocumentV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSControllerGenerateV1.ts +42 -0
- package/src/mcp-server/tools/ismsISMSControllerGetDocumentV1.ts +43 -0
- package/src/mcp-server/tools/ismsISMSControllerRemoveControlV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSControllerSubmitForApprovalV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSProfileControllerGenerateAllV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSProfileControllerGetProfileV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSProfileControllerSaveProfileV1.ts +46 -0
- package/src/mcp-server/tools/ismsISMSRegistersControllerCreateRowV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSRegistersControllerDeleteRowV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSRegistersControllerSaveNarrativeV1.ts +44 -0
- package/src/mcp-server/tools/ismsISMSRegistersControllerUpdateRowV1.ts +44 -0
- package/src/mcp-server/tools/trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1.ts +44 -0
- package/src/mcp-server/tools/trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1.ts +45 -0
- package/src/mcp-server/tools.ts +2 -0
- package/src/models/controlscontrollerunlinkdocumenttypev1op.ts +1 -1
- package/src/models/customframeworkbadgeresponsedto.ts +19 -0
- package/src/models/ensureismssetupdto.ts +14 -0
- package/src/models/exportismsdocumentdto.ts +32 -0
- package/src/models/generatealldto.ts +13 -0
- package/src/models/ismscontrolleraddcontrolsv1op.ts +21 -0
- package/src/models/ismscontrollerapprovev1op.ts +13 -0
- package/src/models/ismscontrollerdeclinev1op.ts +13 -0
- package/src/models/ismscontrollerdriftv1op.ts +13 -0
- package/src/models/ismscontrollerexportdocumentv1op.ts +21 -0
- package/src/models/ismscontrollergeneratev1op.ts +13 -0
- package/src/models/ismscontrollergetdocumentv1op.ts +13 -0
- package/src/models/ismscontrollerremovecontrolv1op.ts +17 -0
- package/src/models/ismscontrollersubmitforapprovalv1op.ts +21 -0
- package/src/models/ismsprofilecontrollergetprofilev1op.ts +13 -0
- package/src/models/ismsprofilecontrollersaveprofilev1op.ts +26 -0
- package/src/models/ismsregisterscontrollercreaterowv1op.ts +100 -0
- package/src/models/ismsregisterscontrollerdeleterowv1op.ts +17 -0
- package/src/models/ismsregisterscontrollersavenarrativev1op.ts +33 -0
- package/src/models/ismsregisterscontrollerupdaterowv1op.ts +100 -0
- package/src/models/linkismscontrolsdto.ts +14 -0
- package/src/models/submitismsforapprovaldto.ts +15 -0
- package/src/models/trustportalcontrollerremovecustomframeworkbadgev1op.ts +17 -0
- package/src/models/uploadcustomframeworkbadgedto.ts +25 -0
- package/src/tool-names.ts +76 -0
- package/src/types/async.ts +8 -7
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompAiCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
IsmsRegistersControllerSaveNarrativeV1Request,
|
|
23
|
+
IsmsRegistersControllerSaveNarrativeV1Request$zodSchema,
|
|
24
|
+
} from "../models/ismsregisterscontrollersavenarrativev1op.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Save a singleton document narrative
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Save a singleton document narrative in Comp AI.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.apikey} from the global security.
|
|
35
|
+
*/
|
|
36
|
+
export function ismsISMSRegistersControllerSaveNarrativeV1(
|
|
37
|
+
client$: CompAiCore,
|
|
38
|
+
request: IsmsRegistersControllerSaveNarrativeV1Request,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
Response,
|
|
43
|
+
| APIError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client$,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client$: CompAiCore,
|
|
61
|
+
request: IsmsRegistersControllerSaveNarrativeV1Request,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
Response,
|
|
67
|
+
| APIError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed$ = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value$) =>
|
|
81
|
+
IsmsRegistersControllerSaveNarrativeV1Request$zodSchema.parse(value$),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed$.ok) {
|
|
85
|
+
return [parsed$, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload$ = parsed$.value;
|
|
88
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
89
|
+
|
|
90
|
+
const pathParams$ = {
|
|
91
|
+
id: encodeSimple("id", payload$.id, {
|
|
92
|
+
explode: false,
|
|
93
|
+
charEncoding: "percent",
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
const path$ = pathToFunc("/v1/isms/documents/{id}/narrative")(
|
|
97
|
+
pathParams$,
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const headers$ = new Headers(compactMap({
|
|
101
|
+
"Content-Type": "application/json",
|
|
102
|
+
Accept: "*/*",
|
|
103
|
+
}));
|
|
104
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
105
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
106
|
+
|
|
107
|
+
const context = {
|
|
108
|
+
options: client$._options,
|
|
109
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
110
|
+
operationID: "IsmsRegistersController_saveNarrative_v1",
|
|
111
|
+
oAuth2Scopes: null,
|
|
112
|
+
resolvedSecurity: requestSecurity,
|
|
113
|
+
securitySource: client$._options.security,
|
|
114
|
+
retryConfig: options?.retries
|
|
115
|
+
|| client$._options.retryConfig
|
|
116
|
+
|| { strategy: "none" },
|
|
117
|
+
retryCodes: options?.retryCodes || [
|
|
118
|
+
"429",
|
|
119
|
+
"500",
|
|
120
|
+
"502",
|
|
121
|
+
"503",
|
|
122
|
+
"504",
|
|
123
|
+
],
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const requestRes = client$._createRequest(context, {
|
|
127
|
+
security: requestSecurity,
|
|
128
|
+
method: "POST",
|
|
129
|
+
baseURL: options?.serverURL,
|
|
130
|
+
path: path$,
|
|
131
|
+
headers: headers$,
|
|
132
|
+
body: body$,
|
|
133
|
+
userAgent: client$._options.userAgent,
|
|
134
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
135
|
+
|| 120000,
|
|
136
|
+
}, options);
|
|
137
|
+
if (!requestRes.ok) {
|
|
138
|
+
return [requestRes, { status: "invalid" }];
|
|
139
|
+
}
|
|
140
|
+
const req$ = requestRes.value;
|
|
141
|
+
|
|
142
|
+
const doResult = await client$._do(req$, {
|
|
143
|
+
context,
|
|
144
|
+
errorCodes: [],
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
150
|
+
}
|
|
151
|
+
return [doResult, {
|
|
152
|
+
status: "complete",
|
|
153
|
+
"request": req$,
|
|
154
|
+
response: doResult.value,
|
|
155
|
+
}];
|
|
156
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompAiCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
IsmsRegistersControllerUpdateRowV1Request,
|
|
23
|
+
IsmsRegistersControllerUpdateRowV1Request$zodSchema,
|
|
24
|
+
} from "../models/ismsregisterscontrollerupdaterowv1op.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Update a row in an ISMS register
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Update a row in an ISMS register in Comp AI.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.apikey} from the global security.
|
|
35
|
+
*/
|
|
36
|
+
export function ismsISMSRegistersControllerUpdateRowV1(
|
|
37
|
+
client$: CompAiCore,
|
|
38
|
+
request: IsmsRegistersControllerUpdateRowV1Request,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
Response,
|
|
43
|
+
| APIError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client$,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client$: CompAiCore,
|
|
61
|
+
request: IsmsRegistersControllerUpdateRowV1Request,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
Response,
|
|
67
|
+
| APIError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed$ = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value$) =>
|
|
81
|
+
IsmsRegistersControllerUpdateRowV1Request$zodSchema.parse(value$),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed$.ok) {
|
|
85
|
+
return [parsed$, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload$ = parsed$.value;
|
|
88
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
89
|
+
|
|
90
|
+
const pathParams$ = {
|
|
91
|
+
register: encodeSimple("register", payload$.register, {
|
|
92
|
+
explode: false,
|
|
93
|
+
charEncoding: "percent",
|
|
94
|
+
}),
|
|
95
|
+
rowId: encodeSimple("rowId", payload$.rowId, {
|
|
96
|
+
explode: false,
|
|
97
|
+
charEncoding: "percent",
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
100
|
+
const path$ = pathToFunc("/v1/isms/registers/{register}/{rowId}")(
|
|
101
|
+
pathParams$,
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const headers$ = new Headers(compactMap({
|
|
105
|
+
"Content-Type": "application/json",
|
|
106
|
+
Accept: "*/*",
|
|
107
|
+
}));
|
|
108
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
109
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
110
|
+
|
|
111
|
+
const context = {
|
|
112
|
+
options: client$._options,
|
|
113
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
114
|
+
operationID: "IsmsRegistersController_updateRow_v1",
|
|
115
|
+
oAuth2Scopes: null,
|
|
116
|
+
resolvedSecurity: requestSecurity,
|
|
117
|
+
securitySource: client$._options.security,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client$._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || [
|
|
122
|
+
"429",
|
|
123
|
+
"500",
|
|
124
|
+
"502",
|
|
125
|
+
"503",
|
|
126
|
+
"504",
|
|
127
|
+
],
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const requestRes = client$._createRequest(context, {
|
|
131
|
+
security: requestSecurity,
|
|
132
|
+
method: "PATCH",
|
|
133
|
+
baseURL: options?.serverURL,
|
|
134
|
+
path: path$,
|
|
135
|
+
headers: headers$,
|
|
136
|
+
body: body$,
|
|
137
|
+
userAgent: client$._options.userAgent,
|
|
138
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
139
|
+
|| 120000,
|
|
140
|
+
}, options);
|
|
141
|
+
if (!requestRes.ok) {
|
|
142
|
+
return [requestRes, { status: "invalid" }];
|
|
143
|
+
}
|
|
144
|
+
const req$ = requestRes.value;
|
|
145
|
+
|
|
146
|
+
const doResult = await client$._do(req$, {
|
|
147
|
+
context,
|
|
148
|
+
errorCodes: [],
|
|
149
|
+
retryConfig: context.retryConfig,
|
|
150
|
+
retryCodes: context.retryCodes,
|
|
151
|
+
});
|
|
152
|
+
if (!doResult.ok) {
|
|
153
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
154
|
+
}
|
|
155
|
+
return [doResult, {
|
|
156
|
+
status: "complete",
|
|
157
|
+
"request": req$,
|
|
158
|
+
response: doResult.value,
|
|
159
|
+
}];
|
|
160
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompAiCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
TrustPortalControllerRemoveCustomFrameworkBadgeV1Request,
|
|
23
|
+
TrustPortalControllerRemoveCustomFrameworkBadgeV1Request$zodSchema,
|
|
24
|
+
} from "../models/trustportalcontrollerremovecustomframeworkbadgev1op.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Remove a custom framework's Trust Portal badge image
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Remove a custom framework's Trust Portal badge image in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.apikey} from the global security.
|
|
35
|
+
*/
|
|
36
|
+
export function trustPortalTrustPortalControllerRemoveCustomFrameworkBadgeV1(
|
|
37
|
+
client$: CompAiCore,
|
|
38
|
+
request: TrustPortalControllerRemoveCustomFrameworkBadgeV1Request,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
Response,
|
|
43
|
+
| APIError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client$,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client$: CompAiCore,
|
|
61
|
+
request: TrustPortalControllerRemoveCustomFrameworkBadgeV1Request,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
Response,
|
|
67
|
+
| APIError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed$ = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value$) =>
|
|
81
|
+
TrustPortalControllerRemoveCustomFrameworkBadgeV1Request$zodSchema.parse(
|
|
82
|
+
value$,
|
|
83
|
+
),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed$.ok) {
|
|
87
|
+
return [parsed$, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload$ = parsed$.value;
|
|
90
|
+
const body$ = null;
|
|
91
|
+
const path$ = pathToFunc("/v1/trust-portal/custom-frameworks/badge")();
|
|
92
|
+
const query$ = encodeFormQuery({
|
|
93
|
+
"customFrameworkId": payload$.customFrameworkId,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const headers$ = new Headers(compactMap({
|
|
97
|
+
Accept: "*/*",
|
|
98
|
+
}));
|
|
99
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
100
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
101
|
+
|
|
102
|
+
const context = {
|
|
103
|
+
options: client$._options,
|
|
104
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
105
|
+
operationID: "TrustPortalController_removeCustomFrameworkBadge_v1",
|
|
106
|
+
oAuth2Scopes: null,
|
|
107
|
+
resolvedSecurity: requestSecurity,
|
|
108
|
+
securitySource: client$._options.security,
|
|
109
|
+
retryConfig: options?.retries
|
|
110
|
+
|| client$._options.retryConfig
|
|
111
|
+
|| { strategy: "none" },
|
|
112
|
+
retryCodes: options?.retryCodes || [
|
|
113
|
+
"429",
|
|
114
|
+
"500",
|
|
115
|
+
"502",
|
|
116
|
+
"503",
|
|
117
|
+
"504",
|
|
118
|
+
],
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const requestRes = client$._createRequest(context, {
|
|
122
|
+
security: requestSecurity,
|
|
123
|
+
method: "DELETE",
|
|
124
|
+
baseURL: options?.serverURL,
|
|
125
|
+
path: path$,
|
|
126
|
+
headers: headers$,
|
|
127
|
+
query: query$,
|
|
128
|
+
body: body$,
|
|
129
|
+
userAgent: client$._options.userAgent,
|
|
130
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
131
|
+
|| 120000,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req$ = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client$._do(req$, {
|
|
139
|
+
context,
|
|
140
|
+
errorCodes: [],
|
|
141
|
+
retryConfig: context.retryConfig,
|
|
142
|
+
retryCodes: context.retryCodes,
|
|
143
|
+
});
|
|
144
|
+
if (!doResult.ok) {
|
|
145
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
146
|
+
}
|
|
147
|
+
return [doResult, {
|
|
148
|
+
status: "complete",
|
|
149
|
+
"request": req$,
|
|
150
|
+
response: doResult.value,
|
|
151
|
+
}];
|
|
152
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompAiCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
UploadCustomFrameworkBadgeDto,
|
|
23
|
+
UploadCustomFrameworkBadgeDto$zodSchema,
|
|
24
|
+
} from "../models/uploadcustomframeworkbadgedto.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Upload or replace a custom framework's Trust Portal badge image
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Stores a PNG/JPEG/WebP badge (max 256KB) in the organization assets bucket. Does not change the framework's portal visibility.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.apikey} from the global security.
|
|
35
|
+
*/
|
|
36
|
+
export function trustPortalTrustPortalControllerUploadCustomFrameworkBadgeV1(
|
|
37
|
+
client$: CompAiCore,
|
|
38
|
+
request: UploadCustomFrameworkBadgeDto,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
Response,
|
|
43
|
+
| APIError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client$,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client$: CompAiCore,
|
|
61
|
+
request: UploadCustomFrameworkBadgeDto,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
Response,
|
|
67
|
+
| APIError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed$ = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value$) => UploadCustomFrameworkBadgeDto$zodSchema.parse(value$),
|
|
81
|
+
"Input validation failed",
|
|
82
|
+
);
|
|
83
|
+
if (!parsed$.ok) {
|
|
84
|
+
return [parsed$, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const payload$ = parsed$.value;
|
|
87
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
88
|
+
const path$ = pathToFunc("/v1/trust-portal/custom-frameworks/badge")();
|
|
89
|
+
|
|
90
|
+
const headers$ = new Headers(compactMap({
|
|
91
|
+
"Content-Type": "application/json",
|
|
92
|
+
Accept: "application/json",
|
|
93
|
+
}));
|
|
94
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
95
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
96
|
+
|
|
97
|
+
const context = {
|
|
98
|
+
options: client$._options,
|
|
99
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
100
|
+
operationID: "TrustPortalController_uploadCustomFrameworkBadge_v1",
|
|
101
|
+
oAuth2Scopes: null,
|
|
102
|
+
resolvedSecurity: requestSecurity,
|
|
103
|
+
securitySource: client$._options.security,
|
|
104
|
+
retryConfig: options?.retries
|
|
105
|
+
|| client$._options.retryConfig
|
|
106
|
+
|| { strategy: "none" },
|
|
107
|
+
retryCodes: options?.retryCodes || [
|
|
108
|
+
"429",
|
|
109
|
+
"500",
|
|
110
|
+
"502",
|
|
111
|
+
"503",
|
|
112
|
+
"504",
|
|
113
|
+
],
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const requestRes = client$._createRequest(context, {
|
|
117
|
+
security: requestSecurity,
|
|
118
|
+
method: "POST",
|
|
119
|
+
baseURL: options?.serverURL,
|
|
120
|
+
path: path$,
|
|
121
|
+
headers: headers$,
|
|
122
|
+
body: body$,
|
|
123
|
+
userAgent: client$._options.userAgent,
|
|
124
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
125
|
+
|| 120000,
|
|
126
|
+
}, options);
|
|
127
|
+
if (!requestRes.ok) {
|
|
128
|
+
return [requestRes, { status: "invalid" }];
|
|
129
|
+
}
|
|
130
|
+
const req$ = requestRes.value;
|
|
131
|
+
|
|
132
|
+
const doResult = await client$._do(req$, {
|
|
133
|
+
context,
|
|
134
|
+
errorCodes: [],
|
|
135
|
+
retryConfig: context.retryConfig,
|
|
136
|
+
retryCodes: context.retryCodes,
|
|
137
|
+
});
|
|
138
|
+
if (!doResult.ok) {
|
|
139
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
140
|
+
}
|
|
141
|
+
return [doResult, {
|
|
142
|
+
status: "complete",
|
|
143
|
+
"request": req$,
|
|
144
|
+
response: doResult.value,
|
|
145
|
+
}];
|
|
146
|
+
}
|
package/src/landing-page.ts
CHANGED
|
@@ -930,7 +930,7 @@ http_headers = { "apikey" = "YOUR_APIKEY" }`;
|
|
|
930
930
|
<h1>Instructions</h1>
|
|
931
931
|
<p>One-click installation for Claude Desktop users</p>
|
|
932
932
|
<div class="instruction-item">
|
|
933
|
-
<a href="https://github.com/trycompai/comp/releases/download/v0.2.
|
|
933
|
+
<a href="https://github.com/trycompai/comp/releases/download/v0.2.1/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
934
934
|
📥 Download MCP Bundle
|
|
935
935
|
</a>
|
|
936
936
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0",
|
|
68
|
-
sdkVersion: "0.2.
|
|
69
|
-
genVersion: "2.
|
|
68
|
+
sdkVersion: "0.2.1",
|
|
69
|
+
genVersion: "2.912.1",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/mcp-typescript 0.2.
|
|
71
|
+
"speakeasy-sdk/mcp-typescript 0.2.1 2.912.1 1.0 @trycompai/mcp-server",
|
|
72
72
|
} as const;
|
package/src/lib/retries.ts
CHANGED
|
@@ -194,6 +194,14 @@ async function retryBackoff(
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
function retryIntervalFromResponse(res: Response): number {
|
|
197
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
198
|
+
if (retryAfterMsVal) {
|
|
199
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
200
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
201
|
+
return parsedMs;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
const retryVal = res.headers.get("retry-after") || "";
|
|
198
206
|
if (!retryVal) {
|
|
199
207
|
return 0;
|