@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
@@ -1,8 +1,9 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
+ import * as C from "@distilled.cloud/core/category";
2
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
3
4
  import * as S from "@distilled.cloud/core/schema-lite";
4
5
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { UnknownVantaError } from "../errors.ts";
6
+ import { VantaServiceErrors } from "../errors.ts";
6
7
  import { VantaProtocol, type VantaOpError, type VantaOpContext } from "../protocol.ts";
7
8
  import * as Retry from "../retry.ts";
8
9
  import * as T from "../traits.ts";
@@ -24,6 +25,71 @@ const TELEMETRY = {
24
25
  propagate: "w3c",
25
26
  } as const;
26
27
 
28
+ export class BadRequest
29
+ extends /*@__PURE__*/ T.applyErrorMatchers(
30
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
31
+ code: S.Number,
32
+ message: S.String,
33
+ body: /*@__PURE__*/ S.optional(S.Unknown),
34
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
35
+ }).pipe(C.withBadRequestError),
36
+ [{ status: 400 }],
37
+ ) {}
38
+
39
+ export class Conflict
40
+ extends /*@__PURE__*/ T.applyErrorMatchers(
41
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
42
+ code: S.Number,
43
+ message: S.String,
44
+ body: /*@__PURE__*/ S.optional(
45
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
46
+ ),
47
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
48
+ }).pipe(C.withConflictError),
49
+ [{ status: 409 }],
50
+ )
51
+ {
52
+ declare readonly body?: OutboundError | string;
53
+ }
54
+
55
+ export class Forbidden
56
+ extends /*@__PURE__*/ T.applyErrorMatchers(
57
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
58
+ code: S.Number,
59
+ message: S.String,
60
+ body: /*@__PURE__*/ S.optional(S.Unknown),
61
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
62
+ }).pipe(C.withAuthError),
63
+ [{ status: 403 }],
64
+ ) {}
65
+
66
+ export class NotFound
67
+ extends /*@__PURE__*/ T.applyErrorMatchers(
68
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
69
+ code: S.Number,
70
+ message: S.String,
71
+ body: /*@__PURE__*/ S.optional(S.Unknown),
72
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
73
+ }).pipe(C.withBadRequestError),
74
+ [{ status: 404 }],
75
+ ) {}
76
+
77
+ export class UnprocessableEntity
78
+ extends /*@__PURE__*/ T.applyErrorMatchers(
79
+ /*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
80
+ code: S.Number,
81
+ message: S.String,
82
+ body: /*@__PURE__*/ S.optional(
83
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
84
+ ),
85
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
86
+ }).pipe(C.withBadRequestError),
87
+ [{ status: 422 }],
88
+ )
89
+ {
90
+ declare readonly body?: OutboundError | string;
91
+ }
92
+
27
93
  export interface AcceptInformationRequestEvidenceRequest {
28
94
  auditId: string;
29
95
  requestId: string;
@@ -432,6 +498,14 @@ export interface DeleteInformationRequestRequest {
432
498
  requestId: string;
433
499
  }
434
500
  export interface DeleteInformationRequestResponse {}
501
+ export interface DeleteInformationRequestAuditorFileRequest {
502
+ auditId: string;
503
+ requestId: string;
504
+ auditorFileId: string;
505
+ /** The email of the auditor deleting the file. They must be an active user in your audit firm and assigned to the audit. */
506
+ email: string;
507
+ }
508
+ export interface DeleteInformationRequestAuditorFileResponse {}
435
509
  /** Emails of auditors who may access the new audit. Minimum one entry required. Each email must match an active user in the authenticated audit firm's domain. */
436
510
  export type DuplicateRequestAllowAuditorEmailsList = Array<string>;
437
511
  export interface DuplicateRequest {
@@ -876,7 +950,7 @@ export interface VantaTestSnapshotRawTestDataRow {
876
950
  /** Raw JSON payload as emitted by the test runner. Shape varies by `resourceType` for structured snapshots and matches the full test-run blob for unstructured snapshots. */
877
951
  rawJson: unknown;
878
952
  }
879
- /** Raw test data captured at snapshot time. */
953
+ /** Always empty. Read captured records from `GET /v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data`. This field will be removed on 2027-01-25. */
880
954
  export type VantaTestSnapshotEvidenceDetailRawTestDataList = Array<VantaTestSnapshotRawTestDataRow>;
881
955
  export interface VantaTestSnapshotExcludedItem {
882
956
  id: string;
@@ -930,7 +1004,7 @@ export interface VantaTestSnapshotEvidenceDetail {
930
1004
  integrations: VantaTestSnapshotEvidenceDetailIntegrationsList;
931
1005
  /** SLA remediation policy attached to the test, or null when no SLA is set. */
932
1006
  slaRemediation: VantaTestSnapshotSlaRemediation | null;
933
- /** Raw test data captured at snapshot time. */
1007
+ /** Always empty. Read captured records from `GET /v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data`. This field will be removed on 2027-01-25. */
934
1008
  rawTestData: VantaTestSnapshotEvidenceDetailRawTestDataList;
935
1009
  /** Resources excluded from the test at snapshot time. Absent when the snapshot data could not be loaded; clients should treat a missing field as "unknown" rather than "nothing excluded". */
936
1010
  outOfScopeResources?: VantaTestSnapshotOutOfScopeResources | undefined;
@@ -1333,7 +1407,7 @@ export interface AuditRisk {
1333
1407
  likelihood?: number | null | undefined;
1334
1408
  /** Impact score of the risk, or null if not scored. Full Audit View only - omitted in Controlled Audit View. */
1335
1409
  impact?: number | null | undefined;
1336
- /** Inherent risk score, or null if not scored. Defaults to the likelihood * impact product; when the organization scores risks by factors, this is the rolled-up factor score rounded to two decimals. */
1410
+ /** Inherent risk score, or null if not scored. The score combines the ratings of the dimensions that the risk is scored on, such as likelihood and impact, rounded to two decimals. */
1337
1411
  inherentRisk?: number | null | undefined;
1338
1412
  /** Risk treatment strategy, or null if not set. */
1339
1413
  treatment?: AuditRiskTreatment | null | undefined;
@@ -1558,6 +1632,38 @@ export interface PaginatedResponseInformationRequestActivityLogResults {
1558
1632
  export interface PaginatedResponseInformationRequestActivityLog {
1559
1633
  results: PaginatedResponseInformationRequestActivityLogResults;
1560
1634
  }
1635
+ export interface ListInformationRequestAuditorFilesRequest {
1636
+ auditId: string;
1637
+ requestId: string;
1638
+ /** Maximum number of files to return per page. */
1639
+ pageSize?: number | undefined;
1640
+ /** Pagination cursor from a previous response. Provide to fetch the next page of files. */
1641
+ pageCursor?: string | undefined;
1642
+ }
1643
+ /** The auditor who uploaded the file. */
1644
+ export type InformationRequestAuditorFileUploader = VantaDocumentEvidenceAddedBy;
1645
+ /** A file an auditor shared with the customer on an information request. */
1646
+ export interface InformationRequestAuditorFile {
1647
+ id: string;
1648
+ /** The filename, falling back to the title or document ID when unavailable. */
1649
+ filename: string;
1650
+ /** The stored MIME type, or application/octet-stream when unavailable. */
1651
+ mimeType: string;
1652
+ /** A temporary download link that expires one hour after it is issued. List the files again for a fresh link. Do not use it as a key. Use `filename` when saving the download; the URL does not supply a filename. */
1653
+ url: string;
1654
+ /** Null when the uploader's account no longer exists. */
1655
+ uploadedBy: VantaDocumentEvidenceAddedBy | null;
1656
+ uploadedDate: string;
1657
+ }
1658
+ export type PaginatedResponseInformationRequestAuditorFileResultsDataList =
1659
+ Array<InformationRequestAuditorFile>;
1660
+ export interface PaginatedResponseInformationRequestAuditorFileResults {
1661
+ data: PaginatedResponseInformationRequestAuditorFileResultsDataList;
1662
+ pageInfo: PageInfo;
1663
+ }
1664
+ export interface PaginatedResponseInformationRequestAuditorFile {
1665
+ results: PaginatedResponseInformationRequestAuditorFileResults;
1666
+ }
1561
1667
  export type ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList = Array<
1562
1668
  InformationRequestSupportedEvidenceType | (string & {})
1563
1669
  >;
@@ -1612,6 +1718,32 @@ export interface ListInformationRequestsForControlRequest {
1612
1718
  /** Pagination cursor from a previous response. Provide to fetch the next page of results. */
1613
1719
  pageCursor?: string | undefined;
1614
1720
  }
1721
+ export interface ListInformationRequestTestSnapshotRawDataRequest {
1722
+ auditId: string;
1723
+ requestId: string;
1724
+ evidenceId: string;
1725
+ pageSize?: number | undefined;
1726
+ pageCursor?: string | undefined;
1727
+ }
1728
+ export interface VantaTestSnapshotRawTestDataPageRow {
1729
+ /** Identifier of the underlying resource the row was captured from. Null for unstructured snapshots, which do not partition by resource. */
1730
+ resourceId: string | null;
1731
+ /** Specific resource kind for the row (e.g. `AwsIamUser`). Null for unstructured snapshots. */
1732
+ resourceType: string | null;
1733
+ /** Raw JSON payload as emitted by the test runner and captured at snapshot time. For structured snapshots, the shape varies by `resourceType`. For unstructured snapshots, this contains one captured record; `resourceId` and `resourceType` are both `null`. Null when `dataTooLarge` is true because the source data was too large to capture. The row remains in the page as a placeholder, with no JSON payload available. */
1734
+ rawJson: unknown;
1735
+ /** True when the record was too large to capture and has no stored JSON. */
1736
+ dataTooLarge: boolean;
1737
+ }
1738
+ export type PaginatedResponseVantaTestSnapshotRawTestDataPageRowResultsDataList =
1739
+ Array<VantaTestSnapshotRawTestDataPageRow>;
1740
+ export interface PaginatedResponseVantaTestSnapshotRawTestDataPageRowResults {
1741
+ data: PaginatedResponseVantaTestSnapshotRawTestDataPageRowResultsDataList;
1742
+ pageInfo: PageInfo;
1743
+ }
1744
+ export interface PaginatedResponseVantaTestSnapshotRawTestDataPageRow {
1745
+ results: PaginatedResponseVantaTestSnapshotRawTestDataPageRowResults;
1746
+ }
1615
1747
  export type AuditIntegrationTag =
1616
1748
  | "ACCESS"
1617
1749
  | "COMPUTERS"
@@ -2092,6 +2224,41 @@ export interface UpdateInformationRequestRequest {
2092
2224
  /** The complete desired set of control IDs linked to this request. Send the full list to replace the set, an empty array to clear it, or omit the property to leave links unchanged. Each ID must identify an existing control in the customer's organization and is returned by the audit controls endpoint. The request is rejected if any ID does not match a control. */
2093
2225
  linkedControlIds?: UpdateInformationRequestRequestLinkedControlIdsList | undefined;
2094
2226
  }
2227
+ export interface UploadFinalizeInformationRequestAuditorFileRequest {
2228
+ auditId: string;
2229
+ requestId: string;
2230
+ /** The `uploadId` returned by the start-upload operation for this application, audit and information request. */
2231
+ uploadId: string;
2232
+ }
2233
+ export interface UploadedAuditorFile {
2234
+ /** ID of the attached auditor file. Match it to `id` in the auditor-files list, or use it as `auditorFileId` when deleting the file. */
2235
+ id: string;
2236
+ }
2237
+ export interface UploadInitiateInformationRequestAuditorFileRequest {
2238
+ auditId: string;
2239
+ requestId: string;
2240
+ /** Email of the auditor to credit as the uploader. They must be an active user in your audit firm with access to the audit, including when you finalize. */
2241
+ email: string;
2242
+ /** Filename to display on the attachment. Must be 1-255 characters after trimming surrounding whitespace. */
2243
+ filename: string;
2244
+ /** The file's declared MIME type. Accepted values: - `application/json` - `application/pdf` - `application/postscript` - `application/vnd.openxmlformats-officedocument.wordprocessingml.document` - `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` - `application/x-zip-compressed` - `application/zip` - `image/jpeg` - `image/png` - `image/webp` - `text/csv` - `text/plain` Matching ignores case and MIME parameters, so `TEXT/CSV` and `text/csv; charset=utf-8` are also accepted. Unsupported file types return `422` during finalization. */
2245
+ contentType: string;
2246
+ }
2247
+ /** Form fields to send with the file to `url`. Copy every returned name and value unchanged into a multipart/form-data POST, then append the file under `file` as the final part. These are form fields, not HTTP headers. Field names may vary between uploads; do not hard-code the example fields. */
2248
+ export type AuditorFileUploadFormFields = { [key: string]: string | undefined };
2249
+ export interface AuditorFileUploadGrant {
2250
+ /** Opaque identifier for this upload. Pass it unchanged to finalize; it is not the attached file's ID. */
2251
+ uploadId: string;
2252
+ /** Temporary URL for the file-transfer request. POST every returned `fields` entry and the file to this URL, without a Vanta Authorization header. This is not a download link. */
2253
+ url: string;
2254
+ fields: AuditorFileUploadFormFields;
2255
+ /** Maximum file size in bytes, inclusive. The limit is 50MB. */
2256
+ maxSizeBytes: number;
2257
+ /** UTC expiration timestamp for `url` and `fields`. Start the file-transfer POST well before this time. */
2258
+ transferExpiresAt: string;
2259
+ /** UTC deadline to complete finalization and attach the file, even if the file transfer has already succeeded. */
2260
+ finalizationExpiresAt: string;
2261
+ }
2095
2262
  export interface UpsertAssessmentForControlRequest {
2096
2263
  auditId: string;
2097
2264
  controlId: string;
@@ -2115,6 +2282,9 @@ export interface AuditorControlAssessment {
2115
2282
  /** The recorded justification. */
2116
2283
  justification: string;
2117
2284
  }
2285
+ export interface OutboundError {
2286
+ message: string;
2287
+ }
2118
2288
  export type AcceptInformationRequestEvidenceError = VantaOpError;
2119
2289
  /** Accept evidence for an information request Accepts evidence for an information request, confirming that all submitted evidence meets audit requirements. This action changes the request's approvalStatus to an approved state and creates an activity log entry. Acceptance workflow: 1. Auditor reviews submitted evidence 2. If evidence is satisfactory, auditor calls this endpoint 3. Request status changes to approved state and is considered complete for this audit cycle Use this endpoint when: - All required evidence has been submitted - Evidence quality meets audit standards - Evidence addresses all specified framework codes - No additional information is needed Rate limit: 50 requests / minute. */
2120
2290
  export const acceptInformationRequestEvidence: API.OperationMethod<
@@ -2123,9 +2293,10 @@ export const acceptInformationRequestEvidence: API.OperationMethod<
2123
2293
  AcceptInformationRequestEvidenceError,
2124
2294
  VantaOpContext
2125
2295
  > = /*@__PURE__*/ API.make(() => ({
2126
- input: __S(0, __c0, 0) as any as S.Schema<AcceptInformationRequestEvidenceRequest>,
2127
- output: __S(64, __c2, 0) as any as S.Schema<InformationRequest>,
2128
- errors: [UnknownVantaError],
2296
+ input: __S(1632, __c51, 0) as any as S.Schema<AcceptInformationRequestEvidenceRequest>,
2297
+ output: __S(1696, __c53, 0) as any as S.Schema<InformationRequest>,
2298
+ errors: [],
2299
+ serviceErrors: VantaServiceErrors,
2129
2300
  protocol: VantaProtocol,
2130
2301
  retry: Retry.Retry,
2131
2302
  telemetry: TELEMETRY,
@@ -2140,9 +2311,10 @@ export const createAuditor: API.OperationMethod<
2140
2311
  CreateAuditorError,
2141
2312
  VantaOpContext
2142
2313
  > = /*@__PURE__*/ API.make(() => ({
2143
- input: __S(96, __c3, 0) as any as S.Schema<CreateAuditorRequest>,
2144
- output: __S(97, __c3, 1) as any as S.Schema<Auditor>,
2145
- errors: [UnknownVantaError],
2314
+ input: __S(2048, __c64, 0) as any as S.Schema<CreateAuditorRequest>,
2315
+ output: __S(2049, __c64, 1) as any as S.Schema<Auditor>,
2316
+ errors: [],
2317
+ serviceErrors: VantaServiceErrors,
2146
2318
  protocol: VantaProtocol,
2147
2319
  retry: Retry.Retry,
2148
2320
  telemetry: TELEMETRY,
@@ -2157,9 +2329,10 @@ export const createCommentForAuditEvidence: API.OperationMethod<
2157
2329
  CreateCommentForAuditEvidenceError,
2158
2330
  VantaOpContext
2159
2331
  > = /*@__PURE__*/ API.make(() => ({
2160
- input: __S(576, __c18, 0) as any as S.Schema<CreateCommentForAuditEvidenceRequest>,
2161
- output: __S(608, __c19, 0) as any as S.Schema<Comment>,
2162
- errors: [UnknownVantaError],
2332
+ input: __S(2112, __c66, 0) as any as S.Schema<CreateCommentForAuditEvidenceRequest>,
2333
+ output: __S(2144, __c67, 0) as any as S.Schema<Comment>,
2334
+ errors: [],
2335
+ serviceErrors: VantaServiceErrors,
2163
2336
  protocol: VantaProtocol,
2164
2337
  retry: Retry.Retry,
2165
2338
  telemetry: TELEMETRY,
@@ -2174,9 +2347,10 @@ export const createCommentForControl: API.OperationMethod<
2174
2347
  CreateCommentForControlError,
2175
2348
  VantaOpContext
2176
2349
  > = /*@__PURE__*/ API.make(() => ({
2177
- input: __S(992, __c31, 0) as any as S.Schema<CreateCommentForControlRequest>,
2178
- output: __S(1024, __c32, 0) as any as S.Schema<AuditControlComment>,
2179
- errors: [UnknownVantaError],
2350
+ input: __S(2176, __c68, 0) as any as S.Schema<CreateCommentForControlRequest>,
2351
+ output: __S(2208, __c69, 0) as any as S.Schema<AuditControlComment>,
2352
+ errors: [],
2353
+ serviceErrors: VantaServiceErrors,
2180
2354
  protocol: VantaProtocol,
2181
2355
  retry: Retry.Retry,
2182
2356
  telemetry: TELEMETRY,
@@ -2191,9 +2365,10 @@ export const createCommentForInformationRequest: API.OperationMethod<
2191
2365
  CreateCommentForInformationRequestError,
2192
2366
  VantaOpContext
2193
2367
  > = /*@__PURE__*/ API.make(() => ({
2194
- input: __S(1440, __c45, 0) as any as S.Schema<CreateCommentForInformationRequestRequest>,
2195
- output: __S(1024, __c32, 0) as any as S.Schema<InformationRequestComment>,
2196
- errors: [UnknownVantaError],
2368
+ input: __S(2240, __c70, 0) as any as S.Schema<CreateCommentForInformationRequestRequest>,
2369
+ output: __S(2208, __c69, 0) as any as S.Schema<InformationRequestComment>,
2370
+ errors: [],
2371
+ serviceErrors: VantaServiceErrors,
2197
2372
  protocol: VantaProtocol,
2198
2373
  retry: Retry.Retry,
2199
2374
  telemetry: TELEMETRY,
@@ -2208,9 +2383,10 @@ export const createCustomControl: API.OperationMethod<
2208
2383
  CreateCustomControlError,
2209
2384
  VantaOpContext
2210
2385
  > = /*@__PURE__*/ API.make(() => ({
2211
- input: __S(1826, __c57, 2) as any as S.Schema<CreateCustomControlRequest>,
2212
- output: __S(1827, __c57, 3) as any as S.Schema<AuditorApiControl>,
2213
- errors: [UnknownVantaError],
2386
+ input: __S(34, __c1, 2) as any as S.Schema<CreateCustomControlRequest>,
2387
+ output: __S(35, __c1, 3) as any as S.Schema<AuditorApiControl>,
2388
+ errors: [],
2389
+ serviceErrors: VantaServiceErrors,
2214
2390
  protocol: VantaProtocol,
2215
2391
  retry: Retry.Retry,
2216
2392
  telemetry: TELEMETRY,
@@ -2225,9 +2401,10 @@ export const createCustomEvidenceRequest: API.OperationMethod<
2225
2401
  CreateCustomEvidenceRequestError,
2226
2402
  VantaOpContext
2227
2403
  > = /*@__PURE__*/ API.make(() => ({
2228
- input: __S(1920, __c60, 0) as any as S.Schema<CreateCustomEvidenceRequestRequest>,
2229
- output: __S(1921, __c60, 1) as any as S.Schema<CustomEvidenceRequest>,
2230
- errors: [UnknownVantaError],
2404
+ input: __S(96, __c3, 0) as any as S.Schema<CreateCustomEvidenceRequestRequest>,
2405
+ output: __S(97, __c3, 1) as any as S.Schema<CustomEvidenceRequest>,
2406
+ errors: [],
2407
+ serviceErrors: VantaServiceErrors,
2231
2408
  protocol: VantaProtocol,
2232
2409
  retry: Retry.Retry,
2233
2410
  telemetry: TELEMETRY,
@@ -2242,9 +2419,10 @@ export const createInformationRequest: API.OperationMethod<
2242
2419
  CreateInformationRequestError,
2243
2420
  VantaOpContext
2244
2421
  > = /*@__PURE__*/ API.make(() => ({
2245
- input: __S(1952, __c61, 0) as any as S.Schema<CreateInformationRequestRequest>,
2246
- output: __S(64, __c2, 0) as any as S.Schema<InformationRequest>,
2247
- errors: [UnknownVantaError],
2422
+ input: __S(128, __c4, 0) as any as S.Schema<CreateInformationRequestRequest>,
2423
+ output: __S(1696, __c53, 0) as any as S.Schema<InformationRequest>,
2424
+ errors: [],
2425
+ serviceErrors: VantaServiceErrors,
2248
2426
  protocol: VantaProtocol,
2249
2427
  retry: Retry.Retry,
2250
2428
  telemetry: TELEMETRY,
@@ -2259,9 +2437,10 @@ export const deleteCommentForControl: API.OperationMethod<
2259
2437
  DeleteCommentForControlError,
2260
2438
  VantaOpContext
2261
2439
  > = /*@__PURE__*/ API.make(() => ({
2262
- input: __S(1984, __c62, 0) as any as S.Schema<DeleteCommentForControlRequest>,
2263
- output: __S(2016, __c63, 0) as any as S.Schema<DeleteCommentForControlResponse>,
2264
- errors: [UnknownVantaError],
2440
+ input: __S(160, __c5, 0) as any as S.Schema<DeleteCommentForControlRequest>,
2441
+ output: __S(192, __c6, 0) as any as S.Schema<DeleteCommentForControlResponse>,
2442
+ errors: [],
2443
+ serviceErrors: VantaServiceErrors,
2265
2444
  protocol: VantaProtocol,
2266
2445
  retry: Retry.Retry,
2267
2446
  telemetry: TELEMETRY,
@@ -2276,9 +2455,10 @@ export const deleteCommentForInformationRequest: API.OperationMethod<
2276
2455
  DeleteCommentForInformationRequestError,
2277
2456
  VantaOpContext
2278
2457
  > = /*@__PURE__*/ API.make(() => ({
2279
- input: __S(2048, __c64, 0) as any as S.Schema<DeleteCommentForInformationRequestRequest>,
2280
- output: __S(2016, __c63, 0) as any as S.Schema<DeleteCommentForInformationRequestResponse>,
2281
- errors: [UnknownVantaError],
2458
+ input: __S(224, __c7, 0) as any as S.Schema<DeleteCommentForInformationRequestRequest>,
2459
+ output: __S(192, __c6, 0) as any as S.Schema<DeleteCommentForInformationRequestResponse>,
2460
+ errors: [],
2461
+ serviceErrors: VantaServiceErrors,
2282
2462
  protocol: VantaProtocol,
2283
2463
  retry: Retry.Retry,
2284
2464
  telemetry: TELEMETRY,
@@ -2286,22 +2466,41 @@ export const deleteCommentForInformationRequest: API.OperationMethod<
2286
2466
  }));
2287
2467
 
2288
2468
  export type DeleteInformationRequestError = VantaOpError;
2289
- /** Delete an information request for an audit Deletes an information request for an audit. This performs a soft delete, marking the request as deleted (setting `deletionDate`) while preserving it in the system for audit history and compliance tracking. Soft deletion allows: - Maintaining complete audit trail of all requests ever created - Retrieving deleted requests via `changedSinceDate` for synchronization After deletion: - The request remains in list responses with `deletionDate` set, even when `changedSinceDate` is omitted Rate limit: 50 requests / minute. */
2469
+ /** Delete an information request for an audit Deletes an information request for an audit. This performs a soft delete, marking the request as deleted (setting `deletionDate`) while preserving it in the system for audit history and compliance tracking. When information request webhooks are enabled, Vanta can deliver `v1.information-request.deleted` after the deletion succeeds to the subscribed audit firm that had access to the audit before deletion. The payload identifies the deleted request and its audit. Use the information request list to reconcile deletions. The list returns the request with `deletionDate` set, even when `changedSinceDate` is omitted. Rate limit: 50 requests / minute. */
2290
2470
  export const deleteInformationRequest: API.OperationMethod<
2291
2471
  DeleteInformationRequestRequest,
2292
2472
  DeleteInformationRequestResponse,
2293
2473
  DeleteInformationRequestError,
2294
2474
  VantaOpContext
2295
2475
  > = /*@__PURE__*/ API.make(() => ({
2296
- input: __S(128, __c4, 0) as any as S.Schema<DeleteInformationRequestRequest>,
2297
- output: __S(2016, __c63, 0) as any as S.Schema<DeleteInformationRequestResponse>,
2298
- errors: [UnknownVantaError],
2476
+ input: __S(256, __c8, 0) as any as S.Schema<DeleteInformationRequestRequest>,
2477
+ output: __S(192, __c6, 0) as any as S.Schema<DeleteInformationRequestResponse>,
2478
+ errors: [],
2479
+ serviceErrors: VantaServiceErrors,
2299
2480
  protocol: VantaProtocol,
2300
2481
  retry: Retry.Retry,
2301
2482
  telemetry: TELEMETRY,
2302
2483
  span: "DeleteInformationRequest",
2303
2484
  }));
2304
2485
 
2486
+ export type DeleteInformationRequestAuditorFileError = VantaOpError;
2487
+ /** Delete an auditor file from an information request Deletes an auditor file from an information request. Any auditor assigned to the audit may delete any auditor's file, not only their own. Identify the deleting auditor by `email`: they must be an active user in your audit firm and assigned to the audit, otherwise this returns 403. A completed audit returns 409; reopen the audit before deleting files. Approving the request does not lock its files. An unknown or already deleted file returns 404. Lists no longer return the file or new download URLs for it. Download URLs issued before the delete stay valid until they expire, at most one hour. Rate limit: 50 requests / minute. */
2488
+ export const deleteInformationRequestAuditorFile: API.OperationMethod<
2489
+ DeleteInformationRequestAuditorFileRequest,
2490
+ DeleteInformationRequestAuditorFileResponse,
2491
+ DeleteInformationRequestAuditorFileError,
2492
+ VantaOpContext
2493
+ > = /*@__PURE__*/ API.make(() => ({
2494
+ input: __S(288, __c9, 0) as any as S.Schema<DeleteInformationRequestAuditorFileRequest>,
2495
+ output: __S(192, __c6, 0) as any as S.Schema<DeleteInformationRequestAuditorFileResponse>,
2496
+ errors: [],
2497
+ serviceErrors: VantaServiceErrors,
2498
+ protocol: VantaProtocol,
2499
+ retry: Retry.Retry,
2500
+ telemetry: TELEMETRY,
2501
+ span: "DeleteInformationRequestAuditorFile",
2502
+ }));
2503
+
2305
2504
  export type DuplicateError = VantaOpError;
2306
2505
  /** Duplicate an IRL audit Duplicates an existing IRL audit into a new audit engagement with the supplied displayName, audit dates, early access date, and auditor roster. Company, audit type, and framework are copied from the source audit and cannot be changed. Each email in `allowAuditorEmails` must match an active user in the authenticated audit firm's domain. Provision auditors via `POST /auditors` before referencing them here, or copy emails from `GET /audits/{sourceAuditId}` -> `allowAuditorEmails` when duplicating with the same roster. Information requests are copied from the source audit. After duplication: - Requests with Vanta evidence will be pre-filled and marked as internal review. Review them before sharing with your customer. - Requests where evidence was not available or was uploaded externally will need evidence added manually. - Evidence capture dates and due dates can be modified after duplication. Audits with generated information requests can be duplicated only after their information requests have been created successfully. Rate limit: 10 requests / minute. */
2307
2506
  export const duplicate: API.OperationMethod<
@@ -2310,9 +2509,10 @@ export const duplicate: API.OperationMethod<
2310
2509
  DuplicateError,
2311
2510
  VantaOpContext
2312
2511
  > = /*@__PURE__*/ API.make(() => ({
2313
- input: __S(160, __c5, 0) as any as S.Schema<DuplicateRequest>,
2314
- output: __S(230, __c7, 6) as any as S.Schema<Audit>,
2315
- errors: [UnknownVantaError],
2512
+ input: __S(320, __c10, 0) as any as S.Schema<DuplicateRequest>,
2513
+ output: __S(390, __c12, 6) as any as S.Schema<Audit>,
2514
+ errors: [],
2515
+ serviceErrors: VantaServiceErrors,
2316
2516
  protocol: VantaProtocol,
2317
2517
  retry: Retry.Retry,
2318
2518
  telemetry: TELEMETRY,
@@ -2327,9 +2527,10 @@ export const flagInformationRequestEvidence: API.OperationMethod<
2327
2527
  FlagInformationRequestEvidenceError,
2328
2528
  VantaOpContext
2329
2529
  > = /*@__PURE__*/ API.make(() => ({
2330
- input: __S(256, __c8, 0) as any as S.Schema<FlagInformationRequestEvidenceRequest>,
2331
- output: __S(64, __c2, 0) as any as S.Schema<InformationRequest>,
2332
- errors: [UnknownVantaError],
2530
+ input: __S(416, __c13, 0) as any as S.Schema<FlagInformationRequestEvidenceRequest>,
2531
+ output: __S(1696, __c53, 0) as any as S.Schema<InformationRequest>,
2532
+ errors: [],
2533
+ serviceErrors: VantaServiceErrors,
2333
2534
  protocol: VantaProtocol,
2334
2535
  retry: Retry.Retry,
2335
2536
  telemetry: TELEMETRY,
@@ -2340,9 +2541,10 @@ export type GetAuditError = VantaOpError;
2340
2541
  /** Get audit by ID Returns a single audit by ID, scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. The response includes `segments`, the audit's scope. It returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. The top-level `framework` field is deprecated; use `segments` for in-scope frameworks. This endpoint returns 404 for a soft-deleted audit. Rate limit: 250 requests / minute. */
2341
2542
  export const getAudit: API.OperationMethod<GetAuditRequest, Audit, GetAuditError, VantaOpContext> =
2342
2543
  /*@__PURE__*/ API.make(() => ({
2343
- input: __S(288, __c9, 0) as any as S.Schema<GetAuditRequest>,
2344
- output: __S(230, __c7, 6) as any as S.Schema<Audit>,
2345
- errors: [UnknownVantaError],
2544
+ input: __S(448, __c14, 0) as any as S.Schema<GetAuditRequest>,
2545
+ output: __S(390, __c12, 6) as any as S.Schema<Audit>,
2546
+ errors: [],
2547
+ serviceErrors: VantaServiceErrors,
2346
2548
  protocol: VantaProtocol,
2347
2549
  retry: Retry.Retry,
2348
2550
  telemetry: TELEMETRY,
@@ -2357,9 +2559,10 @@ export const getAuditEvidence: API.OperationMethod<
2357
2559
  GetAuditEvidenceError,
2358
2560
  VantaOpContext
2359
2561
  > = /*@__PURE__*/ API.make(() => ({
2360
- input: __S(320, __c10, 0) as any as S.Schema<GetAuditEvidenceRequest>,
2361
- output: __S(354, __c11, 2) as any as S.Schema<Evidence>,
2362
- errors: [UnknownVantaError],
2562
+ input: __S(480, __c15, 0) as any as S.Schema<GetAuditEvidenceRequest>,
2563
+ output: __S(514, __c16, 2) as any as S.Schema<Evidence>,
2564
+ errors: [],
2565
+ serviceErrors: VantaServiceErrors,
2363
2566
  protocol: VantaProtocol,
2364
2567
  retry: Retry.Retry,
2365
2568
  telemetry: TELEMETRY,
@@ -2374,9 +2577,10 @@ export const getAuditEvidenceComment: API.OperationMethod<
2374
2577
  GetAuditEvidenceCommentError,
2375
2578
  VantaOpContext
2376
2579
  > = /*@__PURE__*/ API.make(() => ({
2377
- input: __S(384, __c12, 0) as any as S.Schema<GetAuditEvidenceCommentRequest>,
2378
- output: __S(608, __c19, 0) as any as S.Schema<Comment>,
2379
- errors: [UnknownVantaError],
2580
+ input: __S(544, __c17, 0) as any as S.Schema<GetAuditEvidenceCommentRequest>,
2581
+ output: __S(2144, __c67, 0) as any as S.Schema<Comment>,
2582
+ errors: [],
2583
+ serviceErrors: VantaServiceErrors,
2380
2584
  protocol: VantaProtocol,
2381
2585
  retry: Retry.Retry,
2382
2586
  telemetry: TELEMETRY,
@@ -2391,9 +2595,10 @@ export const getCommentForInformationRequest: API.OperationMethod<
2391
2595
  GetCommentForInformationRequestError,
2392
2596
  VantaOpContext
2393
2597
  > = /*@__PURE__*/ API.make(() => ({
2394
- input: __S(416, __c13, 0) as any as S.Schema<GetCommentForInformationRequestRequest>,
2395
- output: __S(1024, __c32, 0) as any as S.Schema<InformationRequestComment>,
2396
- errors: [UnknownVantaError],
2598
+ input: __S(576, __c18, 0) as any as S.Schema<GetCommentForInformationRequestRequest>,
2599
+ output: __S(2208, __c69, 0) as any as S.Schema<InformationRequestComment>,
2600
+ errors: [],
2601
+ serviceErrors: VantaServiceErrors,
2397
2602
  protocol: VantaProtocol,
2398
2603
  retry: Retry.Retry,
2399
2604
  telemetry: TELEMETRY,
@@ -2408,9 +2613,10 @@ export const getFrameworkCodes: API.OperationMethod<
2408
2613
  GetFrameworkCodesError,
2409
2614
  VantaOpContext
2410
2615
  > = /*@__PURE__*/ API.make(() => ({
2411
- input: __S(448, __c14, 0) as any as S.Schema<GetFrameworkCodesRequest>,
2412
- output: __S(451, __c14, 3) as any as S.Schema<FrameworkCodes>,
2413
- errors: [UnknownVantaError],
2616
+ input: __S(608, __c19, 0) as any as S.Schema<GetFrameworkCodesRequest>,
2617
+ output: __S(611, __c19, 3) as any as S.Schema<FrameworkCodes>,
2618
+ errors: [],
2619
+ serviceErrors: VantaServiceErrors,
2414
2620
  protocol: VantaProtocol,
2415
2621
  retry: Retry.Retry,
2416
2622
  telemetry: TELEMETRY,
@@ -2425,9 +2631,10 @@ export const getInformationRequest: API.OperationMethod<
2425
2631
  GetInformationRequestError,
2426
2632
  VantaOpContext
2427
2633
  > = /*@__PURE__*/ API.make(() => ({
2428
- input: __S(480, __c15, 0) as any as S.Schema<GetInformationRequestRequest>,
2429
- output: __S(64, __c2, 0) as any as S.Schema<InformationRequest>,
2430
- errors: [UnknownVantaError],
2634
+ input: __S(640, __c20, 0) as any as S.Schema<GetInformationRequestRequest>,
2635
+ output: __S(1696, __c53, 0) as any as S.Schema<InformationRequest>,
2636
+ errors: [],
2637
+ serviceErrors: VantaServiceErrors,
2431
2638
  protocol: VantaProtocol,
2432
2639
  retry: Retry.Retry,
2433
2640
  telemetry: TELEMETRY,
@@ -2442,9 +2649,10 @@ export const getInformationRequestEvidence: API.OperationMethod<
2442
2649
  GetInformationRequestEvidenceError,
2443
2650
  VantaOpContext
2444
2651
  > = /*@__PURE__*/ API.make(() => ({
2445
- input: __S(512, __c16, 0) as any as S.Schema<GetInformationRequestEvidenceRequest>,
2446
- output: __S(544, __c17, 0) as any as S.Schema<InformationRequestEvidence>,
2447
- errors: [UnknownVantaError],
2652
+ input: __S(672, __c21, 0) as any as S.Schema<GetInformationRequestEvidenceRequest>,
2653
+ output: __S(704, __c22, 0) as any as S.Schema<InformationRequestEvidence>,
2654
+ errors: [],
2655
+ serviceErrors: VantaServiceErrors,
2448
2656
  protocol: VantaProtocol,
2449
2657
  retry: Retry.Retry,
2450
2658
  telemetry: TELEMETRY,
@@ -2452,7 +2660,7 @@ export const getInformationRequestEvidence: API.OperationMethod<
2452
2660
  }));
2453
2661
 
2454
2662
  export type GetInformationRequestTestSnapshotEvidenceDetailError = VantaOpError;
2455
- /** Get test snapshot detail for an evidence row Retrieves the rich detail for a single VANTA_TEST_SNAPSHOT evidence row attached to an information request. The response includes test-level metadata (description, integrations, SLA), the raw test data captured at snapshot time, and the resources that were excluded from the test (out-of-scope resources). For structured snapshots, the `rawTestData` array contains one row per resource the test ran against; each row carries `resourceId`, `resourceType`, and the raw JSON for that resource. For unstructured snapshots, the `rawTestData` array contains a single row with `resourceId` and `resourceType` set to `null` and `rawJson` containing the entire test-run JSON blob. The `outOfScopeResources` field lists resources excluded at the test level (customer-disabled) and the framework level (segment configuration). Empty exclusion groups are filtered out. The `apiRequests` array contains the HTTP requests captured during API introspection tests. Empty when the test does not perform API introspection. Rate limit: 10 requests / minute. */
2663
+ /** Get test snapshot detail for an evidence row Retrieves the rich detail for a single VANTA_TEST_SNAPSHOT evidence row attached to an information request. The response includes test-level metadata (description, integrations, SLA) and out-of-scope resources. To retrieve captured raw test data, call `GET /v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data`. The `outOfScopeResources` field lists resources excluded at the test level (customer-disabled) and the framework level (segment configuration). Empty exclusion groups are filtered out. The `apiRequests` array contains the HTTP requests captured during API introspection tests. Empty when the test does not perform API introspection. Rate limit: 50 requests / minute. */
2456
2664
  export const getInformationRequestTestSnapshotEvidenceDetail: API.OperationMethod<
2457
2665
  GetInformationRequestTestSnapshotEvidenceDetailRequest,
2458
2666
  VantaTestSnapshotEvidenceDetail,
@@ -2460,12 +2668,13 @@ export const getInformationRequestTestSnapshotEvidenceDetail: API.OperationMetho
2460
2668
  VantaOpContext
2461
2669
  > = /*@__PURE__*/ API.make(() => ({
2462
2670
  input: __S(
2463
- 640,
2464
- __c20,
2671
+ 736,
2672
+ __c23,
2465
2673
  0,
2466
2674
  ) as any as S.Schema<GetInformationRequestTestSnapshotEvidenceDetailRequest>,
2467
- output: __S(656, __c20, 16) as any as S.Schema<VantaTestSnapshotEvidenceDetail>,
2468
- errors: [UnknownVantaError],
2675
+ output: __S(752, __c23, 16) as any as S.Schema<VantaTestSnapshotEvidenceDetail>,
2676
+ errors: [],
2677
+ serviceErrors: VantaServiceErrors,
2469
2678
  protocol: VantaProtocol,
2470
2679
  retry: Retry.Retry,
2471
2680
  telemetry: TELEMETRY,
@@ -2480,9 +2689,10 @@ export const getOrganizationInformation: API.OperationMethod<
2480
2689
  GetOrganizationInformationError,
2481
2690
  VantaOpContext
2482
2691
  > = /*@__PURE__*/ API.make(() => ({
2483
- input: __S(672, __c21, 0) as any as S.Schema<GetOrganizationInformationRequest>,
2484
- output: __S(674, __c21, 2) as any as S.Schema<AuditOrganizationInformation>,
2485
- errors: [UnknownVantaError],
2692
+ input: __S(768, __c24, 0) as any as S.Schema<GetOrganizationInformationRequest>,
2693
+ output: __S(770, __c24, 2) as any as S.Schema<AuditOrganizationInformation>,
2694
+ errors: [],
2695
+ serviceErrors: VantaServiceErrors,
2486
2696
  protocol: VantaProtocol,
2487
2697
  retry: Retry.Retry,
2488
2698
  telemetry: TELEMETRY,
@@ -2497,9 +2707,10 @@ export const getOrganizationNotifications: API.OperationMethod<
2497
2707
  GetOrganizationNotificationsError,
2498
2708
  VantaOpContext
2499
2709
  > = /*@__PURE__*/ API.make(() => ({
2500
- input: __S(704, __c22, 0) as any as S.Schema<GetOrganizationNotificationsRequest>,
2501
- output: __S(707, __c22, 3) as any as S.Schema<AuditOrganizationNotifications>,
2502
- errors: [UnknownVantaError],
2710
+ input: __S(800, __c25, 0) as any as S.Schema<GetOrganizationNotificationsRequest>,
2711
+ output: __S(803, __c25, 3) as any as S.Schema<AuditOrganizationNotifications>,
2712
+ errors: [],
2713
+ serviceErrors: VantaServiceErrors,
2503
2714
  protocol: VantaProtocol,
2504
2715
  retry: Retry.Retry,
2505
2716
  telemetry: TELEMETRY,
@@ -2514,9 +2725,10 @@ export const listAccountAccessServices: API.OperationMethod<
2514
2725
  ListAccountAccessServicesError,
2515
2726
  VantaOpContext
2516
2727
  > = /*@__PURE__*/ API.make(() => ({
2517
- input: __S(736, __c23, 0) as any as S.Schema<ListAccountAccessServicesRequest>,
2518
- output: __S(740, __c23, 4) as any as S.Schema<PaginatedResponseAccountAccessService>,
2519
- errors: [UnknownVantaError],
2728
+ input: __S(832, __c26, 0) as any as S.Schema<ListAccountAccessServicesRequest>,
2729
+ output: __S(836, __c26, 4) as any as S.Schema<PaginatedResponseAccountAccessService>,
2730
+ errors: [],
2731
+ serviceErrors: VantaServiceErrors,
2520
2732
  protocol: VantaProtocol,
2521
2733
  retry: Retry.Retry,
2522
2734
  telemetry: TELEMETRY,
@@ -2531,9 +2743,10 @@ export const listAuditComments: API.OperationMethod<
2531
2743
  ListAuditCommentsError,
2532
2744
  VantaOpContext
2533
2745
  > = /*@__PURE__*/ API.make(() => ({
2534
- input: __S(800, __c25, 0) as any as S.Schema<ListAuditCommentsRequest>,
2535
- output: __S(803, __c25, 3) as any as S.Schema<PaginatedResponseComment>,
2536
- errors: [UnknownVantaError],
2746
+ input: __S(896, __c28, 0) as any as S.Schema<ListAuditCommentsRequest>,
2747
+ output: __S(899, __c28, 3) as any as S.Schema<PaginatedResponseComment>,
2748
+ errors: [],
2749
+ serviceErrors: VantaServiceErrors,
2537
2750
  protocol: VantaProtocol,
2538
2751
  retry: Retry.Retry,
2539
2752
  telemetry: TELEMETRY,
@@ -2548,9 +2761,10 @@ export const listAuditControls: API.OperationMethod<
2548
2761
  ListAuditControlsError,
2549
2762
  VantaOpContext
2550
2763
  > = /*@__PURE__*/ API.make(() => ({
2551
- input: __S(832, __c26, 0) as any as S.Schema<ListAuditControlsRequest>,
2552
- output: __S(841, __c26, 9) as any as S.Schema<PaginatedResponseAuditorControl>,
2553
- errors: [UnknownVantaError],
2764
+ input: __S(928, __c29, 0) as any as S.Schema<ListAuditControlsRequest>,
2765
+ output: __S(937, __c29, 9) as any as S.Schema<PaginatedResponseAuditorControl>,
2766
+ errors: [],
2767
+ serviceErrors: VantaServiceErrors,
2554
2768
  protocol: VantaProtocol,
2555
2769
  retry: Retry.Retry,
2556
2770
  telemetry: TELEMETRY,
@@ -2565,9 +2779,10 @@ export const listAuditEvidence: API.OperationMethod<
2565
2779
  ListAuditEvidenceError,
2566
2780
  VantaOpContext
2567
2781
  > = /*@__PURE__*/ API.make(() => ({
2568
- input: __S(864, __c27, 0) as any as S.Schema<ListAuditEvidenceRequest>,
2569
- output: __S(867, __c27, 3) as any as S.Schema<PaginatedResponseEvidence>,
2570
- errors: [UnknownVantaError],
2782
+ input: __S(960, __c30, 0) as any as S.Schema<ListAuditEvidenceRequest>,
2783
+ output: __S(963, __c30, 3) as any as S.Schema<PaginatedResponseEvidence>,
2784
+ errors: [],
2785
+ serviceErrors: VantaServiceErrors,
2571
2786
  protocol: VantaProtocol,
2572
2787
  retry: Retry.Retry,
2573
2788
  telemetry: TELEMETRY,
@@ -2582,9 +2797,10 @@ export const listAuditEvidenceUrls: API.OperationMethod<
2582
2797
  ListAuditEvidenceUrlsError,
2583
2798
  VantaOpContext
2584
2799
  > = /*@__PURE__*/ API.make(() => ({
2585
- input: __S(896, __c28, 0) as any as S.Schema<ListAuditEvidenceUrlsRequest>,
2586
- output: __S(900, __c28, 4) as any as S.Schema<PaginatedResponseEvidenceUrl>,
2587
- errors: [UnknownVantaError],
2800
+ input: __S(992, __c31, 0) as any as S.Schema<ListAuditEvidenceUrlsRequest>,
2801
+ output: __S(996, __c31, 4) as any as S.Schema<PaginatedResponseEvidenceUrl>,
2802
+ errors: [],
2803
+ serviceErrors: VantaServiceErrors,
2588
2804
  protocol: VantaProtocol,
2589
2805
  retry: Retry.Retry,
2590
2806
  telemetry: TELEMETRY,
@@ -2599,9 +2815,10 @@ export const listAuditIssues: API.OperationMethod<
2599
2815
  ListAuditIssuesError,
2600
2816
  VantaOpContext
2601
2817
  > = /*@__PURE__*/ API.make(() => ({
2602
- input: __S(928, __c29, 0) as any as S.Schema<ListAuditIssuesRequest>,
2603
- output: __S(933, __c29, 5) as any as S.Schema<PaginatedResponseIssueSnapshotItem>,
2604
- errors: [UnknownVantaError],
2818
+ input: __S(1024, __c32, 0) as any as S.Schema<ListAuditIssuesRequest>,
2819
+ output: __S(1029, __c32, 5) as any as S.Schema<PaginatedResponseIssueSnapshotItem>,
2820
+ errors: [],
2821
+ serviceErrors: VantaServiceErrors,
2605
2822
  protocol: VantaProtocol,
2606
2823
  retry: Retry.Retry,
2607
2824
  telemetry: TELEMETRY,
@@ -2616,9 +2833,10 @@ export const listAuditRisks: API.OperationMethod<
2616
2833
  ListAuditRisksError,
2617
2834
  VantaOpContext
2618
2835
  > = /*@__PURE__*/ API.make(() => ({
2619
- input: __S(960, __c30, 0) as any as S.Schema<ListAuditRisksRequest>,
2620
- output: __S(965, __c30, 5) as any as S.Schema<PaginatedResponseAuditRisk>,
2621
- errors: [UnknownVantaError],
2836
+ input: __S(1056, __c33, 0) as any as S.Schema<ListAuditRisksRequest>,
2837
+ output: __S(1061, __c33, 5) as any as S.Schema<PaginatedResponseAuditRisk>,
2838
+ errors: [],
2839
+ serviceErrors: VantaServiceErrors,
2622
2840
  protocol: VantaProtocol,
2623
2841
  retry: Retry.Retry,
2624
2842
  telemetry: TELEMETRY,
@@ -2633,9 +2851,10 @@ export const listAudits: API.OperationMethod<
2633
2851
  ListAuditsError,
2634
2852
  VantaOpContext
2635
2853
  > = /*@__PURE__*/ API.make(() => ({
2636
- input: __S(1056, __c33, 0) as any as S.Schema<ListAuditsRequest>,
2637
- output: __S(1059, __c33, 3) as any as S.Schema<PaginatedResponseAudit>,
2638
- errors: [UnknownVantaError],
2854
+ input: __S(1088, __c34, 0) as any as S.Schema<ListAuditsRequest>,
2855
+ output: __S(1091, __c34, 3) as any as S.Schema<PaginatedResponseAudit>,
2856
+ errors: [],
2857
+ serviceErrors: VantaServiceErrors,
2639
2858
  protocol: VantaProtocol,
2640
2859
  retry: Retry.Retry,
2641
2860
  telemetry: TELEMETRY,
@@ -2650,9 +2869,10 @@ export const listAuditSnapshots: API.OperationMethod<
2650
2869
  ListAuditSnapshotsError,
2651
2870
  VantaOpContext
2652
2871
  > = /*@__PURE__*/ API.make(() => ({
2653
- input: __S(1088, __c34, 0) as any as S.Schema<ListAuditSnapshotsRequest>,
2654
- output: __S(1092, __c34, 4) as any as S.Schema<PaginatedResponseIssueSnapshotMetadata>,
2655
- errors: [UnknownVantaError],
2872
+ input: __S(1120, __c35, 0) as any as S.Schema<ListAuditSnapshotsRequest>,
2873
+ output: __S(1124, __c35, 4) as any as S.Schema<PaginatedResponseIssueSnapshotMetadata>,
2874
+ errors: [],
2875
+ serviceErrors: VantaServiceErrors,
2656
2876
  protocol: VantaProtocol,
2657
2877
  retry: Retry.Retry,
2658
2878
  telemetry: TELEMETRY,
@@ -2667,9 +2887,10 @@ export const listCodeChanges: API.OperationMethod<
2667
2887
  ListCodeChangesError,
2668
2888
  VantaOpContext
2669
2889
  > = /*@__PURE__*/ API.make(() => ({
2670
- input: __S(1120, __c35, 0) as any as S.Schema<ListCodeChangesRequest>,
2671
- output: __S(1124, __c35, 4) as any as S.Schema<PaginatedResponseCodeChange>,
2672
- errors: [UnknownVantaError],
2890
+ input: __S(1152, __c36, 0) as any as S.Schema<ListCodeChangesRequest>,
2891
+ output: __S(1156, __c36, 4) as any as S.Schema<PaginatedResponseCodeChange>,
2892
+ errors: [],
2893
+ serviceErrors: VantaServiceErrors,
2673
2894
  protocol: VantaProtocol,
2674
2895
  retry: Retry.Retry,
2675
2896
  telemetry: TELEMETRY,
@@ -2684,9 +2905,10 @@ export const listCommentsForControl: API.OperationMethod<
2684
2905
  ListCommentsForControlError,
2685
2906
  VantaOpContext
2686
2907
  > = /*@__PURE__*/ API.make(() => ({
2687
- input: __S(1152, __c36, 0) as any as S.Schema<ListCommentsForControlRequest>,
2688
- output: __S(1186, __c37, 2) as any as S.Schema<PaginatedResponseAuditControlComment>,
2689
- errors: [UnknownVantaError],
2908
+ input: __S(1184, __c37, 0) as any as S.Schema<ListCommentsForControlRequest>,
2909
+ output: __S(1218, __c38, 2) as any as S.Schema<PaginatedResponseAuditControlComment>,
2910
+ errors: [],
2911
+ serviceErrors: VantaServiceErrors,
2690
2912
  protocol: VantaProtocol,
2691
2913
  retry: Retry.Retry,
2692
2914
  telemetry: TELEMETRY,
@@ -2701,9 +2923,10 @@ export const listCommentsForInformationRequest: API.OperationMethod<
2701
2923
  ListCommentsForInformationRequestError,
2702
2924
  VantaOpContext
2703
2925
  > = /*@__PURE__*/ API.make(() => ({
2704
- input: __S(1216, __c38, 0) as any as S.Schema<ListCommentsForInformationRequestRequest>,
2705
- output: __S(1186, __c37, 2) as any as S.Schema<PaginatedResponseInformationRequestComment>,
2706
- errors: [UnknownVantaError],
2926
+ input: __S(1248, __c39, 0) as any as S.Schema<ListCommentsForInformationRequestRequest>,
2927
+ output: __S(1218, __c38, 2) as any as S.Schema<PaginatedResponseInformationRequestComment>,
2928
+ errors: [],
2929
+ serviceErrors: VantaServiceErrors,
2707
2930
  protocol: VantaProtocol,
2708
2931
  retry: Retry.Retry,
2709
2932
  telemetry: TELEMETRY,
@@ -2718,15 +2941,34 @@ export const listInformationRequestActivity: API.OperationMethod<
2718
2941
  ListInformationRequestActivityError,
2719
2942
  VantaOpContext
2720
2943
  > = /*@__PURE__*/ API.make(() => ({
2721
- input: __S(1248, __c39, 0) as any as S.Schema<ListInformationRequestActivityRequest>,
2722
- output: __S(1252, __c39, 4) as any as S.Schema<PaginatedResponseInformationRequestActivityLog>,
2723
- errors: [UnknownVantaError],
2944
+ input: __S(1280, __c40, 0) as any as S.Schema<ListInformationRequestActivityRequest>,
2945
+ output: __S(1284, __c40, 4) as any as S.Schema<PaginatedResponseInformationRequestActivityLog>,
2946
+ errors: [],
2947
+ serviceErrors: VantaServiceErrors,
2724
2948
  protocol: VantaProtocol,
2725
2949
  retry: Retry.Retry,
2726
2950
  telemetry: TELEMETRY,
2727
2951
  span: "ListInformationRequestActivity",
2728
2952
  }));
2729
2953
 
2954
+ export type ListInformationRequestAuditorFilesError = VantaOpError;
2955
+ /** List auditor files for an information request Lists the files auditors shared with the customer on an information request, newest upload first, with ties ordered by ID so pages are stable. Deleted files are not returned; list again to see the current set. Each `url` is a download link that expires one hour after it is issued. List the files again to get fresh download URLs. Do not use `url` as a key. Rate limit: 50 requests / minute. */
2956
+ export const listInformationRequestAuditorFiles: API.OperationMethod<
2957
+ ListInformationRequestAuditorFilesRequest,
2958
+ PaginatedResponseInformationRequestAuditorFile,
2959
+ ListInformationRequestAuditorFilesError,
2960
+ VantaOpContext
2961
+ > = /*@__PURE__*/ API.make(() => ({
2962
+ input: __S(1313, __c41, 1) as any as S.Schema<ListInformationRequestAuditorFilesRequest>,
2963
+ output: __S(1317, __c41, 5) as any as S.Schema<PaginatedResponseInformationRequestAuditorFile>,
2964
+ errors: [],
2965
+ serviceErrors: VantaServiceErrors,
2966
+ protocol: VantaProtocol,
2967
+ retry: Retry.Retry,
2968
+ telemetry: TELEMETRY,
2969
+ span: "ListInformationRequestAuditorFiles",
2970
+ }));
2971
+
2730
2972
  export type ListInformationRequestEvidenceError = VantaOpError;
2731
2973
  /** List evidence for an information request Retrieves a paginated list of all evidence attached to an information request, enabling auditors to review evidence submitted by customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. If the information request itself has been deleted, this endpoint returns a 4xx HTTP error instead of its evidence. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only evidence created, modified, shared, or deleted since that timestamp is returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Identifying evidence and files: - Use `id` as the key for each evidence item, whatever its type. - To recognize the same file across information requests, use the file key for the evidence type. UPLOADED_DOCUMENT uses `evidence.id`. VANTA_DOCUMENT and VANTA_POLICY use `evidence.file.id`, which identifies the source document or policy file. VANTA_TEST uses `evidence.snapshotId` plus `evidence.fileType`. LINK, OBSERVATION, and VANTA_TEST_SNAPSHOT evidence has no file. - Do not use `file.url` as a key. It is a temporary download link. Rate limit: 50 requests / minute. */
2732
2974
  export const listInformationRequestEvidence: API.OperationMethod<
@@ -2735,9 +2977,10 @@ export const listInformationRequestEvidence: API.OperationMethod<
2735
2977
  ListInformationRequestEvidenceError,
2736
2978
  VantaOpContext
2737
2979
  > = /*@__PURE__*/ API.make(() => ({
2738
- input: __S(1280, __c40, 0) as any as S.Schema<ListInformationRequestEvidenceRequest>,
2739
- output: __S(1283, __c40, 3) as any as S.Schema<PaginatedResponseInformationRequestEvidence>,
2740
- errors: [UnknownVantaError],
2980
+ input: __S(1344, __c42, 0) as any as S.Schema<ListInformationRequestEvidenceRequest>,
2981
+ output: __S(1347, __c42, 3) as any as S.Schema<PaginatedResponseInformationRequestEvidence>,
2982
+ errors: [],
2983
+ serviceErrors: VantaServiceErrors,
2741
2984
  protocol: VantaProtocol,
2742
2985
  retry: Retry.Retry,
2743
2986
  telemetry: TELEMETRY,
@@ -2745,16 +2988,17 @@ export const listInformationRequestEvidence: API.OperationMethod<
2745
2988
  }));
2746
2989
 
2747
2990
  export type ListInformationRequestsError = VantaOpError;
2748
- /** List information requests for an audit Retrieves a paginated list of all information requests for an audit, enabling external audit management systems to display and track evidence requests. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This is the only endpoint that returns a deleted information request. No webhook fires when a request is deleted. Endpoints under `/audits/{auditId}/information-requests/{requestId}` return a 4xx HTTP error for a deleted request. To confirm deletion, check the request's `deletionDate` in this list. Deleting a request does not set `deletionDate` on its comments or evidence or send delete events for them. Once this list confirms the request was deleted, treat its comments and evidence as deleted too. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only requests created, modified, or deleted since that timestamp are returned 4. Process updates and soft-deletes by checking the `deletionDate` field 5. Update your last sync timestamp to the current time `segmentIds` on each returned request is resolved against the audit's current scope. A scope-only change (a segment leaving or joining the audit without the request row being written) is not a delta-sync event. Re-fetch without `changedSinceDate`, or GET by id, to see the current projection. Rate limit: 50 requests / minute. */
2991
+ /** List information requests for an audit Retrieves a paginated list of all information requests for an audit, enabling external audit management systems to display and track evidence requests. This list includes soft-deleted requests (`deletionDate !== null`) even when `changedSinceDate` is omitted. When supplied, `changedSinceDate` filters both live and deleted requests. This is the only endpoint that returns a deleted information request. Deletion makes the request and its child endpoints inaccessible by ID. A `403` or `404` can also mean access was lost. Use `deletionDate` or the `v1.information-request.deleted` webhook to confirm deletion. Remove the deleted request and its comments and evidence from your local mirror. Deleting a request produces no separate deletion events or tombstones for its children. To recover from missed request deletion events, paginate this list without `changedSinceDate` or other optional filters. Reconcile missing records only after a successful, complete traversal with access to the audit. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Capture the timestamp before requesting the first page 2. Pass the previous successful sync's start timestamp as `changedSinceDate` 3. Keep the same filters across pages and use `deletionDate` to process deletes 4. Save the captured start timestamp only after every page succeeds 5. Handle records returned by more than one sync idempotently `segmentIds` on each returned request is resolved against the audit's current scope. A scope-only change (a segment leaving or joining the audit without the request row being written) is not a delta-sync event. Re-fetch without `changedSinceDate`, or GET by id, to see the current projection. Rate limit: 50 requests / minute. */
2749
2992
  export const listInformationRequests: API.OperationMethod<
2750
2993
  ListInformationRequestsRequest,
2751
2994
  PaginatedResponseInformationRequest,
2752
2995
  ListInformationRequestsError,
2753
2996
  VantaOpContext
2754
2997
  > = /*@__PURE__*/ API.make(() => ({
2755
- input: __S(1312, __c41, 0) as any as S.Schema<ListInformationRequestsRequest>,
2756
- output: __S(1346, __c42, 2) as any as S.Schema<PaginatedResponseInformationRequest>,
2757
- errors: [UnknownVantaError],
2998
+ input: __S(1376, __c43, 0) as any as S.Schema<ListInformationRequestsRequest>,
2999
+ output: __S(1410, __c44, 2) as any as S.Schema<PaginatedResponseInformationRequest>,
3000
+ errors: [],
3001
+ serviceErrors: VantaServiceErrors,
2758
3002
  protocol: VantaProtocol,
2759
3003
  retry: Retry.Retry,
2760
3004
  telemetry: TELEMETRY,
@@ -2769,15 +3013,38 @@ export const listInformationRequestsForControl: API.OperationMethod<
2769
3013
  ListInformationRequestsForControlError,
2770
3014
  VantaOpContext
2771
3015
  > = /*@__PURE__*/ API.make(() => ({
2772
- input: __S(1376, __c43, 0) as any as S.Schema<ListInformationRequestsForControlRequest>,
2773
- output: __S(1346, __c42, 2) as any as S.Schema<PaginatedResponseInformationRequest>,
2774
- errors: [UnknownVantaError],
3016
+ input: __S(1440, __c45, 0) as any as S.Schema<ListInformationRequestsForControlRequest>,
3017
+ output: __S(1410, __c44, 2) as any as S.Schema<PaginatedResponseInformationRequest>,
3018
+ errors: [],
3019
+ serviceErrors: VantaServiceErrors,
2775
3020
  protocol: VantaProtocol,
2776
3021
  retry: Retry.Retry,
2777
3022
  telemetry: TELEMETRY,
2778
3023
  span: "ListInformationRequestsForControl",
2779
3024
  }));
2780
3025
 
3026
+ export type ListInformationRequestTestSnapshotRawDataError = VantaOpError;
3027
+ /** List raw test data for a test snapshot Lists raw test data captured in a test snapshot, in capture order. Structured entries contain the primary resource ID, type, and captured JSON. Unstructured entries contain one captured JSON record, with null resource ID and type. Pass `results.pageInfo.endCursor` as `pageCursor` to continue until `results.pageInfo.hasNextPage` is false. Deleted evidence returns 404. Rate limit: 50 requests / minute. */
3028
+ export const listInformationRequestTestSnapshotRawData: API.OperationMethod<
3029
+ ListInformationRequestTestSnapshotRawDataRequest,
3030
+ PaginatedResponseVantaTestSnapshotRawTestDataPageRow,
3031
+ ListInformationRequestTestSnapshotRawDataError,
3032
+ VantaOpContext
3033
+ > = /*@__PURE__*/ API.make(() => ({
3034
+ input: __S(1472, __c46, 0) as any as S.Schema<ListInformationRequestTestSnapshotRawDataRequest>,
3035
+ output: __S(
3036
+ 1476,
3037
+ __c46,
3038
+ 4,
3039
+ ) as any as S.Schema<PaginatedResponseVantaTestSnapshotRawTestDataPageRow>,
3040
+ errors: [],
3041
+ serviceErrors: VantaServiceErrors,
3042
+ protocol: VantaProtocol,
3043
+ retry: Retry.Retry,
3044
+ telemetry: TELEMETRY,
3045
+ span: "ListInformationRequestTestSnapshotRawData",
3046
+ }));
3047
+
2781
3048
  export type ListIntegrationsError = VantaOpError;
2782
3049
  /** List integrations for an audit Retrieves integration population data for an audit. This endpoint provides access to integration records visible to auditors during an audit engagement. Integrations represent connected services (e.g., GitHub, AWS, Slack) that provide data for the audit. Supports filtering by: - `search`: Searches integration names (case-insensitive) - `tagsMatchesAny`: Filters by integration tag (ACCESS, COMPUTERS, etc.) - `categoriesMatchesAny`: Filters by category (CLOUD_PROVIDER, HR_PROVIDER, etc.) Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Results are sorted by integration display name (ascending). This sort order is fixed and cannot be customized via query parameters. Supports audits with one or more program segments. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2783
3050
  export const listIntegrations: API.OperationMethod<
@@ -2786,9 +3053,10 @@ export const listIntegrations: API.OperationMethod<
2786
3053
  ListIntegrationsError,
2787
3054
  VantaOpContext
2788
3055
  > = /*@__PURE__*/ API.make(() => ({
2789
- input: __S(1408, __c44, 0) as any as S.Schema<ListIntegrationsRequest>,
2790
- output: __S(1412, __c44, 4) as any as S.Schema<PaginatedResponseAuditIntegration>,
2791
- errors: [UnknownVantaError],
3056
+ input: __S(1504, __c47, 0) as any as S.Schema<ListIntegrationsRequest>,
3057
+ output: __S(1508, __c47, 4) as any as S.Schema<PaginatedResponseAuditIntegration>,
3058
+ errors: [],
3059
+ serviceErrors: VantaServiceErrors,
2792
3060
  protocol: VantaProtocol,
2793
3061
  retry: Retry.Retry,
2794
3062
  telemetry: TELEMETRY,
@@ -2803,9 +3071,10 @@ export const listPersonnelAccountAccess: API.OperationMethod<
2803
3071
  ListPersonnelAccountAccessError,
2804
3072
  VantaOpContext
2805
3073
  > = /*@__PURE__*/ API.make(() => ({
2806
- input: __S(1472, __c46, 0) as any as S.Schema<ListPersonnelAccountAccessRequest>,
2807
- output: __S(1476, __c46, 4) as any as S.Schema<PaginatedResponseAccountAccess>,
2808
- errors: [UnknownVantaError],
3074
+ input: __S(1536, __c48, 0) as any as S.Schema<ListPersonnelAccountAccessRequest>,
3075
+ output: __S(1540, __c48, 4) as any as S.Schema<PaginatedResponseAccountAccess>,
3076
+ errors: [],
3077
+ serviceErrors: VantaServiceErrors,
2809
3078
  protocol: VantaProtocol,
2810
3079
  retry: Retry.Retry,
2811
3080
  telemetry: TELEMETRY,
@@ -2820,9 +3089,10 @@ export const listPersonnelGroups: API.OperationMethod<
2820
3089
  ListPersonnelGroupsError,
2821
3090
  VantaOpContext
2822
3091
  > = /*@__PURE__*/ API.make(() => ({
2823
- input: __S(1504, __c47, 0) as any as S.Schema<ListPersonnelGroupsRequest>,
2824
- output: __S(1508, __c47, 4) as any as S.Schema<PaginatedResponsePersonnelGroup>,
2825
- errors: [UnknownVantaError],
3092
+ input: __S(1568, __c49, 0) as any as S.Schema<ListPersonnelGroupsRequest>,
3093
+ output: __S(1572, __c49, 4) as any as S.Schema<PaginatedResponsePersonnelGroup>,
3094
+ errors: [],
3095
+ serviceErrors: VantaServiceErrors,
2826
3096
  protocol: VantaProtocol,
2827
3097
  retry: Retry.Retry,
2828
3098
  telemetry: TELEMETRY,
@@ -2837,9 +3107,10 @@ export const listPersonnelPeople: API.OperationMethod<
2837
3107
  ListPersonnelPeopleError,
2838
3108
  VantaOpContext
2839
3109
  > = /*@__PURE__*/ API.make(() => ({
2840
- input: __S(1568, __c49, 0) as any as S.Schema<ListPersonnelPeopleRequest>,
2841
- output: __S(1575, __c49, 7) as any as S.Schema<PaginatedResponsePersonnelPerson>,
2842
- errors: [UnknownVantaError],
3110
+ input: __S(1728, __c54, 0) as any as S.Schema<ListPersonnelPeopleRequest>,
3111
+ output: __S(1735, __c54, 7) as any as S.Schema<PaginatedResponsePersonnelPerson>,
3112
+ errors: [],
3113
+ serviceErrors: VantaServiceErrors,
2843
3114
  protocol: VantaProtocol,
2844
3115
  retry: Retry.Retry,
2845
3116
  telemetry: TELEMETRY,
@@ -2854,9 +3125,10 @@ export const listRiskSnapshots: API.OperationMethod<
2854
3125
  ListRiskSnapshotsError,
2855
3126
  VantaOpContext
2856
3127
  > = /*@__PURE__*/ API.make(() => ({
2857
- input: __S(1600, __c50, 0) as any as S.Schema<ListRiskSnapshotsRequest>,
2858
- output: __S(1604, __c50, 4) as any as S.Schema<PaginatedResponseRiskSnapshot>,
2859
- errors: [UnknownVantaError],
3128
+ input: __S(1760, __c55, 0) as any as S.Schema<ListRiskSnapshotsRequest>,
3129
+ output: __S(1764, __c55, 4) as any as S.Schema<PaginatedResponseRiskSnapshot>,
3130
+ errors: [],
3131
+ serviceErrors: VantaServiceErrors,
2860
3132
  protocol: VantaProtocol,
2861
3133
  retry: Retry.Retry,
2862
3134
  telemetry: TELEMETRY,
@@ -2871,9 +3143,10 @@ export const listShareInformationRequest: API.OperationMethod<
2871
3143
  ListShareInformationRequestError,
2872
3144
  VantaOpContext
2873
3145
  > = /*@__PURE__*/ API.make(() => ({
2874
- input: __S(1632, __c51, 0) as any as S.Schema<ListShareInformationRequestRequest>,
2875
- output: __S(230, __c7, 6) as any as S.Schema<Audit>,
2876
- errors: [UnknownVantaError],
3146
+ input: __S(1792, __c56, 0) as any as S.Schema<ListShareInformationRequestRequest>,
3147
+ output: __S(390, __c12, 6) as any as S.Schema<Audit>,
3148
+ errors: [],
3149
+ serviceErrors: VantaServiceErrors,
2877
3150
  protocol: VantaProtocol,
2878
3151
  retry: Retry.Retry,
2879
3152
  telemetry: TELEMETRY,
@@ -2888,9 +3161,10 @@ export const listVendors: API.OperationMethod<
2888
3161
  ListVendorsError,
2889
3162
  VantaOpContext
2890
3163
  > = /*@__PURE__*/ API.make(() => ({
2891
- input: __S(1664, __c52, 0) as any as S.Schema<ListVendorsRequest>,
2892
- output: __S(1669, __c52, 5) as any as S.Schema<PaginatedResponseAuditVendor>,
2893
- errors: [UnknownVantaError],
3164
+ input: __S(1824, __c57, 0) as any as S.Schema<ListVendorsRequest>,
3165
+ output: __S(1829, __c57, 5) as any as S.Schema<PaginatedResponseAuditVendor>,
3166
+ errors: [],
3167
+ serviceErrors: VantaServiceErrors,
2894
3168
  protocol: VantaProtocol,
2895
3169
  retry: Retry.Retry,
2896
3170
  telemetry: TELEMETRY,
@@ -2905,9 +3179,10 @@ export const updateAuditEvidence: API.OperationMethod<
2905
3179
  UpdateAuditEvidenceError,
2906
3180
  VantaOpContext
2907
3181
  > = /*@__PURE__*/ API.make(() => ({
2908
- input: __S(1697, __c53, 1) as any as S.Schema<UpdateAuditEvidenceRequest>,
2909
- output: __S(354, __c11, 2) as any as S.Schema<Evidence>,
2910
- errors: [UnknownVantaError],
3182
+ input: __S(1857, __c58, 1) as any as S.Schema<UpdateAuditEvidenceRequest>,
3183
+ output: __S(514, __c16, 2) as any as S.Schema<Evidence>,
3184
+ errors: [],
3185
+ serviceErrors: VantaServiceErrors,
2911
3186
  protocol: VantaProtocol,
2912
3187
  retry: Retry.Retry,
2913
3188
  telemetry: TELEMETRY,
@@ -2922,9 +3197,10 @@ export const updateCommentForControl: API.OperationMethod<
2922
3197
  UpdateCommentForControlError,
2923
3198
  VantaOpContext
2924
3199
  > = /*@__PURE__*/ API.make(() => ({
2925
- input: __S(1728, __c54, 0) as any as S.Schema<UpdateCommentForControlRequest>,
2926
- output: __S(1024, __c32, 0) as any as S.Schema<AuditControlComment>,
2927
- errors: [UnknownVantaError],
3200
+ input: __S(1888, __c59, 0) as any as S.Schema<UpdateCommentForControlRequest>,
3201
+ output: __S(2208, __c69, 0) as any as S.Schema<AuditControlComment>,
3202
+ errors: [],
3203
+ serviceErrors: VantaServiceErrors,
2928
3204
  protocol: VantaProtocol,
2929
3205
  retry: Retry.Retry,
2930
3206
  telemetry: TELEMETRY,
@@ -2939,9 +3215,10 @@ export const updateCommentForInformationRequest: API.OperationMethod<
2939
3215
  UpdateCommentForInformationRequestError,
2940
3216
  VantaOpContext
2941
3217
  > = /*@__PURE__*/ API.make(() => ({
2942
- input: __S(1760, __c55, 0) as any as S.Schema<UpdateCommentForInformationRequestRequest>,
2943
- output: __S(1024, __c32, 0) as any as S.Schema<InformationRequestComment>,
2944
- errors: [UnknownVantaError],
3218
+ input: __S(1920, __c60, 0) as any as S.Schema<UpdateCommentForInformationRequestRequest>,
3219
+ output: __S(2208, __c69, 0) as any as S.Schema<InformationRequestComment>,
3220
+ errors: [],
3221
+ serviceErrors: VantaServiceErrors,
2945
3222
  protocol: VantaProtocol,
2946
3223
  retry: Retry.Retry,
2947
3224
  telemetry: TELEMETRY,
@@ -2956,15 +3233,64 @@ export const updateInformationRequest: API.OperationMethod<
2956
3233
  UpdateInformationRequestError,
2957
3234
  VantaOpContext
2958
3235
  > = /*@__PURE__*/ API.make(() => ({
2959
- input: __S(1792, __c56, 0) as any as S.Schema<UpdateInformationRequestRequest>,
2960
- output: __S(64, __c2, 0) as any as S.Schema<InformationRequest>,
2961
- errors: [UnknownVantaError],
3236
+ input: __S(1952, __c61, 0) as any as S.Schema<UpdateInformationRequestRequest>,
3237
+ output: __S(1696, __c53, 0) as any as S.Schema<InformationRequest>,
3238
+ errors: [],
3239
+ serviceErrors: VantaServiceErrors,
2962
3240
  protocol: VantaProtocol,
2963
3241
  retry: Retry.Retry,
2964
3242
  telemetry: TELEMETRY,
2965
3243
  span: "UpdateInformationRequest",
2966
3244
  }));
2967
3245
 
3246
+ export type UploadFinalizeInformationRequestAuditorFileError =
3247
+ | BadRequest
3248
+ | Forbidden
3249
+ | NotFound
3250
+ | Conflict
3251
+ | UnprocessableEntity
3252
+ | VantaOpError;
3253
+ /** Complete an auditor file upload and attach the file Completes an auditor file upload by validating the file and attaching it to the information request. First start an upload with `POST /v1/audits/{auditId}/information-requests/{requestId}/auditor-files/uploads`, then transfer the file to the returned `url` and wait for its 2xx response. Calling finalize before the file arrives ends that upload; start a new one. Send `{ "uploadId": "<returned uploadId>" }` using the same application, audit and information request that started the upload. Vanta uses the auditor identified by `email` at the start; that auditor must still be an active user in your firm with audit access. Unsupported file types return `422` during finalization. A 201 response contains the attached file's `id`, which differs from `uploadId`. Use `GET /v1/audits/{auditId}/information-requests/{requestId}/auditor-files` to find that ID and obtain a temporary download URL. Retry the same upload ID with backoff after a lost response, a 5xx or a 429. Stop retrying at `finalizationExpiresAt`. A 409 means the audit is completed; stop this attempt. For 404, 413 or 422, stop this attempt and correct the input or start a new upload. A 429 can mean too many requests, another finalization of this upload is still running, or too many files are being finalized for this application and customer. After a failed attempt, you may need to wait up to 60 seconds before retrying. Expired uploads, missing files and unsupported files return 422; files over 50MB return 413. Retrying a finalization that already succeeded returns the original auditor file ID, even if the file was later deleted; it does not attach the file again. Current access is still required. Rate limit: 10 requests / minute. */
3254
+ export const uploadFinalizeInformationRequestAuditorFile: API.OperationMethod<
3255
+ UploadFinalizeInformationRequestAuditorFileRequest,
3256
+ UploadedAuditorFile,
3257
+ UploadFinalizeInformationRequestAuditorFileError,
3258
+ VantaOpContext
3259
+ > = /*@__PURE__*/ API.make(() => ({
3260
+ input: __S(1984, __c62, 0) as any as S.Schema<UploadFinalizeInformationRequestAuditorFileRequest>,
3261
+ output: __S(1985, __c62, 1) as any as S.Schema<UploadedAuditorFile>,
3262
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
3263
+ serviceErrors: VantaServiceErrors,
3264
+ protocol: VantaProtocol,
3265
+ retry: Retry.Retry,
3266
+ telemetry: TELEMETRY,
3267
+ span: "UploadFinalizeInformationRequestAuditorFile",
3268
+ }));
3269
+
3270
+ export type UploadInitiateInformationRequestAuditorFileError =
3271
+ | BadRequest
3272
+ | Forbidden
3273
+ | NotFound
3274
+ | Conflict
3275
+ | UnprocessableEntity
3276
+ | VantaOpError;
3277
+ /** Start an auditor file upload Starts an upload of a file an auditor provides for the customer, such as instructions or a template, on an information request. This does not upload customer evidence. Use this three-step flow: 1. Call this endpoint with `email`, `filename` and `contentType` to receive an `uploadId`, a temporary `url` and form `fields`. 2. POST the file to `url` as `multipart/form-data` before `transferExpiresAt`. Copy every returned field name and value unchanged, then append the file under `file` as the final part. Do not hard-code the field names or send your Vanta bearer token to this URL. Let your HTTP client set the multipart Content-Type header and boundary. Wait for a 2xx response; the response body may be empty. 3. POST `{ "uploadId": "<returned uploadId>" }` to `/v1/audits/{auditId}/information-requests/{requestId}/auditor-files/uploads/finalize` and complete finalization before `finalizationExpiresAt`. The file is attached only after finalization succeeds. Each upload accepts one file up to 50MB, inclusive. The auditor identified by `email` is credited as the uploader and must be an active user in your firm with access to the audit. A completed audit returns 409. Each application is limited to 10 unfinished auditor file uploads per customer, across all audits and requests. Uploads count toward this limit until they are finalized, fail, or expire. Starting another upload at this limit returns 429, even if the earlier file transfers have succeeded. Repeating this start operation creates a new upload; it does not recover an earlier upload whose response was lost. Rate limit: 10 requests / minute. */
3278
+ export const uploadInitiateInformationRequestAuditorFile: API.OperationMethod<
3279
+ UploadInitiateInformationRequestAuditorFileRequest,
3280
+ AuditorFileUploadGrant,
3281
+ UploadInitiateInformationRequestAuditorFileError,
3282
+ VantaOpContext
3283
+ > = /*@__PURE__*/ API.make(() => ({
3284
+ input: __S(2016, __c63, 0) as any as S.Schema<UploadInitiateInformationRequestAuditorFileRequest>,
3285
+ output: __S(2018, __c63, 2) as any as S.Schema<AuditorFileUploadGrant>,
3286
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
3287
+ serviceErrors: VantaServiceErrors,
3288
+ protocol: VantaProtocol,
3289
+ retry: Retry.Retry,
3290
+ telemetry: TELEMETRY,
3291
+ span: "UploadInitiateInformationRequestAuditorFile",
3292
+ }));
3293
+
2968
3294
  export type UpsertAssessmentForControlError = VantaOpError;
2969
3295
  /** Upsert a control's assessment within an audit Records (upserts) an auditor's assessment state and justification for a control within an IRL audit -- the API equivalent of assessing a control in the web app. Overwrites the assessment for this control in the chosen audit segment. `segmentId` may be any segment on the audit, `PROGRAM` or `SYSTEM` (see `segments` on the audit). It may be omitted only when the audit has exactly one segment. The `assessmentState` must be valid for that segment's framework (the request is rejected otherwise). The acting auditor is identified by `auditorEmail`, which must belong to the audit firm making the request. Returns 404 when the control is not part of the audit or the auditor email does not resolve to a firm user. Returns 422 when `segmentId` is omitted on an audit with more than one segment, when `segmentId` is not a segment on this audit, or when the control is not assigned to that segment for this audit. Applies to both Full and Controlled Audit View audits. Rate limit: 10 requests / minute. */
2970
3296
  export const upsertAssessmentForControl: API.OperationMethod<
@@ -2973,9 +3299,10 @@ export const upsertAssessmentForControl: API.OperationMethod<
2973
3299
  UpsertAssessmentForControlError,
2974
3300
  VantaOpContext
2975
3301
  > = /*@__PURE__*/ API.make(() => ({
2976
- input: __S(1888, __c59, 0) as any as S.Schema<UpsertAssessmentForControlRequest>,
2977
- output: __S(1889, __c59, 1) as any as S.Schema<AuditorControlAssessment>,
2978
- errors: [UnknownVantaError],
3302
+ input: __S(2080, __c65, 0) as any as S.Schema<UpsertAssessmentForControlRequest>,
3303
+ output: __S(2081, __c65, 1) as any as S.Schema<AuditorControlAssessment>,
3304
+ errors: [],
3305
+ serviceErrors: VantaServiceErrors,
2979
3306
  protocol: VantaProtocol,
2980
3307
  retry: Retry.Retry,
2981
3308
  telemetry: TELEMETRY,
@@ -2988,23 +3315,53 @@ function __c0(j: number): any {
2988
3315
  case 0:
2989
3316
  return S.suspend(() =>
2990
3317
  S.Struct({
2991
- auditId: S.String.pipe(T.Label()),
2992
- requestId: S.String.pipe(T.Label()),
2993
- auditorEmail: S.String,
2994
- }).pipe(
2995
- T.Http({
2996
- method: "POST",
2997
- uri: "/audits/{auditId}/information-requests/{requestId}/accept-evidence",
2998
- code: 200,
2999
- }),
3000
- ),
3001
- ).annotate({ identifier: "AcceptInformationRequestEvidenceRequest" });
3318
+ message: S.String,
3319
+ }),
3320
+ ).annotate({ identifier: "OutboundError" });
3002
3321
  }
3003
3322
  }
3004
3323
  function __c1(j: number): any {
3005
3324
  switch (j) {
3006
3325
  case 0:
3007
- return S.Array(S.String);
3326
+ return S.suspend(() =>
3327
+ S.Struct({
3328
+ frameworkId: S.Unknown,
3329
+ sectionId: S.String,
3330
+ }),
3331
+ ).annotate({ identifier: "FrameworkSection" });
3332
+ case 1:
3333
+ return S.Array(__S(32, __c1, 0));
3334
+ case 2:
3335
+ return S.suspend(() =>
3336
+ S.Struct({
3337
+ auditId: S.String.pipe(T.Label()),
3338
+ externalId: S.String,
3339
+ name: S.NullOr(S.String),
3340
+ description: S.String,
3341
+ effectiveDate: S.String,
3342
+ category: S.String,
3343
+ sections: S.optional(S.NullOr(__S(33, __c1, 1))),
3344
+ role: S.optional(S.NullOr(S.String)),
3345
+ }).pipe(
3346
+ T.Http({ method: "POST", uri: "/audits/{auditId}/controls/custom-controls", code: 200 }),
3347
+ ),
3348
+ ).annotate({ identifier: "CreateCustomControlRequest" });
3349
+ case 3:
3350
+ return S.suspend(() =>
3351
+ S.Struct({
3352
+ id: S.String,
3353
+ externalId: S.NullOr(S.String),
3354
+ name: S.String,
3355
+ description: S.String,
3356
+ source: S.String,
3357
+ domains: __S(1664, __c52, 0),
3358
+ owner: S.NullOr(__S(64, __c2, 0)),
3359
+ role: S.optional(S.NullOr(S.String)),
3360
+ customFields: __S(66, __c2, 2),
3361
+ creationDate: S.NullOr(S.String),
3362
+ modificationDate: S.NullOr(S.String),
3363
+ }),
3364
+ ).annotate({ identifier: "AuditorApiControl" });
3008
3365
  }
3009
3366
  }
3010
3367
  function __c2(j: number): any {
@@ -3013,25 +3370,19 @@ function __c2(j: number): any {
3013
3370
  return S.suspend(() =>
3014
3371
  S.Struct({
3015
3372
  id: S.String,
3016
- uniqueId: S.String,
3017
- additionalControlIds: __S(32, __c1, 0),
3018
- linkedControlIds: __S(32, __c1, 0),
3019
- approvalStatus: S.String,
3020
- cadence: S.NullOr(S.String),
3021
- frameworkCodes: __S(32, __c1, 0),
3022
- segmentIds: __S(32, __c1, 0),
3023
- description: S.NullOr(S.String),
3024
- dueDate: S.NullOr(S.String),
3025
- evidenceCaptureDate: S.NullOr(S.String),
3026
- requestId: S.NullOr(S.String),
3027
- requestType: S.String,
3028
- title: S.String,
3029
- creationDate: S.String,
3030
- modificationDate: S.String,
3031
- deletionDate: S.NullOr(S.String),
3032
- ownerAssignment: S.NullOr(S.Unknown),
3373
+ displayName: S.String,
3374
+ emailAddress: S.String,
3033
3375
  }),
3034
- ).annotate({ identifier: "InformationRequest" });
3376
+ ).annotate({ identifier: "Owner" });
3377
+ case 1:
3378
+ return S.suspend(() =>
3379
+ S.Struct({
3380
+ label: S.String,
3381
+ value: S.Unknown,
3382
+ }),
3383
+ ).annotate({ identifier: "CustomField" });
3384
+ case 2:
3385
+ return S.Array(__S(65, __c2, 1));
3035
3386
  }
3036
3387
  }
3037
3388
  function __c3(j: number): any {
@@ -3039,21 +3390,34 @@ function __c3(j: number): any {
3039
3390
  case 0:
3040
3391
  return S.suspend(() =>
3041
3392
  S.Struct({
3042
- email: S.String,
3043
- givenName: S.String,
3044
- familyName: S.String,
3045
- }).pipe(T.Http({ method: "POST", uri: "/auditors", code: 200 })),
3046
- ).annotate({ identifier: "CreateAuditorRequest" });
3393
+ auditId: S.String.pipe(T.Label()),
3394
+ controlIds: __S(1664, __c52, 0),
3395
+ title: S.String,
3396
+ description: S.String,
3397
+ cadence: S.String,
3398
+ reminderWindow: S.String,
3399
+ isRestricted: S.Boolean,
3400
+ auditorEmail: S.String,
3401
+ }).pipe(
3402
+ T.Http({
3403
+ method: "POST",
3404
+ uri: "/audits/{auditId}/evidence/custom-evidence-requests",
3405
+ code: 200,
3406
+ }),
3407
+ ),
3408
+ ).annotate({ identifier: "CreateCustomEvidenceRequestRequest" });
3047
3409
  case 1:
3048
3410
  return S.suspend(() =>
3049
3411
  S.Struct({
3050
3412
  id: S.String,
3051
- organizationId: S.String,
3052
- email: S.String,
3053
- givenName: S.String,
3054
- familyName: S.String,
3413
+ controlIds: __S(1664, __c52, 0),
3414
+ title: S.String,
3415
+ description: S.String,
3416
+ cadence: S.String,
3417
+ reminderWindow: S.String,
3418
+ isRestricted: S.Boolean,
3055
3419
  }),
3056
- ).annotate({ identifier: "Auditor" });
3420
+ ).annotate({ identifier: "CustomEvidenceRequest" });
3057
3421
  }
3058
3422
  }
3059
3423
  function __c4(j: number): any {
@@ -3062,15 +3426,19 @@ function __c4(j: number): any {
3062
3426
  return S.suspend(() =>
3063
3427
  S.Struct({
3064
3428
  auditId: S.String.pipe(T.Label()),
3065
- requestId: S.String.pipe(T.Label()),
3429
+ uniqueId: S.String,
3430
+ title: S.String,
3431
+ requestType: S.String,
3432
+ description: S.optional(S.NullOr(S.String)),
3433
+ frameworkCodes: __S(1664, __c52, 0),
3434
+ cadence: S.optional(S.NullOr(S.String)),
3435
+ dueDate: S.optional(S.NullOr(S.String)),
3436
+ evidenceCaptureDate: S.optional(S.NullOr(S.String)),
3437
+ additionalControlIds: S.optional(__S(1664, __c52, 0)),
3066
3438
  }).pipe(
3067
- T.Http({
3068
- method: "DELETE",
3069
- uri: "/audits/{auditId}/information-requests/{requestId}",
3070
- code: 200,
3071
- }),
3439
+ T.Http({ method: "POST", uri: "/audits/{auditId}/information-requests", code: 200 }),
3072
3440
  ),
3073
- ).annotate({ identifier: "DeleteInformationRequestRequest" });
3441
+ ).annotate({ identifier: "CreateInformationRequestRequest" });
3074
3442
  }
3075
3443
  }
3076
3444
  function __c5(j: number): any {
@@ -3078,20 +3446,26 @@ function __c5(j: number): any {
3078
3446
  case 0:
3079
3447
  return S.suspend(() =>
3080
3448
  S.Struct({
3081
- sourceAuditId: S.String,
3082
- displayName: S.String,
3083
- auditStartDate: S.String,
3084
- auditEndDate: S.String,
3085
- earlyAccessStartsAt: S.String,
3086
- allowAuditorEmails: __S(32, __c1, 0),
3087
- }).pipe(T.Http({ method: "POST", uri: "/audits/duplicate", code: 200 })),
3088
- ).annotate({ identifier: "DuplicateRequest" });
3449
+ auditId: S.String.pipe(T.Label()),
3450
+ controlId: S.String.pipe(T.Label()),
3451
+ commentId: S.String.pipe(T.Label()),
3452
+ email: S.String,
3453
+ }).pipe(
3454
+ T.Http({
3455
+ method: "DELETE",
3456
+ uri: "/audits/{auditId}/controls/{controlId}/comments/{commentId}",
3457
+ code: 200,
3458
+ }),
3459
+ ),
3460
+ ).annotate({ identifier: "DeleteCommentForControlRequest" });
3089
3461
  }
3090
3462
  }
3091
3463
  function __c6(j: number): any {
3092
3464
  switch (j) {
3093
3465
  case 0:
3094
- return S.Array(S.String);
3466
+ return S.suspend(() => S.Struct({})).annotate({
3467
+ identifier: "DeleteCommentForControlResponse",
3468
+ });
3095
3469
  }
3096
3470
  }
3097
3471
  function __c7(j: number): any {
@@ -3099,19 +3473,95 @@ function __c7(j: number): any {
3099
3473
  case 0:
3100
3474
  return S.suspend(() =>
3101
3475
  S.Struct({
3102
- requestsSharedWithCustomer: S.NullOr(S.String),
3103
- }),
3104
- ).annotate({ identifier: "AuditAuditorRequestListMetadata" });
3105
- case 1:
3106
- return S.suspend(() =>
3107
- S.Struct({
3108
- displayName: S.String,
3109
- }),
3110
- ).annotate({ identifier: "AuditSegmentFramework" });
3111
- case 2:
3476
+ auditId: S.String.pipe(T.Label()),
3477
+ requestId: S.String.pipe(T.Label()),
3478
+ commentId: S.String.pipe(T.Label()),
3479
+ email: S.String,
3480
+ }).pipe(
3481
+ T.Http({
3482
+ method: "DELETE",
3483
+ uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
3484
+ code: 200,
3485
+ }),
3486
+ ),
3487
+ ).annotate({ identifier: "DeleteCommentForInformationRequestRequest" });
3488
+ }
3489
+ }
3490
+ function __c8(j: number): any {
3491
+ switch (j) {
3492
+ case 0:
3112
3493
  return S.suspend(() =>
3113
3494
  S.Struct({
3114
- id: S.String,
3495
+ auditId: S.String.pipe(T.Label()),
3496
+ requestId: S.String.pipe(T.Label()),
3497
+ }).pipe(
3498
+ T.Http({
3499
+ method: "DELETE",
3500
+ uri: "/audits/{auditId}/information-requests/{requestId}",
3501
+ code: 200,
3502
+ }),
3503
+ ),
3504
+ ).annotate({ identifier: "DeleteInformationRequestRequest" });
3505
+ }
3506
+ }
3507
+ function __c9(j: number): any {
3508
+ switch (j) {
3509
+ case 0:
3510
+ return S.suspend(() =>
3511
+ S.Struct({
3512
+ auditId: S.String.pipe(T.Label()),
3513
+ requestId: S.String.pipe(T.Label()),
3514
+ auditorFileId: S.String.pipe(T.Label()),
3515
+ email: S.String,
3516
+ }).pipe(
3517
+ T.Http({
3518
+ method: "DELETE",
3519
+ uri: "/audits/{auditId}/information-requests/{requestId}/auditor-files/{auditorFileId}",
3520
+ code: 200,
3521
+ }),
3522
+ ),
3523
+ ).annotate({ identifier: "DeleteInformationRequestAuditorFileRequest" });
3524
+ }
3525
+ }
3526
+ function __c10(j: number): any {
3527
+ switch (j) {
3528
+ case 0:
3529
+ return S.suspend(() =>
3530
+ S.Struct({
3531
+ sourceAuditId: S.String,
3532
+ displayName: S.String,
3533
+ auditStartDate: S.String,
3534
+ auditEndDate: S.String,
3535
+ earlyAccessStartsAt: S.String,
3536
+ allowAuditorEmails: __S(1664, __c52, 0),
3537
+ }).pipe(T.Http({ method: "POST", uri: "/audits/duplicate", code: 200 })),
3538
+ ).annotate({ identifier: "DuplicateRequest" });
3539
+ }
3540
+ }
3541
+ function __c11(j: number): any {
3542
+ switch (j) {
3543
+ case 0:
3544
+ return S.Array(S.String);
3545
+ }
3546
+ }
3547
+ function __c12(j: number): any {
3548
+ switch (j) {
3549
+ case 0:
3550
+ return S.suspend(() =>
3551
+ S.Struct({
3552
+ requestsSharedWithCustomer: S.NullOr(S.String),
3553
+ }),
3554
+ ).annotate({ identifier: "AuditAuditorRequestListMetadata" });
3555
+ case 1:
3556
+ return S.suspend(() =>
3557
+ S.Struct({
3558
+ displayName: S.String,
3559
+ }),
3560
+ ).annotate({ identifier: "AuditSegmentFramework" });
3561
+ case 2:
3562
+ return S.suspend(() =>
3563
+ S.Struct({
3564
+ id: S.String,
3115
3565
  displayName: S.String,
3116
3566
  }),
3117
3567
  ).annotate({ identifier: "AuditSegmentAssociation" });
@@ -3119,7 +3569,7 @@ function __c7(j: number): any {
3119
3569
  return S.suspend(() =>
3120
3570
  S.Struct({
3121
3571
  reportType: S.String,
3122
- tscs: __S(192, __c6, 0),
3572
+ tscs: __S(352, __c11, 0),
3123
3573
  }),
3124
3574
  ).annotate({ identifier: "AuditSoc2Deliverable" });
3125
3575
  case 4:
@@ -3128,14 +3578,14 @@ function __c7(j: number): any {
3128
3578
  id: S.String,
3129
3579
  kind: S.String,
3130
3580
  displayName: S.String,
3131
- framework: __S(225, __c7, 1),
3132
- businessUnit: S.NullOr(__S(226, __c7, 2)),
3133
- system: S.NullOr(__S(226, __c7, 2)),
3134
- soc2Deliverable: S.NullOr(__S(227, __c7, 3)),
3581
+ framework: __S(385, __c12, 1),
3582
+ businessUnit: S.NullOr(__S(386, __c12, 2)),
3583
+ system: S.NullOr(__S(386, __c12, 2)),
3584
+ soc2Deliverable: S.NullOr(__S(387, __c12, 3)),
3135
3585
  }),
3136
3586
  ).annotate({ identifier: "AuditSegment" });
3137
3587
  case 5:
3138
- return S.Array(__S(228, __c7, 4));
3588
+ return S.Array(__S(388, __c12, 4));
3139
3589
  case 6:
3140
3590
  return S.suspend(() =>
3141
3591
  S.Struct({
@@ -3148,7 +3598,7 @@ function __c7(j: number): any {
3148
3598
  earlyAccessStartsAt: S.NullOr(S.String),
3149
3599
  framework: S.String,
3150
3600
  displayName: S.String,
3151
- allowAuditorEmails: __S(32, __c1, 0),
3601
+ allowAuditorEmails: __S(1664, __c52, 0),
3152
3602
  allowAllAuditors: S.Boolean,
3153
3603
  deletionDate: S.NullOr(S.String),
3154
3604
  creationDate: S.String,
@@ -3157,13 +3607,13 @@ function __c7(j: number): any {
3157
3607
  auditFocus: S.String,
3158
3608
  auditView: S.String,
3159
3609
  irlGenerationStatus: S.NullOr(S.String),
3160
- auditorRequestListMetadata: S.optional(__S(224, __c7, 0)),
3161
- segments: __S(229, __c7, 5),
3610
+ auditorRequestListMetadata: S.optional(__S(384, __c12, 0)),
3611
+ segments: __S(389, __c12, 5),
3162
3612
  }),
3163
3613
  ).annotate({ identifier: "Audit" });
3164
3614
  }
3165
3615
  }
3166
- function __c8(j: number): any {
3616
+ function __c13(j: number): any {
3167
3617
  switch (j) {
3168
3618
  case 0:
3169
3619
  return S.suspend(() =>
@@ -3182,7 +3632,7 @@ function __c8(j: number): any {
3182
3632
  ).annotate({ identifier: "FlagInformationRequestEvidenceRequest" });
3183
3633
  }
3184
3634
  }
3185
- function __c9(j: number): any {
3635
+ function __c14(j: number): any {
3186
3636
  switch (j) {
3187
3637
  case 0:
3188
3638
  return S.suspend(() =>
@@ -3192,7 +3642,7 @@ function __c9(j: number): any {
3192
3642
  ).annotate({ identifier: "GetAuditRequest" });
3193
3643
  }
3194
3644
  }
3195
- function __c10(j: number): any {
3645
+ function __c15(j: number): any {
3196
3646
  switch (j) {
3197
3647
  case 0:
3198
3648
  return S.suspend(() =>
@@ -3205,17 +3655,17 @@ function __c10(j: number): any {
3205
3655
  ).annotate({ identifier: "GetAuditEvidenceRequest" });
3206
3656
  }
3207
3657
  }
3208
- function __c11(j: number): any {
3658
+ function __c16(j: number): any {
3209
3659
  switch (j) {
3210
3660
  case 0:
3211
3661
  return S.suspend(() =>
3212
3662
  S.Struct({
3213
3663
  name: S.String,
3214
- sectionNames: __S(32, __c1, 0),
3664
+ sectionNames: __S(1664, __c52, 0),
3215
3665
  }),
3216
3666
  ).annotate({ identifier: "EvidenceControl" });
3217
3667
  case 1:
3218
- return S.Array(__S(352, __c11, 0));
3668
+ return S.Array(__S(512, __c16, 0));
3219
3669
  case 2:
3220
3670
  return S.suspend(() =>
3221
3671
  S.Struct({
@@ -3229,13 +3679,13 @@ function __c11(j: number): any {
3229
3679
  testStatus: S.NullOr(S.String),
3230
3680
  evidenceType: S.String,
3231
3681
  evidenceId: S.String,
3232
- relatedControls: __S(353, __c11, 1),
3682
+ relatedControls: __S(513, __c16, 1),
3233
3683
  description: S.NullOr(S.String),
3234
3684
  }),
3235
3685
  ).annotate({ identifier: "Evidence" });
3236
3686
  }
3237
3687
  }
3238
- function __c12(j: number): any {
3688
+ function __c17(j: number): any {
3239
3689
  switch (j) {
3240
3690
  case 0:
3241
3691
  return S.suspend(() =>
@@ -3253,7 +3703,7 @@ function __c12(j: number): any {
3253
3703
  ).annotate({ identifier: "GetAuditEvidenceCommentRequest" });
3254
3704
  }
3255
3705
  }
3256
- function __c13(j: number): any {
3706
+ function __c18(j: number): any {
3257
3707
  switch (j) {
3258
3708
  case 0:
3259
3709
  return S.suspend(() =>
@@ -3271,7 +3721,7 @@ function __c13(j: number): any {
3271
3721
  ).annotate({ identifier: "GetCommentForInformationRequestRequest" });
3272
3722
  }
3273
3723
  }
3274
- function __c14(j: number): any {
3724
+ function __c19(j: number): any {
3275
3725
  switch (j) {
3276
3726
  case 0:
3277
3727
  return S.suspend(() =>
@@ -3283,21 +3733,21 @@ function __c14(j: number): any {
3283
3733
  return S.suspend(() =>
3284
3734
  S.Struct({
3285
3735
  framework: S.String,
3286
- codes: __S(32, __c1, 0),
3736
+ codes: __S(1664, __c52, 0),
3287
3737
  }),
3288
3738
  ).annotate({ identifier: "FrameworkCodesByFramework" });
3289
3739
  case 2:
3290
- return S.Array(__S(449, __c14, 1));
3740
+ return S.Array(__S(609, __c19, 1));
3291
3741
  case 3:
3292
3742
  return S.suspend(() =>
3293
3743
  S.Struct({
3294
- frameworkCodes: __S(32, __c1, 0),
3295
- codesByFramework: __S(450, __c14, 2),
3744
+ frameworkCodes: __S(1664, __c52, 0),
3745
+ codesByFramework: __S(610, __c19, 2),
3296
3746
  }),
3297
3747
  ).annotate({ identifier: "FrameworkCodes" });
3298
3748
  }
3299
3749
  }
3300
- function __c15(j: number): any {
3750
+ function __c20(j: number): any {
3301
3751
  switch (j) {
3302
3752
  case 0:
3303
3753
  return S.suspend(() =>
@@ -3314,7 +3764,7 @@ function __c15(j: number): any {
3314
3764
  ).annotate({ identifier: "GetInformationRequestRequest" });
3315
3765
  }
3316
3766
  }
3317
- function __c16(j: number): any {
3767
+ function __c21(j: number): any {
3318
3768
  switch (j) {
3319
3769
  case 0:
3320
3770
  return S.suspend(() =>
@@ -3332,7 +3782,7 @@ function __c16(j: number): any {
3332
3782
  ).annotate({ identifier: "GetInformationRequestEvidenceRequest" });
3333
3783
  }
3334
3784
  }
3335
- function __c17(j: number): any {
3785
+ function __c22(j: number): any {
3336
3786
  switch (j) {
3337
3787
  case 0:
3338
3788
  return S.suspend(() =>
@@ -3343,50 +3793,13 @@ function __c17(j: number): any {
3343
3793
  creationDate: S.String,
3344
3794
  modificationDate: S.String,
3345
3795
  deletionDate: S.optional(S.NullOr(S.String)),
3346
- capturedSegmentIds: __S(32, __c1, 0),
3796
+ capturedSegmentIds: __S(1664, __c52, 0),
3347
3797
  evidence: S.Unknown,
3348
3798
  }),
3349
3799
  ).annotate({ identifier: "InformationRequestEvidence" });
3350
3800
  }
3351
3801
  }
3352
- function __c18(j: number): any {
3353
- switch (j) {
3354
- case 0:
3355
- return S.suspend(() =>
3356
- S.Struct({
3357
- auditId: S.String.pipe(T.Label()),
3358
- auditEvidenceId: S.String.pipe(T.Label()),
3359
- text: S.String,
3360
- email: S.String,
3361
- creationDate: S.String,
3362
- }).pipe(
3363
- T.Http({
3364
- method: "POST",
3365
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments",
3366
- code: 200,
3367
- }),
3368
- ),
3369
- ).annotate({ identifier: "CreateCommentForAuditEvidenceRequest" });
3370
- }
3371
- }
3372
- function __c19(j: number): any {
3373
- switch (j) {
3374
- case 0:
3375
- return S.suspend(() =>
3376
- S.Struct({
3377
- id: S.String,
3378
- auditEvidenceId: S.String,
3379
- text: S.String,
3380
- creationDate: S.String,
3381
- modificationDate: S.NullOr(S.String),
3382
- deletionDate: S.NullOr(S.String),
3383
- email: S.NullOr(S.String),
3384
- authorName: S.NullOr(S.String),
3385
- }),
3386
- ).annotate({ identifier: "Comment" });
3387
- }
3388
- }
3389
- function __c20(j: number): any {
3802
+ function __c23(j: number): any {
3390
3803
  switch (j) {
3391
3804
  case 0:
3392
3805
  return S.suspend(() =>
@@ -3410,7 +3823,7 @@ function __c20(j: number): any {
3410
3823
  }),
3411
3824
  ).annotate({ identifier: "VantaTestSnapshotIntegration" });
3412
3825
  case 2:
3413
- return S.Array(__S(641, __c20, 1));
3826
+ return S.Array(__S(737, __c23, 1));
3414
3827
  case 3:
3415
3828
  return S.suspend(() =>
3416
3829
  S.Struct({
@@ -3422,7 +3835,7 @@ function __c20(j: number): any {
3422
3835
  return S.suspend(() =>
3423
3836
  S.Struct({
3424
3837
  id: S.String,
3425
- settings: S.NullOr(__S(643, __c20, 3)),
3838
+ settings: S.NullOr(__S(739, __c23, 3)),
3426
3839
  }),
3427
3840
  ).annotate({ identifier: "VantaTestSnapshotSlaRemediation" });
3428
3841
  case 5:
@@ -3434,7 +3847,7 @@ function __c20(j: number): any {
3434
3847
  }),
3435
3848
  ).annotate({ identifier: "VantaTestSnapshotRawTestDataRow" });
3436
3849
  case 6:
3437
- return S.Array(__S(645, __c20, 5));
3850
+ return S.Array(__S(741, __c23, 5));
3438
3851
  case 7:
3439
3852
  return S.suspend(() =>
3440
3853
  S.Struct({
@@ -3443,31 +3856,31 @@ function __c20(j: number): any {
3443
3856
  }),
3444
3857
  ).annotate({ identifier: "VantaTestSnapshotExcludedItem" });
3445
3858
  case 8:
3446
- return S.Array(__S(647, __c20, 7));
3859
+ return S.Array(__S(743, __c23, 7));
3447
3860
  case 9:
3448
3861
  return S.suspend(() =>
3449
3862
  S.Struct({
3450
3863
  reason: S.String,
3451
- entities: __S(648, __c20, 8),
3864
+ entities: __S(744, __c23, 8),
3452
3865
  }),
3453
3866
  ).annotate({ identifier: "VantaTestSnapshotExcludedItemGroup" });
3454
3867
  case 10:
3455
- return S.Array(__S(649, __c20, 9));
3868
+ return S.Array(__S(745, __c23, 9));
3456
3869
  case 11:
3457
3870
  return S.suspend(() =>
3458
3871
  S.Struct({
3459
3872
  frameworkId: S.String,
3460
3873
  frameworkName: S.String,
3461
- groupedByReason: __S(650, __c20, 10),
3874
+ groupedByReason: __S(746, __c23, 10),
3462
3875
  }),
3463
3876
  ).annotate({ identifier: "VantaTestSnapshotFrameworkExclusion" });
3464
3877
  case 12:
3465
- return S.Array(__S(651, __c20, 11));
3878
+ return S.Array(__S(747, __c23, 11));
3466
3879
  case 13:
3467
3880
  return S.suspend(() =>
3468
3881
  S.Struct({
3469
- testLevel: __S(650, __c20, 10),
3470
- frameworkLevel: __S(652, __c20, 12),
3882
+ testLevel: __S(746, __c23, 10),
3883
+ frameworkLevel: __S(748, __c23, 12),
3471
3884
  }),
3472
3885
  ).annotate({ identifier: "VantaTestSnapshotOutOfScopeResources" });
3473
3886
  case 14:
@@ -3484,7 +3897,7 @@ function __c20(j: number): any {
3484
3897
  }),
3485
3898
  ).annotate({ identifier: "VantaTestSnapshotApiRequest" });
3486
3899
  case 15:
3487
- return S.Array(__S(654, __c20, 14));
3900
+ return S.Array(__S(750, __c23, 14));
3488
3901
  case 16:
3489
3902
  return S.suspend(() =>
3490
3903
  S.Struct({
@@ -3492,16 +3905,16 @@ function __c20(j: number): any {
3492
3905
  testName: S.String,
3493
3906
  description: S.String,
3494
3907
  evaluationCriteria: S.NullOr(S.String),
3495
- integrations: __S(642, __c20, 2),
3496
- slaRemediation: S.NullOr(__S(644, __c20, 4)),
3497
- rawTestData: __S(646, __c20, 6),
3498
- outOfScopeResources: S.optional(__S(653, __c20, 13)),
3499
- apiRequests: S.optional(__S(655, __c20, 15)),
3908
+ integrations: __S(738, __c23, 2),
3909
+ slaRemediation: S.NullOr(__S(740, __c23, 4)),
3910
+ rawTestData: __S(742, __c23, 6),
3911
+ outOfScopeResources: S.optional(__S(749, __c23, 13)),
3912
+ apiRequests: S.optional(__S(751, __c23, 15)),
3500
3913
  }),
3501
3914
  ).annotate({ identifier: "VantaTestSnapshotEvidenceDetail" });
3502
3915
  }
3503
3916
  }
3504
- function __c21(j: number): any {
3917
+ function __c24(j: number): any {
3505
3918
  switch (j) {
3506
3919
  case 0:
3507
3920
  return S.suspend(() =>
@@ -3527,12 +3940,12 @@ function __c21(j: number): any {
3527
3940
  url: S.optional(S.NullOr(S.String)),
3528
3941
  mailingAddress: S.optional(S.NullOr(S.String)),
3529
3942
  telephone: S.optional(S.NullOr(S.String)),
3530
- companyLogo: S.optional(S.NullOr(__S(673, __c21, 1))),
3943
+ companyLogo: S.optional(S.NullOr(__S(769, __c24, 1))),
3531
3944
  }),
3532
3945
  ).annotate({ identifier: "AuditOrganizationInformation" });
3533
3946
  }
3534
3947
  }
3535
- function __c22(j: number): any {
3948
+ function __c25(j: number): any {
3536
3949
  switch (j) {
3537
3950
  case 0:
3538
3951
  return S.suspend(() =>
@@ -3553,20 +3966,20 @@ function __c22(j: number): any {
3553
3966
  }),
3554
3967
  ).annotate({ identifier: "AuditOrganizationNotificationSubscription" });
3555
3968
  case 2:
3556
- return S.Array(__S(705, __c22, 1));
3969
+ return S.Array(__S(801, __c25, 1));
3557
3970
  case 3:
3558
3971
  return S.suspend(() =>
3559
3972
  S.Struct({
3560
3973
  id: S.String,
3561
3974
  preferredTimeZone: S.optional(S.NullOr(S.String)),
3562
3975
  employeeDigestFrequency: S.optional(S.NullOr(S.String)),
3563
- subscribedChannelTypes: S.optional(__S(32, __c1, 0)),
3564
- externalNotifications: S.optional(__S(706, __c22, 2)),
3976
+ subscribedChannelTypes: S.optional(__S(1664, __c52, 0)),
3977
+ externalNotifications: S.optional(__S(802, __c25, 2)),
3565
3978
  }),
3566
3979
  ).annotate({ identifier: "AuditOrganizationNotifications" });
3567
3980
  }
3568
3981
  }
3569
- function __c23(j: number): any {
3982
+ function __c26(j: number): any {
3570
3983
  switch (j) {
3571
3984
  case 0:
3572
3985
  return S.suspend(() =>
@@ -3592,23 +4005,23 @@ function __c23(j: number): any {
3592
4005
  }),
3593
4006
  ).annotate({ identifier: "AccountAccessService" });
3594
4007
  case 2:
3595
- return S.Array(__S(737, __c23, 1));
4008
+ return S.Array(__S(833, __c26, 1));
3596
4009
  case 3:
3597
4010
  return S.suspend(() =>
3598
4011
  S.Struct({
3599
- data: __S(738, __c23, 2),
3600
- pageInfo: __S(768, __c24, 0),
4012
+ data: __S(834, __c26, 2),
4013
+ pageInfo: __S(864, __c27, 0),
3601
4014
  }),
3602
4015
  ).annotate({ identifier: "PaginatedResponseAccountAccessServiceResults" });
3603
4016
  case 4:
3604
4017
  return S.suspend(() =>
3605
4018
  S.Struct({
3606
- results: __S(739, __c23, 3),
4019
+ results: __S(835, __c26, 3),
3607
4020
  }),
3608
4021
  ).annotate({ identifier: "PaginatedResponseAccountAccessService" });
3609
4022
  }
3610
4023
  }
3611
- function __c24(j: number): any {
4024
+ function __c27(j: number): any {
3612
4025
  switch (j) {
3613
4026
  case 0:
3614
4027
  return S.suspend(() =>
@@ -3621,7 +4034,7 @@ function __c24(j: number): any {
3621
4034
  ).annotate({ identifier: "PageInfo" });
3622
4035
  }
3623
4036
  }
3624
- function __c25(j: number): any {
4037
+ function __c28(j: number): any {
3625
4038
  switch (j) {
3626
4039
  case 0:
3627
4040
  return S.suspend(() =>
@@ -3633,23 +4046,23 @@ function __c25(j: number): any {
3633
4046
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/comments", code: 200 })),
3634
4047
  ).annotate({ identifier: "ListAuditCommentsRequest" });
3635
4048
  case 1:
3636
- return S.Array(__S(608, __c19, 0));
4049
+ return S.Array(__S(2144, __c67, 0));
3637
4050
  case 2:
3638
4051
  return S.suspend(() =>
3639
4052
  S.Struct({
3640
- data: __S(801, __c25, 1),
3641
- pageInfo: __S(768, __c24, 0),
4053
+ data: __S(897, __c28, 1),
4054
+ pageInfo: __S(864, __c27, 0),
3642
4055
  }),
3643
4056
  ).annotate({ identifier: "PaginatedResponseCommentResults" });
3644
4057
  case 3:
3645
4058
  return S.suspend(() =>
3646
4059
  S.Struct({
3647
- results: __S(802, __c25, 2),
4060
+ results: __S(898, __c28, 2),
3648
4061
  }),
3649
4062
  ).annotate({ identifier: "PaginatedResponseComment" });
3650
4063
  }
3651
4064
  }
3652
- function __c26(j: number): any {
4065
+ function __c29(j: number): any {
3653
4066
  switch (j) {
3654
4067
  case 0:
3655
4068
  return S.suspend(() =>
@@ -3657,8 +4070,8 @@ function __c26(j: number): any {
3657
4070
  auditId: S.String.pipe(T.Label()),
3658
4071
  pageSize: S.optional(S.Number.pipe(T.Query())),
3659
4072
  pageCursor: S.optional(S.String.pipe(T.Query())),
3660
- externalIdMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
3661
- segmentIdsMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
4073
+ externalIdMatchesAny: S.optional(__S(1664, __c52, 0).pipe(T.Query())),
4074
+ segmentIdsMatchesAny: S.optional(__S(1664, __c52, 0).pipe(T.Query())),
3662
4075
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 })),
3663
4076
  ).annotate({ identifier: "ListAuditControlsRequest" });
3664
4077
  case 1:
@@ -3673,11 +4086,11 @@ function __c26(j: number): any {
3673
4086
  S.Struct({
3674
4087
  name: S.String,
3675
4088
  framework: S.String,
3676
- principle: S.NullOr(__S(833, __c26, 1)),
4089
+ principle: S.NullOr(__S(929, __c29, 1)),
3677
4090
  }),
3678
4091
  ).annotate({ identifier: "Section" });
3679
4092
  case 3:
3680
- return S.Array(__S(834, __c26, 2));
4093
+ return S.Array(__S(930, __c29, 2));
3681
4094
  case 4:
3682
4095
  return S.suspend(() =>
3683
4096
  S.Struct({
@@ -3687,7 +4100,7 @@ function __c26(j: number): any {
3687
4100
  }),
3688
4101
  ).annotate({ identifier: "AuditControlAssessment" });
3689
4102
  case 5:
3690
- return S.Array(__S(836, __c26, 4));
4103
+ return S.Array(__S(932, __c29, 4));
3691
4104
  case 6:
3692
4105
  return S.suspend(() =>
3693
4106
  S.Struct({
@@ -3696,36 +4109,36 @@ function __c26(j: number): any {
3696
4109
  name: S.String,
3697
4110
  description: S.String,
3698
4111
  source: S.String,
3699
- domains: __S(32, __c1, 0),
3700
- owner: S.NullOr(__S(1856, __c58, 0)),
4112
+ domains: __S(1664, __c52, 0),
4113
+ owner: S.NullOr(__S(64, __c2, 0)),
3701
4114
  role: S.optional(S.NullOr(S.String)),
3702
- customFields: __S(1858, __c58, 2),
4115
+ customFields: __S(66, __c2, 2),
3703
4116
  creationDate: S.NullOr(S.String),
3704
4117
  modificationDate: S.NullOr(S.String),
3705
4118
  framework: S.String,
3706
- sections: __S(835, __c26, 3),
3707
- inScopeSegmentIds: __S(32, __c1, 0),
3708
- assessments: __S(837, __c26, 5),
4119
+ sections: __S(931, __c29, 3),
4120
+ inScopeSegmentIds: __S(1664, __c52, 0),
4121
+ assessments: __S(933, __c29, 5),
3709
4122
  }),
3710
4123
  ).annotate({ identifier: "AuditorControl" });
3711
4124
  case 7:
3712
- return S.Array(__S(838, __c26, 6));
4125
+ return S.Array(__S(934, __c29, 6));
3713
4126
  case 8:
3714
4127
  return S.suspend(() =>
3715
4128
  S.Struct({
3716
- data: __S(839, __c26, 7),
3717
- pageInfo: __S(768, __c24, 0),
4129
+ data: __S(935, __c29, 7),
4130
+ pageInfo: __S(864, __c27, 0),
3718
4131
  }),
3719
4132
  ).annotate({ identifier: "PaginatedResponseAuditorControlResults" });
3720
4133
  case 9:
3721
4134
  return S.suspend(() =>
3722
4135
  S.Struct({
3723
- results: __S(840, __c26, 8),
4136
+ results: __S(936, __c29, 8),
3724
4137
  }),
3725
4138
  ).annotate({ identifier: "PaginatedResponseAuditorControl" });
3726
4139
  }
3727
4140
  }
3728
- function __c27(j: number): any {
4141
+ function __c30(j: number): any {
3729
4142
  switch (j) {
3730
4143
  case 0:
3731
4144
  return S.suspend(() =>
@@ -3737,23 +4150,23 @@ function __c27(j: number): any {
3737
4150
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence", code: 200 })),
3738
4151
  ).annotate({ identifier: "ListAuditEvidenceRequest" });
3739
4152
  case 1:
3740
- return S.Array(__S(354, __c11, 2));
4153
+ return S.Array(__S(514, __c16, 2));
3741
4154
  case 2:
3742
4155
  return S.suspend(() =>
3743
4156
  S.Struct({
3744
- data: __S(865, __c27, 1),
3745
- pageInfo: __S(768, __c24, 0),
4157
+ data: __S(961, __c30, 1),
4158
+ pageInfo: __S(864, __c27, 0),
3746
4159
  }),
3747
4160
  ).annotate({ identifier: "PaginatedResponseEvidenceResults" });
3748
4161
  case 3:
3749
4162
  return S.suspend(() =>
3750
4163
  S.Struct({
3751
- results: __S(866, __c27, 2),
4164
+ results: __S(962, __c30, 2),
3752
4165
  }),
3753
4166
  ).annotate({ identifier: "PaginatedResponseEvidence" });
3754
4167
  }
3755
4168
  }
3756
- function __c28(j: number): any {
4169
+ function __c31(j: number): any {
3757
4170
  switch (j) {
3758
4171
  case 0:
3759
4172
  return S.suspend(() =>
@@ -3781,23 +4194,23 @@ function __c28(j: number): any {
3781
4194
  }),
3782
4195
  ).annotate({ identifier: "EvidenceUrl" });
3783
4196
  case 2:
3784
- return S.Array(__S(897, __c28, 1));
4197
+ return S.Array(__S(993, __c31, 1));
3785
4198
  case 3:
3786
4199
  return S.suspend(() =>
3787
4200
  S.Struct({
3788
- data: __S(898, __c28, 2),
3789
- pageInfo: __S(768, __c24, 0),
4201
+ data: __S(994, __c31, 2),
4202
+ pageInfo: __S(864, __c27, 0),
3790
4203
  }),
3791
4204
  ).annotate({ identifier: "PaginatedResponseEvidenceUrlResults" });
3792
4205
  case 4:
3793
4206
  return S.suspend(() =>
3794
4207
  S.Struct({
3795
- results: __S(899, __c28, 3),
4208
+ results: __S(995, __c31, 3),
3796
4209
  }),
3797
4210
  ).annotate({ identifier: "PaginatedResponseEvidenceUrl" });
3798
4211
  }
3799
4212
  }
3800
- function __c29(j: number): any {
4213
+ function __c32(j: number): any {
3801
4214
  switch (j) {
3802
4215
  case 0:
3803
4216
  return S.suspend(() =>
@@ -3806,7 +4219,7 @@ function __c29(j: number): any {
3806
4219
  pageSize: S.optional(S.Number.pipe(T.Query())),
3807
4220
  pageCursor: S.optional(S.String.pipe(T.Query())),
3808
4221
  search: S.optional(S.String.pipe(T.Query())),
3809
- snapshotIdMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
4222
+ snapshotIdMatchesAny: S.optional(__S(1664, __c52, 0).pipe(T.Query())),
3810
4223
  createdAfterDate: S.optional(S.String.pipe(T.Query())),
3811
4224
  createdBeforeDate: S.optional(S.String.pipe(T.Query())),
3812
4225
  detectedAfterDate: S.optional(S.String.pipe(T.Query())),
@@ -3833,30 +4246,30 @@ function __c29(j: number): any {
3833
4246
  snapshotId: S.String,
3834
4247
  dueDate: S.optional(S.NullOr(S.String)),
3835
4248
  status: S.optional(S.String),
3836
- approvalProgress: S.optional(S.NullOr(__S(929, __c29, 1))),
4249
+ approvalProgress: S.optional(S.NullOr(__S(1025, __c32, 1))),
3837
4250
  lastModifiedAt: S.optional(S.String),
3838
4251
  createdAt: S.optional(S.String),
3839
4252
  detectedAt: S.optional(S.String),
3840
4253
  }),
3841
4254
  ).annotate({ identifier: "IssueSnapshotItem" });
3842
4255
  case 3:
3843
- return S.Array(__S(930, __c29, 2));
4256
+ return S.Array(__S(1026, __c32, 2));
3844
4257
  case 4:
3845
4258
  return S.suspend(() =>
3846
4259
  S.Struct({
3847
- data: __S(931, __c29, 3),
3848
- pageInfo: __S(768, __c24, 0),
4260
+ data: __S(1027, __c32, 3),
4261
+ pageInfo: __S(864, __c27, 0),
3849
4262
  }),
3850
4263
  ).annotate({ identifier: "PaginatedResponseIssueSnapshotItemResults" });
3851
4264
  case 5:
3852
4265
  return S.suspend(() =>
3853
4266
  S.Struct({
3854
- results: __S(932, __c29, 4),
4267
+ results: __S(1028, __c32, 4),
3855
4268
  }),
3856
4269
  ).annotate({ identifier: "PaginatedResponseIssueSnapshotItem" });
3857
4270
  }
3858
4271
  }
3859
- function __c30(j: number): any {
4272
+ function __c33(j: number): any {
3860
4273
  switch (j) {
3861
4274
  case 0:
3862
4275
  return S.suspend(() =>
@@ -3890,67 +4303,31 @@ function __c30(j: number): any {
3890
4303
  treatmentStatus: S.optional(S.NullOr(S.String)),
3891
4304
  residualRisk: S.optional(S.NullOr(S.Number)),
3892
4305
  reviewStatus: S.optional(S.NullOr(S.String)),
3893
- owner: S.optional(S.NullOr(__S(961, __c30, 1))),
3894
- categories: S.optional(__S(32, __c1, 0)),
3895
- ciaCategories: S.optional(__S(192, __c6, 0)),
3896
- linkedControlIds: S.optional(__S(32, __c1, 0)),
4306
+ owner: S.optional(S.NullOr(__S(1057, __c33, 1))),
4307
+ categories: S.optional(__S(1664, __c52, 0)),
4308
+ ciaCategories: S.optional(__S(352, __c11, 0)),
4309
+ linkedControlIds: S.optional(__S(1664, __c52, 0)),
3897
4310
  identified: S.optional(S.NullOr(S.String)),
3898
4311
  }),
3899
4312
  ).annotate({ identifier: "AuditRisk" });
3900
4313
  case 3:
3901
- return S.Array(__S(962, __c30, 2));
4314
+ return S.Array(__S(1058, __c33, 2));
3902
4315
  case 4:
3903
4316
  return S.suspend(() =>
3904
4317
  S.Struct({
3905
- data: __S(963, __c30, 3),
3906
- pageInfo: __S(768, __c24, 0),
4318
+ data: __S(1059, __c33, 3),
4319
+ pageInfo: __S(864, __c27, 0),
3907
4320
  }),
3908
4321
  ).annotate({ identifier: "PaginatedResponseAuditRiskResults" });
3909
4322
  case 5:
3910
4323
  return S.suspend(() =>
3911
4324
  S.Struct({
3912
- results: __S(964, __c30, 4),
4325
+ results: __S(1060, __c33, 4),
3913
4326
  }),
3914
4327
  ).annotate({ identifier: "PaginatedResponseAuditRisk" });
3915
4328
  }
3916
4329
  }
3917
- function __c31(j: number): any {
3918
- switch (j) {
3919
- case 0:
3920
- return S.suspend(() =>
3921
- S.Struct({
3922
- auditId: S.String.pipe(T.Label()),
3923
- controlId: S.String.pipe(T.Label()),
3924
- text: S.String,
3925
- email: S.String,
3926
- creationDate: S.String,
3927
- }).pipe(
3928
- T.Http({
3929
- method: "POST",
3930
- uri: "/audits/{auditId}/controls/{controlId}/comments",
3931
- code: 200,
3932
- }),
3933
- ),
3934
- ).annotate({ identifier: "CreateCommentForControlRequest" });
3935
- }
3936
- }
3937
- function __c32(j: number): any {
3938
- switch (j) {
3939
- case 0:
3940
- return S.suspend(() =>
3941
- S.Struct({
3942
- id: S.String,
3943
- text: S.String,
3944
- creationDate: S.String,
3945
- modificationDate: S.NullOr(S.String),
3946
- deletionDate: S.NullOr(S.String),
3947
- email: S.NullOr(S.String),
3948
- authorName: S.NullOr(S.String),
3949
- }),
3950
- ).annotate({ identifier: "AuditControlComment" });
3951
- }
3952
- }
3953
- function __c33(j: number): any {
4330
+ function __c34(j: number): any {
3954
4331
  switch (j) {
3955
4332
  case 0:
3956
4333
  return S.suspend(() =>
@@ -3962,23 +4339,23 @@ function __c33(j: number): any {
3962
4339
  }).pipe(T.Http({ method: "GET", uri: "/audits", code: 200 })),
3963
4340
  ).annotate({ identifier: "ListAuditsRequest" });
3964
4341
  case 1:
3965
- return S.Array(__S(230, __c7, 6));
4342
+ return S.Array(__S(390, __c12, 6));
3966
4343
  case 2:
3967
4344
  return S.suspend(() =>
3968
4345
  S.Struct({
3969
- data: __S(1057, __c33, 1),
3970
- pageInfo: __S(768, __c24, 0),
4346
+ data: __S(1089, __c34, 1),
4347
+ pageInfo: __S(864, __c27, 0),
3971
4348
  }),
3972
4349
  ).annotate({ identifier: "PaginatedResponseAuditResults" });
3973
4350
  case 3:
3974
4351
  return S.suspend(() =>
3975
4352
  S.Struct({
3976
- results: __S(1058, __c33, 2),
4353
+ results: __S(1090, __c34, 2),
3977
4354
  }),
3978
4355
  ).annotate({ identifier: "PaginatedResponseAudit" });
3979
4356
  }
3980
4357
  }
3981
- function __c34(j: number): any {
4358
+ function __c35(j: number): any {
3982
4359
  switch (j) {
3983
4360
  case 0:
3984
4361
  return S.suspend(() =>
@@ -3999,23 +4376,23 @@ function __c34(j: number): any {
3999
4376
  }),
4000
4377
  ).annotate({ identifier: "IssueSnapshotMetadata" });
4001
4378
  case 2:
4002
- return S.Array(__S(1089, __c34, 1));
4379
+ return S.Array(__S(1121, __c35, 1));
4003
4380
  case 3:
4004
4381
  return S.suspend(() =>
4005
4382
  S.Struct({
4006
- data: __S(1090, __c34, 2),
4007
- pageInfo: __S(768, __c24, 0),
4383
+ data: __S(1122, __c35, 2),
4384
+ pageInfo: __S(864, __c27, 0),
4008
4385
  }),
4009
4386
  ).annotate({ identifier: "PaginatedResponseIssueSnapshotMetadataResults" });
4010
4387
  case 4:
4011
4388
  return S.suspend(() =>
4012
4389
  S.Struct({
4013
- results: __S(1091, __c34, 3),
4390
+ results: __S(1123, __c35, 3),
4014
4391
  }),
4015
4392
  ).annotate({ identifier: "PaginatedResponseIssueSnapshotMetadata" });
4016
4393
  }
4017
4394
  }
4018
- function __c35(j: number): any {
4395
+ function __c36(j: number): any {
4019
4396
  switch (j) {
4020
4397
  case 0:
4021
4398
  return S.suspend(() =>
@@ -4024,7 +4401,7 @@ function __c35(j: number): any {
4024
4401
  pageSize: S.optional(S.Number.pipe(T.Query())),
4025
4402
  pageCursor: S.optional(S.String.pipe(T.Query())),
4026
4403
  search: S.optional(S.String.pipe(T.Query())),
4027
- sourcesMatchesAny: S.optional(__S(192, __c6, 0).pipe(T.Query())),
4404
+ sourcesMatchesAny: S.optional(__S(352, __c11, 0).pipe(T.Query())),
4028
4405
  closedAfterDate: S.optional(S.String.pipe(T.Query())),
4029
4406
  closedBeforeDate: S.optional(S.String.pipe(T.Query())),
4030
4407
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/assets/code-changes", code: 200 })),
@@ -4034,7 +4411,7 @@ function __c35(j: number): any {
4034
4411
  S.Struct({
4035
4412
  id: S.String,
4036
4413
  codeChange: S.String,
4037
- segmentIds: S.optional(__S(32, __c1, 0)),
4414
+ segmentIds: S.optional(__S(1664, __c52, 0)),
4038
4415
  identifier: S.optional(S.String),
4039
4416
  service: S.optional(S.String),
4040
4417
  repository: S.optional(S.String),
@@ -4043,23 +4420,23 @@ function __c35(j: number): any {
4043
4420
  }),
4044
4421
  ).annotate({ identifier: "CodeChange" });
4045
4422
  case 2:
4046
- return S.Array(__S(1121, __c35, 1));
4423
+ return S.Array(__S(1153, __c36, 1));
4047
4424
  case 3:
4048
4425
  return S.suspend(() =>
4049
4426
  S.Struct({
4050
- data: __S(1122, __c35, 2),
4051
- pageInfo: __S(768, __c24, 0),
4427
+ data: __S(1154, __c36, 2),
4428
+ pageInfo: __S(864, __c27, 0),
4052
4429
  }),
4053
4430
  ).annotate({ identifier: "PaginatedResponseCodeChangeResults" });
4054
4431
  case 4:
4055
4432
  return S.suspend(() =>
4056
4433
  S.Struct({
4057
- results: __S(1123, __c35, 3),
4434
+ results: __S(1155, __c36, 3),
4058
4435
  }),
4059
4436
  ).annotate({ identifier: "PaginatedResponseCodeChange" });
4060
4437
  }
4061
4438
  }
4062
- function __c36(j: number): any {
4439
+ function __c37(j: number): any {
4063
4440
  switch (j) {
4064
4441
  case 0:
4065
4442
  return S.suspend(() =>
@@ -4079,26 +4456,26 @@ function __c36(j: number): any {
4079
4456
  ).annotate({ identifier: "ListCommentsForControlRequest" });
4080
4457
  }
4081
4458
  }
4082
- function __c37(j: number): any {
4459
+ function __c38(j: number): any {
4083
4460
  switch (j) {
4084
4461
  case 0:
4085
- return S.Array(__S(1024, __c32, 0));
4462
+ return S.Array(__S(2208, __c69, 0));
4086
4463
  case 1:
4087
4464
  return S.suspend(() =>
4088
4465
  S.Struct({
4089
- data: __S(1184, __c37, 0),
4090
- pageInfo: __S(768, __c24, 0),
4466
+ data: __S(1216, __c38, 0),
4467
+ pageInfo: __S(864, __c27, 0),
4091
4468
  }),
4092
4469
  ).annotate({ identifier: "PaginatedResponseAuditControlCommentResults" });
4093
4470
  case 2:
4094
4471
  return S.suspend(() =>
4095
4472
  S.Struct({
4096
- results: __S(1185, __c37, 1),
4473
+ results: __S(1217, __c38, 1),
4097
4474
  }),
4098
4475
  ).annotate({ identifier: "PaginatedResponseAuditControlComment" });
4099
4476
  }
4100
4477
  }
4101
- function __c38(j: number): any {
4478
+ function __c39(j: number): any {
4102
4479
  switch (j) {
4103
4480
  case 0:
4104
4481
  return S.suspend(() =>
@@ -4118,7 +4495,7 @@ function __c38(j: number): any {
4118
4495
  ).annotate({ identifier: "ListCommentsForInformationRequestRequest" });
4119
4496
  }
4120
4497
  }
4121
- function __c39(j: number): any {
4498
+ function __c40(j: number): any {
4122
4499
  switch (j) {
4123
4500
  case 0:
4124
4501
  return S.suspend(() =>
@@ -4152,23 +4529,75 @@ function __c39(j: number): any {
4152
4529
  }),
4153
4530
  ).annotate({ identifier: "InformationRequestActivityLog" });
4154
4531
  case 2:
4155
- return S.Array(__S(1249, __c39, 1));
4532
+ return S.Array(__S(1281, __c40, 1));
4156
4533
  case 3:
4157
4534
  return S.suspend(() =>
4158
4535
  S.Struct({
4159
- data: __S(1250, __c39, 2),
4160
- pageInfo: __S(768, __c24, 0),
4536
+ data: __S(1282, __c40, 2),
4537
+ pageInfo: __S(864, __c27, 0),
4161
4538
  }),
4162
4539
  ).annotate({ identifier: "PaginatedResponseInformationRequestActivityLogResults" });
4163
4540
  case 4:
4164
4541
  return S.suspend(() =>
4165
4542
  S.Struct({
4166
- results: __S(1251, __c39, 3),
4543
+ results: __S(1283, __c40, 3),
4167
4544
  }),
4168
4545
  ).annotate({ identifier: "PaginatedResponseInformationRequestActivityLog" });
4169
4546
  }
4170
4547
  }
4171
- function __c40(j: number): any {
4548
+ function __c41(j: number): any {
4549
+ switch (j) {
4550
+ case 0:
4551
+ return S.suspend(() =>
4552
+ S.Struct({
4553
+ email: S.String,
4554
+ name: S.String,
4555
+ }),
4556
+ ).annotate({ identifier: "VantaDocumentEvidenceAddedBy" });
4557
+ case 1:
4558
+ return S.suspend(() =>
4559
+ S.Struct({
4560
+ auditId: S.String.pipe(T.Label()),
4561
+ requestId: S.String.pipe(T.Label()),
4562
+ pageSize: S.optional(S.Number.pipe(T.Query())),
4563
+ pageCursor: S.optional(S.String.pipe(T.Query())),
4564
+ }).pipe(
4565
+ T.Http({
4566
+ method: "GET",
4567
+ uri: "/audits/{auditId}/information-requests/{requestId}/auditor-files",
4568
+ code: 200,
4569
+ }),
4570
+ ),
4571
+ ).annotate({ identifier: "ListInformationRequestAuditorFilesRequest" });
4572
+ case 2:
4573
+ return S.suspend(() =>
4574
+ S.Struct({
4575
+ id: S.String,
4576
+ filename: S.String,
4577
+ mimeType: S.String,
4578
+ url: S.String,
4579
+ uploadedBy: S.NullOr(__S(1312, __c41, 0)),
4580
+ uploadedDate: S.String,
4581
+ }),
4582
+ ).annotate({ identifier: "InformationRequestAuditorFile" });
4583
+ case 3:
4584
+ return S.Array(__S(1314, __c41, 2));
4585
+ case 4:
4586
+ return S.suspend(() =>
4587
+ S.Struct({
4588
+ data: __S(1315, __c41, 3),
4589
+ pageInfo: __S(864, __c27, 0),
4590
+ }),
4591
+ ).annotate({ identifier: "PaginatedResponseInformationRequestAuditorFileResults" });
4592
+ case 5:
4593
+ return S.suspend(() =>
4594
+ S.Struct({
4595
+ results: __S(1316, __c41, 4),
4596
+ }),
4597
+ ).annotate({ identifier: "PaginatedResponseInformationRequestAuditorFile" });
4598
+ }
4599
+ }
4600
+ function __c42(j: number): any {
4172
4601
  switch (j) {
4173
4602
  case 0:
4174
4603
  return S.suspend(() =>
@@ -4178,7 +4607,7 @@ function __c40(j: number): any {
4178
4607
  pageSize: S.optional(S.Number.pipe(T.Query())),
4179
4608
  pageCursor: S.optional(S.String.pipe(T.Query())),
4180
4609
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
4181
- evidenceTypeMatchesAny: S.optional(__S(192, __c6, 0).pipe(T.Query())),
4610
+ evidenceTypeMatchesAny: S.optional(__S(352, __c11, 0).pipe(T.Query())),
4182
4611
  }).pipe(
4183
4612
  T.Http({
4184
4613
  method: "GET",
@@ -4188,23 +4617,23 @@ function __c40(j: number): any {
4188
4617
  ),
4189
4618
  ).annotate({ identifier: "ListInformationRequestEvidenceRequest" });
4190
4619
  case 1:
4191
- return S.Array(__S(544, __c17, 0));
4620
+ return S.Array(__S(704, __c22, 0));
4192
4621
  case 2:
4193
4622
  return S.suspend(() =>
4194
4623
  S.Struct({
4195
- data: __S(1281, __c40, 1),
4196
- pageInfo: __S(768, __c24, 0),
4624
+ data: __S(1345, __c42, 1),
4625
+ pageInfo: __S(864, __c27, 0),
4197
4626
  }),
4198
4627
  ).annotate({ identifier: "PaginatedResponseInformationRequestEvidenceResults" });
4199
4628
  case 3:
4200
4629
  return S.suspend(() =>
4201
4630
  S.Struct({
4202
- results: __S(1282, __c40, 2),
4631
+ results: __S(1346, __c42, 2),
4203
4632
  }),
4204
4633
  ).annotate({ identifier: "PaginatedResponseInformationRequestEvidence" });
4205
4634
  }
4206
4635
  }
4207
- function __c41(j: number): any {
4636
+ function __c43(j: number): any {
4208
4637
  switch (j) {
4209
4638
  case 0:
4210
4639
  return S.suspend(() =>
@@ -4213,33 +4642,33 @@ function __c41(j: number): any {
4213
4642
  pageSize: S.optional(S.Number.pipe(T.Query())),
4214
4643
  pageCursor: S.optional(S.String.pipe(T.Query())),
4215
4644
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
4216
- segmentIdsMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
4645
+ segmentIdsMatchesAny: S.optional(__S(1664, __c52, 0).pipe(T.Query())),
4217
4646
  }).pipe(
4218
4647
  T.Http({ method: "GET", uri: "/audits/{auditId}/information-requests", code: 200 }),
4219
4648
  ),
4220
4649
  ).annotate({ identifier: "ListInformationRequestsRequest" });
4221
4650
  }
4222
4651
  }
4223
- function __c42(j: number): any {
4652
+ function __c44(j: number): any {
4224
4653
  switch (j) {
4225
4654
  case 0:
4226
- return S.Array(__S(64, __c2, 0));
4655
+ return S.Array(__S(1696, __c53, 0));
4227
4656
  case 1:
4228
4657
  return S.suspend(() =>
4229
4658
  S.Struct({
4230
- data: __S(1344, __c42, 0),
4231
- pageInfo: __S(768, __c24, 0),
4659
+ data: __S(1408, __c44, 0),
4660
+ pageInfo: __S(864, __c27, 0),
4232
4661
  }),
4233
4662
  ).annotate({ identifier: "PaginatedResponseInformationRequestResults" });
4234
4663
  case 2:
4235
4664
  return S.suspend(() =>
4236
4665
  S.Struct({
4237
- results: __S(1345, __c42, 1),
4666
+ results: __S(1409, __c44, 1),
4238
4667
  }),
4239
4668
  ).annotate({ identifier: "PaginatedResponseInformationRequest" });
4240
4669
  }
4241
4670
  }
4242
- function __c43(j: number): any {
4671
+ function __c45(j: number): any {
4243
4672
  switch (j) {
4244
4673
  case 0:
4245
4674
  return S.suspend(() =>
@@ -4258,7 +4687,51 @@ function __c43(j: number): any {
4258
4687
  ).annotate({ identifier: "ListInformationRequestsForControlRequest" });
4259
4688
  }
4260
4689
  }
4261
- function __c44(j: number): any {
4690
+ function __c46(j: number): any {
4691
+ switch (j) {
4692
+ case 0:
4693
+ return S.suspend(() =>
4694
+ S.Struct({
4695
+ auditId: S.String.pipe(T.Label()),
4696
+ requestId: S.String.pipe(T.Label()),
4697
+ evidenceId: S.String.pipe(T.Label()),
4698
+ pageSize: S.optional(S.Number.pipe(T.Query())),
4699
+ pageCursor: S.optional(S.String.pipe(T.Query())),
4700
+ }).pipe(
4701
+ T.Http({
4702
+ method: "GET",
4703
+ uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data",
4704
+ code: 200,
4705
+ }),
4706
+ ),
4707
+ ).annotate({ identifier: "ListInformationRequestTestSnapshotRawDataRequest" });
4708
+ case 1:
4709
+ return S.suspend(() =>
4710
+ S.Struct({
4711
+ resourceId: S.NullOr(S.String),
4712
+ resourceType: S.NullOr(S.String),
4713
+ rawJson: S.Unknown,
4714
+ dataTooLarge: S.Boolean,
4715
+ }),
4716
+ ).annotate({ identifier: "VantaTestSnapshotRawTestDataPageRow" });
4717
+ case 2:
4718
+ return S.Array(__S(1473, __c46, 1));
4719
+ case 3:
4720
+ return S.suspend(() =>
4721
+ S.Struct({
4722
+ data: __S(1474, __c46, 2),
4723
+ pageInfo: __S(864, __c27, 0),
4724
+ }),
4725
+ ).annotate({ identifier: "PaginatedResponseVantaTestSnapshotRawTestDataPageRowResults" });
4726
+ case 4:
4727
+ return S.suspend(() =>
4728
+ S.Struct({
4729
+ results: __S(1475, __c46, 3),
4730
+ }),
4731
+ ).annotate({ identifier: "PaginatedResponseVantaTestSnapshotRawTestDataPageRow" });
4732
+ }
4733
+ }
4734
+ function __c47(j: number): any {
4262
4735
  switch (j) {
4263
4736
  case 0:
4264
4737
  return S.suspend(() =>
@@ -4267,8 +4740,8 @@ function __c44(j: number): any {
4267
4740
  pageSize: S.optional(S.Number.pipe(T.Query())),
4268
4741
  pageCursor: S.optional(S.String.pipe(T.Query())),
4269
4742
  search: S.optional(S.String.pipe(T.Query())),
4270
- tagsMatchesAny: S.optional(__S(192, __c6, 0).pipe(T.Query())),
4271
- categoriesMatchesAny: S.optional(__S(192, __c6, 0).pipe(T.Query())),
4743
+ tagsMatchesAny: S.optional(__S(352, __c11, 0).pipe(T.Query())),
4744
+ categoriesMatchesAny: S.optional(__S(352, __c11, 0).pipe(T.Query())),
4272
4745
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/integrations", code: 200 })),
4273
4746
  ).annotate({ identifier: "ListIntegrationsRequest" });
4274
4747
  case 1:
@@ -4276,49 +4749,29 @@ function __c44(j: number): any {
4276
4749
  S.Struct({
4277
4750
  id: S.String,
4278
4751
  name: S.String,
4279
- segmentIds: S.optional(__S(32, __c1, 0)),
4280
- tags: S.optional(__S(32, __c1, 0)),
4281
- categories: S.optional(__S(32, __c1, 0)),
4752
+ segmentIds: S.optional(__S(1664, __c52, 0)),
4753
+ tags: S.optional(__S(1664, __c52, 0)),
4754
+ categories: S.optional(__S(1664, __c52, 0)),
4282
4755
  }),
4283
4756
  ).annotate({ identifier: "AuditIntegration" });
4284
4757
  case 2:
4285
- return S.Array(__S(1409, __c44, 1));
4758
+ return S.Array(__S(1505, __c47, 1));
4286
4759
  case 3:
4287
4760
  return S.suspend(() =>
4288
4761
  S.Struct({
4289
- data: __S(1410, __c44, 2),
4290
- pageInfo: __S(768, __c24, 0),
4762
+ data: __S(1506, __c47, 2),
4763
+ pageInfo: __S(864, __c27, 0),
4291
4764
  }),
4292
4765
  ).annotate({ identifier: "PaginatedResponseAuditIntegrationResults" });
4293
4766
  case 4:
4294
4767
  return S.suspend(() =>
4295
4768
  S.Struct({
4296
- results: __S(1411, __c44, 3),
4769
+ results: __S(1507, __c47, 3),
4297
4770
  }),
4298
4771
  ).annotate({ identifier: "PaginatedResponseAuditIntegration" });
4299
4772
  }
4300
4773
  }
4301
- function __c45(j: number): any {
4302
- switch (j) {
4303
- case 0:
4304
- return S.suspend(() =>
4305
- S.Struct({
4306
- auditId: S.String.pipe(T.Label()),
4307
- requestId: S.String.pipe(T.Label()),
4308
- text: S.String,
4309
- email: S.String,
4310
- creationDate: S.String,
4311
- }).pipe(
4312
- T.Http({
4313
- method: "POST",
4314
- uri: "/audits/{auditId}/information-requests/{requestId}/comments",
4315
- code: 200,
4316
- }),
4317
- ),
4318
- ).annotate({ identifier: "CreateCommentForInformationRequestRequest" });
4319
- }
4320
- }
4321
- function __c46(j: number): any {
4774
+ function __c48(j: number): any {
4322
4775
  switch (j) {
4323
4776
  case 0:
4324
4777
  return S.suspend(() =>
@@ -4342,9 +4795,9 @@ function __c46(j: number): any {
4342
4795
  S.Struct({
4343
4796
  id: S.String,
4344
4797
  accountName: S.String,
4345
- segmentIds: S.optional(__S(32, __c1, 0)),
4798
+ segmentIds: S.optional(__S(1664, __c52, 0)),
4346
4799
  owner: S.optional(S.NullOr(S.String)),
4347
- role: S.optional(__S(32, __c1, 0)),
4800
+ role: S.optional(__S(1664, __c52, 0)),
4348
4801
  status: S.optional(S.String),
4349
4802
  mfa: S.optional(S.NullOr(S.Boolean)),
4350
4803
  createdDate: S.optional(S.NullOr(S.String)),
@@ -4352,23 +4805,23 @@ function __c46(j: number): any {
4352
4805
  }),
4353
4806
  ).annotate({ identifier: "AccountAccess" });
4354
4807
  case 2:
4355
- return S.Array(__S(1473, __c46, 1));
4808
+ return S.Array(__S(1537, __c48, 1));
4356
4809
  case 3:
4357
4810
  return S.suspend(() =>
4358
4811
  S.Struct({
4359
- data: __S(1474, __c46, 2),
4360
- pageInfo: __S(768, __c24, 0),
4812
+ data: __S(1538, __c48, 2),
4813
+ pageInfo: __S(864, __c27, 0),
4361
4814
  }),
4362
4815
  ).annotate({ identifier: "PaginatedResponseAccountAccessResults" });
4363
4816
  case 4:
4364
4817
  return S.suspend(() =>
4365
4818
  S.Struct({
4366
- results: __S(1475, __c46, 3),
4819
+ results: __S(1539, __c48, 3),
4367
4820
  }),
4368
4821
  ).annotate({ identifier: "PaginatedResponseAccountAccess" });
4369
4822
  }
4370
4823
  }
4371
- function __c47(j: number): any {
4824
+ function __c49(j: number): any {
4372
4825
  switch (j) {
4373
4826
  case 0:
4374
4827
  return S.suspend(() =>
@@ -4377,7 +4830,7 @@ function __c47(j: number): any {
4377
4830
  pageSize: S.optional(S.Number.pipe(T.Query())),
4378
4831
  pageCursor: S.optional(S.String.pipe(T.Query())),
4379
4832
  search: S.optional(S.String.pipe(T.Query())),
4380
- sourcesMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
4833
+ sourcesMatchesAny: S.optional(__S(1664, __c52, 0).pipe(T.Query())),
4381
4834
  orderBy: S.optional(S.String.pipe(T.Query())),
4382
4835
  orderDirection: S.optional(S.String.pipe(T.Query())),
4383
4836
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/groups", code: 200 })),
@@ -4387,32 +4840,32 @@ function __c47(j: number): any {
4387
4840
  S.Struct({
4388
4841
  id: S.String,
4389
4842
  name: S.String,
4390
- segmentIds: S.optional(__S(32, __c1, 0)),
4843
+ segmentIds: S.optional(__S(1664, __c52, 0)),
4391
4844
  members: S.optional(S.Number),
4392
4845
  source: S.optional(S.String),
4393
- tasks: S.optional(__S(1537, __c48, 1)),
4846
+ tasks: S.optional(__S(1601, __c50, 1)),
4394
4847
  tasksLastUpdated: S.optional(S.NullOr(S.String)),
4395
4848
  pointOfContact: S.optional(S.NullOr(S.String)),
4396
4849
  }),
4397
4850
  ).annotate({ identifier: "PersonnelGroup" });
4398
4851
  case 2:
4399
- return S.Array(__S(1505, __c47, 1));
4852
+ return S.Array(__S(1569, __c49, 1));
4400
4853
  case 3:
4401
4854
  return S.suspend(() =>
4402
4855
  S.Struct({
4403
- data: __S(1506, __c47, 2),
4404
- pageInfo: __S(768, __c24, 0),
4856
+ data: __S(1570, __c49, 2),
4857
+ pageInfo: __S(864, __c27, 0),
4405
4858
  }),
4406
4859
  ).annotate({ identifier: "PaginatedResponsePersonnelGroupResults" });
4407
4860
  case 4:
4408
4861
  return S.suspend(() =>
4409
4862
  S.Struct({
4410
- results: __S(1507, __c47, 3),
4863
+ results: __S(1571, __c49, 3),
4411
4864
  }),
4412
4865
  ).annotate({ identifier: "PaginatedResponsePersonnelGroup" });
4413
4866
  }
4414
4867
  }
4415
- function __c48(j: number): any {
4868
+ function __c50(j: number): any {
4416
4869
  switch (j) {
4417
4870
  case 0:
4418
4871
  return S.suspend(() =>
@@ -4421,10 +4874,61 @@ function __c48(j: number): any {
4421
4874
  }),
4422
4875
  ).annotate({ identifier: "PersonnelGroupTask" });
4423
4876
  case 1:
4424
- return S.Array(__S(1536, __c48, 0));
4877
+ return S.Array(__S(1600, __c50, 0));
4425
4878
  }
4426
4879
  }
4427
- function __c49(j: number): any {
4880
+ function __c51(j: number): any {
4881
+ switch (j) {
4882
+ case 0:
4883
+ return S.suspend(() =>
4884
+ S.Struct({
4885
+ auditId: S.String.pipe(T.Label()),
4886
+ requestId: S.String.pipe(T.Label()),
4887
+ auditorEmail: S.String,
4888
+ }).pipe(
4889
+ T.Http({
4890
+ method: "POST",
4891
+ uri: "/audits/{auditId}/information-requests/{requestId}/accept-evidence",
4892
+ code: 200,
4893
+ }),
4894
+ ),
4895
+ ).annotate({ identifier: "AcceptInformationRequestEvidenceRequest" });
4896
+ }
4897
+ }
4898
+ function __c52(j: number): any {
4899
+ switch (j) {
4900
+ case 0:
4901
+ return S.Array(S.String);
4902
+ }
4903
+ }
4904
+ function __c53(j: number): any {
4905
+ switch (j) {
4906
+ case 0:
4907
+ return S.suspend(() =>
4908
+ S.Struct({
4909
+ id: S.String,
4910
+ uniqueId: S.String,
4911
+ additionalControlIds: __S(1664, __c52, 0),
4912
+ linkedControlIds: __S(1664, __c52, 0),
4913
+ approvalStatus: S.String,
4914
+ cadence: S.NullOr(S.String),
4915
+ frameworkCodes: __S(1664, __c52, 0),
4916
+ segmentIds: __S(1664, __c52, 0),
4917
+ description: S.NullOr(S.String),
4918
+ dueDate: S.NullOr(S.String),
4919
+ evidenceCaptureDate: S.NullOr(S.String),
4920
+ requestId: S.NullOr(S.String),
4921
+ requestType: S.String,
4922
+ title: S.String,
4923
+ creationDate: S.String,
4924
+ modificationDate: S.String,
4925
+ deletionDate: S.NullOr(S.String),
4926
+ ownerAssignment: S.NullOr(S.Unknown),
4927
+ }),
4928
+ ).annotate({ identifier: "InformationRequest" });
4929
+ }
4930
+ }
4931
+ function __c54(j: number): any {
4428
4932
  switch (j) {
4429
4933
  case 0:
4430
4934
  return S.suspend(() =>
@@ -4434,7 +4938,7 @@ function __c49(j: number): any {
4434
4938
  pageCursor: S.optional(S.String.pipe(T.Query())),
4435
4939
  search: S.optional(S.String.pipe(T.Query())),
4436
4940
  status: S.optional(S.String.pipe(T.Query())),
4437
- groupsMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
4941
+ groupsMatchesAny: S.optional(__S(1664, __c52, 0).pipe(T.Query())),
4438
4942
  orderBy: S.optional(S.String.pipe(T.Query())),
4439
4943
  orderDirection: S.optional(S.String.pipe(T.Query())),
4440
4944
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/people", code: 200 })),
@@ -4471,41 +4975,41 @@ function __c49(j: number): any {
4471
4975
  id: S.String,
4472
4976
  name: S.String,
4473
4977
  email: S.String,
4474
- segmentIds: S.optional(__S(32, __c1, 0)),
4978
+ segmentIds: S.optional(__S(1664, __c52, 0)),
4475
4979
  jobTitle: S.optional(S.NullOr(S.String)),
4476
4980
  employmentStatus: S.optional(S.NullOr(S.String)),
4477
4981
  startDate: S.optional(S.NullOr(S.String)),
4478
4982
  endDate: S.optional(S.NullOr(S.String)),
4479
- groups: S.optional(__S(1537, __c48, 1)),
4480
- source: S.optional(S.NullOr(__S(1569, __c49, 1))),
4481
- taskStatus: S.optional(S.NullOr(__S(1570, __c49, 2))),
4983
+ groups: S.optional(__S(1601, __c50, 1)),
4984
+ source: S.optional(S.NullOr(__S(1729, __c54, 1))),
4985
+ taskStatus: S.optional(S.NullOr(__S(1730, __c54, 2))),
4482
4986
  lastReminded: S.optional(S.NullOr(S.String)),
4483
- policies: S.optional(S.NullOr(__S(1571, __c49, 3))),
4484
- trainings: S.optional(S.NullOr(__S(1571, __c49, 3))),
4485
- backgroundChecks: S.optional(S.NullOr(__S(1571, __c49, 3))),
4486
- deviceMonitoring: S.optional(S.NullOr(__S(1571, __c49, 3))),
4487
- customOnboarding: S.optional(S.NullOr(__S(1571, __c49, 3))),
4488
- customOffboarding: S.optional(S.NullOr(__S(1571, __c49, 3))),
4987
+ policies: S.optional(S.NullOr(__S(1731, __c54, 3))),
4988
+ trainings: S.optional(S.NullOr(__S(1731, __c54, 3))),
4989
+ backgroundChecks: S.optional(S.NullOr(__S(1731, __c54, 3))),
4990
+ deviceMonitoring: S.optional(S.NullOr(__S(1731, __c54, 3))),
4991
+ customOnboarding: S.optional(S.NullOr(__S(1731, __c54, 3))),
4992
+ customOffboarding: S.optional(S.NullOr(__S(1731, __c54, 3))),
4489
4993
  }),
4490
4994
  ).annotate({ identifier: "PersonnelPerson" });
4491
4995
  case 5:
4492
- return S.Array(__S(1572, __c49, 4));
4996
+ return S.Array(__S(1732, __c54, 4));
4493
4997
  case 6:
4494
4998
  return S.suspend(() =>
4495
4999
  S.Struct({
4496
- data: __S(1573, __c49, 5),
4497
- pageInfo: __S(768, __c24, 0),
5000
+ data: __S(1733, __c54, 5),
5001
+ pageInfo: __S(864, __c27, 0),
4498
5002
  }),
4499
5003
  ).annotate({ identifier: "PaginatedResponsePersonnelPersonResults" });
4500
5004
  case 7:
4501
5005
  return S.suspend(() =>
4502
5006
  S.Struct({
4503
- results: __S(1574, __c49, 6),
5007
+ results: __S(1734, __c54, 6),
4504
5008
  }),
4505
5009
  ).annotate({ identifier: "PaginatedResponsePersonnelPerson" });
4506
5010
  }
4507
5011
  }
4508
- function __c50(j: number): any {
5012
+ function __c55(j: number): any {
4509
5013
  switch (j) {
4510
5014
  case 0:
4511
5015
  return S.suspend(() =>
@@ -4523,23 +5027,23 @@ function __c50(j: number): any {
4523
5027
  }),
4524
5028
  ).annotate({ identifier: "RiskSnapshot" });
4525
5029
  case 2:
4526
- return S.Array(__S(1601, __c50, 1));
5030
+ return S.Array(__S(1761, __c55, 1));
4527
5031
  case 3:
4528
5032
  return S.suspend(() =>
4529
5033
  S.Struct({
4530
- data: __S(1602, __c50, 2),
4531
- pageInfo: __S(768, __c24, 0),
5034
+ data: __S(1762, __c55, 2),
5035
+ pageInfo: __S(864, __c27, 0),
4532
5036
  }),
4533
5037
  ).annotate({ identifier: "PaginatedResponseRiskSnapshotResults" });
4534
5038
  case 4:
4535
5039
  return S.suspend(() =>
4536
5040
  S.Struct({
4537
- results: __S(1603, __c50, 3),
5041
+ results: __S(1763, __c55, 3),
4538
5042
  }),
4539
5043
  ).annotate({ identifier: "PaginatedResponseRiskSnapshot" });
4540
5044
  }
4541
5045
  }
4542
- function __c51(j: number): any {
5046
+ function __c56(j: number): any {
4543
5047
  switch (j) {
4544
5048
  case 0:
4545
5049
  return S.suspend(() =>
@@ -4555,7 +5059,7 @@ function __c51(j: number): any {
4555
5059
  ).annotate({ identifier: "ListShareInformationRequestRequest" });
4556
5060
  }
4557
5061
  }
4558
- function __c52(j: number): any {
5062
+ function __c57(j: number): any {
4559
5063
  switch (j) {
4560
5064
  case 0:
4561
5065
  return S.suspend(() =>
@@ -4564,8 +5068,8 @@ function __c52(j: number): any {
4564
5068
  pageSize: S.optional(S.Number.pipe(T.Query())),
4565
5069
  pageCursor: S.optional(S.String.pipe(T.Query())),
4566
5070
  search: S.optional(S.String.pipe(T.Query())),
4567
- vendorStatusesMatchesAny: S.optional(__S(192, __c6, 0).pipe(T.Query())),
4568
- inherentRiskMatchesAny: S.optional(__S(192, __c6, 0).pipe(T.Query())),
5071
+ vendorStatusesMatchesAny: S.optional(__S(352, __c11, 0).pipe(T.Query())),
5072
+ inherentRiskMatchesAny: S.optional(__S(352, __c11, 0).pipe(T.Query())),
4569
5073
  orderBy: S.optional(S.String.pipe(T.Query())),
4570
5074
  orderDirection: S.optional(S.String.pipe(T.Query())),
4571
5075
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/managed-vendors", code: 200 })),
@@ -4582,7 +5086,7 @@ function __c52(j: number): any {
4582
5086
  S.Struct({
4583
5087
  id: S.String,
4584
5088
  name: S.String,
4585
- segmentIds: S.optional(__S(32, __c1, 0)),
5089
+ segmentIds: S.optional(__S(1664, __c52, 0)),
4586
5090
  inherentRisk: S.optional(S.String),
4587
5091
  status: S.optional(S.String),
4588
5092
  findings: S.optional(S.Number),
@@ -4591,27 +5095,27 @@ function __c52(j: number): any {
4591
5095
  vendorCategory: S.optional(S.NullOr(S.String)),
4592
5096
  vendorCategoryId: S.optional(S.NullOr(S.String)),
4593
5097
  residualRisk: S.optional(S.NullOr(S.String)),
4594
- dataAgreements: S.optional(S.NullOr(__S(1665, __c52, 1))),
5098
+ dataAgreements: S.optional(S.NullOr(__S(1825, __c57, 1))),
4595
5099
  }),
4596
5100
  ).annotate({ identifier: "AuditVendor" });
4597
5101
  case 3:
4598
- return S.Array(__S(1666, __c52, 2));
5102
+ return S.Array(__S(1826, __c57, 2));
4599
5103
  case 4:
4600
5104
  return S.suspend(() =>
4601
5105
  S.Struct({
4602
- data: __S(1667, __c52, 3),
4603
- pageInfo: __S(768, __c24, 0),
5106
+ data: __S(1827, __c57, 3),
5107
+ pageInfo: __S(864, __c27, 0),
4604
5108
  }),
4605
5109
  ).annotate({ identifier: "PaginatedResponseAuditVendorResults" });
4606
5110
  case 5:
4607
5111
  return S.suspend(() =>
4608
5112
  S.Struct({
4609
- results: __S(1668, __c52, 4),
5113
+ results: __S(1828, __c57, 4),
4610
5114
  }),
4611
5115
  ).annotate({ identifier: "PaginatedResponseAuditVendor" });
4612
5116
  }
4613
5117
  }
4614
- function __c53(j: number): any {
5118
+ function __c58(j: number): any {
4615
5119
  switch (j) {
4616
5120
  case 0:
4617
5121
  return S.suspend(() =>
@@ -4625,7 +5129,7 @@ function __c53(j: number): any {
4625
5129
  S.Struct({
4626
5130
  auditId: S.String.pipe(T.Label()),
4627
5131
  auditEvidenceId: S.String.pipe(T.Label()),
4628
- statusUpdate: S.optional(__S(1696, __c53, 0)),
5132
+ statusUpdate: S.optional(__S(1856, __c58, 0)),
4629
5133
  }).pipe(
4630
5134
  T.Http({
4631
5135
  method: "PATCH",
@@ -4636,7 +5140,7 @@ function __c53(j: number): any {
4636
5140
  ).annotate({ identifier: "UpdateAuditEvidenceRequest" });
4637
5141
  }
4638
5142
  }
4639
- function __c54(j: number): any {
5143
+ function __c59(j: number): any {
4640
5144
  switch (j) {
4641
5145
  case 0:
4642
5146
  return S.suspend(() =>
@@ -4656,7 +5160,7 @@ function __c54(j: number): any {
4656
5160
  ).annotate({ identifier: "UpdateCommentForControlRequest" });
4657
5161
  }
4658
5162
  }
4659
- function __c55(j: number): any {
5163
+ function __c60(j: number): any {
4660
5164
  switch (j) {
4661
5165
  case 0:
4662
5166
  return S.suspend(() =>
@@ -4676,22 +5180,22 @@ function __c55(j: number): any {
4676
5180
  ).annotate({ identifier: "UpdateCommentForInformationRequestRequest" });
4677
5181
  }
4678
5182
  }
4679
- function __c56(j: number): any {
5183
+ function __c61(j: number): any {
4680
5184
  switch (j) {
4681
5185
  case 0:
4682
5186
  return S.suspend(() =>
4683
5187
  S.Struct({
4684
5188
  auditId: S.String.pipe(T.Label()),
4685
5189
  requestId: S.String.pipe(T.Label()),
4686
- frameworkCodes: S.optional(__S(32, __c1, 0)),
5190
+ frameworkCodes: S.optional(__S(1664, __c52, 0)),
4687
5191
  description: S.optional(S.NullOr(S.String)),
4688
5192
  dueDate: S.optional(S.NullOr(S.String)),
4689
5193
  evidenceCaptureDate: S.optional(S.NullOr(S.String)),
4690
5194
  requestType: S.optional(S.String),
4691
5195
  title: S.optional(S.String),
4692
5196
  cadence: S.optional(S.String),
4693
- additionalControlIds: S.optional(__S(32, __c1, 0)),
4694
- linkedControlIds: S.optional(__S(32, __c1, 0)),
5197
+ additionalControlIds: S.optional(__S(1664, __c52, 0)),
5198
+ linkedControlIds: S.optional(__S(1664, __c52, 0)),
4695
5199
  }).pipe(
4696
5200
  T.Http({
4697
5201
  method: "PATCH",
@@ -4702,72 +5206,86 @@ function __c56(j: number): any {
4702
5206
  ).annotate({ identifier: "UpdateInformationRequestRequest" });
4703
5207
  }
4704
5208
  }
4705
- function __c57(j: number): any {
5209
+ function __c62(j: number): any {
4706
5210
  switch (j) {
4707
5211
  case 0:
4708
5212
  return S.suspend(() =>
4709
5213
  S.Struct({
4710
- frameworkId: S.Unknown,
4711
- sectionId: S.String,
4712
- }),
4713
- ).annotate({ identifier: "FrameworkSection" });
5214
+ auditId: S.String.pipe(T.Label()),
5215
+ requestId: S.String.pipe(T.Label()),
5216
+ uploadId: S.String,
5217
+ }).pipe(
5218
+ T.Http({
5219
+ method: "POST",
5220
+ uri: "/audits/{auditId}/information-requests/{requestId}/auditor-files/uploads/finalize",
5221
+ code: 200,
5222
+ }),
5223
+ ),
5224
+ ).annotate({ identifier: "UploadFinalizeInformationRequestAuditorFileRequest" });
4714
5225
  case 1:
4715
- return S.Array(__S(1824, __c57, 0));
4716
- case 2:
5226
+ return S.suspend(() =>
5227
+ S.Struct({
5228
+ id: S.String,
5229
+ }),
5230
+ ).annotate({ identifier: "UploadedAuditorFile" });
5231
+ }
5232
+ }
5233
+ function __c63(j: number): any {
5234
+ switch (j) {
5235
+ case 0:
4717
5236
  return S.suspend(() =>
4718
5237
  S.Struct({
4719
5238
  auditId: S.String.pipe(T.Label()),
4720
- externalId: S.String,
4721
- name: S.NullOr(S.String),
4722
- description: S.String,
4723
- effectiveDate: S.String,
4724
- category: S.String,
4725
- sections: S.optional(S.NullOr(__S(1825, __c57, 1))),
4726
- role: S.optional(S.NullOr(S.String)),
5239
+ requestId: S.String.pipe(T.Label()),
5240
+ email: S.String,
5241
+ filename: S.String,
5242
+ contentType: S.String,
4727
5243
  }).pipe(
4728
- T.Http({ method: "POST", uri: "/audits/{auditId}/controls/custom-controls", code: 200 }),
5244
+ T.Http({
5245
+ method: "POST",
5246
+ uri: "/audits/{auditId}/information-requests/{requestId}/auditor-files/uploads",
5247
+ code: 200,
5248
+ }),
4729
5249
  ),
4730
- ).annotate({ identifier: "CreateCustomControlRequest" });
4731
- case 3:
5250
+ ).annotate({ identifier: "UploadInitiateInformationRequestAuditorFileRequest" });
5251
+ case 1:
5252
+ return S.Record(S.String, S.String);
5253
+ case 2:
4732
5254
  return S.suspend(() =>
4733
5255
  S.Struct({
4734
- id: S.String,
4735
- externalId: S.NullOr(S.String),
4736
- name: S.String,
4737
- description: S.String,
4738
- source: S.String,
4739
- domains: __S(32, __c1, 0),
4740
- owner: S.NullOr(__S(1856, __c58, 0)),
4741
- role: S.optional(S.NullOr(S.String)),
4742
- customFields: __S(1858, __c58, 2),
4743
- creationDate: S.NullOr(S.String),
4744
- modificationDate: S.NullOr(S.String),
5256
+ uploadId: S.String,
5257
+ url: S.String,
5258
+ fields: __S(2017, __c63, 1),
5259
+ maxSizeBytes: S.Number,
5260
+ transferExpiresAt: S.String,
5261
+ finalizationExpiresAt: S.String,
4745
5262
  }),
4746
- ).annotate({ identifier: "AuditorApiControl" });
5263
+ ).annotate({ identifier: "AuditorFileUploadGrant" });
4747
5264
  }
4748
5265
  }
4749
- function __c58(j: number): any {
5266
+ function __c64(j: number): any {
4750
5267
  switch (j) {
4751
5268
  case 0:
4752
5269
  return S.suspend(() =>
4753
5270
  S.Struct({
4754
- id: S.String,
4755
- displayName: S.String,
4756
- emailAddress: S.String,
4757
- }),
4758
- ).annotate({ identifier: "Owner" });
5271
+ email: S.String,
5272
+ givenName: S.String,
5273
+ familyName: S.String,
5274
+ }).pipe(T.Http({ method: "POST", uri: "/auditors", code: 200 })),
5275
+ ).annotate({ identifier: "CreateAuditorRequest" });
4759
5276
  case 1:
4760
5277
  return S.suspend(() =>
4761
5278
  S.Struct({
4762
- label: S.String,
4763
- value: S.Unknown,
5279
+ id: S.String,
5280
+ organizationId: S.String,
5281
+ email: S.String,
5282
+ givenName: S.String,
5283
+ familyName: S.String,
4764
5284
  }),
4765
- ).annotate({ identifier: "CustomField" });
4766
- case 2:
4767
- return S.Array(__S(1857, __c58, 1));
5285
+ ).annotate({ identifier: "Auditor" });
4768
5286
  }
4769
5287
  }
4770
- function __c59(j: number): any {
5288
+ function __c65(j: number): any {
4771
5289
  switch (j) {
4772
5290
  case 0:
4773
5291
  return S.suspend(() =>
@@ -4797,106 +5315,97 @@ function __c59(j: number): any {
4797
5315
  ).annotate({ identifier: "AuditorControlAssessment" });
4798
5316
  }
4799
5317
  }
4800
- function __c60(j: number): any {
5318
+ function __c66(j: number): any {
4801
5319
  switch (j) {
4802
5320
  case 0:
4803
5321
  return S.suspend(() =>
4804
5322
  S.Struct({
4805
5323
  auditId: S.String.pipe(T.Label()),
4806
- controlIds: __S(32, __c1, 0),
4807
- title: S.String,
4808
- description: S.String,
4809
- cadence: S.String,
4810
- reminderWindow: S.String,
4811
- isRestricted: S.Boolean,
4812
- auditorEmail: S.String,
5324
+ auditEvidenceId: S.String.pipe(T.Label()),
5325
+ text: S.String,
5326
+ email: S.String,
5327
+ creationDate: S.String,
4813
5328
  }).pipe(
4814
5329
  T.Http({
4815
5330
  method: "POST",
4816
- uri: "/audits/{auditId}/evidence/custom-evidence-requests",
5331
+ uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments",
4817
5332
  code: 200,
4818
5333
  }),
4819
5334
  ),
4820
- ).annotate({ identifier: "CreateCustomEvidenceRequestRequest" });
4821
- case 1:
4822
- return S.suspend(() =>
4823
- S.Struct({
4824
- id: S.String,
4825
- controlIds: __S(32, __c1, 0),
4826
- title: S.String,
4827
- description: S.String,
4828
- cadence: S.String,
4829
- reminderWindow: S.String,
4830
- isRestricted: S.Boolean,
4831
- }),
4832
- ).annotate({ identifier: "CustomEvidenceRequest" });
5335
+ ).annotate({ identifier: "CreateCommentForAuditEvidenceRequest" });
4833
5336
  }
4834
5337
  }
4835
- function __c61(j: number): any {
5338
+ function __c67(j: number): any {
4836
5339
  switch (j) {
4837
5340
  case 0:
4838
5341
  return S.suspend(() =>
4839
5342
  S.Struct({
4840
- auditId: S.String.pipe(T.Label()),
4841
- uniqueId: S.String,
4842
- title: S.String,
4843
- requestType: S.String,
4844
- description: S.optional(S.NullOr(S.String)),
4845
- frameworkCodes: __S(32, __c1, 0),
4846
- cadence: S.optional(S.NullOr(S.String)),
4847
- dueDate: S.optional(S.NullOr(S.String)),
4848
- evidenceCaptureDate: S.optional(S.NullOr(S.String)),
4849
- additionalControlIds: S.optional(__S(32, __c1, 0)),
4850
- }).pipe(
4851
- T.Http({ method: "POST", uri: "/audits/{auditId}/information-requests", code: 200 }),
4852
- ),
4853
- ).annotate({ identifier: "CreateInformationRequestRequest" });
5343
+ id: S.String,
5344
+ auditEvidenceId: S.String,
5345
+ text: S.String,
5346
+ creationDate: S.String,
5347
+ modificationDate: S.NullOr(S.String),
5348
+ deletionDate: S.NullOr(S.String),
5349
+ email: S.NullOr(S.String),
5350
+ authorName: S.NullOr(S.String),
5351
+ }),
5352
+ ).annotate({ identifier: "Comment" });
4854
5353
  }
4855
5354
  }
4856
- function __c62(j: number): any {
5355
+ function __c68(j: number): any {
4857
5356
  switch (j) {
4858
5357
  case 0:
4859
5358
  return S.suspend(() =>
4860
5359
  S.Struct({
4861
5360
  auditId: S.String.pipe(T.Label()),
4862
5361
  controlId: S.String.pipe(T.Label()),
4863
- commentId: S.String.pipe(T.Label()),
5362
+ text: S.String,
4864
5363
  email: S.String,
5364
+ creationDate: S.String,
4865
5365
  }).pipe(
4866
5366
  T.Http({
4867
- method: "DELETE",
4868
- uri: "/audits/{auditId}/controls/{controlId}/comments/{commentId}",
5367
+ method: "POST",
5368
+ uri: "/audits/{auditId}/controls/{controlId}/comments",
4869
5369
  code: 200,
4870
5370
  }),
4871
5371
  ),
4872
- ).annotate({ identifier: "DeleteCommentForControlRequest" });
5372
+ ).annotate({ identifier: "CreateCommentForControlRequest" });
4873
5373
  }
4874
5374
  }
4875
- function __c63(j: number): any {
5375
+ function __c69(j: number): any {
4876
5376
  switch (j) {
4877
5377
  case 0:
4878
- return S.suspend(() => S.Struct({})).annotate({
4879
- identifier: "DeleteCommentForControlResponse",
4880
- });
5378
+ return S.suspend(() =>
5379
+ S.Struct({
5380
+ id: S.String,
5381
+ text: S.String,
5382
+ creationDate: S.String,
5383
+ modificationDate: S.NullOr(S.String),
5384
+ deletionDate: S.NullOr(S.String),
5385
+ email: S.NullOr(S.String),
5386
+ authorName: S.NullOr(S.String),
5387
+ }),
5388
+ ).annotate({ identifier: "AuditControlComment" });
4881
5389
  }
4882
5390
  }
4883
- function __c64(j: number): any {
5391
+ function __c70(j: number): any {
4884
5392
  switch (j) {
4885
5393
  case 0:
4886
5394
  return S.suspend(() =>
4887
5395
  S.Struct({
4888
5396
  auditId: S.String.pipe(T.Label()),
4889
5397
  requestId: S.String.pipe(T.Label()),
4890
- commentId: S.String.pipe(T.Label()),
5398
+ text: S.String,
4891
5399
  email: S.String,
5400
+ creationDate: S.String,
4892
5401
  }).pipe(
4893
5402
  T.Http({
4894
- method: "DELETE",
4895
- uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
5403
+ method: "POST",
5404
+ uri: "/audits/{auditId}/information-requests/{requestId}/comments",
4896
5405
  code: 200,
4897
5406
  }),
4898
5407
  ),
4899
- ).annotate({ identifier: "DeleteCommentForInformationRequestRequest" });
5408
+ ).annotate({ identifier: "CreateCommentForInformationRequestRequest" });
4900
5409
  }
4901
5410
  }
4902
5411
  // Schema table: entry i is schema j of builder f, made on first reach.