@distilled.cloud/vanta 1.0.0-rc.20 → 1.0.0-rc.21

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.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +9 -4
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +7 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +2 -3
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +9 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts.map +1 -1
  17. package/lib/services/auditor_api.d.ts +189 -6
  18. package/lib/services/auditor_api.d.ts.map +1 -1
  19. package/lib/services/auditor_api.js +81 -70
  20. package/lib/services/auditor_api.js.map +1 -1
  21. package/lib/services/build_integrations.d.ts.map +1 -1
  22. package/lib/services/build_integrations.js +45 -45
  23. package/lib/services/build_integrations.js.map +1 -1
  24. package/lib/services/index.d.ts.map +1 -1
  25. package/lib/services/manage_vanta.d.ts +635 -13
  26. package/lib/services/manage_vanta.d.ts.map +1 -1
  27. package/lib/services/manage_vanta.js +422 -401
  28. package/lib/services/manage_vanta.js.map +1 -1
  29. package/lib/services/webhooks.d.ts +39 -0
  30. package/lib/services/webhooks.d.ts.map +1 -1
  31. package/lib/services/webhooks.js +38 -34
  32. package/lib/services/webhooks.js.map +1 -1
  33. package/lib/services.lazy/auditor_api.js +3 -2
  34. package/lib/services.lazy/build_integrations.js +1 -1
  35. package/lib/services.lazy/manage_vanta.js +3 -3
  36. package/lib/services.lazy/webhooks.js +2 -2
  37. package/lib/traits.d.ts.map +1 -1
  38. package/package.json +5 -6
  39. package/src/credentials.ts +26 -20
  40. package/src/errors.ts +9 -1
  41. package/src/index.ts +2 -3
  42. package/src/protocol.ts +13 -23
  43. package/src/services/auditor_api.ts +1134 -625
  44. package/src/services/build_integrations.ts +51 -26
  45. package/src/services/manage_vanta.ts +4895 -3135
  46. package/src/services/webhooks.ts +331 -171
  47. package/lib/index.lazy.js +0 -7
  48. package/lib/index.lazy.js.map +0 -1
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { UnknownVantaError } from "../errors.ts";
5
+ import { VantaServiceErrors } from "../errors.ts";
6
6
  import { VantaProtocol, type VantaOpError, type VantaOpContext } from "../protocol.ts";
7
7
  import * as Retry from "../retry.ts";
8
8
  import * as T from "../traits.ts";
@@ -23,6 +23,14 @@ const TELEMETRY = {
23
23
  propagate: "w3c",
24
24
  } as const;
25
25
 
26
+ export interface V1AuditDeletedRequestAudit {
27
+ /** The unique identifier of the deleted audit. */
28
+ id: string;
29
+ }
30
+ export interface V1AuditDeletedRequest {
31
+ audit: V1AuditDeletedRequestAudit;
32
+ }
33
+ export interface V1AuditDeletedResponse {}
26
34
  export interface V1ControlCommentCreatedRequestControl {
27
35
  /** The unique identifier of the control the comment was added to. */
28
36
  id: string;
@@ -163,6 +171,18 @@ export interface V1InformationRequestCommentUpdatedRequest {
163
171
  comment: V1ControlCommentCreatedRequestComment;
164
172
  }
165
173
  export interface V1InformationRequestCommentUpdatedResponse {}
174
+ export type V1InformationRequestCreatedRequestInformationRequest =
175
+ V1InformationRequestCommentCreatedRequestInformationRequest;
176
+ export interface V1InformationRequestCreatedRequest {
177
+ informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
178
+ }
179
+ export interface V1InformationRequestCreatedResponse {}
180
+ export type V1InformationRequestDeletedRequestInformationRequest =
181
+ V1InformationRequestCommentCreatedRequestInformationRequest;
182
+ export interface V1InformationRequestDeletedRequest {
183
+ informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
184
+ }
185
+ export interface V1InformationRequestDeletedResponse {}
166
186
  export type V1InformationRequestEvidenceCreatedRequestInformationRequest =
167
187
  V1InformationRequestCommentCreatedRequestInformationRequest;
168
188
  export interface V1InformationRequestEvidenceCreatedRequestEvidence {
@@ -209,6 +229,12 @@ export interface V1InformationRequestStatusChangedRequest {
209
229
  informationRequest: V1InformationRequestStatusChangedRequestInformationRequest;
210
230
  }
211
231
  export interface V1InformationRequestStatusChangedResponse {}
232
+ export type V1InformationRequestUpdatedRequestInformationRequest =
233
+ V1InformationRequestCommentCreatedRequestInformationRequest;
234
+ export interface V1InformationRequestUpdatedRequest {
235
+ informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
236
+ }
237
+ export interface V1InformationRequestUpdatedResponse {}
212
238
  export interface V1QuestionnaireCreatedRequestQuestionnaire {
213
239
  /** The questionnaire ID. */
214
240
  id: string;
@@ -356,6 +382,24 @@ export interface V1VendorDecisionCreatedRequest {
356
382
  vendor: V1VendorDecisionCreatedRequestVendor;
357
383
  }
358
384
  export interface V1VendorDecisionCreatedResponse {}
385
+ export type V1AuditDeletedError = VantaOpError;
386
+ /** Audit deleted Fires when an audit accessible to your audit firm is deleted. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is an early-access feature. Reach out to your Vanta contact to enable it. Remove the audit and all its mirrored resources from your system using the audit ID in this event. Deleting an audit does not produce separate deletion events for its information requests, evidence, or comments. */
387
+ export const v1AuditDeleted: API.OperationMethod<
388
+ V1AuditDeletedRequest,
389
+ V1AuditDeletedResponse,
390
+ V1AuditDeletedError,
391
+ VantaOpContext
392
+ > = /*@__PURE__*/ API.make(() => ({
393
+ input: __S(0, __c0, 0) as any as S.Schema<V1AuditDeletedRequest>,
394
+ output: __S(8, __c2, 0) as any as S.Schema<V1AuditDeletedResponse>,
395
+ errors: [],
396
+ serviceErrors: VantaServiceErrors,
397
+ protocol: VantaProtocol,
398
+ retry: Retry.Retry,
399
+ telemetry: TELEMETRY,
400
+ span: "V1AuditDeleted",
401
+ }));
402
+
359
403
  export type V1ControlCommentCreatedError = VantaOpError;
360
404
  /** Control comment created An external comment was created on an audit control. Fires once per comment. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature -- reach out to your Vanta contact to enable it. The payload contains only identifiers. Fetch the comment body from `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
361
405
  export const v1ControlCommentCreated: API.OperationMethod<
@@ -364,9 +408,10 @@ export const v1ControlCommentCreated: API.OperationMethod<
364
408
  V1ControlCommentCreatedError,
365
409
  VantaOpContext
366
410
  > = /*@__PURE__*/ API.make(() => ({
367
- input: __S(0, __c0, 0) as any as S.Schema<V1ControlCommentCreatedRequest>,
368
- output: __S(4, __c1, 0) as any as S.Schema<V1ControlCommentCreatedResponse>,
369
- errors: [UnknownVantaError],
411
+ input: __S(12, __c3, 0) as any as S.Schema<V1ControlCommentCreatedRequest>,
412
+ output: __S(8, __c2, 0) as any as S.Schema<V1ControlCommentCreatedResponse>,
413
+ errors: [],
414
+ serviceErrors: VantaServiceErrors,
370
415
  protocol: VantaProtocol,
371
416
  retry: Retry.Retry,
372
417
  telemetry: TELEMETRY,
@@ -381,9 +426,10 @@ export const v1ControlCommentDeleted: API.OperationMethod<
381
426
  V1ControlCommentDeletedError,
382
427
  VantaOpContext
383
428
  > = /*@__PURE__*/ API.make(() => ({
384
- input: __S(16, __c4, 0) as any as S.Schema<V1ControlCommentDeletedRequest>,
385
- output: __S(4, __c1, 0) as any as S.Schema<V1ControlCommentDeletedResponse>,
386
- errors: [UnknownVantaError],
429
+ input: __S(60, __c15, 0) as any as S.Schema<V1ControlCommentDeletedRequest>,
430
+ output: __S(8, __c2, 0) as any as S.Schema<V1ControlCommentDeletedResponse>,
431
+ errors: [],
432
+ serviceErrors: VantaServiceErrors,
387
433
  protocol: VantaProtocol,
388
434
  retry: Retry.Retry,
389
435
  telemetry: TELEMETRY,
@@ -398,9 +444,10 @@ export const v1ControlCommentUpdated: API.OperationMethod<
398
444
  V1ControlCommentUpdatedError,
399
445
  VantaOpContext
400
446
  > = /*@__PURE__*/ API.make(() => ({
401
- input: __S(60, __c15, 0) as any as S.Schema<V1ControlCommentUpdatedRequest>,
402
- output: __S(4, __c1, 0) as any as S.Schema<V1ControlCommentUpdatedResponse>,
403
- errors: [UnknownVantaError],
447
+ input: __S(100, __c25, 0) as any as S.Schema<V1ControlCommentUpdatedRequest>,
448
+ output: __S(8, __c2, 0) as any as S.Schema<V1ControlCommentUpdatedResponse>,
449
+ errors: [],
450
+ serviceErrors: VantaServiceErrors,
404
451
  protocol: VantaProtocol,
405
452
  retry: Retry.Retry,
406
453
  telemetry: TELEMETRY,
@@ -415,9 +462,10 @@ export const v1EvidenceCommentCreated: API.OperationMethod<
415
462
  V1EvidenceCommentCreatedError,
416
463
  VantaOpContext
417
464
  > = /*@__PURE__*/ API.make(() => ({
418
- input: __S(84, __c21, 0) as any as S.Schema<V1EvidenceCommentCreatedRequest>,
419
- output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCommentCreatedResponse>,
420
- errors: [UnknownVantaError],
465
+ input: __S(104, __c26, 0) as any as S.Schema<V1EvidenceCommentCreatedRequest>,
466
+ output: __S(8, __c2, 0) as any as S.Schema<V1EvidenceCommentCreatedResponse>,
467
+ errors: [],
468
+ serviceErrors: VantaServiceErrors,
421
469
  protocol: VantaProtocol,
422
470
  retry: Retry.Retry,
423
471
  telemetry: TELEMETRY,
@@ -432,9 +480,10 @@ export const v1EvidenceCommentDeleted: API.OperationMethod<
432
480
  V1EvidenceCommentDeletedError,
433
481
  VantaOpContext
434
482
  > = /*@__PURE__*/ API.make(() => ({
435
- input: __S(88, __c22, 0) as any as S.Schema<V1EvidenceCommentDeletedRequest>,
436
- output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCommentDeletedResponse>,
437
- errors: [UnknownVantaError],
483
+ input: __S(108, __c27, 0) as any as S.Schema<V1EvidenceCommentDeletedRequest>,
484
+ output: __S(8, __c2, 0) as any as S.Schema<V1EvidenceCommentDeletedResponse>,
485
+ errors: [],
486
+ serviceErrors: VantaServiceErrors,
438
487
  protocol: VantaProtocol,
439
488
  retry: Retry.Retry,
440
489
  telemetry: TELEMETRY,
@@ -449,9 +498,10 @@ export const v1EvidenceCommentUpdated: API.OperationMethod<
449
498
  V1EvidenceCommentUpdatedError,
450
499
  VantaOpContext
451
500
  > = /*@__PURE__*/ API.make(() => ({
452
- input: __S(92, __c23, 0) as any as S.Schema<V1EvidenceCommentUpdatedRequest>,
453
- output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCommentUpdatedResponse>,
454
- errors: [UnknownVantaError],
501
+ input: __S(112, __c28, 0) as any as S.Schema<V1EvidenceCommentUpdatedRequest>,
502
+ output: __S(8, __c2, 0) as any as S.Schema<V1EvidenceCommentUpdatedResponse>,
503
+ errors: [],
504
+ serviceErrors: VantaServiceErrors,
455
505
  protocol: VantaProtocol,
456
506
  retry: Retry.Retry,
457
507
  telemetry: TELEMETRY,
@@ -466,9 +516,10 @@ export const v1EvidenceCreated: API.OperationMethod<
466
516
  V1EvidenceCreatedError,
467
517
  VantaOpContext
468
518
  > = /*@__PURE__*/ API.make(() => ({
469
- input: __S(96, __c24, 0) as any as S.Schema<V1EvidenceCreatedRequest>,
470
- output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCreatedResponse>,
471
- errors: [UnknownVantaError],
519
+ input: __S(116, __c29, 0) as any as S.Schema<V1EvidenceCreatedRequest>,
520
+ output: __S(8, __c2, 0) as any as S.Schema<V1EvidenceCreatedResponse>,
521
+ errors: [],
522
+ serviceErrors: VantaServiceErrors,
472
523
  protocol: VantaProtocol,
473
524
  retry: Retry.Retry,
474
525
  telemetry: TELEMETRY,
@@ -483,9 +534,10 @@ export const v1EvidenceDeleted: API.OperationMethod<
483
534
  V1EvidenceDeletedError,
484
535
  VantaOpContext
485
536
  > = /*@__PURE__*/ API.make(() => ({
486
- input: __S(100, __c25, 0) as any as S.Schema<V1EvidenceDeletedRequest>,
487
- output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceDeletedResponse>,
488
- errors: [UnknownVantaError],
537
+ input: __S(120, __c30, 0) as any as S.Schema<V1EvidenceDeletedRequest>,
538
+ output: __S(8, __c2, 0) as any as S.Schema<V1EvidenceDeletedResponse>,
539
+ errors: [],
540
+ serviceErrors: VantaServiceErrors,
489
541
  protocol: VantaProtocol,
490
542
  retry: Retry.Retry,
491
543
  telemetry: TELEMETRY,
@@ -500,9 +552,10 @@ export const v1EvidenceStatusChanged: API.OperationMethod<
500
552
  V1EvidenceStatusChangedError,
501
553
  VantaOpContext
502
554
  > = /*@__PURE__*/ API.make(() => ({
503
- input: __S(104, __c26, 0) as any as S.Schema<V1EvidenceStatusChangedRequest>,
504
- output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceStatusChangedResponse>,
505
- errors: [UnknownVantaError],
555
+ input: __S(124, __c31, 0) as any as S.Schema<V1EvidenceStatusChangedRequest>,
556
+ output: __S(8, __c2, 0) as any as S.Schema<V1EvidenceStatusChangedResponse>,
557
+ errors: [],
558
+ serviceErrors: VantaServiceErrors,
506
559
  protocol: VantaProtocol,
507
560
  retry: Retry.Retry,
508
561
  telemetry: TELEMETRY,
@@ -517,9 +570,10 @@ export const v1InformationRequestCommentCreated: API.OperationMethod<
517
570
  V1InformationRequestCommentCreatedError,
518
571
  VantaOpContext
519
572
  > = /*@__PURE__*/ API.make(() => ({
520
- input: __S(112, __c28, 0) as any as S.Schema<V1InformationRequestCommentCreatedRequest>,
521
- output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestCommentCreatedResponse>,
522
- errors: [UnknownVantaError],
573
+ input: __S(20, __c5, 0) as any as S.Schema<V1InformationRequestCommentCreatedRequest>,
574
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestCommentCreatedResponse>,
575
+ errors: [],
576
+ serviceErrors: VantaServiceErrors,
523
577
  protocol: VantaProtocol,
524
578
  retry: Retry.Retry,
525
579
  telemetry: TELEMETRY,
@@ -534,9 +588,10 @@ export const v1InformationRequestCommentDeleted: API.OperationMethod<
534
588
  V1InformationRequestCommentDeletedError,
535
589
  VantaOpContext
536
590
  > = /*@__PURE__*/ API.make(() => ({
537
- input: __S(20, __c5, 0) as any as S.Schema<V1InformationRequestCommentDeletedRequest>,
538
- output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestCommentDeletedResponse>,
539
- errors: [UnknownVantaError],
591
+ input: __S(24, __c6, 0) as any as S.Schema<V1InformationRequestCommentDeletedRequest>,
592
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestCommentDeletedResponse>,
593
+ errors: [],
594
+ serviceErrors: VantaServiceErrors,
540
595
  protocol: VantaProtocol,
541
596
  retry: Retry.Retry,
542
597
  telemetry: TELEMETRY,
@@ -551,15 +606,52 @@ export const v1InformationRequestCommentUpdated: API.OperationMethod<
551
606
  V1InformationRequestCommentUpdatedError,
552
607
  VantaOpContext
553
608
  > = /*@__PURE__*/ API.make(() => ({
554
- input: __S(24, __c6, 0) as any as S.Schema<V1InformationRequestCommentUpdatedRequest>,
555
- output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestCommentUpdatedResponse>,
556
- errors: [UnknownVantaError],
609
+ input: __S(28, __c7, 0) as any as S.Schema<V1InformationRequestCommentUpdatedRequest>,
610
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestCommentUpdatedResponse>,
611
+ errors: [],
612
+ serviceErrors: VantaServiceErrors,
557
613
  protocol: VantaProtocol,
558
614
  retry: Retry.Retry,
559
615
  telemetry: TELEMETRY,
560
616
  span: "V1InformationRequestCommentUpdated",
561
617
  }));
562
618
 
619
+ export type V1InformationRequestCreatedError = VantaOpError;
620
+ /** Information request created Fires when an information request is created for an audit accessible to your audit firm. Bulk creation produces one event per request. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts. The payload contains only identifiers. Fetch current details with `GET /v1/audits/{auditId}/information-requests/{requestId}`. */
621
+ export const v1InformationRequestCreated: API.OperationMethod<
622
+ V1InformationRequestCreatedRequest,
623
+ V1InformationRequestCreatedResponse,
624
+ V1InformationRequestCreatedError,
625
+ VantaOpContext
626
+ > = /*@__PURE__*/ API.make(() => ({
627
+ input: __S(32, __c8, 0) as any as S.Schema<V1InformationRequestCreatedRequest>,
628
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestCreatedResponse>,
629
+ errors: [],
630
+ serviceErrors: VantaServiceErrors,
631
+ protocol: VantaProtocol,
632
+ retry: Retry.Retry,
633
+ telemetry: TELEMETRY,
634
+ span: "V1InformationRequestCreated",
635
+ }));
636
+
637
+ export type V1InformationRequestDeletedError = VantaOpError;
638
+ /** Information request deleted Fires when an information request is deleted from an audit accessible to your audit firm. Bulk deletion produces one event per request. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is an early-access feature. Reach out to your Vanta contact to enable it. Treat the request and all its mirrored comments and evidence as deleted in your system. Vanta does not send separate comment or evidence deletion events for this operation. */
639
+ export const v1InformationRequestDeleted: API.OperationMethod<
640
+ V1InformationRequestDeletedRequest,
641
+ V1InformationRequestDeletedResponse,
642
+ V1InformationRequestDeletedError,
643
+ VantaOpContext
644
+ > = /*@__PURE__*/ API.make(() => ({
645
+ input: __S(36, __c9, 0) as any as S.Schema<V1InformationRequestDeletedRequest>,
646
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestDeletedResponse>,
647
+ errors: [],
648
+ serviceErrors: VantaServiceErrors,
649
+ protocol: VantaProtocol,
650
+ retry: Retry.Retry,
651
+ telemetry: TELEMETRY,
652
+ span: "V1InformationRequestDeleted",
653
+ }));
654
+
563
655
  export type V1InformationRequestEvidenceCreatedError = VantaOpError;
564
656
  /** Information request evidence created Fires when a piece of evidence is added to an information request. Fires once per piece of evidence -- if several pieces are added in a single action, you receive one event per piece. These `v1.information-request.evidence.*` events belong to the Information Request experience and are unrelated to the `v1.evidence.*` classic audit evidence events. */
565
657
  export const v1InformationRequestEvidenceCreated: API.OperationMethod<
@@ -568,9 +660,10 @@ export const v1InformationRequestEvidenceCreated: API.OperationMethod<
568
660
  V1InformationRequestEvidenceCreatedError,
569
661
  VantaOpContext
570
662
  > = /*@__PURE__*/ API.make(() => ({
571
- input: __S(28, __c7, 0) as any as S.Schema<V1InformationRequestEvidenceCreatedRequest>,
572
- output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestEvidenceCreatedResponse>,
573
- errors: [UnknownVantaError],
663
+ input: __S(40, __c10, 0) as any as S.Schema<V1InformationRequestEvidenceCreatedRequest>,
664
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestEvidenceCreatedResponse>,
665
+ errors: [],
666
+ serviceErrors: VantaServiceErrors,
574
667
  protocol: VantaProtocol,
575
668
  retry: Retry.Retry,
576
669
  telemetry: TELEMETRY,
@@ -585,9 +678,10 @@ export const v1InformationRequestEvidenceDeleted: API.OperationMethod<
585
678
  V1InformationRequestEvidenceDeletedError,
586
679
  VantaOpContext
587
680
  > = /*@__PURE__*/ API.make(() => ({
588
- input: __S(32, __c8, 0) as any as S.Schema<V1InformationRequestEvidenceDeletedRequest>,
589
- output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestEvidenceDeletedResponse>,
590
- errors: [UnknownVantaError],
681
+ input: __S(44, __c11, 0) as any as S.Schema<V1InformationRequestEvidenceDeletedRequest>,
682
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestEvidenceDeletedResponse>,
683
+ errors: [],
684
+ serviceErrors: VantaServiceErrors,
591
685
  protocol: VantaProtocol,
592
686
  retry: Retry.Retry,
593
687
  telemetry: TELEMETRY,
@@ -602,15 +696,34 @@ export const v1InformationRequestStatusChanged: API.OperationMethod<
602
696
  V1InformationRequestStatusChangedError,
603
697
  VantaOpContext
604
698
  > = /*@__PURE__*/ API.make(() => ({
605
- input: __S(36, __c9, 0) as any as S.Schema<V1InformationRequestStatusChangedRequest>,
606
- output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestStatusChangedResponse>,
607
- errors: [UnknownVantaError],
699
+ input: __S(48, __c12, 0) as any as S.Schema<V1InformationRequestStatusChangedRequest>,
700
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestStatusChangedResponse>,
701
+ errors: [],
702
+ serviceErrors: VantaServiceErrors,
608
703
  protocol: VantaProtocol,
609
704
  retry: Retry.Retry,
610
705
  telemetry: TELEMETRY,
611
706
  span: "V1InformationRequestStatusChanged",
612
707
  }));
613
708
 
709
+ export type V1InformationRequestUpdatedError = VantaOpError;
710
+ /** Information request updated Fires when an information request's metadata changes on an audit accessible to your audit firm. Bulk edits produce one event per request that changed at least one trigger field. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts. **Trigger fields:** `dueDate`, `evidenceCaptureDate`, `title`, `description`, `requestType` and `cadence`. Setting, changing or clearing a due date all emit this event. Approval status, comments and evidence have their own events. Changes to owner assignment, linked controls or segment assignment do not emit this event. The payload contains only identifiers. Fetch current details with `GET /v1/audits/{auditId}/information-requests/{requestId}`. */
711
+ export const v1InformationRequestUpdated: API.OperationMethod<
712
+ V1InformationRequestUpdatedRequest,
713
+ V1InformationRequestUpdatedResponse,
714
+ V1InformationRequestUpdatedError,
715
+ VantaOpContext
716
+ > = /*@__PURE__*/ API.make(() => ({
717
+ input: __S(52, __c13, 0) as any as S.Schema<V1InformationRequestUpdatedRequest>,
718
+ output: __S(8, __c2, 0) as any as S.Schema<V1InformationRequestUpdatedResponse>,
719
+ errors: [],
720
+ serviceErrors: VantaServiceErrors,
721
+ protocol: VantaProtocol,
722
+ retry: Retry.Retry,
723
+ telemetry: TELEMETRY,
724
+ span: "V1InformationRequestUpdated",
725
+ }));
726
+
614
727
  export type V1QuestionnaireCreatedError = VantaOpError;
615
728
  /** Questionnaire created A questionnaire was created. */
616
729
  export const v1QuestionnaireCreated: API.OperationMethod<
@@ -619,9 +732,10 @@ export const v1QuestionnaireCreated: API.OperationMethod<
619
732
  V1QuestionnaireCreatedError,
620
733
  VantaOpContext
621
734
  > = /*@__PURE__*/ API.make(() => ({
622
- input: __S(40, __c10, 0) as any as S.Schema<V1QuestionnaireCreatedRequest>,
623
- output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireCreatedResponse>,
624
- errors: [UnknownVantaError],
735
+ input: __S(56, __c14, 0) as any as S.Schema<V1QuestionnaireCreatedRequest>,
736
+ output: __S(8, __c2, 0) as any as S.Schema<V1QuestionnaireCreatedResponse>,
737
+ errors: [],
738
+ serviceErrors: VantaServiceErrors,
625
739
  protocol: VantaProtocol,
626
740
  retry: Retry.Retry,
627
741
  telemetry: TELEMETRY,
@@ -636,9 +750,10 @@ export const v1QuestionnaireDeleted: API.OperationMethod<
636
750
  V1QuestionnaireDeletedError,
637
751
  VantaOpContext
638
752
  > = /*@__PURE__*/ API.make(() => ({
639
- input: __S(44, __c11, 0) as any as S.Schema<V1QuestionnaireDeletedRequest>,
640
- output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireDeletedResponse>,
641
- errors: [UnknownVantaError],
753
+ input: __S(64, __c16, 0) as any as S.Schema<V1QuestionnaireDeletedRequest>,
754
+ output: __S(8, __c2, 0) as any as S.Schema<V1QuestionnaireDeletedResponse>,
755
+ errors: [],
756
+ serviceErrors: VantaServiceErrors,
642
757
  protocol: VantaProtocol,
643
758
  retry: Retry.Retry,
644
759
  telemetry: TELEMETRY,
@@ -653,9 +768,10 @@ export const v1QuestionnaireExportCompleted: API.OperationMethod<
653
768
  V1QuestionnaireExportCompletedError,
654
769
  VantaOpContext
655
770
  > = /*@__PURE__*/ API.make(() => ({
656
- input: __S(49, __c12, 1) as any as S.Schema<V1QuestionnaireExportCompletedRequest>,
657
- output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireExportCompletedResponse>,
658
- errors: [UnknownVantaError],
771
+ input: __S(69, __c17, 1) as any as S.Schema<V1QuestionnaireExportCompletedRequest>,
772
+ output: __S(8, __c2, 0) as any as S.Schema<V1QuestionnaireExportCompletedResponse>,
773
+ errors: [],
774
+ serviceErrors: VantaServiceErrors,
659
775
  protocol: VantaProtocol,
660
776
  retry: Retry.Retry,
661
777
  telemetry: TELEMETRY,
@@ -670,9 +786,10 @@ export const v1QuestionnaireExportFailed: API.OperationMethod<
670
786
  V1QuestionnaireExportFailedError,
671
787
  VantaOpContext
672
788
  > = /*@__PURE__*/ API.make(() => ({
673
- input: __S(53, __c13, 1) as any as S.Schema<V1QuestionnaireExportFailedRequest>,
674
- output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireExportFailedResponse>,
675
- errors: [UnknownVantaError],
789
+ input: __S(73, __c18, 1) as any as S.Schema<V1QuestionnaireExportFailedRequest>,
790
+ output: __S(8, __c2, 0) as any as S.Schema<V1QuestionnaireExportFailedResponse>,
791
+ errors: [],
792
+ serviceErrors: VantaServiceErrors,
676
793
  protocol: VantaProtocol,
677
794
  retry: Retry.Retry,
678
795
  telemetry: TELEMETRY,
@@ -687,9 +804,10 @@ export const v1QuestionnaireStatusChanged: API.OperationMethod<
687
804
  V1QuestionnaireStatusChangedError,
688
805
  VantaOpContext
689
806
  > = /*@__PURE__*/ API.make(() => ({
690
- input: __S(57, __c14, 1) as any as S.Schema<V1QuestionnaireStatusChangedRequest>,
691
- output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireStatusChangedResponse>,
692
- errors: [UnknownVantaError],
807
+ input: __S(77, __c19, 1) as any as S.Schema<V1QuestionnaireStatusChangedRequest>,
808
+ output: __S(8, __c2, 0) as any as S.Schema<V1QuestionnaireStatusChangedResponse>,
809
+ errors: [],
810
+ serviceErrors: VantaServiceErrors,
693
811
  protocol: VantaProtocol,
694
812
  retry: Retry.Retry,
695
813
  telemetry: TELEMETRY,
@@ -704,9 +822,10 @@ export const v1TrustCenterAccessRequestApproved: API.OperationMethod<
704
822
  V1TrustCenterAccessRequestApprovedError,
705
823
  VantaOpContext
706
824
  > = /*@__PURE__*/ API.make(() => ({
707
- input: __S(64, __c16, 0) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequest>,
708
- output: __S(4, __c1, 0) as any as S.Schema<V1TrustCenterAccessRequestApprovedResponse>,
709
- errors: [UnknownVantaError],
825
+ input: __S(80, __c20, 0) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequest>,
826
+ output: __S(8, __c2, 0) as any as S.Schema<V1TrustCenterAccessRequestApprovedResponse>,
827
+ errors: [],
828
+ serviceErrors: VantaServiceErrors,
710
829
  protocol: VantaProtocol,
711
830
  retry: Retry.Retry,
712
831
  telemetry: TELEMETRY,
@@ -721,9 +840,10 @@ export const v1TrustCenterAccessRequestDenied: API.OperationMethod<
721
840
  V1TrustCenterAccessRequestDeniedError,
722
841
  VantaOpContext
723
842
  > = /*@__PURE__*/ API.make(() => ({
724
- input: __S(72, __c18, 0) as any as S.Schema<V1TrustCenterAccessRequestDeniedRequest>,
725
- output: __S(4, __c1, 0) as any as S.Schema<V1TrustCenterAccessRequestDeniedResponse>,
726
- errors: [UnknownVantaError],
843
+ input: __S(88, __c22, 0) as any as S.Schema<V1TrustCenterAccessRequestDeniedRequest>,
844
+ output: __S(8, __c2, 0) as any as S.Schema<V1TrustCenterAccessRequestDeniedResponse>,
845
+ errors: [],
846
+ serviceErrors: VantaServiceErrors,
727
847
  protocol: VantaProtocol,
728
848
  retry: Retry.Retry,
729
849
  telemetry: TELEMETRY,
@@ -738,9 +858,10 @@ export const v1TrustCenterAccessRequestReceived: API.OperationMethod<
738
858
  V1TrustCenterAccessRequestReceivedError,
739
859
  VantaOpContext
740
860
  > = /*@__PURE__*/ API.make(() => ({
741
- input: __S(76, __c19, 0) as any as S.Schema<V1TrustCenterAccessRequestReceivedRequest>,
742
- output: __S(4, __c1, 0) as any as S.Schema<V1TrustCenterAccessRequestReceivedResponse>,
743
- errors: [UnknownVantaError],
861
+ input: __S(92, __c23, 0) as any as S.Schema<V1TrustCenterAccessRequestReceivedRequest>,
862
+ output: __S(8, __c2, 0) as any as S.Schema<V1TrustCenterAccessRequestReceivedResponse>,
863
+ errors: [],
864
+ serviceErrors: VantaServiceErrors,
744
865
  protocol: VantaProtocol,
745
866
  retry: Retry.Retry,
746
867
  telemetry: TELEMETRY,
@@ -755,9 +876,10 @@ export const v1VendorDecisionCreated: API.OperationMethod<
755
876
  V1VendorDecisionCreatedError,
756
877
  VantaOpContext
757
878
  > = /*@__PURE__*/ API.make(() => ({
758
- input: __S(82, __c20, 2) as any as S.Schema<V1VendorDecisionCreatedRequest>,
759
- output: __S(4, __c1, 0) as any as S.Schema<V1VendorDecisionCreatedResponse>,
760
- errors: [UnknownVantaError],
879
+ input: __S(98, __c24, 2) as any as S.Schema<V1VendorDecisionCreatedRequest>,
880
+ output: __S(8, __c2, 0) as any as S.Schema<V1VendorDecisionCreatedResponse>,
881
+ errors: [],
882
+ serviceErrors: VantaServiceErrors,
761
883
  protocol: VantaProtocol,
762
884
  retry: Retry.Retry,
763
885
  telemetry: TELEMETRY,
@@ -770,137 +892,188 @@ function __c0(j: number): any {
770
892
  case 0:
771
893
  return S.suspend(() =>
772
894
  S.Struct({
773
- control: __S(8, __c2, 0),
774
- comment: __S(12, __c3, 0),
775
- }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.created", code: 200 })),
776
- ).annotate({ identifier: "V1ControlCommentCreatedRequest" });
895
+ audit: __S(4, __c1, 0),
896
+ }).pipe(T.Http({ method: "POST", uri: "/v1.audit.deleted", code: 200 })),
897
+ ).annotate({ identifier: "V1AuditDeletedRequest" });
777
898
  }
778
899
  }
779
900
  function __c1(j: number): any {
780
901
  switch (j) {
781
902
  case 0:
782
- return S.suspend(() => S.Struct({})).annotate({
783
- identifier: "V1ControlCommentCreatedResponse",
784
- });
903
+ return S.suspend(() =>
904
+ S.Struct({
905
+ id: S.String,
906
+ }),
907
+ ).annotate({ identifier: "V1AuditDeletedRequestAudit" });
785
908
  }
786
909
  }
787
910
  function __c2(j: number): any {
911
+ switch (j) {
912
+ case 0:
913
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "V1AuditDeletedResponse" });
914
+ }
915
+ }
916
+ function __c3(j: number): any {
788
917
  switch (j) {
789
918
  case 0:
790
919
  return S.suspend(() =>
791
920
  S.Struct({
792
- id: S.String,
793
- auditId: S.String,
794
- }),
795
- ).annotate({ identifier: "V1ControlCommentCreatedRequestControl" });
921
+ control: __S(16, __c4, 0),
922
+ comment: __S(4, __c1, 0),
923
+ }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.created", code: 200 })),
924
+ ).annotate({ identifier: "V1ControlCommentCreatedRequest" });
796
925
  }
797
926
  }
798
- function __c3(j: number): any {
927
+ function __c4(j: number): any {
799
928
  switch (j) {
800
929
  case 0:
801
930
  return S.suspend(() =>
802
931
  S.Struct({
803
932
  id: S.String,
933
+ auditId: S.String,
804
934
  }),
805
- ).annotate({ identifier: "V1ControlCommentCreatedRequestComment" });
935
+ ).annotate({ identifier: "V1ControlCommentCreatedRequestControl" });
806
936
  }
807
937
  }
808
- function __c4(j: number): any {
938
+ function __c5(j: number): any {
809
939
  switch (j) {
810
940
  case 0:
811
941
  return S.suspend(() =>
812
942
  S.Struct({
813
- control: __S(8, __c2, 0),
814
- comment: __S(12, __c3, 0),
815
- }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.deleted", code: 200 })),
816
- ).annotate({ identifier: "V1ControlCommentDeletedRequest" });
943
+ informationRequest: __S(16, __c4, 0),
944
+ comment: __S(4, __c1, 0),
945
+ }).pipe(
946
+ T.Http({ method: "POST", uri: "/v1.information-request.comment.created", code: 200 }),
947
+ ),
948
+ ).annotate({ identifier: "V1InformationRequestCommentCreatedRequest" });
817
949
  }
818
950
  }
819
- function __c5(j: number): any {
951
+ function __c6(j: number): any {
820
952
  switch (j) {
821
953
  case 0:
822
954
  return S.suspend(() =>
823
955
  S.Struct({
824
- informationRequest: __S(8, __c2, 0),
825
- comment: __S(12, __c3, 0),
956
+ informationRequest: __S(16, __c4, 0),
957
+ comment: __S(4, __c1, 0),
826
958
  }).pipe(
827
959
  T.Http({ method: "POST", uri: "/v1.information-request.comment.deleted", code: 200 }),
828
960
  ),
829
961
  ).annotate({ identifier: "V1InformationRequestCommentDeletedRequest" });
830
962
  }
831
963
  }
832
- function __c6(j: number): any {
964
+ function __c7(j: number): any {
833
965
  switch (j) {
834
966
  case 0:
835
967
  return S.suspend(() =>
836
968
  S.Struct({
837
- informationRequest: __S(8, __c2, 0),
838
- comment: __S(12, __c3, 0),
969
+ informationRequest: __S(16, __c4, 0),
970
+ comment: __S(4, __c1, 0),
839
971
  }).pipe(
840
972
  T.Http({ method: "POST", uri: "/v1.information-request.comment.updated", code: 200 }),
841
973
  ),
842
974
  ).annotate({ identifier: "V1InformationRequestCommentUpdatedRequest" });
843
975
  }
844
976
  }
845
- function __c7(j: number): any {
977
+ function __c8(j: number): any {
978
+ switch (j) {
979
+ case 0:
980
+ return S.suspend(() =>
981
+ S.Struct({
982
+ informationRequest: __S(16, __c4, 0),
983
+ }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.created", code: 200 })),
984
+ ).annotate({ identifier: "V1InformationRequestCreatedRequest" });
985
+ }
986
+ }
987
+ function __c9(j: number): any {
988
+ switch (j) {
989
+ case 0:
990
+ return S.suspend(() =>
991
+ S.Struct({
992
+ informationRequest: __S(16, __c4, 0),
993
+ }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.deleted", code: 200 })),
994
+ ).annotate({ identifier: "V1InformationRequestDeletedRequest" });
995
+ }
996
+ }
997
+ function __c10(j: number): any {
846
998
  switch (j) {
847
999
  case 0:
848
1000
  return S.suspend(() =>
849
1001
  S.Struct({
850
- informationRequest: __S(8, __c2, 0),
851
- evidence: __S(12, __c3, 0),
1002
+ informationRequest: __S(16, __c4, 0),
1003
+ evidence: __S(4, __c1, 0),
852
1004
  }).pipe(
853
1005
  T.Http({ method: "POST", uri: "/v1.information-request.evidence.created", code: 200 }),
854
1006
  ),
855
1007
  ).annotate({ identifier: "V1InformationRequestEvidenceCreatedRequest" });
856
1008
  }
857
1009
  }
858
- function __c8(j: number): any {
1010
+ function __c11(j: number): any {
859
1011
  switch (j) {
860
1012
  case 0:
861
1013
  return S.suspend(() =>
862
1014
  S.Struct({
863
- informationRequest: __S(8, __c2, 0),
864
- evidence: __S(12, __c3, 0),
1015
+ informationRequest: __S(16, __c4, 0),
1016
+ evidence: __S(4, __c1, 0),
865
1017
  }).pipe(
866
1018
  T.Http({ method: "POST", uri: "/v1.information-request.evidence.deleted", code: 200 }),
867
1019
  ),
868
1020
  ).annotate({ identifier: "V1InformationRequestEvidenceDeletedRequest" });
869
1021
  }
870
1022
  }
871
- function __c9(j: number): any {
1023
+ function __c12(j: number): any {
872
1024
  switch (j) {
873
1025
  case 0:
874
1026
  return S.suspend(() =>
875
1027
  S.Struct({
876
- informationRequest: __S(108, __c27, 0),
1028
+ informationRequest: __S(128, __c32, 0),
877
1029
  }).pipe(
878
1030
  T.Http({ method: "POST", uri: "/v1.information-request.status-changed", code: 200 }),
879
1031
  ),
880
1032
  ).annotate({ identifier: "V1InformationRequestStatusChangedRequest" });
881
1033
  }
882
1034
  }
883
- function __c10(j: number): any {
1035
+ function __c13(j: number): any {
884
1036
  switch (j) {
885
1037
  case 0:
886
1038
  return S.suspend(() =>
887
1039
  S.Struct({
888
- questionnaire: __S(12, __c3, 0),
1040
+ informationRequest: __S(16, __c4, 0),
1041
+ }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.updated", code: 200 })),
1042
+ ).annotate({ identifier: "V1InformationRequestUpdatedRequest" });
1043
+ }
1044
+ }
1045
+ function __c14(j: number): any {
1046
+ switch (j) {
1047
+ case 0:
1048
+ return S.suspend(() =>
1049
+ S.Struct({
1050
+ questionnaire: __S(4, __c1, 0),
889
1051
  }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.created", code: 200 })),
890
1052
  ).annotate({ identifier: "V1QuestionnaireCreatedRequest" });
891
1053
  }
892
1054
  }
893
- function __c11(j: number): any {
1055
+ function __c15(j: number): any {
1056
+ switch (j) {
1057
+ case 0:
1058
+ return S.suspend(() =>
1059
+ S.Struct({
1060
+ control: __S(16, __c4, 0),
1061
+ comment: __S(4, __c1, 0),
1062
+ }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.deleted", code: 200 })),
1063
+ ).annotate({ identifier: "V1ControlCommentDeletedRequest" });
1064
+ }
1065
+ }
1066
+ function __c16(j: number): any {
894
1067
  switch (j) {
895
1068
  case 0:
896
1069
  return S.suspend(() =>
897
1070
  S.Struct({
898
- questionnaire: __S(12, __c3, 0),
1071
+ questionnaire: __S(4, __c1, 0),
899
1072
  }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.deleted", code: 200 })),
900
1073
  ).annotate({ identifier: "V1QuestionnaireDeletedRequest" });
901
1074
  }
902
1075
  }
903
- function __c12(j: number): any {
1076
+ function __c17(j: number): any {
904
1077
  switch (j) {
905
1078
  case 0:
906
1079
  return S.suspend(() =>
@@ -914,13 +1087,13 @@ function __c12(j: number): any {
914
1087
  case 1:
915
1088
  return S.suspend(() =>
916
1089
  S.Struct({
917
- questionnaire: __S(12, __c3, 0),
918
- export: __S(48, __c12, 0),
1090
+ questionnaire: __S(4, __c1, 0),
1091
+ export: __S(68, __c17, 0),
919
1092
  }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-completed", code: 200 })),
920
1093
  ).annotate({ identifier: "V1QuestionnaireExportCompletedRequest" });
921
1094
  }
922
1095
  }
923
- function __c13(j: number): any {
1096
+ function __c18(j: number): any {
924
1097
  switch (j) {
925
1098
  case 0:
926
1099
  return S.suspend(() =>
@@ -935,13 +1108,13 @@ function __c13(j: number): any {
935
1108
  case 1:
936
1109
  return S.suspend(() =>
937
1110
  S.Struct({
938
- questionnaire: __S(12, __c3, 0),
939
- export: __S(52, __c13, 0),
1111
+ questionnaire: __S(4, __c1, 0),
1112
+ export: __S(72, __c18, 0),
940
1113
  }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-failed", code: 200 })),
941
1114
  ).annotate({ identifier: "V1QuestionnaireExportFailedRequest" });
942
1115
  }
943
1116
  }
944
- function __c14(j: number): any {
1117
+ function __c19(j: number): any {
945
1118
  switch (j) {
946
1119
  case 0:
947
1120
  return S.suspend(() =>
@@ -953,37 +1126,26 @@ function __c14(j: number): any {
953
1126
  case 1:
954
1127
  return S.suspend(() =>
955
1128
  S.Struct({
956
- questionnaire: __S(56, __c14, 0),
1129
+ questionnaire: __S(76, __c19, 0),
957
1130
  }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.status-changed", code: 200 })),
958
1131
  ).annotate({ identifier: "V1QuestionnaireStatusChangedRequest" });
959
1132
  }
960
1133
  }
961
- function __c15(j: number): any {
962
- switch (j) {
963
- case 0:
964
- return S.suspend(() =>
965
- S.Struct({
966
- control: __S(8, __c2, 0),
967
- comment: __S(12, __c3, 0),
968
- }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.updated", code: 200 })),
969
- ).annotate({ identifier: "V1ControlCommentUpdatedRequest" });
970
- }
971
- }
972
- function __c16(j: number): any {
1134
+ function __c20(j: number): any {
973
1135
  switch (j) {
974
1136
  case 0:
975
1137
  return S.suspend(() =>
976
1138
  S.Struct({
977
- trustCenter: __S(68, __c17, 0),
978
- accessRequest: __S(12, __c3, 0),
979
- viewer: __S(12, __c3, 0),
1139
+ trustCenter: __S(84, __c21, 0),
1140
+ accessRequest: __S(4, __c1, 0),
1141
+ viewer: __S(4, __c1, 0),
980
1142
  }).pipe(
981
1143
  T.Http({ method: "POST", uri: "/v1.trust-center.access-request.approved", code: 200 }),
982
1144
  ),
983
1145
  ).annotate({ identifier: "V1TrustCenterAccessRequestApprovedRequest" });
984
1146
  }
985
1147
  }
986
- function __c17(j: number): any {
1148
+ function __c21(j: number): any {
987
1149
  switch (j) {
988
1150
  case 0:
989
1151
  return S.suspend(() =>
@@ -993,33 +1155,33 @@ function __c17(j: number): any {
993
1155
  ).annotate({ identifier: "V1TrustCenterAccessRequestApprovedRequestTrustCenter" });
994
1156
  }
995
1157
  }
996
- function __c18(j: number): any {
1158
+ function __c22(j: number): any {
997
1159
  switch (j) {
998
1160
  case 0:
999
1161
  return S.suspend(() =>
1000
1162
  S.Struct({
1001
- trustCenter: __S(68, __c17, 0),
1002
- accessRequest: __S(12, __c3, 0),
1163
+ trustCenter: __S(84, __c21, 0),
1164
+ accessRequest: __S(4, __c1, 0),
1003
1165
  }).pipe(
1004
1166
  T.Http({ method: "POST", uri: "/v1.trust-center.access-request.denied", code: 200 }),
1005
1167
  ),
1006
1168
  ).annotate({ identifier: "V1TrustCenterAccessRequestDeniedRequest" });
1007
1169
  }
1008
1170
  }
1009
- function __c19(j: number): any {
1171
+ function __c23(j: number): any {
1010
1172
  switch (j) {
1011
1173
  case 0:
1012
1174
  return S.suspend(() =>
1013
1175
  S.Struct({
1014
- trustCenter: __S(68, __c17, 0),
1015
- accessRequest: __S(12, __c3, 0),
1176
+ trustCenter: __S(84, __c21, 0),
1177
+ accessRequest: __S(4, __c1, 0),
1016
1178
  }).pipe(
1017
1179
  T.Http({ method: "POST", uri: "/v1.trust-center.access-request.received", code: 200 }),
1018
1180
  ),
1019
1181
  ).annotate({ identifier: "V1TrustCenterAccessRequestReceivedRequest" });
1020
1182
  }
1021
1183
  }
1022
- function __c20(j: number): any {
1184
+ function __c24(j: number): any {
1023
1185
  switch (j) {
1024
1186
  case 0:
1025
1187
  return S.suspend(() =>
@@ -1033,81 +1195,92 @@ function __c20(j: number): any {
1033
1195
  return S.suspend(() =>
1034
1196
  S.Struct({
1035
1197
  id: S.String,
1036
- decision: __S(80, __c20, 0),
1198
+ decision: __S(96, __c24, 0),
1037
1199
  }),
1038
1200
  ).annotate({ identifier: "V1VendorDecisionCreatedRequestVendor" });
1039
1201
  case 2:
1040
1202
  return S.suspend(() =>
1041
1203
  S.Struct({
1042
- vendor: __S(81, __c20, 1),
1204
+ vendor: __S(97, __c24, 1),
1043
1205
  }).pipe(T.Http({ method: "POST", uri: "/v1.vendor.decision.created", code: 200 })),
1044
1206
  ).annotate({ identifier: "V1VendorDecisionCreatedRequest" });
1045
1207
  }
1046
1208
  }
1047
- function __c21(j: number): any {
1209
+ function __c25(j: number): any {
1210
+ switch (j) {
1211
+ case 0:
1212
+ return S.suspend(() =>
1213
+ S.Struct({
1214
+ control: __S(16, __c4, 0),
1215
+ comment: __S(4, __c1, 0),
1216
+ }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.updated", code: 200 })),
1217
+ ).annotate({ identifier: "V1ControlCommentUpdatedRequest" });
1218
+ }
1219
+ }
1220
+ function __c26(j: number): any {
1048
1221
  switch (j) {
1049
1222
  case 0:
1050
1223
  return S.suspend(() =>
1051
1224
  S.Struct({
1052
- evidence: __S(8, __c2, 0),
1053
- comment: __S(12, __c3, 0),
1225
+ evidence: __S(16, __c4, 0),
1226
+ comment: __S(4, __c1, 0),
1054
1227
  }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.created", code: 200 })),
1055
1228
  ).annotate({ identifier: "V1EvidenceCommentCreatedRequest" });
1056
1229
  }
1057
1230
  }
1058
- function __c22(j: number): any {
1231
+ function __c27(j: number): any {
1059
1232
  switch (j) {
1060
1233
  case 0:
1061
1234
  return S.suspend(() =>
1062
1235
  S.Struct({
1063
- evidence: __S(8, __c2, 0),
1064
- comment: __S(12, __c3, 0),
1236
+ evidence: __S(16, __c4, 0),
1237
+ comment: __S(4, __c1, 0),
1065
1238
  }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.deleted", code: 200 })),
1066
1239
  ).annotate({ identifier: "V1EvidenceCommentDeletedRequest" });
1067
1240
  }
1068
1241
  }
1069
- function __c23(j: number): any {
1242
+ function __c28(j: number): any {
1070
1243
  switch (j) {
1071
1244
  case 0:
1072
1245
  return S.suspend(() =>
1073
1246
  S.Struct({
1074
- evidence: __S(8, __c2, 0),
1075
- comment: __S(12, __c3, 0),
1247
+ evidence: __S(16, __c4, 0),
1248
+ comment: __S(4, __c1, 0),
1076
1249
  }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.updated", code: 200 })),
1077
1250
  ).annotate({ identifier: "V1EvidenceCommentUpdatedRequest" });
1078
1251
  }
1079
1252
  }
1080
- function __c24(j: number): any {
1253
+ function __c29(j: number): any {
1081
1254
  switch (j) {
1082
1255
  case 0:
1083
1256
  return S.suspend(() =>
1084
1257
  S.Struct({
1085
- evidence: __S(8, __c2, 0),
1258
+ evidence: __S(16, __c4, 0),
1086
1259
  }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.created", code: 200 })),
1087
1260
  ).annotate({ identifier: "V1EvidenceCreatedRequest" });
1088
1261
  }
1089
1262
  }
1090
- function __c25(j: number): any {
1263
+ function __c30(j: number): any {
1091
1264
  switch (j) {
1092
1265
  case 0:
1093
1266
  return S.suspend(() =>
1094
1267
  S.Struct({
1095
- evidence: __S(8, __c2, 0),
1268
+ evidence: __S(16, __c4, 0),
1096
1269
  }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.deleted", code: 200 })),
1097
1270
  ).annotate({ identifier: "V1EvidenceDeletedRequest" });
1098
1271
  }
1099
1272
  }
1100
- function __c26(j: number): any {
1273
+ function __c31(j: number): any {
1101
1274
  switch (j) {
1102
1275
  case 0:
1103
1276
  return S.suspend(() =>
1104
1277
  S.Struct({
1105
- evidence: __S(108, __c27, 0),
1278
+ evidence: __S(128, __c32, 0),
1106
1279
  }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.status-changed", code: 200 })),
1107
1280
  ).annotate({ identifier: "V1EvidenceStatusChangedRequest" });
1108
1281
  }
1109
1282
  }
1110
- function __c27(j: number): any {
1283
+ function __c32(j: number): any {
1111
1284
  switch (j) {
1112
1285
  case 0:
1113
1286
  return S.suspend(() =>
@@ -1120,19 +1293,6 @@ function __c27(j: number): any {
1120
1293
  ).annotate({ identifier: "V1EvidenceStatusChangedRequestEvidence" });
1121
1294
  }
1122
1295
  }
1123
- function __c28(j: number): any {
1124
- switch (j) {
1125
- case 0:
1126
- return S.suspend(() =>
1127
- S.Struct({
1128
- informationRequest: __S(8, __c2, 0),
1129
- comment: __S(12, __c3, 0),
1130
- }).pipe(
1131
- T.Http({ method: "POST", uri: "/v1.information-request.comment.created", code: 200 }),
1132
- ),
1133
- ).annotate({ identifier: "V1InformationRequestCommentCreatedRequest" });
1134
- }
1135
- }
1136
1296
  // Schema table: entry i is schema j of builder f, made on first reach.
1137
1297
  function __S(i: number, f: (j: number) => unknown, j: number): any {
1138
1298
  return (__s[i] ??= __L.at(f, j));