@distilled.cloud/vanta 1.0.0-rc.17 → 1.0.0-rc.18

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.
@@ -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;
@@ -352,6 +364,8 @@ export const v1ControlCommentCreated: API.OperationMethod<
352
364
  errors: [UnknownVantaError],
353
365
  protocol: VantaProtocol,
354
366
  retry: Retry.Retry,
367
+ telemetry: TELEMETRY,
368
+ span: "V1ControlCommentCreated",
355
369
  }));
356
370
 
357
371
  export type V1ControlCommentDeletedError = VantaOpError;
@@ -367,6 +381,8 @@ export const v1ControlCommentDeleted: API.OperationMethod<
367
381
  errors: [UnknownVantaError],
368
382
  protocol: VantaProtocol,
369
383
  retry: Retry.Retry,
384
+ telemetry: TELEMETRY,
385
+ span: "V1ControlCommentDeleted",
370
386
  }));
371
387
 
372
388
  export type V1ControlCommentUpdatedError = VantaOpError;
@@ -382,6 +398,8 @@ export const v1ControlCommentUpdated: API.OperationMethod<
382
398
  errors: [UnknownVantaError],
383
399
  protocol: VantaProtocol,
384
400
  retry: Retry.Retry,
401
+ telemetry: TELEMETRY,
402
+ span: "V1ControlCommentUpdated",
385
403
  }));
386
404
 
387
405
  export type V1EvidenceCommentCreatedError = VantaOpError;
@@ -397,6 +415,8 @@ export const v1EvidenceCommentCreated: API.OperationMethod<
397
415
  errors: [UnknownVantaError],
398
416
  protocol: VantaProtocol,
399
417
  retry: Retry.Retry,
418
+ telemetry: TELEMETRY,
419
+ span: "V1EvidenceCommentCreated",
400
420
  }));
401
421
 
402
422
  export type V1EvidenceCommentDeletedError = VantaOpError;
@@ -412,6 +432,8 @@ export const v1EvidenceCommentDeleted: API.OperationMethod<
412
432
  errors: [UnknownVantaError],
413
433
  protocol: VantaProtocol,
414
434
  retry: Retry.Retry,
435
+ telemetry: TELEMETRY,
436
+ span: "V1EvidenceCommentDeleted",
415
437
  }));
416
438
 
417
439
  export type V1EvidenceCommentUpdatedError = VantaOpError;
@@ -427,6 +449,8 @@ export const v1EvidenceCommentUpdated: API.OperationMethod<
427
449
  errors: [UnknownVantaError],
428
450
  protocol: VantaProtocol,
429
451
  retry: Retry.Retry,
452
+ telemetry: TELEMETRY,
453
+ span: "V1EvidenceCommentUpdated",
430
454
  }));
431
455
 
432
456
  export type V1EvidenceCreatedError = VantaOpError;
@@ -442,6 +466,8 @@ export const v1EvidenceCreated: API.OperationMethod<
442
466
  errors: [UnknownVantaError],
443
467
  protocol: VantaProtocol,
444
468
  retry: Retry.Retry,
469
+ telemetry: TELEMETRY,
470
+ span: "V1EvidenceCreated",
445
471
  }));
446
472
 
447
473
  export type V1EvidenceDeletedError = VantaOpError;
@@ -457,6 +483,8 @@ export const v1EvidenceDeleted: API.OperationMethod<
457
483
  errors: [UnknownVantaError],
458
484
  protocol: VantaProtocol,
459
485
  retry: Retry.Retry,
486
+ telemetry: TELEMETRY,
487
+ span: "V1EvidenceDeleted",
460
488
  }));
461
489
 
462
490
  export type V1EvidenceStatusChangedError = VantaOpError;
@@ -472,6 +500,8 @@ export const v1EvidenceStatusChanged: API.OperationMethod<
472
500
  errors: [UnknownVantaError],
473
501
  protocol: VantaProtocol,
474
502
  retry: Retry.Retry,
503
+ telemetry: TELEMETRY,
504
+ span: "V1EvidenceStatusChanged",
475
505
  }));
476
506
 
477
507
  export type V1InformationRequestCommentCreatedError = VantaOpError;
@@ -487,6 +517,8 @@ export const v1InformationRequestCommentCreated: API.OperationMethod<
487
517
  errors: [UnknownVantaError],
488
518
  protocol: VantaProtocol,
489
519
  retry: Retry.Retry,
520
+ telemetry: TELEMETRY,
521
+ span: "V1InformationRequestCommentCreated",
490
522
  }));
491
523
 
492
524
  export type V1InformationRequestCommentDeletedError = VantaOpError;
@@ -502,6 +534,8 @@ export const v1InformationRequestCommentDeleted: API.OperationMethod<
502
534
  errors: [UnknownVantaError],
503
535
  protocol: VantaProtocol,
504
536
  retry: Retry.Retry,
537
+ telemetry: TELEMETRY,
538
+ span: "V1InformationRequestCommentDeleted",
505
539
  }));
506
540
 
507
541
  export type V1InformationRequestCommentUpdatedError = VantaOpError;
@@ -517,6 +551,8 @@ export const v1InformationRequestCommentUpdated: API.OperationMethod<
517
551
  errors: [UnknownVantaError],
518
552
  protocol: VantaProtocol,
519
553
  retry: Retry.Retry,
554
+ telemetry: TELEMETRY,
555
+ span: "V1InformationRequestCommentUpdated",
520
556
  }));
521
557
 
522
558
  export type V1InformationRequestEvidenceCreatedError = VantaOpError;
@@ -532,6 +568,8 @@ export const v1InformationRequestEvidenceCreated: API.OperationMethod<
532
568
  errors: [UnknownVantaError],
533
569
  protocol: VantaProtocol,
534
570
  retry: Retry.Retry,
571
+ telemetry: TELEMETRY,
572
+ span: "V1InformationRequestEvidenceCreated",
535
573
  }));
536
574
 
537
575
  export type V1InformationRequestEvidenceDeletedError = VantaOpError;
@@ -547,6 +585,8 @@ export const v1InformationRequestEvidenceDeleted: API.OperationMethod<
547
585
  errors: [UnknownVantaError],
548
586
  protocol: VantaProtocol,
549
587
  retry: Retry.Retry,
588
+ telemetry: TELEMETRY,
589
+ span: "V1InformationRequestEvidenceDeleted",
550
590
  }));
551
591
 
552
592
  export type V1InformationRequestStatusChangedError = VantaOpError;
@@ -562,6 +602,8 @@ export const v1InformationRequestStatusChanged: API.OperationMethod<
562
602
  errors: [UnknownVantaError],
563
603
  protocol: VantaProtocol,
564
604
  retry: Retry.Retry,
605
+ telemetry: TELEMETRY,
606
+ span: "V1InformationRequestStatusChanged",
565
607
  }));
566
608
 
567
609
  export type V1QuestionnaireCreatedError = VantaOpError;
@@ -577,6 +619,8 @@ export const v1QuestionnaireCreated: API.OperationMethod<
577
619
  errors: [UnknownVantaError],
578
620
  protocol: VantaProtocol,
579
621
  retry: Retry.Retry,
622
+ telemetry: TELEMETRY,
623
+ span: "V1QuestionnaireCreated",
580
624
  }));
581
625
 
582
626
  export type V1QuestionnaireDeletedError = VantaOpError;
@@ -592,6 +636,8 @@ export const v1QuestionnaireDeleted: API.OperationMethod<
592
636
  errors: [UnknownVantaError],
593
637
  protocol: VantaProtocol,
594
638
  retry: Retry.Retry,
639
+ telemetry: TELEMETRY,
640
+ span: "V1QuestionnaireDeleted",
595
641
  }));
596
642
 
597
643
  export type V1QuestionnaireExportCompletedError = VantaOpError;
@@ -607,6 +653,8 @@ export const v1QuestionnaireExportCompleted: API.OperationMethod<
607
653
  errors: [UnknownVantaError],
608
654
  protocol: VantaProtocol,
609
655
  retry: Retry.Retry,
656
+ telemetry: TELEMETRY,
657
+ span: "V1QuestionnaireExportCompleted",
610
658
  }));
611
659
 
612
660
  export type V1QuestionnaireExportFailedError = VantaOpError;
@@ -622,6 +670,8 @@ export const v1QuestionnaireExportFailed: API.OperationMethod<
622
670
  errors: [UnknownVantaError],
623
671
  protocol: VantaProtocol,
624
672
  retry: Retry.Retry,
673
+ telemetry: TELEMETRY,
674
+ span: "V1QuestionnaireExportFailed",
625
675
  }));
626
676
 
627
677
  export type V1QuestionnaireStatusChangedError = VantaOpError;
@@ -637,6 +687,8 @@ export const v1QuestionnaireStatusChanged: API.OperationMethod<
637
687
  errors: [UnknownVantaError],
638
688
  protocol: VantaProtocol,
639
689
  retry: Retry.Retry,
690
+ telemetry: TELEMETRY,
691
+ span: "V1QuestionnaireStatusChanged",
640
692
  }));
641
693
 
642
694
  export type V1TrustCenterAccessRequestApprovedError = VantaOpError;
@@ -652,6 +704,8 @@ export const v1TrustCenterAccessRequestApproved: API.OperationMethod<
652
704
  errors: [UnknownVantaError],
653
705
  protocol: VantaProtocol,
654
706
  retry: Retry.Retry,
707
+ telemetry: TELEMETRY,
708
+ span: "V1TrustCenterAccessRequestApproved",
655
709
  }));
656
710
 
657
711
  export type V1TrustCenterAccessRequestDeniedError = VantaOpError;
@@ -667,6 +721,8 @@ export const v1TrustCenterAccessRequestDenied: API.OperationMethod<
667
721
  errors: [UnknownVantaError],
668
722
  protocol: VantaProtocol,
669
723
  retry: Retry.Retry,
724
+ telemetry: TELEMETRY,
725
+ span: "V1TrustCenterAccessRequestDenied",
670
726
  }));
671
727
 
672
728
  export type V1TrustCenterAccessRequestReceivedError = VantaOpError;
@@ -682,6 +738,8 @@ export const v1TrustCenterAccessRequestReceived: API.OperationMethod<
682
738
  errors: [UnknownVantaError],
683
739
  protocol: VantaProtocol,
684
740
  retry: Retry.Retry,
741
+ telemetry: TELEMETRY,
742
+ span: "V1TrustCenterAccessRequestReceived",
685
743
  }));
686
744
 
687
745
  export type V1VendorDecisionCreatedError = VantaOpError;
@@ -697,6 +755,8 @@ export const v1VendorDecisionCreated: API.OperationMethod<
697
755
  errors: [UnknownVantaError],
698
756
  protocol: VantaProtocol,
699
757
  retry: Retry.Retry,
758
+ telemetry: TELEMETRY,
759
+ span: "V1VendorDecisionCreated",
700
760
  }));
701
761
 
702
762
  // Schema builders: each runs one schema initializer, on that schema's first use.