@distilled.cloud/vanta 1.0.0-rc.17 → 1.0.0-rc.19
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/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/auditor_api.d.ts +252 -214
- package/lib/services/auditor_api.d.ts.map +1 -1
- package/lib/services/auditor_api.js +70 -69
- package/lib/services/auditor_api.js.map +1 -1
- package/lib/services/build_integrations.d.ts +87 -87
- package/lib/services/build_integrations.d.ts.map +1 -1
- package/lib/services/build_integrations.js +46 -45
- package/lib/services/build_integrations.js.map +1 -1
- package/lib/services/manage_vanta.d.ts +1940 -637
- package/lib/services/manage_vanta.d.ts.map +1 -1
- package/lib/services/manage_vanta.js +401 -330
- package/lib/services/manage_vanta.js.map +1 -1
- package/lib/services/webhooks.d.ts +2 -2
- package/lib/services/webhooks.d.ts.map +1 -1
- package/lib/services/webhooks.js +34 -33
- package/lib/services/webhooks.js.map +1 -1
- package/lib/services.lazy/auditor_api.js +1 -1
- package/lib/services.lazy/build_integrations.js +1 -1
- package/lib/services.lazy/manage_vanta.js +3 -2
- package/lib/services.lazy/webhooks.js +1 -1
- package/package.json +7 -6
- package/src/credentials.ts +4 -2
- package/src/index.ts +2 -2
- package/src/protocol.ts +5 -2
- package/src/services/auditor_api.ts +379 -214
- package/src/services/build_integrations.ts +174 -87
- package/src/services/manage_vanta.ts +9092 -4934
- package/src/services/webhooks.ts +66 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{$L}from"../_bundle/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/auditor_api.js","ooooooooooooooooooooooooooooooooooooooooooooooooooo",
|
|
2
|
+
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/auditor_api.js","ooooooooooooooooooooooooooooooooooooooooooooooooooo",33060,4888);
|
|
3
3
|
export const acceptInformationRequestEvidence=$o(),createAuditor=$o(),createCommentForAuditEvidence=$o(),createCommentForControl=$o(),createCommentForInformationRequest=$o(),createCustomControl=$o(),createCustomEvidenceRequest=$o(),createInformationRequest=$o(),deleteCommentForControl=$o(),deleteCommentForInformationRequest=$o(),deleteInformationRequest=$o(),duplicate=$o(),flagInformationRequestEvidence=$o(),getAudit=$o(),getAuditEvidence=$o(),getAuditEvidenceComment=$o(),getCommentForInformationRequest=$o(),getFrameworkCodes=$o(),getInformationRequest=$o(),getInformationRequestEvidence=$o(),getInformationRequestTestSnapshotEvidenceDetail=$o(),getOrganizationInformation=$o(),getOrganizationNotifications=$o(),listAccountAccessServices=$o(),listAuditComments=$o(),listAuditControls=$o(),listAuditEvidence=$o(),listAuditEvidenceUrls=$o(),listAuditIssues=$o(),listAuditRisks=$o(),listAudits=$o(),listAuditSnapshots=$o(),listCodeChanges=$o(),listCommentsForControl=$o(),listCommentsForInformationRequest=$o(),listInformationRequestActivity=$o(),listInformationRequestEvidence=$o(),listInformationRequests=$o(),listInformationRequestsForControl=$o(),listIntegrations=$o(),listPersonnelAccountAccess=$o(),listPersonnelGroups=$o(),listPersonnelPeople=$o(),listRiskSnapshots=$o(),listShareInformationRequest=$o(),listVendors=$o(),updateAuditEvidence=$o(),updateCommentForControl=$o(),updateCommentForInformationRequest=$o(),updateInformationRequest=$o(),upsertAssessmentForControl=$o();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{$L}from"../_bundle/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/build_integrations.js","ooooooooooooooooooooooooo",
|
|
2
|
+
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/build_integrations.js","ooooooooooooooooooooooooo",16102,2887);
|
|
3
3
|
export const getApiEndpointVulnerabilityConnectors=$o(),getBackgroundCheckConnector=$o(),getCustomResource=$o(),getMacosUserComputer=$o(),getPackageVulnerabilityConnectors=$o(),getSecret=$o(),getSecurityTask=$o(),getStaticAnalysisCodeVulnerabilityConnectors=$o(),getUserAccount=$o(),getUserSecurityTrainingStatus=$o(),getVulnerableComponent=$o(),getWindowsUserComputer=$o(),putApiEndpointVulnerabilityConnectors=$o(),putBackgroundCheckConnector=$o(),putCustomResource=$o(),putMacosUserComputer=$o(),putPackageVulnerabilityConnectors=$o(),putSecret=$o(),putSecurityTask=$o(),putStaticAnalysisCodeVulnerabilityConnectors=$o(),putUserAccount=$o(),putUserSecurityTrainingStatus=$o(),putVulnerableComponent=$o(),putWindowsUserComputer=$o(),uploadFileForDocument=$o();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import{$L}from"../_bundle/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/manage_vanta.js","
|
|
3
|
-
export const
|
|
2
|
+
const{o:$o,e:$e,E:$E}=/*@__PURE__*/$L("../services/manage_vanta.js","oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo",159724,29527);
|
|
3
|
+
export const{NotFound,UnprocessableEntity}=$E;
|
|
4
|
+
export const acknowledgeSlaMissVulnerabilityRemediations=$o(),addAccountMappings=$o(),addControlFromLibrary=$o(),addControlToTrustCenter=$o(),addCustomAssetMappings=$o(),addDiscoveredVendorToManaged=$o(),addDocumentToControl=$o(),addIntegrationMappings=$o(),addIssueMappings=$o(),addPeopleToGroup=$o(),addPersonToGroup=$o(),addTagCategoryProductContext=$o(),addTestToControl=$o(),addTrustCenterControlCategory=$o(),addTrustCenterFaqCategory=$o(),addTrustCenterResourceCategory=$o(),addTrustCenterViewer=$o(),addVendorFindingMappings=$o(),approveQuestionnaire=$o(),approveTrustCenterAccessRequest=$o(),bulkAddTagsToControls=$o(),bulkRemoveTagsFromControls=$o(),cancelRiskScenarioApprovalRequest=$o(),clearLeaveForPerson=$o(),completeQuestionnaire=$o(),createAnswerLibraryEntry=$o(),createComplianceFramework=$o(),createCustomControl=$o(),createCustomerTrustAccount=$o(),createCustomRequirement=$o(),createDeletionRequest=$o(),createDocument=$o(),createDocumentResource=$o(),createFileQuestionnaire=$o(),createFrameworkControlsExport=$o(),createGroup=$o(),createLinkForDocument=$o(),createQuestionnaireExport=$o(),createRiskScenario=$o(),createRiskScenarioControl=$o(),createTaskRequirementSet=$o(),createTrustCenterFaq=$o(),createTrustCenterResource=$o(),createTrustCenterSubprocessor=$o(),createTrustCenterSubscriber=$o(),createTrustCenterSubscriberGroup=$o(),createTrustCenterUpdate=$o(),createVendor=$o(),createVendorCategory=$o(),createVendorFinding=$o(),createWebpageResource=$o(),createWebsiteQuestionnaire=$o(),deactivateTestEntity=$o(),deactivateVulnerabilities=$o(),deleteAnswerLibraryEntryRoute=$o(),deleteById=$o(),deleteComplianceFramework=$o(),deleteContract=$o(),deleteControl=$o(),deleteCustomerTrustAccount=$o(),deleteCustomFramework=$o(),deleteDocument=$o(),deleteDocumentForcontrol=$o(),deleteFileForDocument=$o(),deleteFindingById=$o(),deleteGroup=$o(),deleteKnowledgeBaseResource=$o(),deleteLinkForDocument=$o(),deleteQuestionnaire=$o(),deleteRiskScenarioControl=$o(),deleteSecurityReviewDocumentById=$o(),deleteTestForControl=$o(),deleteTrustCenterControl=$o(),deleteTrustCenterControlCategory=$o(),deleteTrustCenterFaq=$o(),deleteTrustCenterFaqCategory=$o(),deleteTrustCenterResource=$o(),deleteTrustCenterResourceCategory=$o(),deleteTrustCenterSubprocessor=$o(),deleteTrustCenterSubscriber=$o(),deleteTrustCenterSubscriberGroup=$o(),deleteTrustCenterUpdate=$o(),deleteVendorCategory=$o(),denyTrustCenterAccessRequest=$o(),evaluateDocument=$o(),getAnswerLibraryEntry=$o(),getAssessmentById=$o(),getAssessmentsByVendorId=$o(),getBusinessUnit=$o(),getChatbotConversationMessages=$o(),getConnectedIntegration=$o(),getContract=$o(),getControl=$o(),getCustomerTrustAccount=$o(),getDocument=$o(),getDocumentDraftEvaluation=$o(),getFramework=$o(),getFrameworkControlsExport=$o(),getGroup=$o(),getGroupMembers=$o(),getGroupTaskRequirementSet=$o(),getIssue=$o(),getKnowledgeBaseResource=$o(),getMonitoredComputer=$o(),getOrganization=$o(),getPerson=$o(),getPolicy=$o(),getProgramScope=$o(),getQuestionnaire=$o(),getQuestionnaireExport=$o(),getQuestionnaireResponse=$o(),getResource=$o(),getResourceKindDetails=$o(),getRiskScenario=$o(),getSecurityReviewDocuments=$o(),getSecurityReviewsById=$o(),getSecurityReviewsByVendorId=$o(),getSettings=$o(),getTagsForCategory=$o(),getTaskRequirementSet=$o(),getTest=$o(),getTestEntities=$o(),getTrustCenter=$o(),getTrustCenterAccessRequest=$o(),getTrustCenterControl=$o(),getTrustCenterControlCategories=$o(),getTrustCenterControlCategory=$o(),getTrustCenterFaq=$o(),getTrustCenterResource=$o(),getTrustCenterResourceMedia=$o(),getTrustCenterSubprocessor=$o(),getTrustCenterSubscriber=$o(),getTrustCenterSubscriberGroup=$o(),getTrustCenterUpdate=$o(),getTrustCenterViewer=$o(),getUploadedfileMedia=$o(),getUser=$o(),getVendor=$o(),getVendorAlert=$o(),getVendorAlertSettings=$o(),getVendorAssessmentType=$o(),getVendorCategory=$o(),getVendorExternalFinding=$o(),getVendorSecurityIncidentAlert=$o(),getVulnerability=$o(),getVulnerableAsset=$o(),importIdpGroups=$o(),list=$o(),listAccountMappings=$o(),listAnswerLibraryEntries=$o(),listAssignableUsers=$o(),listBusinessUnits=$o(),listChatbotConversations=$o(),listComplianceFrameworks=$o(),listConnectedIntegrations=$o(),listContracts=$o(),listControls=$o(),listControlsForDocument=$o(),listControlsForFramework=$o(),listCustomAssetMappings=$o(),listCustomAssets=$o(),listCustomerTrustAccounts=$o(),listCustomRequirements=$o(),listDeactivatedControls=$o(),listDiscoveredVendorAccounts=$o(),listDiscoveredVendors=$o(),listDocuments=$o(),listDocumentsForControl=$o(),listEnterpriseRiskMappings=$o(),listEventLogs=$o(),listFilesForDocument=$o(),listFrameworks=$o(),listImportableIdpGroups=$o(),listIntegrationMappings=$o(),listIssueMappings=$o(),listKnowledgeBaseResources=$o(),listLinksForDocument=$o(),listMonitoredComputers=$o(),listPeople=$o(),listPersonGroups=$o(),listPolicies=$o(),listProgramScopes=$o(),listQuestionnaireResponses=$o(),listQuestionnaires=$o(),listResourceKindSummaries=$o(),listResources=$o(),listRiskScenario=$o(),listRiskScenarioControls=$o(),listTagCategories=$o(),listTaskRequirementSets=$o(),listTests=$o(),listTestsForControl=$o(),listTrustCenterAccessRequests=$o(),listTrustCenterActivityEvents=$o(),listTrustCenterControls=$o(),listTrustCenterDataCollected=$o(),listTrustCenterFaqCategories=$o(),listTrustCenterFaqs=$o(),listTrustCenterHistoricalAccessRequests=$o(),listTrustCenterResourceCategories=$o(),listTrustCenterResources=$o(),listTrustCenterSubprocessors=$o(),listTrustCenterSubscriberGroups=$o(),listTrustCenterSubscribers=$o(),listTrustCenterUpdates=$o(),listTrustCenterVideos=$o(),listTrustCenterViewers=$o(),listUsers=$o(),listVendorAlerts=$o(),listVendorAssessmentTypes=$o(),listVendorCategories=$o(),listVendorDocuments=$o(),listVendorExternalFindings=$o(),listVendorFindingMappings=$o(),listVendorFindings=$o(),listVendorRiskAttributes=$o(),listVendors=$o(),listVendorSecurityIncidentAlerts=$o(),listVulnerabilities=$o(),listVulnerabilityRemediations=$o(),listVulnerableAssets=$o(),markAsNotPeople=$o(),markAsPeople=$o(),offboardPeople=$o(),reactivateFramework=$o(),reactivateTestEntity=$o(),reactivateVulnerabilities=$o(),removeAccountMappings=$o(),removeCustomAssetMappings=$o(),removeEngagement=$o(),removeIntegrationMappings=$o(),removeIssueMappings=$o(),removePeopleFromGroup=$o(),removePersonFromGroup=$o(),removeTagCategoryProductContext=$o(),removeTrustCenterViewer=$o(),removeVendorFindingMappings=$o(),replaceDocumentResourceFile=$o(),sendNotificationsToAllSubscribers=$o(),sendTrustCenterUpdateNotifications=$o(),sendTrustCenterViewerInviteReminder=$o(),setEngagement=$o(),setFrameworkVariant=$o(),setLeaveForPerson=$o(),setOwnerForControl=$o(),setOwnerForDocument=$o(),setStatusForVendor=$o(),snoozeFramework=$o(),submitDocumentCollection=$o(),submitRiskForApproval=$o(),updateAnswerLibraryEntryRoute=$o(),updateComplianceFramework=$o(),updateControlMetadata=$o(),updateCustomerTrustAccount=$o(),updateCustomRequirement=$o(),updateDocumentResource=$o(),updateGroup=$o(),updatePerson=$o(),updateQuestionnaire=$o(),updateQuestionnaireResponseContent=$o(),updateQuestionnaireResponseOwner=$o(),updateResource=$o(),updateResources=$o(),updateRiskScenario=$o(),updateRiskScenarioControl=$o(),updateSettings=$o(),updateTaskRequirementSetDetails=$o(),updateTaskRequirementSetRequirements=$o(),updateTrustCenter=$o(),updateTrustCenterControlCategory=$o(),updateTrustCenterControlsInCategory=$o(),updateTrustCenterFaq=$o(),updateTrustCenterFaqCategory=$o(),updateTrustCenterResource=$o(),updateTrustCenterResourceCategory=$o(),updateTrustCenterSubprocessor=$o(),updateTrustCenterSubscriberGroup=$o(),updateTrustCenterUpdate=$o(),updateTrustCenterViewer=$o(),updateVendor=$o(),updateVendorAlerts=$o(),updateVendorAlertSettings=$o(),updateVendorCategory=$o(),updateVendorFinding=$o(),updateVendorSecurityIncidentAlerts=$o(),updateWebpageResource=$o(),uploadComplianceFrameworkBadge=$o(),uploadContract=$o(),uploadDocumentForSecurityReview=$o(),uploadDocumentToVendor=$o(),uploadFileForDocument=$o(),uploadTrustCenterFavicon=$o(),upsertGroupsForTrustCenterSubscriber=$o(),upsertTrustCenterControlCategoriesOrder=$o(),upsertTrustCenterControlsInCategoryOrder=$o(),upsertTrustCenterDataCollected=$o(),upsertTrustCenterResourceCategoriesOrder=$o(),upsertTrustCenterVideos=$o(),verifyAnswerLibraryEntryRoute=$o(),verifyKnowledgeBaseResource=$o();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{$L}from"../_bundle/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/webhooks.js","oooooooooooooooooooooooo",
|
|
2
|
+
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/webhooks.js","oooooooooooooooooooooooo",9590,2254);
|
|
3
3
|
export const v1ControlCommentCreated=$o(),v1ControlCommentDeleted=$o(),v1ControlCommentUpdated=$o(),v1EvidenceCommentCreated=$o(),v1EvidenceCommentDeleted=$o(),v1EvidenceCommentUpdated=$o(),v1EvidenceCreated=$o(),v1EvidenceDeleted=$o(),v1EvidenceStatusChanged=$o(),v1InformationRequestCommentCreated=$o(),v1InformationRequestCommentDeleted=$o(),v1InformationRequestCommentUpdated=$o(),v1InformationRequestEvidenceCreated=$o(),v1InformationRequestEvidenceDeleted=$o(),v1InformationRequestStatusChanged=$o(),v1QuestionnaireCreated=$o(),v1QuestionnaireDeleted=$o(),v1QuestionnaireExportCompleted=$o(),v1QuestionnaireExportFailed=$o(),v1QuestionnaireStatusChanged=$o(),v1TrustCenterAccessRequestApproved=$o(),v1TrustCenterAccessRequestDenied=$o(),v1TrustCenterAccessRequestReceived=$o(),v1VendorDecisionCreated=$o();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/vanta",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.19",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,22 +66,23 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@distilled.cloud/core": "1.0.0-rc.
|
|
69
|
+
"@distilled.cloud/core": "1.0.0-rc.19"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
+
"@distilled.cloud/dev": "0.0.0",
|
|
72
73
|
"@types/node": "26.6.5"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
75
|
-
"effect": "^4.
|
|
76
|
+
"effect": "^4.1.2"
|
|
76
77
|
},
|
|
77
78
|
"distilled": {
|
|
78
|
-
"generatedAt": "2026-10
|
|
79
|
-
"specUpdatedAt": "2026-
|
|
79
|
+
"generatedAt": "2026-11-10",
|
|
80
|
+
"specUpdatedAt": "2026-11-08"
|
|
80
81
|
},
|
|
81
82
|
"scripts": {
|
|
82
83
|
"build": "tsrs -b",
|
|
83
84
|
"convert": "node --conditions=bun scripts/convert.ts",
|
|
84
|
-
"generate": "node --conditions=bun scripts/
|
|
85
|
+
"generate": "node --conditions=bun scripts/generate.ts",
|
|
85
86
|
"typecheck": "tsrs -p tsconfig.json",
|
|
86
87
|
"specs:fetch": "git submodule update --force --init --depth=1 specs/spec-mirror-vanta",
|
|
87
88
|
"specs:update": "git submodule update --remote --force --depth=1 specs/spec-mirror-vanta"
|
package/src/credentials.ts
CHANGED
|
@@ -25,7 +25,9 @@ export interface Config {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export class Credentials
|
|
28
|
-
extends /*@__PURE__*/ Context.Service<Credentials, Effect.Effect<Config>>()(
|
|
28
|
+
extends /*@__PURE__*/ Context.Service<Credentials, Effect.Effect<Config, ConfigError>>()(
|
|
29
|
+
"VantaCredentials",
|
|
30
|
+
) {}
|
|
29
31
|
|
|
30
32
|
/** Layer from a redacted access token + optional base URL. */
|
|
31
33
|
export const fromApiKey = (config: {
|
|
@@ -56,5 +58,5 @@ export const CredentialsFromEnv: Layer.Layer<Credentials> = /*@__PURE__*/ Layer.
|
|
|
56
58
|
apiKey: Redacted.make(apiKey),
|
|
57
59
|
apiBaseUrl: process.env.VANTA_API_BASE_URL ?? DEFAULT_API_BASE_URL,
|
|
58
60
|
};
|
|
59
|
-
})
|
|
61
|
+
}),
|
|
60
62
|
);
|
package/src/index.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @distilled.cloud/vanta -- Vanta SDK for Effect.
|
|
3
3
|
*
|
|
4
4
|
* `./services` is generated by `scripts/generate.ts` from the Smithy models
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* that `scripts/convert.ts` converts from the OpenAPI specs. Everything else in
|
|
6
|
+
* this folder is hand-written.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
package/src/protocol.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import type { API_ERRORS, ConfigError } from "@distilled.cloud/core/errors";
|
|
2
|
+
import type { API_ERRORS, ConfigError, InvalidInput } from "@distilled.cloud/core/errors";
|
|
3
3
|
import { makeRestProtocol } from "@distilled.cloud/core/protocol-rest";
|
|
4
|
+
import type { SdkError } from "@distilled.cloud/core/sdk-error";
|
|
4
5
|
/**
|
|
5
6
|
* VantaProtocol -- hand-written.
|
|
6
7
|
*
|
|
@@ -35,7 +36,9 @@ export type VantaOpError =
|
|
|
35
36
|
| UnknownVantaError
|
|
36
37
|
| ConfigError
|
|
37
38
|
| HttpClientError.HttpClientError
|
|
38
|
-
| VantaParseError
|
|
39
|
+
| VantaParseError
|
|
40
|
+
| InvalidInput
|
|
41
|
+
| SdkError;
|
|
39
42
|
|
|
40
43
|
/** Context (requirements) shared by every generated Vanta operation. */
|
|
41
44
|
export type VantaOpContext = Credentials | HttpClient.HttpClient;
|