@distilled.cloud/vanta 1.0.0-rc.14 → 1.0.0-rc.16

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 (49) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +16 -15
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +15 -15
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +14 -14
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +6 -6
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +19 -22
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/retry.d.ts +1 -1
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/retry.js +25 -24
  19. package/lib/retry.js.map +1 -1
  20. package/lib/services/auditor_api.d.ts +18 -325
  21. package/lib/services/auditor_api.d.ts.map +1 -1
  22. package/lib/services/auditor_api.js +164 -1881
  23. package/lib/services/build_integrations.d.ts +1 -230
  24. package/lib/services/build_integrations.d.ts.map +1 -1
  25. package/lib/services/build_integrations.js +118 -1180
  26. package/lib/services/manage_vanta.d.ts +18 -1088
  27. package/lib/services/manage_vanta.d.ts.map +1 -1
  28. package/lib/services/manage_vanta.js +754 -6922
  29. package/lib/services/webhooks.d.ts +6 -105
  30. package/lib/services/webhooks.d.ts.map +1 -1
  31. package/lib/services/webhooks.js +76 -537
  32. package/lib/traits.d.ts +1 -1
  33. package/lib/traits.js +8 -8
  34. package/package.json +13 -9
  35. package/src/credentials.ts +5 -6
  36. package/src/errors.ts +14 -15
  37. package/src/index.ts +1 -1
  38. package/src/pagination.ts +1 -1
  39. package/src/protocol.ts +6 -9
  40. package/src/retry.ts +6 -4
  41. package/src/services/auditor_api.ts +2040 -2476
  42. package/src/services/build_integrations.ts +937 -1664
  43. package/src/services/manage_vanta.ts +7230 -8522
  44. package/src/services/webhooks.ts +432 -638
  45. package/src/traits.ts +1 -1
  46. package/lib/services/auditor_api.js.map +0 -1
  47. package/lib/services/build_integrations.js.map +0 -1
  48. package/lib/services/manage_vanta.js.map +0 -1
  49. package/lib/services/webhooks.js.map +0 -1
@@ -1,1888 +1,171 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
3
- import * as S from "@distilled.cloud/core/schema";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
4
5
  import { UnknownVantaError } from "../errors.js";
5
6
  import { VantaProtocol } from "../protocol.js";
6
7
  import * as Retry from "../retry.js";
7
8
  import * as T from "../traits.js";
8
- export const AcceptInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
9
- auditId: S.String.pipe(T.Label()),
10
- requestId: S.String.pipe(T.Label()),
11
- auditorEmail: S.String,
12
- }).pipe(T.Http({
13
- method: "POST",
14
- uri: "/audits/{auditId}/information-requests/{requestId}/accept-evidence",
15
- code: 200,
16
- }))).annotate({
17
- identifier: "AcceptInformationRequestEvidenceRequest",
18
- });
19
- export const InformationRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(S.String);
20
- export const InformationRequestLinkedControlIdsList = /*@__PURE__*/ S.Array(S.String);
21
- export const InformationRequestApprovalStatus = S.String;
22
- export const InformationRequestCadence = S.String;
23
- export const InformationRequestFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
24
- export const InformationRequestSegmentIdsList = /*@__PURE__*/ S.Array(S.String);
25
- export const InformationRequestType = S.String;
26
- export const ResourceOwnerCase0Type = S.String;
27
- export const ResourceOwnerCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
28
- displayName: S.String,
29
- id: S.String,
30
- type: ResourceOwnerCase0Type,
31
- })).annotate({ identifier: "ResourceOwnerCase0" });
32
- export const ResourceOwnerCase1Type = S.String;
33
- export const ResourceOwnerCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
34
- displayName: S.String,
35
- id: S.String,
36
- type: ResourceOwnerCase1Type,
37
- })).annotate({ identifier: "ResourceOwnerCase1" });
38
- export const ResourceOwner = S.Unknown;
39
- export const InformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
40
- id: S.String,
41
- uniqueId: S.String,
42
- additionalControlIds: InformationRequestAdditionalControlIdsList,
43
- linkedControlIds: InformationRequestLinkedControlIdsList,
44
- approvalStatus: InformationRequestApprovalStatus,
45
- cadence: S.NullOr(InformationRequestCadence),
46
- frameworkCodes: InformationRequestFrameworkCodesList,
47
- segmentIds: InformationRequestSegmentIdsList,
48
- description: S.NullOr(S.String),
49
- dueDate: S.NullOr(S.String),
50
- evidenceCaptureDate: S.NullOr(S.String),
51
- requestId: S.NullOr(S.String),
52
- requestType: InformationRequestType,
53
- title: S.String,
54
- creationDate: S.String,
55
- modificationDate: S.String,
56
- deletionDate: S.NullOr(S.String),
57
- ownerAssignment: S.NullOr(ResourceOwner),
58
- })).annotate({ identifier: "InformationRequest" });
59
- export const CreateAuditorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
60
- email: S.String,
61
- givenName: S.String,
62
- familyName: S.String,
63
- }).pipe(T.Http({ method: "POST", uri: "/auditors", code: 200 }))).annotate({ identifier: "CreateAuditorRequest" });
64
- export const Auditor = /*@__PURE__*/ S.suspend(() => S.Struct({
65
- id: S.String,
66
- organizationId: S.String,
67
- email: S.String,
68
- givenName: S.String,
69
- familyName: S.String,
70
- })).annotate({ identifier: "Auditor" });
71
- export const CreateCommentForAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
72
- auditId: S.String.pipe(T.Label()),
73
- auditEvidenceId: S.String.pipe(T.Label()),
74
- text: S.String,
75
- email: S.String,
76
- creationDate: S.String,
77
- }).pipe(T.Http({
78
- method: "POST",
79
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments",
80
- code: 200,
81
- }))).annotate({
82
- identifier: "CreateCommentForAuditEvidenceRequest",
83
- });
84
- export const Comment = /*@__PURE__*/ S.suspend(() => S.Struct({
85
- id: S.String,
86
- auditEvidenceId: S.String,
87
- text: S.String,
88
- creationDate: S.String,
89
- modificationDate: S.NullOr(S.String),
90
- deletionDate: S.NullOr(S.String),
91
- email: S.NullOr(S.String),
92
- authorName: S.NullOr(S.String),
93
- })).annotate({ identifier: "Comment" });
94
- export const CreateCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
95
- auditId: S.String.pipe(T.Label()),
96
- controlId: S.String.pipe(T.Label()),
97
- text: S.String,
98
- email: S.String,
99
- creationDate: S.String,
100
- }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/controls/{controlId}/comments", code: 200 }))).annotate({
101
- identifier: "CreateCommentForControlRequest",
102
- });
103
- export const AuditControlComment = /*@__PURE__*/ S.suspend(() => S.Struct({
104
- id: S.String,
105
- text: S.String,
106
- creationDate: S.String,
107
- modificationDate: S.NullOr(S.String),
108
- deletionDate: S.NullOr(S.String),
109
- email: S.NullOr(S.String),
110
- authorName: S.NullOr(S.String),
111
- })).annotate({ identifier: "AuditControlComment" });
112
- export const CreateCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
113
- auditId: S.String.pipe(T.Label()),
114
- requestId: S.String.pipe(T.Label()),
115
- text: S.String,
116
- email: S.String,
117
- creationDate: S.String,
118
- }).pipe(T.Http({
119
- method: "POST",
120
- uri: "/audits/{auditId}/information-requests/{requestId}/comments",
121
- code: 200,
122
- }))).annotate({
123
- identifier: "CreateCommentForInformationRequestRequest",
124
- });
125
- export const InformationRequestComment = /*@__PURE__*/ S.suspend(() => S.Struct({
126
- id: S.String,
127
- text: S.String,
128
- creationDate: S.String,
129
- modificationDate: S.NullOr(S.String),
130
- deletionDate: S.NullOr(S.String),
131
- email: S.NullOr(S.String),
132
- authorName: S.NullOr(S.String),
133
- })).annotate({
134
- identifier: "InformationRequestComment",
135
- });
136
- export const ControlDomain = S.String;
137
- export const FrameworkId = S.String;
138
- export const FrameworkSectionFrameworkId = S.Unknown;
139
- export const FrameworkSection = /*@__PURE__*/ S.suspend(() => S.Struct({
140
- frameworkId: FrameworkSectionFrameworkId,
141
- sectionId: S.String,
142
- })).annotate({ identifier: "FrameworkSection" });
143
- export const CreateCustomControlRequestSectionsList = /*@__PURE__*/ S.Array(FrameworkSection);
144
- export const GdprRole = S.String;
145
- export const CreateCustomControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
146
- auditId: S.String.pipe(T.Label()),
147
- externalId: S.String,
148
- name: S.NullOr(S.String),
149
- description: S.String,
150
- effectiveDate: S.String,
151
- category: ControlDomain,
152
- sections: S.optional(S.NullOr(CreateCustomControlRequestSectionsList)),
153
- role: S.optional(S.NullOr(GdprRole)),
154
- }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/controls/custom-controls", code: 200 }))).annotate({
155
- identifier: "CreateCustomControlRequest",
156
- });
157
- export const ControlSource = S.String;
158
- export const AuditorApiControlDomainsList = /*@__PURE__*/ S.Array(S.String);
159
- export const Owner = /*@__PURE__*/ S.suspend(() => S.Struct({
160
- id: S.String,
161
- displayName: S.String,
162
- emailAddress: S.String,
163
- })).annotate({ identifier: "Owner" });
164
- export const CustomFieldValueCase1List = /*@__PURE__*/ S.Array(S.String);
165
- export const CustomFieldValue = S.Unknown;
166
- export const CustomField = /*@__PURE__*/ S.suspend(() => S.Struct({
167
- label: S.String,
168
- value: CustomFieldValue,
169
- })).annotate({ identifier: "CustomField" });
170
- export const AuditorApiControlCustomFieldsList = /*@__PURE__*/ S.Array(CustomField);
171
- export const AuditorApiControl = /*@__PURE__*/ S.suspend(() => S.Struct({
172
- id: S.String,
173
- externalId: S.NullOr(S.String),
174
- name: S.String,
175
- description: S.String,
176
- source: ControlSource,
177
- domains: AuditorApiControlDomainsList,
178
- owner: S.NullOr(Owner),
179
- role: S.optional(S.NullOr(S.String)),
180
- customFields: AuditorApiControlCustomFieldsList,
181
- creationDate: S.NullOr(S.String),
182
- modificationDate: S.NullOr(S.String),
183
- })).annotate({ identifier: "AuditorApiControl" });
184
- export const CreateCustomEvidenceRequestRequestControlIdsList = /*@__PURE__*/ S.Array(S.String);
185
- export const RecurrenceDuration = S.String;
186
- export const CreateCustomEvidenceRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
187
- auditId: S.String.pipe(T.Label()),
188
- controlIds: CreateCustomEvidenceRequestRequestControlIdsList,
189
- title: S.String,
190
- description: S.String,
191
- cadence: RecurrenceDuration,
192
- reminderWindow: RecurrenceDuration,
193
- isRestricted: S.Boolean,
194
- auditorEmail: S.String,
195
- }).pipe(T.Http({
196
- method: "POST",
197
- uri: "/audits/{auditId}/evidence/custom-evidence-requests",
198
- code: 200,
199
- }))).annotate({
200
- identifier: "CreateCustomEvidenceRequestRequest",
201
- });
202
- export const CustomEvidenceRequestControlIdsList = /*@__PURE__*/ S.Array(S.String);
203
- export const CustomEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
204
- id: S.String,
205
- controlIds: CustomEvidenceRequestControlIdsList,
206
- title: S.String,
207
- description: S.String,
208
- cadence: RecurrenceDuration,
209
- reminderWindow: RecurrenceDuration,
210
- isRestricted: S.Boolean,
211
- })).annotate({ identifier: "CustomEvidenceRequest" });
212
- export const CreateInformationRequestRequestFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
213
- export const CreateInformationRequestRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(S.String);
214
- export const CreateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
215
- auditId: S.String.pipe(T.Label()),
216
- uniqueId: S.String,
217
- title: S.String,
218
- requestType: InformationRequestType,
219
- description: S.optional(S.NullOr(S.String)),
220
- frameworkCodes: CreateInformationRequestRequestFrameworkCodesList,
221
- cadence: S.optional(S.NullOr(InformationRequestCadence)),
222
- dueDate: S.optional(S.NullOr(S.String)),
223
- evidenceCaptureDate: S.optional(S.NullOr(S.String)),
224
- additionalControlIds: S.optional(CreateInformationRequestRequestAdditionalControlIdsList),
225
- }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/information-requests", code: 200 }))).annotate({
226
- identifier: "CreateInformationRequestRequest",
227
- });
228
- export const DeleteCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
229
- auditId: S.String.pipe(T.Label()),
230
- controlId: S.String.pipe(T.Label()),
231
- commentId: S.String.pipe(T.Label()),
232
- email: S.String,
233
- }).pipe(T.Http({
234
- method: "DELETE",
235
- uri: "/audits/{auditId}/controls/{controlId}/comments/{commentId}",
236
- code: 200,
237
- }))).annotate({
238
- identifier: "DeleteCommentForControlRequest",
239
- });
240
- export const DeleteCommentForControlResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteCommentForControlResponse" });
241
- export const DeleteCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
242
- auditId: S.String.pipe(T.Label()),
243
- requestId: S.String.pipe(T.Label()),
244
- commentId: S.String.pipe(T.Label()),
245
- email: S.String,
246
- }).pipe(T.Http({
247
- method: "DELETE",
248
- uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
249
- code: 200,
250
- }))).annotate({
251
- identifier: "DeleteCommentForInformationRequestRequest",
252
- });
253
- export const DeleteCommentForInformationRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
254
- identifier: "DeleteCommentForInformationRequestResponse",
255
- });
256
- export const DeleteInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
257
- auditId: S.String.pipe(T.Label()),
258
- requestId: S.String.pipe(T.Label()),
259
- }).pipe(T.Http({
260
- method: "DELETE",
261
- uri: "/audits/{auditId}/information-requests/{requestId}",
262
- code: 200,
263
- }))).annotate({
264
- identifier: "DeleteInformationRequestRequest",
265
- });
266
- export const DeleteInformationRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
267
- identifier: "DeleteInformationRequestResponse",
268
- });
269
- export const DuplicateRequestAllowAuditorEmailsList = /*@__PURE__*/ S.Array(S.String);
270
- export const DuplicateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
271
- sourceAuditId: S.String,
272
- displayName: S.String,
273
- auditStartDate: S.String,
274
- auditEndDate: S.String,
275
- earlyAccessStartsAt: S.String,
276
- allowAuditorEmails: DuplicateRequestAllowAuditorEmailsList,
277
- }).pipe(T.Http({ method: "POST", uri: "/audits/duplicate", code: 200 }))).annotate({ identifier: "DuplicateRequest" });
278
- export const AuditAllowAuditorEmailsList = /*@__PURE__*/ S.Array(S.String);
279
- export const AuditFocus = S.String;
280
- export const AuditIrlGenerationStatus = S.String;
281
- export const AuditAuditorRequestListMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
282
- requestsSharedWithCustomer: S.NullOr(S.String),
283
- })).annotate({
284
- identifier: "AuditAuditorRequestListMetadata",
285
- });
286
- export const AuditSegmentKind = S.String;
287
- export const AuditSegmentFramework = /*@__PURE__*/ S.suspend(() => S.Struct({
288
- displayName: S.String,
289
- })).annotate({ identifier: "AuditSegmentFramework" });
290
- export const AuditSegmentAssociation = /*@__PURE__*/ S.suspend(() => S.Struct({
291
- id: S.String,
292
- displayName: S.String,
293
- })).annotate({ identifier: "AuditSegmentAssociation" });
294
- export const AuditSoc2ReportType = S.String;
295
- export const AuditSoc2Tsc = S.String;
296
- export const AuditSoc2DeliverableTscsList = /*@__PURE__*/ S.Array(AuditSoc2Tsc);
297
- export const AuditSoc2Deliverable = /*@__PURE__*/ S.suspend(() => S.Struct({
298
- reportType: AuditSoc2ReportType,
299
- tscs: AuditSoc2DeliverableTscsList,
300
- })).annotate({ identifier: "AuditSoc2Deliverable" });
301
- export const AuditSegment = /*@__PURE__*/ S.suspend(() => S.Struct({
302
- id: S.String,
303
- kind: AuditSegmentKind,
304
- displayName: S.String,
305
- framework: AuditSegmentFramework,
306
- businessUnit: S.NullOr(AuditSegmentAssociation),
307
- system: S.NullOr(AuditSegmentAssociation),
308
- soc2Deliverable: S.NullOr(AuditSoc2Deliverable),
309
- })).annotate({ identifier: "AuditSegment" });
310
- export const AuditSegmentsList = /*@__PURE__*/ S.Array(AuditSegment);
311
- export const Audit = /*@__PURE__*/ S.suspend(() => S.Struct({
312
- id: S.String,
313
- customerOrganizationName: S.String,
314
- customerDisplayName: S.NullOr(S.String),
315
- customerOrganizationId: S.String,
316
- auditStartDate: S.String,
317
- auditEndDate: S.String,
318
- earlyAccessStartsAt: S.NullOr(S.String),
319
- framework: S.String,
320
- displayName: S.String,
321
- allowAuditorEmails: AuditAllowAuditorEmailsList,
322
- allowAllAuditors: S.Boolean,
323
- deletionDate: S.NullOr(S.String),
324
- creationDate: S.String,
325
- modificationDate: S.NullOr(S.String),
326
- completionDate: S.NullOr(S.String),
327
- auditFocus: AuditFocus,
328
- irlGenerationStatus: S.NullOr(AuditIrlGenerationStatus),
329
- auditorRequestListMetadata: S.optional(AuditAuditorRequestListMetadata),
330
- segments: AuditSegmentsList,
331
- })).annotate({ identifier: "Audit" });
332
- export const FlagInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
333
- auditId: S.String.pipe(T.Label()),
334
- requestId: S.String.pipe(T.Label()),
335
- auditorEmail: S.String,
336
- reason: S.String,
337
- }).pipe(T.Http({
338
- method: "POST",
339
- uri: "/audits/{auditId}/information-requests/{requestId}/flag-evidence",
340
- code: 200,
341
- }))).annotate({
342
- identifier: "FlagInformationRequestEvidenceRequest",
343
- });
344
- export const GetAuditRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
345
- auditId: S.String.pipe(T.Label()),
346
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}", code: 200 }))).annotate({ identifier: "GetAuditRequest" });
347
- export const GetAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
348
- auditId: S.String.pipe(T.Label()),
349
- auditEvidenceId: S.String.pipe(T.Label()),
350
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence/{auditEvidenceId}", code: 200 }))).annotate({ identifier: "GetAuditEvidenceRequest" });
351
- export const AuditEvidenceState = S.String;
352
- export const AuditEvidenceType = S.String;
353
- export const EvidenceControlSectionNamesList = /*@__PURE__*/ S.Array(S.String);
354
- export const EvidenceControl = /*@__PURE__*/ S.suspend(() => S.Struct({
355
- name: S.String,
356
- sectionNames: EvidenceControlSectionNamesList,
357
- })).annotate({ identifier: "EvidenceControl" });
358
- export const EvidenceRelatedControlsList = /*@__PURE__*/ S.Array(EvidenceControl);
359
- export const Evidence = /*@__PURE__*/ S.suspend(() => S.Struct({
360
- id: S.String,
361
- externalId: S.String,
362
- status: AuditEvidenceState,
363
- name: S.String,
364
- deletionDate: S.NullOr(S.String),
365
- creationDate: S.String,
366
- statusUpdatedDate: S.String,
367
- testStatus: S.NullOr(S.String),
368
- evidenceType: AuditEvidenceType,
369
- evidenceId: S.String,
370
- relatedControls: EvidenceRelatedControlsList,
371
- description: S.NullOr(S.String),
372
- })).annotate({ identifier: "Evidence" });
373
- export const GetAuditEvidenceCommentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
374
- auditId: S.String.pipe(T.Label()),
375
- auditEvidenceId: S.String.pipe(T.Label()),
376
- commentId: S.String.pipe(T.Label()),
377
- }).pipe(T.Http({
378
- method: "GET",
379
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments/{commentId}",
380
- code: 200,
381
- }))).annotate({
382
- identifier: "GetAuditEvidenceCommentRequest",
383
- });
384
- export const GetCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
385
- auditId: S.String.pipe(T.Label()),
386
- requestId: S.String.pipe(T.Label()),
387
- commentId: S.String.pipe(T.Label()),
388
- }).pipe(T.Http({
389
- method: "GET",
390
- uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
391
- code: 200,
392
- }))).annotate({
393
- identifier: "GetCommentForInformationRequestRequest",
394
- });
395
- export const GetFrameworkCodesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
396
- auditId: S.String.pipe(T.Label()),
397
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/framework-codes", code: 200 }))).annotate({ identifier: "GetFrameworkCodesRequest" });
398
- export const FrameworkCodesFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
399
- export const FrameworkCodesByFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
400
- export const FrameworkCodesByFramework = /*@__PURE__*/ S.suspend(() => S.Struct({
401
- framework: S.String,
402
- codes: FrameworkCodesByFrameworkCodesList,
403
- })).annotate({
404
- identifier: "FrameworkCodesByFramework",
405
- });
406
- export const FrameworkCodesCodesByFrameworkList = /*@__PURE__*/ S.Array(FrameworkCodesByFramework);
407
- export const FrameworkCodes = /*@__PURE__*/ S.suspend(() => S.Struct({
408
- frameworkCodes: FrameworkCodesFrameworkCodesList,
409
- codesByFramework: FrameworkCodesCodesByFrameworkList,
410
- })).annotate({ identifier: "FrameworkCodes" });
411
- export const GetInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
412
- auditId: S.String.pipe(T.Label()),
413
- requestId: S.String.pipe(T.Label()),
414
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/information-requests/{requestId}", code: 200 }))).annotate({
415
- identifier: "GetInformationRequestRequest",
416
- });
417
- export const GetInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
418
- auditId: S.String.pipe(T.Label()),
419
- requestId: S.String.pipe(T.Label()),
420
- evidenceId: S.String.pipe(T.Label()),
421
- }).pipe(T.Http({
422
- method: "GET",
423
- uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}",
424
- code: 200,
425
- }))).annotate({
426
- identifier: "GetInformationRequestEvidenceRequest",
427
- });
428
- export const InformationRequestSupportedEvidenceType = S.String;
429
- export const UploadedDocumentEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
430
- id: S.String,
431
- filename: S.optional(S.String),
432
- mimeType: S.String,
433
- url: S.String,
434
- })).annotate({ identifier: "UploadedDocumentEvidence" });
435
- export const LinkEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
436
- title: S.String,
437
- description: S.optional(S.String),
438
- url: S.String,
439
- })).annotate({ identifier: "LinkEvidence" });
440
- export const ObservationEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
441
- observationDetails: S.String,
442
- })).annotate({ identifier: "ObservationEvidence" });
443
- export const VantaDocumentEvidenceAddedBy = /*@__PURE__*/ S.suspend(() => S.Struct({
444
- email: S.String,
445
- name: S.String,
446
- })).annotate({
447
- identifier: "VantaDocumentEvidenceAddedBy",
448
- });
449
- export const VantaDocumentUploadedEvidenceType = S.String;
450
- export const VantaDocumentUploadedEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
451
- type: VantaDocumentUploadedEvidenceType,
452
- id: S.String,
453
- filename: S.optional(S.String),
454
- mimeType: S.String,
455
- url: S.String,
456
- })).annotate({
457
- identifier: "VantaDocumentUploadedEvidence",
458
- });
459
- export const VantaDocumentLinkEvidenceType = S.String;
460
- export const VantaDocumentLinkEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
461
- type: VantaDocumentLinkEvidenceType,
462
- id: S.String,
463
- url: S.String,
464
- })).annotate({
465
- identifier: "VantaDocumentLinkEvidence",
466
- });
467
- export const VantaDocumentEvidenceFile = S.Unknown;
468
- export const VantaDocumentEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
469
- title: S.String,
470
- description: S.optional(S.String),
471
- expirationDate: S.optional(S.String),
472
- addedBy: S.optional(VantaDocumentEvidenceAddedBy),
473
- documentVersionId: S.String,
474
- file: VantaDocumentEvidenceFile,
475
- })).annotate({ identifier: "VantaDocumentEvidence" });
476
- export const VantaPolicyEvidenceLastEditedBy = VantaDocumentEvidenceAddedBy;
477
- export const VantaPolicyEvidenceFile = /*@__PURE__*/ S.suspend(() => S.Struct({
478
- effectiveOrCreationDate: S.String,
479
- locale: S.String,
480
- url: S.String,
481
- mimeType: S.String,
482
- filename: S.optional(S.String),
483
- id: S.String,
484
- })).annotate({ identifier: "VantaPolicyEvidenceFile" });
485
- export const VantaPolicyEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
486
- title: S.String,
487
- description: S.optional(S.String),
488
- expirationDate: S.optional(S.String),
489
- lastEditedBy: S.optional(VantaDocumentEvidenceAddedBy),
490
- policyId: S.String,
491
- policyVersionId: S.String,
492
- policyVersionFileId: S.String,
493
- file: VantaPolicyEvidenceFile,
494
- })).annotate({ identifier: "VantaPolicyEvidence" });
495
- export const VantaTestRunStatus = S.String;
496
- export const VantaTestFileType = S.String;
497
- export const VantaTestEvidenceFile = /*@__PURE__*/ S.suspend(() => S.Struct({
498
- mimeType: S.String,
499
- url: S.String,
500
- })).annotate({ identifier: "VantaTestEvidenceFile" });
501
- export const VantaTestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
502
- title: S.String,
503
- testId: S.String,
504
- snapshotId: S.String,
505
- testRunStatus: VantaTestRunStatus,
506
- executedAt: S.String,
507
- fileType: VantaTestFileType,
508
- file: VantaTestEvidenceFile,
509
- })).annotate({ identifier: "VantaTestEvidence" });
510
- export const VantaTestSnapshotEvidenceTestRunStatus = S.String;
511
- export const VantaTestSnapshotEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
512
- snapshotId: S.String,
513
- testId: S.String,
514
- testRunId: S.String,
515
- testRunTitle: S.String,
516
- testRunStatus: VantaTestSnapshotEvidenceTestRunStatus,
517
- testRunExecutedAt: S.String,
518
- })).annotate({
519
- identifier: "VantaTestSnapshotEvidence",
520
- });
521
- export const InformationRequestEvidenceUnion = S.Unknown;
522
- export const InformationRequestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
523
- id: S.String,
524
- evidenceType: InformationRequestSupportedEvidenceType,
525
- visibleToAuditorDate: S.optional(S.NullOr(S.String)),
526
- creationDate: S.String,
527
- modificationDate: S.String,
528
- deletionDate: S.optional(S.NullOr(S.String)),
529
- evidence: InformationRequestEvidenceUnion,
530
- })).annotate({
531
- identifier: "InformationRequestEvidence",
532
- });
533
- export const GetInformationRequestTestSnapshotEvidenceDetailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
534
- auditId: S.String.pipe(T.Label()),
535
- requestId: S.String.pipe(T.Label()),
536
- evidenceId: S.String.pipe(T.Label()),
537
- }).pipe(T.Http({
538
- method: "GET",
539
- uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot",
540
- code: 200,
541
- }))).annotate({
542
- identifier: "GetInformationRequestTestSnapshotEvidenceDetailRequest",
543
- });
544
- export const VantaTestSnapshotIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
545
- integrationId: S.String,
546
- displayName: S.String,
547
- })).annotate({
548
- identifier: "VantaTestSnapshotIntegration",
549
- });
550
- export const VantaTestSnapshotEvidenceDetailIntegrationsList = /*@__PURE__*/ S.Array(VantaTestSnapshotIntegration);
551
- export const VantaTestSnapshotSlaRemediationSettings = /*@__PURE__*/ S.suspend(() => S.Struct({
552
- numericValue: S.Number,
553
- unit: S.NullOr(S.String),
554
- })).annotate({
555
- identifier: "VantaTestSnapshotSlaRemediationSettings",
556
- });
557
- export const VantaTestSnapshotSlaRemediation = /*@__PURE__*/ S.suspend(() => S.Struct({
558
- id: S.String,
559
- settings: S.NullOr(VantaTestSnapshotSlaRemediationSettings),
560
- })).annotate({
561
- identifier: "VantaTestSnapshotSlaRemediation",
562
- });
563
- export const VantaTestSnapshotRawTestDataRow = /*@__PURE__*/ S.suspend(() => S.Struct({
564
- resourceId: S.NullOr(S.String),
565
- resourceType: S.NullOr(S.String),
566
- rawJson: S.Unknown,
567
- })).annotate({
568
- identifier: "VantaTestSnapshotRawTestDataRow",
569
- });
570
- export const VantaTestSnapshotEvidenceDetailRawTestDataList = /*@__PURE__*/ S.Array(VantaTestSnapshotRawTestDataRow);
571
- export const VantaTestSnapshotExcludedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
572
- id: S.String,
573
- displayName: S.NullOr(S.String),
574
- })).annotate({
575
- identifier: "VantaTestSnapshotExcludedItem",
576
- });
577
- export const VantaTestSnapshotExcludedItemGroupEntitiesList = /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItem);
578
- export const VantaTestSnapshotExcludedItemGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
579
- reason: S.String,
580
- entities: VantaTestSnapshotExcludedItemGroupEntitiesList,
581
- })).annotate({
582
- identifier: "VantaTestSnapshotExcludedItemGroup",
583
- });
584
- export const VantaTestSnapshotOutOfScopeResourcesTestLevelList = /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
585
- export const VantaTestSnapshotFrameworkExclusionGroupedByReasonList = /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
586
- export const VantaTestSnapshotFrameworkExclusion = /*@__PURE__*/ S.suspend(() => S.Struct({
587
- frameworkId: S.String,
588
- frameworkName: S.String,
589
- groupedByReason: VantaTestSnapshotFrameworkExclusionGroupedByReasonList,
590
- })).annotate({
591
- identifier: "VantaTestSnapshotFrameworkExclusion",
592
- });
593
- export const VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList = /*@__PURE__*/ S.Array(VantaTestSnapshotFrameworkExclusion);
594
- export const VantaTestSnapshotOutOfScopeResources = /*@__PURE__*/ S.suspend(() => S.Struct({
595
- testLevel: VantaTestSnapshotOutOfScopeResourcesTestLevelList,
596
- frameworkLevel: VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList,
597
- })).annotate({
598
- identifier: "VantaTestSnapshotOutOfScopeResources",
599
- });
600
- export const VantaTestSnapshotApiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
601
- id: S.String,
602
- resourceType: S.String,
603
- resourceTypeDisplayName: S.String,
604
- requestMethod: S.String,
605
- url: S.String,
606
- responseCode: S.Number,
607
- timestamp: S.String,
608
- dataTooLarge: S.Boolean,
609
- })).annotate({
610
- identifier: "VantaTestSnapshotApiRequest",
611
- });
612
- export const VantaTestSnapshotEvidenceDetailApiRequestsList = /*@__PURE__*/ S.Array(VantaTestSnapshotApiRequest);
613
- export const VantaTestSnapshotEvidenceDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
614
- testId: S.String,
615
- testName: S.String,
616
- description: S.String,
617
- evaluationCriteria: S.NullOr(S.String),
618
- integrations: VantaTestSnapshotEvidenceDetailIntegrationsList,
619
- slaRemediation: S.NullOr(VantaTestSnapshotSlaRemediation),
620
- rawTestData: VantaTestSnapshotEvidenceDetailRawTestDataList,
621
- outOfScopeResources: S.optional(VantaTestSnapshotOutOfScopeResources),
622
- apiRequests: S.optional(VantaTestSnapshotEvidenceDetailApiRequestsList),
623
- })).annotate({
624
- identifier: "VantaTestSnapshotEvidenceDetail",
625
- });
626
- export const GetOrganizationInformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
627
- auditId: S.String.pipe(T.Label()),
628
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/organization/information", code: 200 }))).annotate({
629
- identifier: "GetOrganizationInformationRequest",
630
- });
631
- export const AuditOrganizationCompanyLogo = /*@__PURE__*/ S.suspend(() => S.Struct({
632
- url: S.String,
633
- })).annotate({
634
- identifier: "AuditOrganizationCompanyLogo",
635
- });
636
- export const AuditOrganizationInformation = /*@__PURE__*/ S.suspend(() => S.Struct({
637
- id: S.String,
638
- displayName: S.String,
639
- legalName: S.optional(S.NullOr(S.String)),
640
- incorporation: S.optional(S.NullOr(S.String)),
641
- url: S.optional(S.NullOr(S.String)),
642
- mailingAddress: S.optional(S.NullOr(S.String)),
643
- telephone: S.optional(S.NullOr(S.String)),
644
- companyLogo: S.optional(S.NullOr(AuditOrganizationCompanyLogo)),
645
- })).annotate({
646
- identifier: "AuditOrganizationInformation",
647
- });
648
- export const GetOrganizationNotificationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
649
- auditId: S.String.pipe(T.Label()),
650
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/organization/notifications", code: 200 }))).annotate({
651
- identifier: "GetOrganizationNotificationsRequest",
652
- });
653
- export const AuditOrganizationNotificationsSubscribedChannelTypesList = /*@__PURE__*/ S.Array(S.String);
654
- export const AuditOrganizationNotificationSubscription = /*@__PURE__*/ S.suspend(() => S.Struct({
655
- id: S.String,
656
- address: S.String,
657
- cadence: S.NullOr(S.String),
658
- unsubSettingsKey: S.String,
659
- toggleIsSubscribed: S.Boolean,
660
- })).annotate({
661
- identifier: "AuditOrganizationNotificationSubscription",
662
- });
663
- export const AuditOrganizationNotificationsExternalNotificationsList = /*@__PURE__*/ S.Array(AuditOrganizationNotificationSubscription);
664
- export const AuditOrganizationNotifications = /*@__PURE__*/ S.suspend(() => S.Struct({
665
- id: S.String,
666
- preferredTimeZone: S.optional(S.NullOr(S.String)),
667
- employeeDigestFrequency: S.optional(S.NullOr(S.String)),
668
- subscribedChannelTypes: S.optional(AuditOrganizationNotificationsSubscribedChannelTypesList),
669
- externalNotifications: S.optional(AuditOrganizationNotificationsExternalNotificationsList),
670
- })).annotate({
671
- identifier: "AuditOrganizationNotifications",
672
- });
673
- export const ListAccountAccessServicesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
674
- auditId: S.String.pipe(T.Label()),
675
- pageSize: S.optional(S.Number.pipe(T.Query())),
676
- pageCursor: S.optional(S.String.pipe(T.Query())),
677
- }).pipe(T.Http({
678
- method: "GET",
679
- uri: "/audits/{auditId}/personnel/account-access/services",
680
- code: 200,
681
- }))).annotate({
682
- identifier: "ListAccountAccessServicesRequest",
683
- });
684
- export const AccountAccessService = /*@__PURE__*/ S.suspend(() => S.Struct({
685
- id: S.String,
686
- credentialDisplayName: S.String,
687
- service: S.String,
688
- subAccountId: S.NullOr(S.String),
689
- })).annotate({ identifier: "AccountAccessService" });
690
- export const PaginatedResponseAccountAccessServiceResultsDataList = /*@__PURE__*/ S.Array(AccountAccessService);
691
- export const PageInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
692
- endCursor: S.NullOr(S.String),
693
- hasNextPage: S.Boolean,
694
- hasPreviousPage: S.Boolean,
695
- startCursor: S.NullOr(S.String),
696
- })).annotate({ identifier: "PageInfo" });
697
- export const PaginatedResponseAccountAccessServiceResults = /*@__PURE__*/ S.suspend(() => S.Struct({
698
- data: PaginatedResponseAccountAccessServiceResultsDataList,
699
- pageInfo: PageInfo,
700
- })).annotate({
701
- identifier: "PaginatedResponseAccountAccessServiceResults",
702
- });
703
- export const PaginatedResponseAccountAccessService = /*@__PURE__*/ S.suspend(() => S.Struct({
704
- results: PaginatedResponseAccountAccessServiceResults,
705
- })).annotate({
706
- identifier: "PaginatedResponseAccountAccessService",
707
- });
708
- export const ListAuditCommentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
709
- auditId: S.String.pipe(T.Label()),
710
- pageSize: S.optional(S.Number.pipe(T.Query())),
711
- pageCursor: S.optional(S.String.pipe(T.Query())),
712
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
713
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/comments", code: 200 }))).annotate({ identifier: "ListAuditCommentsRequest" });
714
- export const PaginatedResponseCommentResultsDataList = /*@__PURE__*/ S.Array(Comment);
715
- export const PaginatedResponseCommentResults = /*@__PURE__*/ S.suspend(() => S.Struct({
716
- data: PaginatedResponseCommentResultsDataList,
717
- pageInfo: PageInfo,
718
- })).annotate({
719
- identifier: "PaginatedResponseCommentResults",
720
- });
721
- export const PaginatedResponseComment = /*@__PURE__*/ S.suspend(() => S.Struct({
722
- results: PaginatedResponseCommentResults,
723
- })).annotate({ identifier: "PaginatedResponseComment" });
724
- export const ListAuditControlsRequestExternalIdMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
725
- export const ListAuditControlsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
726
- auditId: S.String.pipe(T.Label()),
727
- pageSize: S.optional(S.Number.pipe(T.Query())),
728
- pageCursor: S.optional(S.String.pipe(T.Query())),
729
- externalIdMatchesAny: S.optional(ListAuditControlsRequestExternalIdMatchesAnyList.pipe(T.Query())),
730
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 }))).annotate({ identifier: "ListAuditControlsRequest" });
731
- export const AuditorControlDomainsList = /*@__PURE__*/ S.Array(S.String);
732
- export const AuditorControlCustomFieldsList = /*@__PURE__*/ S.Array(CustomField);
733
- export const SectionPrinciple = /*@__PURE__*/ S.suspend(() => S.Struct({
734
- id: S.String,
735
- name: S.String,
736
- })).annotate({ identifier: "SectionPrinciple" });
737
- export const Section = /*@__PURE__*/ S.suspend(() => S.Struct({
738
- name: S.String,
739
- framework: S.String,
740
- principle: S.NullOr(SectionPrinciple),
741
- })).annotate({ identifier: "Section" });
742
- export const AuditorControlSectionsList = /*@__PURE__*/ S.Array(Section);
743
- export const AuditorControlInScopeSegmentIdsList = /*@__PURE__*/ S.Array(S.String);
744
- export const AuditControlAssessmentState = S.String;
745
- export const AuditControlAssessment = /*@__PURE__*/ S.suspend(() => S.Struct({
746
- segmentId: S.String,
747
- assessmentState: AuditControlAssessmentState,
748
- justification: S.NullOr(S.String),
749
- })).annotate({ identifier: "AuditControlAssessment" });
750
- export const AuditorControlAssessmentsList = /*@__PURE__*/ S.Array(AuditControlAssessment);
751
- export const AuditorControl = /*@__PURE__*/ S.suspend(() => S.Struct({
752
- id: S.String,
753
- externalId: S.NullOr(S.String),
754
- name: S.String,
755
- description: S.String,
756
- source: ControlSource,
757
- domains: AuditorControlDomainsList,
758
- owner: S.NullOr(Owner),
759
- role: S.optional(S.NullOr(S.String)),
760
- customFields: AuditorControlCustomFieldsList,
761
- creationDate: S.NullOr(S.String),
762
- modificationDate: S.NullOr(S.String),
763
- framework: S.String,
764
- sections: AuditorControlSectionsList,
765
- inScopeSegmentIds: AuditorControlInScopeSegmentIdsList,
766
- assessments: AuditorControlAssessmentsList,
767
- })).annotate({ identifier: "AuditorControl" });
768
- export const PaginatedResponseAuditorControlResultsDataList = /*@__PURE__*/ S.Array(AuditorControl);
769
- export const PaginatedResponseAuditorControlResults = /*@__PURE__*/ S.suspend(() => S.Struct({
770
- data: PaginatedResponseAuditorControlResultsDataList,
771
- pageInfo: PageInfo,
772
- })).annotate({
773
- identifier: "PaginatedResponseAuditorControlResults",
774
- });
775
- export const PaginatedResponseAuditorControl = /*@__PURE__*/ S.suspend(() => S.Struct({
776
- results: PaginatedResponseAuditorControlResults,
777
- })).annotate({
778
- identifier: "PaginatedResponseAuditorControl",
779
- });
780
- export const ListAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
781
- auditId: S.String.pipe(T.Label()),
782
- pageSize: S.optional(S.Number.pipe(T.Query())),
783
- pageCursor: S.optional(S.String.pipe(T.Query())),
784
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
785
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence", code: 200 }))).annotate({ identifier: "ListAuditEvidenceRequest" });
786
- export const PaginatedResponseEvidenceResultsDataList = /*@__PURE__*/ S.Array(Evidence);
787
- export const PaginatedResponseEvidenceResults = /*@__PURE__*/ S.suspend(() => S.Struct({
788
- data: PaginatedResponseEvidenceResultsDataList,
789
- pageInfo: PageInfo,
790
- })).annotate({
791
- identifier: "PaginatedResponseEvidenceResults",
792
- });
793
- export const PaginatedResponseEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
794
- results: PaginatedResponseEvidenceResults,
795
- })).annotate({
796
- identifier: "PaginatedResponseEvidence",
797
- });
798
- export const ListAuditEvidenceUrlsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
799
- auditId: S.String.pipe(T.Label()),
800
- auditEvidenceId: S.String.pipe(T.Label()),
801
- pageSize: S.optional(S.Number.pipe(T.Query())),
802
- pageCursor: S.optional(S.String.pipe(T.Query())),
803
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence/{auditEvidenceId}/urls", code: 200 }))).annotate({
804
- identifier: "ListAuditEvidenceUrlsRequest",
805
- });
806
- export const EvidenceUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
807
- id: S.String,
808
- url: S.String,
809
- filename: S.String,
810
- isDownloadable: S.Boolean,
811
- mimeType: S.NullOr(S.String),
812
- })).annotate({ identifier: "EvidenceUrl" });
813
- export const PaginatedResponseEvidenceUrlResultsDataList = /*@__PURE__*/ S.Array(EvidenceUrl);
814
- export const PaginatedResponseEvidenceUrlResults = /*@__PURE__*/ S.suspend(() => S.Struct({
815
- data: PaginatedResponseEvidenceUrlResultsDataList,
816
- pageInfo: PageInfo,
817
- })).annotate({
818
- identifier: "PaginatedResponseEvidenceUrlResults",
819
- });
820
- export const PaginatedResponseEvidenceUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
821
- results: PaginatedResponseEvidenceUrlResults,
822
- })).annotate({
823
- identifier: "PaginatedResponseEvidenceUrl",
824
- });
825
- export const ListAuditIssuesRequestSnapshotIdMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
826
- export const IssueSnapshotItemOrderBy = S.String;
827
- export const OrderDirection = S.String;
828
- export const ListAuditIssuesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
829
- auditId: S.String.pipe(T.Label()),
830
- pageSize: S.optional(S.Number.pipe(T.Query())),
831
- pageCursor: S.optional(S.String.pipe(T.Query())),
832
- search: S.optional(S.String.pipe(T.Query())),
833
- snapshotIdMatchesAny: S.optional(ListAuditIssuesRequestSnapshotIdMatchesAnyList.pipe(T.Query())),
834
- createdAfterDate: S.optional(S.String.pipe(T.Query())),
835
- createdBeforeDate: S.optional(S.String.pipe(T.Query())),
836
- detectedAfterDate: S.optional(S.String.pipe(T.Query())),
837
- detectedBeforeDate: S.optional(S.String.pipe(T.Query())),
838
- orderBy: S.optional(IssueSnapshotItemOrderBy.pipe(T.Query())),
839
- orderDirection: S.optional(OrderDirection.pipe(T.Query())),
840
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/items", code: 200 }))).annotate({ identifier: "ListAuditIssuesRequest" });
841
- export const IssueStatusTypeForSnapshot = S.String;
842
- export const IssueSnapshotItemApprovalProgress = /*@__PURE__*/ S.suspend(() => S.Struct({
843
- approvedCount: S.Number,
844
- totalApprovers: S.Number,
845
- })).annotate({
846
- identifier: "IssueSnapshotItemApprovalProgress",
847
- });
848
- export const IssueSnapshotItem = /*@__PURE__*/ S.suspend(() => S.Struct({
849
- id: S.String,
850
- title: S.optional(S.String),
851
- description: S.optional(S.String),
852
- readableIssueId: S.String,
853
- issueId: S.String,
854
- snapshotId: S.String,
855
- dueDate: S.optional(S.NullOr(S.String)),
856
- status: S.optional(IssueStatusTypeForSnapshot),
857
- approvalProgress: S.optional(S.NullOr(IssueSnapshotItemApprovalProgress)),
858
- lastModifiedAt: S.optional(S.String),
859
- createdAt: S.optional(S.String),
860
- detectedAt: S.optional(S.String),
861
- })).annotate({ identifier: "IssueSnapshotItem" });
862
- export const PaginatedResponseIssueSnapshotItemResultsDataList = /*@__PURE__*/ S.Array(IssueSnapshotItem);
863
- export const PaginatedResponseIssueSnapshotItemResults = /*@__PURE__*/ S.suspend(() => S.Struct({
864
- data: PaginatedResponseIssueSnapshotItemResultsDataList,
865
- pageInfo: PageInfo,
866
- })).annotate({
867
- identifier: "PaginatedResponseIssueSnapshotItemResults",
868
- });
869
- export const PaginatedResponseIssueSnapshotItem = /*@__PURE__*/ S.suspend(() => S.Struct({
870
- results: PaginatedResponseIssueSnapshotItemResults,
871
- })).annotate({
872
- identifier: "PaginatedResponseIssueSnapshotItem",
873
- });
874
- export const RiskOrderBy = S.String;
875
- export const ListAuditRisksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
876
- auditId: S.String.pipe(T.Label()),
877
- snapshotId: S.String.pipe(T.Label()),
878
- pageSize: S.optional(S.Number.pipe(T.Query())),
879
- pageCursor: S.optional(S.String.pipe(T.Query())),
880
- search: S.optional(S.String.pipe(T.Query())),
881
- orderBy: S.optional(RiskOrderBy.pipe(T.Query())),
882
- orderDirection: S.optional(OrderDirection.pipe(T.Query())),
883
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/risks/{snapshotId}", code: 200 }))).annotate({ identifier: "ListAuditRisksRequest" });
884
- export const AuditRiskTreatment = S.String;
885
- export const AuditRiskTreatmentStatus = S.String;
886
- export const AuditRiskReviewStatus = S.String;
887
- export const AuditRiskOwner = /*@__PURE__*/ S.suspend(() => S.Struct({
888
- displayName: S.String,
889
- imageUrl: S.NullOr(S.String),
890
- })).annotate({ identifier: "AuditRiskOwner" });
891
- export const AuditRiskCategoriesList = /*@__PURE__*/ S.Array(S.String);
892
- export const AuditRiskCia = S.String;
893
- export const AuditRiskCiaCategoriesList = /*@__PURE__*/ S.Array(AuditRiskCia);
894
- export const AuditRiskLinkedControlIdsList = /*@__PURE__*/ S.Array(S.String);
895
- export const AuditRisk = /*@__PURE__*/ S.suspend(() => S.Struct({
896
- id: S.String,
897
- riskId: S.NullOr(S.String),
898
- riskScenario: S.optional(S.NullOr(S.String)),
899
- likelihood: S.optional(S.NullOr(S.Number)),
900
- impact: S.optional(S.NullOr(S.Number)),
901
- inherentRisk: S.optional(S.NullOr(S.Number)),
902
- treatment: S.optional(S.NullOr(AuditRiskTreatment)),
903
- treatmentStatus: S.optional(S.NullOr(AuditRiskTreatmentStatus)),
904
- residualRisk: S.optional(S.NullOr(S.Number)),
905
- reviewStatus: S.optional(S.NullOr(AuditRiskReviewStatus)),
906
- owner: S.optional(S.NullOr(AuditRiskOwner)),
907
- categories: S.optional(AuditRiskCategoriesList),
908
- ciaCategories: S.optional(AuditRiskCiaCategoriesList),
909
- linkedControlIds: S.optional(AuditRiskLinkedControlIdsList),
910
- identified: S.optional(S.NullOr(S.String)),
911
- })).annotate({ identifier: "AuditRisk" });
912
- export const PaginatedResponseAuditRiskResultsDataList = /*@__PURE__*/ S.Array(AuditRisk);
913
- export const PaginatedResponseAuditRiskResults = /*@__PURE__*/ S.suspend(() => S.Struct({
914
- data: PaginatedResponseAuditRiskResultsDataList,
915
- pageInfo: PageInfo,
916
- })).annotate({
917
- identifier: "PaginatedResponseAuditRiskResults",
918
- });
919
- export const PaginatedResponseAuditRisk = /*@__PURE__*/ S.suspend(() => S.Struct({
920
- results: PaginatedResponseAuditRiskResults,
921
- })).annotate({
922
- identifier: "PaginatedResponseAuditRisk",
923
- });
924
- export const ListAuditsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
925
- pageSize: S.optional(S.Number.pipe(T.Query())),
926
- pageCursor: S.optional(S.String.pipe(T.Query())),
927
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
928
- isActiveAudit: S.optional(S.Boolean.pipe(T.Query())),
929
- }).pipe(T.Http({ method: "GET", uri: "/audits", code: 200 }))).annotate({ identifier: "ListAuditsRequest" });
930
- export const PaginatedResponseAuditResultsDataList = /*@__PURE__*/ S.Array(Audit);
931
- export const PaginatedResponseAuditResults = /*@__PURE__*/ S.suspend(() => S.Struct({
932
- data: PaginatedResponseAuditResultsDataList,
933
- pageInfo: PageInfo,
934
- })).annotate({
935
- identifier: "PaginatedResponseAuditResults",
936
- });
937
- export const PaginatedResponseAudit = /*@__PURE__*/ S.suspend(() => S.Struct({
938
- results: PaginatedResponseAuditResults,
939
- })).annotate({ identifier: "PaginatedResponseAudit" });
940
- export const ListAuditSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
941
- auditId: S.String.pipe(T.Label()),
942
- pageSize: S.optional(S.Number.pipe(T.Query())),
943
- pageCursor: S.optional(S.String.pipe(T.Query())),
944
- search: S.optional(S.String.pipe(T.Query())),
945
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/snapshots", code: 200 }))).annotate({
946
- identifier: "ListAuditSnapshotsRequest",
947
- });
948
- export const IssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
949
- id: S.String,
950
- title: S.optional(S.String),
951
- description: S.optional(S.String),
952
- createdAt: S.optional(S.String),
953
- })).annotate({ identifier: "IssueSnapshotMetadata" });
954
- export const PaginatedResponseIssueSnapshotMetadataResultsDataList = /*@__PURE__*/ S.Array(IssueSnapshotMetadata);
955
- export const PaginatedResponseIssueSnapshotMetadataResults = /*@__PURE__*/ S.suspend(() => S.Struct({
956
- data: PaginatedResponseIssueSnapshotMetadataResultsDataList,
957
- pageInfo: PageInfo,
958
- })).annotate({
959
- identifier: "PaginatedResponseIssueSnapshotMetadataResults",
960
- });
961
- export const PaginatedResponseIssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
962
- results: PaginatedResponseIssueSnapshotMetadataResults,
963
- })).annotate({
964
- identifier: "PaginatedResponseIssueSnapshotMetadata",
965
- });
966
- export const ApiCodeChangeSource = S.String;
967
- export const ListCodeChangesRequestSourcesMatchesAnyList = /*@__PURE__*/ S.Array(ApiCodeChangeSource);
968
- export const ListCodeChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
969
- auditId: S.String.pipe(T.Label()),
970
- pageSize: S.optional(S.Number.pipe(T.Query())),
971
- pageCursor: S.optional(S.String.pipe(T.Query())),
972
- search: S.optional(S.String.pipe(T.Query())),
973
- sourcesMatchesAny: S.optional(ListCodeChangesRequestSourcesMatchesAnyList.pipe(T.Query())),
974
- closedAfterDate: S.optional(S.String.pipe(T.Query())),
975
- closedBeforeDate: S.optional(S.String.pipe(T.Query())),
976
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/assets/code-changes", code: 200 }))).annotate({ identifier: "ListCodeChangesRequest" });
977
- export const CodeChange = /*@__PURE__*/ S.suspend(() => S.Struct({
978
- id: S.String,
979
- codeChange: S.String,
980
- identifier: S.optional(S.String),
981
- service: S.optional(S.String),
982
- repository: S.optional(S.String),
983
- openedAt: S.optional(S.String),
984
- closedAt: S.optional(S.String),
985
- })).annotate({ identifier: "CodeChange" });
986
- export const PaginatedResponseCodeChangeResultsDataList = /*@__PURE__*/ S.Array(CodeChange);
987
- export const PaginatedResponseCodeChangeResults = /*@__PURE__*/ S.suspend(() => S.Struct({
988
- data: PaginatedResponseCodeChangeResultsDataList,
989
- pageInfo: PageInfo,
990
- })).annotate({
991
- identifier: "PaginatedResponseCodeChangeResults",
992
- });
993
- export const PaginatedResponseCodeChange = /*@__PURE__*/ S.suspend(() => S.Struct({
994
- results: PaginatedResponseCodeChangeResults,
995
- })).annotate({
996
- identifier: "PaginatedResponseCodeChange",
997
- });
998
- export const ListCommentsForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
999
- auditId: S.String.pipe(T.Label()),
1000
- controlId: S.String.pipe(T.Label()),
1001
- pageSize: S.optional(S.Number.pipe(T.Query())),
1002
- pageCursor: S.optional(S.String.pipe(T.Query())),
1003
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
1004
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls/{controlId}/comments", code: 200 }))).annotate({
1005
- identifier: "ListCommentsForControlRequest",
1006
- });
1007
- export const PaginatedResponseAuditControlCommentResultsDataList = /*@__PURE__*/ S.Array(AuditControlComment);
1008
- export const PaginatedResponseAuditControlCommentResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1009
- data: PaginatedResponseAuditControlCommentResultsDataList,
1010
- pageInfo: PageInfo,
1011
- })).annotate({
1012
- identifier: "PaginatedResponseAuditControlCommentResults",
1013
- });
1014
- export const PaginatedResponseAuditControlComment = /*@__PURE__*/ S.suspend(() => S.Struct({
1015
- results: PaginatedResponseAuditControlCommentResults,
1016
- })).annotate({
1017
- identifier: "PaginatedResponseAuditControlComment",
1018
- });
1019
- export const ListCommentsForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1020
- auditId: S.String.pipe(T.Label()),
1021
- requestId: S.String.pipe(T.Label()),
1022
- pageSize: S.optional(S.Number.pipe(T.Query())),
1023
- pageCursor: S.optional(S.String.pipe(T.Query())),
1024
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
1025
- }).pipe(T.Http({
1026
- method: "GET",
1027
- uri: "/audits/{auditId}/information-requests/{requestId}/comments",
1028
- code: 200,
1029
- }))).annotate({
1030
- identifier: "ListCommentsForInformationRequestRequest",
1031
- });
1032
- export const PaginatedResponseInformationRequestCommentResultsDataList = /*@__PURE__*/ S.Array(InformationRequestComment);
1033
- export const PaginatedResponseInformationRequestCommentResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1034
- data: PaginatedResponseInformationRequestCommentResultsDataList,
1035
- pageInfo: PageInfo,
1036
- })).annotate({
1037
- identifier: "PaginatedResponseInformationRequestCommentResults",
1038
- });
1039
- export const PaginatedResponseInformationRequestComment = /*@__PURE__*/ S.suspend(() => S.Struct({
1040
- results: PaginatedResponseInformationRequestCommentResults,
1041
- })).annotate({
1042
- identifier: "PaginatedResponseInformationRequestComment",
1043
- });
1044
- export const ListInformationRequestActivityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1045
- auditId: S.String.pipe(T.Label()),
1046
- requestId: S.String.pipe(T.Label()),
1047
- pageSize: S.optional(S.Number.pipe(T.Query())),
1048
- pageCursor: S.optional(S.String.pipe(T.Query())),
1049
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
1050
- }).pipe(T.Http({
1051
- method: "GET",
1052
- uri: "/audits/{auditId}/information-requests/{requestId}/activity",
1053
- code: 200,
1054
- }))).annotate({
1055
- identifier: "ListInformationRequestActivityRequest",
1056
- });
1057
- export const InformationRequestActivityType = S.String;
1058
- export const InformationRequestActivityLogOldStatus = S.String;
1059
- export const InformationRequestActivityLogNewStatus = S.String;
1060
- export const EvidenceFillOutcome = S.String;
1061
- export const InformationRequestActivityLog = /*@__PURE__*/ S.suspend(() => S.Struct({
1062
- id: S.String,
1063
- activityType: InformationRequestActivityType,
1064
- timestamp: S.String,
1065
- userEmail: S.NullOr(S.String),
1066
- oldStatus: S.NullOr(InformationRequestActivityLogOldStatus),
1067
- newStatus: S.NullOr(InformationRequestActivityLogNewStatus),
1068
- reason: S.NullOr(S.String),
1069
- fillOutcome: S.NullOr(EvidenceFillOutcome),
1070
- sourceInformationRequestId: S.NullOr(S.String),
1071
- sourceAuditId: S.NullOr(S.String),
1072
- })).annotate({
1073
- identifier: "InformationRequestActivityLog",
1074
- });
1075
- export const PaginatedResponseInformationRequestActivityLogResultsDataList = /*@__PURE__*/ S.Array(InformationRequestActivityLog);
1076
- export const PaginatedResponseInformationRequestActivityLogResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1077
- data: PaginatedResponseInformationRequestActivityLogResultsDataList,
1078
- pageInfo: PageInfo,
1079
- })).annotate({
1080
- identifier: "PaginatedResponseInformationRequestActivityLogResults",
1081
- });
1082
- export const PaginatedResponseInformationRequestActivityLog = /*@__PURE__*/ S.suspend(() => S.Struct({
1083
- results: PaginatedResponseInformationRequestActivityLogResults,
1084
- })).annotate({
1085
- identifier: "PaginatedResponseInformationRequestActivityLog",
1086
- });
1087
- export const ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList =
1088
- /*@__PURE__*/ S.Array(InformationRequestSupportedEvidenceType);
1089
- export const ListInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1090
- auditId: S.String.pipe(T.Label()),
1091
- requestId: S.String.pipe(T.Label()),
1092
- pageSize: S.optional(S.Number.pipe(T.Query())),
1093
- pageCursor: S.optional(S.String.pipe(T.Query())),
1094
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
1095
- evidenceTypeMatchesAny: S.optional(ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList.pipe(T.Query())),
1096
- }).pipe(T.Http({
1097
- method: "GET",
1098
- uri: "/audits/{auditId}/information-requests/{requestId}/evidence",
1099
- code: 200,
1100
- }))).annotate({
1101
- identifier: "ListInformationRequestEvidenceRequest",
1102
- });
1103
- export const PaginatedResponseInformationRequestEvidenceResultsDataList = /*@__PURE__*/ S.Array(InformationRequestEvidence);
1104
- export const PaginatedResponseInformationRequestEvidenceResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1105
- data: PaginatedResponseInformationRequestEvidenceResultsDataList,
1106
- pageInfo: PageInfo,
1107
- })).annotate({
1108
- identifier: "PaginatedResponseInformationRequestEvidenceResults",
1109
- });
1110
- export const PaginatedResponseInformationRequestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
1111
- results: PaginatedResponseInformationRequestEvidenceResults,
1112
- })).annotate({
1113
- identifier: "PaginatedResponseInformationRequestEvidence",
1114
- });
1115
- export const ListInformationRequestsRequestSegmentIdsMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
1116
- export const ListInformationRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1117
- auditId: S.String.pipe(T.Label()),
1118
- pageSize: S.optional(S.Number.pipe(T.Query())),
1119
- pageCursor: S.optional(S.String.pipe(T.Query())),
1120
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
1121
- segmentIdsMatchesAny: S.optional(ListInformationRequestsRequestSegmentIdsMatchesAnyList.pipe(T.Query())),
1122
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/information-requests", code: 200 }))).annotate({
1123
- identifier: "ListInformationRequestsRequest",
1124
- });
1125
- export const PaginatedResponseInformationRequestResultsDataList = /*@__PURE__*/ S.Array(InformationRequest);
1126
- export const PaginatedResponseInformationRequestResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1127
- data: PaginatedResponseInformationRequestResultsDataList,
1128
- pageInfo: PageInfo,
1129
- })).annotate({
1130
- identifier: "PaginatedResponseInformationRequestResults",
1131
- });
1132
- export const PaginatedResponseInformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1133
- results: PaginatedResponseInformationRequestResults,
1134
- })).annotate({
1135
- identifier: "PaginatedResponseInformationRequest",
1136
- });
1137
- export const ListInformationRequestsForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1138
- auditId: S.String.pipe(T.Label()),
1139
- controlId: S.String.pipe(T.Label()),
1140
- pageSize: S.optional(S.Number.pipe(T.Query())),
1141
- pageCursor: S.optional(S.String.pipe(T.Query())),
1142
- }).pipe(T.Http({
1143
- method: "GET",
1144
- uri: "/audits/{auditId}/controls/{controlId}/information-requests",
1145
- code: 200,
1146
- }))).annotate({
1147
- identifier: "ListInformationRequestsForControlRequest",
1148
- });
1149
- export const AuditIntegrationTag = S.String;
1150
- export const ListIntegrationsRequestTagsMatchesAnyList = /*@__PURE__*/ S.Array(AuditIntegrationTag);
1151
- export const AuditIntegrationCategory = S.String;
1152
- export const ListIntegrationsRequestCategoriesMatchesAnyList = /*@__PURE__*/ S.Array(AuditIntegrationCategory);
1153
- export const ListIntegrationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1154
- auditId: S.String.pipe(T.Label()),
1155
- pageSize: S.optional(S.Number.pipe(T.Query())),
1156
- pageCursor: S.optional(S.String.pipe(T.Query())),
1157
- search: S.optional(S.String.pipe(T.Query())),
1158
- tagsMatchesAny: S.optional(ListIntegrationsRequestTagsMatchesAnyList.pipe(T.Query())),
1159
- categoriesMatchesAny: S.optional(ListIntegrationsRequestCategoriesMatchesAnyList.pipe(T.Query())),
1160
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/integrations", code: 200 }))).annotate({ identifier: "ListIntegrationsRequest" });
1161
- export const AuditIntegrationTagsList = /*@__PURE__*/ S.Array(S.String);
1162
- export const AuditIntegrationCategoriesList = /*@__PURE__*/ S.Array(S.String);
1163
- export const AuditIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
1164
- id: S.String,
1165
- name: S.String,
1166
- tags: S.optional(AuditIntegrationTagsList),
1167
- categories: S.optional(AuditIntegrationCategoriesList),
1168
- })).annotate({ identifier: "AuditIntegration" });
1169
- export const PaginatedResponseAuditIntegrationResultsDataList = /*@__PURE__*/ S.Array(AuditIntegration);
1170
- export const PaginatedResponseAuditIntegrationResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1171
- data: PaginatedResponseAuditIntegrationResultsDataList,
1172
- pageInfo: PageInfo,
1173
- })).annotate({
1174
- identifier: "PaginatedResponseAuditIntegrationResults",
1175
- });
1176
- export const PaginatedResponseAuditIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
1177
- results: PaginatedResponseAuditIntegrationResults,
1178
- })).annotate({
1179
- identifier: "PaginatedResponseAuditIntegration",
1180
- });
1181
- export const AccountAccessStatus = S.String;
1182
- export const ListPersonnelAccountAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1183
- auditId: S.String.pipe(T.Label()),
1184
- serviceId: S.String.pipe(T.Label()),
1185
- pageSize: S.optional(S.Number.pipe(T.Query())),
1186
- pageCursor: S.optional(S.String.pipe(T.Query())),
1187
- search: S.optional(S.String.pipe(T.Query())),
1188
- status: S.optional(AccountAccessStatus.pipe(T.Query())),
1189
- }).pipe(T.Http({
1190
- method: "GET",
1191
- uri: "/audits/{auditId}/personnel/account-access/{serviceId}",
1192
- code: 200,
1193
- }))).annotate({
1194
- identifier: "ListPersonnelAccountAccessRequest",
1195
- });
1196
- export const AccountAccessRoleList = /*@__PURE__*/ S.Array(S.String);
1197
- export const AccountAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
1198
- id: S.String,
1199
- accountName: S.String,
1200
- owner: S.optional(S.NullOr(S.String)),
1201
- role: S.optional(AccountAccessRoleList),
1202
- status: S.optional(AccountAccessStatus),
1203
- mfa: S.optional(S.NullOr(S.Boolean)),
1204
- createdDate: S.optional(S.NullOr(S.String)),
1205
- deactivatedDate: S.optional(S.NullOr(S.String)),
1206
- })).annotate({ identifier: "AccountAccess" });
1207
- export const PaginatedResponseAccountAccessResultsDataList = /*@__PURE__*/ S.Array(AccountAccess);
1208
- export const PaginatedResponseAccountAccessResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1209
- data: PaginatedResponseAccountAccessResultsDataList,
1210
- pageInfo: PageInfo,
1211
- })).annotate({
1212
- identifier: "PaginatedResponseAccountAccessResults",
1213
- });
1214
- export const PaginatedResponseAccountAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
1215
- results: PaginatedResponseAccountAccessResults,
1216
- })).annotate({
1217
- identifier: "PaginatedResponseAccountAccess",
1218
- });
1219
- export const ListPersonnelGroupsRequestSourcesMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
1220
- export const GroupOrderBy = S.String;
1221
- export const ListPersonnelGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1222
- auditId: S.String.pipe(T.Label()),
1223
- pageSize: S.optional(S.Number.pipe(T.Query())),
1224
- pageCursor: S.optional(S.String.pipe(T.Query())),
1225
- search: S.optional(S.String.pipe(T.Query())),
1226
- sourcesMatchesAny: S.optional(ListPersonnelGroupsRequestSourcesMatchesAnyList.pipe(T.Query())),
1227
- orderBy: S.optional(GroupOrderBy.pipe(T.Query())),
1228
- orderDirection: S.optional(OrderDirection.pipe(T.Query())),
1229
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/groups", code: 200 }))).annotate({
1230
- identifier: "ListPersonnelGroupsRequest",
1231
- });
1232
- export const PersonnelGroupTask = /*@__PURE__*/ S.suspend(() => S.Struct({
1233
- name: S.String,
1234
- })).annotate({ identifier: "PersonnelGroupTask" });
1235
- export const PersonnelGroupTasksList = /*@__PURE__*/ S.Array(PersonnelGroupTask);
1236
- export const PersonnelGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
1237
- id: S.String,
1238
- name: S.String,
1239
- members: S.optional(S.Number),
1240
- source: S.optional(S.String),
1241
- tasks: S.optional(PersonnelGroupTasksList),
1242
- tasksLastUpdated: S.optional(S.NullOr(S.String)),
1243
- pointOfContact: S.optional(S.NullOr(S.String)),
1244
- })).annotate({ identifier: "PersonnelGroup" });
1245
- export const PaginatedResponsePersonnelGroupResultsDataList = /*@__PURE__*/ S.Array(PersonnelGroup);
1246
- export const PaginatedResponsePersonnelGroupResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1247
- data: PaginatedResponsePersonnelGroupResultsDataList,
1248
- pageInfo: PageInfo,
1249
- })).annotate({
1250
- identifier: "PaginatedResponsePersonnelGroupResults",
1251
- });
1252
- export const PaginatedResponsePersonnelGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
1253
- results: PaginatedResponsePersonnelGroupResults,
1254
- })).annotate({
1255
- identifier: "PaginatedResponsePersonnelGroup",
1256
- });
1257
- export const PeopleEmploymentStatus = S.String;
1258
- export const ListPersonnelPeopleRequestGroupsMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
1259
- export const PeopleOrderBy = S.String;
1260
- export const ListPersonnelPeopleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1261
- auditId: S.String.pipe(T.Label()),
1262
- pageSize: S.optional(S.Number.pipe(T.Query())),
1263
- pageCursor: S.optional(S.String.pipe(T.Query())),
1264
- search: S.optional(S.String.pipe(T.Query())),
1265
- status: S.optional(PeopleEmploymentStatus.pipe(T.Query())),
1266
- groupsMatchesAny: S.optional(ListPersonnelPeopleRequestGroupsMatchesAnyList.pipe(T.Query())),
1267
- orderBy: S.optional(PeopleOrderBy.pipe(T.Query())),
1268
- orderDirection: S.optional(OrderDirection.pipe(T.Query())),
1269
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/people", code: 200 }))).annotate({
1270
- identifier: "ListPersonnelPeopleRequest",
1271
- });
1272
- export const PersonnelPersonGroupsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1273
- name: S.String,
1274
- })).annotate({
1275
- identifier: "PersonnelPersonGroupsItem",
1276
- });
1277
- export const PersonnelPersonGroupsList = /*@__PURE__*/ S.Array(PersonnelPersonGroupsItem);
1278
- export const PeopleSourceInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
1279
- mainSource: S.String,
1280
- supplementarySource: S.NullOr(S.String),
1281
- })).annotate({ identifier: "PeopleSourceInfo" });
1282
- export const PeopleTaskStatus = S.String;
1283
- export const PeopleTaskStatusInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
1284
- status: PeopleTaskStatus,
1285
- dueDate: S.NullOr(S.String),
1286
- completionDate: S.NullOr(S.String),
1287
- numTasksCompleted: S.NullOr(S.Number),
1288
- numTasksOverdue: S.NullOr(S.Number),
1289
- numTasksDueSoon: S.NullOr(S.Number),
1290
- })).annotate({ identifier: "PeopleTaskStatusInfo" });
1291
- export const PeopleSecurityTaskStatus = S.String;
1292
- export const PeopleSecurityTaskDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
1293
- status: PeopleSecurityTaskStatus,
1294
- dueDate: S.NullOr(S.String),
1295
- completionDate: S.NullOr(S.String),
1296
- })).annotate({
1297
- identifier: "PeopleSecurityTaskDetails",
1298
- });
1299
- export const PersonnelPerson = /*@__PURE__*/ S.suspend(() => S.Struct({
1300
- id: S.String,
1301
- name: S.String,
1302
- email: S.String,
1303
- jobTitle: S.optional(S.NullOr(S.String)),
1304
- employmentStatus: S.optional(S.NullOr(PeopleEmploymentStatus)),
1305
- startDate: S.optional(S.NullOr(S.String)),
1306
- endDate: S.optional(S.NullOr(S.String)),
1307
- groups: S.optional(PersonnelPersonGroupsList),
1308
- source: S.optional(S.NullOr(PeopleSourceInfo)),
1309
- taskStatus: S.optional(S.NullOr(PeopleTaskStatusInfo)),
1310
- lastReminded: S.optional(S.NullOr(S.String)),
1311
- policies: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1312
- trainings: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1313
- backgroundChecks: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1314
- deviceMonitoring: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1315
- customOnboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1316
- customOffboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1317
- })).annotate({ identifier: "PersonnelPerson" });
1318
- export const PaginatedResponsePersonnelPersonResultsDataList = /*@__PURE__*/ S.Array(PersonnelPerson);
1319
- export const PaginatedResponsePersonnelPersonResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1320
- data: PaginatedResponsePersonnelPersonResultsDataList,
1321
- pageInfo: PageInfo,
1322
- })).annotate({
1323
- identifier: "PaginatedResponsePersonnelPersonResults",
1324
- });
1325
- export const PaginatedResponsePersonnelPerson = /*@__PURE__*/ S.suspend(() => S.Struct({
1326
- results: PaginatedResponsePersonnelPersonResults,
1327
- })).annotate({
1328
- identifier: "PaginatedResponsePersonnelPerson",
1329
- });
1330
- export const ListRiskSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1331
- auditId: S.String.pipe(T.Label()),
1332
- pageSize: S.optional(S.Number.pipe(T.Query())),
1333
- pageCursor: S.optional(S.String.pipe(T.Query())),
1334
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/risks/snapshots", code: 200 }))).annotate({ identifier: "ListRiskSnapshotsRequest" });
1335
- export const RiskSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
1336
- id: S.String,
1337
- createdAt: S.String,
1338
- })).annotate({ identifier: "RiskSnapshot" });
1339
- export const PaginatedResponseRiskSnapshotResultsDataList = /*@__PURE__*/ S.Array(RiskSnapshot);
1340
- export const PaginatedResponseRiskSnapshotResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1341
- data: PaginatedResponseRiskSnapshotResultsDataList,
1342
- pageInfo: PageInfo,
1343
- })).annotate({
1344
- identifier: "PaginatedResponseRiskSnapshotResults",
1345
- });
1346
- export const PaginatedResponseRiskSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
1347
- results: PaginatedResponseRiskSnapshotResults,
1348
- })).annotate({
1349
- identifier: "PaginatedResponseRiskSnapshot",
1350
- });
1351
- export const ListShareInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1352
- auditId: S.String.pipe(T.Label()),
1353
- }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/share-information-request-list", code: 200 }))).annotate({
1354
- identifier: "ListShareInformationRequestRequest",
1355
- });
1356
- export const AuditVendorStatus = S.String;
1357
- export const ListVendorsRequestVendorStatusesMatchesAnyList = /*@__PURE__*/ S.Array(AuditVendorStatus);
1358
- export const AuditVendorRiskLevel = S.String;
1359
- export const ListVendorsRequestInherentRiskMatchesAnyList = /*@__PURE__*/ S.Array(AuditVendorRiskLevel);
1360
- export const VendorOrderBy = S.String;
1361
- export const ListVendorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1362
- auditId: S.String.pipe(T.Label()),
1363
- pageSize: S.optional(S.Number.pipe(T.Query())),
1364
- pageCursor: S.optional(S.String.pipe(T.Query())),
1365
- search: S.optional(S.String.pipe(T.Query())),
1366
- vendorStatusesMatchesAny: S.optional(ListVendorsRequestVendorStatusesMatchesAnyList.pipe(T.Query())),
1367
- inherentRiskMatchesAny: S.optional(ListVendorsRequestInherentRiskMatchesAnyList.pipe(T.Query())),
1368
- orderBy: S.optional(VendorOrderBy.pipe(T.Query())),
1369
- orderDirection: S.optional(OrderDirection.pipe(T.Query())),
1370
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/managed-vendors", code: 200 }))).annotate({ identifier: "ListVendorsRequest" });
1371
- export const AuditVendorDataAgreements = /*@__PURE__*/ S.suspend(() => S.Struct({
1372
- total: S.Number,
1373
- complete: S.Number,
1374
- })).annotate({
1375
- identifier: "AuditVendorDataAgreements",
1376
- });
1377
- export const AuditVendor = /*@__PURE__*/ S.suspend(() => S.Struct({
1378
- id: S.String,
1379
- name: S.String,
1380
- inherentRisk: S.optional(AuditVendorRiskLevel),
1381
- status: S.optional(AuditVendorStatus),
1382
- findings: S.optional(S.Number),
1383
- lastReviewedCompleted: S.optional(S.NullOr(S.String)),
1384
- nextSecurityReviewDueDate: S.optional(S.NullOr(S.String)),
1385
- vendorCategory: S.optional(S.NullOr(S.String)),
1386
- residualRisk: S.optional(S.NullOr(AuditVendorRiskLevel)),
1387
- dataAgreements: S.optional(S.NullOr(AuditVendorDataAgreements)),
1388
- })).annotate({ identifier: "AuditVendor" });
1389
- export const PaginatedResponseAuditVendorResultsDataList = /*@__PURE__*/ S.Array(AuditVendor);
1390
- export const PaginatedResponseAuditVendorResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1391
- data: PaginatedResponseAuditVendorResultsDataList,
1392
- pageInfo: PageInfo,
1393
- })).annotate({
1394
- identifier: "PaginatedResponseAuditVendorResults",
1395
- });
1396
- export const PaginatedResponseAuditVendor = /*@__PURE__*/ S.suspend(() => S.Struct({
1397
- results: PaginatedResponseAuditVendorResults,
1398
- })).annotate({
1399
- identifier: "PaginatedResponseAuditVendor",
1400
- });
1401
- export const AuditorEnabledStateTransition = S.String;
1402
- export const UpdateAuditEvidenceRequestStatusUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
1403
- auditorEmail: S.String,
1404
- stateTransition: AuditorEnabledStateTransition,
1405
- })).annotate({
1406
- identifier: "UpdateAuditEvidenceRequestStatusUpdate",
1407
- });
1408
- export const UpdateAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1409
- auditId: S.String.pipe(T.Label()),
1410
- auditEvidenceId: S.String.pipe(T.Label()),
1411
- statusUpdate: S.optional(UpdateAuditEvidenceRequestStatusUpdate),
1412
- }).pipe(T.Http({ method: "PATCH", uri: "/audits/{auditId}/evidence/{auditEvidenceId}", code: 200 }))).annotate({
1413
- identifier: "UpdateAuditEvidenceRequest",
1414
- });
1415
- export const UpdateCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1416
- auditId: S.String.pipe(T.Label()),
1417
- controlId: S.String.pipe(T.Label()),
1418
- commentId: S.String.pipe(T.Label()),
1419
- text: S.String,
1420
- email: S.String,
1421
- }).pipe(T.Http({
1422
- method: "PATCH",
1423
- uri: "/audits/{auditId}/controls/{controlId}/comments/{commentId}",
1424
- code: 200,
1425
- }))).annotate({
1426
- identifier: "UpdateCommentForControlRequest",
1427
- });
1428
- export const UpdateCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1429
- auditId: S.String.pipe(T.Label()),
1430
- requestId: S.String.pipe(T.Label()),
1431
- commentId: S.String.pipe(T.Label()),
1432
- text: S.String,
1433
- email: S.String,
1434
- }).pipe(T.Http({
1435
- method: "PATCH",
1436
- uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
1437
- code: 200,
1438
- }))).annotate({
1439
- identifier: "UpdateCommentForInformationRequestRequest",
1440
- });
1441
- export const UpdateInformationRequestRequestFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
1442
- export const UpdateInformationRequestRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(S.String);
1443
- export const UpdateInformationRequestRequestLinkedControlIdsList = /*@__PURE__*/ S.Array(S.String);
1444
- export const UpdateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1445
- auditId: S.String.pipe(T.Label()),
1446
- requestId: S.String.pipe(T.Label()),
1447
- frameworkCodes: S.optional(UpdateInformationRequestRequestFrameworkCodesList),
1448
- description: S.optional(S.NullOr(S.String)),
1449
- dueDate: S.optional(S.NullOr(S.String)),
1450
- evidenceCaptureDate: S.optional(S.NullOr(S.String)),
1451
- requestType: S.optional(InformationRequestType),
1452
- title: S.optional(S.String),
1453
- cadence: S.optional(InformationRequestCadence),
1454
- additionalControlIds: S.optional(UpdateInformationRequestRequestAdditionalControlIdsList),
1455
- linkedControlIds: S.optional(UpdateInformationRequestRequestLinkedControlIdsList),
1456
- }).pipe(T.Http({
1457
- method: "PATCH",
1458
- uri: "/audits/{auditId}/information-requests/{requestId}",
1459
- code: 200,
1460
- }))).annotate({
1461
- identifier: "UpdateInformationRequestRequest",
1462
- });
1463
- export const UpsertAssessmentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1464
- auditId: S.String.pipe(T.Label()),
1465
- controlId: S.String.pipe(T.Label()),
1466
- segmentId: S.optional(S.String),
1467
- assessmentState: AuditControlAssessmentState,
1468
- justification: S.String,
1469
- auditorEmail: S.String,
1470
- }).pipe(T.Http({ method: "PUT", uri: "/audits/{auditId}/controls/{controlId}/assessment", code: 200 }))).annotate({
1471
- identifier: "UpsertAssessmentForControlRequest",
1472
- });
1473
- export const AuditorControlAssessment = /*@__PURE__*/ S.suspend(() => S.Struct({
1474
- controlId: S.String,
1475
- segmentId: S.String,
1476
- assessmentState: AuditControlAssessmentState,
1477
- justification: S.String,
1478
- })).annotate({ identifier: "AuditorControlAssessment" });
1479
- /** 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. */
1480
- export const acceptInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1481
- input: AcceptInformationRequestEvidenceRequest,
1482
- output: InformationRequest,
1483
- errors: [UnknownVantaError],
1484
- protocol: VantaProtocol,
1485
- retry: Retry.Retry,
1486
- }));
1487
- /** Create an auditor Create an auditor in Vanta. Rate limit: 10 requests / minute. */
1488
- export const createAuditor = /*@__PURE__*/ API.make(() => ({
1489
- input: CreateAuditorRequest,
1490
- output: Auditor,
1491
- errors: [UnknownVantaError],
1492
- protocol: VantaProtocol,
1493
- retry: Retry.Retry,
1494
- }));
1495
- /** Create a comment for audit evidence Create a comment in Vanta for a piece of evidence. Rate limit: 25 requests / minute. */
1496
- export const createCommentForAuditEvidence = /*@__PURE__*/ API.make(() => ({
1497
- input: CreateCommentForAuditEvidenceRequest,
1498
- output: Comment,
1499
- errors: [UnknownVantaError],
1500
- protocol: VantaProtocol,
1501
- retry: Retry.Retry,
1502
- }));
1503
- /** Create a comment for a control within an audit Creates a new comment on a control within an IRL audit. The comment author must be an auditor in the audit firm making the request. The comment will be associated with the control and visible to all authorized users. Returns 404 when the control is not part of the audit. Rate limit: 50 requests / minute. */
1504
- export const createCommentForControl = /*@__PURE__*/ API.make(() => ({
1505
- input: CreateCommentForControlRequest,
1506
- output: AuditControlComment,
1507
- errors: [UnknownVantaError],
1508
- protocol: VantaProtocol,
1509
- retry: Retry.Retry,
1510
- }));
1511
- /** Create a comment for an information request Creates a new comment for an information request. The comment author must be an auditor in the audit firm making the request. The comment will be associated with the information request and visible to all authorized users. Rate limit: 50 requests / minute. */
1512
- export const createCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
1513
- input: CreateCommentForInformationRequestRequest,
1514
- output: InformationRequestComment,
1515
- errors: [UnknownVantaError],
1516
- protocol: VantaProtocol,
1517
- retry: Retry.Retry,
1518
- }));
1519
- /** Create a custom control for an audit Create a custom control for an audit. This endpoint supports classic audits only. Audits that use information request lists (IRL) are not supported and return a 422 error. Rate limit: 10 requests / minute. */
1520
- export const createCustomControl = /*@__PURE__*/ API.make(() => ({
1521
- input: CreateCustomControlRequest,
1522
- output: AuditorApiControl,
1523
- errors: [UnknownVantaError],
1524
- protocol: VantaProtocol,
1525
- retry: Retry.Retry,
1526
- }));
1527
- /** Create a custom evidence request for an audit Create a custom evidence request for an audit. Rate limit: 10 requests / minute. */
1528
- export const createCustomEvidenceRequest = /*@__PURE__*/ API.make(() => ({
1529
- input: CreateCustomEvidenceRequestRequest,
1530
- output: CustomEvidenceRequest,
1531
- errors: [UnknownVantaError],
1532
- protocol: VantaProtocol,
1533
- retry: Retry.Retry,
1534
- }));
1535
- /** Create a new information request Creates a new information request for an audit during audit setup or as requirements evolve. After creating all information requests, use POST /audits/{auditId}/share-information-request-list to make them visible to the customer organization. Until shared, requests remain in draft state visible only to auditors. New requests are created in an initial state indicating evidence is needed. The status progresses through the workflow: initial state → awaiting review → approved or flagged. Rate limit: 600 requests / minute. */
1536
- export const createInformationRequest = /*@__PURE__*/ API.make(() => ({
1537
- input: CreateInformationRequestRequest,
1538
- output: InformationRequest,
1539
- errors: [UnknownVantaError],
1540
- protocol: VantaProtocol,
1541
- retry: Retry.Retry,
1542
- }));
1543
- /** Delete a comment for a control within an audit Deletes an existing comment on a control. Only the original author of the comment can delete it. The author is identified by their email address, which must match the email of the user who created the comment. Rate limit: 10 requests / minute. */
1544
- export const deleteCommentForControl = /*@__PURE__*/ API.make(() => ({
1545
- input: DeleteCommentForControlRequest,
1546
- output: DeleteCommentForControlResponse,
1547
- errors: [UnknownVantaError],
1548
- protocol: VantaProtocol,
1549
- retry: Retry.Retry,
1550
- }));
1551
- /** Delete a comment for an information request Deletes an existing comment for an information request. Only the original author of the comment can delete it. The author is identified by their email address, which must match the email of the user who created the comment. Rate limit: 25 requests / minute. */
1552
- export const deleteCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
1553
- input: DeleteCommentForInformationRequestRequest,
1554
- output: DeleteCommentForInformationRequestResponse,
1555
- errors: [UnknownVantaError],
1556
- protocol: VantaProtocol,
1557
- retry: Retry.Retry,
1558
- }));
1559
- /** 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. */
1560
- export const deleteInformationRequest = /*@__PURE__*/ API.make(() => ({
1561
- input: DeleteInformationRequestRequest,
1562
- output: DeleteInformationRequestResponse,
1563
- errors: [UnknownVantaError],
1564
- protocol: VantaProtocol,
1565
- retry: Retry.Retry,
1566
- }));
1567
- /** 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. */
1568
- export const duplicate = /*@__PURE__*/ API.make(() => ({
1569
- input: DuplicateRequest,
1570
- output: Audit,
1571
- errors: [UnknownVantaError],
1572
- protocol: VantaProtocol,
1573
- retry: Retry.Retry,
1574
- }));
1575
- /** Flag evidence for an information request Flags evidence for an information request when it doesn't meet audit requirements, marking issues that need to be addressed before approval. This action changes the request's approvalStatus to a flagged state and creates an activity log entry. Flagging workflow: 1. Auditor reviews submitted evidence 2. If issues are found, auditor calls this endpoint with detailed reason 3. Request status changes to flagged state 4. Customer is notified and can see the reason in activity logs 5. Customer addresses issues and updates evidence 6. When ready, customer changes status back to awaiting review 7. Auditor reviews again and either flags again or accepts The `reason` field should clearly explain what's missing or incorrect so the customer knows exactly what to fix. This reason is visible to the customer and appears in the activity log. Rate limit: 50 requests / minute. */
1576
- export const flagInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1577
- input: FlagInformationRequestEvidenceRequest,
1578
- output: InformationRequest,
1579
- errors: [UnknownVantaError],
1580
- protocol: VantaProtocol,
1581
- retry: Retry.Retry,
1582
- }));
1583
- /** 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. */
9
+ const __0 = __L.at;
10
+ const __1 = T.Http;
11
+ const __2 = T.Label;
12
+ const __3 = S.String;
13
+ const __4 = S.Struct;
14
+ const __5 = S.suspend;
15
+ const __6 = S.Array;
16
+ const __7 = S.NullOr;
17
+ const __8 = S.Unknown;
18
+ const __9 = S.Boolean;
19
+ const __10 = S.optional;
20
+ const __11 = S.Number;
21
+ const __12 = T.Query;
22
+
23
+ export const acceptInformationRequestEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"AcceptInformationRequestEvidenceRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),auditorEmail:$3}).pipe($1({method:"POST",uri:"/audits/{auditId}/information-requests/{requestId}/accept-evidence",code:200}))', [__0, __1, __2, __3, __4, __5, __d1, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(acceptInformationRequestEvidence, i));
24
+
25
+ export const createAuditor = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Auditor", '{input:#1,output:#2,errors:[$5],protocol:$6,retry:$7};$4(>3)@"Create%Request";$4(>4)@"%";$3({email:$2,givenName:$2,familyName:$2}).pipe($1({method:"POST",uri:"/auditors",code:200}));$3({id:$2,organizationId:$2,email:$2,givenName:$2,familyName:$2})', [__0, __1, __3, __4, __5, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(createAuditor, i));
26
+
27
+ export const createCommentForAuditEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"CreateCommentForAuditEvidenceRequest";$4({auditId:$3.pipe($2()),auditEvidenceId:$3.pipe($2()),text:$3,email:$3,creationDate:$3}).pipe($1({method:"POST",uri:"/audits/{auditId}/evidence/{auditEvidenceId}/comments",code:200}))', [__0, __1, __2, __3, __4, __5, __d6, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(createCommentForAuditEvidence, i));
28
+
29
+ export const createCommentForControl = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"CreateCommentForControlRequest";$4({auditId:$3.pipe($2()),controlId:$3.pipe($2()),text:$3,email:$3,creationDate:$3}).pipe($1({method:"POST",uri:"/audits/{auditId}/controls/{controlId}/comments",code:200}))', [__0, __1, __2, __3, __4, __5, __d8, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(createCommentForControl, i));
30
+
31
+ export const createCommentForInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"CreateCommentForInformationRequestRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),text:$3,email:$3,creationDate:$3}).pipe($1({method:"POST",uri:"/audits/{auditId}/information-requests/{requestId}/comments",code:200}))', [__0, __1, __2, __3, __4, __5, __d8, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(createCommentForInformationRequest, i));
32
+
33
+ export const createCustomControl = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#3,output:#4,errors:[$12],protocol:$13,retry:$14};$4(>5)@"FrameworkSection";$5(#1);$4(>6)@"CreateCustomControlRequest";$4(>7)@"AuditorApiControl";$3({frameworkId:$1,sectionId:$2});$3({auditId:$2.pipe($7()),externalId:$2,name:$8($2),description:$2,effectiveDate:$2,category:$2,sections:$9($8(#2)),role:$9($8($2))}).pipe($6({method:"POST",uri:"/audits/{auditId}/controls/custom-controls",code:200}));$3({id:$2,externalId:$8($2),name:$2,description:$2,source:$2,domains:#10:0,owner:$8(#11:0),role:$9($8($2)),customFields:#11:2,creationDate:$8($2),modificationDate:$8($2)})', [__0, __8, __3, __4, __5, __6, __1, __2, __7, __10, __d0, __d12, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(createCustomControl, i));
34
+
35
+ export const createCustomEvidenceRequest = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("CustomEvidenceRequest", '{input:#1,output:#2,errors:[$8],protocol:$9,retry:$10};$7(>3)@"Create%Request";$7(>4)@"%";$6({auditId:$3.pipe($2()),controlIds:#4:0,title:$3,description:$3,cadence:$3,reminderWindow:$3,isRestricted:$5,auditorEmail:$3}).pipe($1({method:"POST",uri:"/audits/{auditId}/evidence/custom-evidence-requests",code:200}));$6({id:$3,controlIds:#4:0,title:$3,description:$3,cadence:$3,reminderWindow:$3,isRestricted:$5})', [__0, __1, __2, __3, __d0, __9, __4, __5, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(createCustomEvidenceRequest, i));
36
+
37
+ export const createInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"CreateInformationRequestRequest";$7({auditId:$3.pipe($2()),uniqueId:$3,title:$3,requestType:$3,description:$5($4($3)),frameworkCodes:#6:0,cadence:$5($4($3)),dueDate:$5($4($3)),evidenceCaptureDate:$5($4($3)),additionalControlIds:$5(#6:0)}).pipe($1({method:"POST",uri:"/audits/{auditId}/information-requests",code:200}))', [__0, __1, __2, __3, __7, __10, __d0, __4, __5, __d1, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(createInformationRequest, i));
38
+
39
+ export const deleteCommentForControl = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeleteCommentForControlRequest";$4({auditId:$3.pipe($2()),controlId:$3.pipe($2()),commentId:$3.pipe($2()),email:$3}).pipe($1({method:"DELETE",uri:"/audits/{auditId}/controls/{controlId}/comments/{commentId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d13, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(deleteCommentForControl, i));
40
+
41
+ export const deleteCommentForInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeleteCommentForInformationRequestRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),commentId:$3.pipe($2()),email:$3}).pipe($1({method:"DELETE",uri:"/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d13, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(deleteCommentForInformationRequest, i));
42
+
43
+ export const deleteInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeleteInformationRequestRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/audits/{auditId}/information-requests/{requestId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d13, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(deleteInformationRequest, i));
44
+
45
+ export const duplicate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:6,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DuplicateRequest";$4({sourceAuditId:$2,displayName:$2,auditStartDate:$2,auditEndDate:$2,earlyAccessStartsAt:$2,allowAuditorEmails:#3:0}).pipe($1({method:"POST",uri:"/audits/duplicate",code:200}))', [__0, __1, __3, __d0, __4, __5, __d3, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(duplicate, i));
46
+
47
+ export const flagInformationRequestEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"FlagInformationRequestEvidenceRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),auditorEmail:$3,reason:$3}).pipe($1({method:"POST",uri:"/audits/{auditId}/information-requests/{requestId}/flag-evidence",code:200}))', [__0, __1, __2, __3, __4, __5, __d1, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(flagInformationRequestEvidence, i));
48
+
1584
49
  export const getAudit =
1585
- /*@__PURE__*/ API.make(() => ({
1586
- input: GetAuditRequest,
1587
- output: Audit,
1588
- errors: [UnknownVantaError],
1589
- protocol: VantaProtocol,
1590
- retry: Retry.Retry,
1591
- }));
1592
- /** Get an audit evidence item by ID Retrieves a single classic audit evidence item by its ID, scoped to its audit. The response matches the entry `GET /audits/{auditId}/evidence` returns for the same item, so an evidence ID surfaced by a webhook can be resolved directly instead of paging the audit's full evidence list. Soft-deleted evidence (where `deletionDate !== null`) is included in the response. Clients should check `deletionDate` to determine whether the item has been deleted. This matches `GET /audits/{auditId}/evidence`, which supports `changedSinceDate` and returns soft-deleted evidence for delta sync. As on the list endpoint, `description` is null for deleted items. Rate limit: 250 requests / minute. */
1593
- export const getAuditEvidence = /*@__PURE__*/ API.make(() => ({
1594
- input: GetAuditEvidenceRequest,
1595
- output: Evidence,
1596
- errors: [UnknownVantaError],
1597
- protocol: VantaProtocol,
1598
- retry: Retry.Retry,
1599
- }));
1600
- /** Get an audit evidence comment by ID Retrieves a single comment on a classic audit evidence item by its ID. Soft-deleted comments (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the comment has been deleted. This matches `GET /audits/{auditId}/comments`, which supports `changedSinceDate` and returns soft-deleted comments for delta sync. Comments remain fetchable when the parent evidence item has been soft-deleted, so delayed webhook consumers can still resolve a comment ID after evidence deletion. Rate limit: 50 requests / minute. */
1601
- export const getAuditEvidenceComment = /*@__PURE__*/ API.make(() => ({
1602
- input: GetAuditEvidenceCommentRequest,
1603
- output: Comment,
1604
- errors: [UnknownVantaError],
1605
- protocol: VantaProtocol,
1606
- retry: Retry.Retry,
1607
- }));
1608
- /** Get an information request comment by ID Retrieves a single comment on an information request by its ID. Soft-deleted comments (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the comment has been deleted. This matches `GET /audits/{auditId}/information-requests/{requestId}/comments`, which supports `changedSinceDate` and returns soft-deleted comments for delta sync. Comments are only resolvable while their information request exists. Once the request itself is deleted, this endpoint returns a 4xx HTTP error instead of the comment. Check the request's `deletionDate` using `GET /audits/{auditId}/information-requests` before treating its comments as deleted too. Rate limit: 50 requests / minute. */
1609
- export const getCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
1610
- input: GetCommentForInformationRequestRequest,
1611
- output: InformationRequestComment,
1612
- errors: [UnknownVantaError],
1613
- protocol: VantaProtocol,
1614
- retry: Retry.Retry,
1615
- }));
1616
- /** Get framework codes for an audit Retrieves all valid framework codes for the specified audit. This endpoint helps users discover which framework codes are available for creating and updating information requests for this audit. Use this endpoint to: - Discover available framework codes (`frameworkCodes`, the original flat list) - Validate framework codes against the audit's frameworks - See which codes belong to which in-scope framework (`codesByFramework`) Rate limit: 50 requests / minute. */
1617
- export const getFrameworkCodes = /*@__PURE__*/ API.make(() => ({
1618
- input: GetFrameworkCodesRequest,
1619
- output: FrameworkCodes,
1620
- errors: [UnknownVantaError],
1621
- protocol: VantaProtocol,
1622
- retry: Retry.Retry,
1623
- }));
1624
- /** Get an information request by ID Retrieves a single information request by its ID for an audit, allowing external audit management systems to fetch the latest state of a specific request without paginating through the full list. This endpoint returns a 4xx HTTP error for a soft-deleted information request. To confirm deletion, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted requests with `deletionDate` set. Rate limit: 50 requests / minute. */
1625
- export const getInformationRequest = /*@__PURE__*/ API.make(() => ({
1626
- input: GetInformationRequestRequest,
1627
- output: InformationRequest,
1628
- errors: [UnknownVantaError],
1629
- protocol: VantaProtocol,
1630
- retry: Retry.Retry,
1631
- }));
1632
- /** Get information request evidence by ID Retrieves a single evidence item attached to an information request by its ID. This endpoint always includes soft-deleted evidence (where `deletionDate !== null`), so an evidence ID surfaced by a `changedSinceDate` delta sync stays fetchable after the evidence is deleted. Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. Evidence is only resolvable while its information request exists. Once the request itself is deleted, this endpoint returns a 4xx HTTP error instead of the evidence. Check the request's `deletionDate` using `GET /audits/{auditId}/information-requests` before treating its evidence as deleted too. Evidence that the customer has not shared with the auditor is reported as not found, rather than distinguishing it from an ID that does not exist. Rate limit: 250 requests / minute. */
1633
- export const getInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1634
- input: GetInformationRequestEvidenceRequest,
1635
- output: InformationRequestEvidence,
1636
- errors: [UnknownVantaError],
1637
- protocol: VantaProtocol,
1638
- retry: Retry.Retry,
1639
- }));
1640
- /** 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. */
1641
- export const getInformationRequestTestSnapshotEvidenceDetail = /*@__PURE__*/ API.make(() => ({
1642
- input: GetInformationRequestTestSnapshotEvidenceDetailRequest,
1643
- output: VantaTestSnapshotEvidenceDetail,
1644
- errors: [UnknownVantaError],
1645
- protocol: VantaProtocol,
1646
- retry: Retry.Retry,
1647
- }));
1648
- /** Get organization information for an audit Retrieves organization information for an audit. This endpoint returns a single record containing the organization's business information visible to auditors during an audit engagement. Sorting and pagination are not applicable. Rate limit: 10 requests / minute. */
1649
- export const getOrganizationInformation = /*@__PURE__*/ API.make(() => ({
1650
- input: GetOrganizationInformationRequest,
1651
- output: AuditOrganizationInformation,
1652
- errors: [UnknownVantaError],
1653
- protocol: VantaProtocol,
1654
- retry: Retry.Retry,
1655
- }));
1656
- /** Get organization notification settings for an audit Retrieves organization notification settings for an audit. This endpoint returns a single record containing the auditee organization's notification configuration — schedule, personnel reminder settings, and external notification subscriptions (Compliance, Vendors, Access Reviews, Trust Center). The response is a single aggregate object per domain. Sorting and pagination are not applicable. Under a controlled audit view (TRIMMED_DOWN), only CAV-approved fields are included. Rate limit: 10 requests / minute. */
1657
- export const getOrganizationNotifications = /*@__PURE__*/ API.make(() => ({
1658
- input: GetOrganizationNotificationsRequest,
1659
- output: AuditOrganizationNotifications,
1660
- errors: [UnknownVantaError],
1661
- protocol: VantaProtocol,
1662
- retry: Retry.Retry,
1663
- }));
1664
- /** List account access services for an audit Retrieves connected account access services for an audit. Returns the list of identity providers and access integrations (such as Okta, Azure AD, Google Workspace, AWS IAM) that are connected to the organization and provide account access data for personnel. These integrations are used to verify user access and identity management during an audit engagement. 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 returned in connection order. Sort order is not guaranteed and cannot be customized via query parameters. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Rate limit: 10 requests / minute. */
1665
- export const listAccountAccessServices = /*@__PURE__*/ API.make(() => ({
1666
- input: ListAccountAccessServicesRequest,
1667
- output: PaginatedResponseAccountAccessService,
1668
- errors: [UnknownVantaError],
1669
- protocol: VantaProtocol,
1670
- retry: Retry.Retry,
1671
- }));
1672
- /** List audit comments Returns a paginated list of comments for an audit. Rate limit: 250 requests / minute. */
1673
- export const listAuditComments = /*@__PURE__*/ API.make(() => ({
1674
- input: ListAuditCommentsRequest,
1675
- output: PaginatedResponseComment,
1676
- errors: [UnknownVantaError],
1677
- protocol: VantaProtocol,
1678
- retry: Retry.Retry,
1679
- }));
1680
- /** List audit controls Returns a paginated list of controls for an audit. Rate limit: 250 requests / minute. */
1681
- export const listAuditControls = /*@__PURE__*/ API.make(() => ({
1682
- input: ListAuditControlsRequest,
1683
- output: PaginatedResponseAuditorControl,
1684
- errors: [UnknownVantaError],
1685
- protocol: VantaProtocol,
1686
- retry: Retry.Retry,
1687
- }));
1688
- /** List audit evidence Returns a paginated list of evidence for an audit. Rate limit: 250 requests / minute. */
1689
- export const listAuditEvidence = /*@__PURE__*/ API.make(() => ({
1690
- input: ListAuditEvidenceRequest,
1691
- output: PaginatedResponseEvidence,
1692
- errors: [UnknownVantaError],
1693
- protocol: VantaProtocol,
1694
- retry: Retry.Retry,
1695
- }));
1696
- /** List audit evidence url Returns a paginated list of evidence urls for an audit. This endpoint should be called whenever an evidence is created or has a statusUpdatedAt field that is more recent than the most recent polling event. Evidence must be in one of the following states to retrieve URLs: "Ready for audit", "Accepted", "Flagged", or "NA". Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Rate limit: 600 requests / minute. */
1697
- export const listAuditEvidenceUrls = /*@__PURE__*/ API.make(() => ({
1698
- input: ListAuditEvidenceUrlsRequest,
1699
- output: PaginatedResponseEvidenceUrl,
1700
- errors: [UnknownVantaError],
1701
- protocol: VantaProtocol,
1702
- retry: Retry.Retry,
1703
- }));
1704
- /** List snapshotted issues for an audit Retrieves a list of all issues that have been shared with an audit. The issues returned are immutable, point-in-time snapshots; there may be duplicates of issues that have been snapshotted at different times. The GET /audits/{auditId}/issues/snapshots endpoint can be used to retrieve metadata about the snapshots that issues belong to. Issues represent compliance findings from a variety of sources that need to be tracked and remediated. Supports filtering by: - `search`: full text search across issue title and description - `snapshotId`: filtering to a specific snapshot or snapshots, which represent point-in-time captures of issues. Use the GET /audits/{auditId}/issues/snapshots endpoint to retrieve snapshot IDs and metadata. - `createdAfterDate` / `createdBeforeDate`: filter to issues created within a date range (inclusive) - `detectedAfterDate` / `detectedBeforeDate`: filter to issues detected within a date range (inclusive) Results are sorted by issue creation date in descending order (newest first) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. 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 Rate limit: 10 requests / minute. */
1705
- export const listAuditIssues = /*@__PURE__*/ API.make(() => ({
1706
- input: ListAuditIssuesRequest,
1707
- output: PaginatedResponseIssueSnapshotItem,
1708
- errors: [UnknownVantaError],
1709
- protocol: VantaProtocol,
1710
- retry: Retry.Retry,
1711
- }));
1712
- /** List risks for an audit Retrieves risk population data for an audit. This endpoint provides access to the risk records visible to auditors during an audit engagement. Risk data is scoped to a specific risk assessment snapshot identified by the `snapshotId` parameter. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Supports filtering by: - `search`: Searches risk scenario descriptions (case-insensitive) Results are sorted by identified date (newest first) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. 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 Rate limit: 10 requests / minute. */
1713
- export const listAuditRisks = /*@__PURE__*/ API.make(() => ({
1714
- input: ListAuditRisksRequest,
1715
- output: PaginatedResponseAuditRisk,
1716
- errors: [UnknownVantaError],
1717
- protocol: VantaProtocol,
1718
- retry: Retry.Retry,
1719
- }));
1720
- /** List audits Returns a paginated list of audits 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. Each audit includes `segments`, the audit's scope. A live audit 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 list may include soft-deleted audits so clients can reconcile deletions. Check `deletionDate`; a deleted audit has an empty `segments` list. Rate limit: 250 requests / minute. */
1721
- export const listAudits = /*@__PURE__*/ API.make(() => ({
1722
- input: ListAuditsRequest,
1723
- output: PaginatedResponseAudit,
1724
- errors: [UnknownVantaError],
1725
- protocol: VantaProtocol,
1726
- retry: Retry.Retry,
1727
- }));
1728
- /** List snapshotted issues for an audit Retrieves a list of snapshots that have been shared with an audit. The snapshots returned contain metadata about point-in-time captures of issues for an audit. This data can be used to filter down the list of issues to specific snapshots when querying the GET /audits/{auditId}/issues/items endpoint. Supports filtering by: - `search`: full text search across snapshot title and description Results are sorted by snapshot creation date in descending order (newest first). 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 Rate limit: 10 requests / minute. */
1729
- export const listAuditSnapshots = /*@__PURE__*/ API.make(() => ({
1730
- input: ListAuditSnapshotsRequest,
1731
- output: PaginatedResponseIssueSnapshotMetadata,
1732
- errors: [UnknownVantaError],
1733
- protocol: VantaProtocol,
1734
- retry: Retry.Retry,
1735
- }));
1736
- /** List code changes for an audit Retrieves code changes population data for an audit. This endpoint provides access to code change records (pull requests) visible to auditors during an audit engagement. Supports filtering by: - `search`: Searches code change titles and repository names (case-insensitive) - `sourcesMatchesAny`: Filters by version control source (accepted values: github, gitlab, bitbucket, azuredevops) - `closedAfterDate` / `closedBeforeDate`: Filters by the closed date range 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 closed date (newest first). This sort order is fixed and cannot be customized via query parameters. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Rate limit: 10 requests / minute. */
1737
- export const listCodeChanges = /*@__PURE__*/ API.make(() => ({
1738
- input: ListCodeChangesRequest,
1739
- output: PaginatedResponseCodeChange,
1740
- errors: [UnknownVantaError],
1741
- protocol: VantaProtocol,
1742
- retry: Retry.Retry,
1743
- }));
1744
- /** List comments for a control within an audit Retrieves a paginated list of comments on a control within an IRL audit, enabling auditors to view collaboration history on the control. 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 endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Returns 404 when the control is not part of the audit. 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 comments created, modified, or deleted since that timestamp are returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1745
- export const listCommentsForControl = /*@__PURE__*/ API.make(() => ({
1746
- input: ListCommentsForControlRequest,
1747
- output: PaginatedResponseAuditControlComment,
1748
- errors: [UnknownVantaError],
1749
- protocol: VantaProtocol,
1750
- retry: Retry.Retry,
1751
- }));
1752
- /** List comments for an information request Retrieves a paginated list of comments for an information request, enabling auditors to view communication history and collaborate with 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 comments. 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 comments created, modified, or deleted since that timestamp are returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1753
- export const listCommentsForInformationRequest = /*@__PURE__*/ API.make(() => ({
1754
- input: ListCommentsForInformationRequestRequest,
1755
- output: PaginatedResponseInformationRequestComment,
1756
- errors: [UnknownVantaError],
1757
- protocol: VantaProtocol,
1758
- retry: Retry.Retry,
1759
- }));
1760
- /** List information request activity Retrieves a paginated list of activity logs for an information request, providing an audit trail of the changes and actions taken on it. Activity recording Vanta's automated preparation of a request is never returned by this endpoint, so `fillOutcome` is always null here. Some internal status transitions are also withheld, and those are removed after a page is selected, so a page can contain fewer entries than `pageSize` — or none at all — while more pages remain. Follow `results.pageInfo.hasNextPage` rather than treating a short or empty page as the end of the list. If the information request has been deleted, this endpoint returns a 4xx HTTP error instead of its activity. 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 activity created since that timestamp is returned 4. Process updates to track all changes to the information request 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1761
- export const listInformationRequestActivity = /*@__PURE__*/ API.make(() => ({
1762
- input: ListInformationRequestActivityRequest,
1763
- output: PaginatedResponseInformationRequestActivityLog,
1764
- errors: [UnknownVantaError],
1765
- protocol: VantaProtocol,
1766
- retry: Retry.Retry,
1767
- }));
1768
- /** 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 Rate limit: 50 requests / minute. */
1769
- export const listInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1770
- input: ListInformationRequestEvidenceRequest,
1771
- output: PaginatedResponseInformationRequestEvidence,
1772
- errors: [UnknownVantaError],
1773
- protocol: VantaProtocol,
1774
- retry: Retry.Retry,
1775
- }));
1776
- /** 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. */
1777
- export const listInformationRequests = /*@__PURE__*/ API.make(() => ({
1778
- input: ListInformationRequestsRequest,
1779
- output: PaginatedResponseInformationRequest,
1780
- errors: [UnknownVantaError],
1781
- protocol: VantaProtocol,
1782
- retry: Retry.Retry,
1783
- }));
1784
- /** List information requests linked to a control within an audit Returns a paginated list of active information requests linked to a specific control within an IRL audit. Only links saved on the audit's current control rows are included. Soft-deleted information requests are not included in the response. To synchronize deletions, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted records. Returns 404 when the control is not part of the audit. Returns an empty page when the control is part of the audit but has no active IRLs linked to it. 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 Rate limit: 50 requests / minute. */
1785
- export const listInformationRequestsForControl = /*@__PURE__*/ API.make(() => ({
1786
- input: ListInformationRequestsForControlRequest,
1787
- output: PaginatedResponseInformationRequest,
1788
- errors: [UnknownVantaError],
1789
- protocol: VantaProtocol,
1790
- retry: Retry.Retry,
1791
- }));
1792
- /** 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. Rate limit: 10 requests / minute. */
1793
- export const listIntegrations = /*@__PURE__*/ API.make(() => ({
1794
- input: ListIntegrationsRequest,
1795
- output: PaginatedResponseAuditIntegration,
1796
- errors: [UnknownVantaError],
1797
- protocol: VantaProtocol,
1798
- retry: Retry.Retry,
1799
- }));
1800
- /** List account access records for an audit Retrieves account access population data for an audit. This endpoint provides access to account access records visible to auditors during an audit engagement. Account access data comes from various sources: - **IDP Services** (Identity Providers): Okta, Azure AD, Google Workspace, OneLogin, PingOne - Returns user accounts from identity providers - Supports filtering by search and status - **Role Grants Services**: GCP, Azure (when role grants are enabled) - Returns accounts with role-based access grants - Supports filtering by search and status - **First-Party Account Services**: AWS, Oracle Cloud, Azure (when not using role grants), etc. - Returns cloud provider account access records - Supports filtering by search and status - **Received Account Services**: External applications (Jira, GitHub, Slack, etc.) - Returns user accounts from third-party integrations - Supports filtering by search and status Supports filtering by: - `search`: Searches account names/emails (case-insensitive) - `status`: Filters by account status 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 The default sort order depends on the service type: - Identity provider services (e.g. Okta, Azure AD): sorted by email, ascending - Cloud provider services (e.g. AWS, GCP): sorted by account name, ascending - Role grant services: sorted by account name, ascending - Third-party application services (e.g. GitHub, Jira): sorted by account name, ascending Sort order cannot be customized via query parameters. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Rate limit: 10 requests / minute. */
1801
- export const listPersonnelAccountAccess = /*@__PURE__*/ API.make(() => ({
1802
- input: ListPersonnelAccountAccessRequest,
1803
- output: PaginatedResponseAccountAccess,
1804
- errors: [UnknownVantaError],
1805
- protocol: VantaProtocol,
1806
- retry: Retry.Retry,
1807
- }));
1808
- /** List groups for an audit Retrieves groups population data for an audit. This endpoint provides access to the group records visible to auditors during an audit engagement. Groups represent organizational units that contain people, either imported from an identity provider (IDP) or created manually in Vanta. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Supports filtering by: - `search`: Searches group names (case-insensitive) - `sourcesMatchesAny`: Filters by IDP source service names Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. 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 Rate limit: 10 requests / minute. */
1809
- export const listPersonnelGroups = /*@__PURE__*/ API.make(() => ({
1810
- input: ListPersonnelGroupsRequest,
1811
- output: PaginatedResponsePersonnelGroup,
1812
- errors: [UnknownVantaError],
1813
- protocol: VantaProtocol,
1814
- retry: Retry.Retry,
1815
- }));
1816
- /** List people for an audit Retrieves people population data for an audit. This endpoint provides access to the people records visible to auditors during an audit engagement. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Supports filtering by: - `search`: Searches names and email addresses - `status`: Filters by employment status - `groupsMatchesAny`: Filter people by group/role IDs Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. 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 Rate limit: 10 requests / minute. */
1817
- export const listPersonnelPeople = /*@__PURE__*/ API.make(() => ({
1818
- input: ListPersonnelPeopleRequest,
1819
- output: PaginatedResponsePersonnelPerson,
1820
- errors: [UnknownVantaError],
1821
- protocol: VantaProtocol,
1822
- retry: Retry.Retry,
1823
- }));
1824
- /** List risk snapshots for an audit Returns a paginated list of risk assessment snapshots available for an audit. Risk snapshots capture the state of an organization's risk register at a point in time. Each snapshot has an `id` that can be used with the `/audits/{auditId}/risks` endpoint to retrieve the individual risk scenarios within that snapshot. Results are sorted by creation date (newest first). This sort order is fixed and cannot be customized via query parameters. Only snapshots that are shared with auditors are included. 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 Rate limit: 10 requests / minute. */
1825
- export const listRiskSnapshots = /*@__PURE__*/ API.make(() => ({
1826
- input: ListRiskSnapshotsRequest,
1827
- output: PaginatedResponseRiskSnapshot,
1828
- errors: [UnknownVantaError],
1829
- protocol: VantaProtocol,
1830
- retry: Retry.Retry,
1831
- }));
1832
- /** Share information request list with customer Shares the current information request list for an audit with the customer organization, making it visible in their portal. This action allows the customer to see all information requests that have been created for their audit. Only IRL audits are supported. Rate limit: 50 requests / minute. */
1833
- export const listShareInformationRequest = /*@__PURE__*/ API.make(() => ({
1834
- input: ListShareInformationRequestRequest,
1835
- output: Audit,
1836
- errors: [UnknownVantaError],
1837
- protocol: VantaProtocol,
1838
- retry: Retry.Retry,
1839
- }));
1840
- /** List vendors for an audit Retrieves vendor population data for an audit. This endpoint provides access to vendor records visible to auditors during an audit engagement. Supports filtering by: - `search`: Searches vendor names (case-insensitive) - `vendorStatusesMatchesAny`: Filters by vendor status (ACTIVE, ARCHIVED, IN_PROCUREMENT) - `inherentRiskMatchesAny`: Filters by inherent risk level Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. 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 Rate limit: 10 requests / minute. */
1841
- export const listVendors = /*@__PURE__*/ API.make(() => ({
1842
- input: ListVendorsRequest,
1843
- output: PaginatedResponseAuditVendor,
1844
- errors: [UnknownVantaError],
1845
- protocol: VantaProtocol,
1846
- retry: Retry.Retry,
1847
- }));
1848
- /** Update audit evidence Update audit evidence. Rate limit: 50 requests / minute. */
1849
- export const updateAuditEvidence = /*@__PURE__*/ API.make(() => ({
1850
- input: UpdateAuditEvidenceRequest,
1851
- output: Evidence,
1852
- errors: [UnknownVantaError],
1853
- protocol: VantaProtocol,
1854
- retry: Retry.Retry,
1855
- }));
1856
- /** Update a comment for a control within an audit Updates an existing comment on a control. Only the original author of the comment can update it. The author is identified by their email address, which must match the email of the user who created the comment. Rate limit: 10 requests / minute. */
1857
- export const updateCommentForControl = /*@__PURE__*/ API.make(() => ({
1858
- input: UpdateCommentForControlRequest,
1859
- output: AuditControlComment,
1860
- errors: [UnknownVantaError],
1861
- protocol: VantaProtocol,
1862
- retry: Retry.Retry,
1863
- }));
1864
- /** Update a comment for an information request Updates an existing comment for an information request. Only the original author of the comment can update it. The author is identified by their email address, which must match the email of the user who created the comment. Rate limit: 25 requests / minute. */
1865
- export const updateCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
1866
- input: UpdateCommentForInformationRequestRequest,
1867
- output: InformationRequestComment,
1868
- errors: [UnknownVantaError],
1869
- protocol: VantaProtocol,
1870
- retry: Retry.Retry,
1871
- }));
1872
- /** Update an information request for an audit Updates an existing information request for an audit, allowing modification of request details as audit requirements evolve. Supports partial updates where only specified fields are changed; omitted fields remain unchanged. Common use cases: - Updating due dates as audit timelines shift - Refining descriptions to clarify requirements - Adjusting request type Note: The `modificationDate` is automatically updated to the current timestamp when any field is changed. Rate limit: 50 requests / minute. */
1873
- export const updateInformationRequest = /*@__PURE__*/ API.make(() => ({
1874
- input: UpdateInformationRequestRequest,
1875
- output: InformationRequest,
1876
- errors: [UnknownVantaError],
1877
- protocol: VantaProtocol,
1878
- retry: Retry.Retry,
1879
- }));
1880
- /** 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. */
1881
- export const upsertAssessmentForControl = /*@__PURE__*/ API.make(() => ({
1882
- input: UpsertAssessmentForControlRequest,
1883
- output: AuditorControlAssessment,
1884
- errors: [UnknownVantaError],
1885
- protocol: VantaProtocol,
1886
- retry: Retry.Retry,
1887
- }));
1888
- //# sourceMappingURL=auditor_api.js.map
50
+ /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:6,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetAuditRequest";$4({auditId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d3, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getAudit, i));
51
+
52
+ export const getAuditEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetAuditEvidenceRequest";$4({auditId:$3.pipe($2()),auditEvidenceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/evidence/{auditEvidenceId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d4, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getAuditEvidence, i));
53
+
54
+ export const getAuditEvidenceComment = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetAuditEvidenceCommentRequest";$4({auditId:$3.pipe($2()),auditEvidenceId:$3.pipe($2()),commentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/evidence/{auditEvidenceId}/comments/{commentId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d6, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getAuditEvidenceComment, i));
55
+
56
+ export const getCommentForInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetCommentForInformationRequestRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),commentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d8, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getCommentForInformationRequest, i));
57
+
58
+ export const getFrameworkCodes = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("FrameworkCodes", '{input:#1,output:#4,errors:[$8],protocol:$9,retry:$10};$5(>5)@"Get%Request";$5(>6)@"%ByFramework";$7(#2);$5(>7)@"%";$4({auditId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/framework-codes",code:200}));$4({framework:$3,codes:#6:0});$4({frameworkCodes:#6:0,codesByFramework:#3})', [__0, __1, __2, __3, __4, __5, __d0, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(getFrameworkCodes, i));
59
+
60
+ export const getInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetInformationRequestRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests/{requestId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d1, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getInformationRequest, i));
61
+
62
+ export const getInformationRequestEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetInformationRequestEvidenceRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),evidenceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d5, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getInformationRequestEvidence, i));
63
+
64
+ export const getInformationRequestTestSnapshotEvidenceDetail = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("VantaTestSnapshotSlaRemediation", '{input:#1,output:#17,errors:[$12],protocol:$13,retry:$14};$5(>18)@"GetInformationRequestTestSnapshotEvidenceDetailRequest";$5(>19)@"VantaTestSnapshotIntegration";$6(#2);$5(>20)@"%Settings";$5(>21)@"%";$5(>22)@"VantaTestSnapshotRawTestDataRow";$6(#6);$5(>23)@"VantaTestSnapshotExcludedItem";$6(#8);$5(>24)@"VantaTestSnapshotExcludedItemGroup";$6(#10);$5(>25)@"VantaTestSnapshotFrameworkExclusion";$6(#12);$5(>26)@"VantaTestSnapshotOutOfScopeResources";$5(>27)@"VantaTestSnapshotApiRequest";$6(#15);$5(>28)@"VantaTestSnapshotEvidenceDetail";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),evidenceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot",code:200}));$4({integrationId:$3,displayName:$3});$4({numericValue:$7,unit:$8($3)});$4({id:$3,settings:$8(#4)});$4({resourceId:$8($3),resourceType:$8($3),rawJson:$9});$4({id:$3,displayName:$8($3)});$4({reason:$3,entities:#9});$4({frameworkId:$3,frameworkName:$3,groupedByReason:#11});$4({testLevel:#11,frameworkLevel:#13});$4({id:$3,resourceType:$3,resourceTypeDisplayName:$3,requestMethod:$3,url:$3,responseCode:$7,timestamp:$3,dataTooLarge:$10});$4({testId:$3,testName:$3,description:$3,evaluationCriteria:$8($3),integrations:#3,slaRemediation:$8(#5),rawTestData:#7,outOfScopeResources:$11(#14),apiRequests:$11(#16)})', [__0, __1, __2, __3, __4, __5, __6, __11, __7, __8, __9, __10, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(getInformationRequestTestSnapshotEvidenceDetail, i));
65
+
66
+ export const getOrganizationInformation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8],protocol:$9,retry:$10};$5(>4)@"GetOrganizationInformationRequest";$5(>5)@"AuditOrganizationCompanyLogo";$5(>6)@"AuditOrganizationInformation";$4({auditId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/organization/information",code:200}));$4({url:$3});$4({id:$3,displayName:$3,legalName:$7($6($3)),incorporation:$7($6($3)),url:$7($6($3)),mailingAddress:$7($6($3)),telephone:$7($6($3)),companyLogo:$7($6(#2))})', [__0, __1, __2, __3, __4, __5, __7, __10, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getOrganizationInformation, i));
67
+
68
+ export const getOrganizationNotifications = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$11],protocol:$12,retry:$13};$5(>5)@"GetOrganizationNotificationsRequest";$5(>6)@"AuditOrganizationNotificationSubscription";$8(#2);$5(>7)@"AuditOrganizationNotifications";$4({auditId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/audits/{auditId}/organization/notifications",code:200}));$4({id:$3,address:$3,cadence:$6($3),unsubSettingsKey:$3,toggleIsSubscribed:$7});$4({id:$3,preferredTimeZone:$9($6($3)),employeeDigestFrequency:$9($6($3)),subscribedChannelTypes:$9(#10:0),externalNotifications:$9(#3)})', [__0, __1, __2, __3, __4, __5, __7, __9, __6, __10, __d0, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(getOrganizationNotifications, i));
69
+
70
+ export const listAccountAccessServices = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("AccountAccessService", '{input:#1,output:#5,errors:[$9],protocol:$10,retry:$11};$6(>6)@"List%sRequest";$6(>7)@"%";$8(#2);$6(>8)@"PaginatedResponse%Results";$6(>9)@"PaginatedResponse%";$5({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/personnel/account-access/services",code:200}));$5({id:$3,credentialDisplayName:$3,service:$3,subAccountId:$7($3)});$5({data:#3,pageInfo:#4:0});$5({results:#4})', [__0, __1, __2, __3, __d7, __4, __5, __7, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAccountAccessServices, i));
71
+
72
+ export const listAuditComments = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PaginatedResponseComment", '{input:#1,output:#4,errors:[$9],protocol:$10,retry:$11};$6(>5)@"ListAuditCommentsRequest";$8(#7:0);$6(>6)@"%Results";$6(>7)@"%";$5({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,changedSinceDate:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/comments",code:200}));$5({data:#2,pageInfo:#4:0});$5({results:#3})', [__0, __1, __2, __3, __d7, __4, __5, __d6, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAuditComments, i));
73
+
74
+ export const listAuditControls = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PaginatedResponseAuditorControl", '{input:#1,output:#10,errors:[$13],protocol:$14,retry:$15};$9(>11)@"ListAuditControlsRequest";$9(>12)@"SectionPrinciple";$9(>13)@"Section";$11(#3);$9(>14)@"AuditControlAssessment";$11(#5);$9(>15)@"AuditorControl";$11(#7);$9(>16)@"%Results";$9(>17)@"%";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,externalIdMatchesAny:$7(#6:0.pipe($5()))}).pipe($1({method:"GET",uri:"/audits/{auditId}/controls",code:200}));$8({id:$3,name:$3});$8({name:$3,framework:$3,principle:$10(#2)});$8({segmentId:$3,assessmentState:$3,justification:$10($3)});$8({id:$3,externalId:$10($3),name:$3,description:$3,source:$3,domains:#6:0,owner:$10(#12:0),role:$7($10($3)),customFields:#12:2,creationDate:$10($3),modificationDate:$10($3),framework:$3,sections:#4,inScopeSegmentIds:#6:0,assessments:#6});$8({data:#8,pageInfo:#4:0});$8({results:#9})', [__0, __1, __2, __3, __d7, __12, __d0, __10, __4, __5, __7, __6, __d12, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAuditControls, i));
75
+
76
+ export const listAuditEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PaginatedResponseEvidence", '{input:#1,output:#4,errors:[$9],protocol:$10,retry:$11};$6(>5)@"ListAuditEvidenceRequest";$8(#7:2);$6(>6)@"%Results";$6(>7)@"%";$5({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,changedSinceDate:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/evidence",code:200}));$5({data:#2,pageInfo:#4:0});$5({results:#3})', [__0, __1, __2, __3, __d7, __4, __5, __d4, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAuditEvidence, i));
77
+
78
+ export const listAuditEvidenceUrls = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("EvidenceUrl", '{input:#1,output:#5,errors:[$10],protocol:$11,retry:$12};$6(>6)@"ListAudit%sRequest";$6(>7)@"%";$9(#2);$6(>8)@"PaginatedResponse%Results";$6(>9)@"PaginatedResponse%";$5({auditId:$3.pipe($2()),auditEvidenceId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/evidence/{auditEvidenceId}/urls",code:200}));$5({id:$3,url:$3,filename:$3,isDownloadable:$7,mimeType:$8($3)});$5({data:#3,pageInfo:#4:0});$5({results:#4})', [__0, __1, __2, __3, __d7, __4, __5, __9, __7, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAuditEvidenceUrls, i));
79
+
80
+ export const listAuditIssues = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("IssueSnapshotItem", '{input:#1,output:#6,errors:[$13],protocol:$14,retry:$15};$9(>7)@"ListAuditIssuesRequest";$9(>8)@"%ApprovalProgress";$9(>9)@"%";$12(#3);$9(>10)@"PaginatedResponse%Results";$9(>11)@"PaginatedResponse%";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,snapshotIdMatchesAny:$7(#6:0.pipe($5())),createdAfterDate:~4:1,createdBeforeDate:~4:1,detectedAfterDate:~4:1,detectedBeforeDate:~4:1,orderBy:~4:1,orderDirection:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/issues/items",code:200}));$8({approvedCount:$10,totalApprovers:$10});$8({id:$3,title:$7($3),description:$7($3),readableIssueId:$3,issueId:$3,snapshotId:$3,dueDate:$7($11($3)),status:$7($3),approvalProgress:$7($11(#2)),lastModifiedAt:$7($3),createdAt:$7($3),detectedAt:$7($3)});$8({data:#4,pageInfo:#4:0});$8({results:#5})', [__0, __1, __2, __3, __d7, __12, __d0, __10, __4, __5, __11, __7, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAuditIssues, i));
81
+
82
+ export const listAuditRisks = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("AuditRisk", '{input:#1,output:#6,errors:[$13],protocol:$14,retry:$15};$6(>7)@"List%sRequest";$6(>8)@"%Owner";$6(>9)@"%";$12(#3);$6(>10)@"PaginatedResponse%Results";$6(>11)@"PaginatedResponse%";$5({auditId:$3.pipe($2()),snapshotId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,orderBy:~4:1,orderDirection:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/risks/{snapshotId}",code:200}));$5({displayName:$3,imageUrl:$7($3)});$5({id:$3,riskId:$7($3),riskScenario:$8($7($3)),likelihood:$8($7($9)),impact:$8($7($9)),inherentRisk:$8($7($9)),treatment:$8($7($3)),treatmentStatus:$8($7($3)),residualRisk:$8($7($9)),reviewStatus:$8($7($3)),owner:$8($7(#2)),categories:$8(#10:0),ciaCategories:$8(#11:0),linkedControlIds:$8(#10:0),identified:$8($7($3))});$5({data:#4,pageInfo:#4:0});$5({results:#5})', [__0, __1, __2, __3, __d7, __4, __5, __7, __10, __11, __d0, __d2, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAuditRisks, i));
83
+
84
+ export const listAudits = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PaginatedResponseAudit", '{input:#1,output:#4,errors:[$10],protocol:$11,retry:$12};$7(>5)@"ListAuditsRequest";$9(#8:6);$7(>6)@"%Results";$7(>7)@"%";$6({pageSize:~2:2,pageCursor:~2:1,changedSinceDate:~2:1,isActiveAudit:$5($4.pipe($3()))}).pipe($1({method:"GET",uri:"/audits",code:200}));$6({data:#2,pageInfo:#2:0});$6({results:#3})', [__0, __1, __d7, __12, __9, __10, __4, __5, __d3, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAudits, i));
85
+
86
+ export const listAuditSnapshots = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("IssueSnapshotMetadata", '{input:#1,output:#5,errors:[$9],protocol:$10,retry:$11};$6(>6)@"ListAuditSnapshotsRequest";$6(>7)@"%";$8(#2);$6(>8)@"PaginatedResponse%Results";$6(>9)@"PaginatedResponse%";$5({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/issues/snapshots",code:200}));$5({id:$3,title:$7($3),description:$7($3),createdAt:$7($3)});$5({data:#3,pageInfo:#4:0});$5({results:#4})', [__0, __1, __2, __3, __d7, __4, __5, __10, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listAuditSnapshots, i));
87
+
88
+ export const listCodeChanges = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("CodeChange", '{input:#1,output:#5,errors:[$11],protocol:$12,retry:$13};$9(>6)@"List%sRequest";$9(>7)@"%";$10(#2);$9(>8)@"PaginatedResponse%Results";$9(>9)@"PaginatedResponse%";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,sourcesMatchesAny:$7(#6:0.pipe($5())),closedAfterDate:~4:1,closedBeforeDate:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/assets/code-changes",code:200}));$8({id:$3,codeChange:$3,identifier:$7($3),service:$7($3),repository:$7($3),openedAt:$7($3),closedAt:$7($3)});$8({data:#3,pageInfo:#4:0});$8({results:#4})', [__0, __1, __2, __3, __d7, __12, __d2, __10, __4, __5, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listCodeChanges, i));
89
+
90
+ export const listCommentsForControl = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:2,errors:[$8],protocol:$9,retry:$10};$6(>2)@"ListCommentsForControlRequest";$5({auditId:$3.pipe($2()),controlId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,changedSinceDate:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/controls/{controlId}/comments",code:200}))', [__0, __1, __2, __3, __d7, __4, __5, __d9, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(listCommentsForControl, i));
91
+
92
+ export const listCommentsForInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:2,errors:[$8],protocol:$9,retry:$10};$6(>2)@"ListCommentsForInformationRequestRequest";$5({auditId:$3.pipe($2()),requestId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,changedSinceDate:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests/{requestId}/comments",code:200}))', [__0, __1, __2, __3, __d7, __4, __5, __d9, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(listCommentsForInformationRequest, i));
93
+
94
+ export const listInformationRequestActivity = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("InformationRequestActivityLog", '{input:#1,output:#5,errors:[$9],protocol:$10,retry:$11};$6(>6)@"ListInformationRequestActivityRequest";$6(>7)@"%";$8(#2);$6(>8)@"PaginatedResponse%Results";$6(>9)@"PaginatedResponse%";$5({auditId:$3.pipe($2()),requestId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,changedSinceDate:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests/{requestId}/activity",code:200}));$5({id:$3,activityType:$3,timestamp:$3,userEmail:$7($3),oldStatus:$7($3),newStatus:$7($3),reason:$7($3),fillOutcome:$7($3),sourceInformationRequestId:$7($3),sourceAuditId:$7($3)});$5({data:#3,pageInfo:#4:0});$5({results:#4})', [__0, __1, __2, __3, __d7, __4, __5, __7, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listInformationRequestActivity, i));
95
+
96
+ export const listInformationRequestEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PaginatedResponseInformationRequestEvidence", '{input:#1,output:#4,errors:[$12],protocol:$13,retry:$14};$9(>5)@"ListInformationRequestEvidenceRequest";$11(#10:0);$9(>6)@"%Results";$9(>7)@"%";$8({auditId:$3.pipe($2()),requestId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,changedSinceDate:~4:1,evidenceTypeMatchesAny:$7(#6:0.pipe($5()))}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests/{requestId}/evidence",code:200}));$8({data:#2,pageInfo:#4:0});$8({results:#3})', [__0, __1, __2, __3, __d7, __12, __d2, __10, __4, __5, __d5, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listInformationRequestEvidence, i));
97
+
98
+ export const listInformationRequests = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:2,errors:[$11],protocol:$12,retry:$13};$9(>2)@"ListInformationRequestsRequest";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,changedSinceDate:~4:1,segmentIdsMatchesAny:$7(#6:0.pipe($5()))}).pipe($1({method:"GET",uri:"/audits/{auditId}/information-requests",code:200}))', [__0, __1, __2, __3, __d7, __12, __d0, __10, __4, __5, __d10, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(listInformationRequests, i));
99
+
100
+ export const listInformationRequestsForControl = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:2,errors:[$8],protocol:$9,retry:$10};$6(>2)@"ListInformationRequestsForControlRequest";$5({auditId:$3.pipe($2()),controlId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/controls/{controlId}/information-requests",code:200}))', [__0, __1, __2, __3, __d7, __4, __5, __d10, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(listInformationRequestsForControl, i));
101
+
102
+ export const listIntegrations = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PaginatedResponseAuditIntegration", '{input:#1,output:#5,errors:[$12],protocol:$13,retry:$14};$9(>6)@"ListIntegrationsRequest";$9(>7)@"AuditIntegration";$11(#2);$9(>8)@"%Results";$9(>9)@"%";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,tagsMatchesAny:$7(#6:0.pipe($5())),categoriesMatchesAny:$7(#6:0.pipe($5()))}).pipe($1({method:"GET",uri:"/audits/{auditId}/integrations",code:200}));$8({id:$3,name:$3,tags:$7(#10:0),categories:$7(#10:0)});$8({data:#3,pageInfo:#4:0});$8({results:#4})', [__0, __1, __2, __3, __d7, __12, __d2, __10, __4, __5, __d0, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listIntegrations, i));
103
+
104
+ export const listPersonnelAccountAccess = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("AccountAccess", '{input:#1,output:#5,errors:[$12],protocol:$13,retry:$14};$6(>6)@"ListPersonnel%Request";$6(>7)@"%";$11(#2);$6(>8)@"PaginatedResponse%Results";$6(>9)@"PaginatedResponse%";$5({auditId:$3.pipe($2()),serviceId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,status:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/personnel/account-access/{serviceId}",code:200}));$5({id:$3,accountName:$3,owner:$8($7($3)),role:$8(#9:0),status:$8($3),mfa:$8($7($10)),createdDate:$8($7($3)),deactivatedDate:$8($7($3))});$5({data:#3,pageInfo:#4:0});$5({results:#4})', [__0, __1, __2, __3, __d7, __4, __5, __7, __10, __d0, __9, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listPersonnelAccountAccess, i));
105
+
106
+ export const listPersonnelGroups = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PersonnelGroup", '{input:#1,output:#5,errors:[$14],protocol:$15,retry:$16};$9(>6)@"List%sRequest";$9(>7)@"%";$13(#2);$9(>8)@"PaginatedResponse%Results";$9(>9)@"PaginatedResponse%";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,sourcesMatchesAny:$7(#6:0.pipe($5())),orderBy:~4:1,orderDirection:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/personnel/groups",code:200}));$8({id:$3,name:$3,members:$7($10),source:$7($3),tasks:$7(#11:1),tasksLastUpdated:$7($12($3)),pointOfContact:$7($12($3))});$8({data:#3,pageInfo:#4:0});$8({results:#4})', [__0, __1, __2, __3, __d7, __12, __d0, __10, __4, __5, __11, __d11, __7, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listPersonnelGroups, i));
107
+
108
+ export const listPersonnelPeople = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PaginatedResponsePersonnelPerson", '{input:#1,output:#8,errors:[$14],protocol:$15,retry:$16};$9(>9)@"ListPersonnelPeopleRequest";$9(>10)@"PeopleSourceInfo";$9(>11)@"PeopleTaskStatusInfo";$9(>12)@"PeopleSecurityTaskDetails";$9(>13)@"PersonnelPerson";$13(#5);$9(>14)@"%Results";$9(>15)@"%";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,status:~4:1,groupsMatchesAny:$7(#6:0.pipe($5())),orderBy:~4:1,orderDirection:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/personnel/people",code:200}));$8({mainSource:$3,supplementarySource:$10($3)});$8({status:$3,dueDate:$10($3),completionDate:$10($3),numTasksCompleted:$10($11),numTasksOverdue:$10($11),numTasksDueSoon:$10($11)});$8({status:$3,dueDate:$10($3),completionDate:$10($3)});$8({id:$3,name:$3,email:$3,jobTitle:$7($10($3)),employmentStatus:$7($10($3)),startDate:$7($10($3)),endDate:$7($10($3)),groups:$7(#12:1),source:$7($10(#2)),taskStatus:$7($10(#3)),lastReminded:$7($10($3)),policies:$7($10(#4)),trainings:$7($10(#4)),backgroundChecks:$7($10(#4)),deviceMonitoring:$7($10(#4)),customOnboarding:$7($10(#4)),customOffboarding:$7($10(#4))});$8({data:#6,pageInfo:#4:0});$8({results:#7})', [__0, __1, __2, __3, __d7, __12, __d0, __10, __4, __5, __7, __11, __d11, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listPersonnelPeople, i));
109
+
110
+ export const listRiskSnapshots = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("RiskSnapshot", '{input:#1,output:#5,errors:[$8],protocol:$9,retry:$10};$6(>6)@"List%sRequest";$6(>7)@"%";$7(#2);$6(>8)@"PaginatedResponse%Results";$6(>9)@"PaginatedResponse%";$5({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/risks/snapshots",code:200}));$5({id:$3,createdAt:$3});$5({data:#3,pageInfo:#4:0});$5({results:#4})', [__0, __1, __2, __3, __d7, __4, __5, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listRiskSnapshots, i));
111
+
112
+ export const listShareInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:6,errors:[$7],protocol:$8,retry:$9};$5(>2)@"ListShareInformationRequestRequest";$4({auditId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/audits/{auditId}/share-information-request-list",code:200}))', [__0, __1, __2, __3, __4, __5, __d3, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(listShareInformationRequest, i));
113
+
114
+ export const listVendors = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("AuditVendor", '{input:#1,output:#6,errors:[$13],protocol:$14,retry:$15};$9(>7)@"ListVendorsRequest";$9(>8)@"%DataAgreements";$9(>9)@"%";$12(#3);$9(>10)@"PaginatedResponse%Results";$9(>11)@"PaginatedResponse%";$8({auditId:$3.pipe($2()),pageSize:~4:2,pageCursor:~4:1,search:~4:1,vendorStatusesMatchesAny:$7(#6:0.pipe($5())),inherentRiskMatchesAny:$7(#6:0.pipe($5())),orderBy:~4:1,orderDirection:~4:1}).pipe($1({method:"GET",uri:"/audits/{auditId}/managed-vendors",code:200}));$8({total:$10,complete:$10});$8({id:$3,name:$3,inherentRisk:$7($3),status:$7($3),findings:$7($10),lastReviewedCompleted:$7($11($3)),nextSecurityReviewDueDate:$7($11($3)),vendorCategory:$7($11($3)),residualRisk:$7($11($3)),dataAgreements:$7($11(#2))});$8({data:#4,pageInfo:#4:0});$8({results:#5})', [__0, __1, __2, __3, __d7, __12, __d2, __10, __4, __5, __11, __7, __6, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(listVendors, i));
115
+
116
+ export const updateAuditEvidence = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("UpdateAuditEvidenceRequest", '{input:#2,output:#7:2,errors:[$8],protocol:$9,retry:$10};$3(>3)@"%StatusUpdate";$3(>4)@"%";$2({auditorEmail:$1,stateTransition:$1});$2({auditId:$1.pipe($5()),auditEvidenceId:$1.pipe($5()),statusUpdate:$6(#1)}).pipe($4({method:"PATCH",uri:"/audits/{auditId}/evidence/{auditEvidenceId}",code:200}))', [__0, __3, __4, __5, __1, __2, __10, __d4, UnknownVantaError, VantaProtocol, Retry.Retry]) : API.call(updateAuditEvidence, i));
117
+
118
+ export const updateCommentForControl = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"UpdateCommentForControlRequest";$4({auditId:$3.pipe($2()),controlId:$3.pipe($2()),commentId:$3.pipe($2()),text:$3,email:$3}).pipe($1({method:"PATCH",uri:"/audits/{auditId}/controls/{controlId}/comments/{commentId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d8, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(updateCommentForControl, i));
119
+
120
+ export const updateCommentForInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"UpdateCommentForInformationRequestRequest";$4({auditId:$3.pipe($2()),requestId:$3.pipe($2()),commentId:$3.pipe($2()),text:$3,email:$3}).pipe($1({method:"PATCH",uri:"/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",code:200}))', [__0, __1, __2, __3, __4, __5, __d8, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(updateCommentForInformationRequest, i));
121
+
122
+ export const updateInformationRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"UpdateInformationRequestRequest";$7({auditId:$3.pipe($2()),requestId:$3.pipe($2()),frameworkCodes:$5(#4:0),description:$5($6($3)),dueDate:$5($6($3)),evidenceCaptureDate:$5($6($3)),requestType:$5($3),title:$5($3),cadence:$5($3),additionalControlIds:$5(#4:0),linkedControlIds:$5(#4:0)}).pipe($1({method:"PATCH",uri:"/audits/{auditId}/information-requests/{requestId}",code:200}))', [__0, __1, __2, __3, __d0, __10, __7, __4, __5, __d1, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(updateInformationRequest, i));
123
+
124
+ export const upsertAssessmentForControl = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7],protocol:$8,retry:$9};$6(>3)@"UpsertAssessmentForControlRequest";$6(>4)@"AuditorControlAssessment";$5({auditId:$3.pipe($2()),controlId:$3.pipe($2()),segmentId:$4($3),assessmentState:$3,justification:$3,auditorEmail:$3}).pipe($1({method:"PUT",uri:"/audits/{auditId}/controls/{controlId}/assessment",code:200}));$5({controlId:$3,segmentId:$3,assessmentState:$3,justification:$3})', [__0, __1, __2, __3, __10, __4, __5, UnknownVantaError, VantaProtocol, Retry.Retry]] : API.call(upsertAssessmentForControl, i));
125
+ // Schema builders: each runs one schema initializer, on that schema's first use.
126
+ // Schema table: entry i is schema j of builder f, made on first reach.
127
+
128
+
129
+ // Shared schema data (see `op` in core/api).
130
+ function __d0() {
131
+ return ['$2($1)', [__0, __3, __6]];
132
+ }
133
+ function __d1() {
134
+ return ['$6(>1)@"InformationRequest";$5({id:$1,uniqueId:$1,additionalControlIds:#2:0,linkedControlIds:#2:0,approvalStatus:$1,cadence:$3($1),frameworkCodes:#2:0,segmentIds:#2:0,description:$3($1),dueDate:$3($1),evidenceCaptureDate:$3($1),requestId:$3($1),requestType:$1,title:$1,creationDate:$1,modificationDate:$1,deletionDate:$3($1),ownerAssignment:$3($4)})', [__0, __3, __d0, __7, __8, __4, __5]];
135
+ }
136
+ function __d2() {
137
+ return ['$2($1)', [__0, __3, __6]];
138
+ }
139
+ function __d3() {
140
+ return ['$4(>7)@"AuditAuditorRequestListMetadata";$4(>8)@"AuditSegmentFramework";$4(>9)@"AuditSegmentAssociation";$4(>10)@"AuditSoc2Deliverable";$4(>11)@"AuditSegment";$6(#4);$4(>12)@"Audit";$3({requestsSharedWithCustomer:$2($1)});$3({displayName:$1});$3({id:$1,displayName:$1});$3({reportType:$1,tscs:#5:0});$3({id:$1,kind:$1,displayName:$1,framework:#1,businessUnit:$2(#2),system:$2(#2),soc2Deliverable:$2(#3)});$3({id:$1,customerOrganizationName:$1,customerDisplayName:$2($1),customerOrganizationId:$1,auditStartDate:$1,auditEndDate:$1,earlyAccessStartsAt:$2($1),framework:$1,displayName:$1,allowAuditorEmails:#7:0,allowAllAuditors:$8,deletionDate:$2($1),creationDate:$1,modificationDate:$2($1),completionDate:$2($1),auditFocus:$1,irlGenerationStatus:$2($1),auditorRequestListMetadata:$9(#0),segments:#5})', [__0, __3, __7, __4, __5, __d2, __6, __d0, __9, __10]];
141
+ }
142
+ function __d4() {
143
+ return ['$4(>3)@"EvidenceControl";$5(#0);$4(>4)@"Evidence";$3({name:$1,sectionNames:#2:0});$3({id:$1,externalId:$1,status:$1,name:$1,deletionDate:$6($1),creationDate:$1,statusUpdatedDate:$1,testStatus:$6($1),evidenceType:$1,evidenceId:$1,relatedControls:#1,description:$6($1)})', [__0, __3, __d0, __4, __5, __6, __7]];
144
+ }
145
+ function __d5() {
146
+ return ['$6(>1)@"InformationRequestEvidence";$5({id:$1,evidenceType:$1,visibleToAuditorDate:$3($2($1)),creationDate:$1,modificationDate:$1,deletionDate:$3($2($1)),evidence:$4})', [__0, __3, __7, __10, __8, __4, __5]];
147
+ }
148
+ function __d6() {
149
+ return ['$4(>1)@"Comment";$3({id:$1,auditEvidenceId:$1,text:$1,creationDate:$1,modificationDate:$2($1),deletionDate:$2($1),email:$2($1),authorName:$2($1)})', [__0, __3, __7, __4, __5]];
150
+ }
151
+ function __d7() {
152
+ return ['$5(>3)@"PageInfo";$7($1.pipe($6()));$7($8.pipe($6()));$4({endCursor:$2($1),hasNextPage:$3,hasPreviousPage:$3,startCursor:$2($1)})', [__0, __3, __7, __9, __4, __5, __12, __10, __11]];
153
+ }
154
+ function __d8() {
155
+ return ['$4(>1)@"AuditControlComment";$3({id:$1,text:$1,creationDate:$1,modificationDate:$2($1),deletionDate:$2($1),email:$2($1),authorName:$2($1)})', [__0, __3, __7, __4, __5]];
156
+ }
157
+ function __d9() {
158
+ return ['$2(#1:0);$5(>3)@"PaginatedResponseAuditControlCommentResults";$5(>4)@"PaginatedResponseAuditControlComment";$4({data:#0,pageInfo:#3:0});$4({results:#1})', [__0, __d8, __6, __d7, __4, __5]];
159
+ }
160
+ function __d10() {
161
+ return ['$2(#1:0);$5(>3)@"PaginatedResponseInformationRequestResults";$5(>4)@"PaginatedResponseInformationRequest";$4({data:#0,pageInfo:#3:0});$4({results:#1})', [__0, __d1, __6, __d7, __4, __5]];
162
+ }
163
+ function __d11() {
164
+ return ['$3(>2)@"PersonnelGroupTask";$4(#0);$2({name:$1})', [__0, __3, __4, __5, __6]];
165
+ }
166
+ function __d12() {
167
+ return ['$3(>3)@"Owner";$3(>4)@"CustomField";$5(#1);$2({id:$1,displayName:$1,emailAddress:$1});$2({label:$1,value:$4})', [__0, __3, __4, __5, __8, __6]];
168
+ }
169
+ function __d13() {
170
+ return ['$2(>1)@"DeleteCommentForControlResponse";$1({})', [__0, __4, __5]];
171
+ }