@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
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { CompAiCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
9
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
12
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -17,7 +19,10 @@ import {
|
|
|
17
19
|
UnexpectedClientError,
|
|
18
20
|
} from "../models/errors/httpclienterrors.js";
|
|
19
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
ExportSOADocumentDto,
|
|
24
|
+
ExportSOADocumentDto$zodSchema,
|
|
25
|
+
} from "../models/exportsoadocumentdto.js";
|
|
21
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
22
27
|
import { Result } from "../types/fp.js";
|
|
23
28
|
|
|
@@ -29,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
34
|
*/
|
|
30
35
|
export function soaSOAControllerExportDocumentV1(
|
|
31
36
|
client$: CompAiCore,
|
|
32
|
-
|
|
37
|
+
request: ExportSOADocumentDto,
|
|
33
38
|
options?: RequestOptions,
|
|
34
39
|
): APIPromise<
|
|
35
40
|
Result<
|
|
@@ -45,14 +50,14 @@ export function soaSOAControllerExportDocumentV1(
|
|
|
45
50
|
> {
|
|
46
51
|
return new APIPromise($do(
|
|
47
52
|
client$,
|
|
48
|
-
|
|
53
|
+
request,
|
|
49
54
|
options,
|
|
50
55
|
));
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
async function $do(
|
|
54
59
|
client$: CompAiCore,
|
|
55
|
-
|
|
60
|
+
request: ExportSOADocumentDto,
|
|
56
61
|
options?: RequestOptions,
|
|
57
62
|
): Promise<
|
|
58
63
|
[
|
|
@@ -69,6 +74,16 @@ async function $do(
|
|
|
69
74
|
APICall,
|
|
70
75
|
]
|
|
71
76
|
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => ExportSOADocumentDto$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
72
87
|
const path$ = pathToFunc("/v1/soa/export")();
|
|
73
88
|
|
|
74
89
|
const headers$ = new Headers(compactMap({
|
|
@@ -103,6 +118,7 @@ async function $do(
|
|
|
103
118
|
baseURL: options?.serverURL,
|
|
104
119
|
path: path$,
|
|
105
120
|
headers: headers$,
|
|
121
|
+
body: body$,
|
|
106
122
|
userAgent: client$._options.userAgent,
|
|
107
123
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
108
124
|
|| 120000,
|
|
@@ -4,11 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { CompAiCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
9
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
12
|
import { pathToFunc } from "../lib/url.js";
|
|
11
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
EnsureSOASetupDto,
|
|
15
|
+
EnsureSOASetupDto$zodSchema,
|
|
16
|
+
} from "../models/ensuresoasetupdto.js";
|
|
12
17
|
import { APIError } from "../models/errors/apierror.js";
|
|
13
18
|
import {
|
|
14
19
|
ConnectionError,
|
|
@@ -29,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
34
|
*/
|
|
30
35
|
export function soaSOAControllerGetSetupV1(
|
|
31
36
|
client$: CompAiCore,
|
|
32
|
-
|
|
37
|
+
request: EnsureSOASetupDto,
|
|
33
38
|
options?: RequestOptions,
|
|
34
39
|
): APIPromise<
|
|
35
40
|
Result<
|
|
@@ -45,14 +50,14 @@ export function soaSOAControllerGetSetupV1(
|
|
|
45
50
|
> {
|
|
46
51
|
return new APIPromise($do(
|
|
47
52
|
client$,
|
|
48
|
-
|
|
53
|
+
request,
|
|
49
54
|
options,
|
|
50
55
|
));
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
async function $do(
|
|
54
59
|
client$: CompAiCore,
|
|
55
|
-
|
|
60
|
+
request: EnsureSOASetupDto,
|
|
56
61
|
options?: RequestOptions,
|
|
57
62
|
): Promise<
|
|
58
63
|
[
|
|
@@ -69,6 +74,16 @@ async function $do(
|
|
|
69
74
|
APICall,
|
|
70
75
|
]
|
|
71
76
|
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => EnsureSOASetupDto$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
72
87
|
const path$ = pathToFunc("/v1/soa/get-setup")();
|
|
73
88
|
|
|
74
89
|
const headers$ = new Headers(compactMap({
|
|
@@ -103,6 +118,7 @@ async function $do(
|
|
|
103
118
|
baseURL: options?.serverURL,
|
|
104
119
|
path: path$,
|
|
105
120
|
headers: headers$,
|
|
121
|
+
body: body$,
|
|
106
122
|
userAgent: client$._options.userAgent,
|
|
107
123
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
108
124
|
|| 120000,
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { CompAiCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
9
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
12
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -17,7 +19,10 @@ import {
|
|
|
17
19
|
UnexpectedClientError,
|
|
18
20
|
} from "../models/errors/httpclienterrors.js";
|
|
19
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
SaveSOAAnswerDto,
|
|
24
|
+
SaveSOAAnswerDto$zodSchema,
|
|
25
|
+
} from "../models/savesoaanswerdto.js";
|
|
21
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
22
27
|
import { Result } from "../types/fp.js";
|
|
23
28
|
|
|
@@ -29,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
34
|
*/
|
|
30
35
|
export function soaSOAControllerSaveAnswerV1(
|
|
31
36
|
client$: CompAiCore,
|
|
32
|
-
|
|
37
|
+
request: SaveSOAAnswerDto,
|
|
33
38
|
options?: RequestOptions,
|
|
34
39
|
): APIPromise<
|
|
35
40
|
Result<
|
|
@@ -45,14 +50,14 @@ export function soaSOAControllerSaveAnswerV1(
|
|
|
45
50
|
> {
|
|
46
51
|
return new APIPromise($do(
|
|
47
52
|
client$,
|
|
48
|
-
|
|
53
|
+
request,
|
|
49
54
|
options,
|
|
50
55
|
));
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
async function $do(
|
|
54
59
|
client$: CompAiCore,
|
|
55
|
-
|
|
60
|
+
request: SaveSOAAnswerDto,
|
|
56
61
|
options?: RequestOptions,
|
|
57
62
|
): Promise<
|
|
58
63
|
[
|
|
@@ -69,6 +74,16 @@ async function $do(
|
|
|
69
74
|
APICall,
|
|
70
75
|
]
|
|
71
76
|
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => SaveSOAAnswerDto$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
72
87
|
const path$ = pathToFunc("/v1/soa/save-answer")();
|
|
73
88
|
|
|
74
89
|
const headers$ = new Headers(compactMap({
|
|
@@ -103,6 +118,7 @@ async function $do(
|
|
|
103
118
|
baseURL: options?.serverURL,
|
|
104
119
|
path: path$,
|
|
105
120
|
headers: headers$,
|
|
121
|
+
body: body$,
|
|
106
122
|
userAgent: client$._options.userAgent,
|
|
107
123
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
108
124
|
|| 120000,
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { CompAiCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
9
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
12
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -17,7 +19,10 @@ import {
|
|
|
17
19
|
UnexpectedClientError,
|
|
18
20
|
} from "../models/errors/httpclienterrors.js";
|
|
19
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
SubmitSOAForApprovalDto,
|
|
24
|
+
SubmitSOAForApprovalDto$zodSchema,
|
|
25
|
+
} from "../models/submitsoaforapprovaldto.js";
|
|
21
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
22
27
|
import { Result } from "../types/fp.js";
|
|
23
28
|
|
|
@@ -29,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
34
|
*/
|
|
30
35
|
export function soaSOAControllerSubmitForApprovalV1(
|
|
31
36
|
client$: CompAiCore,
|
|
32
|
-
|
|
37
|
+
request: SubmitSOAForApprovalDto,
|
|
33
38
|
options?: RequestOptions,
|
|
34
39
|
): APIPromise<
|
|
35
40
|
Result<
|
|
@@ -45,14 +50,14 @@ export function soaSOAControllerSubmitForApprovalV1(
|
|
|
45
50
|
> {
|
|
46
51
|
return new APIPromise($do(
|
|
47
52
|
client$,
|
|
48
|
-
|
|
53
|
+
request,
|
|
49
54
|
options,
|
|
50
55
|
));
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
async function $do(
|
|
54
59
|
client$: CompAiCore,
|
|
55
|
-
|
|
60
|
+
request: SubmitSOAForApprovalDto,
|
|
56
61
|
options?: RequestOptions,
|
|
57
62
|
): Promise<
|
|
58
63
|
[
|
|
@@ -69,6 +74,16 @@ async function $do(
|
|
|
69
74
|
APICall,
|
|
70
75
|
]
|
|
71
76
|
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => SubmitSOAForApprovalDto$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
72
87
|
const path$ = pathToFunc("/v1/soa/submit-for-approval")();
|
|
73
88
|
|
|
74
89
|
const headers$ = new Headers(compactMap({
|
|
@@ -103,6 +118,7 @@ async function $do(
|
|
|
103
118
|
baseURL: options?.serverURL,
|
|
104
119
|
path: path$,
|
|
105
120
|
headers: headers$,
|
|
121
|
+
body: body$,
|
|
106
122
|
userAgent: client$._options.userAgent,
|
|
107
123
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
108
124
|
|| 120000,
|
|
@@ -89,7 +89,9 @@ async function $do(
|
|
|
89
89
|
const body$ = null;
|
|
90
90
|
const path$ = pathToFunc("/v1/vendors/global/search")();
|
|
91
91
|
const query$ = encodeFormQuery({
|
|
92
|
+
"lite": payload$?.lite,
|
|
92
93
|
"name": payload$?.name,
|
|
94
|
+
"suggest": payload$?.suggest,
|
|
93
95
|
});
|
|
94
96
|
|
|
95
97
|
const headers$ = new Headers(compactMap({
|
package/src/landing-page.ts
CHANGED
|
@@ -931,7 +931,7 @@ http_headers = { "apikey" = "YOUR_APIKEY" }`;
|
|
|
931
931
|
<h1>Instructions</h1>
|
|
932
932
|
<p>One-click installation for Claude Desktop users</p>
|
|
933
933
|
<div class="instruction-item">
|
|
934
|
-
<a href="https://github.com/trycompai/comp-v2/releases/download/v0.3.
|
|
934
|
+
<a href="https://github.com/trycompai/comp-v2/releases/download/v0.3.3/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
935
935
|
📥 Download MCP Bundle
|
|
936
936
|
</a>
|
|
937
937
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -66,8 +66,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
66
66
|
export const SDK_METADATA = {
|
|
67
67
|
language: "typescript",
|
|
68
68
|
openapiDocVersion: "1.0",
|
|
69
|
-
sdkVersion: "0.3.
|
|
69
|
+
sdkVersion: "0.3.3",
|
|
70
70
|
genVersion: "2.928.0",
|
|
71
71
|
userAgent:
|
|
72
|
-
"speakeasy-sdk/mcp-typescript 0.3.
|
|
72
|
+
"speakeasy-sdk/mcp-typescript 0.3.3 2.928.0 1.0 @trycompai/mcp-server",
|
|
73
73
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -307,6 +307,7 @@ import { tool$rolesRolesControllerGetRoleV1 } from "./tools/rolesRolesController
|
|
|
307
307
|
import { tool$rolesRolesControllerListRolesV1 } from "./tools/rolesRolesControllerListRolesV1.js";
|
|
308
308
|
import { tool$rolesRolesControllerUpdateBuiltInObligationsV1 } from "./tools/rolesRolesControllerUpdateBuiltInObligationsV1.js";
|
|
309
309
|
import { tool$rolesRolesControllerUpdateRoleV1 } from "./tools/rolesRolesControllerUpdateRoleV1.js";
|
|
310
|
+
import { tool$searchSearchControllerSearchV1 } from "./tools/searchSearchControllerSearchV1.js";
|
|
310
311
|
import { tool$securityPenetrationTestsPentestFindingContextsControllerListV1 } from "./tools/securityPenetrationTestsPentestFindingContextsControllerListV1.js";
|
|
311
312
|
import { tool$securityPenetrationTestsPentestFindingContextsControllerRemoveV1 } from "./tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js";
|
|
312
313
|
import { tool$securityPenetrationTestsPentestFindingContextsControllerUpsertV1 } from "./tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js";
|
|
@@ -453,7 +454,7 @@ export function createMCPServer(deps: {
|
|
|
453
454
|
}) {
|
|
454
455
|
const server = new McpServer({
|
|
455
456
|
name: "CompAi",
|
|
456
|
-
version: "0.3.
|
|
457
|
+
version: "0.3.3",
|
|
457
458
|
});
|
|
458
459
|
|
|
459
460
|
const getClient = deps.getSDK || (() =>
|
|
@@ -885,6 +886,7 @@ export function createMCPServer(deps: {
|
|
|
885
886
|
tool(tool$frameworksFrameworksControllerSyncFrameworkV1);
|
|
886
887
|
tool(tool$frameworksFrameworksControllerRollbackFrameworkV1);
|
|
887
888
|
tool(tool$frameworksFrameworksControllerGetSyncHistoryV1);
|
|
889
|
+
tool(tool$searchSearchControllerSearchV1);
|
|
888
890
|
tool(tool$auditLogsAuditLogControllerGetAuditLogsV1);
|
|
889
891
|
tool(tool$controlsControlsControllerFindAllV1);
|
|
890
892
|
tool(tool$controlsControlsControllerCreateV1);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e96ffbe56b3a
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { searchSearchControllerSearchV1 } from "../../funcs/searchSearchControllerSearchV1.js";
|
|
7
|
+
import { SearchControllerSearchV1Request$zodSchema } from "../../models/searchcontrollersearchv1op.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: SearchControllerSearchV1Request$zodSchema,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$searchSearchControllerSearchV1: ToolDefinition<typeof args> =
|
|
15
|
+
{
|
|
16
|
+
name: "search",
|
|
17
|
+
description: `Search compliance records
|
|
18
|
+
|
|
19
|
+
Search policies, tasks, documents, people, controls, vendors, and risks by keyword in one call to locate a compliance record before fetching it by ID.`,
|
|
20
|
+
annotations: {
|
|
21
|
+
"title": "",
|
|
22
|
+
"destructiveHint": false,
|
|
23
|
+
"idempotentHint": true,
|
|
24
|
+
"openWorldHint": false,
|
|
25
|
+
"readOnlyHint": true,
|
|
26
|
+
},
|
|
27
|
+
args,
|
|
28
|
+
tool: async (client, args, ctx) => {
|
|
29
|
+
const [result] = await searchSearchControllerSearchV1(
|
|
30
|
+
client,
|
|
31
|
+
args.request,
|
|
32
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
33
|
+
).$inspect();
|
|
34
|
+
|
|
35
|
+
if (!result.ok) {
|
|
36
|
+
return {
|
|
37
|
+
content: [{ type: "text", text: result.error.message }],
|
|
38
|
+
isError: true,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return formatResult(result.value);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 144225764ec2
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type AnswerSourceDto = {
|
|
9
|
+
sourceType: string;
|
|
10
|
+
sourceName?: string | undefined;
|
|
11
|
+
sourceId?: string | undefined;
|
|
12
|
+
policyName?: string | undefined;
|
|
13
|
+
documentName?: string | undefined;
|
|
14
|
+
score?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const AnswerSourceDto$zodSchema: z.ZodType<AnswerSourceDto> = z.object({
|
|
18
|
+
documentName: z.string().optional().describe(
|
|
19
|
+
"Name of the knowledge base document, when the source is a document.",
|
|
20
|
+
),
|
|
21
|
+
policyName: z.string().optional().describe(
|
|
22
|
+
"Name of the policy, when the source is a policy.",
|
|
23
|
+
),
|
|
24
|
+
score: z.int().optional().describe(
|
|
25
|
+
"Relevance score of this source. Validated as an integer.",
|
|
26
|
+
),
|
|
27
|
+
sourceId: z.string().optional().describe(
|
|
28
|
+
"ID of the underlying record. The prefix depends on sourceType (policy, document, manual answer).",
|
|
29
|
+
),
|
|
30
|
+
sourceName: z.string().optional().describe(
|
|
31
|
+
"Human-readable label for the source shown in the UI.",
|
|
32
|
+
),
|
|
33
|
+
sourceType: z.string().describe(
|
|
34
|
+
"Kind of knowledge the answer came from, e.g. policy, context, manual_answer.",
|
|
35
|
+
),
|
|
36
|
+
});
|
|
@@ -5,7 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type ApproveSOADocumentDto = {
|
|
8
|
+
export type ApproveSOADocumentDto = {
|
|
9
|
+
organizationId: string;
|
|
10
|
+
documentId: string;
|
|
11
|
+
};
|
|
9
12
|
|
|
10
13
|
export const ApproveSOADocumentDto$zodSchema: z.ZodType<ApproveSOADocumentDto> =
|
|
11
|
-
z.object({
|
|
14
|
+
z.object({
|
|
15
|
+
documentId: z.string().describe("ID of the SOA document to approve"),
|
|
16
|
+
organizationId: z.string().describe(
|
|
17
|
+
"ID of the organization that owns the SOA document",
|
|
18
|
+
),
|
|
19
|
+
});
|
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type AuthCodeDto = {};
|
|
8
|
+
export type AuthCodeDto = { callback_port: number; state: string };
|
|
9
9
|
|
|
10
|
-
export const AuthCodeDto$zodSchema: z.ZodType<AuthCodeDto> = z.object({
|
|
10
|
+
export const AuthCodeDto$zodSchema: z.ZodType<AuthCodeDto> = z.object({
|
|
11
|
+
callback_port: z.number().describe(
|
|
12
|
+
"Localhost port the device agent is listening on to receive the auth callback",
|
|
13
|
+
),
|
|
14
|
+
state: z.string().describe(
|
|
15
|
+
"Opaque anti-forgery value generated by the device agent and echoed back on callback",
|
|
16
|
+
),
|
|
17
|
+
});
|
|
@@ -4,7 +4,25 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
AutoAnswerQuestionDto,
|
|
9
|
+
AutoAnswerQuestionDto$zodSchema,
|
|
10
|
+
} from "./autoanswerquestiondto.js";
|
|
7
11
|
|
|
8
|
-
export type AutoAnswerDto = {
|
|
12
|
+
export type AutoAnswerDto = {
|
|
13
|
+
organizationId: string;
|
|
14
|
+
questionnaireId?: string | undefined;
|
|
15
|
+
questionsAndAnswers: Array<AutoAnswerQuestionDto>;
|
|
16
|
+
};
|
|
9
17
|
|
|
10
|
-
export const AutoAnswerDto$zodSchema: z.ZodType<AutoAnswerDto> = z.object({
|
|
18
|
+
export const AutoAnswerDto$zodSchema: z.ZodType<AutoAnswerDto> = z.object({
|
|
19
|
+
organizationId: z.string().describe(
|
|
20
|
+
"Organization ID. The API overwrites this with the authenticated active organization.",
|
|
21
|
+
),
|
|
22
|
+
questionnaireId: z.string().optional().describe(
|
|
23
|
+
"Questionnaire to save generated answers into. Omit to stream answers without persisting them.",
|
|
24
|
+
),
|
|
25
|
+
questionsAndAnswers: z.array(AutoAnswerQuestionDto$zodSchema).describe(
|
|
26
|
+
"Questions to auto-answer, together with any answers already filled in.",
|
|
27
|
+
),
|
|
28
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: da4a54407c3a
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type AutoAnswerQuestionDto = {
|
|
9
|
+
question: string;
|
|
10
|
+
answer?: string | null | undefined;
|
|
11
|
+
_originalIndex?: number | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const AutoAnswerQuestionDto$zodSchema: z.ZodType<AutoAnswerQuestionDto> =
|
|
15
|
+
z.object({
|
|
16
|
+
_originalIndex: z.number().optional().describe(
|
|
17
|
+
"Zero-based position of this question in the original questionnaire, used to map answers back.",
|
|
18
|
+
),
|
|
19
|
+
answer: z.string().nullable().optional().describe(
|
|
20
|
+
"Existing answer. Questions that already have a non-empty answer are skipped.",
|
|
21
|
+
),
|
|
22
|
+
question: z.string().describe("Questionnaire question text to answer."),
|
|
23
|
+
});
|
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type AutoFillSOADto = {};
|
|
8
|
+
export type AutoFillSOADto = { organizationId: string; documentId: string };
|
|
9
9
|
|
|
10
|
-
export const AutoFillSOADto$zodSchema: z.ZodType<AutoFillSOADto> = z.object({
|
|
10
|
+
export const AutoFillSOADto$zodSchema: z.ZodType<AutoFillSOADto> = z.object({
|
|
11
|
+
documentId: z.string().describe(
|
|
12
|
+
"ID of the SOA document to auto-fill with generated answers",
|
|
13
|
+
),
|
|
14
|
+
organizationId: z.string().describe(
|
|
15
|
+
"ID of the organization that owns the SOA document",
|
|
16
|
+
),
|
|
17
|
+
});
|
package/src/models/checkindto.ts
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type CheckInDto = {
|
|
8
|
+
export type CheckInDto = {
|
|
9
|
+
deviceId: string;
|
|
10
|
+
agentVersion?: string | undefined;
|
|
11
|
+
};
|
|
9
12
|
|
|
10
|
-
export const CheckInDto$zodSchema: z.ZodType<CheckInDto> = z.object({
|
|
13
|
+
export const CheckInDto$zodSchema: z.ZodType<CheckInDto> = z.object({
|
|
14
|
+
agentVersion: z.string().optional().describe(
|
|
15
|
+
"Version of the device agent submitting the check-in",
|
|
16
|
+
),
|
|
17
|
+
deviceId: z.string().describe(
|
|
18
|
+
"ID of the device the agent is checking in for",
|
|
19
|
+
),
|
|
20
|
+
});
|
|
@@ -5,7 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type CreateSOADocumentDto = {
|
|
8
|
+
export type CreateSOADocumentDto = {
|
|
9
|
+
organizationId: string;
|
|
10
|
+
frameworkId: string;
|
|
11
|
+
};
|
|
9
12
|
|
|
10
13
|
export const CreateSOADocumentDto$zodSchema: z.ZodType<CreateSOADocumentDto> = z
|
|
11
|
-
.object({
|
|
14
|
+
.object({
|
|
15
|
+
frameworkId: z.string().describe(
|
|
16
|
+
"ID of the framework the SOA document is created for",
|
|
17
|
+
),
|
|
18
|
+
organizationId: z.string().describe(
|
|
19
|
+
"ID of the organization to create the SOA document for",
|
|
20
|
+
),
|
|
21
|
+
});
|
|
@@ -5,7 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type DeclineSOADocumentDto = {
|
|
8
|
+
export type DeclineSOADocumentDto = {
|
|
9
|
+
organizationId: string;
|
|
10
|
+
documentId: string;
|
|
11
|
+
};
|
|
9
12
|
|
|
10
13
|
export const DeclineSOADocumentDto$zodSchema: z.ZodType<DeclineSOADocumentDto> =
|
|
11
|
-
z.object({
|
|
14
|
+
z.object({
|
|
15
|
+
documentId: z.string().describe("ID of the SOA document to decline"),
|
|
16
|
+
organizationId: z.string().describe(
|
|
17
|
+
"ID of the organization that owns the SOA document",
|
|
18
|
+
),
|
|
19
|
+
});
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type DeleteAllManualAnswersDto = {};
|
|
8
|
+
export type DeleteAllManualAnswersDto = { organizationId: string };
|
|
9
9
|
|
|
10
10
|
export const DeleteAllManualAnswersDto$zodSchema: z.ZodType<
|
|
11
11
|
DeleteAllManualAnswersDto
|
|
12
|
-
> = z.object({
|
|
12
|
+
> = z.object({
|
|
13
|
+
organizationId: z.string().describe(
|
|
14
|
+
"Organization whose manual answers are all deleted. Overwritten with the authenticated organization.",
|
|
15
|
+
),
|
|
16
|
+
});
|
|
@@ -5,8 +5,20 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type DeleteAnswerDto = {
|
|
8
|
+
export type DeleteAnswerDto = {
|
|
9
|
+
questionnaireId: string;
|
|
10
|
+
organizationId: string;
|
|
11
|
+
questionAnswerId: string;
|
|
12
|
+
};
|
|
9
13
|
|
|
10
|
-
export const DeleteAnswerDto$zodSchema: z.ZodType<DeleteAnswerDto> = z.object(
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
export const DeleteAnswerDto$zodSchema: z.ZodType<DeleteAnswerDto> = z.object({
|
|
15
|
+
organizationId: z.string().describe(
|
|
16
|
+
"Organization ID. The API overwrites this with the authenticated active organization.",
|
|
17
|
+
),
|
|
18
|
+
questionAnswerId: z.string().describe(
|
|
19
|
+
"Question/answer record whose answer is cleared and reset to untouched.",
|
|
20
|
+
),
|
|
21
|
+
questionnaireId: z.string().describe(
|
|
22
|
+
"Questionnaire that contains the answer to clear.",
|
|
23
|
+
),
|
|
24
|
+
});
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type DeleteManualAnswerDto = {};
|
|
8
|
+
export type DeleteManualAnswerDto = { organizationId: string };
|
|
9
9
|
|
|
10
10
|
export const DeleteManualAnswerDto$zodSchema: z.ZodType<DeleteManualAnswerDto> =
|
|
11
|
-
z.object({
|
|
11
|
+
z.object({
|
|
12
|
+
organizationId: z.string().describe(
|
|
13
|
+
"Organization that owns the manual answer. Overwritten with the authenticated organization.",
|
|
14
|
+
),
|
|
15
|
+
});
|
|
@@ -5,7 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type EnsureSOASetupDto = {};
|
|
8
|
+
export type EnsureSOASetupDto = { organizationId: string; frameworkId: string };
|
|
9
9
|
|
|
10
10
|
export const EnsureSOASetupDto$zodSchema: z.ZodType<EnsureSOASetupDto> = z
|
|
11
|
-
.object({
|
|
11
|
+
.object({
|
|
12
|
+
frameworkId: z.string().describe(
|
|
13
|
+
"ID of the framework to scope the SOA configuration and document to",
|
|
14
|
+
),
|
|
15
|
+
organizationId: z.string().describe(
|
|
16
|
+
"ID of the organization to ensure the SOA setup for",
|
|
17
|
+
),
|
|
18
|
+
});
|