@trycompai/mcp-server 0.3.2 → 0.3.3
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 +1489 -1039
- package/bin/mcp-server.js.map +57 -53
- package/esm/funcs/deviceAgentDeviceAgentControllerCheckInV1.d.ts +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerCheckInV1.d.ts.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerCheckInV1.js +13 -3
- package/esm/funcs/deviceAgentDeviceAgentControllerCheckInV1.js.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerExchangeCodeV1.d.ts +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerExchangeCodeV1.d.ts.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerExchangeCodeV1.js +13 -3
- package/esm/funcs/deviceAgentDeviceAgentControllerExchangeCodeV1.js.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerGenerateAuthCodeV1.d.ts +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerGenerateAuthCodeV1.d.ts.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerGenerateAuthCodeV1.js +13 -3
- package/esm/funcs/deviceAgentDeviceAgentControllerGenerateAuthCodeV1.js.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerRegisterDeviceV1.d.ts +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerRegisterDeviceV1.d.ts.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerRegisterDeviceV1.js +13 -3
- package/esm/funcs/deviceAgentDeviceAgentControllerRegisterDeviceV1.js.map +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerDeleteAllManualAnswersV1.d.ts +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerDeleteAllManualAnswersV1.d.ts.map +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerDeleteAllManualAnswersV1.js +13 -3
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerDeleteAllManualAnswersV1.js.map +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerProcessDocumentsV1.d.ts +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerProcessDocumentsV1.d.ts.map +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerProcessDocumentsV1.js +13 -3
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerProcessDocumentsV1.js.map +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerSaveManualAnswerV1.d.ts +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerSaveManualAnswerV1.d.ts.map +1 -1
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerSaveManualAnswerV1.js +13 -3
- package/esm/funcs/knowledgeBaseKnowledgeBaseControllerSaveManualAnswerV1.js.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerAndExportV1.d.ts +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerAndExportV1.d.ts.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerAndExportV1.js +13 -3
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerAndExportV1.js.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerV1.d.ts +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerV1.d.ts.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerV1.js +13 -3
- package/esm/funcs/questionnaireQuestionnaireControllerAutoAnswerV1.js.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerDeleteAnswerV1.d.ts +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerDeleteAnswerV1.d.ts.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerDeleteAnswerV1.js +13 -3
- package/esm/funcs/questionnaireQuestionnaireControllerDeleteAnswerV1.js.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerExportByIdV1.d.ts +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerExportByIdV1.d.ts.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerExportByIdV1.js +13 -3
- package/esm/funcs/questionnaireQuestionnaireControllerExportByIdV1.js.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerParseQuestionnaireV1.d.ts +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerParseQuestionnaireV1.d.ts.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerParseQuestionnaireV1.js +13 -3
- package/esm/funcs/questionnaireQuestionnaireControllerParseQuestionnaireV1.js.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerSaveAnswerV1.d.ts +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerSaveAnswerV1.d.ts.map +1 -1
- package/esm/funcs/questionnaireQuestionnaireControllerSaveAnswerV1.js +13 -3
- package/esm/funcs/questionnaireQuestionnaireControllerSaveAnswerV1.js.map +1 -1
- package/esm/funcs/searchSearchControllerSearchV1.d.ts +16 -0
- package/esm/funcs/searchSearchControllerSearchV1.d.ts.map +1 -0
- package/esm/funcs/searchSearchControllerSearchV1.js +87 -0
- package/esm/funcs/searchSearchControllerSearchV1.js.map +1 -0
- package/esm/funcs/soaSOAControllerApproveDocumentV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerApproveDocumentV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerApproveDocumentV1.js +13 -3
- package/esm/funcs/soaSOAControllerApproveDocumentV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerAutoFillV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerAutoFillV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerAutoFillV1.js +13 -3
- package/esm/funcs/soaSOAControllerAutoFillV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerCreateDocumentV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerCreateDocumentV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerCreateDocumentV1.js +13 -3
- package/esm/funcs/soaSOAControllerCreateDocumentV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerDeclineDocumentV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerDeclineDocumentV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerDeclineDocumentV1.js +13 -3
- package/esm/funcs/soaSOAControllerDeclineDocumentV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerEnsureSetupV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerEnsureSetupV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerEnsureSetupV1.js +13 -3
- package/esm/funcs/soaSOAControllerEnsureSetupV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerExportDocumentV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerExportDocumentV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerExportDocumentV1.js +13 -3
- package/esm/funcs/soaSOAControllerExportDocumentV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerGetSetupV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerGetSetupV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerGetSetupV1.js +13 -3
- package/esm/funcs/soaSOAControllerGetSetupV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerSaveAnswerV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerSaveAnswerV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerSaveAnswerV1.js +13 -3
- package/esm/funcs/soaSOAControllerSaveAnswerV1.js.map +1 -1
- package/esm/funcs/soaSOAControllerSubmitForApprovalV1.d.ts +1 -1
- package/esm/funcs/soaSOAControllerSubmitForApprovalV1.d.ts.map +1 -1
- package/esm/funcs/soaSOAControllerSubmitForApprovalV1.js +13 -3
- package/esm/funcs/soaSOAControllerSubmitForApprovalV1.js.map +1 -1
- package/esm/funcs/vendorsVendorsControllerSearchGlobalVendorsV1.js +2 -0
- package/esm/funcs/vendorsVendorsControllerSearchGlobalVendorsV1.js.map +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- 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 +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/searchSearchControllerSearchV1.d.ts +7 -0
- package/esm/mcp-server/tools/searchSearchControllerSearchV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/searchSearchControllerSearchV1.js +35 -0
- package/esm/mcp-server/tools/searchSearchControllerSearchV1.js.map +1 -0
- package/esm/models/answersourcedto.d.ts +11 -0
- package/esm/models/answersourcedto.d.ts.map +1 -0
- package/esm/models/answersourcedto.js +14 -0
- package/esm/models/answersourcedto.js.map +1 -0
- package/esm/models/approvesoadocumentdto.d.ts +4 -1
- package/esm/models/approvesoadocumentdto.d.ts.map +1 -1
- package/esm/models/approvesoadocumentdto.js +4 -1
- package/esm/models/approvesoadocumentdto.js.map +1 -1
- package/esm/models/authcodedto.d.ts +4 -1
- package/esm/models/authcodedto.d.ts.map +1 -1
- package/esm/models/authcodedto.js +4 -1
- package/esm/models/authcodedto.js.map +1 -1
- package/esm/models/autoanswerdto.d.ts +6 -1
- package/esm/models/autoanswerdto.d.ts.map +1 -1
- package/esm/models/autoanswerdto.js +6 -1
- package/esm/models/autoanswerdto.js.map +1 -1
- package/esm/models/autoanswerquestiondto.d.ts +8 -0
- package/esm/models/autoanswerquestiondto.d.ts.map +1 -0
- package/esm/models/autoanswerquestiondto.js +11 -0
- package/esm/models/autoanswerquestiondto.js.map +1 -0
- package/esm/models/autofillsoadto.d.ts +4 -1
- package/esm/models/autofillsoadto.d.ts.map +1 -1
- package/esm/models/autofillsoadto.js +4 -1
- package/esm/models/autofillsoadto.js.map +1 -1
- package/esm/models/checkindto.d.ts +4 -1
- package/esm/models/checkindto.d.ts.map +1 -1
- package/esm/models/checkindto.js +4 -1
- package/esm/models/checkindto.js.map +1 -1
- package/esm/models/createsoadocumentdto.d.ts +4 -1
- package/esm/models/createsoadocumentdto.d.ts.map +1 -1
- package/esm/models/createsoadocumentdto.js +4 -1
- package/esm/models/createsoadocumentdto.js.map +1 -1
- package/esm/models/declinesoadocumentdto.d.ts +4 -1
- package/esm/models/declinesoadocumentdto.d.ts.map +1 -1
- package/esm/models/declinesoadocumentdto.js +4 -1
- package/esm/models/declinesoadocumentdto.js.map +1 -1
- package/esm/models/deleteallmanualanswersdto.d.ts +3 -1
- package/esm/models/deleteallmanualanswersdto.d.ts.map +1 -1
- package/esm/models/deleteallmanualanswersdto.js +3 -1
- package/esm/models/deleteallmanualanswersdto.js.map +1 -1
- package/esm/models/deleteanswerdto.d.ts +5 -1
- package/esm/models/deleteanswerdto.d.ts.map +1 -1
- package/esm/models/deleteanswerdto.js +5 -1
- package/esm/models/deleteanswerdto.js.map +1 -1
- package/esm/models/deletemanualanswerdto.d.ts +3 -1
- package/esm/models/deletemanualanswerdto.d.ts.map +1 -1
- package/esm/models/deletemanualanswerdto.js +3 -1
- package/esm/models/deletemanualanswerdto.js.map +1 -1
- package/esm/models/ensuresoasetupdto.d.ts +4 -1
- package/esm/models/ensuresoasetupdto.d.ts.map +1 -1
- package/esm/models/ensuresoasetupdto.js +4 -1
- package/esm/models/ensuresoasetupdto.js.map +1 -1
- package/esm/models/exchangecodedto.d.ts +3 -1
- package/esm/models/exchangecodedto.d.ts.map +1 -1
- package/esm/models/exchangecodedto.js +3 -1
- package/esm/models/exchangecodedto.js.map +1 -1
- package/esm/models/exportbyiddto.d.ts +23 -1
- package/esm/models/exportbyiddto.d.ts.map +1 -1
- package/esm/models/exportbyiddto.js +18 -1
- package/esm/models/exportbyiddto.js.map +1 -1
- package/esm/models/exportismsdocumentdto.d.ts +4 -4
- package/esm/models/exportismsdocumentdto.d.ts.map +1 -1
- package/esm/models/exportismsdocumentdto.js +3 -3
- package/esm/models/exportismsdocumentdto.js.map +1 -1
- package/esm/models/exportquestionnairedto.d.ts +27 -1
- package/esm/models/exportquestionnairedto.d.ts.map +1 -1
- package/esm/models/exportquestionnairedto.js +22 -1
- package/esm/models/exportquestionnairedto.js.map +1 -1
- package/esm/models/exportsoadocumentdto.d.ts +19 -1
- package/esm/models/exportsoadocumentdto.d.ts.map +1 -1
- package/esm/models/exportsoadocumentdto.js +14 -1
- package/esm/models/exportsoadocumentdto.js.map +1 -1
- package/esm/models/parsequestionnairedto.d.ts +6 -1
- package/esm/models/parsequestionnairedto.d.ts.map +1 -1
- package/esm/models/parsequestionnairedto.js +6 -1
- package/esm/models/parsequestionnairedto.js.map +1 -1
- package/esm/models/processdocumentsdto.d.ts +4 -1
- package/esm/models/processdocumentsdto.d.ts.map +1 -1
- package/esm/models/processdocumentsdto.js +4 -1
- package/esm/models/processdocumentsdto.js.map +1 -1
- package/esm/models/registerdevicedto.d.ts +28 -1
- package/esm/models/registerdevicedto.d.ts.map +1 -1
- package/esm/models/registerdevicedto.js +23 -1
- package/esm/models/registerdevicedto.js.map +1 -1
- package/esm/models/rollbackframeworkdto.d.ts +3 -1
- package/esm/models/rollbackframeworkdto.d.ts.map +1 -1
- package/esm/models/rollbackframeworkdto.js +3 -1
- package/esm/models/rollbackframeworkdto.js.map +1 -1
- package/esm/models/saveanswerdto.d.ts +26 -1
- package/esm/models/saveanswerdto.d.ts.map +1 -1
- package/esm/models/saveanswerdto.js +21 -1
- package/esm/models/saveanswerdto.js.map +1 -1
- package/esm/models/savemanualanswerdto.d.ts +6 -1
- package/esm/models/savemanualanswerdto.d.ts.map +1 -1
- package/esm/models/savemanualanswerdto.js +6 -1
- package/esm/models/savemanualanswerdto.js.map +1 -1
- package/esm/models/savesoaanswerdto.d.ts +8 -1
- package/esm/models/savesoaanswerdto.d.ts.map +1 -1
- package/esm/models/savesoaanswerdto.js +8 -1
- package/esm/models/savesoaanswerdto.js.map +1 -1
- package/esm/models/searchcontrollersearchv1op.d.ts +7 -0
- package/esm/models/searchcontrollersearchv1op.d.ts.map +1 -0
- package/esm/models/searchcontrollersearchv1op.js +10 -0
- package/esm/models/searchcontrollersearchv1op.js.map +1 -0
- package/esm/models/searchresponsedto.d.ts +8 -0
- package/esm/models/searchresponsedto.d.ts.map +1 -0
- package/esm/models/searchresponsedto.js +12 -0
- package/esm/models/searchresponsedto.js.map +1 -0
- package/esm/models/searchresultdto.d.ts +36 -0
- package/esm/models/searchresultdto.d.ts.map +1 -0
- package/esm/models/searchresultdto.js +34 -0
- package/esm/models/searchresultdto.js.map +1 -0
- package/esm/models/submitsoaforapprovaldto.d.ts +5 -1
- package/esm/models/submitsoaforapprovaldto.d.ts.map +1 -1
- package/esm/models/submitsoaforapprovaldto.js +5 -1
- package/esm/models/submitsoaforapprovaldto.js.map +1 -1
- package/esm/models/syncframeworkdto.d.ts +3 -1
- package/esm/models/syncframeworkdto.d.ts.map +1 -1
- package/esm/models/syncframeworkdto.js +3 -1
- package/esm/models/syncframeworkdto.js.map +1 -1
- package/esm/models/vendorscontrollersearchglobalvendorsv1op.d.ts +2 -0
- package/esm/models/vendorscontrollersearchglobalvendorsv1op.d.ts.map +1 -1
- package/esm/models/vendorscontrollersearchglobalvendorsv1op.js +4 -1
- package/esm/models/vendorscontrollersearchglobalvendorsv1op.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +4 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/deviceAgentDeviceAgentControllerCheckInV1.ts +17 -4
- package/src/funcs/deviceAgentDeviceAgentControllerExchangeCodeV1.ts +20 -4
- package/src/funcs/deviceAgentDeviceAgentControllerGenerateAuthCodeV1.ts +17 -4
- package/src/funcs/deviceAgentDeviceAgentControllerRegisterDeviceV1.ts +20 -4
- package/src/funcs/knowledgeBaseKnowledgeBaseControllerDeleteAllManualAnswersV1.ts +20 -4
- package/src/funcs/knowledgeBaseKnowledgeBaseControllerProcessDocumentsV1.ts +20 -4
- package/src/funcs/knowledgeBaseKnowledgeBaseControllerSaveManualAnswerV1.ts +20 -4
- package/src/funcs/questionnaireQuestionnaireControllerAutoAnswerAndExportV1.ts +20 -4
- package/src/funcs/questionnaireQuestionnaireControllerAutoAnswerV1.ts +20 -4
- package/src/funcs/questionnaireQuestionnaireControllerDeleteAnswerV1.ts +20 -4
- package/src/funcs/questionnaireQuestionnaireControllerExportByIdV1.ts +20 -4
- package/src/funcs/questionnaireQuestionnaireControllerParseQuestionnaireV1.ts +20 -4
- package/src/funcs/questionnaireQuestionnaireControllerSaveAnswerV1.ts +20 -4
- package/src/funcs/searchSearchControllerSearchV1.ts +149 -0
- package/src/funcs/soaSOAControllerApproveDocumentV1.ts +20 -4
- package/src/funcs/soaSOAControllerAutoFillV1.ts +20 -4
- package/src/funcs/soaSOAControllerCreateDocumentV1.ts +20 -4
- package/src/funcs/soaSOAControllerDeclineDocumentV1.ts +20 -4
- package/src/funcs/soaSOAControllerEnsureSetupV1.ts +20 -4
- package/src/funcs/soaSOAControllerExportDocumentV1.ts +20 -4
- package/src/funcs/soaSOAControllerGetSetupV1.ts +20 -4
- package/src/funcs/soaSOAControllerSaveAnswerV1.ts +20 -4
- package/src/funcs/soaSOAControllerSubmitForApprovalV1.ts +20 -4
- package/src/funcs/vendorsVendorsControllerSearchGlobalVendorsV1.ts +2 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/searchSearchControllerSearchV1.ts +44 -0
- package/src/models/answersourcedto.ts +36 -0
- package/src/models/approvesoadocumentdto.ts +10 -2
- package/src/models/authcodedto.ts +9 -2
- package/src/models/autoanswerdto.ts +20 -2
- package/src/models/autoanswerquestiondto.ts +23 -0
- package/src/models/autofillsoadto.ts +9 -2
- package/src/models/checkindto.ts +12 -2
- package/src/models/createsoadocumentdto.ts +12 -2
- package/src/models/declinesoadocumentdto.ts +10 -2
- package/src/models/deleteallmanualanswersdto.ts +6 -2
- package/src/models/deleteanswerdto.ts +16 -4
- package/src/models/deletemanualanswerdto.ts +6 -2
- package/src/models/ensuresoasetupdto.ts +9 -2
- package/src/models/exchangecodedto.ts +6 -4
- package/src/models/exportbyiddto.ts +36 -2
- package/src/models/exportismsdocumentdto.ts +7 -5
- package/src/models/exportquestionnairedto.ts +54 -2
- package/src/models/exportsoadocumentdto.ts +32 -2
- package/src/models/parsequestionnairedto.ts +20 -2
- package/src/models/processdocumentsdto.ts +12 -2
- package/src/models/registerdevicedto.ts +54 -2
- package/src/models/rollbackframeworkdto.ts +6 -2
- package/src/models/saveanswerdto.ts +54 -2
- package/src/models/savemanualanswerdto.ts +20 -2
- package/src/models/savesoaanswerdto.ts +28 -2
- package/src/models/searchcontrollersearchv1op.ts +20 -0
- package/src/models/searchresponsedto.ts +20 -0
- package/src/models/searchresultdto.ts +58 -0
- package/src/models/submitsoaforapprovaldto.ts +16 -2
- package/src/models/syncframeworkdto.ts +6 -2
- package/src/models/vendorscontrollersearchglobalvendorsv1op.ts +10 -1
- package/src/tool-names.ts +4 -0
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type ExchangeCodeDto = {};
|
|
8
|
+
export type ExchangeCodeDto = { code: string };
|
|
9
9
|
|
|
10
|
-
export const ExchangeCodeDto$zodSchema: z.ZodType<ExchangeCodeDto> = z.object(
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
export const ExchangeCodeDto$zodSchema: z.ZodType<ExchangeCodeDto> = z.object({
|
|
11
|
+
code: z.string().describe(
|
|
12
|
+
"Single-use authorization code issued to the device agent, exchanged for a session token",
|
|
13
|
+
),
|
|
14
|
+
});
|
|
@@ -4,7 +4,41 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* File format to export the questionnaire in.
|
|
11
|
+
*/
|
|
12
|
+
export const ExportByIdDtoFormat = {
|
|
13
|
+
Xlsx: "xlsx",
|
|
14
|
+
Csv: "csv",
|
|
15
|
+
Pdf: "pdf",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* File format to export the questionnaire in.
|
|
19
|
+
*/
|
|
20
|
+
export type ExportByIdDtoFormat = ClosedEnum<typeof ExportByIdDtoFormat>;
|
|
21
|
+
|
|
22
|
+
export const ExportByIdDtoFormat$zodSchema = z.enum([
|
|
23
|
+
"xlsx",
|
|
24
|
+
"csv",
|
|
25
|
+
"pdf",
|
|
26
|
+
]).describe("File format to export the questionnaire in.");
|
|
27
|
+
|
|
28
|
+
export type ExportByIdDto = {
|
|
29
|
+
questionnaireId: string;
|
|
30
|
+
organizationId: string;
|
|
31
|
+
format: ExportByIdDtoFormat;
|
|
32
|
+
};
|
|
9
33
|
|
|
10
|
-
export const ExportByIdDto$zodSchema: z.ZodType<ExportByIdDto> = z.object({
|
|
34
|
+
export const ExportByIdDto$zodSchema: z.ZodType<ExportByIdDto> = z.object({
|
|
35
|
+
format: ExportByIdDtoFormat$zodSchema.describe(
|
|
36
|
+
"File format to export the questionnaire in.",
|
|
37
|
+
),
|
|
38
|
+
organizationId: z.string().describe(
|
|
39
|
+
"Organization ID. The API overwrites this with the authenticated active organization.",
|
|
40
|
+
),
|
|
41
|
+
questionnaireId: z.string().describe(
|
|
42
|
+
"Questionnaire to export, including all of its answers.",
|
|
43
|
+
),
|
|
44
|
+
});
|
|
@@ -9,22 +9,24 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* File format to export the ISMS document as
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const ExportIsmsDocumentDtoFormat = {
|
|
13
13
|
Pdf: "pdf",
|
|
14
14
|
Docx: "docx",
|
|
15
15
|
} as const;
|
|
16
16
|
/**
|
|
17
17
|
* File format to export the ISMS document as
|
|
18
18
|
*/
|
|
19
|
-
export type
|
|
19
|
+
export type ExportIsmsDocumentDtoFormat = ClosedEnum<
|
|
20
|
+
typeof ExportIsmsDocumentDtoFormat
|
|
21
|
+
>;
|
|
20
22
|
|
|
21
|
-
export const
|
|
23
|
+
export const ExportIsmsDocumentDtoFormat$zodSchema = z.enum([
|
|
22
24
|
"pdf",
|
|
23
25
|
"docx",
|
|
24
26
|
]).describe("File format to export the ISMS document as");
|
|
25
27
|
|
|
26
28
|
export type ExportIsmsDocumentDto = {
|
|
27
|
-
format:
|
|
29
|
+
format: ExportIsmsDocumentDtoFormat;
|
|
28
30
|
versionId?: string | undefined;
|
|
29
31
|
draft?: boolean | undefined;
|
|
30
32
|
};
|
|
@@ -34,7 +36,7 @@ export const ExportIsmsDocumentDto$zodSchema: z.ZodType<ExportIsmsDocumentDto> =
|
|
|
34
36
|
draft: z.boolean().optional().describe(
|
|
35
37
|
"Export the WORKING DRAFT rather than the published version — the customer's attached file when the document is in upload mode, or a live render of the form when it is not. Cannot be combined with versionId: the two name different artifacts, so asking for both is rejected.",
|
|
36
38
|
),
|
|
37
|
-
format:
|
|
39
|
+
format: ExportIsmsDocumentDtoFormat$zodSchema.describe(
|
|
38
40
|
"File format to export the ISMS document as",
|
|
39
41
|
),
|
|
40
42
|
versionId: z.string().optional().describe(
|
|
@@ -4,9 +4,61 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* File format to export the answered questionnaire in.
|
|
11
|
+
*/
|
|
12
|
+
export const ExportQuestionnaireDtoFormat = {
|
|
13
|
+
Pdf: "pdf",
|
|
14
|
+
Csv: "csv",
|
|
15
|
+
Xlsx: "xlsx",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* File format to export the answered questionnaire in.
|
|
19
|
+
*/
|
|
20
|
+
export type ExportQuestionnaireDtoFormat = ClosedEnum<
|
|
21
|
+
typeof ExportQuestionnaireDtoFormat
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export const ExportQuestionnaireDtoFormat$zodSchema = z.enum([
|
|
25
|
+
"pdf",
|
|
26
|
+
"csv",
|
|
27
|
+
"xlsx",
|
|
28
|
+
]).describe("File format to export the answered questionnaire in.");
|
|
29
|
+
|
|
30
|
+
export type ExportQuestionnaireDto = {
|
|
31
|
+
fileData: string;
|
|
32
|
+
fileType: string;
|
|
33
|
+
fileName?: string | undefined;
|
|
34
|
+
vendorName?: string | undefined;
|
|
35
|
+
organizationId: string;
|
|
36
|
+
format: ExportQuestionnaireDtoFormat;
|
|
37
|
+
exportInAllExtensions?: boolean | undefined;
|
|
38
|
+
};
|
|
9
39
|
|
|
10
40
|
export const ExportQuestionnaireDto$zodSchema: z.ZodType<
|
|
11
41
|
ExportQuestionnaireDto
|
|
12
|
-
> = z.object({
|
|
42
|
+
> = z.object({
|
|
43
|
+
exportInAllExtensions: z.boolean().optional().describe(
|
|
44
|
+
"Return a ZIP containing the questionnaire in every format (PDF, CSV and XLSX) instead of one file.",
|
|
45
|
+
),
|
|
46
|
+
fileData: z.string().describe(
|
|
47
|
+
"Base64-encoded contents of the questionnaire file.",
|
|
48
|
+
),
|
|
49
|
+
fileName: z.string().optional().describe(
|
|
50
|
+
"Original name of the questionnaire file.",
|
|
51
|
+
),
|
|
52
|
+
fileType: z.string().describe(
|
|
53
|
+
"MIME type of the file (PDF, image, XLSX, CSV, TXT).",
|
|
54
|
+
),
|
|
55
|
+
format: ExportQuestionnaireDtoFormat$zodSchema.describe(
|
|
56
|
+
"File format to export the answered questionnaire in.",
|
|
57
|
+
),
|
|
58
|
+
organizationId: z.string().describe(
|
|
59
|
+
"Organization ID. The API overwrites this with the authenticated active organization.",
|
|
60
|
+
),
|
|
61
|
+
vendorName: z.string().optional().describe(
|
|
62
|
+
"Name of the vendor the questionnaire came from.",
|
|
63
|
+
),
|
|
64
|
+
});
|
|
@@ -4,8 +4,38 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* File format to export the SOA document as
|
|
11
|
+
*/
|
|
12
|
+
export const ExportSOADocumentDtoFormat = {
|
|
13
|
+
Pdf: "pdf",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* File format to export the SOA document as
|
|
17
|
+
*/
|
|
18
|
+
export type ExportSOADocumentDtoFormat = ClosedEnum<
|
|
19
|
+
typeof ExportSOADocumentDtoFormat
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export const ExportSOADocumentDtoFormat$zodSchema = z.enum([
|
|
23
|
+
"pdf",
|
|
24
|
+
]).describe("File format to export the SOA document as");
|
|
25
|
+
|
|
26
|
+
export type ExportSOADocumentDto = {
|
|
27
|
+
documentId: string;
|
|
28
|
+
organizationId: string;
|
|
29
|
+
format: ExportSOADocumentDtoFormat;
|
|
30
|
+
};
|
|
9
31
|
|
|
10
32
|
export const ExportSOADocumentDto$zodSchema: z.ZodType<ExportSOADocumentDto> = z
|
|
11
|
-
.object({
|
|
33
|
+
.object({
|
|
34
|
+
documentId: z.string().describe("ID of the SOA document to export"),
|
|
35
|
+
format: ExportSOADocumentDtoFormat$zodSchema.describe(
|
|
36
|
+
"File format to export the SOA document as",
|
|
37
|
+
),
|
|
38
|
+
organizationId: z.string().describe(
|
|
39
|
+
"ID of the organization that owns the SOA document",
|
|
40
|
+
),
|
|
41
|
+
});
|
|
@@ -5,7 +5,25 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type ParseQuestionnaireDto = {
|
|
8
|
+
export type ParseQuestionnaireDto = {
|
|
9
|
+
fileData: string;
|
|
10
|
+
fileType: string;
|
|
11
|
+
fileName?: string | undefined;
|
|
12
|
+
vendorName?: string | undefined;
|
|
13
|
+
};
|
|
9
14
|
|
|
10
15
|
export const ParseQuestionnaireDto$zodSchema: z.ZodType<ParseQuestionnaireDto> =
|
|
11
|
-
z.object({
|
|
16
|
+
z.object({
|
|
17
|
+
fileData: z.string().describe(
|
|
18
|
+
"Base64-encoded contents of the questionnaire file.",
|
|
19
|
+
),
|
|
20
|
+
fileName: z.string().optional().describe(
|
|
21
|
+
"Original name of the questionnaire file.",
|
|
22
|
+
),
|
|
23
|
+
fileType: z.string().describe(
|
|
24
|
+
"MIME type of the file (PDF, image, XLSX, CSV, TXT).",
|
|
25
|
+
),
|
|
26
|
+
vendorName: z.string().optional().describe(
|
|
27
|
+
"Name of the vendor the questionnaire came from.",
|
|
28
|
+
),
|
|
29
|
+
});
|
|
@@ -5,7 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type ProcessDocumentsDto = {
|
|
8
|
+
export type ProcessDocumentsDto = {
|
|
9
|
+
organizationId: string;
|
|
10
|
+
documentIds: Array<string>;
|
|
11
|
+
};
|
|
9
12
|
|
|
10
13
|
export const ProcessDocumentsDto$zodSchema: z.ZodType<ProcessDocumentsDto> = z
|
|
11
|
-
.object({
|
|
14
|
+
.object({
|
|
15
|
+
documentIds: z.array(z.string()).describe(
|
|
16
|
+
"Knowledge base documents to index into the vector store. At least one is required.",
|
|
17
|
+
),
|
|
18
|
+
organizationId: z.string().describe(
|
|
19
|
+
"Organization that owns the documents. Overwritten with the authenticated organization.",
|
|
20
|
+
),
|
|
21
|
+
});
|
|
@@ -4,8 +4,60 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Operating system family the device runs
|
|
11
|
+
*/
|
|
12
|
+
export const Platform = {
|
|
13
|
+
Macos: "macos",
|
|
14
|
+
Windows: "windows",
|
|
15
|
+
Linux: "linux",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Operating system family the device runs
|
|
19
|
+
*/
|
|
20
|
+
export type Platform = ClosedEnum<typeof Platform>;
|
|
21
|
+
|
|
22
|
+
export const Platform$zodSchema = z.enum([
|
|
23
|
+
"macos",
|
|
24
|
+
"windows",
|
|
25
|
+
"linux",
|
|
26
|
+
]).describe("Operating system family the device runs");
|
|
27
|
+
|
|
28
|
+
export type RegisterDeviceDto = {
|
|
29
|
+
name: string;
|
|
30
|
+
hostname: string;
|
|
31
|
+
platform: Platform;
|
|
32
|
+
osVersion: string;
|
|
33
|
+
organizationId: string;
|
|
34
|
+
serialNumber?: string | undefined;
|
|
35
|
+
hardwareModel?: string | undefined;
|
|
36
|
+
agentVersion?: string | undefined;
|
|
37
|
+
};
|
|
9
38
|
|
|
10
39
|
export const RegisterDeviceDto$zodSchema: z.ZodType<RegisterDeviceDto> = z
|
|
11
|
-
.object({
|
|
40
|
+
.object({
|
|
41
|
+
agentVersion: z.string().optional().describe(
|
|
42
|
+
"Version of the device agent performing the registration",
|
|
43
|
+
),
|
|
44
|
+
hardwareModel: z.string().optional().describe(
|
|
45
|
+
"Hardware model identifier reported by the device",
|
|
46
|
+
),
|
|
47
|
+
hostname: z.string().describe("Network hostname of the device"),
|
|
48
|
+
name: z.string().describe(
|
|
49
|
+
"Human-readable computer name reported by the device",
|
|
50
|
+
),
|
|
51
|
+
organizationId: z.string().describe(
|
|
52
|
+
"ID of the organization to register the device under",
|
|
53
|
+
),
|
|
54
|
+
osVersion: z.string().describe(
|
|
55
|
+
"Operating system version string reported by the device",
|
|
56
|
+
),
|
|
57
|
+
platform: Platform$zodSchema.describe(
|
|
58
|
+
"Operating system family the device runs",
|
|
59
|
+
),
|
|
60
|
+
serialNumber: z.string().optional().describe(
|
|
61
|
+
"Hardware serial number, used to match the device to an existing record",
|
|
62
|
+
),
|
|
63
|
+
});
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type RollbackFrameworkDto = {};
|
|
8
|
+
export type RollbackFrameworkDto = { syncOperationId: string };
|
|
9
9
|
|
|
10
10
|
export const RollbackFrameworkDto$zodSchema: z.ZodType<RollbackFrameworkDto> = z
|
|
11
|
-
.object({
|
|
11
|
+
.object({
|
|
12
|
+
syncOperationId: z.string().describe(
|
|
13
|
+
"ID of the framework sync operation to roll back",
|
|
14
|
+
),
|
|
15
|
+
});
|
|
@@ -4,7 +4,59 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
AnswerSourceDto,
|
|
10
|
+
AnswerSourceDto$zodSchema,
|
|
11
|
+
} from "./answersourcedto.js";
|
|
7
12
|
|
|
8
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Whether the answer was AI-generated or written by a person.
|
|
15
|
+
*/
|
|
16
|
+
export const SaveAnswerDtoStatus = {
|
|
17
|
+
Generated: "generated",
|
|
18
|
+
Manual: "manual",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the answer was AI-generated or written by a person.
|
|
22
|
+
*/
|
|
23
|
+
export type SaveAnswerDtoStatus = ClosedEnum<typeof SaveAnswerDtoStatus>;
|
|
24
|
+
|
|
25
|
+
export const SaveAnswerDtoStatus$zodSchema = z.enum([
|
|
26
|
+
"generated",
|
|
27
|
+
"manual",
|
|
28
|
+
]).describe("Whether the answer was AI-generated or written by a person.");
|
|
29
|
+
|
|
30
|
+
export type SaveAnswerDto = {
|
|
31
|
+
questionnaireId: string;
|
|
32
|
+
organizationId: string;
|
|
33
|
+
questionAnswerId?: string | undefined;
|
|
34
|
+
questionIndex?: number | undefined;
|
|
35
|
+
answer?: string | null | undefined;
|
|
36
|
+
sources?: Array<AnswerSourceDto> | undefined;
|
|
37
|
+
status: SaveAnswerDtoStatus;
|
|
38
|
+
};
|
|
9
39
|
|
|
10
|
-
export const SaveAnswerDto$zodSchema: z.ZodType<SaveAnswerDto> = z.object({
|
|
40
|
+
export const SaveAnswerDto$zodSchema: z.ZodType<SaveAnswerDto> = z.object({
|
|
41
|
+
answer: z.string().nullable().optional().describe(
|
|
42
|
+
"Answer text to store. Send null or empty to clear it.",
|
|
43
|
+
),
|
|
44
|
+
organizationId: z.string().describe(
|
|
45
|
+
"Organization ID. The API overwrites this with the authenticated active organization.",
|
|
46
|
+
),
|
|
47
|
+
questionAnswerId: z.string().optional().describe(
|
|
48
|
+
"Question/answer record to update. Provide this or questionIndex.",
|
|
49
|
+
),
|
|
50
|
+
questionIndex: z.number().optional().describe(
|
|
51
|
+
"Zero-based position of the question in the questionnaire. Provide this or questionAnswerId.",
|
|
52
|
+
),
|
|
53
|
+
questionnaireId: z.string().describe(
|
|
54
|
+
"Questionnaire that contains the answer being saved.",
|
|
55
|
+
),
|
|
56
|
+
sources: z.array(AnswerSourceDto$zodSchema).optional().describe(
|
|
57
|
+
"Knowledge sources the answer was derived from.",
|
|
58
|
+
),
|
|
59
|
+
status: SaveAnswerDtoStatus$zodSchema.describe(
|
|
60
|
+
"Whether the answer was AI-generated or written by a person.",
|
|
61
|
+
),
|
|
62
|
+
});
|
|
@@ -5,7 +5,25 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type SaveManualAnswerDto = {
|
|
8
|
+
export type SaveManualAnswerDto = {
|
|
9
|
+
question: string;
|
|
10
|
+
answer: string;
|
|
11
|
+
tags?: Array<string> | undefined;
|
|
12
|
+
sourceQuestionnaireId?: string | undefined;
|
|
13
|
+
};
|
|
9
14
|
|
|
10
15
|
export const SaveManualAnswerDto$zodSchema: z.ZodType<SaveManualAnswerDto> = z
|
|
11
|
-
.object({
|
|
16
|
+
.object({
|
|
17
|
+
answer: z.string().describe(
|
|
18
|
+
"Answer text reused when generating questionnaire answers.",
|
|
19
|
+
),
|
|
20
|
+
question: z.string().describe(
|
|
21
|
+
"Question this manual answer covers. Unique per organization, so re-sending it updates the answer.",
|
|
22
|
+
),
|
|
23
|
+
sourceQuestionnaireId: z.string().optional().describe(
|
|
24
|
+
"Questionnaire this answer was originally saved from.",
|
|
25
|
+
),
|
|
26
|
+
tags: z.array(z.string()).optional().describe(
|
|
27
|
+
"Tags used to categorize and search this manual answer.",
|
|
28
|
+
),
|
|
29
|
+
});
|
|
@@ -5,8 +5,34 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type SaveSOAAnswerDto = {
|
|
8
|
+
export type SaveSOAAnswerDto = {
|
|
9
|
+
organizationId: string;
|
|
10
|
+
documentId: string;
|
|
11
|
+
questionId: string;
|
|
12
|
+
answer?: string | null | undefined;
|
|
13
|
+
isApplicable?: boolean | null | undefined;
|
|
14
|
+
justification?: string | null | undefined;
|
|
15
|
+
};
|
|
9
16
|
|
|
10
17
|
export const SaveSOAAnswerDto$zodSchema: z.ZodType<SaveSOAAnswerDto> = z.object(
|
|
11
|
-
{
|
|
18
|
+
{
|
|
19
|
+
answer: z.string().nullable().optional().describe(
|
|
20
|
+
"Free-text answer for the question",
|
|
21
|
+
),
|
|
22
|
+
documentId: z.string().describe(
|
|
23
|
+
"ID of the SOA document the answer belongs to",
|
|
24
|
+
),
|
|
25
|
+
isApplicable: z.boolean().nullable().optional().describe(
|
|
26
|
+
"Whether the control is applicable to the organization; null when not yet decided",
|
|
27
|
+
),
|
|
28
|
+
justification: z.string().nullable().optional().describe(
|
|
29
|
+
"Justification for including or excluding the control from the SOA",
|
|
30
|
+
),
|
|
31
|
+
organizationId: z.string().describe(
|
|
32
|
+
"ID of the organization that owns the SOA document",
|
|
33
|
+
),
|
|
34
|
+
questionId: z.string().describe(
|
|
35
|
+
"ID of the question being answered, from the document's SOA configuration",
|
|
36
|
+
),
|
|
37
|
+
},
|
|
12
38
|
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a591590c63de
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type SearchControllerSearchV1Request = {
|
|
9
|
+
q: string;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const SearchControllerSearchV1Request$zodSchema: z.ZodType<
|
|
14
|
+
SearchControllerSearchV1Request
|
|
15
|
+
> = z.object({
|
|
16
|
+
limit: z.number().default(5).describe("Maximum results per entity type"),
|
|
17
|
+
q: z.string().describe(
|
|
18
|
+
"Search term, matched case-insensitively against names first, then descriptions. Terms shorter than 2 characters return no results.",
|
|
19
|
+
),
|
|
20
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ab439ce9ac4b
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
SearchResultDto,
|
|
9
|
+
SearchResultDto$zodSchema,
|
|
10
|
+
} from "./searchresultdto.js";
|
|
11
|
+
|
|
12
|
+
export type SearchResponseDto = { data: Array<SearchResultDto>; count: number };
|
|
13
|
+
|
|
14
|
+
export const SearchResponseDto$zodSchema: z.ZodType<SearchResponseDto> = z
|
|
15
|
+
.object({
|
|
16
|
+
count: z.number().describe("Number of results returned"),
|
|
17
|
+
data: z.array(SearchResultDto$zodSchema).describe(
|
|
18
|
+
"Matches, grouped by entity kind in a stable order",
|
|
19
|
+
),
|
|
20
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9c0fcf3d675d
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Entity kind this result points at
|
|
11
|
+
*/
|
|
12
|
+
export const SearchResultDtoType = {
|
|
13
|
+
Policy: "policy",
|
|
14
|
+
Task: "task",
|
|
15
|
+
Document: "document",
|
|
16
|
+
Person: "person",
|
|
17
|
+
Control: "control",
|
|
18
|
+
Vendor: "vendor",
|
|
19
|
+
Risk: "risk",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* Entity kind this result points at
|
|
23
|
+
*/
|
|
24
|
+
export type SearchResultDtoType = ClosedEnum<typeof SearchResultDtoType>;
|
|
25
|
+
|
|
26
|
+
export const SearchResultDtoType$zodSchema = z.enum([
|
|
27
|
+
"policy",
|
|
28
|
+
"task",
|
|
29
|
+
"document",
|
|
30
|
+
"person",
|
|
31
|
+
"control",
|
|
32
|
+
"vendor",
|
|
33
|
+
"risk",
|
|
34
|
+
]).describe("Entity kind this result points at");
|
|
35
|
+
|
|
36
|
+
export type SearchResultDto = {
|
|
37
|
+
type: SearchResultDtoType;
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
subtitle: string | null;
|
|
41
|
+
status?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const SearchResultDto$zodSchema: z.ZodType<SearchResultDto> = z.object({
|
|
45
|
+
id: z.string().describe(
|
|
46
|
+
"Entity ID, usable against that entity’s own endpoints",
|
|
47
|
+
),
|
|
48
|
+
status: z.string().optional().describe(
|
|
49
|
+
"Workflow status, when the entity kind has one",
|
|
50
|
+
),
|
|
51
|
+
subtitle: z.string().nullable().describe(
|
|
52
|
+
"Truncated description, or null when the record has none",
|
|
53
|
+
),
|
|
54
|
+
title: z.string().describe("Display name of the matched record"),
|
|
55
|
+
type: SearchResultDtoType$zodSchema.describe(
|
|
56
|
+
"Entity kind this result points at",
|
|
57
|
+
),
|
|
58
|
+
});
|
|
@@ -5,8 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type SubmitSOAForApprovalDto = {
|
|
8
|
+
export type SubmitSOAForApprovalDto = {
|
|
9
|
+
organizationId: string;
|
|
10
|
+
documentId: string;
|
|
11
|
+
approverId: string;
|
|
12
|
+
};
|
|
9
13
|
|
|
10
14
|
export const SubmitSOAForApprovalDto$zodSchema: z.ZodType<
|
|
11
15
|
SubmitSOAForApprovalDto
|
|
12
|
-
> = z.object({
|
|
16
|
+
> = z.object({
|
|
17
|
+
approverId: z.string().describe(
|
|
18
|
+
"Member ID of the approver the SOA document is submitted to",
|
|
19
|
+
),
|
|
20
|
+
documentId: z.string().describe(
|
|
21
|
+
"ID of the SOA document to submit for approval",
|
|
22
|
+
),
|
|
23
|
+
organizationId: z.string().describe(
|
|
24
|
+
"ID of the organization that owns the SOA document",
|
|
25
|
+
),
|
|
26
|
+
});
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type SyncFrameworkDto = {};
|
|
8
|
+
export type SyncFrameworkDto = { targetVersionId: string };
|
|
9
9
|
|
|
10
10
|
export const SyncFrameworkDto$zodSchema: z.ZodType<SyncFrameworkDto> = z.object(
|
|
11
|
-
{
|
|
11
|
+
{
|
|
12
|
+
targetVersionId: z.string().describe(
|
|
13
|
+
"ID of the framework version to sync the instance up to",
|
|
14
|
+
),
|
|
15
|
+
},
|
|
12
16
|
);
|
|
@@ -7,10 +7,19 @@ import * as z from "zod";
|
|
|
7
7
|
|
|
8
8
|
export type VendorsControllerSearchGlobalVendorsV1Request = {
|
|
9
9
|
name?: string | undefined;
|
|
10
|
+
lite?: string | undefined;
|
|
11
|
+
suggest?: string | undefined;
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
export const VendorsControllerSearchGlobalVendorsV1Request$zodSchema: z.ZodType<
|
|
13
15
|
VendorsControllerSearchGlobalVendorsV1Request
|
|
14
16
|
> = z.object({
|
|
15
|
-
|
|
17
|
+
lite: z.string().describe(
|
|
18
|
+
"Return only the fields a suggestion list renders, omitting the risk assessment payload",
|
|
19
|
+
).optional(),
|
|
20
|
+
name: z.string().describe("Vendor name, or part of one, to search for")
|
|
21
|
+
.optional(),
|
|
22
|
+
suggest: z.string().describe(
|
|
23
|
+
"When nothing matches, resolve the name and return the vendor the caller probably meant. Off by default: it can reach a paid provider, so set it once a name has been committed rather than on every keystroke.",
|
|
24
|
+
).optional(),
|
|
16
25
|
});
|
package/src/tool-names.ts
CHANGED
|
@@ -1524,6 +1524,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
1524
1524
|
"name": "get-sync-history",
|
|
1525
1525
|
"description": "Get sync history for a framework instance\n\nGet sync history for a framework instance in Comp AI. Manage SOC 2, ISO 27001, HIPAA, GDPR, and custom framework instances, requirements, scores, and sync history."
|
|
1526
1526
|
},
|
|
1527
|
+
{
|
|
1528
|
+
"name": "search",
|
|
1529
|
+
"description": "Search compliance records\n\nSearch policies, tasks, documents, people, controls, vendors, and risks by keyword in one call to locate a compliance record before fetching it by ID."
|
|
1530
|
+
},
|
|
1527
1531
|
{
|
|
1528
1532
|
"name": "get-audit-logs",
|
|
1529
1533
|
"description": "List audit logs\n\nList organization audit logs for compliance activity, access changes, evidence updates, and customer-facing review events."
|