@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
package/src/services/webhooks.ts
CHANGED
|
@@ -11,6 +11,18 @@ const __s: any[] = [];
|
|
|
11
11
|
|
|
12
12
|
export type { VantaOpError, VantaOpContext };
|
|
13
13
|
|
|
14
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
15
|
+
const TELEMETRY = {
|
|
16
|
+
system: "vanta-api",
|
|
17
|
+
responseHeaders: [
|
|
18
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
19
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
20
|
+
],
|
|
21
|
+
prefix: "Vanta",
|
|
22
|
+
service: "Webhooks",
|
|
23
|
+
propagate: "w3c",
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
14
26
|
export interface V1ControlCommentCreatedRequestControl {
|
|
15
27
|
/** The unique identifier of the control the comment was added to. */
|
|
16
28
|
id: string;
|
|
@@ -260,6 +272,11 @@ export type V1QuestionnaireStatusChangedRequestQuestionnaireStatus =
|
|
|
260
272
|
| "IN_PROGRESS"
|
|
261
273
|
| "IN_REVIEW"
|
|
262
274
|
| "EXTRACTING_QUESTIONS"
|
|
275
|
+
| "QUEUED_FOR_SECTION_EXTRACTION"
|
|
276
|
+
| "EXTRACTING_SECTIONS"
|
|
277
|
+
| "MAPPING_SECTIONS"
|
|
278
|
+
| "QUEUED_FOR_ANSWERING"
|
|
279
|
+
| "GENERATING_ANSWERS"
|
|
263
280
|
| "QUEUED_FOR_EXTRACTION"
|
|
264
281
|
| "PROCESSING"
|
|
265
282
|
| "QUEUED_FOR_PROCESSING"
|
|
@@ -328,7 +345,7 @@ export interface V1VendorDecisionCreatedRequestVendorDecision {
|
|
|
328
345
|
/** When the decision was last updated (ISO 8601). */
|
|
329
346
|
lastUpdatedAt: string;
|
|
330
347
|
/** Optional comments on the decision. */
|
|
331
|
-
comments?: string;
|
|
348
|
+
comments?: string | undefined;
|
|
332
349
|
}
|
|
333
350
|
export interface V1VendorDecisionCreatedRequestVendor {
|
|
334
351
|
/** The vendor ID. */
|
|
@@ -352,6 +369,8 @@ export const v1ControlCommentCreated: API.OperationMethod<
|
|
|
352
369
|
errors: [UnknownVantaError],
|
|
353
370
|
protocol: VantaProtocol,
|
|
354
371
|
retry: Retry.Retry,
|
|
372
|
+
telemetry: TELEMETRY,
|
|
373
|
+
span: "V1ControlCommentCreated",
|
|
355
374
|
}));
|
|
356
375
|
|
|
357
376
|
export type V1ControlCommentDeletedError = VantaOpError;
|
|
@@ -367,6 +386,8 @@ export const v1ControlCommentDeleted: API.OperationMethod<
|
|
|
367
386
|
errors: [UnknownVantaError],
|
|
368
387
|
protocol: VantaProtocol,
|
|
369
388
|
retry: Retry.Retry,
|
|
389
|
+
telemetry: TELEMETRY,
|
|
390
|
+
span: "V1ControlCommentDeleted",
|
|
370
391
|
}));
|
|
371
392
|
|
|
372
393
|
export type V1ControlCommentUpdatedError = VantaOpError;
|
|
@@ -382,6 +403,8 @@ export const v1ControlCommentUpdated: API.OperationMethod<
|
|
|
382
403
|
errors: [UnknownVantaError],
|
|
383
404
|
protocol: VantaProtocol,
|
|
384
405
|
retry: Retry.Retry,
|
|
406
|
+
telemetry: TELEMETRY,
|
|
407
|
+
span: "V1ControlCommentUpdated",
|
|
385
408
|
}));
|
|
386
409
|
|
|
387
410
|
export type V1EvidenceCommentCreatedError = VantaOpError;
|
|
@@ -397,6 +420,8 @@ export const v1EvidenceCommentCreated: API.OperationMethod<
|
|
|
397
420
|
errors: [UnknownVantaError],
|
|
398
421
|
protocol: VantaProtocol,
|
|
399
422
|
retry: Retry.Retry,
|
|
423
|
+
telemetry: TELEMETRY,
|
|
424
|
+
span: "V1EvidenceCommentCreated",
|
|
400
425
|
}));
|
|
401
426
|
|
|
402
427
|
export type V1EvidenceCommentDeletedError = VantaOpError;
|
|
@@ -412,6 +437,8 @@ export const v1EvidenceCommentDeleted: API.OperationMethod<
|
|
|
412
437
|
errors: [UnknownVantaError],
|
|
413
438
|
protocol: VantaProtocol,
|
|
414
439
|
retry: Retry.Retry,
|
|
440
|
+
telemetry: TELEMETRY,
|
|
441
|
+
span: "V1EvidenceCommentDeleted",
|
|
415
442
|
}));
|
|
416
443
|
|
|
417
444
|
export type V1EvidenceCommentUpdatedError = VantaOpError;
|
|
@@ -427,6 +454,8 @@ export const v1EvidenceCommentUpdated: API.OperationMethod<
|
|
|
427
454
|
errors: [UnknownVantaError],
|
|
428
455
|
protocol: VantaProtocol,
|
|
429
456
|
retry: Retry.Retry,
|
|
457
|
+
telemetry: TELEMETRY,
|
|
458
|
+
span: "V1EvidenceCommentUpdated",
|
|
430
459
|
}));
|
|
431
460
|
|
|
432
461
|
export type V1EvidenceCreatedError = VantaOpError;
|
|
@@ -442,6 +471,8 @@ export const v1EvidenceCreated: API.OperationMethod<
|
|
|
442
471
|
errors: [UnknownVantaError],
|
|
443
472
|
protocol: VantaProtocol,
|
|
444
473
|
retry: Retry.Retry,
|
|
474
|
+
telemetry: TELEMETRY,
|
|
475
|
+
span: "V1EvidenceCreated",
|
|
445
476
|
}));
|
|
446
477
|
|
|
447
478
|
export type V1EvidenceDeletedError = VantaOpError;
|
|
@@ -457,6 +488,8 @@ export const v1EvidenceDeleted: API.OperationMethod<
|
|
|
457
488
|
errors: [UnknownVantaError],
|
|
458
489
|
protocol: VantaProtocol,
|
|
459
490
|
retry: Retry.Retry,
|
|
491
|
+
telemetry: TELEMETRY,
|
|
492
|
+
span: "V1EvidenceDeleted",
|
|
460
493
|
}));
|
|
461
494
|
|
|
462
495
|
export type V1EvidenceStatusChangedError = VantaOpError;
|
|
@@ -472,6 +505,8 @@ export const v1EvidenceStatusChanged: API.OperationMethod<
|
|
|
472
505
|
errors: [UnknownVantaError],
|
|
473
506
|
protocol: VantaProtocol,
|
|
474
507
|
retry: Retry.Retry,
|
|
508
|
+
telemetry: TELEMETRY,
|
|
509
|
+
span: "V1EvidenceStatusChanged",
|
|
475
510
|
}));
|
|
476
511
|
|
|
477
512
|
export type V1InformationRequestCommentCreatedError = VantaOpError;
|
|
@@ -487,6 +522,8 @@ export const v1InformationRequestCommentCreated: API.OperationMethod<
|
|
|
487
522
|
errors: [UnknownVantaError],
|
|
488
523
|
protocol: VantaProtocol,
|
|
489
524
|
retry: Retry.Retry,
|
|
525
|
+
telemetry: TELEMETRY,
|
|
526
|
+
span: "V1InformationRequestCommentCreated",
|
|
490
527
|
}));
|
|
491
528
|
|
|
492
529
|
export type V1InformationRequestCommentDeletedError = VantaOpError;
|
|
@@ -502,6 +539,8 @@ export const v1InformationRequestCommentDeleted: API.OperationMethod<
|
|
|
502
539
|
errors: [UnknownVantaError],
|
|
503
540
|
protocol: VantaProtocol,
|
|
504
541
|
retry: Retry.Retry,
|
|
542
|
+
telemetry: TELEMETRY,
|
|
543
|
+
span: "V1InformationRequestCommentDeleted",
|
|
505
544
|
}));
|
|
506
545
|
|
|
507
546
|
export type V1InformationRequestCommentUpdatedError = VantaOpError;
|
|
@@ -517,6 +556,8 @@ export const v1InformationRequestCommentUpdated: API.OperationMethod<
|
|
|
517
556
|
errors: [UnknownVantaError],
|
|
518
557
|
protocol: VantaProtocol,
|
|
519
558
|
retry: Retry.Retry,
|
|
559
|
+
telemetry: TELEMETRY,
|
|
560
|
+
span: "V1InformationRequestCommentUpdated",
|
|
520
561
|
}));
|
|
521
562
|
|
|
522
563
|
export type V1InformationRequestEvidenceCreatedError = VantaOpError;
|
|
@@ -532,6 +573,8 @@ export const v1InformationRequestEvidenceCreated: API.OperationMethod<
|
|
|
532
573
|
errors: [UnknownVantaError],
|
|
533
574
|
protocol: VantaProtocol,
|
|
534
575
|
retry: Retry.Retry,
|
|
576
|
+
telemetry: TELEMETRY,
|
|
577
|
+
span: "V1InformationRequestEvidenceCreated",
|
|
535
578
|
}));
|
|
536
579
|
|
|
537
580
|
export type V1InformationRequestEvidenceDeletedError = VantaOpError;
|
|
@@ -547,6 +590,8 @@ export const v1InformationRequestEvidenceDeleted: API.OperationMethod<
|
|
|
547
590
|
errors: [UnknownVantaError],
|
|
548
591
|
protocol: VantaProtocol,
|
|
549
592
|
retry: Retry.Retry,
|
|
593
|
+
telemetry: TELEMETRY,
|
|
594
|
+
span: "V1InformationRequestEvidenceDeleted",
|
|
550
595
|
}));
|
|
551
596
|
|
|
552
597
|
export type V1InformationRequestStatusChangedError = VantaOpError;
|
|
@@ -562,6 +607,8 @@ export const v1InformationRequestStatusChanged: API.OperationMethod<
|
|
|
562
607
|
errors: [UnknownVantaError],
|
|
563
608
|
protocol: VantaProtocol,
|
|
564
609
|
retry: Retry.Retry,
|
|
610
|
+
telemetry: TELEMETRY,
|
|
611
|
+
span: "V1InformationRequestStatusChanged",
|
|
565
612
|
}));
|
|
566
613
|
|
|
567
614
|
export type V1QuestionnaireCreatedError = VantaOpError;
|
|
@@ -577,6 +624,8 @@ export const v1QuestionnaireCreated: API.OperationMethod<
|
|
|
577
624
|
errors: [UnknownVantaError],
|
|
578
625
|
protocol: VantaProtocol,
|
|
579
626
|
retry: Retry.Retry,
|
|
627
|
+
telemetry: TELEMETRY,
|
|
628
|
+
span: "V1QuestionnaireCreated",
|
|
580
629
|
}));
|
|
581
630
|
|
|
582
631
|
export type V1QuestionnaireDeletedError = VantaOpError;
|
|
@@ -592,6 +641,8 @@ export const v1QuestionnaireDeleted: API.OperationMethod<
|
|
|
592
641
|
errors: [UnknownVantaError],
|
|
593
642
|
protocol: VantaProtocol,
|
|
594
643
|
retry: Retry.Retry,
|
|
644
|
+
telemetry: TELEMETRY,
|
|
645
|
+
span: "V1QuestionnaireDeleted",
|
|
595
646
|
}));
|
|
596
647
|
|
|
597
648
|
export type V1QuestionnaireExportCompletedError = VantaOpError;
|
|
@@ -607,6 +658,8 @@ export const v1QuestionnaireExportCompleted: API.OperationMethod<
|
|
|
607
658
|
errors: [UnknownVantaError],
|
|
608
659
|
protocol: VantaProtocol,
|
|
609
660
|
retry: Retry.Retry,
|
|
661
|
+
telemetry: TELEMETRY,
|
|
662
|
+
span: "V1QuestionnaireExportCompleted",
|
|
610
663
|
}));
|
|
611
664
|
|
|
612
665
|
export type V1QuestionnaireExportFailedError = VantaOpError;
|
|
@@ -622,6 +675,8 @@ export const v1QuestionnaireExportFailed: API.OperationMethod<
|
|
|
622
675
|
errors: [UnknownVantaError],
|
|
623
676
|
protocol: VantaProtocol,
|
|
624
677
|
retry: Retry.Retry,
|
|
678
|
+
telemetry: TELEMETRY,
|
|
679
|
+
span: "V1QuestionnaireExportFailed",
|
|
625
680
|
}));
|
|
626
681
|
|
|
627
682
|
export type V1QuestionnaireStatusChangedError = VantaOpError;
|
|
@@ -637,6 +692,8 @@ export const v1QuestionnaireStatusChanged: API.OperationMethod<
|
|
|
637
692
|
errors: [UnknownVantaError],
|
|
638
693
|
protocol: VantaProtocol,
|
|
639
694
|
retry: Retry.Retry,
|
|
695
|
+
telemetry: TELEMETRY,
|
|
696
|
+
span: "V1QuestionnaireStatusChanged",
|
|
640
697
|
}));
|
|
641
698
|
|
|
642
699
|
export type V1TrustCenterAccessRequestApprovedError = VantaOpError;
|
|
@@ -652,6 +709,8 @@ export const v1TrustCenterAccessRequestApproved: API.OperationMethod<
|
|
|
652
709
|
errors: [UnknownVantaError],
|
|
653
710
|
protocol: VantaProtocol,
|
|
654
711
|
retry: Retry.Retry,
|
|
712
|
+
telemetry: TELEMETRY,
|
|
713
|
+
span: "V1TrustCenterAccessRequestApproved",
|
|
655
714
|
}));
|
|
656
715
|
|
|
657
716
|
export type V1TrustCenterAccessRequestDeniedError = VantaOpError;
|
|
@@ -667,6 +726,8 @@ export const v1TrustCenterAccessRequestDenied: API.OperationMethod<
|
|
|
667
726
|
errors: [UnknownVantaError],
|
|
668
727
|
protocol: VantaProtocol,
|
|
669
728
|
retry: Retry.Retry,
|
|
729
|
+
telemetry: TELEMETRY,
|
|
730
|
+
span: "V1TrustCenterAccessRequestDenied",
|
|
670
731
|
}));
|
|
671
732
|
|
|
672
733
|
export type V1TrustCenterAccessRequestReceivedError = VantaOpError;
|
|
@@ -682,6 +743,8 @@ export const v1TrustCenterAccessRequestReceived: API.OperationMethod<
|
|
|
682
743
|
errors: [UnknownVantaError],
|
|
683
744
|
protocol: VantaProtocol,
|
|
684
745
|
retry: Retry.Retry,
|
|
746
|
+
telemetry: TELEMETRY,
|
|
747
|
+
span: "V1TrustCenterAccessRequestReceived",
|
|
685
748
|
}));
|
|
686
749
|
|
|
687
750
|
export type V1VendorDecisionCreatedError = VantaOpError;
|
|
@@ -697,6 +760,8 @@ export const v1VendorDecisionCreated: API.OperationMethod<
|
|
|
697
760
|
errors: [UnknownVantaError],
|
|
698
761
|
protocol: VantaProtocol,
|
|
699
762
|
retry: Retry.Retry,
|
|
763
|
+
telemetry: TELEMETRY,
|
|
764
|
+
span: "V1VendorDecisionCreated",
|
|
700
765
|
}));
|
|
701
766
|
|
|
702
767
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|