@distilled.cloud/vanta 0.0.0 → 1.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +33 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +39 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +22 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +8 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +8 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +44 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/auditor_api.d.ts +2239 -0
- package/lib/services/auditor_api.d.ts.map +1 -0
- package/lib/services/auditor_api.js +2101 -0
- package/lib/services/auditor_api.js.map +1 -0
- package/lib/services/build_integrations.d.ts +1537 -0
- package/lib/services/build_integrations.d.ts.map +1 -0
- package/lib/services/build_integrations.js +1327 -0
- package/lib/services/build_integrations.js.map +1 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +6 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/manage_vanta.d.ts +7087 -0
- package/lib/services/manage_vanta.d.ts.map +1 -0
- package/lib/services/manage_vanta.js +7542 -0
- package/lib/services/manage_vanta.js.map +1 -0
- package/lib/services/webhooks.d.ts +474 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +631 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +62 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +25 -0
- package/src/pagination.ts +7 -0
- package/src/protocol.ts +67 -0
- package/src/retry.ts +54 -0
- package/src/services/auditor_api.ts +5477 -0
- package/src/services/build_integrations.ts +3773 -0
- package/src/services/index.ts +5 -0
- package/src/services/manage_vanta.ts +18836 -0
- package/src/services/webhooks.ts +1454 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,2101 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { VantaProtocol, } from "../protocol.js";
|
|
6
|
+
import { UnknownVantaError } from "../errors.js";
|
|
7
|
+
import * as Retry from "../retry.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 InformationRequestApprovalStatus = S.String;
|
|
21
|
+
export const InformationRequestCadence = S.String;
|
|
22
|
+
export const InformationRequestFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
|
|
23
|
+
export const InformationRequestType = S.String;
|
|
24
|
+
export const ResourceOwnerCase0Type = S.String;
|
|
25
|
+
export const ResourceOwnerCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
26
|
+
displayName: S.String,
|
|
27
|
+
id: S.String,
|
|
28
|
+
type: ResourceOwnerCase0Type,
|
|
29
|
+
})).annotate({
|
|
30
|
+
identifier: "ResourceOwnerCase0",
|
|
31
|
+
});
|
|
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({
|
|
38
|
+
identifier: "ResourceOwnerCase1",
|
|
39
|
+
});
|
|
40
|
+
export const ResourceOwner = S.Unknown;
|
|
41
|
+
export const InformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
|
+
id: S.String,
|
|
43
|
+
uniqueId: S.String,
|
|
44
|
+
additionalControlIds: InformationRequestAdditionalControlIdsList,
|
|
45
|
+
approvalStatus: InformationRequestApprovalStatus,
|
|
46
|
+
cadence: S.NullOr(InformationRequestCadence),
|
|
47
|
+
frameworkCodes: InformationRequestFrameworkCodesList,
|
|
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({
|
|
59
|
+
identifier: "InformationRequest",
|
|
60
|
+
});
|
|
61
|
+
export const CreateAuditorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
+
email: S.String,
|
|
63
|
+
givenName: S.String,
|
|
64
|
+
familyName: S.String,
|
|
65
|
+
}).pipe(T.Http({ method: "POST", uri: "/auditors", code: 200 }))).annotate({
|
|
66
|
+
identifier: "CreateAuditorRequest",
|
|
67
|
+
});
|
|
68
|
+
export const Auditor = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
69
|
+
id: S.String,
|
|
70
|
+
organizationId: S.String,
|
|
71
|
+
email: S.String,
|
|
72
|
+
givenName: S.String,
|
|
73
|
+
familyName: S.String,
|
|
74
|
+
})).annotate({ identifier: "Auditor" });
|
|
75
|
+
export const CreateCommentForAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
76
|
+
auditId: S.String.pipe(T.Label()),
|
|
77
|
+
auditEvidenceId: S.String.pipe(T.Label()),
|
|
78
|
+
text: S.String,
|
|
79
|
+
email: S.String,
|
|
80
|
+
creationDate: S.String,
|
|
81
|
+
}).pipe(T.Http({
|
|
82
|
+
method: "POST",
|
|
83
|
+
uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments",
|
|
84
|
+
code: 200,
|
|
85
|
+
}))).annotate({
|
|
86
|
+
identifier: "CreateCommentForAuditEvidenceRequest",
|
|
87
|
+
});
|
|
88
|
+
export const Comment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
89
|
+
id: S.String,
|
|
90
|
+
auditEvidenceId: S.String,
|
|
91
|
+
text: S.String,
|
|
92
|
+
creationDate: S.String,
|
|
93
|
+
modificationDate: S.NullOr(S.String),
|
|
94
|
+
deletionDate: S.NullOr(S.String),
|
|
95
|
+
email: S.NullOr(S.String),
|
|
96
|
+
authorName: S.NullOr(S.String),
|
|
97
|
+
})).annotate({ identifier: "Comment" });
|
|
98
|
+
export const CreateCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
+
auditId: S.String.pipe(T.Label()),
|
|
100
|
+
controlId: S.String.pipe(T.Label()),
|
|
101
|
+
text: S.String,
|
|
102
|
+
email: S.String,
|
|
103
|
+
creationDate: S.String,
|
|
104
|
+
}).pipe(T.Http({
|
|
105
|
+
method: "POST",
|
|
106
|
+
uri: "/audits/{auditId}/controls/{controlId}/comments",
|
|
107
|
+
code: 200,
|
|
108
|
+
}))).annotate({
|
|
109
|
+
identifier: "CreateCommentForControlRequest",
|
|
110
|
+
});
|
|
111
|
+
export const AuditControlComment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
112
|
+
id: S.String,
|
|
113
|
+
text: S.String,
|
|
114
|
+
creationDate: S.String,
|
|
115
|
+
modificationDate: S.NullOr(S.String),
|
|
116
|
+
deletionDate: S.NullOr(S.String),
|
|
117
|
+
email: S.NullOr(S.String),
|
|
118
|
+
authorName: S.NullOr(S.String),
|
|
119
|
+
})).annotate({
|
|
120
|
+
identifier: "AuditControlComment",
|
|
121
|
+
});
|
|
122
|
+
export const CreateCommentForInformationRequestRequest =
|
|
123
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
+
auditId: S.String.pipe(T.Label()),
|
|
125
|
+
requestId: S.String.pipe(T.Label()),
|
|
126
|
+
text: S.String,
|
|
127
|
+
email: S.String,
|
|
128
|
+
creationDate: S.String,
|
|
129
|
+
}).pipe(T.Http({
|
|
130
|
+
method: "POST",
|
|
131
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/comments",
|
|
132
|
+
code: 200,
|
|
133
|
+
}))).annotate({
|
|
134
|
+
identifier: "CreateCommentForInformationRequestRequest",
|
|
135
|
+
});
|
|
136
|
+
export const InformationRequestComment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
+
id: S.String,
|
|
138
|
+
text: S.String,
|
|
139
|
+
creationDate: S.String,
|
|
140
|
+
modificationDate: S.NullOr(S.String),
|
|
141
|
+
deletionDate: S.NullOr(S.String),
|
|
142
|
+
email: S.NullOr(S.String),
|
|
143
|
+
authorName: S.NullOr(S.String),
|
|
144
|
+
})).annotate({
|
|
145
|
+
identifier: "InformationRequestComment",
|
|
146
|
+
});
|
|
147
|
+
export const ControlDomain = S.String;
|
|
148
|
+
export const FrameworkId = S.String;
|
|
149
|
+
export const FrameworkSectionFrameworkId = S.Unknown;
|
|
150
|
+
export const FrameworkSection = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
151
|
+
frameworkId: FrameworkSectionFrameworkId,
|
|
152
|
+
sectionId: S.String,
|
|
153
|
+
})).annotate({
|
|
154
|
+
identifier: "FrameworkSection",
|
|
155
|
+
});
|
|
156
|
+
export const CreateCustomControlRequestSectionsList = /*@__PURE__*/ S.Array(FrameworkSection);
|
|
157
|
+
export const GdprRole = S.String;
|
|
158
|
+
export const CreateCustomControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
159
|
+
auditId: S.String.pipe(T.Label()),
|
|
160
|
+
externalId: S.String,
|
|
161
|
+
name: S.NullOr(S.String),
|
|
162
|
+
description: S.String,
|
|
163
|
+
effectiveDate: S.String,
|
|
164
|
+
category: ControlDomain,
|
|
165
|
+
sections: S.optional(S.NullOr(CreateCustomControlRequestSectionsList)),
|
|
166
|
+
role: S.optional(S.NullOr(GdprRole)),
|
|
167
|
+
}).pipe(T.Http({
|
|
168
|
+
method: "POST",
|
|
169
|
+
uri: "/audits/{auditId}/controls/custom-controls",
|
|
170
|
+
code: 200,
|
|
171
|
+
}))).annotate({
|
|
172
|
+
identifier: "CreateCustomControlRequest",
|
|
173
|
+
});
|
|
174
|
+
export const ControlSource = S.String;
|
|
175
|
+
export const ControlDomainsList = /*@__PURE__*/ S.Array(S.String);
|
|
176
|
+
export const Owner = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
177
|
+
id: S.String,
|
|
178
|
+
displayName: S.String,
|
|
179
|
+
emailAddress: S.String,
|
|
180
|
+
})).annotate({ identifier: "Owner" });
|
|
181
|
+
export const CustomFieldValueCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
182
|
+
export const CustomFieldValue = S.Unknown;
|
|
183
|
+
export const CustomField = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
184
|
+
label: S.String,
|
|
185
|
+
value: CustomFieldValue,
|
|
186
|
+
})).annotate({ identifier: "CustomField" });
|
|
187
|
+
export const ControlCustomFieldsList = /*@__PURE__*/ S.Array(CustomField);
|
|
188
|
+
export const Control = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
189
|
+
id: S.String,
|
|
190
|
+
externalId: S.NullOr(S.String),
|
|
191
|
+
name: S.String,
|
|
192
|
+
description: S.String,
|
|
193
|
+
source: ControlSource,
|
|
194
|
+
domains: ControlDomainsList,
|
|
195
|
+
owner: S.NullOr(Owner),
|
|
196
|
+
role: S.optional(S.NullOr(S.String)),
|
|
197
|
+
customFields: ControlCustomFieldsList,
|
|
198
|
+
creationDate: S.NullOr(S.String),
|
|
199
|
+
modificationDate: S.NullOr(S.String),
|
|
200
|
+
})).annotate({ identifier: "Control" });
|
|
201
|
+
export const CreateCustomEvidenceRequestRequestControlIdsList =
|
|
202
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
203
|
+
export const RecurrenceDuration = S.String;
|
|
204
|
+
export const CreateCustomEvidenceRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
205
|
+
auditId: S.String.pipe(T.Label()),
|
|
206
|
+
controlIds: CreateCustomEvidenceRequestRequestControlIdsList,
|
|
207
|
+
title: S.String,
|
|
208
|
+
description: S.String,
|
|
209
|
+
cadence: RecurrenceDuration,
|
|
210
|
+
reminderWindow: RecurrenceDuration,
|
|
211
|
+
isRestricted: S.Boolean,
|
|
212
|
+
auditorEmail: S.String,
|
|
213
|
+
}).pipe(T.Http({
|
|
214
|
+
method: "POST",
|
|
215
|
+
uri: "/audits/{auditId}/evidence/custom-evidence-requests",
|
|
216
|
+
code: 200,
|
|
217
|
+
}))).annotate({
|
|
218
|
+
identifier: "CreateCustomEvidenceRequestRequest",
|
|
219
|
+
});
|
|
220
|
+
export const CustomEvidenceRequestControlIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
221
|
+
export const CustomEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
222
|
+
id: S.String,
|
|
223
|
+
controlIds: CustomEvidenceRequestControlIdsList,
|
|
224
|
+
title: S.String,
|
|
225
|
+
description: S.String,
|
|
226
|
+
cadence: RecurrenceDuration,
|
|
227
|
+
reminderWindow: RecurrenceDuration,
|
|
228
|
+
isRestricted: S.Boolean,
|
|
229
|
+
})).annotate({
|
|
230
|
+
identifier: "CustomEvidenceRequest",
|
|
231
|
+
});
|
|
232
|
+
export const CreateInformationRequestRequestFrameworkCodesList =
|
|
233
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
234
|
+
export const CreateInformationRequestRequestAdditionalControlIdsList =
|
|
235
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
236
|
+
export const CreateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
237
|
+
auditId: S.String.pipe(T.Label()),
|
|
238
|
+
uniqueId: S.String,
|
|
239
|
+
title: S.String,
|
|
240
|
+
requestType: InformationRequestType,
|
|
241
|
+
description: S.optional(S.NullOr(S.String)),
|
|
242
|
+
frameworkCodes: CreateInformationRequestRequestFrameworkCodesList,
|
|
243
|
+
cadence: S.optional(S.NullOr(InformationRequestCadence)),
|
|
244
|
+
dueDate: S.optional(S.NullOr(S.String)),
|
|
245
|
+
evidenceCaptureDate: S.optional(S.NullOr(S.String)),
|
|
246
|
+
additionalControlIds: S.optional(CreateInformationRequestRequestAdditionalControlIdsList),
|
|
247
|
+
}).pipe(T.Http({
|
|
248
|
+
method: "POST",
|
|
249
|
+
uri: "/audits/{auditId}/information-requests",
|
|
250
|
+
code: 200,
|
|
251
|
+
}))).annotate({
|
|
252
|
+
identifier: "CreateInformationRequestRequest",
|
|
253
|
+
});
|
|
254
|
+
export const DeleteCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
255
|
+
auditId: S.String.pipe(T.Label()),
|
|
256
|
+
controlId: S.String.pipe(T.Label()),
|
|
257
|
+
commentId: S.String.pipe(T.Label()),
|
|
258
|
+
email: S.String,
|
|
259
|
+
}).pipe(T.Http({
|
|
260
|
+
method: "DELETE",
|
|
261
|
+
uri: "/audits/{auditId}/controls/{controlId}/comments/{commentId}",
|
|
262
|
+
code: 200,
|
|
263
|
+
}))).annotate({
|
|
264
|
+
identifier: "DeleteCommentForControlRequest",
|
|
265
|
+
});
|
|
266
|
+
export const DeleteCommentForControlResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
267
|
+
identifier: "DeleteCommentForControlResponse",
|
|
268
|
+
});
|
|
269
|
+
export const DeleteCommentForInformationRequestRequest =
|
|
270
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
271
|
+
auditId: S.String.pipe(T.Label()),
|
|
272
|
+
requestId: S.String.pipe(T.Label()),
|
|
273
|
+
commentId: S.String.pipe(T.Label()),
|
|
274
|
+
email: S.String,
|
|
275
|
+
}).pipe(T.Http({
|
|
276
|
+
method: "DELETE",
|
|
277
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
|
|
278
|
+
code: 200,
|
|
279
|
+
}))).annotate({
|
|
280
|
+
identifier: "DeleteCommentForInformationRequestRequest",
|
|
281
|
+
});
|
|
282
|
+
export const DeleteCommentForInformationRequestResponse =
|
|
283
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
284
|
+
identifier: "DeleteCommentForInformationRequestResponse",
|
|
285
|
+
});
|
|
286
|
+
export const DeleteInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
+
auditId: S.String.pipe(T.Label()),
|
|
288
|
+
requestId: S.String.pipe(T.Label()),
|
|
289
|
+
}).pipe(T.Http({
|
|
290
|
+
method: "DELETE",
|
|
291
|
+
uri: "/audits/{auditId}/information-requests/{requestId}",
|
|
292
|
+
code: 200,
|
|
293
|
+
}))).annotate({
|
|
294
|
+
identifier: "DeleteInformationRequestRequest",
|
|
295
|
+
});
|
|
296
|
+
export const DeleteInformationRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
297
|
+
identifier: "DeleteInformationRequestResponse",
|
|
298
|
+
});
|
|
299
|
+
export const DuplicateRequestAllowAuditorEmailsList = /*@__PURE__*/ S.Array(S.String);
|
|
300
|
+
export const DuplicateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
301
|
+
sourceAuditId: S.String,
|
|
302
|
+
displayName: S.String,
|
|
303
|
+
auditStartDate: S.String,
|
|
304
|
+
auditEndDate: S.String,
|
|
305
|
+
earlyAccessStartsAt: S.String,
|
|
306
|
+
allowAuditorEmails: DuplicateRequestAllowAuditorEmailsList,
|
|
307
|
+
}).pipe(T.Http({ method: "POST", uri: "/audits/duplicate", code: 200 }))).annotate({
|
|
308
|
+
identifier: "DuplicateRequest",
|
|
309
|
+
});
|
|
310
|
+
export const AuditAllowAuditorEmailsList = /*@__PURE__*/ S.Array(S.String);
|
|
311
|
+
export const AuditFocus = S.String;
|
|
312
|
+
export const AuditAuditorRequestListMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
313
|
+
requestsSharedWithCustomer: S.NullOr(S.String),
|
|
314
|
+
})).annotate({
|
|
315
|
+
identifier: "AuditAuditorRequestListMetadata",
|
|
316
|
+
});
|
|
317
|
+
export const AuditSegmentKind = S.String;
|
|
318
|
+
export const AuditSegmentFramework = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
319
|
+
id: S.String,
|
|
320
|
+
displayName: S.String,
|
|
321
|
+
shortName: S.String,
|
|
322
|
+
})).annotate({
|
|
323
|
+
identifier: "AuditSegmentFramework",
|
|
324
|
+
});
|
|
325
|
+
export const AuditSegmentAssociation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
326
|
+
id: S.String,
|
|
327
|
+
displayName: S.String,
|
|
328
|
+
})).annotate({
|
|
329
|
+
identifier: "AuditSegmentAssociation",
|
|
330
|
+
});
|
|
331
|
+
export const AuditSoc2ReportType = S.String;
|
|
332
|
+
export const AuditSoc2Tsc = S.String;
|
|
333
|
+
export const AuditSoc2DeliverableTscsList = /*@__PURE__*/ S.Array(AuditSoc2Tsc);
|
|
334
|
+
export const AuditSoc2Deliverable = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
335
|
+
reportType: AuditSoc2ReportType,
|
|
336
|
+
tscs: AuditSoc2DeliverableTscsList,
|
|
337
|
+
})).annotate({
|
|
338
|
+
identifier: "AuditSoc2Deliverable",
|
|
339
|
+
});
|
|
340
|
+
export const AuditSegment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
341
|
+
id: S.String,
|
|
342
|
+
kind: AuditSegmentKind,
|
|
343
|
+
displayName: S.String,
|
|
344
|
+
framework: AuditSegmentFramework,
|
|
345
|
+
businessUnit: S.NullOr(AuditSegmentAssociation),
|
|
346
|
+
system: S.NullOr(AuditSegmentAssociation),
|
|
347
|
+
soc2Deliverable: S.NullOr(AuditSoc2Deliverable),
|
|
348
|
+
})).annotate({ identifier: "AuditSegment" });
|
|
349
|
+
export const AuditSegmentsList = /*@__PURE__*/ S.Array(AuditSegment);
|
|
350
|
+
export const Audit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
351
|
+
id: S.String,
|
|
352
|
+
customerOrganizationName: S.String,
|
|
353
|
+
customerDisplayName: S.NullOr(S.String),
|
|
354
|
+
customerOrganizationId: S.String,
|
|
355
|
+
auditStartDate: S.String,
|
|
356
|
+
auditEndDate: S.String,
|
|
357
|
+
earlyAccessStartsAt: S.NullOr(S.String),
|
|
358
|
+
framework: S.String,
|
|
359
|
+
displayName: S.String,
|
|
360
|
+
allowAuditorEmails: AuditAllowAuditorEmailsList,
|
|
361
|
+
allowAllAuditors: S.Boolean,
|
|
362
|
+
deletionDate: S.NullOr(S.String),
|
|
363
|
+
creationDate: S.String,
|
|
364
|
+
modificationDate: S.NullOr(S.String),
|
|
365
|
+
completionDate: S.NullOr(S.String),
|
|
366
|
+
auditFocus: AuditFocus,
|
|
367
|
+
auditorRequestListMetadata: S.optional(AuditAuditorRequestListMetadata),
|
|
368
|
+
segments: AuditSegmentsList,
|
|
369
|
+
})).annotate({ identifier: "Audit" });
|
|
370
|
+
export const FlagInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
371
|
+
auditId: S.String.pipe(T.Label()),
|
|
372
|
+
requestId: S.String.pipe(T.Label()),
|
|
373
|
+
auditorEmail: S.String,
|
|
374
|
+
reason: S.String,
|
|
375
|
+
}).pipe(T.Http({
|
|
376
|
+
method: "POST",
|
|
377
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/flag-evidence",
|
|
378
|
+
code: 200,
|
|
379
|
+
}))).annotate({
|
|
380
|
+
identifier: "FlagInformationRequestEvidenceRequest",
|
|
381
|
+
});
|
|
382
|
+
export const GetAuditRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
+
auditId: S.String.pipe(T.Label()),
|
|
384
|
+
}).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}", code: 200 }))).annotate({
|
|
385
|
+
identifier: "GetAuditRequest",
|
|
386
|
+
});
|
|
387
|
+
export const GetAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
|
+
auditId: S.String.pipe(T.Label()),
|
|
389
|
+
auditEvidenceId: S.String.pipe(T.Label()),
|
|
390
|
+
}).pipe(T.Http({
|
|
391
|
+
method: "GET",
|
|
392
|
+
uri: "/audits/{auditId}/evidence/{auditEvidenceId}",
|
|
393
|
+
code: 200,
|
|
394
|
+
}))).annotate({
|
|
395
|
+
identifier: "GetAuditEvidenceRequest",
|
|
396
|
+
});
|
|
397
|
+
export const AuditEvidenceState = S.String;
|
|
398
|
+
export const AuditEvidenceType = S.String;
|
|
399
|
+
export const EvidenceControlSectionNamesList = /*@__PURE__*/ S.Array(S.String);
|
|
400
|
+
export const EvidenceControl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
+
name: S.String,
|
|
402
|
+
sectionNames: EvidenceControlSectionNamesList,
|
|
403
|
+
})).annotate({
|
|
404
|
+
identifier: "EvidenceControl",
|
|
405
|
+
});
|
|
406
|
+
export const EvidenceRelatedControlsList = /*@__PURE__*/ S.Array(EvidenceControl);
|
|
407
|
+
export const Evidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
408
|
+
id: S.String,
|
|
409
|
+
externalId: S.String,
|
|
410
|
+
status: AuditEvidenceState,
|
|
411
|
+
name: S.String,
|
|
412
|
+
deletionDate: S.NullOr(S.String),
|
|
413
|
+
creationDate: S.String,
|
|
414
|
+
statusUpdatedDate: S.String,
|
|
415
|
+
testStatus: S.NullOr(S.String),
|
|
416
|
+
evidenceType: AuditEvidenceType,
|
|
417
|
+
evidenceId: S.String,
|
|
418
|
+
relatedControls: EvidenceRelatedControlsList,
|
|
419
|
+
description: S.NullOr(S.String),
|
|
420
|
+
})).annotate({ identifier: "Evidence" });
|
|
421
|
+
export const GetAuditEvidenceCommentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
422
|
+
auditId: S.String.pipe(T.Label()),
|
|
423
|
+
auditEvidenceId: S.String.pipe(T.Label()),
|
|
424
|
+
commentId: S.String.pipe(T.Label()),
|
|
425
|
+
}).pipe(T.Http({
|
|
426
|
+
method: "GET",
|
|
427
|
+
uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments/{commentId}",
|
|
428
|
+
code: 200,
|
|
429
|
+
}))).annotate({
|
|
430
|
+
identifier: "GetAuditEvidenceCommentRequest",
|
|
431
|
+
});
|
|
432
|
+
export const GetCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
433
|
+
auditId: S.String.pipe(T.Label()),
|
|
434
|
+
requestId: S.String.pipe(T.Label()),
|
|
435
|
+
commentId: S.String.pipe(T.Label()),
|
|
436
|
+
}).pipe(T.Http({
|
|
437
|
+
method: "GET",
|
|
438
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
|
|
439
|
+
code: 200,
|
|
440
|
+
}))).annotate({
|
|
441
|
+
identifier: "GetCommentForInformationRequestRequest",
|
|
442
|
+
});
|
|
443
|
+
export const GetFrameworkCodesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
444
|
+
auditId: S.String.pipe(T.Label()),
|
|
445
|
+
}).pipe(T.Http({
|
|
446
|
+
method: "GET",
|
|
447
|
+
uri: "/audits/{auditId}/framework-codes",
|
|
448
|
+
code: 200,
|
|
449
|
+
}))).annotate({
|
|
450
|
+
identifier: "GetFrameworkCodesRequest",
|
|
451
|
+
});
|
|
452
|
+
export const FrameworkCodesFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
|
|
453
|
+
export const FrameworkCodes = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
454
|
+
frameworkCodes: FrameworkCodesFrameworkCodesList,
|
|
455
|
+
})).annotate({ identifier: "FrameworkCodes" });
|
|
456
|
+
export const GetInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
457
|
+
auditId: S.String.pipe(T.Label()),
|
|
458
|
+
requestId: S.String.pipe(T.Label()),
|
|
459
|
+
}).pipe(T.Http({
|
|
460
|
+
method: "GET",
|
|
461
|
+
uri: "/audits/{auditId}/information-requests/{requestId}",
|
|
462
|
+
code: 200,
|
|
463
|
+
}))).annotate({
|
|
464
|
+
identifier: "GetInformationRequestRequest",
|
|
465
|
+
});
|
|
466
|
+
export const GetInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
467
|
+
auditId: S.String.pipe(T.Label()),
|
|
468
|
+
requestId: S.String.pipe(T.Label()),
|
|
469
|
+
evidenceId: S.String.pipe(T.Label()),
|
|
470
|
+
}).pipe(T.Http({
|
|
471
|
+
method: "GET",
|
|
472
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}",
|
|
473
|
+
code: 200,
|
|
474
|
+
}))).annotate({
|
|
475
|
+
identifier: "GetInformationRequestEvidenceRequest",
|
|
476
|
+
});
|
|
477
|
+
export const InformationRequestSupportedEvidenceType = S.String;
|
|
478
|
+
export const UploadedDocumentEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
479
|
+
id: S.String,
|
|
480
|
+
filename: S.optional(S.String),
|
|
481
|
+
mimeType: S.String,
|
|
482
|
+
url: S.String,
|
|
483
|
+
})).annotate({
|
|
484
|
+
identifier: "UploadedDocumentEvidence",
|
|
485
|
+
});
|
|
486
|
+
export const LinkEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
487
|
+
title: S.String,
|
|
488
|
+
description: S.optional(S.String),
|
|
489
|
+
url: S.String,
|
|
490
|
+
})).annotate({ identifier: "LinkEvidence" });
|
|
491
|
+
export const ObservationEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
492
|
+
observationDetails: S.String,
|
|
493
|
+
})).annotate({
|
|
494
|
+
identifier: "ObservationEvidence",
|
|
495
|
+
});
|
|
496
|
+
export const VantaDocumentEvidenceAddedBy = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
497
|
+
email: S.String,
|
|
498
|
+
name: S.String,
|
|
499
|
+
})).annotate({
|
|
500
|
+
identifier: "VantaDocumentEvidenceAddedBy",
|
|
501
|
+
});
|
|
502
|
+
export const VantaDocumentUploadedEvidenceType = S.String;
|
|
503
|
+
export const VantaDocumentUploadedEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
504
|
+
type: VantaDocumentUploadedEvidenceType,
|
|
505
|
+
id: S.String,
|
|
506
|
+
filename: S.optional(S.String),
|
|
507
|
+
mimeType: S.String,
|
|
508
|
+
url: S.String,
|
|
509
|
+
})).annotate({
|
|
510
|
+
identifier: "VantaDocumentUploadedEvidence",
|
|
511
|
+
});
|
|
512
|
+
export const VantaDocumentLinkEvidenceType = S.String;
|
|
513
|
+
export const VantaDocumentLinkEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
514
|
+
type: VantaDocumentLinkEvidenceType,
|
|
515
|
+
id: S.String,
|
|
516
|
+
url: S.String,
|
|
517
|
+
})).annotate({
|
|
518
|
+
identifier: "VantaDocumentLinkEvidence",
|
|
519
|
+
});
|
|
520
|
+
export const VantaDocumentEvidenceFile = S.Unknown;
|
|
521
|
+
export const VantaDocumentEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
522
|
+
title: S.String,
|
|
523
|
+
description: S.optional(S.String),
|
|
524
|
+
expirationDate: S.optional(S.String),
|
|
525
|
+
addedBy: S.optional(VantaDocumentEvidenceAddedBy),
|
|
526
|
+
documentVersionId: S.String,
|
|
527
|
+
file: VantaDocumentEvidenceFile,
|
|
528
|
+
})).annotate({
|
|
529
|
+
identifier: "VantaDocumentEvidence",
|
|
530
|
+
});
|
|
531
|
+
export const VantaPolicyEvidenceLastEditedBy = VantaDocumentEvidenceAddedBy;
|
|
532
|
+
export const VantaPolicyEvidenceFile = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
533
|
+
effectiveOrCreationDate: S.String,
|
|
534
|
+
locale: S.String,
|
|
535
|
+
url: S.String,
|
|
536
|
+
mimeType: S.String,
|
|
537
|
+
filename: S.optional(S.String),
|
|
538
|
+
id: S.String,
|
|
539
|
+
})).annotate({
|
|
540
|
+
identifier: "VantaPolicyEvidenceFile",
|
|
541
|
+
});
|
|
542
|
+
export const VantaPolicyEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
543
|
+
title: S.String,
|
|
544
|
+
description: S.optional(S.String),
|
|
545
|
+
expirationDate: S.optional(S.String),
|
|
546
|
+
lastEditedBy: S.optional(VantaDocumentEvidenceAddedBy),
|
|
547
|
+
policyId: S.String,
|
|
548
|
+
policyVersionId: S.String,
|
|
549
|
+
policyVersionFileId: S.String,
|
|
550
|
+
file: VantaPolicyEvidenceFile,
|
|
551
|
+
})).annotate({
|
|
552
|
+
identifier: "VantaPolicyEvidence",
|
|
553
|
+
});
|
|
554
|
+
export const VantaTestRunStatus = S.String;
|
|
555
|
+
export const VantaTestFileType = S.String;
|
|
556
|
+
export const VantaTestEvidenceFile = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
557
|
+
mimeType: S.String,
|
|
558
|
+
url: S.String,
|
|
559
|
+
})).annotate({
|
|
560
|
+
identifier: "VantaTestEvidenceFile",
|
|
561
|
+
});
|
|
562
|
+
export const VantaTestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
563
|
+
title: S.String,
|
|
564
|
+
testId: S.String,
|
|
565
|
+
snapshotId: S.String,
|
|
566
|
+
testRunStatus: VantaTestRunStatus,
|
|
567
|
+
executedAt: S.String,
|
|
568
|
+
fileType: VantaTestFileType,
|
|
569
|
+
file: VantaTestEvidenceFile,
|
|
570
|
+
})).annotate({
|
|
571
|
+
identifier: "VantaTestEvidence",
|
|
572
|
+
});
|
|
573
|
+
export const VantaTestSnapshotEvidenceTestRunStatus = S.String;
|
|
574
|
+
export const VantaTestSnapshotEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
575
|
+
snapshotId: S.String,
|
|
576
|
+
testId: S.String,
|
|
577
|
+
testRunId: S.String,
|
|
578
|
+
testRunTitle: S.String,
|
|
579
|
+
testRunStatus: VantaTestSnapshotEvidenceTestRunStatus,
|
|
580
|
+
testRunExecutedAt: S.String,
|
|
581
|
+
})).annotate({
|
|
582
|
+
identifier: "VantaTestSnapshotEvidence",
|
|
583
|
+
});
|
|
584
|
+
export const InformationRequestEvidenceUnion = S.Unknown;
|
|
585
|
+
export const InformationRequestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
586
|
+
id: S.String,
|
|
587
|
+
evidenceType: InformationRequestSupportedEvidenceType,
|
|
588
|
+
visibleToAuditorDate: S.optional(S.NullOr(S.String)),
|
|
589
|
+
creationDate: S.String,
|
|
590
|
+
modificationDate: S.String,
|
|
591
|
+
deletionDate: S.optional(S.NullOr(S.String)),
|
|
592
|
+
evidence: InformationRequestEvidenceUnion,
|
|
593
|
+
})).annotate({
|
|
594
|
+
identifier: "InformationRequestEvidence",
|
|
595
|
+
});
|
|
596
|
+
export const GetInformationRequestTestSnapshotEvidenceDetailRequest =
|
|
597
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
598
|
+
auditId: S.String.pipe(T.Label()),
|
|
599
|
+
requestId: S.String.pipe(T.Label()),
|
|
600
|
+
evidenceId: S.String.pipe(T.Label()),
|
|
601
|
+
}).pipe(T.Http({
|
|
602
|
+
method: "GET",
|
|
603
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot",
|
|
604
|
+
code: 200,
|
|
605
|
+
}))).annotate({
|
|
606
|
+
identifier: "GetInformationRequestTestSnapshotEvidenceDetailRequest",
|
|
607
|
+
});
|
|
608
|
+
export const VantaTestSnapshotIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
609
|
+
integrationId: S.String,
|
|
610
|
+
displayName: S.String,
|
|
611
|
+
})).annotate({
|
|
612
|
+
identifier: "VantaTestSnapshotIntegration",
|
|
613
|
+
});
|
|
614
|
+
export const VantaTestSnapshotEvidenceDetailIntegrationsList =
|
|
615
|
+
/*@__PURE__*/ S.Array(VantaTestSnapshotIntegration);
|
|
616
|
+
export const VantaTestSnapshotSlaRemediationSettings = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
617
|
+
numericValue: S.Number,
|
|
618
|
+
unit: S.NullOr(S.String),
|
|
619
|
+
})).annotate({
|
|
620
|
+
identifier: "VantaTestSnapshotSlaRemediationSettings",
|
|
621
|
+
});
|
|
622
|
+
export const VantaTestSnapshotSlaRemediation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
623
|
+
id: S.String,
|
|
624
|
+
settings: S.NullOr(VantaTestSnapshotSlaRemediationSettings),
|
|
625
|
+
})).annotate({
|
|
626
|
+
identifier: "VantaTestSnapshotSlaRemediation",
|
|
627
|
+
});
|
|
628
|
+
export const VantaTestSnapshotRawTestDataRow = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
629
|
+
resourceId: S.NullOr(S.String),
|
|
630
|
+
resourceType: S.NullOr(S.String),
|
|
631
|
+
rawJson: S.Unknown,
|
|
632
|
+
})).annotate({
|
|
633
|
+
identifier: "VantaTestSnapshotRawTestDataRow",
|
|
634
|
+
});
|
|
635
|
+
export const VantaTestSnapshotEvidenceDetailRawTestDataList =
|
|
636
|
+
/*@__PURE__*/ S.Array(VantaTestSnapshotRawTestDataRow);
|
|
637
|
+
export const VantaTestSnapshotExcludedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
638
|
+
id: S.String,
|
|
639
|
+
displayName: S.NullOr(S.String),
|
|
640
|
+
})).annotate({
|
|
641
|
+
identifier: "VantaTestSnapshotExcludedItem",
|
|
642
|
+
});
|
|
643
|
+
export const VantaTestSnapshotExcludedItemGroupEntitiesList =
|
|
644
|
+
/*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItem);
|
|
645
|
+
export const VantaTestSnapshotExcludedItemGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
646
|
+
reason: S.String,
|
|
647
|
+
entities: VantaTestSnapshotExcludedItemGroupEntitiesList,
|
|
648
|
+
})).annotate({
|
|
649
|
+
identifier: "VantaTestSnapshotExcludedItemGroup",
|
|
650
|
+
});
|
|
651
|
+
export const VantaTestSnapshotOutOfScopeResourcesTestLevelList =
|
|
652
|
+
/*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
|
|
653
|
+
export const VantaTestSnapshotFrameworkExclusionGroupedByReasonList =
|
|
654
|
+
/*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
|
|
655
|
+
export const VantaTestSnapshotFrameworkExclusion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
656
|
+
frameworkId: S.String,
|
|
657
|
+
frameworkName: S.String,
|
|
658
|
+
groupedByReason: VantaTestSnapshotFrameworkExclusionGroupedByReasonList,
|
|
659
|
+
})).annotate({
|
|
660
|
+
identifier: "VantaTestSnapshotFrameworkExclusion",
|
|
661
|
+
});
|
|
662
|
+
export const VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList =
|
|
663
|
+
/*@__PURE__*/ S.Array(VantaTestSnapshotFrameworkExclusion);
|
|
664
|
+
export const VantaTestSnapshotOutOfScopeResources = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
665
|
+
testLevel: VantaTestSnapshotOutOfScopeResourcesTestLevelList,
|
|
666
|
+
frameworkLevel: VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList,
|
|
667
|
+
})).annotate({
|
|
668
|
+
identifier: "VantaTestSnapshotOutOfScopeResources",
|
|
669
|
+
});
|
|
670
|
+
export const VantaTestSnapshotApiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
671
|
+
id: S.String,
|
|
672
|
+
resourceType: S.String,
|
|
673
|
+
resourceTypeDisplayName: S.String,
|
|
674
|
+
requestMethod: S.String,
|
|
675
|
+
url: S.String,
|
|
676
|
+
responseCode: S.Number,
|
|
677
|
+
timestamp: S.String,
|
|
678
|
+
dataTooLarge: S.Boolean,
|
|
679
|
+
})).annotate({
|
|
680
|
+
identifier: "VantaTestSnapshotApiRequest",
|
|
681
|
+
});
|
|
682
|
+
export const VantaTestSnapshotEvidenceDetailApiRequestsList =
|
|
683
|
+
/*@__PURE__*/ S.Array(VantaTestSnapshotApiRequest);
|
|
684
|
+
export const VantaTestSnapshotEvidenceDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
685
|
+
testId: S.String,
|
|
686
|
+
testName: S.String,
|
|
687
|
+
description: S.String,
|
|
688
|
+
evaluationCriteria: S.NullOr(S.String),
|
|
689
|
+
integrations: VantaTestSnapshotEvidenceDetailIntegrationsList,
|
|
690
|
+
slaRemediation: S.NullOr(VantaTestSnapshotSlaRemediation),
|
|
691
|
+
rawTestData: VantaTestSnapshotEvidenceDetailRawTestDataList,
|
|
692
|
+
outOfScopeResources: S.optional(VantaTestSnapshotOutOfScopeResources),
|
|
693
|
+
apiRequests: S.optional(VantaTestSnapshotEvidenceDetailApiRequestsList),
|
|
694
|
+
})).annotate({
|
|
695
|
+
identifier: "VantaTestSnapshotEvidenceDetail",
|
|
696
|
+
});
|
|
697
|
+
export const GetOrganizationInformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
698
|
+
auditId: S.String.pipe(T.Label()),
|
|
699
|
+
}).pipe(T.Http({
|
|
700
|
+
method: "GET",
|
|
701
|
+
uri: "/audits/{auditId}/organization/information",
|
|
702
|
+
code: 200,
|
|
703
|
+
}))).annotate({
|
|
704
|
+
identifier: "GetOrganizationInformationRequest",
|
|
705
|
+
});
|
|
706
|
+
export const AuditOrganizationCompanyLogo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
707
|
+
url: S.String,
|
|
708
|
+
})).annotate({
|
|
709
|
+
identifier: "AuditOrganizationCompanyLogo",
|
|
710
|
+
});
|
|
711
|
+
export const AuditOrganizationInformation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
712
|
+
id: S.String,
|
|
713
|
+
displayName: S.String,
|
|
714
|
+
legalName: S.optional(S.NullOr(S.String)),
|
|
715
|
+
incorporation: S.optional(S.NullOr(S.String)),
|
|
716
|
+
url: S.optional(S.NullOr(S.String)),
|
|
717
|
+
mailingAddress: S.optional(S.NullOr(S.String)),
|
|
718
|
+
telephone: S.optional(S.NullOr(S.String)),
|
|
719
|
+
companyLogo: S.optional(S.NullOr(AuditOrganizationCompanyLogo)),
|
|
720
|
+
})).annotate({
|
|
721
|
+
identifier: "AuditOrganizationInformation",
|
|
722
|
+
});
|
|
723
|
+
export const GetOrganizationNotificationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
724
|
+
auditId: S.String.pipe(T.Label()),
|
|
725
|
+
}).pipe(T.Http({
|
|
726
|
+
method: "GET",
|
|
727
|
+
uri: "/audits/{auditId}/organization/notifications",
|
|
728
|
+
code: 200,
|
|
729
|
+
}))).annotate({
|
|
730
|
+
identifier: "GetOrganizationNotificationsRequest",
|
|
731
|
+
});
|
|
732
|
+
export const AuditOrganizationNotificationsSubscribedChannelTypesList =
|
|
733
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
734
|
+
export const AuditOrganizationNotificationSubscription =
|
|
735
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
736
|
+
id: S.String,
|
|
737
|
+
address: S.String,
|
|
738
|
+
cadence: S.NullOr(S.String),
|
|
739
|
+
unsubSettingsKey: S.String,
|
|
740
|
+
toggleIsSubscribed: S.Boolean,
|
|
741
|
+
})).annotate({
|
|
742
|
+
identifier: "AuditOrganizationNotificationSubscription",
|
|
743
|
+
});
|
|
744
|
+
export const AuditOrganizationNotificationsExternalNotificationsList =
|
|
745
|
+
/*@__PURE__*/ S.Array(AuditOrganizationNotificationSubscription);
|
|
746
|
+
export const AuditOrganizationNotifications = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
747
|
+
id: S.String,
|
|
748
|
+
preferredTimeZone: S.optional(S.NullOr(S.String)),
|
|
749
|
+
employeeDigestFrequency: S.optional(S.NullOr(S.String)),
|
|
750
|
+
subscribedChannelTypes: S.optional(AuditOrganizationNotificationsSubscribedChannelTypesList),
|
|
751
|
+
externalNotifications: S.optional(AuditOrganizationNotificationsExternalNotificationsList),
|
|
752
|
+
})).annotate({
|
|
753
|
+
identifier: "AuditOrganizationNotifications",
|
|
754
|
+
});
|
|
755
|
+
export const ListAccountAccessServicesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
756
|
+
auditId: S.String.pipe(T.Label()),
|
|
757
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
758
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
759
|
+
}).pipe(T.Http({
|
|
760
|
+
method: "GET",
|
|
761
|
+
uri: "/audits/{auditId}/personnel/account-access/services",
|
|
762
|
+
code: 200,
|
|
763
|
+
}))).annotate({
|
|
764
|
+
identifier: "ListAccountAccessServicesRequest",
|
|
765
|
+
});
|
|
766
|
+
export const AccountAccessService = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
767
|
+
id: S.String,
|
|
768
|
+
credentialDisplayName: S.String,
|
|
769
|
+
service: S.String,
|
|
770
|
+
subAccountId: S.NullOr(S.String),
|
|
771
|
+
})).annotate({
|
|
772
|
+
identifier: "AccountAccessService",
|
|
773
|
+
});
|
|
774
|
+
export const PaginatedResponseAccountAccessServiceResultsDataList =
|
|
775
|
+
/*@__PURE__*/ S.Array(AccountAccessService);
|
|
776
|
+
export const PageInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
777
|
+
endCursor: S.NullOr(S.String),
|
|
778
|
+
hasNextPage: S.Boolean,
|
|
779
|
+
hasPreviousPage: S.Boolean,
|
|
780
|
+
startCursor: S.NullOr(S.String),
|
|
781
|
+
})).annotate({ identifier: "PageInfo" });
|
|
782
|
+
export const PaginatedResponseAccountAccessServiceResults =
|
|
783
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
784
|
+
data: PaginatedResponseAccountAccessServiceResultsDataList,
|
|
785
|
+
pageInfo: PageInfo,
|
|
786
|
+
})).annotate({
|
|
787
|
+
identifier: "PaginatedResponseAccountAccessServiceResults",
|
|
788
|
+
});
|
|
789
|
+
export const PaginatedResponseAccountAccessService = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
790
|
+
results: PaginatedResponseAccountAccessServiceResults,
|
|
791
|
+
})).annotate({
|
|
792
|
+
identifier: "PaginatedResponseAccountAccessService",
|
|
793
|
+
});
|
|
794
|
+
export const ListAuditCommentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
795
|
+
auditId: S.String.pipe(T.Label()),
|
|
796
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
797
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
798
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
799
|
+
}).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/comments", code: 200 }))).annotate({
|
|
800
|
+
identifier: "ListAuditCommentsRequest",
|
|
801
|
+
});
|
|
802
|
+
export const PaginatedResponseCommentResultsDataList = /*@__PURE__*/ S.Array(Comment);
|
|
803
|
+
export const PaginatedResponseCommentResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
804
|
+
data: PaginatedResponseCommentResultsDataList,
|
|
805
|
+
pageInfo: PageInfo,
|
|
806
|
+
})).annotate({
|
|
807
|
+
identifier: "PaginatedResponseCommentResults",
|
|
808
|
+
});
|
|
809
|
+
export const PaginatedResponseComment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
810
|
+
results: PaginatedResponseCommentResults,
|
|
811
|
+
})).annotate({
|
|
812
|
+
identifier: "PaginatedResponseComment",
|
|
813
|
+
});
|
|
814
|
+
export const ListAuditControlsRequestExternalIdMatchesAnyList =
|
|
815
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
816
|
+
export const ListAuditControlsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
817
|
+
auditId: S.String.pipe(T.Label()),
|
|
818
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
819
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
820
|
+
externalIdMatchesAny: S.optional(ListAuditControlsRequestExternalIdMatchesAnyList.pipe(T.Query())),
|
|
821
|
+
}).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 }))).annotate({
|
|
822
|
+
identifier: "ListAuditControlsRequest",
|
|
823
|
+
});
|
|
824
|
+
export const AuditorControlDomainsList = /*@__PURE__*/ S.Array(S.String);
|
|
825
|
+
export const AuditorControlCustomFieldsList = /*@__PURE__*/ S.Array(CustomField);
|
|
826
|
+
export const SectionPrinciple = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
827
|
+
id: S.String,
|
|
828
|
+
name: S.String,
|
|
829
|
+
})).annotate({
|
|
830
|
+
identifier: "SectionPrinciple",
|
|
831
|
+
});
|
|
832
|
+
export const Section = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
833
|
+
name: S.String,
|
|
834
|
+
framework: S.String,
|
|
835
|
+
principle: S.NullOr(SectionPrinciple),
|
|
836
|
+
})).annotate({ identifier: "Section" });
|
|
837
|
+
export const AuditorControlSectionsList = /*@__PURE__*/ S.Array(Section);
|
|
838
|
+
export const AuditorControlInScopeSegmentIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
839
|
+
export const AuditControlAssessmentState = S.String;
|
|
840
|
+
export const AuditControlAssessment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
841
|
+
segmentId: S.String,
|
|
842
|
+
assessmentState: AuditControlAssessmentState,
|
|
843
|
+
justification: S.NullOr(S.String),
|
|
844
|
+
})).annotate({
|
|
845
|
+
identifier: "AuditControlAssessment",
|
|
846
|
+
});
|
|
847
|
+
export const AuditorControlAssessmentsList = /*@__PURE__*/ S.Array(AuditControlAssessment);
|
|
848
|
+
export const AuditorControl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
849
|
+
id: S.String,
|
|
850
|
+
externalId: S.NullOr(S.String),
|
|
851
|
+
name: S.String,
|
|
852
|
+
description: S.String,
|
|
853
|
+
source: ControlSource,
|
|
854
|
+
domains: AuditorControlDomainsList,
|
|
855
|
+
owner: S.NullOr(Owner),
|
|
856
|
+
role: S.optional(S.NullOr(S.String)),
|
|
857
|
+
customFields: AuditorControlCustomFieldsList,
|
|
858
|
+
creationDate: S.NullOr(S.String),
|
|
859
|
+
modificationDate: S.NullOr(S.String),
|
|
860
|
+
framework: S.String,
|
|
861
|
+
sections: AuditorControlSectionsList,
|
|
862
|
+
inScopeSegmentIds: AuditorControlInScopeSegmentIdsList,
|
|
863
|
+
assessments: AuditorControlAssessmentsList,
|
|
864
|
+
})).annotate({ identifier: "AuditorControl" });
|
|
865
|
+
export const PaginatedResponseAuditorControlResultsDataList =
|
|
866
|
+
/*@__PURE__*/ S.Array(AuditorControl);
|
|
867
|
+
export const PaginatedResponseAuditorControlResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
868
|
+
data: PaginatedResponseAuditorControlResultsDataList,
|
|
869
|
+
pageInfo: PageInfo,
|
|
870
|
+
})).annotate({
|
|
871
|
+
identifier: "PaginatedResponseAuditorControlResults",
|
|
872
|
+
});
|
|
873
|
+
export const PaginatedResponseAuditorControl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
874
|
+
results: PaginatedResponseAuditorControlResults,
|
|
875
|
+
})).annotate({
|
|
876
|
+
identifier: "PaginatedResponseAuditorControl",
|
|
877
|
+
});
|
|
878
|
+
export const ListAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
879
|
+
auditId: S.String.pipe(T.Label()),
|
|
880
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
881
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
882
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
883
|
+
}).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence", code: 200 }))).annotate({
|
|
884
|
+
identifier: "ListAuditEvidenceRequest",
|
|
885
|
+
});
|
|
886
|
+
export const PaginatedResponseEvidenceResultsDataList = /*@__PURE__*/ S.Array(Evidence);
|
|
887
|
+
export const PaginatedResponseEvidenceResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
888
|
+
data: PaginatedResponseEvidenceResultsDataList,
|
|
889
|
+
pageInfo: PageInfo,
|
|
890
|
+
})).annotate({
|
|
891
|
+
identifier: "PaginatedResponseEvidenceResults",
|
|
892
|
+
});
|
|
893
|
+
export const PaginatedResponseEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
894
|
+
results: PaginatedResponseEvidenceResults,
|
|
895
|
+
})).annotate({
|
|
896
|
+
identifier: "PaginatedResponseEvidence",
|
|
897
|
+
});
|
|
898
|
+
export const ListAuditEvidenceUrlsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
899
|
+
auditId: S.String.pipe(T.Label()),
|
|
900
|
+
auditEvidenceId: S.String.pipe(T.Label()),
|
|
901
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
902
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
903
|
+
}).pipe(T.Http({
|
|
904
|
+
method: "GET",
|
|
905
|
+
uri: "/audits/{auditId}/evidence/{auditEvidenceId}/urls",
|
|
906
|
+
code: 200,
|
|
907
|
+
}))).annotate({
|
|
908
|
+
identifier: "ListAuditEvidenceUrlsRequest",
|
|
909
|
+
});
|
|
910
|
+
export const EvidenceUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
911
|
+
id: S.String,
|
|
912
|
+
url: S.String,
|
|
913
|
+
filename: S.String,
|
|
914
|
+
isDownloadable: S.Boolean,
|
|
915
|
+
mimeType: S.NullOr(S.String),
|
|
916
|
+
})).annotate({ identifier: "EvidenceUrl" });
|
|
917
|
+
export const PaginatedResponseEvidenceUrlResultsDataList =
|
|
918
|
+
/*@__PURE__*/ S.Array(EvidenceUrl);
|
|
919
|
+
export const PaginatedResponseEvidenceUrlResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
920
|
+
data: PaginatedResponseEvidenceUrlResultsDataList,
|
|
921
|
+
pageInfo: PageInfo,
|
|
922
|
+
})).annotate({
|
|
923
|
+
identifier: "PaginatedResponseEvidenceUrlResults",
|
|
924
|
+
});
|
|
925
|
+
export const PaginatedResponseEvidenceUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
926
|
+
results: PaginatedResponseEvidenceUrlResults,
|
|
927
|
+
})).annotate({
|
|
928
|
+
identifier: "PaginatedResponseEvidenceUrl",
|
|
929
|
+
});
|
|
930
|
+
export const ListAuditIssuesRequestSnapshotIdMatchesAnyList =
|
|
931
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
932
|
+
export const IssueSnapshotItemOrderBy = S.String;
|
|
933
|
+
export const OrderDirection = S.String;
|
|
934
|
+
export const ListAuditIssuesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
935
|
+
auditId: S.String.pipe(T.Label()),
|
|
936
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
937
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
938
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
939
|
+
snapshotIdMatchesAny: S.optional(ListAuditIssuesRequestSnapshotIdMatchesAnyList.pipe(T.Query())),
|
|
940
|
+
createdAfterDate: S.optional(S.String.pipe(T.Query())),
|
|
941
|
+
createdBeforeDate: S.optional(S.String.pipe(T.Query())),
|
|
942
|
+
detectedAfterDate: S.optional(S.String.pipe(T.Query())),
|
|
943
|
+
detectedBeforeDate: S.optional(S.String.pipe(T.Query())),
|
|
944
|
+
orderBy: S.optional(IssueSnapshotItemOrderBy.pipe(T.Query())),
|
|
945
|
+
orderDirection: S.optional(OrderDirection.pipe(T.Query())),
|
|
946
|
+
}).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/items", code: 200 }))).annotate({
|
|
947
|
+
identifier: "ListAuditIssuesRequest",
|
|
948
|
+
});
|
|
949
|
+
export const IssueStatusTypeForSnapshot = S.String;
|
|
950
|
+
export const IssueSnapshotItemApprovalProgress = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
951
|
+
approvedCount: S.Number,
|
|
952
|
+
totalApprovers: S.Number,
|
|
953
|
+
})).annotate({
|
|
954
|
+
identifier: "IssueSnapshotItemApprovalProgress",
|
|
955
|
+
});
|
|
956
|
+
export const IssueSnapshotItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
957
|
+
id: S.String,
|
|
958
|
+
title: S.optional(S.String),
|
|
959
|
+
description: S.optional(S.String),
|
|
960
|
+
readableIssueId: S.String,
|
|
961
|
+
issueId: S.String,
|
|
962
|
+
snapshotId: S.String,
|
|
963
|
+
dueDate: S.optional(S.NullOr(S.String)),
|
|
964
|
+
status: S.optional(IssueStatusTypeForSnapshot),
|
|
965
|
+
approvalProgress: S.optional(S.NullOr(IssueSnapshotItemApprovalProgress)),
|
|
966
|
+
lastModifiedAt: S.optional(S.String),
|
|
967
|
+
createdAt: S.optional(S.String),
|
|
968
|
+
detectedAt: S.optional(S.String),
|
|
969
|
+
})).annotate({
|
|
970
|
+
identifier: "IssueSnapshotItem",
|
|
971
|
+
});
|
|
972
|
+
export const PaginatedResponseIssueSnapshotItemResultsDataList =
|
|
973
|
+
/*@__PURE__*/ S.Array(IssueSnapshotItem);
|
|
974
|
+
export const PaginatedResponseIssueSnapshotItemResults =
|
|
975
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
976
|
+
data: PaginatedResponseIssueSnapshotItemResultsDataList,
|
|
977
|
+
pageInfo: PageInfo,
|
|
978
|
+
})).annotate({
|
|
979
|
+
identifier: "PaginatedResponseIssueSnapshotItemResults",
|
|
980
|
+
});
|
|
981
|
+
export const PaginatedResponseIssueSnapshotItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
982
|
+
results: PaginatedResponseIssueSnapshotItemResults,
|
|
983
|
+
})).annotate({
|
|
984
|
+
identifier: "PaginatedResponseIssueSnapshotItem",
|
|
985
|
+
});
|
|
986
|
+
export const RiskOrderBy = S.String;
|
|
987
|
+
export const ListAuditRisksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
988
|
+
auditId: S.String.pipe(T.Label()),
|
|
989
|
+
snapshotId: S.String.pipe(T.Label()),
|
|
990
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
991
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
992
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
993
|
+
orderBy: S.optional(RiskOrderBy.pipe(T.Query())),
|
|
994
|
+
orderDirection: S.optional(OrderDirection.pipe(T.Query())),
|
|
995
|
+
}).pipe(T.Http({
|
|
996
|
+
method: "GET",
|
|
997
|
+
uri: "/audits/{auditId}/risks/{snapshotId}",
|
|
998
|
+
code: 200,
|
|
999
|
+
}))).annotate({
|
|
1000
|
+
identifier: "ListAuditRisksRequest",
|
|
1001
|
+
});
|
|
1002
|
+
export const AuditRiskTreatment = S.String;
|
|
1003
|
+
export const AuditRiskTreatmentStatus = S.String;
|
|
1004
|
+
export const AuditRiskReviewStatus = S.String;
|
|
1005
|
+
export const AuditRiskOwner = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1006
|
+
displayName: S.String,
|
|
1007
|
+
imageUrl: S.NullOr(S.String),
|
|
1008
|
+
})).annotate({ identifier: "AuditRiskOwner" });
|
|
1009
|
+
export const AuditRiskCategoriesList = /*@__PURE__*/ S.Array(S.String);
|
|
1010
|
+
export const AuditRiskCia = S.String;
|
|
1011
|
+
export const AuditRiskCiaCategoriesList = /*@__PURE__*/ S.Array(AuditRiskCia);
|
|
1012
|
+
export const AuditRiskLinkedControlIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
1013
|
+
export const AuditRisk = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1014
|
+
id: S.String,
|
|
1015
|
+
riskId: S.NullOr(S.String),
|
|
1016
|
+
riskScenario: S.optional(S.NullOr(S.String)),
|
|
1017
|
+
likelihood: S.optional(S.NullOr(S.Number)),
|
|
1018
|
+
impact: S.optional(S.NullOr(S.Number)),
|
|
1019
|
+
inherentRisk: S.optional(S.NullOr(S.Number)),
|
|
1020
|
+
treatment: S.optional(S.NullOr(AuditRiskTreatment)),
|
|
1021
|
+
treatmentStatus: S.optional(S.NullOr(AuditRiskTreatmentStatus)),
|
|
1022
|
+
residualRisk: S.optional(S.NullOr(S.Number)),
|
|
1023
|
+
reviewStatus: S.optional(S.NullOr(AuditRiskReviewStatus)),
|
|
1024
|
+
owner: S.optional(S.NullOr(AuditRiskOwner)),
|
|
1025
|
+
categories: S.optional(AuditRiskCategoriesList),
|
|
1026
|
+
ciaCategories: S.optional(AuditRiskCiaCategoriesList),
|
|
1027
|
+
linkedControlIds: S.optional(AuditRiskLinkedControlIdsList),
|
|
1028
|
+
identified: S.optional(S.NullOr(S.String)),
|
|
1029
|
+
})).annotate({ identifier: "AuditRisk" });
|
|
1030
|
+
export const PaginatedResponseAuditRiskResultsDataList = /*@__PURE__*/ S.Array(AuditRisk);
|
|
1031
|
+
export const PaginatedResponseAuditRiskResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
|
+
data: PaginatedResponseAuditRiskResultsDataList,
|
|
1033
|
+
pageInfo: PageInfo,
|
|
1034
|
+
})).annotate({
|
|
1035
|
+
identifier: "PaginatedResponseAuditRiskResults",
|
|
1036
|
+
});
|
|
1037
|
+
export const PaginatedResponseAuditRisk = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1038
|
+
results: PaginatedResponseAuditRiskResults,
|
|
1039
|
+
})).annotate({
|
|
1040
|
+
identifier: "PaginatedResponseAuditRisk",
|
|
1041
|
+
});
|
|
1042
|
+
export const ListAuditsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1043
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1044
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1045
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
1046
|
+
isActiveAudit: S.optional(S.Boolean.pipe(T.Query())),
|
|
1047
|
+
}).pipe(T.Http({ method: "GET", uri: "/audits", code: 200 }))).annotate({
|
|
1048
|
+
identifier: "ListAuditsRequest",
|
|
1049
|
+
});
|
|
1050
|
+
export const PaginatedResponseAuditResultsDataList = /*@__PURE__*/ S.Array(Audit);
|
|
1051
|
+
export const PaginatedResponseAuditResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1052
|
+
data: PaginatedResponseAuditResultsDataList,
|
|
1053
|
+
pageInfo: PageInfo,
|
|
1054
|
+
})).annotate({
|
|
1055
|
+
identifier: "PaginatedResponseAuditResults",
|
|
1056
|
+
});
|
|
1057
|
+
export const PaginatedResponseAudit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1058
|
+
results: PaginatedResponseAuditResults,
|
|
1059
|
+
})).annotate({
|
|
1060
|
+
identifier: "PaginatedResponseAudit",
|
|
1061
|
+
});
|
|
1062
|
+
export const ListAuditSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1063
|
+
auditId: S.String.pipe(T.Label()),
|
|
1064
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1065
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1066
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1067
|
+
}).pipe(T.Http({
|
|
1068
|
+
method: "GET",
|
|
1069
|
+
uri: "/audits/{auditId}/issues/snapshots",
|
|
1070
|
+
code: 200,
|
|
1071
|
+
}))).annotate({
|
|
1072
|
+
identifier: "ListAuditSnapshotsRequest",
|
|
1073
|
+
});
|
|
1074
|
+
export const IssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1075
|
+
id: S.String,
|
|
1076
|
+
title: S.optional(S.String),
|
|
1077
|
+
description: S.optional(S.String),
|
|
1078
|
+
createdAt: S.optional(S.String),
|
|
1079
|
+
})).annotate({
|
|
1080
|
+
identifier: "IssueSnapshotMetadata",
|
|
1081
|
+
});
|
|
1082
|
+
export const PaginatedResponseIssueSnapshotMetadataResultsDataList =
|
|
1083
|
+
/*@__PURE__*/ S.Array(IssueSnapshotMetadata);
|
|
1084
|
+
export const PaginatedResponseIssueSnapshotMetadataResults =
|
|
1085
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1086
|
+
data: PaginatedResponseIssueSnapshotMetadataResultsDataList,
|
|
1087
|
+
pageInfo: PageInfo,
|
|
1088
|
+
})).annotate({
|
|
1089
|
+
identifier: "PaginatedResponseIssueSnapshotMetadataResults",
|
|
1090
|
+
});
|
|
1091
|
+
export const PaginatedResponseIssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1092
|
+
results: PaginatedResponseIssueSnapshotMetadataResults,
|
|
1093
|
+
})).annotate({
|
|
1094
|
+
identifier: "PaginatedResponseIssueSnapshotMetadata",
|
|
1095
|
+
});
|
|
1096
|
+
export const ApiCodeChangeSource = S.String;
|
|
1097
|
+
export const ListCodeChangesRequestSourcesMatchesAnyList =
|
|
1098
|
+
/*@__PURE__*/ S.Array(ApiCodeChangeSource);
|
|
1099
|
+
export const ListCodeChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1100
|
+
auditId: S.String.pipe(T.Label()),
|
|
1101
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1102
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1103
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1104
|
+
sourcesMatchesAny: S.optional(ListCodeChangesRequestSourcesMatchesAnyList.pipe(T.Query())),
|
|
1105
|
+
closedAfterDate: S.optional(S.String.pipe(T.Query())),
|
|
1106
|
+
closedBeforeDate: S.optional(S.String.pipe(T.Query())),
|
|
1107
|
+
}).pipe(T.Http({
|
|
1108
|
+
method: "GET",
|
|
1109
|
+
uri: "/audits/{auditId}/assets/code-changes",
|
|
1110
|
+
code: 200,
|
|
1111
|
+
}))).annotate({
|
|
1112
|
+
identifier: "ListCodeChangesRequest",
|
|
1113
|
+
});
|
|
1114
|
+
export const CodeChange = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1115
|
+
id: S.String,
|
|
1116
|
+
codeChange: S.String,
|
|
1117
|
+
identifier: S.optional(S.String),
|
|
1118
|
+
service: S.optional(S.String),
|
|
1119
|
+
repository: S.optional(S.String),
|
|
1120
|
+
openedAt: S.optional(S.String),
|
|
1121
|
+
closedAt: S.optional(S.String),
|
|
1122
|
+
})).annotate({ identifier: "CodeChange" });
|
|
1123
|
+
export const PaginatedResponseCodeChangeResultsDataList = /*@__PURE__*/ S.Array(CodeChange);
|
|
1124
|
+
export const PaginatedResponseCodeChangeResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1125
|
+
data: PaginatedResponseCodeChangeResultsDataList,
|
|
1126
|
+
pageInfo: PageInfo,
|
|
1127
|
+
})).annotate({
|
|
1128
|
+
identifier: "PaginatedResponseCodeChangeResults",
|
|
1129
|
+
});
|
|
1130
|
+
export const PaginatedResponseCodeChange = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1131
|
+
results: PaginatedResponseCodeChangeResults,
|
|
1132
|
+
})).annotate({
|
|
1133
|
+
identifier: "PaginatedResponseCodeChange",
|
|
1134
|
+
});
|
|
1135
|
+
export const ListCommentsForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1136
|
+
auditId: S.String.pipe(T.Label()),
|
|
1137
|
+
controlId: S.String.pipe(T.Label()),
|
|
1138
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1139
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1140
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
1141
|
+
}).pipe(T.Http({
|
|
1142
|
+
method: "GET",
|
|
1143
|
+
uri: "/audits/{auditId}/controls/{controlId}/comments",
|
|
1144
|
+
code: 200,
|
|
1145
|
+
}))).annotate({
|
|
1146
|
+
identifier: "ListCommentsForControlRequest",
|
|
1147
|
+
});
|
|
1148
|
+
export const PaginatedResponseAuditControlCommentResultsDataList =
|
|
1149
|
+
/*@__PURE__*/ S.Array(AuditControlComment);
|
|
1150
|
+
export const PaginatedResponseAuditControlCommentResults =
|
|
1151
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1152
|
+
data: PaginatedResponseAuditControlCommentResultsDataList,
|
|
1153
|
+
pageInfo: PageInfo,
|
|
1154
|
+
})).annotate({
|
|
1155
|
+
identifier: "PaginatedResponseAuditControlCommentResults",
|
|
1156
|
+
});
|
|
1157
|
+
export const PaginatedResponseAuditControlComment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1158
|
+
results: PaginatedResponseAuditControlCommentResults,
|
|
1159
|
+
})).annotate({
|
|
1160
|
+
identifier: "PaginatedResponseAuditControlComment",
|
|
1161
|
+
});
|
|
1162
|
+
export const ListCommentsForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1163
|
+
auditId: S.String.pipe(T.Label()),
|
|
1164
|
+
requestId: S.String.pipe(T.Label()),
|
|
1165
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1166
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1167
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
1168
|
+
}).pipe(T.Http({
|
|
1169
|
+
method: "GET",
|
|
1170
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/comments",
|
|
1171
|
+
code: 200,
|
|
1172
|
+
}))).annotate({
|
|
1173
|
+
identifier: "ListCommentsForInformationRequestRequest",
|
|
1174
|
+
});
|
|
1175
|
+
export const PaginatedResponseInformationRequestCommentResultsDataList =
|
|
1176
|
+
/*@__PURE__*/ S.Array(InformationRequestComment);
|
|
1177
|
+
export const PaginatedResponseInformationRequestCommentResults =
|
|
1178
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1179
|
+
data: PaginatedResponseInformationRequestCommentResultsDataList,
|
|
1180
|
+
pageInfo: PageInfo,
|
|
1181
|
+
})).annotate({
|
|
1182
|
+
identifier: "PaginatedResponseInformationRequestCommentResults",
|
|
1183
|
+
});
|
|
1184
|
+
export const PaginatedResponseInformationRequestComment =
|
|
1185
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1186
|
+
results: PaginatedResponseInformationRequestCommentResults,
|
|
1187
|
+
})).annotate({
|
|
1188
|
+
identifier: "PaginatedResponseInformationRequestComment",
|
|
1189
|
+
});
|
|
1190
|
+
export const ListInformationRequestActivityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1191
|
+
auditId: S.String.pipe(T.Label()),
|
|
1192
|
+
requestId: S.String.pipe(T.Label()),
|
|
1193
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1194
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1195
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
1196
|
+
}).pipe(T.Http({
|
|
1197
|
+
method: "GET",
|
|
1198
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/activity",
|
|
1199
|
+
code: 200,
|
|
1200
|
+
}))).annotate({
|
|
1201
|
+
identifier: "ListInformationRequestActivityRequest",
|
|
1202
|
+
});
|
|
1203
|
+
export const InformationRequestActivityType = S.String;
|
|
1204
|
+
export const InformationRequestActivityLogOldStatus = S.String;
|
|
1205
|
+
export const InformationRequestActivityLogNewStatus = S.String;
|
|
1206
|
+
export const EvidenceFillOutcome = S.String;
|
|
1207
|
+
export const InformationRequestActivityLog = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1208
|
+
id: S.String,
|
|
1209
|
+
activityType: InformationRequestActivityType,
|
|
1210
|
+
timestamp: S.String,
|
|
1211
|
+
userEmail: S.NullOr(S.String),
|
|
1212
|
+
oldStatus: S.NullOr(InformationRequestActivityLogOldStatus),
|
|
1213
|
+
newStatus: S.NullOr(InformationRequestActivityLogNewStatus),
|
|
1214
|
+
reason: S.NullOr(S.String),
|
|
1215
|
+
fillOutcome: S.NullOr(EvidenceFillOutcome),
|
|
1216
|
+
sourceInformationRequestId: S.NullOr(S.String),
|
|
1217
|
+
sourceAuditId: S.NullOr(S.String),
|
|
1218
|
+
})).annotate({
|
|
1219
|
+
identifier: "InformationRequestActivityLog",
|
|
1220
|
+
});
|
|
1221
|
+
export const PaginatedResponseInformationRequestActivityLogResultsDataList =
|
|
1222
|
+
/*@__PURE__*/ S.Array(InformationRequestActivityLog);
|
|
1223
|
+
export const PaginatedResponseInformationRequestActivityLogResults =
|
|
1224
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1225
|
+
data: PaginatedResponseInformationRequestActivityLogResultsDataList,
|
|
1226
|
+
pageInfo: PageInfo,
|
|
1227
|
+
})).annotate({
|
|
1228
|
+
identifier: "PaginatedResponseInformationRequestActivityLogResults",
|
|
1229
|
+
});
|
|
1230
|
+
export const PaginatedResponseInformationRequestActivityLog =
|
|
1231
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1232
|
+
results: PaginatedResponseInformationRequestActivityLogResults,
|
|
1233
|
+
})).annotate({
|
|
1234
|
+
identifier: "PaginatedResponseInformationRequestActivityLog",
|
|
1235
|
+
});
|
|
1236
|
+
export const ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList =
|
|
1237
|
+
/*@__PURE__*/ S.Array(InformationRequestSupportedEvidenceType);
|
|
1238
|
+
export const ListInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1239
|
+
auditId: S.String.pipe(T.Label()),
|
|
1240
|
+
requestId: S.String.pipe(T.Label()),
|
|
1241
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1242
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1243
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
1244
|
+
evidenceTypeMatchesAny: S.optional(ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList.pipe(T.Query())),
|
|
1245
|
+
}).pipe(T.Http({
|
|
1246
|
+
method: "GET",
|
|
1247
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/evidence",
|
|
1248
|
+
code: 200,
|
|
1249
|
+
}))).annotate({
|
|
1250
|
+
identifier: "ListInformationRequestEvidenceRequest",
|
|
1251
|
+
});
|
|
1252
|
+
export const PaginatedResponseInformationRequestEvidenceResultsDataList =
|
|
1253
|
+
/*@__PURE__*/ S.Array(InformationRequestEvidence);
|
|
1254
|
+
export const PaginatedResponseInformationRequestEvidenceResults =
|
|
1255
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1256
|
+
data: PaginatedResponseInformationRequestEvidenceResultsDataList,
|
|
1257
|
+
pageInfo: PageInfo,
|
|
1258
|
+
})).annotate({
|
|
1259
|
+
identifier: "PaginatedResponseInformationRequestEvidenceResults",
|
|
1260
|
+
});
|
|
1261
|
+
export const PaginatedResponseInformationRequestEvidence =
|
|
1262
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1263
|
+
results: PaginatedResponseInformationRequestEvidenceResults,
|
|
1264
|
+
})).annotate({
|
|
1265
|
+
identifier: "PaginatedResponseInformationRequestEvidence",
|
|
1266
|
+
});
|
|
1267
|
+
export const ListInformationRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1268
|
+
auditId: S.String.pipe(T.Label()),
|
|
1269
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1270
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1271
|
+
changedSinceDate: S.optional(S.String.pipe(T.Query())),
|
|
1272
|
+
}).pipe(T.Http({
|
|
1273
|
+
method: "GET",
|
|
1274
|
+
uri: "/audits/{auditId}/information-requests",
|
|
1275
|
+
code: 200,
|
|
1276
|
+
}))).annotate({
|
|
1277
|
+
identifier: "ListInformationRequestsRequest",
|
|
1278
|
+
});
|
|
1279
|
+
export const PaginatedResponseInformationRequestResultsDataList =
|
|
1280
|
+
/*@__PURE__*/ S.Array(InformationRequest);
|
|
1281
|
+
export const PaginatedResponseInformationRequestResults =
|
|
1282
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1283
|
+
data: PaginatedResponseInformationRequestResultsDataList,
|
|
1284
|
+
pageInfo: PageInfo,
|
|
1285
|
+
})).annotate({
|
|
1286
|
+
identifier: "PaginatedResponseInformationRequestResults",
|
|
1287
|
+
});
|
|
1288
|
+
export const PaginatedResponseInformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1289
|
+
results: PaginatedResponseInformationRequestResults,
|
|
1290
|
+
})).annotate({
|
|
1291
|
+
identifier: "PaginatedResponseInformationRequest",
|
|
1292
|
+
});
|
|
1293
|
+
export const ListInformationRequestsForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1294
|
+
auditId: S.String.pipe(T.Label()),
|
|
1295
|
+
controlId: S.String.pipe(T.Label()),
|
|
1296
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1297
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1298
|
+
}).pipe(T.Http({
|
|
1299
|
+
method: "GET",
|
|
1300
|
+
uri: "/audits/{auditId}/controls/{controlId}/information-requests",
|
|
1301
|
+
code: 200,
|
|
1302
|
+
}))).annotate({
|
|
1303
|
+
identifier: "ListInformationRequestsForControlRequest",
|
|
1304
|
+
});
|
|
1305
|
+
export const AuditIntegrationTag = S.String;
|
|
1306
|
+
export const ListIntegrationsRequestTagsMatchesAnyList = /*@__PURE__*/ S.Array(AuditIntegrationTag);
|
|
1307
|
+
export const AuditIntegrationCategory = S.String;
|
|
1308
|
+
export const ListIntegrationsRequestCategoriesMatchesAnyList =
|
|
1309
|
+
/*@__PURE__*/ S.Array(AuditIntegrationCategory);
|
|
1310
|
+
export const ListIntegrationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1311
|
+
auditId: S.String.pipe(T.Label()),
|
|
1312
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1313
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1314
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1315
|
+
tagsMatchesAny: S.optional(ListIntegrationsRequestTagsMatchesAnyList.pipe(T.Query())),
|
|
1316
|
+
categoriesMatchesAny: S.optional(ListIntegrationsRequestCategoriesMatchesAnyList.pipe(T.Query())),
|
|
1317
|
+
}).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/integrations", code: 200 }))).annotate({
|
|
1318
|
+
identifier: "ListIntegrationsRequest",
|
|
1319
|
+
});
|
|
1320
|
+
export const AuditIntegrationTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1321
|
+
export const AuditIntegrationCategoriesList = /*@__PURE__*/ S.Array(S.String);
|
|
1322
|
+
export const AuditIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1323
|
+
id: S.String,
|
|
1324
|
+
name: S.String,
|
|
1325
|
+
tags: S.optional(AuditIntegrationTagsList),
|
|
1326
|
+
categories: S.optional(AuditIntegrationCategoriesList),
|
|
1327
|
+
})).annotate({
|
|
1328
|
+
identifier: "AuditIntegration",
|
|
1329
|
+
});
|
|
1330
|
+
export const PaginatedResponseAuditIntegrationResultsDataList =
|
|
1331
|
+
/*@__PURE__*/ S.Array(AuditIntegration);
|
|
1332
|
+
export const PaginatedResponseAuditIntegrationResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1333
|
+
data: PaginatedResponseAuditIntegrationResultsDataList,
|
|
1334
|
+
pageInfo: PageInfo,
|
|
1335
|
+
})).annotate({
|
|
1336
|
+
identifier: "PaginatedResponseAuditIntegrationResults",
|
|
1337
|
+
});
|
|
1338
|
+
export const PaginatedResponseAuditIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1339
|
+
results: PaginatedResponseAuditIntegrationResults,
|
|
1340
|
+
})).annotate({
|
|
1341
|
+
identifier: "PaginatedResponseAuditIntegration",
|
|
1342
|
+
});
|
|
1343
|
+
export const AccountAccessStatus = S.String;
|
|
1344
|
+
export const ListPersonnelAccountAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1345
|
+
auditId: S.String.pipe(T.Label()),
|
|
1346
|
+
serviceId: S.String.pipe(T.Label()),
|
|
1347
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1348
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1349
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1350
|
+
status: S.optional(AccountAccessStatus.pipe(T.Query())),
|
|
1351
|
+
}).pipe(T.Http({
|
|
1352
|
+
method: "GET",
|
|
1353
|
+
uri: "/audits/{auditId}/personnel/account-access/{serviceId}",
|
|
1354
|
+
code: 200,
|
|
1355
|
+
}))).annotate({
|
|
1356
|
+
identifier: "ListPersonnelAccountAccessRequest",
|
|
1357
|
+
});
|
|
1358
|
+
export const AccountAccessRoleList = /*@__PURE__*/ S.Array(S.String);
|
|
1359
|
+
export const AccountAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1360
|
+
id: S.String,
|
|
1361
|
+
accountName: S.String,
|
|
1362
|
+
owner: S.optional(S.NullOr(S.String)),
|
|
1363
|
+
role: S.optional(AccountAccessRoleList),
|
|
1364
|
+
status: S.optional(AccountAccessStatus),
|
|
1365
|
+
mfa: S.optional(S.NullOr(S.Boolean)),
|
|
1366
|
+
createdDate: S.optional(S.NullOr(S.String)),
|
|
1367
|
+
deactivatedDate: S.optional(S.NullOr(S.String)),
|
|
1368
|
+
})).annotate({ identifier: "AccountAccess" });
|
|
1369
|
+
export const PaginatedResponseAccountAccessResultsDataList =
|
|
1370
|
+
/*@__PURE__*/ S.Array(AccountAccess);
|
|
1371
|
+
export const PaginatedResponseAccountAccessResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1372
|
+
data: PaginatedResponseAccountAccessResultsDataList,
|
|
1373
|
+
pageInfo: PageInfo,
|
|
1374
|
+
})).annotate({
|
|
1375
|
+
identifier: "PaginatedResponseAccountAccessResults",
|
|
1376
|
+
});
|
|
1377
|
+
export const PaginatedResponseAccountAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1378
|
+
results: PaginatedResponseAccountAccessResults,
|
|
1379
|
+
})).annotate({
|
|
1380
|
+
identifier: "PaginatedResponseAccountAccess",
|
|
1381
|
+
});
|
|
1382
|
+
export const ListPersonnelGroupsRequestSourcesMatchesAnyList =
|
|
1383
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1384
|
+
export const GroupOrderBy = S.String;
|
|
1385
|
+
export const ListPersonnelGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1386
|
+
auditId: S.String.pipe(T.Label()),
|
|
1387
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1388
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1389
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1390
|
+
sourcesMatchesAny: S.optional(ListPersonnelGroupsRequestSourcesMatchesAnyList.pipe(T.Query())),
|
|
1391
|
+
orderBy: S.optional(GroupOrderBy.pipe(T.Query())),
|
|
1392
|
+
orderDirection: S.optional(OrderDirection.pipe(T.Query())),
|
|
1393
|
+
}).pipe(T.Http({
|
|
1394
|
+
method: "GET",
|
|
1395
|
+
uri: "/audits/{auditId}/personnel/groups",
|
|
1396
|
+
code: 200,
|
|
1397
|
+
}))).annotate({
|
|
1398
|
+
identifier: "ListPersonnelGroupsRequest",
|
|
1399
|
+
});
|
|
1400
|
+
export const PersonnelGroupTask = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1401
|
+
name: S.String,
|
|
1402
|
+
})).annotate({
|
|
1403
|
+
identifier: "PersonnelGroupTask",
|
|
1404
|
+
});
|
|
1405
|
+
export const PersonnelGroupTasksList = /*@__PURE__*/ S.Array(PersonnelGroupTask);
|
|
1406
|
+
export const PersonnelGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1407
|
+
id: S.String,
|
|
1408
|
+
name: S.String,
|
|
1409
|
+
members: S.optional(S.Number),
|
|
1410
|
+
source: S.optional(S.String),
|
|
1411
|
+
tasks: S.optional(PersonnelGroupTasksList),
|
|
1412
|
+
tasksLastUpdated: S.optional(S.NullOr(S.String)),
|
|
1413
|
+
pointOfContact: S.optional(S.NullOr(S.String)),
|
|
1414
|
+
})).annotate({ identifier: "PersonnelGroup" });
|
|
1415
|
+
export const PaginatedResponsePersonnelGroupResultsDataList =
|
|
1416
|
+
/*@__PURE__*/ S.Array(PersonnelGroup);
|
|
1417
|
+
export const PaginatedResponsePersonnelGroupResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1418
|
+
data: PaginatedResponsePersonnelGroupResultsDataList,
|
|
1419
|
+
pageInfo: PageInfo,
|
|
1420
|
+
})).annotate({
|
|
1421
|
+
identifier: "PaginatedResponsePersonnelGroupResults",
|
|
1422
|
+
});
|
|
1423
|
+
export const PaginatedResponsePersonnelGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1424
|
+
results: PaginatedResponsePersonnelGroupResults,
|
|
1425
|
+
})).annotate({
|
|
1426
|
+
identifier: "PaginatedResponsePersonnelGroup",
|
|
1427
|
+
});
|
|
1428
|
+
export const PeopleEmploymentStatus = S.String;
|
|
1429
|
+
export const ListPersonnelPeopleRequestGroupsMatchesAnyList =
|
|
1430
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1431
|
+
export const PeopleOrderBy = S.String;
|
|
1432
|
+
export const ListPersonnelPeopleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1433
|
+
auditId: S.String.pipe(T.Label()),
|
|
1434
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1435
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1436
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1437
|
+
status: S.optional(PeopleEmploymentStatus.pipe(T.Query())),
|
|
1438
|
+
groupsMatchesAny: S.optional(ListPersonnelPeopleRequestGroupsMatchesAnyList.pipe(T.Query())),
|
|
1439
|
+
orderBy: S.optional(PeopleOrderBy.pipe(T.Query())),
|
|
1440
|
+
orderDirection: S.optional(OrderDirection.pipe(T.Query())),
|
|
1441
|
+
}).pipe(T.Http({
|
|
1442
|
+
method: "GET",
|
|
1443
|
+
uri: "/audits/{auditId}/personnel/people",
|
|
1444
|
+
code: 200,
|
|
1445
|
+
}))).annotate({
|
|
1446
|
+
identifier: "ListPersonnelPeopleRequest",
|
|
1447
|
+
});
|
|
1448
|
+
export const PersonnelPersonGroupsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1449
|
+
name: S.String,
|
|
1450
|
+
})).annotate({
|
|
1451
|
+
identifier: "PersonnelPersonGroupsItem",
|
|
1452
|
+
});
|
|
1453
|
+
export const PersonnelPersonGroupsList = /*@__PURE__*/ S.Array(PersonnelPersonGroupsItem);
|
|
1454
|
+
export const PeopleSourceInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1455
|
+
mainSource: S.String,
|
|
1456
|
+
supplementarySource: S.NullOr(S.String),
|
|
1457
|
+
})).annotate({
|
|
1458
|
+
identifier: "PeopleSourceInfo",
|
|
1459
|
+
});
|
|
1460
|
+
export const PeopleTaskStatus = S.String;
|
|
1461
|
+
export const PeopleTaskStatusInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1462
|
+
status: PeopleTaskStatus,
|
|
1463
|
+
dueDate: S.NullOr(S.String),
|
|
1464
|
+
completionDate: S.NullOr(S.String),
|
|
1465
|
+
numTasksCompleted: S.NullOr(S.Number),
|
|
1466
|
+
numTasksOverdue: S.NullOr(S.Number),
|
|
1467
|
+
numTasksDueSoon: S.NullOr(S.Number),
|
|
1468
|
+
})).annotate({
|
|
1469
|
+
identifier: "PeopleTaskStatusInfo",
|
|
1470
|
+
});
|
|
1471
|
+
export const PeopleSecurityTaskStatus = S.String;
|
|
1472
|
+
export const PeopleSecurityTaskDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1473
|
+
status: PeopleSecurityTaskStatus,
|
|
1474
|
+
dueDate: S.NullOr(S.String),
|
|
1475
|
+
completionDate: S.NullOr(S.String),
|
|
1476
|
+
})).annotate({
|
|
1477
|
+
identifier: "PeopleSecurityTaskDetails",
|
|
1478
|
+
});
|
|
1479
|
+
export const PersonnelPerson = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1480
|
+
id: S.String,
|
|
1481
|
+
name: S.String,
|
|
1482
|
+
email: S.String,
|
|
1483
|
+
jobTitle: S.optional(S.NullOr(S.String)),
|
|
1484
|
+
employmentStatus: S.optional(S.NullOr(PeopleEmploymentStatus)),
|
|
1485
|
+
startDate: S.optional(S.NullOr(S.String)),
|
|
1486
|
+
endDate: S.optional(S.NullOr(S.String)),
|
|
1487
|
+
groups: S.optional(PersonnelPersonGroupsList),
|
|
1488
|
+
source: S.optional(S.NullOr(PeopleSourceInfo)),
|
|
1489
|
+
taskStatus: S.optional(S.NullOr(PeopleTaskStatusInfo)),
|
|
1490
|
+
lastReminded: S.optional(S.NullOr(S.String)),
|
|
1491
|
+
policies: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
|
|
1492
|
+
trainings: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
|
|
1493
|
+
backgroundChecks: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
|
|
1494
|
+
deviceMonitoring: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
|
|
1495
|
+
customOnboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
|
|
1496
|
+
customOffboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
|
|
1497
|
+
})).annotate({
|
|
1498
|
+
identifier: "PersonnelPerson",
|
|
1499
|
+
});
|
|
1500
|
+
export const PaginatedResponsePersonnelPersonResultsDataList =
|
|
1501
|
+
/*@__PURE__*/ S.Array(PersonnelPerson);
|
|
1502
|
+
export const PaginatedResponsePersonnelPersonResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1503
|
+
data: PaginatedResponsePersonnelPersonResultsDataList,
|
|
1504
|
+
pageInfo: PageInfo,
|
|
1505
|
+
})).annotate({
|
|
1506
|
+
identifier: "PaginatedResponsePersonnelPersonResults",
|
|
1507
|
+
});
|
|
1508
|
+
export const PaginatedResponsePersonnelPerson = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1509
|
+
results: PaginatedResponsePersonnelPersonResults,
|
|
1510
|
+
})).annotate({
|
|
1511
|
+
identifier: "PaginatedResponsePersonnelPerson",
|
|
1512
|
+
});
|
|
1513
|
+
export const ListRiskSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1514
|
+
auditId: S.String.pipe(T.Label()),
|
|
1515
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1516
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1517
|
+
}).pipe(T.Http({
|
|
1518
|
+
method: "GET",
|
|
1519
|
+
uri: "/audits/{auditId}/risks/snapshots",
|
|
1520
|
+
code: 200,
|
|
1521
|
+
}))).annotate({
|
|
1522
|
+
identifier: "ListRiskSnapshotsRequest",
|
|
1523
|
+
});
|
|
1524
|
+
export const RiskSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1525
|
+
id: S.String,
|
|
1526
|
+
createdAt: S.String,
|
|
1527
|
+
})).annotate({ identifier: "RiskSnapshot" });
|
|
1528
|
+
export const PaginatedResponseRiskSnapshotResultsDataList =
|
|
1529
|
+
/*@__PURE__*/ S.Array(RiskSnapshot);
|
|
1530
|
+
export const PaginatedResponseRiskSnapshotResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1531
|
+
data: PaginatedResponseRiskSnapshotResultsDataList,
|
|
1532
|
+
pageInfo: PageInfo,
|
|
1533
|
+
})).annotate({
|
|
1534
|
+
identifier: "PaginatedResponseRiskSnapshotResults",
|
|
1535
|
+
});
|
|
1536
|
+
export const PaginatedResponseRiskSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1537
|
+
results: PaginatedResponseRiskSnapshotResults,
|
|
1538
|
+
})).annotate({
|
|
1539
|
+
identifier: "PaginatedResponseRiskSnapshot",
|
|
1540
|
+
});
|
|
1541
|
+
export const ListShareInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1542
|
+
auditId: S.String.pipe(T.Label()),
|
|
1543
|
+
}).pipe(T.Http({
|
|
1544
|
+
method: "POST",
|
|
1545
|
+
uri: "/audits/{auditId}/share-information-request-list",
|
|
1546
|
+
code: 200,
|
|
1547
|
+
}))).annotate({
|
|
1548
|
+
identifier: "ListShareInformationRequestRequest",
|
|
1549
|
+
});
|
|
1550
|
+
export const AuditVendorStatus = S.String;
|
|
1551
|
+
export const ListVendorsRequestVendorStatusesMatchesAnyList =
|
|
1552
|
+
/*@__PURE__*/ S.Array(AuditVendorStatus);
|
|
1553
|
+
export const AuditVendorRiskLevel = S.String;
|
|
1554
|
+
export const ListVendorsRequestInherentRiskMatchesAnyList =
|
|
1555
|
+
/*@__PURE__*/ S.Array(AuditVendorRiskLevel);
|
|
1556
|
+
export const VendorOrderBy = S.String;
|
|
1557
|
+
export const ListVendorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1558
|
+
auditId: S.String.pipe(T.Label()),
|
|
1559
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
1560
|
+
pageCursor: S.optional(S.String.pipe(T.Query())),
|
|
1561
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1562
|
+
vendorStatusesMatchesAny: S.optional(ListVendorsRequestVendorStatusesMatchesAnyList.pipe(T.Query())),
|
|
1563
|
+
inherentRiskMatchesAny: S.optional(ListVendorsRequestInherentRiskMatchesAnyList.pipe(T.Query())),
|
|
1564
|
+
orderBy: S.optional(VendorOrderBy.pipe(T.Query())),
|
|
1565
|
+
orderDirection: S.optional(OrderDirection.pipe(T.Query())),
|
|
1566
|
+
}).pipe(T.Http({
|
|
1567
|
+
method: "GET",
|
|
1568
|
+
uri: "/audits/{auditId}/managed-vendors",
|
|
1569
|
+
code: 200,
|
|
1570
|
+
}))).annotate({
|
|
1571
|
+
identifier: "ListVendorsRequest",
|
|
1572
|
+
});
|
|
1573
|
+
export const AuditVendorDataAgreements = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1574
|
+
total: S.Number,
|
|
1575
|
+
complete: S.Number,
|
|
1576
|
+
})).annotate({
|
|
1577
|
+
identifier: "AuditVendorDataAgreements",
|
|
1578
|
+
});
|
|
1579
|
+
export const AuditVendor = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1580
|
+
id: S.String,
|
|
1581
|
+
name: S.String,
|
|
1582
|
+
inherentRisk: S.optional(AuditVendorRiskLevel),
|
|
1583
|
+
status: S.optional(AuditVendorStatus),
|
|
1584
|
+
findings: S.optional(S.Number),
|
|
1585
|
+
lastReviewedCompleted: S.optional(S.NullOr(S.String)),
|
|
1586
|
+
nextSecurityReviewDueDate: S.optional(S.NullOr(S.String)),
|
|
1587
|
+
vendorCategory: S.optional(S.NullOr(S.String)),
|
|
1588
|
+
residualRisk: S.optional(S.NullOr(AuditVendorRiskLevel)),
|
|
1589
|
+
dataAgreements: S.optional(S.NullOr(AuditVendorDataAgreements)),
|
|
1590
|
+
})).annotate({ identifier: "AuditVendor" });
|
|
1591
|
+
export const PaginatedResponseAuditVendorResultsDataList =
|
|
1592
|
+
/*@__PURE__*/ S.Array(AuditVendor);
|
|
1593
|
+
export const PaginatedResponseAuditVendorResults = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1594
|
+
data: PaginatedResponseAuditVendorResultsDataList,
|
|
1595
|
+
pageInfo: PageInfo,
|
|
1596
|
+
})).annotate({
|
|
1597
|
+
identifier: "PaginatedResponseAuditVendorResults",
|
|
1598
|
+
});
|
|
1599
|
+
export const PaginatedResponseAuditVendor = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1600
|
+
results: PaginatedResponseAuditVendorResults,
|
|
1601
|
+
})).annotate({
|
|
1602
|
+
identifier: "PaginatedResponseAuditVendor",
|
|
1603
|
+
});
|
|
1604
|
+
export const AuditorEnabledStateTransition = S.String;
|
|
1605
|
+
export const UpdateAuditEvidenceRequestStatusUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1606
|
+
auditorEmail: S.String,
|
|
1607
|
+
stateTransition: AuditorEnabledStateTransition,
|
|
1608
|
+
})).annotate({
|
|
1609
|
+
identifier: "UpdateAuditEvidenceRequestStatusUpdate",
|
|
1610
|
+
});
|
|
1611
|
+
export const UpdateAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1612
|
+
auditId: S.String.pipe(T.Label()),
|
|
1613
|
+
auditEvidenceId: S.String.pipe(T.Label()),
|
|
1614
|
+
statusUpdate: S.optional(UpdateAuditEvidenceRequestStatusUpdate),
|
|
1615
|
+
}).pipe(T.Http({
|
|
1616
|
+
method: "PATCH",
|
|
1617
|
+
uri: "/audits/{auditId}/evidence/{auditEvidenceId}",
|
|
1618
|
+
code: 200,
|
|
1619
|
+
}))).annotate({
|
|
1620
|
+
identifier: "UpdateAuditEvidenceRequest",
|
|
1621
|
+
});
|
|
1622
|
+
export const UpdateCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1623
|
+
auditId: S.String.pipe(T.Label()),
|
|
1624
|
+
controlId: S.String.pipe(T.Label()),
|
|
1625
|
+
commentId: S.String.pipe(T.Label()),
|
|
1626
|
+
text: S.String,
|
|
1627
|
+
email: S.String,
|
|
1628
|
+
}).pipe(T.Http({
|
|
1629
|
+
method: "PATCH",
|
|
1630
|
+
uri: "/audits/{auditId}/controls/{controlId}/comments/{commentId}",
|
|
1631
|
+
code: 200,
|
|
1632
|
+
}))).annotate({
|
|
1633
|
+
identifier: "UpdateCommentForControlRequest",
|
|
1634
|
+
});
|
|
1635
|
+
export const UpdateCommentForInformationRequestRequest =
|
|
1636
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1637
|
+
auditId: S.String.pipe(T.Label()),
|
|
1638
|
+
requestId: S.String.pipe(T.Label()),
|
|
1639
|
+
commentId: S.String.pipe(T.Label()),
|
|
1640
|
+
text: S.String,
|
|
1641
|
+
email: S.String,
|
|
1642
|
+
}).pipe(T.Http({
|
|
1643
|
+
method: "PATCH",
|
|
1644
|
+
uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
|
|
1645
|
+
code: 200,
|
|
1646
|
+
}))).annotate({
|
|
1647
|
+
identifier: "UpdateCommentForInformationRequestRequest",
|
|
1648
|
+
});
|
|
1649
|
+
export const UpdateInformationRequestRequestFrameworkCodesList =
|
|
1650
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1651
|
+
export const UpdateInformationRequestRequestAdditionalControlIdsList =
|
|
1652
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1653
|
+
export const UpdateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1654
|
+
auditId: S.String.pipe(T.Label()),
|
|
1655
|
+
requestId: S.String.pipe(T.Label()),
|
|
1656
|
+
frameworkCodes: S.optional(UpdateInformationRequestRequestFrameworkCodesList),
|
|
1657
|
+
description: S.optional(S.NullOr(S.String)),
|
|
1658
|
+
dueDate: S.optional(S.NullOr(S.String)),
|
|
1659
|
+
evidenceCaptureDate: S.optional(S.NullOr(S.String)),
|
|
1660
|
+
requestType: S.optional(InformationRequestType),
|
|
1661
|
+
title: S.optional(S.String),
|
|
1662
|
+
cadence: S.optional(InformationRequestCadence),
|
|
1663
|
+
additionalControlIds: S.optional(UpdateInformationRequestRequestAdditionalControlIdsList),
|
|
1664
|
+
}).pipe(T.Http({
|
|
1665
|
+
method: "PATCH",
|
|
1666
|
+
uri: "/audits/{auditId}/information-requests/{requestId}",
|
|
1667
|
+
code: 200,
|
|
1668
|
+
}))).annotate({
|
|
1669
|
+
identifier: "UpdateInformationRequestRequest",
|
|
1670
|
+
});
|
|
1671
|
+
export const UpsertAssessmentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1672
|
+
auditId: S.String.pipe(T.Label()),
|
|
1673
|
+
controlId: S.String.pipe(T.Label()),
|
|
1674
|
+
segmentId: S.optional(S.String),
|
|
1675
|
+
assessmentState: AuditControlAssessmentState,
|
|
1676
|
+
justification: S.String,
|
|
1677
|
+
auditorEmail: S.String,
|
|
1678
|
+
}).pipe(T.Http({
|
|
1679
|
+
method: "PUT",
|
|
1680
|
+
uri: "/audits/{auditId}/controls/{controlId}/assessment",
|
|
1681
|
+
code: 200,
|
|
1682
|
+
}))).annotate({
|
|
1683
|
+
identifier: "UpsertAssessmentForControlRequest",
|
|
1684
|
+
});
|
|
1685
|
+
export const AuditorControlAssessment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1686
|
+
controlId: S.String,
|
|
1687
|
+
segmentId: S.String,
|
|
1688
|
+
assessmentState: AuditControlAssessmentState,
|
|
1689
|
+
justification: S.String,
|
|
1690
|
+
})).annotate({
|
|
1691
|
+
identifier: "AuditorControlAssessment",
|
|
1692
|
+
});
|
|
1693
|
+
/** 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. */
|
|
1694
|
+
export const acceptInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
|
|
1695
|
+
input: AcceptInformationRequestEvidenceRequest,
|
|
1696
|
+
output: InformationRequest,
|
|
1697
|
+
errors: [UnknownVantaError],
|
|
1698
|
+
protocol: VantaProtocol,
|
|
1699
|
+
retry: Retry.Retry,
|
|
1700
|
+
}));
|
|
1701
|
+
/** Create an auditor Create an auditor in Vanta. Rate limit: 10 requests / minute. */
|
|
1702
|
+
export const createAuditor = /*@__PURE__*/ API.make(() => ({
|
|
1703
|
+
input: CreateAuditorRequest,
|
|
1704
|
+
output: Auditor,
|
|
1705
|
+
errors: [UnknownVantaError],
|
|
1706
|
+
protocol: VantaProtocol,
|
|
1707
|
+
retry: Retry.Retry,
|
|
1708
|
+
}));
|
|
1709
|
+
/** Create a comment for audit evidence Create a comment in Vanta for a piece of evidence. Rate limit: 25 requests / minute. */
|
|
1710
|
+
export const createCommentForAuditEvidence = /*@__PURE__*/ API.make(() => ({
|
|
1711
|
+
input: CreateCommentForAuditEvidenceRequest,
|
|
1712
|
+
output: Comment,
|
|
1713
|
+
errors: [UnknownVantaError],
|
|
1714
|
+
protocol: VantaProtocol,
|
|
1715
|
+
retry: Retry.Retry,
|
|
1716
|
+
}));
|
|
1717
|
+
/** 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. */
|
|
1718
|
+
export const createCommentForControl = /*@__PURE__*/ API.make(() => ({
|
|
1719
|
+
input: CreateCommentForControlRequest,
|
|
1720
|
+
output: AuditControlComment,
|
|
1721
|
+
errors: [UnknownVantaError],
|
|
1722
|
+
protocol: VantaProtocol,
|
|
1723
|
+
retry: Retry.Retry,
|
|
1724
|
+
}));
|
|
1725
|
+
/** 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. */
|
|
1726
|
+
export const createCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
1727
|
+
input: CreateCommentForInformationRequestRequest,
|
|
1728
|
+
output: InformationRequestComment,
|
|
1729
|
+
errors: [UnknownVantaError],
|
|
1730
|
+
protocol: VantaProtocol,
|
|
1731
|
+
retry: Retry.Retry,
|
|
1732
|
+
}));
|
|
1733
|
+
/** 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. */
|
|
1734
|
+
export const createCustomControl = /*@__PURE__*/ API.make(() => ({
|
|
1735
|
+
input: CreateCustomControlRequest,
|
|
1736
|
+
output: Control,
|
|
1737
|
+
errors: [UnknownVantaError],
|
|
1738
|
+
protocol: VantaProtocol,
|
|
1739
|
+
retry: Retry.Retry,
|
|
1740
|
+
}));
|
|
1741
|
+
/** Create a custom evidence request for an audit Create a custom evidence request for an audit. Rate limit: 10 requests / minute. */
|
|
1742
|
+
export const createCustomEvidenceRequest = /*@__PURE__*/ API.make(() => ({
|
|
1743
|
+
input: CreateCustomEvidenceRequestRequest,
|
|
1744
|
+
output: CustomEvidenceRequest,
|
|
1745
|
+
errors: [UnknownVantaError],
|
|
1746
|
+
protocol: VantaProtocol,
|
|
1747
|
+
retry: Retry.Retry,
|
|
1748
|
+
}));
|
|
1749
|
+
/** 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. */
|
|
1750
|
+
export const createInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
1751
|
+
input: CreateInformationRequestRequest,
|
|
1752
|
+
output: InformationRequest,
|
|
1753
|
+
errors: [UnknownVantaError],
|
|
1754
|
+
protocol: VantaProtocol,
|
|
1755
|
+
retry: Retry.Retry,
|
|
1756
|
+
}));
|
|
1757
|
+
/** 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. */
|
|
1758
|
+
export const deleteCommentForControl = /*@__PURE__*/ API.make(() => ({
|
|
1759
|
+
input: DeleteCommentForControlRequest,
|
|
1760
|
+
output: DeleteCommentForControlResponse,
|
|
1761
|
+
errors: [UnknownVantaError],
|
|
1762
|
+
protocol: VantaProtocol,
|
|
1763
|
+
retry: Retry.Retry,
|
|
1764
|
+
}));
|
|
1765
|
+
/** 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. */
|
|
1766
|
+
export const deleteCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
1767
|
+
input: DeleteCommentForInformationRequestRequest,
|
|
1768
|
+
output: DeleteCommentForInformationRequestResponse,
|
|
1769
|
+
errors: [UnknownVantaError],
|
|
1770
|
+
protocol: VantaProtocol,
|
|
1771
|
+
retry: Retry.Retry,
|
|
1772
|
+
}));
|
|
1773
|
+
/** 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 will not appear in normal list responses (without `changedSinceDate`) - The request's `deletionDate` field will be populated Rate limit: 50 requests / minute. */
|
|
1774
|
+
export const deleteInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
1775
|
+
input: DeleteInformationRequestRequest,
|
|
1776
|
+
output: DeleteInformationRequestResponse,
|
|
1777
|
+
errors: [UnknownVantaError],
|
|
1778
|
+
protocol: VantaProtocol,
|
|
1779
|
+
retry: Retry.Retry,
|
|
1780
|
+
}));
|
|
1781
|
+
/** 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. */
|
|
1782
|
+
export const duplicate = /*@__PURE__*/ API.make(() => ({
|
|
1783
|
+
input: DuplicateRequest,
|
|
1784
|
+
output: Audit,
|
|
1785
|
+
errors: [UnknownVantaError],
|
|
1786
|
+
protocol: VantaProtocol,
|
|
1787
|
+
retry: Retry.Retry,
|
|
1788
|
+
}));
|
|
1789
|
+
/** 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. */
|
|
1790
|
+
export const flagInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
|
|
1791
|
+
input: FlagInformationRequestEvidenceRequest,
|
|
1792
|
+
output: InformationRequest,
|
|
1793
|
+
errors: [UnknownVantaError],
|
|
1794
|
+
protocol: VantaProtocol,
|
|
1795
|
+
retry: Retry.Retry,
|
|
1796
|
+
}));
|
|
1797
|
+
/** 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. A live single-framework audit has one entry; a live multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. The top-level `framework` field is deprecated; use `segments` for framework identity. Rate limit: 250 requests / minute. */
|
|
1798
|
+
export const getAudit = /*@__PURE__*/ API.make(() => ({
|
|
1799
|
+
input: GetAuditRequest,
|
|
1800
|
+
output: Audit,
|
|
1801
|
+
errors: [UnknownVantaError],
|
|
1802
|
+
protocol: VantaProtocol,
|
|
1803
|
+
retry: Retry.Retry,
|
|
1804
|
+
}));
|
|
1805
|
+
/** 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. */
|
|
1806
|
+
export const getAuditEvidence = /*@__PURE__*/ API.make(() => ({
|
|
1807
|
+
input: GetAuditEvidenceRequest,
|
|
1808
|
+
output: Evidence,
|
|
1809
|
+
errors: [UnknownVantaError],
|
|
1810
|
+
protocol: VantaProtocol,
|
|
1811
|
+
retry: Retry.Retry,
|
|
1812
|
+
}));
|
|
1813
|
+
/** 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. */
|
|
1814
|
+
export const getAuditEvidenceComment = /*@__PURE__*/ API.make(() => ({
|
|
1815
|
+
input: GetAuditEvidenceCommentRequest,
|
|
1816
|
+
output: Comment,
|
|
1817
|
+
errors: [UnknownVantaError],
|
|
1818
|
+
protocol: VantaProtocol,
|
|
1819
|
+
retry: Retry.Retry,
|
|
1820
|
+
}));
|
|
1821
|
+
/** 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 remain fetchable when the parent information request has been soft-deleted, so delayed webhook consumers can still resolve a comment ID after the request is deleted. Rate limit: 50 requests / minute. */
|
|
1822
|
+
export const getCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
1823
|
+
input: GetCommentForInformationRequestRequest,
|
|
1824
|
+
output: InformationRequestComment,
|
|
1825
|
+
errors: [UnknownVantaError],
|
|
1826
|
+
protocol: VantaProtocol,
|
|
1827
|
+
retry: Retry.Retry,
|
|
1828
|
+
}));
|
|
1829
|
+
/** 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 before creating information requests - Validate framework codes against the audit's framework - Get context about what framework codes are available for the audit type Rate limit: 50 requests / minute. */
|
|
1830
|
+
export const getFrameworkCodes = /*@__PURE__*/ API.make(() => ({
|
|
1831
|
+
input: GetFrameworkCodesRequest,
|
|
1832
|
+
output: FrameworkCodes,
|
|
1833
|
+
errors: [UnknownVantaError],
|
|
1834
|
+
protocol: VantaProtocol,
|
|
1835
|
+
retry: Retry.Retry,
|
|
1836
|
+
}));
|
|
1837
|
+
/** 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. Soft-deleted records (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the request has been deleted. Rate limit: 50 requests / minute. */
|
|
1838
|
+
export const getInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
1839
|
+
input: GetInformationRequestRequest,
|
|
1840
|
+
output: InformationRequest,
|
|
1841
|
+
errors: [UnknownVantaError],
|
|
1842
|
+
protocol: VantaProtocol,
|
|
1843
|
+
retry: Retry.Retry,
|
|
1844
|
+
}));
|
|
1845
|
+
/** 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 reports the request as not found — matching `GET /audits/{auditId}/information-requests/{requestId}/evidence`. Clients reconciling a deleted request should treat its evidence as gone with it. 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. */
|
|
1846
|
+
export const getInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
|
|
1847
|
+
input: GetInformationRequestEvidenceRequest,
|
|
1848
|
+
output: InformationRequestEvidence,
|
|
1849
|
+
errors: [UnknownVantaError],
|
|
1850
|
+
protocol: VantaProtocol,
|
|
1851
|
+
retry: Retry.Retry,
|
|
1852
|
+
}));
|
|
1853
|
+
/** 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. */
|
|
1854
|
+
export const getInformationRequestTestSnapshotEvidenceDetail = /*@__PURE__*/ API.make(() => ({
|
|
1855
|
+
input: GetInformationRequestTestSnapshotEvidenceDetailRequest,
|
|
1856
|
+
output: VantaTestSnapshotEvidenceDetail,
|
|
1857
|
+
errors: [UnknownVantaError],
|
|
1858
|
+
protocol: VantaProtocol,
|
|
1859
|
+
retry: Retry.Retry,
|
|
1860
|
+
}));
|
|
1861
|
+
/** 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. */
|
|
1862
|
+
export const getOrganizationInformation = /*@__PURE__*/ API.make(() => ({
|
|
1863
|
+
input: GetOrganizationInformationRequest,
|
|
1864
|
+
output: AuditOrganizationInformation,
|
|
1865
|
+
errors: [UnknownVantaError],
|
|
1866
|
+
protocol: VantaProtocol,
|
|
1867
|
+
retry: Retry.Retry,
|
|
1868
|
+
}));
|
|
1869
|
+
/** 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. */
|
|
1870
|
+
export const getOrganizationNotifications = /*@__PURE__*/ API.make(() => ({
|
|
1871
|
+
input: GetOrganizationNotificationsRequest,
|
|
1872
|
+
output: AuditOrganizationNotifications,
|
|
1873
|
+
errors: [UnknownVantaError],
|
|
1874
|
+
protocol: VantaProtocol,
|
|
1875
|
+
retry: Retry.Retry,
|
|
1876
|
+
}));
|
|
1877
|
+
/** 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. */
|
|
1878
|
+
export const listAccountAccessServices = /*@__PURE__*/ API.make(() => ({
|
|
1879
|
+
input: ListAccountAccessServicesRequest,
|
|
1880
|
+
output: PaginatedResponseAccountAccessService,
|
|
1881
|
+
errors: [UnknownVantaError],
|
|
1882
|
+
protocol: VantaProtocol,
|
|
1883
|
+
retry: Retry.Retry,
|
|
1884
|
+
}));
|
|
1885
|
+
/** List audit comments Returns a paginated list of comments for an audit. Rate limit: 250 requests / minute. */
|
|
1886
|
+
export const listAuditComments = /*@__PURE__*/ API.make(() => ({
|
|
1887
|
+
input: ListAuditCommentsRequest,
|
|
1888
|
+
output: PaginatedResponseComment,
|
|
1889
|
+
errors: [UnknownVantaError],
|
|
1890
|
+
protocol: VantaProtocol,
|
|
1891
|
+
retry: Retry.Retry,
|
|
1892
|
+
}));
|
|
1893
|
+
/** List audit controls Returns a paginated list of controls for an audit. Rate limit: 250 requests / minute. */
|
|
1894
|
+
export const listAuditControls = /*@__PURE__*/ API.make(() => ({
|
|
1895
|
+
input: ListAuditControlsRequest,
|
|
1896
|
+
output: PaginatedResponseAuditorControl,
|
|
1897
|
+
errors: [UnknownVantaError],
|
|
1898
|
+
protocol: VantaProtocol,
|
|
1899
|
+
retry: Retry.Retry,
|
|
1900
|
+
}));
|
|
1901
|
+
/** List audit evidence Returns a paginated list of evidence for an audit. Rate limit: 250 requests / minute. */
|
|
1902
|
+
export const listAuditEvidence = /*@__PURE__*/ API.make(() => ({
|
|
1903
|
+
input: ListAuditEvidenceRequest,
|
|
1904
|
+
output: PaginatedResponseEvidence,
|
|
1905
|
+
errors: [UnknownVantaError],
|
|
1906
|
+
protocol: VantaProtocol,
|
|
1907
|
+
retry: Retry.Retry,
|
|
1908
|
+
}));
|
|
1909
|
+
/** 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. */
|
|
1910
|
+
export const listAuditEvidenceUrls = /*@__PURE__*/ API.make(() => ({
|
|
1911
|
+
input: ListAuditEvidenceUrlsRequest,
|
|
1912
|
+
output: PaginatedResponseEvidenceUrl,
|
|
1913
|
+
errors: [UnknownVantaError],
|
|
1914
|
+
protocol: VantaProtocol,
|
|
1915
|
+
retry: Retry.Retry,
|
|
1916
|
+
}));
|
|
1917
|
+
/** 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. */
|
|
1918
|
+
export const listAuditIssues = /*@__PURE__*/ API.make(() => ({
|
|
1919
|
+
input: ListAuditIssuesRequest,
|
|
1920
|
+
output: PaginatedResponseIssueSnapshotItem,
|
|
1921
|
+
errors: [UnknownVantaError],
|
|
1922
|
+
protocol: VantaProtocol,
|
|
1923
|
+
retry: Retry.Retry,
|
|
1924
|
+
}));
|
|
1925
|
+
/** 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. */
|
|
1926
|
+
export const listAuditRisks = /*@__PURE__*/ API.make(() => ({
|
|
1927
|
+
input: ListAuditRisksRequest,
|
|
1928
|
+
output: PaginatedResponseAuditRisk,
|
|
1929
|
+
errors: [UnknownVantaError],
|
|
1930
|
+
protocol: VantaProtocol,
|
|
1931
|
+
retry: Retry.Retry,
|
|
1932
|
+
}));
|
|
1933
|
+
/** 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 single-framework audit has one entry; a live multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. The top-level `framework` field is deprecated; use `segments` for framework identity. Rate limit: 250 requests / minute. */
|
|
1934
|
+
export const listAudits = /*@__PURE__*/ API.make(() => ({
|
|
1935
|
+
input: ListAuditsRequest,
|
|
1936
|
+
output: PaginatedResponseAudit,
|
|
1937
|
+
errors: [UnknownVantaError],
|
|
1938
|
+
protocol: VantaProtocol,
|
|
1939
|
+
retry: Retry.Retry,
|
|
1940
|
+
}));
|
|
1941
|
+
/** 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. */
|
|
1942
|
+
export const listAuditSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
1943
|
+
input: ListAuditSnapshotsRequest,
|
|
1944
|
+
output: PaginatedResponseIssueSnapshotMetadata,
|
|
1945
|
+
errors: [UnknownVantaError],
|
|
1946
|
+
protocol: VantaProtocol,
|
|
1947
|
+
retry: Retry.Retry,
|
|
1948
|
+
}));
|
|
1949
|
+
/** 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. */
|
|
1950
|
+
export const listCodeChanges = /*@__PURE__*/ API.make(() => ({
|
|
1951
|
+
input: ListCodeChangesRequest,
|
|
1952
|
+
output: PaginatedResponseCodeChange,
|
|
1953
|
+
errors: [UnknownVantaError],
|
|
1954
|
+
protocol: VantaProtocol,
|
|
1955
|
+
retry: Retry.Retry,
|
|
1956
|
+
}));
|
|
1957
|
+
/** 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. */
|
|
1958
|
+
export const listCommentsForControl = /*@__PURE__*/ API.make(() => ({
|
|
1959
|
+
input: ListCommentsForControlRequest,
|
|
1960
|
+
output: PaginatedResponseAuditControlComment,
|
|
1961
|
+
errors: [UnknownVantaError],
|
|
1962
|
+
protocol: VantaProtocol,
|
|
1963
|
+
retry: Retry.Retry,
|
|
1964
|
+
}));
|
|
1965
|
+
/** 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. 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. */
|
|
1966
|
+
export const listCommentsForInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
1967
|
+
input: ListCommentsForInformationRequestRequest,
|
|
1968
|
+
output: PaginatedResponseInformationRequestComment,
|
|
1969
|
+
errors: [UnknownVantaError],
|
|
1970
|
+
protocol: VantaProtocol,
|
|
1971
|
+
retry: Retry.Retry,
|
|
1972
|
+
}));
|
|
1973
|
+
/** List information request activity Retrieves a paginated list of activity logs for an information request, providing a complete audit trail of all changes and actions. 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. */
|
|
1974
|
+
export const listInformationRequestActivity = /*@__PURE__*/ API.make(() => ({
|
|
1975
|
+
input: ListInformationRequestActivityRequest,
|
|
1976
|
+
output: PaginatedResponseInformationRequestActivityLog,
|
|
1977
|
+
errors: [UnknownVantaError],
|
|
1978
|
+
protocol: VantaProtocol,
|
|
1979
|
+
retry: Retry.Retry,
|
|
1980
|
+
}));
|
|
1981
|
+
/** 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. 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. */
|
|
1982
|
+
export const listInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
|
|
1983
|
+
input: ListInformationRequestEvidenceRequest,
|
|
1984
|
+
output: PaginatedResponseInformationRequestEvidence,
|
|
1985
|
+
errors: [UnknownVantaError],
|
|
1986
|
+
protocol: VantaProtocol,
|
|
1987
|
+
retry: Retry.Retry,
|
|
1988
|
+
}));
|
|
1989
|
+
/** 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 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 Rate limit: 50 requests / minute. */
|
|
1990
|
+
export const listInformationRequests = /*@__PURE__*/ API.make(() => ({
|
|
1991
|
+
input: ListInformationRequestsRequest,
|
|
1992
|
+
output: PaginatedResponseInformationRequest,
|
|
1993
|
+
errors: [UnknownVantaError],
|
|
1994
|
+
protocol: VantaProtocol,
|
|
1995
|
+
retry: Retry.Retry,
|
|
1996
|
+
}));
|
|
1997
|
+
/** 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. An information request is linked to a control either via its framework codes (`criteriaIds`) or via a direct association (`additionalControlIds`). 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. */
|
|
1998
|
+
export const listInformationRequestsForControl = /*@__PURE__*/ API.make(() => ({
|
|
1999
|
+
input: ListInformationRequestsForControlRequest,
|
|
2000
|
+
output: PaginatedResponseInformationRequest,
|
|
2001
|
+
errors: [UnknownVantaError],
|
|
2002
|
+
protocol: VantaProtocol,
|
|
2003
|
+
retry: Retry.Retry,
|
|
2004
|
+
}));
|
|
2005
|
+
/** 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. */
|
|
2006
|
+
export const listIntegrations = /*@__PURE__*/ API.make(() => ({
|
|
2007
|
+
input: ListIntegrationsRequest,
|
|
2008
|
+
output: PaginatedResponseAuditIntegration,
|
|
2009
|
+
errors: [UnknownVantaError],
|
|
2010
|
+
protocol: VantaProtocol,
|
|
2011
|
+
retry: Retry.Retry,
|
|
2012
|
+
}));
|
|
2013
|
+
/** 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. */
|
|
2014
|
+
export const listPersonnelAccountAccess = /*@__PURE__*/ API.make(() => ({
|
|
2015
|
+
input: ListPersonnelAccountAccessRequest,
|
|
2016
|
+
output: PaginatedResponseAccountAccess,
|
|
2017
|
+
errors: [UnknownVantaError],
|
|
2018
|
+
protocol: VantaProtocol,
|
|
2019
|
+
retry: Retry.Retry,
|
|
2020
|
+
}));
|
|
2021
|
+
/** 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. */
|
|
2022
|
+
export const listPersonnelGroups = /*@__PURE__*/ API.make(() => ({
|
|
2023
|
+
input: ListPersonnelGroupsRequest,
|
|
2024
|
+
output: PaginatedResponsePersonnelGroup,
|
|
2025
|
+
errors: [UnknownVantaError],
|
|
2026
|
+
protocol: VantaProtocol,
|
|
2027
|
+
retry: Retry.Retry,
|
|
2028
|
+
}));
|
|
2029
|
+
/** 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. */
|
|
2030
|
+
export const listPersonnelPeople = /*@__PURE__*/ API.make(() => ({
|
|
2031
|
+
input: ListPersonnelPeopleRequest,
|
|
2032
|
+
output: PaginatedResponsePersonnelPerson,
|
|
2033
|
+
errors: [UnknownVantaError],
|
|
2034
|
+
protocol: VantaProtocol,
|
|
2035
|
+
retry: Retry.Retry,
|
|
2036
|
+
}));
|
|
2037
|
+
/** 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. */
|
|
2038
|
+
export const listRiskSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
2039
|
+
input: ListRiskSnapshotsRequest,
|
|
2040
|
+
output: PaginatedResponseRiskSnapshot,
|
|
2041
|
+
errors: [UnknownVantaError],
|
|
2042
|
+
protocol: VantaProtocol,
|
|
2043
|
+
retry: Retry.Retry,
|
|
2044
|
+
}));
|
|
2045
|
+
/** 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. */
|
|
2046
|
+
export const listShareInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
2047
|
+
input: ListShareInformationRequestRequest,
|
|
2048
|
+
output: Audit,
|
|
2049
|
+
errors: [UnknownVantaError],
|
|
2050
|
+
protocol: VantaProtocol,
|
|
2051
|
+
retry: Retry.Retry,
|
|
2052
|
+
}));
|
|
2053
|
+
/** 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. */
|
|
2054
|
+
export const listVendors = /*@__PURE__*/ API.make(() => ({
|
|
2055
|
+
input: ListVendorsRequest,
|
|
2056
|
+
output: PaginatedResponseAuditVendor,
|
|
2057
|
+
errors: [UnknownVantaError],
|
|
2058
|
+
protocol: VantaProtocol,
|
|
2059
|
+
retry: Retry.Retry,
|
|
2060
|
+
}));
|
|
2061
|
+
/** Update audit evidence Update audit evidence. Rate limit: 50 requests / minute. */
|
|
2062
|
+
export const updateAuditEvidence = /*@__PURE__*/ API.make(() => ({
|
|
2063
|
+
input: UpdateAuditEvidenceRequest,
|
|
2064
|
+
output: Evidence,
|
|
2065
|
+
errors: [UnknownVantaError],
|
|
2066
|
+
protocol: VantaProtocol,
|
|
2067
|
+
retry: Retry.Retry,
|
|
2068
|
+
}));
|
|
2069
|
+
/** 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. */
|
|
2070
|
+
export const updateCommentForControl = /*@__PURE__*/ API.make(() => ({
|
|
2071
|
+
input: UpdateCommentForControlRequest,
|
|
2072
|
+
output: AuditControlComment,
|
|
2073
|
+
errors: [UnknownVantaError],
|
|
2074
|
+
protocol: VantaProtocol,
|
|
2075
|
+
retry: Retry.Retry,
|
|
2076
|
+
}));
|
|
2077
|
+
/** 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. */
|
|
2078
|
+
export const updateCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
2079
|
+
input: UpdateCommentForInformationRequestRequest,
|
|
2080
|
+
output: InformationRequestComment,
|
|
2081
|
+
errors: [UnknownVantaError],
|
|
2082
|
+
protocol: VantaProtocol,
|
|
2083
|
+
retry: Retry.Retry,
|
|
2084
|
+
}));
|
|
2085
|
+
/** 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. */
|
|
2086
|
+
export const updateInformationRequest = /*@__PURE__*/ API.make(() => ({
|
|
2087
|
+
input: UpdateInformationRequestRequest,
|
|
2088
|
+
output: InformationRequest,
|
|
2089
|
+
errors: [UnknownVantaError],
|
|
2090
|
+
protocol: VantaProtocol,
|
|
2091
|
+
retry: Retry.Retry,
|
|
2092
|
+
}));
|
|
2093
|
+
/** 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 single assessment for this control in the audit's program segment. The `assessmentState` must be valid for the 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 the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Applies to both Full and Controlled Audit View audits. Rate limit: 10 requests / minute. */
|
|
2094
|
+
export const upsertAssessmentForControl = /*@__PURE__*/ API.make(() => ({
|
|
2095
|
+
input: UpsertAssessmentForControlRequest,
|
|
2096
|
+
output: AuditorControlAssessment,
|
|
2097
|
+
errors: [UnknownVantaError],
|
|
2098
|
+
protocol: VantaProtocol,
|
|
2099
|
+
retry: Retry.Retry,
|
|
2100
|
+
}));
|
|
2101
|
+
//# sourceMappingURL=auditor_api.js.map
|