@trycompai/mcp-server 0.1.0 → 0.2.0
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 +3550 -2509
- package/bin/mcp-server.js.map +43 -21
- package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts +16 -0
- package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts.map +1 -0
- package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.js +87 -0
- package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.js.map +1 -0
- package/esm/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.d.ts +2 -2
- package/esm/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js +3 -3
- package/esm/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js.map +1 -1
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts +18 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts.map +1 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.js +88 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.js.map +1 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts +18 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts.map +1 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js +90 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js.map +1 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts +18 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts.map +1 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js +91 -0
- package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js.map +1 -0
- package/esm/funcs/taskAutomationsAutomationsControllerCreateVersionV1.js +3 -2
- package/esm/funcs/taskAutomationsAutomationsControllerCreateVersionV1.js.map +1 -1
- package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts +16 -0
- package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts.map +1 -0
- package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js +87 -0
- package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts +17 -0
- package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.js +73 -0
- package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.js.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts +18 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js +84 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts +18 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts.map +1 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.js +84 -0
- package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.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/encodings.js +1 -1
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/env.d.ts.map +1 -1
- package/esm/lib/env.js +2 -2
- package/esm/lib/env.js.map +1 -1
- package/esm/lib/primitives.d.ts +1 -0
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +17 -0
- package/esm/lib/primitives.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 +17 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts +7 -0
- package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.js +34 -0
- package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.js.map +1 -0
- package/esm/mcp-server/tools/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js +2 -2
- package/esm/mcp-server/tools/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js.map +1 -1
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts +7 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.js +34 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.js.map +1 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts +7 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js +34 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js.map +1 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts +7 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js +34 -0
- package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js.map +1 -0
- package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts +7 -0
- package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js +34 -0
- package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts +3 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.js +29 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.js.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts +7 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js +34 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts +7 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.js +35 -0
- package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.js.map +1 -0
- package/esm/models/automationscontrollercreateversionv1op.d.ts +2 -0
- package/esm/models/automationscontrollercreateversionv1op.d.ts.map +1 -1
- package/esm/models/automationscontrollercreateversionv1op.js +2 -0
- package/esm/models/automationscontrollercreateversionv1op.js.map +1 -1
- package/esm/models/cloudsecuritycontrollerresolvesessionv1op.d.ts +6 -0
- package/esm/models/cloudsecuritycontrollerresolvesessionv1op.d.ts.map +1 -0
- package/esm/models/cloudsecuritycontrollerresolvesessionv1op.js +8 -0
- package/esm/models/cloudsecuritycontrollerresolvesessionv1op.js.map +1 -0
- package/esm/models/complianceresourceresponsedto.d.ts +13 -1
- package/esm/models/complianceresourceresponsedto.d.ts.map +1 -1
- package/esm/models/complianceresourceresponsedto.js +10 -2
- package/esm/models/complianceresourceresponsedto.js.map +1 -1
- package/esm/models/complianceresourcesignedurldto.d.ts +4 -3
- package/esm/models/complianceresourcesignedurldto.d.ts.map +1 -1
- package/esm/models/complianceresourcesignedurldto.js +5 -3
- package/esm/models/complianceresourcesignedurldto.js.map +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts +3 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts.map +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.js +2 -0
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.js.map +1 -1
- package/esm/models/createcontroldto.d.ts +2 -0
- package/esm/models/createcontroldto.d.ts.map +1 -1
- package/esm/models/createcontroldto.js +2 -0
- package/esm/models/createcontroldto.js.map +1 -1
- package/esm/models/createfindingdto.d.ts +2 -0
- package/esm/models/createfindingdto.d.ts.map +1 -1
- package/esm/models/createfindingdto.js +2 -0
- package/esm/models/createfindingdto.js.map +1 -1
- package/esm/models/createpenetrationtestdto.d.ts +1 -0
- package/esm/models/createpenetrationtestdto.d.ts.map +1 -1
- package/esm/models/createpenetrationtestdto.js +1 -0
- package/esm/models/createpenetrationtestdto.js.map +1 -1
- package/esm/models/createversiondto.d.ts +2 -1
- package/esm/models/createversiondto.d.ts.map +1 -1
- package/esm/models/createversiondto.js +3 -2
- package/esm/models/createversiondto.js.map +1 -1
- package/esm/models/findingscontrollerlistfindingsv1op.d.ts +2 -0
- package/esm/models/findingscontrollerlistfindingsv1op.d.ts.map +1 -1
- package/esm/models/findingscontrollerlistfindingsv1op.js +2 -0
- package/esm/models/findingscontrollerlistfindingsv1op.js.map +1 -1
- package/esm/models/linkdocumenttypesdto.d.ts +2 -0
- package/esm/models/linkdocumenttypesdto.d.ts.map +1 -1
- package/esm/models/linkdocumenttypesdto.js +2 -0
- package/esm/models/linkdocumenttypesdto.js.map +1 -1
- package/esm/models/pentestfindingcontextscontrollerlistv1op.d.ts +7 -0
- package/esm/models/pentestfindingcontextscontrollerlistv1op.d.ts.map +1 -0
- package/esm/models/pentestfindingcontextscontrollerlistv1op.js +9 -0
- package/esm/models/pentestfindingcontextscontrollerlistv1op.js.map +1 -0
- package/esm/models/pentestfindingcontextscontrollerremovev1op.d.ts +7 -0
- package/esm/models/pentestfindingcontextscontrollerremovev1op.d.ts.map +1 -0
- package/esm/models/pentestfindingcontextscontrollerremovev1op.js +9 -0
- package/esm/models/pentestfindingcontextscontrollerremovev1op.js.map +1 -0
- package/esm/models/pentestfindingcontextscontrollerupsertv1op.d.ts +9 -0
- package/esm/models/pentestfindingcontextscontrollerupsertv1op.d.ts.map +1 -0
- package/esm/models/pentestfindingcontextscontrollerupsertv1op.js +11 -0
- package/esm/models/pentestfindingcontextscontrollerupsertv1op.js.map +1 -0
- package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.d.ts +6 -0
- package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.d.ts.map +1 -0
- package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.js +8 -0
- package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.js.map +1 -0
- package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.d.ts +42 -0
- package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.d.ts.map +1 -0
- package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.js +44 -0
- package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.js.map +1 -0
- package/esm/models/updateallowedemailsdto.d.ts +6 -0
- package/esm/models/updateallowedemailsdto.d.ts.map +1 -0
- package/esm/models/updateallowedemailsdto.js +8 -0
- package/esm/models/updateallowedemailsdto.js.map +1 -0
- package/esm/models/uploadcomplianceresourcedto.d.ts +4 -3
- package/esm/models/uploadcomplianceresourcedto.d.ts.map +1 -1
- package/esm/models/uploadcomplianceresourcedto.js +4 -3
- package/esm/models/uploadcomplianceresourcedto.js.map +1 -1
- package/esm/models/upsertfindingcontextdto.d.ts +7 -0
- package/esm/models/upsertfindingcontextdto.d.ts.map +1 -0
- package/esm/models/upsertfindingcontextdto.js +9 -0
- package/esm/models/upsertfindingcontextdto.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +33 -1
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.ts +153 -0
- package/src/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.ts +3 -3
- package/src/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.ts +155 -0
- package/src/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.ts +160 -0
- package/src/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.ts +161 -0
- package/src/funcs/taskAutomationsAutomationsControllerCreateVersionV1.ts +3 -2
- package/src/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.ts +155 -0
- package/src/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.ts +125 -0
- package/src/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.ts +146 -0
- package/src/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.ts +149 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +6 -3
- package/src/lib/primitives.ts +16 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -1
- package/src/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.ts +45 -0
- package/src/mcp-server/tools/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.ts +2 -2
- package/src/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.ts +44 -0
- package/src/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.ts +44 -0
- package/src/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.ts +44 -0
- package/src/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.ts +44 -0
- package/src/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.ts +38 -0
- package/src/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.ts +44 -0
- package/src/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.ts +46 -0
- package/src/models/automationscontrollercreateversionv1op.ts +6 -0
- package/src/models/cloudsecuritycontrollerresolvesessionv1op.ts +14 -0
- package/src/models/complianceresourceresponsedto.ts +23 -3
- package/src/models/complianceresourcesignedurldto.ts +9 -6
- package/src/models/controlscontrollerunlinkdocumenttypev1op.ts +3 -1
- package/src/models/createcontroldto.ts +2 -0
- package/src/models/createfindingdto.ts +2 -0
- package/src/models/createpenetrationtestdto.ts +4 -0
- package/src/models/createversiondto.ts +6 -4
- package/src/models/findingscontrollerlistfindingsv1op.ts +2 -0
- package/src/models/linkdocumenttypesdto.ts +2 -0
- package/src/models/pentestfindingcontextscontrollerlistv1op.ts +19 -0
- package/src/models/pentestfindingcontextscontrollerremovev1op.ts +18 -0
- package/src/models/pentestfindingcontextscontrollerupsertv1op.ts +24 -0
- package/src/models/trustaccesscontrollergetpubliccustomframeworksv1op.ts +18 -0
- package/src/models/trustportalcontrollerupdatecustomframeworkv1op.ts +84 -0
- package/src/models/updateallowedemailsdto.ts +15 -0
- package/src/models/uploadcomplianceresourcedto.ts +10 -6
- package/src/models/upsertfindingcontextdto.ts +16 -0
- package/src/tool-names.ts +33 -1
- package/esm/lib/dlv.d.ts +0 -14
- package/esm/lib/dlv.d.ts.map +0 -1
- package/esm/lib/dlv.js +0 -46
- package/esm/lib/dlv.js.map +0 -1
- package/esm/lib/is-plain-object.d.ts +0 -2
- package/esm/lib/is-plain-object.d.ts.map +0 -1
- package/esm/lib/is-plain-object.js +0 -38
- package/esm/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompAiCore } from "../core.js";
|
|
6
|
+
import { 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
|
+
TrustAccessControllerGetPublicCustomFrameworksV1Request,
|
|
23
|
+
TrustAccessControllerGetPublicCustomFrameworksV1Request$zodSchema,
|
|
24
|
+
} from "../models/trustaccesscontrollergetpubliccustomframeworksv1op.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get org-authored custom frameworks shown on a trust portal
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Get org-authored custom frameworks shown on a trust portal in Comp AI. Manage external Trust Center access requests, NDA signing, grants, tokenized document downloads, public FAQs, and reviewer access.
|
|
33
|
+
*/
|
|
34
|
+
export function trustAccessTrustAccessControllerGetPublicCustomFrameworksV1(
|
|
35
|
+
client$: CompAiCore,
|
|
36
|
+
request: TrustAccessControllerGetPublicCustomFrameworksV1Request,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
Response,
|
|
41
|
+
| APIError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client$,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client$: CompAiCore,
|
|
59
|
+
request: TrustAccessControllerGetPublicCustomFrameworksV1Request,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
Response,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed$ = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value$) =>
|
|
79
|
+
TrustAccessControllerGetPublicCustomFrameworksV1Request$zodSchema.parse(
|
|
80
|
+
value$,
|
|
81
|
+
),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed$.ok) {
|
|
85
|
+
return [parsed$, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload$ = parsed$.value;
|
|
88
|
+
const body$ = null;
|
|
89
|
+
|
|
90
|
+
const pathParams$ = {
|
|
91
|
+
friendlyUrl: encodeSimple("friendlyUrl", payload$.friendlyUrl, {
|
|
92
|
+
explode: false,
|
|
93
|
+
charEncoding: "percent",
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
const path$ = pathToFunc("/v1/trust-access/{friendlyUrl}/custom-frameworks")(
|
|
97
|
+
pathParams$,
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const headers$ = new Headers(compactMap({
|
|
101
|
+
Accept: "*/*",
|
|
102
|
+
}));
|
|
103
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
104
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
|
+
|
|
106
|
+
const context = {
|
|
107
|
+
options: client$._options,
|
|
108
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
109
|
+
operationID: "TrustAccessController_getPublicCustomFrameworks_v1",
|
|
110
|
+
oAuth2Scopes: null,
|
|
111
|
+
resolvedSecurity: requestSecurity,
|
|
112
|
+
securitySource: client$._options.security,
|
|
113
|
+
retryConfig: options?.retries
|
|
114
|
+
|| client$._options.retryConfig
|
|
115
|
+
|| { strategy: "none" },
|
|
116
|
+
retryCodes: options?.retryCodes || [
|
|
117
|
+
"429",
|
|
118
|
+
"500",
|
|
119
|
+
"502",
|
|
120
|
+
"503",
|
|
121
|
+
"504",
|
|
122
|
+
],
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const requestRes = client$._createRequest(context, {
|
|
126
|
+
security: requestSecurity,
|
|
127
|
+
method: "GET",
|
|
128
|
+
baseURL: options?.serverURL,
|
|
129
|
+
path: path$,
|
|
130
|
+
headers: headers$,
|
|
131
|
+
body: body$,
|
|
132
|
+
userAgent: client$._options.userAgent,
|
|
133
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
134
|
+
|| 120000,
|
|
135
|
+
}, options);
|
|
136
|
+
if (!requestRes.ok) {
|
|
137
|
+
return [requestRes, { status: "invalid" }];
|
|
138
|
+
}
|
|
139
|
+
const req$ = requestRes.value;
|
|
140
|
+
|
|
141
|
+
const doResult = await client$._do(req$, {
|
|
142
|
+
context,
|
|
143
|
+
errorCodes: [],
|
|
144
|
+
retryConfig: context.retryConfig,
|
|
145
|
+
retryCodes: context.retryCodes,
|
|
146
|
+
});
|
|
147
|
+
if (!doResult.ok) {
|
|
148
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
149
|
+
}
|
|
150
|
+
return [doResult, {
|
|
151
|
+
status: "complete",
|
|
152
|
+
"request": req$,
|
|
153
|
+
response: doResult.value,
|
|
154
|
+
}];
|
|
155
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompAiCore } from "../core.js";
|
|
6
|
+
import { compactMap } from "../lib/primitives.js";
|
|
7
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
11
|
+
import {
|
|
12
|
+
ConnectionError,
|
|
13
|
+
InvalidRequestError,
|
|
14
|
+
RequestAbortedError,
|
|
15
|
+
RequestTimeoutError,
|
|
16
|
+
UnexpectedClientError,
|
|
17
|
+
} from "../models/errors/httpclienterrors.js";
|
|
18
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
20
|
+
import { Result } from "../types/fp.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* List org-authored custom frameworks with their trust portal selection
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* List org-authored custom frameworks with their trust portal selection in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures.
|
|
27
|
+
*
|
|
28
|
+
* If set, this operation will use {@link Security.apikey} from the global security.
|
|
29
|
+
*/
|
|
30
|
+
export function trustPortalTrustPortalControllerListCustomFrameworksV1(
|
|
31
|
+
client$: CompAiCore,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
Response,
|
|
36
|
+
| APIError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
return new APIPromise($do(
|
|
46
|
+
client$,
|
|
47
|
+
options,
|
|
48
|
+
));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async function $do(
|
|
52
|
+
client$: CompAiCore,
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): Promise<
|
|
55
|
+
[
|
|
56
|
+
Result<
|
|
57
|
+
Response,
|
|
58
|
+
| APIError
|
|
59
|
+
| SDKValidationError
|
|
60
|
+
| UnexpectedClientError
|
|
61
|
+
| InvalidRequestError
|
|
62
|
+
| RequestAbortedError
|
|
63
|
+
| RequestTimeoutError
|
|
64
|
+
| ConnectionError
|
|
65
|
+
>,
|
|
66
|
+
APICall,
|
|
67
|
+
]
|
|
68
|
+
> {
|
|
69
|
+
const path$ = pathToFunc("/v1/trust-portal/custom-frameworks")();
|
|
70
|
+
|
|
71
|
+
const headers$ = new Headers(compactMap({
|
|
72
|
+
Accept: "*/*",
|
|
73
|
+
}));
|
|
74
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
75
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
76
|
+
|
|
77
|
+
const context = {
|
|
78
|
+
options: client$._options,
|
|
79
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
80
|
+
operationID: "TrustPortalController_listCustomFrameworks_v1",
|
|
81
|
+
oAuth2Scopes: null,
|
|
82
|
+
resolvedSecurity: requestSecurity,
|
|
83
|
+
securitySource: client$._options.security,
|
|
84
|
+
retryConfig: options?.retries
|
|
85
|
+
|| client$._options.retryConfig
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || [
|
|
88
|
+
"429",
|
|
89
|
+
"500",
|
|
90
|
+
"502",
|
|
91
|
+
"503",
|
|
92
|
+
"504",
|
|
93
|
+
],
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const requestRes = client$._createRequest(context, {
|
|
97
|
+
security: requestSecurity,
|
|
98
|
+
method: "GET",
|
|
99
|
+
baseURL: options?.serverURL,
|
|
100
|
+
path: path$,
|
|
101
|
+
headers: headers$,
|
|
102
|
+
userAgent: client$._options.userAgent,
|
|
103
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
104
|
+
|| 120000,
|
|
105
|
+
}, options);
|
|
106
|
+
if (!requestRes.ok) {
|
|
107
|
+
return [requestRes, { status: "invalid" }];
|
|
108
|
+
}
|
|
109
|
+
const req$ = requestRes.value;
|
|
110
|
+
|
|
111
|
+
const doResult = await client$._do(req$, {
|
|
112
|
+
context,
|
|
113
|
+
errorCodes: [],
|
|
114
|
+
retryConfig: context.retryConfig,
|
|
115
|
+
retryCodes: context.retryCodes,
|
|
116
|
+
});
|
|
117
|
+
if (!doResult.ok) {
|
|
118
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
119
|
+
}
|
|
120
|
+
return [doResult, {
|
|
121
|
+
status: "complete",
|
|
122
|
+
"request": req$,
|
|
123
|
+
response: doResult.value,
|
|
124
|
+
}];
|
|
125
|
+
}
|
|
@@ -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
|
+
UpdateAllowedEmailsDto,
|
|
23
|
+
UpdateAllowedEmailsDto$zodSchema,
|
|
24
|
+
} from "../models/updateallowedemailsdto.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Update allowed emails for the trust portal
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Update allowed emails for the trust portal 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 trustPortalTrustPortalControllerUpdateAllowedEmailsV1(
|
|
37
|
+
client$: CompAiCore,
|
|
38
|
+
request: UpdateAllowedEmailsDto,
|
|
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: UpdateAllowedEmailsDto,
|
|
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$) => UpdateAllowedEmailsDto$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/settings/allowed-emails")();
|
|
89
|
+
|
|
90
|
+
const headers$ = new Headers(compactMap({
|
|
91
|
+
"Content-Type": "application/json",
|
|
92
|
+
Accept: "*/*",
|
|
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_updateAllowedEmails_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: "PUT",
|
|
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
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
TrustPortalControllerUpdateCustomFrameworkV1Request,
|
|
23
|
+
TrustPortalControllerUpdateCustomFrameworkV1Request$zodSchema,
|
|
24
|
+
} from "../models/trustportalcontrollerupdatecustomframeworkv1op.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Enable/disable a custom framework on the trust portal and set its status
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Enable/disable a custom framework on the trust portal and set its status 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 trustPortalTrustPortalControllerUpdateCustomFrameworkV1(
|
|
37
|
+
client$: CompAiCore,
|
|
38
|
+
request: TrustPortalControllerUpdateCustomFrameworkV1Request,
|
|
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: TrustPortalControllerUpdateCustomFrameworkV1Request,
|
|
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
|
+
TrustPortalControllerUpdateCustomFrameworkV1Request$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$ = encodeJSON("body", payload$, { explode: true });
|
|
91
|
+
const path$ = pathToFunc("/v1/trust-portal/custom-frameworks")();
|
|
92
|
+
|
|
93
|
+
const headers$ = new Headers(compactMap({
|
|
94
|
+
"Content-Type": "application/json",
|
|
95
|
+
Accept: "*/*",
|
|
96
|
+
}));
|
|
97
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
98
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
99
|
+
|
|
100
|
+
const context = {
|
|
101
|
+
options: client$._options,
|
|
102
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
103
|
+
operationID: "TrustPortalController_updateCustomFramework_v1",
|
|
104
|
+
oAuth2Scopes: null,
|
|
105
|
+
resolvedSecurity: requestSecurity,
|
|
106
|
+
securitySource: client$._options.security,
|
|
107
|
+
retryConfig: options?.retries
|
|
108
|
+
|| client$._options.retryConfig
|
|
109
|
+
|| { strategy: "none" },
|
|
110
|
+
retryCodes: options?.retryCodes || [
|
|
111
|
+
"429",
|
|
112
|
+
"500",
|
|
113
|
+
"502",
|
|
114
|
+
"503",
|
|
115
|
+
"504",
|
|
116
|
+
],
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const requestRes = client$._createRequest(context, {
|
|
120
|
+
security: requestSecurity,
|
|
121
|
+
method: "PUT",
|
|
122
|
+
baseURL: options?.serverURL,
|
|
123
|
+
path: path$,
|
|
124
|
+
headers: headers$,
|
|
125
|
+
body: body$,
|
|
126
|
+
userAgent: client$._options.userAgent,
|
|
127
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
128
|
+
|| 120000,
|
|
129
|
+
}, options);
|
|
130
|
+
if (!requestRes.ok) {
|
|
131
|
+
return [requestRes, { status: "invalid" }];
|
|
132
|
+
}
|
|
133
|
+
const req$ = requestRes.value;
|
|
134
|
+
|
|
135
|
+
const doResult = await client$._do(req$, {
|
|
136
|
+
context,
|
|
137
|
+
errorCodes: [],
|
|
138
|
+
retryConfig: context.retryConfig,
|
|
139
|
+
retryCodes: context.retryCodes,
|
|
140
|
+
});
|
|
141
|
+
if (!doResult.ok) {
|
|
142
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
143
|
+
}
|
|
144
|
+
return [doResult, {
|
|
145
|
+
status: "complete",
|
|
146
|
+
"request": req$,
|
|
147
|
+
response: doResult.value,
|
|
148
|
+
}];
|
|
149
|
+
}
|
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.
|
|
933
|
+
<a href="https://github.com/trycompai/comp/releases/download/v0.2.0/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.
|
|
69
|
-
genVersion: "2.
|
|
68
|
+
sdkVersion: "0.2.0",
|
|
69
|
+
genVersion: "2.903.2",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/mcp-typescript 0.
|
|
71
|
+
"speakeasy-sdk/mcp-typescript 0.2.0 2.903.2 1.0 @trycompai/mcp-server",
|
|
72
72
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
package/src/lib/env.ts
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { dlv } from "./dlv.js";
|
|
6
|
-
|
|
7
5
|
import * as z from "zod";
|
|
8
6
|
|
|
9
7
|
export interface Env {
|
|
@@ -27,8 +25,13 @@ export function env(): Env {
|
|
|
27
25
|
return envMemo;
|
|
28
26
|
}
|
|
29
27
|
|
|
28
|
+
const globals = globalThis as {
|
|
29
|
+
process?: { env?: Record<string, string | undefined> };
|
|
30
|
+
Deno?: { env?: { toObject?: () => Record<string, string | undefined> } };
|
|
31
|
+
};
|
|
32
|
+
|
|
30
33
|
envMemo = envSchema.parse(
|
|
31
|
-
|
|
34
|
+
globals.process?.env ?? globals.Deno?.env?.toObject?.() ?? {},
|
|
32
35
|
);
|
|
33
36
|
return envMemo;
|
|
34
37
|
}
|
package/src/lib/primitives.ts
CHANGED
|
@@ -111,3 +111,19 @@ export function invariant(
|
|
|
111
111
|
throw new InvariantError(message);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
|
|
115
|
+
export function isPlainObject(
|
|
116
|
+
value: unknown,
|
|
117
|
+
): value is Record<string, unknown> {
|
|
118
|
+
if (value === null || typeof value !== "object") return false;
|
|
119
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
120
|
+
const proto = Object.getPrototypeOf(value);
|
|
121
|
+
if (proto === null || proto === Object.prototype) return true;
|
|
122
|
+
// cross-realm plain objects (vm contexts, iframes) inherit from a
|
|
123
|
+
// different realm's Object.prototype, which itself has a null prototype
|
|
124
|
+
try {
|
|
125
|
+
return Object.getPrototypeOf(proto) === null;
|
|
126
|
+
} catch {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
}
|