@distilled.cloud/vanta 1.0.0-rc.13 → 1.0.0-rc.15
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/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +2 -6
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/auditor_api.d.ts +97 -63
- package/lib/services/auditor_api.d.ts.map +1 -1
- package/lib/services/auditor_api.js +160 -373
- package/lib/services/auditor_api.js.map +1 -1
- package/lib/services/build_integrations.d.ts +82 -82
- package/lib/services/build_integrations.d.ts.map +1 -1
- package/lib/services/build_integrations.js +168 -309
- package/lib/services/build_integrations.js.map +1 -1
- package/lib/services/manage_vanta.d.ts +340 -38
- package/lib/services/manage_vanta.d.ts.map +1 -1
- package/lib/services/manage_vanta.js +676 -1287
- package/lib/services/manage_vanta.js.map +1 -1
- package/lib/services/webhooks.d.ts +7 -7
- package/lib/services/webhooks.d.ts.map +1 -1
- package/lib/services/webhooks.js +54 -142
- package/lib/services/webhooks.js.map +1 -1
- package/package.json +12 -10
- package/src/credentials.ts +7 -8
- package/src/errors.ts +5 -8
- package/src/index.ts +1 -5
- package/src/protocol.ts +25 -31
- package/src/retry.ts +2 -8
- package/src/services/auditor_api.ts +721 -1022
- package/src/services/build_integrations.ts +788 -1094
- package/src/services/manage_vanta.ts +2504 -3322
- package/src/services/webhooks.ts +309 -483
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -42
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -56
package/src/services/webhooks.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
1
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
-
import * as API from "@distilled.cloud/core/api";
|
|
4
|
-
import * as T from "../traits.ts";
|
|
5
|
-
import {
|
|
6
|
-
VantaProtocol,
|
|
7
|
-
type VantaOpError,
|
|
8
|
-
type VantaOpContext,
|
|
9
|
-
} from "../protocol.ts";
|
|
10
4
|
import { UnknownVantaError } from "../errors.ts";
|
|
5
|
+
import { VantaProtocol, type VantaOpError, type VantaOpContext } from "../protocol.ts";
|
|
11
6
|
import * as Retry from "../retry.ts";
|
|
7
|
+
import * as T from "../traits.ts";
|
|
12
8
|
|
|
13
9
|
export type { VantaOpError, VantaOpContext };
|
|
14
10
|
|
|
@@ -18,12 +14,11 @@ export interface V1ControlCommentCreatedRequestControl {
|
|
|
18
14
|
/** The unique identifier of the audit the control belongs to. */
|
|
19
15
|
auditId: string;
|
|
20
16
|
}
|
|
21
|
-
export const V1ControlCommentCreatedRequestControl = /*@__PURE__*/ S.suspend(
|
|
22
|
-
(
|
|
23
|
-
S.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}),
|
|
17
|
+
export const V1ControlCommentCreatedRequestControl = /*@__PURE__*/ S.suspend(() =>
|
|
18
|
+
S.Struct({
|
|
19
|
+
id: S.String,
|
|
20
|
+
auditId: S.String,
|
|
21
|
+
}),
|
|
27
22
|
).annotate({
|
|
28
23
|
identifier: "V1ControlCommentCreatedRequestControl",
|
|
29
24
|
}) as any as S.Schema<V1ControlCommentCreatedRequestControl>;
|
|
@@ -32,11 +27,10 @@ export interface V1ControlCommentCreatedRequestComment {
|
|
|
32
27
|
/** The unique identifier of the comment. */
|
|
33
28
|
id: string;
|
|
34
29
|
}
|
|
35
|
-
export const V1ControlCommentCreatedRequestComment = /*@__PURE__*/ S.suspend(
|
|
36
|
-
(
|
|
37
|
-
S.
|
|
38
|
-
|
|
39
|
-
}),
|
|
30
|
+
export const V1ControlCommentCreatedRequestComment = /*@__PURE__*/ S.suspend(() =>
|
|
31
|
+
S.Struct({
|
|
32
|
+
id: S.String,
|
|
33
|
+
}),
|
|
40
34
|
).annotate({
|
|
41
35
|
identifier: "V1ControlCommentCreatedRequestComment",
|
|
42
36
|
}) as any as S.Schema<V1ControlCommentCreatedRequestComment>;
|
|
@@ -49,19 +43,15 @@ export const V1ControlCommentCreatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
49
43
|
S.Struct({
|
|
50
44
|
control: V1ControlCommentCreatedRequestControl,
|
|
51
45
|
comment: V1ControlCommentCreatedRequestComment,
|
|
52
|
-
}).pipe(
|
|
53
|
-
T.Http({ method: "POST", uri: "/v1.control.comment.created", code: 200 }),
|
|
54
|
-
),
|
|
46
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.created", code: 200 })),
|
|
55
47
|
).annotate({
|
|
56
48
|
identifier: "V1ControlCommentCreatedRequest",
|
|
57
49
|
}) as any as S.Schema<V1ControlCommentCreatedRequest>;
|
|
58
50
|
|
|
59
51
|
export interface V1ControlCommentCreatedResponse {}
|
|
60
|
-
export const V1ControlCommentCreatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
61
|
-
|
|
62
|
-
).
|
|
63
|
-
identifier: "V1ControlCommentCreatedResponse",
|
|
64
|
-
}) as any as S.Schema<V1ControlCommentCreatedResponse>;
|
|
52
|
+
export const V1ControlCommentCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
|
|
53
|
+
{ identifier: "V1ControlCommentCreatedResponse" },
|
|
54
|
+
) as any as S.Schema<V1ControlCommentCreatedResponse>;
|
|
65
55
|
|
|
66
56
|
export interface V1ControlCommentDeletedRequestControl {
|
|
67
57
|
/** The unique identifier of the control the comment was deleted from. */
|
|
@@ -69,20 +59,17 @@ export interface V1ControlCommentDeletedRequestControl {
|
|
|
69
59
|
/** The unique identifier of the audit the control belongs to. */
|
|
70
60
|
auditId: string;
|
|
71
61
|
}
|
|
72
|
-
export const V1ControlCommentDeletedRequestControl = /*@__PURE__*/ S.suspend(
|
|
73
|
-
(
|
|
74
|
-
S.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}),
|
|
62
|
+
export const V1ControlCommentDeletedRequestControl = /*@__PURE__*/ S.suspend(() =>
|
|
63
|
+
S.Struct({
|
|
64
|
+
id: S.String,
|
|
65
|
+
auditId: S.String,
|
|
66
|
+
}),
|
|
78
67
|
).annotate({
|
|
79
68
|
identifier: "V1ControlCommentDeletedRequestControl",
|
|
80
69
|
}) as any as S.Schema<V1ControlCommentDeletedRequestControl>;
|
|
81
70
|
|
|
82
|
-
export type V1ControlCommentDeletedRequestComment =
|
|
83
|
-
|
|
84
|
-
export const V1ControlCommentDeletedRequestComment =
|
|
85
|
-
V1ControlCommentCreatedRequestComment;
|
|
71
|
+
export type V1ControlCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
72
|
+
export const V1ControlCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
86
73
|
|
|
87
74
|
export interface V1ControlCommentDeletedRequest {
|
|
88
75
|
control: V1ControlCommentDeletedRequestControl;
|
|
@@ -92,19 +79,15 @@ export const V1ControlCommentDeletedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
92
79
|
S.Struct({
|
|
93
80
|
control: V1ControlCommentDeletedRequestControl,
|
|
94
81
|
comment: V1ControlCommentCreatedRequestComment,
|
|
95
|
-
}).pipe(
|
|
96
|
-
T.Http({ method: "POST", uri: "/v1.control.comment.deleted", code: 200 }),
|
|
97
|
-
),
|
|
82
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.deleted", code: 200 })),
|
|
98
83
|
).annotate({
|
|
99
84
|
identifier: "V1ControlCommentDeletedRequest",
|
|
100
85
|
}) as any as S.Schema<V1ControlCommentDeletedRequest>;
|
|
101
86
|
|
|
102
87
|
export interface V1ControlCommentDeletedResponse {}
|
|
103
|
-
export const V1ControlCommentDeletedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
104
|
-
|
|
105
|
-
).
|
|
106
|
-
identifier: "V1ControlCommentDeletedResponse",
|
|
107
|
-
}) as any as S.Schema<V1ControlCommentDeletedResponse>;
|
|
88
|
+
export const V1ControlCommentDeletedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
|
|
89
|
+
{ identifier: "V1ControlCommentDeletedResponse" },
|
|
90
|
+
) as any as S.Schema<V1ControlCommentDeletedResponse>;
|
|
108
91
|
|
|
109
92
|
export interface V1ControlCommentUpdatedRequestControl {
|
|
110
93
|
/** The unique identifier of the control the comment belongs to. */
|
|
@@ -112,20 +95,17 @@ export interface V1ControlCommentUpdatedRequestControl {
|
|
|
112
95
|
/** The unique identifier of the audit the control belongs to. */
|
|
113
96
|
auditId: string;
|
|
114
97
|
}
|
|
115
|
-
export const V1ControlCommentUpdatedRequestControl = /*@__PURE__*/ S.suspend(
|
|
116
|
-
(
|
|
117
|
-
S.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}),
|
|
98
|
+
export const V1ControlCommentUpdatedRequestControl = /*@__PURE__*/ S.suspend(() =>
|
|
99
|
+
S.Struct({
|
|
100
|
+
id: S.String,
|
|
101
|
+
auditId: S.String,
|
|
102
|
+
}),
|
|
121
103
|
).annotate({
|
|
122
104
|
identifier: "V1ControlCommentUpdatedRequestControl",
|
|
123
105
|
}) as any as S.Schema<V1ControlCommentUpdatedRequestControl>;
|
|
124
106
|
|
|
125
|
-
export type V1ControlCommentUpdatedRequestComment =
|
|
126
|
-
|
|
127
|
-
export const V1ControlCommentUpdatedRequestComment =
|
|
128
|
-
V1ControlCommentCreatedRequestComment;
|
|
107
|
+
export type V1ControlCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
108
|
+
export const V1ControlCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
129
109
|
|
|
130
110
|
export interface V1ControlCommentUpdatedRequest {
|
|
131
111
|
control: V1ControlCommentUpdatedRequestControl;
|
|
@@ -135,19 +115,15 @@ export const V1ControlCommentUpdatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
135
115
|
S.Struct({
|
|
136
116
|
control: V1ControlCommentUpdatedRequestControl,
|
|
137
117
|
comment: V1ControlCommentCreatedRequestComment,
|
|
138
|
-
}).pipe(
|
|
139
|
-
T.Http({ method: "POST", uri: "/v1.control.comment.updated", code: 200 }),
|
|
140
|
-
),
|
|
118
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.updated", code: 200 })),
|
|
141
119
|
).annotate({
|
|
142
120
|
identifier: "V1ControlCommentUpdatedRequest",
|
|
143
121
|
}) as any as S.Schema<V1ControlCommentUpdatedRequest>;
|
|
144
122
|
|
|
145
123
|
export interface V1ControlCommentUpdatedResponse {}
|
|
146
|
-
export const V1ControlCommentUpdatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
147
|
-
|
|
148
|
-
).
|
|
149
|
-
identifier: "V1ControlCommentUpdatedResponse",
|
|
150
|
-
}) as any as S.Schema<V1ControlCommentUpdatedResponse>;
|
|
124
|
+
export const V1ControlCommentUpdatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
|
|
125
|
+
{ identifier: "V1ControlCommentUpdatedResponse" },
|
|
126
|
+
) as any as S.Schema<V1ControlCommentUpdatedResponse>;
|
|
151
127
|
|
|
152
128
|
export interface V1EvidenceCommentCreatedRequestEvidence {
|
|
153
129
|
/** The unique identifier of the evidence. */
|
|
@@ -155,20 +131,17 @@ export interface V1EvidenceCommentCreatedRequestEvidence {
|
|
|
155
131
|
/** The unique identifier of the audit the evidence belongs to. */
|
|
156
132
|
auditId: string;
|
|
157
133
|
}
|
|
158
|
-
export const V1EvidenceCommentCreatedRequestEvidence = /*@__PURE__*/ S.suspend(
|
|
159
|
-
(
|
|
160
|
-
S.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}),
|
|
134
|
+
export const V1EvidenceCommentCreatedRequestEvidence = /*@__PURE__*/ S.suspend(() =>
|
|
135
|
+
S.Struct({
|
|
136
|
+
id: S.String,
|
|
137
|
+
auditId: S.String,
|
|
138
|
+
}),
|
|
164
139
|
).annotate({
|
|
165
140
|
identifier: "V1EvidenceCommentCreatedRequestEvidence",
|
|
166
141
|
}) as any as S.Schema<V1EvidenceCommentCreatedRequestEvidence>;
|
|
167
142
|
|
|
168
|
-
export type V1EvidenceCommentCreatedRequestComment =
|
|
169
|
-
|
|
170
|
-
export const V1EvidenceCommentCreatedRequestComment =
|
|
171
|
-
V1ControlCommentCreatedRequestComment;
|
|
143
|
+
export type V1EvidenceCommentCreatedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
144
|
+
export const V1EvidenceCommentCreatedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
172
145
|
|
|
173
146
|
export interface V1EvidenceCommentCreatedRequest {
|
|
174
147
|
evidence: V1EvidenceCommentCreatedRequestEvidence;
|
|
@@ -178,9 +151,7 @@ export const V1EvidenceCommentCreatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
178
151
|
S.Struct({
|
|
179
152
|
evidence: V1EvidenceCommentCreatedRequestEvidence,
|
|
180
153
|
comment: V1ControlCommentCreatedRequestComment,
|
|
181
|
-
}).pipe(
|
|
182
|
-
T.Http({ method: "POST", uri: "/v1.evidence.comment.created", code: 200 }),
|
|
183
|
-
),
|
|
154
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.created", code: 200 })),
|
|
184
155
|
).annotate({
|
|
185
156
|
identifier: "V1EvidenceCommentCreatedRequest",
|
|
186
157
|
}) as any as S.Schema<V1EvidenceCommentCreatedRequest>;
|
|
@@ -192,15 +163,11 @@ export const V1EvidenceCommentCreatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
192
163
|
identifier: "V1EvidenceCommentCreatedResponse",
|
|
193
164
|
}) as any as S.Schema<V1EvidenceCommentCreatedResponse>;
|
|
194
165
|
|
|
195
|
-
export type V1EvidenceCommentDeletedRequestEvidence =
|
|
196
|
-
|
|
197
|
-
export const V1EvidenceCommentDeletedRequestEvidence =
|
|
198
|
-
V1EvidenceCommentCreatedRequestEvidence;
|
|
166
|
+
export type V1EvidenceCommentDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
167
|
+
export const V1EvidenceCommentDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
199
168
|
|
|
200
|
-
export type V1EvidenceCommentDeletedRequestComment =
|
|
201
|
-
|
|
202
|
-
export const V1EvidenceCommentDeletedRequestComment =
|
|
203
|
-
V1ControlCommentCreatedRequestComment;
|
|
169
|
+
export type V1EvidenceCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
170
|
+
export const V1EvidenceCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
204
171
|
|
|
205
172
|
export interface V1EvidenceCommentDeletedRequest {
|
|
206
173
|
evidence: V1EvidenceCommentCreatedRequestEvidence;
|
|
@@ -210,9 +177,7 @@ export const V1EvidenceCommentDeletedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
210
177
|
S.Struct({
|
|
211
178
|
evidence: V1EvidenceCommentCreatedRequestEvidence,
|
|
212
179
|
comment: V1ControlCommentCreatedRequestComment,
|
|
213
|
-
}).pipe(
|
|
214
|
-
T.Http({ method: "POST", uri: "/v1.evidence.comment.deleted", code: 200 }),
|
|
215
|
-
),
|
|
180
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.deleted", code: 200 })),
|
|
216
181
|
).annotate({
|
|
217
182
|
identifier: "V1EvidenceCommentDeletedRequest",
|
|
218
183
|
}) as any as S.Schema<V1EvidenceCommentDeletedRequest>;
|
|
@@ -224,15 +189,11 @@ export const V1EvidenceCommentDeletedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
224
189
|
identifier: "V1EvidenceCommentDeletedResponse",
|
|
225
190
|
}) as any as S.Schema<V1EvidenceCommentDeletedResponse>;
|
|
226
191
|
|
|
227
|
-
export type V1EvidenceCommentUpdatedRequestEvidence =
|
|
228
|
-
|
|
229
|
-
export const V1EvidenceCommentUpdatedRequestEvidence =
|
|
230
|
-
V1EvidenceCommentCreatedRequestEvidence;
|
|
192
|
+
export type V1EvidenceCommentUpdatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
193
|
+
export const V1EvidenceCommentUpdatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
231
194
|
|
|
232
|
-
export type V1EvidenceCommentUpdatedRequestComment =
|
|
233
|
-
|
|
234
|
-
export const V1EvidenceCommentUpdatedRequestComment =
|
|
235
|
-
V1ControlCommentCreatedRequestComment;
|
|
195
|
+
export type V1EvidenceCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
196
|
+
export const V1EvidenceCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
|
|
236
197
|
|
|
237
198
|
export interface V1EvidenceCommentUpdatedRequest {
|
|
238
199
|
evidence: V1EvidenceCommentCreatedRequestEvidence;
|
|
@@ -242,9 +203,7 @@ export const V1EvidenceCommentUpdatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
242
203
|
S.Struct({
|
|
243
204
|
evidence: V1EvidenceCommentCreatedRequestEvidence,
|
|
244
205
|
comment: V1ControlCommentCreatedRequestComment,
|
|
245
|
-
}).pipe(
|
|
246
|
-
T.Http({ method: "POST", uri: "/v1.evidence.comment.updated", code: 200 }),
|
|
247
|
-
),
|
|
206
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.updated", code: 200 })),
|
|
248
207
|
).annotate({
|
|
249
208
|
identifier: "V1EvidenceCommentUpdatedRequest",
|
|
250
209
|
}) as any as S.Schema<V1EvidenceCommentUpdatedRequest>;
|
|
@@ -257,10 +216,8 @@ export const V1EvidenceCommentUpdatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
257
216
|
}) as any as S.Schema<V1EvidenceCommentUpdatedResponse>;
|
|
258
217
|
|
|
259
218
|
/** The evidence item that came into scope for the audit. */
|
|
260
|
-
export type V1EvidenceCreatedRequestEvidence =
|
|
261
|
-
|
|
262
|
-
export const V1EvidenceCreatedRequestEvidence =
|
|
263
|
-
V1EvidenceCommentCreatedRequestEvidence;
|
|
219
|
+
export type V1EvidenceCreatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
220
|
+
export const V1EvidenceCreatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
264
221
|
|
|
265
222
|
export interface V1EvidenceCreatedRequest {
|
|
266
223
|
/** The evidence item that came into scope for the audit. */
|
|
@@ -270,22 +227,16 @@ export const V1EvidenceCreatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
270
227
|
S.Struct({
|
|
271
228
|
evidence: V1EvidenceCommentCreatedRequestEvidence,
|
|
272
229
|
}).pipe(T.Http({ method: "POST", uri: "/v1.evidence.created", code: 200 })),
|
|
273
|
-
).annotate({
|
|
274
|
-
identifier: "V1EvidenceCreatedRequest",
|
|
275
|
-
}) as any as S.Schema<V1EvidenceCreatedRequest>;
|
|
230
|
+
).annotate({ identifier: "V1EvidenceCreatedRequest" }) as any as S.Schema<V1EvidenceCreatedRequest>;
|
|
276
231
|
|
|
277
232
|
export interface V1EvidenceCreatedResponse {}
|
|
278
|
-
export const V1EvidenceCreatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
279
|
-
S.Struct({}),
|
|
280
|
-
).annotate({
|
|
233
|
+
export const V1EvidenceCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
281
234
|
identifier: "V1EvidenceCreatedResponse",
|
|
282
235
|
}) as any as S.Schema<V1EvidenceCreatedResponse>;
|
|
283
236
|
|
|
284
237
|
/** The evidence item that left scope for the audit. */
|
|
285
|
-
export type V1EvidenceDeletedRequestEvidence =
|
|
286
|
-
|
|
287
|
-
export const V1EvidenceDeletedRequestEvidence =
|
|
288
|
-
V1EvidenceCommentCreatedRequestEvidence;
|
|
238
|
+
export type V1EvidenceDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
239
|
+
export const V1EvidenceDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
|
|
289
240
|
|
|
290
241
|
export interface V1EvidenceDeletedRequest {
|
|
291
242
|
/** The evidence item that left scope for the audit. */
|
|
@@ -295,14 +246,10 @@ export const V1EvidenceDeletedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
295
246
|
S.Struct({
|
|
296
247
|
evidence: V1EvidenceCommentCreatedRequestEvidence,
|
|
297
248
|
}).pipe(T.Http({ method: "POST", uri: "/v1.evidence.deleted", code: 200 })),
|
|
298
|
-
).annotate({
|
|
299
|
-
identifier: "V1EvidenceDeletedRequest",
|
|
300
|
-
}) as any as S.Schema<V1EvidenceDeletedRequest>;
|
|
249
|
+
).annotate({ identifier: "V1EvidenceDeletedRequest" }) as any as S.Schema<V1EvidenceDeletedRequest>;
|
|
301
250
|
|
|
302
251
|
export interface V1EvidenceDeletedResponse {}
|
|
303
|
-
export const V1EvidenceDeletedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
304
|
-
S.Struct({}),
|
|
305
|
-
).annotate({
|
|
252
|
+
export const V1EvidenceDeletedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
306
253
|
identifier: "V1EvidenceDeletedResponse",
|
|
307
254
|
}) as any as S.Schema<V1EvidenceDeletedResponse>;
|
|
308
255
|
|
|
@@ -336,14 +283,13 @@ export interface V1EvidenceStatusChangedRequestEvidence {
|
|
|
336
283
|
/** The status the evidence item is in after the change. A value of `READY_FOR_AUDIT` means the customer has provided evidence for the item and it is ready for the auditor to review. `INITIALIZED` is an internal status and is never delivered. */
|
|
337
284
|
newStatus: V1EvidenceStatusChangedRequestEvidenceNewStatus | (string & {});
|
|
338
285
|
}
|
|
339
|
-
export const V1EvidenceStatusChangedRequestEvidence = /*@__PURE__*/ S.suspend(
|
|
340
|
-
(
|
|
341
|
-
S.
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}),
|
|
286
|
+
export const V1EvidenceStatusChangedRequestEvidence = /*@__PURE__*/ S.suspend(() =>
|
|
287
|
+
S.Struct({
|
|
288
|
+
id: S.String,
|
|
289
|
+
auditId: S.String,
|
|
290
|
+
oldStatus: V1EvidenceStatusChangedRequestEvidenceOldStatus,
|
|
291
|
+
newStatus: V1EvidenceStatusChangedRequestEvidenceNewStatus,
|
|
292
|
+
}),
|
|
347
293
|
).annotate({
|
|
348
294
|
identifier: "V1EvidenceStatusChangedRequestEvidence",
|
|
349
295
|
}) as any as S.Schema<V1EvidenceStatusChangedRequestEvidence>;
|
|
@@ -354,19 +300,15 @@ export interface V1EvidenceStatusChangedRequest {
|
|
|
354
300
|
export const V1EvidenceStatusChangedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
355
301
|
S.Struct({
|
|
356
302
|
evidence: V1EvidenceStatusChangedRequestEvidence,
|
|
357
|
-
}).pipe(
|
|
358
|
-
T.Http({ method: "POST", uri: "/v1.evidence.status-changed", code: 200 }),
|
|
359
|
-
),
|
|
303
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.evidence.status-changed", code: 200 })),
|
|
360
304
|
).annotate({
|
|
361
305
|
identifier: "V1EvidenceStatusChangedRequest",
|
|
362
306
|
}) as any as S.Schema<V1EvidenceStatusChangedRequest>;
|
|
363
307
|
|
|
364
308
|
export interface V1EvidenceStatusChangedResponse {}
|
|
365
|
-
export const V1EvidenceStatusChangedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
366
|
-
|
|
367
|
-
).
|
|
368
|
-
identifier: "V1EvidenceStatusChangedResponse",
|
|
369
|
-
}) as any as S.Schema<V1EvidenceStatusChangedResponse>;
|
|
309
|
+
export const V1EvidenceStatusChangedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
|
|
310
|
+
{ identifier: "V1EvidenceStatusChangedResponse" },
|
|
311
|
+
) as any as S.Schema<V1EvidenceStatusChangedResponse>;
|
|
370
312
|
|
|
371
313
|
export interface V1InformationRequestCommentCreatedRequestInformationRequest {
|
|
372
314
|
/** The unique identifier of the information request. */
|
|
@@ -374,15 +316,15 @@ export interface V1InformationRequestCommentCreatedRequestInformationRequest {
|
|
|
374
316
|
/** The unique identifier of the audit the information request belongs to. */
|
|
375
317
|
auditId: string;
|
|
376
318
|
}
|
|
377
|
-
export const V1InformationRequestCommentCreatedRequestInformationRequest =
|
|
378
|
-
|
|
319
|
+
export const V1InformationRequestCommentCreatedRequestInformationRequest = /*@__PURE__*/ S.suspend(
|
|
320
|
+
() =>
|
|
379
321
|
S.Struct({
|
|
380
322
|
id: S.String,
|
|
381
323
|
auditId: S.String,
|
|
382
324
|
}),
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
325
|
+
).annotate({
|
|
326
|
+
identifier: "V1InformationRequestCommentCreatedRequestInformationRequest",
|
|
327
|
+
}) as any as S.Schema<V1InformationRequestCommentCreatedRequestInformationRequest>;
|
|
386
328
|
|
|
387
329
|
export type V1InformationRequestCommentCreatedRequestComment =
|
|
388
330
|
V1ControlCommentCreatedRequestComment;
|
|
@@ -393,28 +335,21 @@ export interface V1InformationRequestCommentCreatedRequest {
|
|
|
393
335
|
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
394
336
|
comment: V1ControlCommentCreatedRequestComment;
|
|
395
337
|
}
|
|
396
|
-
export const V1InformationRequestCommentCreatedRequest =
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
method: "POST",
|
|
405
|
-
uri: "/v1.information-request.comment.created",
|
|
406
|
-
code: 200,
|
|
407
|
-
}),
|
|
408
|
-
),
|
|
409
|
-
).annotate({
|
|
410
|
-
identifier: "V1InformationRequestCommentCreatedRequest",
|
|
411
|
-
}) as any as S.Schema<V1InformationRequestCommentCreatedRequest>;
|
|
338
|
+
export const V1InformationRequestCommentCreatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
339
|
+
S.Struct({
|
|
340
|
+
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
|
|
341
|
+
comment: V1ControlCommentCreatedRequestComment,
|
|
342
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.information-request.comment.created", code: 200 })),
|
|
343
|
+
).annotate({
|
|
344
|
+
identifier: "V1InformationRequestCommentCreatedRequest",
|
|
345
|
+
}) as any as S.Schema<V1InformationRequestCommentCreatedRequest>;
|
|
412
346
|
|
|
413
347
|
export interface V1InformationRequestCommentCreatedResponse {}
|
|
414
|
-
export const V1InformationRequestCommentCreatedResponse =
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
348
|
+
export const V1InformationRequestCommentCreatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
349
|
+
S.Struct({}),
|
|
350
|
+
).annotate({
|
|
351
|
+
identifier: "V1InformationRequestCommentCreatedResponse",
|
|
352
|
+
}) as any as S.Schema<V1InformationRequestCommentCreatedResponse>;
|
|
418
353
|
|
|
419
354
|
export type V1InformationRequestCommentDeletedRequestInformationRequest =
|
|
420
355
|
V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
@@ -430,28 +365,21 @@ export interface V1InformationRequestCommentDeletedRequest {
|
|
|
430
365
|
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
431
366
|
comment: V1ControlCommentCreatedRequestComment;
|
|
432
367
|
}
|
|
433
|
-
export const V1InformationRequestCommentDeletedRequest =
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
method: "POST",
|
|
442
|
-
uri: "/v1.information-request.comment.deleted",
|
|
443
|
-
code: 200,
|
|
444
|
-
}),
|
|
445
|
-
),
|
|
446
|
-
).annotate({
|
|
447
|
-
identifier: "V1InformationRequestCommentDeletedRequest",
|
|
448
|
-
}) as any as S.Schema<V1InformationRequestCommentDeletedRequest>;
|
|
368
|
+
export const V1InformationRequestCommentDeletedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
369
|
+
S.Struct({
|
|
370
|
+
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
|
|
371
|
+
comment: V1ControlCommentCreatedRequestComment,
|
|
372
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.information-request.comment.deleted", code: 200 })),
|
|
373
|
+
).annotate({
|
|
374
|
+
identifier: "V1InformationRequestCommentDeletedRequest",
|
|
375
|
+
}) as any as S.Schema<V1InformationRequestCommentDeletedRequest>;
|
|
449
376
|
|
|
450
377
|
export interface V1InformationRequestCommentDeletedResponse {}
|
|
451
|
-
export const V1InformationRequestCommentDeletedResponse =
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
378
|
+
export const V1InformationRequestCommentDeletedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
379
|
+
S.Struct({}),
|
|
380
|
+
).annotate({
|
|
381
|
+
identifier: "V1InformationRequestCommentDeletedResponse",
|
|
382
|
+
}) as any as S.Schema<V1InformationRequestCommentDeletedResponse>;
|
|
455
383
|
|
|
456
384
|
export type V1InformationRequestCommentUpdatedRequestInformationRequest =
|
|
457
385
|
V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
@@ -467,28 +395,21 @@ export interface V1InformationRequestCommentUpdatedRequest {
|
|
|
467
395
|
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
468
396
|
comment: V1ControlCommentCreatedRequestComment;
|
|
469
397
|
}
|
|
470
|
-
export const V1InformationRequestCommentUpdatedRequest =
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
method: "POST",
|
|
479
|
-
uri: "/v1.information-request.comment.updated",
|
|
480
|
-
code: 200,
|
|
481
|
-
}),
|
|
482
|
-
),
|
|
483
|
-
).annotate({
|
|
484
|
-
identifier: "V1InformationRequestCommentUpdatedRequest",
|
|
485
|
-
}) as any as S.Schema<V1InformationRequestCommentUpdatedRequest>;
|
|
398
|
+
export const V1InformationRequestCommentUpdatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
399
|
+
S.Struct({
|
|
400
|
+
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
|
|
401
|
+
comment: V1ControlCommentCreatedRequestComment,
|
|
402
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.information-request.comment.updated", code: 200 })),
|
|
403
|
+
).annotate({
|
|
404
|
+
identifier: "V1InformationRequestCommentUpdatedRequest",
|
|
405
|
+
}) as any as S.Schema<V1InformationRequestCommentUpdatedRequest>;
|
|
486
406
|
|
|
487
407
|
export interface V1InformationRequestCommentUpdatedResponse {}
|
|
488
|
-
export const V1InformationRequestCommentUpdatedResponse =
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
408
|
+
export const V1InformationRequestCommentUpdatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
409
|
+
S.Struct({}),
|
|
410
|
+
).annotate({
|
|
411
|
+
identifier: "V1InformationRequestCommentUpdatedResponse",
|
|
412
|
+
}) as any as S.Schema<V1InformationRequestCommentUpdatedResponse>;
|
|
492
413
|
|
|
493
414
|
export type V1InformationRequestEvidenceCreatedRequestInformationRequest =
|
|
494
415
|
V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
@@ -499,41 +420,33 @@ export interface V1InformationRequestEvidenceCreatedRequestEvidence {
|
|
|
499
420
|
/** The unique identifier of the evidence. */
|
|
500
421
|
id: string;
|
|
501
422
|
}
|
|
502
|
-
export const V1InformationRequestEvidenceCreatedRequestEvidence =
|
|
503
|
-
|
|
504
|
-
S.
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}) as any as S.Schema<V1InformationRequestEvidenceCreatedRequestEvidence>;
|
|
423
|
+
export const V1InformationRequestEvidenceCreatedRequestEvidence = /*@__PURE__*/ S.suspend(() =>
|
|
424
|
+
S.Struct({
|
|
425
|
+
id: S.String,
|
|
426
|
+
}),
|
|
427
|
+
).annotate({
|
|
428
|
+
identifier: "V1InformationRequestEvidenceCreatedRequestEvidence",
|
|
429
|
+
}) as any as S.Schema<V1InformationRequestEvidenceCreatedRequestEvidence>;
|
|
510
430
|
|
|
511
431
|
export interface V1InformationRequestEvidenceCreatedRequest {
|
|
512
432
|
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
513
433
|
evidence: V1InformationRequestEvidenceCreatedRequestEvidence;
|
|
514
434
|
}
|
|
515
|
-
export const V1InformationRequestEvidenceCreatedRequest =
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
method: "POST",
|
|
524
|
-
uri: "/v1.information-request.evidence.created",
|
|
525
|
-
code: 200,
|
|
526
|
-
}),
|
|
527
|
-
),
|
|
528
|
-
).annotate({
|
|
529
|
-
identifier: "V1InformationRequestEvidenceCreatedRequest",
|
|
530
|
-
}) as any as S.Schema<V1InformationRequestEvidenceCreatedRequest>;
|
|
435
|
+
export const V1InformationRequestEvidenceCreatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
436
|
+
S.Struct({
|
|
437
|
+
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
|
|
438
|
+
evidence: V1InformationRequestEvidenceCreatedRequestEvidence,
|
|
439
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.information-request.evidence.created", code: 200 })),
|
|
440
|
+
).annotate({
|
|
441
|
+
identifier: "V1InformationRequestEvidenceCreatedRequest",
|
|
442
|
+
}) as any as S.Schema<V1InformationRequestEvidenceCreatedRequest>;
|
|
531
443
|
|
|
532
444
|
export interface V1InformationRequestEvidenceCreatedResponse {}
|
|
533
|
-
export const V1InformationRequestEvidenceCreatedResponse =
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
445
|
+
export const V1InformationRequestEvidenceCreatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
446
|
+
S.Struct({}),
|
|
447
|
+
).annotate({
|
|
448
|
+
identifier: "V1InformationRequestEvidenceCreatedResponse",
|
|
449
|
+
}) as any as S.Schema<V1InformationRequestEvidenceCreatedResponse>;
|
|
537
450
|
|
|
538
451
|
export type V1InformationRequestEvidenceDeletedRequestInformationRequest =
|
|
539
452
|
V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
@@ -549,28 +462,21 @@ export interface V1InformationRequestEvidenceDeletedRequest {
|
|
|
549
462
|
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
|
|
550
463
|
evidence: V1InformationRequestEvidenceCreatedRequestEvidence;
|
|
551
464
|
}
|
|
552
|
-
export const V1InformationRequestEvidenceDeletedRequest =
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
method: "POST",
|
|
561
|
-
uri: "/v1.information-request.evidence.deleted",
|
|
562
|
-
code: 200,
|
|
563
|
-
}),
|
|
564
|
-
),
|
|
565
|
-
).annotate({
|
|
566
|
-
identifier: "V1InformationRequestEvidenceDeletedRequest",
|
|
567
|
-
}) as any as S.Schema<V1InformationRequestEvidenceDeletedRequest>;
|
|
465
|
+
export const V1InformationRequestEvidenceDeletedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
466
|
+
S.Struct({
|
|
467
|
+
informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
|
|
468
|
+
evidence: V1InformationRequestEvidenceCreatedRequestEvidence,
|
|
469
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.information-request.evidence.deleted", code: 200 })),
|
|
470
|
+
).annotate({
|
|
471
|
+
identifier: "V1InformationRequestEvidenceDeletedRequest",
|
|
472
|
+
}) as any as S.Schema<V1InformationRequestEvidenceDeletedRequest>;
|
|
568
473
|
|
|
569
474
|
export interface V1InformationRequestEvidenceDeletedResponse {}
|
|
570
|
-
export const V1InformationRequestEvidenceDeletedResponse =
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
475
|
+
export const V1InformationRequestEvidenceDeletedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
476
|
+
S.Struct({}),
|
|
477
|
+
).annotate({
|
|
478
|
+
identifier: "V1InformationRequestEvidenceDeletedResponse",
|
|
479
|
+
}) as any as S.Schema<V1InformationRequestEvidenceDeletedResponse>;
|
|
574
480
|
|
|
575
481
|
/** The status the information request was in before the change. */
|
|
576
482
|
export type V1InformationRequestStatusChangedRequestInformationRequestOldStatus =
|
|
@@ -578,8 +484,7 @@ export type V1InformationRequestStatusChangedRequestInformationRequestOldStatus
|
|
|
578
484
|
| "READY_FOR_AUDIT"
|
|
579
485
|
| "AUDITOR_APPROVED"
|
|
580
486
|
| "AUDITOR_FLAGGED";
|
|
581
|
-
export const V1InformationRequestStatusChangedRequestInformationRequestOldStatus =
|
|
582
|
-
S.String;
|
|
487
|
+
export const V1InformationRequestStatusChangedRequestInformationRequestOldStatus = S.String;
|
|
583
488
|
|
|
584
489
|
/** The status the information request is in after the change. A value of `READY_FOR_AUDIT` means the customer has submitted the request and it is ready for the auditor to review. */
|
|
585
490
|
export type V1InformationRequestStatusChangedRequestInformationRequestNewStatus =
|
|
@@ -587,8 +492,7 @@ export type V1InformationRequestStatusChangedRequestInformationRequestNewStatus
|
|
|
587
492
|
| "READY_FOR_AUDIT"
|
|
588
493
|
| "AUDITOR_APPROVED"
|
|
589
494
|
| "AUDITOR_FLAGGED";
|
|
590
|
-
export const V1InformationRequestStatusChangedRequestInformationRequestNewStatus =
|
|
591
|
-
S.String;
|
|
495
|
+
export const V1InformationRequestStatusChangedRequestInformationRequestNewStatus = S.String;
|
|
592
496
|
|
|
593
497
|
export interface V1InformationRequestStatusChangedRequestInformationRequest {
|
|
594
498
|
/** The unique identifier of the information request. */
|
|
@@ -596,65 +500,51 @@ export interface V1InformationRequestStatusChangedRequestInformationRequest {
|
|
|
596
500
|
/** The unique identifier of the audit the information request belongs to. */
|
|
597
501
|
auditId: string;
|
|
598
502
|
/** The status the information request was in before the change. */
|
|
599
|
-
oldStatus:
|
|
600
|
-
| V1InformationRequestStatusChangedRequestInformationRequestOldStatus
|
|
601
|
-
| (string & {});
|
|
503
|
+
oldStatus: V1InformationRequestStatusChangedRequestInformationRequestOldStatus | (string & {});
|
|
602
504
|
/** The status the information request is in after the change. A value of `READY_FOR_AUDIT` means the customer has submitted the request and it is ready for the auditor to review. */
|
|
603
|
-
newStatus:
|
|
604
|
-
| V1InformationRequestStatusChangedRequestInformationRequestNewStatus
|
|
605
|
-
| (string & {});
|
|
505
|
+
newStatus: V1InformationRequestStatusChangedRequestInformationRequestNewStatus | (string & {});
|
|
606
506
|
}
|
|
607
|
-
export const V1InformationRequestStatusChangedRequestInformationRequest =
|
|
608
|
-
|
|
507
|
+
export const V1InformationRequestStatusChangedRequestInformationRequest = /*@__PURE__*/ S.suspend(
|
|
508
|
+
() =>
|
|
609
509
|
S.Struct({
|
|
610
510
|
id: S.String,
|
|
611
511
|
auditId: S.String,
|
|
612
|
-
oldStatus:
|
|
613
|
-
|
|
614
|
-
newStatus:
|
|
615
|
-
V1InformationRequestStatusChangedRequestInformationRequestNewStatus,
|
|
512
|
+
oldStatus: V1InformationRequestStatusChangedRequestInformationRequestOldStatus,
|
|
513
|
+
newStatus: V1InformationRequestStatusChangedRequestInformationRequestNewStatus,
|
|
616
514
|
}),
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
515
|
+
).annotate({
|
|
516
|
+
identifier: "V1InformationRequestStatusChangedRequestInformationRequest",
|
|
517
|
+
}) as any as S.Schema<V1InformationRequestStatusChangedRequestInformationRequest>;
|
|
620
518
|
|
|
621
519
|
export interface V1InformationRequestStatusChangedRequest {
|
|
622
520
|
informationRequest: V1InformationRequestStatusChangedRequestInformationRequest;
|
|
623
521
|
}
|
|
624
|
-
export const V1InformationRequestStatusChangedRequest = /*@__PURE__*/ S.suspend(
|
|
625
|
-
(
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
V1InformationRequestStatusChangedRequestInformationRequest,
|
|
629
|
-
}).pipe(
|
|
630
|
-
T.Http({
|
|
631
|
-
method: "POST",
|
|
632
|
-
uri: "/v1.information-request.status-changed",
|
|
633
|
-
code: 200,
|
|
634
|
-
}),
|
|
635
|
-
),
|
|
522
|
+
export const V1InformationRequestStatusChangedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
523
|
+
S.Struct({
|
|
524
|
+
informationRequest: V1InformationRequestStatusChangedRequestInformationRequest,
|
|
525
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.information-request.status-changed", code: 200 })),
|
|
636
526
|
).annotate({
|
|
637
527
|
identifier: "V1InformationRequestStatusChangedRequest",
|
|
638
528
|
}) as any as S.Schema<V1InformationRequestStatusChangedRequest>;
|
|
639
529
|
|
|
640
530
|
export interface V1InformationRequestStatusChangedResponse {}
|
|
641
|
-
export const V1InformationRequestStatusChangedResponse =
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
531
|
+
export const V1InformationRequestStatusChangedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
532
|
+
S.Struct({}),
|
|
533
|
+
).annotate({
|
|
534
|
+
identifier: "V1InformationRequestStatusChangedResponse",
|
|
535
|
+
}) as any as S.Schema<V1InformationRequestStatusChangedResponse>;
|
|
645
536
|
|
|
646
537
|
export interface V1QuestionnaireCreatedRequestQuestionnaire {
|
|
647
538
|
/** The questionnaire ID. */
|
|
648
539
|
id: string;
|
|
649
540
|
}
|
|
650
|
-
export const V1QuestionnaireCreatedRequestQuestionnaire =
|
|
651
|
-
|
|
652
|
-
S.
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}) as any as S.Schema<V1QuestionnaireCreatedRequestQuestionnaire>;
|
|
541
|
+
export const V1QuestionnaireCreatedRequestQuestionnaire = /*@__PURE__*/ S.suspend(() =>
|
|
542
|
+
S.Struct({
|
|
543
|
+
id: S.String,
|
|
544
|
+
}),
|
|
545
|
+
).annotate({
|
|
546
|
+
identifier: "V1QuestionnaireCreatedRequestQuestionnaire",
|
|
547
|
+
}) as any as S.Schema<V1QuestionnaireCreatedRequestQuestionnaire>;
|
|
658
548
|
|
|
659
549
|
export interface V1QuestionnaireCreatedRequest {
|
|
660
550
|
questionnaire: V1QuestionnaireCreatedRequestQuestionnaire;
|
|
@@ -662,22 +552,17 @@ export interface V1QuestionnaireCreatedRequest {
|
|
|
662
552
|
export const V1QuestionnaireCreatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
663
553
|
S.Struct({
|
|
664
554
|
questionnaire: V1QuestionnaireCreatedRequestQuestionnaire,
|
|
665
|
-
}).pipe(
|
|
666
|
-
T.Http({ method: "POST", uri: "/v1.questionnaire.created", code: 200 }),
|
|
667
|
-
),
|
|
555
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.created", code: 200 })),
|
|
668
556
|
).annotate({
|
|
669
557
|
identifier: "V1QuestionnaireCreatedRequest",
|
|
670
558
|
}) as any as S.Schema<V1QuestionnaireCreatedRequest>;
|
|
671
559
|
|
|
672
560
|
export interface V1QuestionnaireCreatedResponse {}
|
|
673
|
-
export const V1QuestionnaireCreatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
674
|
-
S.Struct({}),
|
|
675
|
-
).annotate({
|
|
561
|
+
export const V1QuestionnaireCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
676
562
|
identifier: "V1QuestionnaireCreatedResponse",
|
|
677
563
|
}) as any as S.Schema<V1QuestionnaireCreatedResponse>;
|
|
678
564
|
|
|
679
|
-
export type V1QuestionnaireDeletedRequestQuestionnaire =
|
|
680
|
-
V1QuestionnaireCreatedRequestQuestionnaire;
|
|
565
|
+
export type V1QuestionnaireDeletedRequestQuestionnaire = V1QuestionnaireCreatedRequestQuestionnaire;
|
|
681
566
|
export const V1QuestionnaireDeletedRequestQuestionnaire =
|
|
682
567
|
V1QuestionnaireCreatedRequestQuestionnaire;
|
|
683
568
|
|
|
@@ -687,17 +572,13 @@ export interface V1QuestionnaireDeletedRequest {
|
|
|
687
572
|
export const V1QuestionnaireDeletedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
688
573
|
S.Struct({
|
|
689
574
|
questionnaire: V1QuestionnaireCreatedRequestQuestionnaire,
|
|
690
|
-
}).pipe(
|
|
691
|
-
T.Http({ method: "POST", uri: "/v1.questionnaire.deleted", code: 200 }),
|
|
692
|
-
),
|
|
575
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.deleted", code: 200 })),
|
|
693
576
|
).annotate({
|
|
694
577
|
identifier: "V1QuestionnaireDeletedRequest",
|
|
695
578
|
}) as any as S.Schema<V1QuestionnaireDeletedRequest>;
|
|
696
579
|
|
|
697
580
|
export interface V1QuestionnaireDeletedResponse {}
|
|
698
|
-
export const V1QuestionnaireDeletedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
699
|
-
S.Struct({}),
|
|
700
|
-
).annotate({
|
|
581
|
+
export const V1QuestionnaireDeletedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
701
582
|
identifier: "V1QuestionnaireDeletedResponse",
|
|
702
583
|
}) as any as S.Schema<V1QuestionnaireDeletedResponse>;
|
|
703
584
|
|
|
@@ -705,19 +586,16 @@ export interface V1QuestionnaireExportCompletedRequestQuestionnaire {
|
|
|
705
586
|
/** The unique identifier of the questionnaire. */
|
|
706
587
|
id: string;
|
|
707
588
|
}
|
|
708
|
-
export const V1QuestionnaireExportCompletedRequestQuestionnaire =
|
|
709
|
-
|
|
710
|
-
S.
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}) as any as S.Schema<V1QuestionnaireExportCompletedRequestQuestionnaire>;
|
|
589
|
+
export const V1QuestionnaireExportCompletedRequestQuestionnaire = /*@__PURE__*/ S.suspend(() =>
|
|
590
|
+
S.Struct({
|
|
591
|
+
id: S.String,
|
|
592
|
+
}),
|
|
593
|
+
).annotate({
|
|
594
|
+
identifier: "V1QuestionnaireExportCompletedRequestQuestionnaire",
|
|
595
|
+
}) as any as S.Schema<V1QuestionnaireExportCompletedRequestQuestionnaire>;
|
|
716
596
|
|
|
717
597
|
/** The export format. */
|
|
718
|
-
export type V1QuestionnaireExportCompletedRequestExportFormat =
|
|
719
|
-
| "original"
|
|
720
|
-
| "csv";
|
|
598
|
+
export type V1QuestionnaireExportCompletedRequestExportFormat = "original" | "csv";
|
|
721
599
|
export const V1QuestionnaireExportCompletedRequestExportFormat = S.String;
|
|
722
600
|
|
|
723
601
|
export interface V1QuestionnaireExportCompletedRequestExport {
|
|
@@ -730,41 +608,33 @@ export interface V1QuestionnaireExportCompletedRequestExport {
|
|
|
730
608
|
/** When the export finished (ISO 8601). */
|
|
731
609
|
completedAt: string;
|
|
732
610
|
}
|
|
733
|
-
export const V1QuestionnaireExportCompletedRequestExport =
|
|
734
|
-
|
|
735
|
-
S.
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}) as any as S.Schema<V1QuestionnaireExportCompletedRequestExport>;
|
|
611
|
+
export const V1QuestionnaireExportCompletedRequestExport = /*@__PURE__*/ S.suspend(() =>
|
|
612
|
+
S.Struct({
|
|
613
|
+
id: S.String,
|
|
614
|
+
format: V1QuestionnaireExportCompletedRequestExportFormat,
|
|
615
|
+
requestedAt: S.String,
|
|
616
|
+
completedAt: S.String,
|
|
617
|
+
}),
|
|
618
|
+
).annotate({
|
|
619
|
+
identifier: "V1QuestionnaireExportCompletedRequestExport",
|
|
620
|
+
}) as any as S.Schema<V1QuestionnaireExportCompletedRequestExport>;
|
|
744
621
|
|
|
745
622
|
export interface V1QuestionnaireExportCompletedRequest {
|
|
746
623
|
questionnaire: V1QuestionnaireExportCompletedRequestQuestionnaire;
|
|
747
624
|
export: V1QuestionnaireExportCompletedRequestExport;
|
|
748
625
|
}
|
|
749
|
-
export const V1QuestionnaireExportCompletedRequest = /*@__PURE__*/ S.suspend(
|
|
750
|
-
(
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}).pipe(
|
|
755
|
-
T.Http({
|
|
756
|
-
method: "POST",
|
|
757
|
-
uri: "/v1.questionnaire.export-completed",
|
|
758
|
-
code: 200,
|
|
759
|
-
}),
|
|
760
|
-
),
|
|
626
|
+
export const V1QuestionnaireExportCompletedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
627
|
+
S.Struct({
|
|
628
|
+
questionnaire: V1QuestionnaireExportCompletedRequestQuestionnaire,
|
|
629
|
+
export: V1QuestionnaireExportCompletedRequestExport,
|
|
630
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-completed", code: 200 })),
|
|
761
631
|
).annotate({
|
|
762
632
|
identifier: "V1QuestionnaireExportCompletedRequest",
|
|
763
633
|
}) as any as S.Schema<V1QuestionnaireExportCompletedRequest>;
|
|
764
634
|
|
|
765
635
|
export interface V1QuestionnaireExportCompletedResponse {}
|
|
766
|
-
export const V1QuestionnaireExportCompletedResponse = /*@__PURE__*/ S.suspend(
|
|
767
|
-
|
|
636
|
+
export const V1QuestionnaireExportCompletedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
637
|
+
S.Struct({}),
|
|
768
638
|
).annotate({
|
|
769
639
|
identifier: "V1QuestionnaireExportCompletedResponse",
|
|
770
640
|
}) as any as S.Schema<V1QuestionnaireExportCompletedResponse>;
|
|
@@ -790,15 +660,14 @@ export interface V1QuestionnaireExportFailedRequestExport {
|
|
|
790
660
|
/** The reason for the export failure. */
|
|
791
661
|
reason: string;
|
|
792
662
|
}
|
|
793
|
-
export const V1QuestionnaireExportFailedRequestExport = /*@__PURE__*/ S.suspend(
|
|
794
|
-
(
|
|
795
|
-
S.
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
}),
|
|
663
|
+
export const V1QuestionnaireExportFailedRequestExport = /*@__PURE__*/ S.suspend(() =>
|
|
664
|
+
S.Struct({
|
|
665
|
+
id: S.String,
|
|
666
|
+
format: V1QuestionnaireExportFailedRequestExportFormat,
|
|
667
|
+
requestedAt: S.String,
|
|
668
|
+
failedAt: S.String,
|
|
669
|
+
reason: S.String,
|
|
670
|
+
}),
|
|
802
671
|
).annotate({
|
|
803
672
|
identifier: "V1QuestionnaireExportFailedRequestExport",
|
|
804
673
|
}) as any as S.Schema<V1QuestionnaireExportFailedRequestExport>;
|
|
@@ -811,13 +680,7 @@ export const V1QuestionnaireExportFailedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
811
680
|
S.Struct({
|
|
812
681
|
questionnaire: V1QuestionnaireExportCompletedRequestQuestionnaire,
|
|
813
682
|
export: V1QuestionnaireExportFailedRequestExport,
|
|
814
|
-
}).pipe(
|
|
815
|
-
T.Http({
|
|
816
|
-
method: "POST",
|
|
817
|
-
uri: "/v1.questionnaire.export-failed",
|
|
818
|
-
code: 200,
|
|
819
|
-
}),
|
|
820
|
-
),
|
|
683
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-failed", code: 200 })),
|
|
821
684
|
).annotate({
|
|
822
685
|
identifier: "V1QuestionnaireExportFailedRequest",
|
|
823
686
|
}) as any as S.Schema<V1QuestionnaireExportFailedRequest>;
|
|
@@ -854,19 +717,16 @@ export interface V1QuestionnaireStatusChangedRequestQuestionnaire {
|
|
|
854
717
|
/** The questionnaire ID. */
|
|
855
718
|
id: string;
|
|
856
719
|
/** The new questionnaire status. */
|
|
857
|
-
status:
|
|
858
|
-
| V1QuestionnaireStatusChangedRequestQuestionnaireStatus
|
|
859
|
-
| (string & {});
|
|
720
|
+
status: V1QuestionnaireStatusChangedRequestQuestionnaireStatus | (string & {});
|
|
860
721
|
}
|
|
861
|
-
export const V1QuestionnaireStatusChangedRequestQuestionnaire =
|
|
862
|
-
|
|
863
|
-
S.
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
}) as any as S.Schema<V1QuestionnaireStatusChangedRequestQuestionnaire>;
|
|
722
|
+
export const V1QuestionnaireStatusChangedRequestQuestionnaire = /*@__PURE__*/ S.suspend(() =>
|
|
723
|
+
S.Struct({
|
|
724
|
+
id: S.String,
|
|
725
|
+
status: V1QuestionnaireStatusChangedRequestQuestionnaireStatus,
|
|
726
|
+
}),
|
|
727
|
+
).annotate({
|
|
728
|
+
identifier: "V1QuestionnaireStatusChangedRequestQuestionnaire",
|
|
729
|
+
}) as any as S.Schema<V1QuestionnaireStatusChangedRequestQuestionnaire>;
|
|
870
730
|
|
|
871
731
|
export interface V1QuestionnaireStatusChangedRequest {
|
|
872
732
|
questionnaire: V1QuestionnaireStatusChangedRequestQuestionnaire;
|
|
@@ -874,20 +734,14 @@ export interface V1QuestionnaireStatusChangedRequest {
|
|
|
874
734
|
export const V1QuestionnaireStatusChangedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
875
735
|
S.Struct({
|
|
876
736
|
questionnaire: V1QuestionnaireStatusChangedRequestQuestionnaire,
|
|
877
|
-
}).pipe(
|
|
878
|
-
T.Http({
|
|
879
|
-
method: "POST",
|
|
880
|
-
uri: "/v1.questionnaire.status-changed",
|
|
881
|
-
code: 200,
|
|
882
|
-
}),
|
|
883
|
-
),
|
|
737
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.status-changed", code: 200 })),
|
|
884
738
|
).annotate({
|
|
885
739
|
identifier: "V1QuestionnaireStatusChangedRequest",
|
|
886
740
|
}) as any as S.Schema<V1QuestionnaireStatusChangedRequest>;
|
|
887
741
|
|
|
888
742
|
export interface V1QuestionnaireStatusChangedResponse {}
|
|
889
|
-
export const V1QuestionnaireStatusChangedResponse = /*@__PURE__*/ S.suspend(
|
|
890
|
-
|
|
743
|
+
export const V1QuestionnaireStatusChangedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
744
|
+
S.Struct({}),
|
|
891
745
|
).annotate({
|
|
892
746
|
identifier: "V1QuestionnaireStatusChangedResponse",
|
|
893
747
|
}) as any as S.Schema<V1QuestionnaireStatusChangedResponse>;
|
|
@@ -896,68 +750,59 @@ export interface V1TrustCenterAccessRequestApprovedRequestTrustCenter {
|
|
|
896
750
|
/** The Trust Center slug ID. */
|
|
897
751
|
slugId: string;
|
|
898
752
|
}
|
|
899
|
-
export const V1TrustCenterAccessRequestApprovedRequestTrustCenter =
|
|
900
|
-
|
|
901
|
-
S.
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestTrustCenter>;
|
|
753
|
+
export const V1TrustCenterAccessRequestApprovedRequestTrustCenter = /*@__PURE__*/ S.suspend(() =>
|
|
754
|
+
S.Struct({
|
|
755
|
+
slugId: S.String,
|
|
756
|
+
}),
|
|
757
|
+
).annotate({
|
|
758
|
+
identifier: "V1TrustCenterAccessRequestApprovedRequestTrustCenter",
|
|
759
|
+
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestTrustCenter>;
|
|
907
760
|
|
|
908
761
|
export interface V1TrustCenterAccessRequestApprovedRequestAccessRequest {
|
|
909
762
|
/** The access request ID. */
|
|
910
763
|
id: string;
|
|
911
764
|
}
|
|
912
|
-
export const V1TrustCenterAccessRequestApprovedRequestAccessRequest =
|
|
913
|
-
|
|
914
|
-
S.
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestAccessRequest>;
|
|
765
|
+
export const V1TrustCenterAccessRequestApprovedRequestAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
766
|
+
S.Struct({
|
|
767
|
+
id: S.String,
|
|
768
|
+
}),
|
|
769
|
+
).annotate({
|
|
770
|
+
identifier: "V1TrustCenterAccessRequestApprovedRequestAccessRequest",
|
|
771
|
+
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestAccessRequest>;
|
|
920
772
|
|
|
921
773
|
export interface V1TrustCenterAccessRequestApprovedRequestViewer {
|
|
922
774
|
/** The viewer ID granted access. */
|
|
923
775
|
id: string;
|
|
924
776
|
}
|
|
925
|
-
export const V1TrustCenterAccessRequestApprovedRequestViewer =
|
|
926
|
-
|
|
927
|
-
S.
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestViewer>;
|
|
777
|
+
export const V1TrustCenterAccessRequestApprovedRequestViewer = /*@__PURE__*/ S.suspend(() =>
|
|
778
|
+
S.Struct({
|
|
779
|
+
id: S.String,
|
|
780
|
+
}),
|
|
781
|
+
).annotate({
|
|
782
|
+
identifier: "V1TrustCenterAccessRequestApprovedRequestViewer",
|
|
783
|
+
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestViewer>;
|
|
933
784
|
|
|
934
785
|
export interface V1TrustCenterAccessRequestApprovedRequest {
|
|
935
786
|
trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter;
|
|
936
787
|
accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest;
|
|
937
788
|
viewer: V1TrustCenterAccessRequestApprovedRequestViewer;
|
|
938
789
|
}
|
|
939
|
-
export const V1TrustCenterAccessRequestApprovedRequest =
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
uri: "/v1.trust-center.access-request.approved",
|
|
949
|
-
code: 200,
|
|
950
|
-
}),
|
|
951
|
-
),
|
|
952
|
-
).annotate({
|
|
953
|
-
identifier: "V1TrustCenterAccessRequestApprovedRequest",
|
|
954
|
-
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequest>;
|
|
790
|
+
export const V1TrustCenterAccessRequestApprovedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
791
|
+
S.Struct({
|
|
792
|
+
trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter,
|
|
793
|
+
accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest,
|
|
794
|
+
viewer: V1TrustCenterAccessRequestApprovedRequestViewer,
|
|
795
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.trust-center.access-request.approved", code: 200 })),
|
|
796
|
+
).annotate({
|
|
797
|
+
identifier: "V1TrustCenterAccessRequestApprovedRequest",
|
|
798
|
+
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequest>;
|
|
955
799
|
|
|
956
800
|
export interface V1TrustCenterAccessRequestApprovedResponse {}
|
|
957
|
-
export const V1TrustCenterAccessRequestApprovedResponse =
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
801
|
+
export const V1TrustCenterAccessRequestApprovedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
802
|
+
S.Struct({}),
|
|
803
|
+
).annotate({
|
|
804
|
+
identifier: "V1TrustCenterAccessRequestApprovedResponse",
|
|
805
|
+
}) as any as S.Schema<V1TrustCenterAccessRequestApprovedResponse>;
|
|
961
806
|
|
|
962
807
|
export type V1TrustCenterAccessRequestDeniedRequestTrustCenter =
|
|
963
808
|
V1TrustCenterAccessRequestApprovedRequestTrustCenter;
|
|
@@ -973,25 +818,18 @@ export interface V1TrustCenterAccessRequestDeniedRequest {
|
|
|
973
818
|
trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter;
|
|
974
819
|
accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest;
|
|
975
820
|
}
|
|
976
|
-
export const V1TrustCenterAccessRequestDeniedRequest = /*@__PURE__*/ S.suspend(
|
|
977
|
-
(
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
}).pipe(
|
|
982
|
-
T.Http({
|
|
983
|
-
method: "POST",
|
|
984
|
-
uri: "/v1.trust-center.access-request.denied",
|
|
985
|
-
code: 200,
|
|
986
|
-
}),
|
|
987
|
-
),
|
|
821
|
+
export const V1TrustCenterAccessRequestDeniedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
822
|
+
S.Struct({
|
|
823
|
+
trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter,
|
|
824
|
+
accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest,
|
|
825
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.trust-center.access-request.denied", code: 200 })),
|
|
988
826
|
).annotate({
|
|
989
827
|
identifier: "V1TrustCenterAccessRequestDeniedRequest",
|
|
990
828
|
}) as any as S.Schema<V1TrustCenterAccessRequestDeniedRequest>;
|
|
991
829
|
|
|
992
830
|
export interface V1TrustCenterAccessRequestDeniedResponse {}
|
|
993
|
-
export const V1TrustCenterAccessRequestDeniedResponse = /*@__PURE__*/ S.suspend(
|
|
994
|
-
|
|
831
|
+
export const V1TrustCenterAccessRequestDeniedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
832
|
+
S.Struct({}),
|
|
995
833
|
).annotate({
|
|
996
834
|
identifier: "V1TrustCenterAccessRequestDeniedResponse",
|
|
997
835
|
}) as any as S.Schema<V1TrustCenterAccessRequestDeniedResponse>;
|
|
@@ -1010,27 +848,21 @@ export interface V1TrustCenterAccessRequestReceivedRequest {
|
|
|
1010
848
|
trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter;
|
|
1011
849
|
accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest;
|
|
1012
850
|
}
|
|
1013
|
-
export const V1TrustCenterAccessRequestReceivedRequest =
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
uri: "/v1.trust-center.access-request.received",
|
|
1022
|
-
code: 200,
|
|
1023
|
-
}),
|
|
1024
|
-
),
|
|
1025
|
-
).annotate({
|
|
1026
|
-
identifier: "V1TrustCenterAccessRequestReceivedRequest",
|
|
1027
|
-
}) as any as S.Schema<V1TrustCenterAccessRequestReceivedRequest>;
|
|
851
|
+
export const V1TrustCenterAccessRequestReceivedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
852
|
+
S.Struct({
|
|
853
|
+
trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter,
|
|
854
|
+
accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest,
|
|
855
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.trust-center.access-request.received", code: 200 })),
|
|
856
|
+
).annotate({
|
|
857
|
+
identifier: "V1TrustCenterAccessRequestReceivedRequest",
|
|
858
|
+
}) as any as S.Schema<V1TrustCenterAccessRequestReceivedRequest>;
|
|
1028
859
|
|
|
1029
860
|
export interface V1TrustCenterAccessRequestReceivedResponse {}
|
|
1030
|
-
export const V1TrustCenterAccessRequestReceivedResponse =
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
861
|
+
export const V1TrustCenterAccessRequestReceivedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
862
|
+
S.Struct({}),
|
|
863
|
+
).annotate({
|
|
864
|
+
identifier: "V1TrustCenterAccessRequestReceivedResponse",
|
|
865
|
+
}) as any as S.Schema<V1TrustCenterAccessRequestReceivedResponse>;
|
|
1034
866
|
|
|
1035
867
|
/** The vendor decision status. */
|
|
1036
868
|
export type V1VendorDecisionCreatedRequestVendorDecisionStatus =
|
|
@@ -1047,28 +879,26 @@ export interface V1VendorDecisionCreatedRequestVendorDecision {
|
|
|
1047
879
|
/** Optional comments on the decision. */
|
|
1048
880
|
comments?: string;
|
|
1049
881
|
}
|
|
1050
|
-
export const V1VendorDecisionCreatedRequestVendorDecision =
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}) as any as S.Schema<V1VendorDecisionCreatedRequestVendorDecision>;
|
|
882
|
+
export const V1VendorDecisionCreatedRequestVendorDecision = /*@__PURE__*/ S.suspend(() =>
|
|
883
|
+
S.Struct({
|
|
884
|
+
status: V1VendorDecisionCreatedRequestVendorDecisionStatus,
|
|
885
|
+
lastUpdatedAt: S.String,
|
|
886
|
+
comments: S.optional(S.String),
|
|
887
|
+
}),
|
|
888
|
+
).annotate({
|
|
889
|
+
identifier: "V1VendorDecisionCreatedRequestVendorDecision",
|
|
890
|
+
}) as any as S.Schema<V1VendorDecisionCreatedRequestVendorDecision>;
|
|
1060
891
|
|
|
1061
892
|
export interface V1VendorDecisionCreatedRequestVendor {
|
|
1062
893
|
/** The vendor ID. */
|
|
1063
894
|
id: string;
|
|
1064
895
|
decision: V1VendorDecisionCreatedRequestVendorDecision;
|
|
1065
896
|
}
|
|
1066
|
-
export const V1VendorDecisionCreatedRequestVendor = /*@__PURE__*/ S.suspend(
|
|
1067
|
-
(
|
|
1068
|
-
S.
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
}),
|
|
897
|
+
export const V1VendorDecisionCreatedRequestVendor = /*@__PURE__*/ S.suspend(() =>
|
|
898
|
+
S.Struct({
|
|
899
|
+
id: S.String,
|
|
900
|
+
decision: V1VendorDecisionCreatedRequestVendorDecision,
|
|
901
|
+
}),
|
|
1072
902
|
).annotate({
|
|
1073
903
|
identifier: "V1VendorDecisionCreatedRequestVendor",
|
|
1074
904
|
}) as any as S.Schema<V1VendorDecisionCreatedRequestVendor>;
|
|
@@ -1079,19 +909,15 @@ export interface V1VendorDecisionCreatedRequest {
|
|
|
1079
909
|
export const V1VendorDecisionCreatedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1080
910
|
S.Struct({
|
|
1081
911
|
vendor: V1VendorDecisionCreatedRequestVendor,
|
|
1082
|
-
}).pipe(
|
|
1083
|
-
T.Http({ method: "POST", uri: "/v1.vendor.decision.created", code: 200 }),
|
|
1084
|
-
),
|
|
912
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1.vendor.decision.created", code: 200 })),
|
|
1085
913
|
).annotate({
|
|
1086
914
|
identifier: "V1VendorDecisionCreatedRequest",
|
|
1087
915
|
}) as any as S.Schema<V1VendorDecisionCreatedRequest>;
|
|
1088
916
|
|
|
1089
917
|
export interface V1VendorDecisionCreatedResponse {}
|
|
1090
|
-
export const V1VendorDecisionCreatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1091
|
-
|
|
1092
|
-
).
|
|
1093
|
-
identifier: "V1VendorDecisionCreatedResponse",
|
|
1094
|
-
}) as any as S.Schema<V1VendorDecisionCreatedResponse>;
|
|
918
|
+
export const V1VendorDecisionCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
|
|
919
|
+
{ identifier: "V1VendorDecisionCreatedResponse" },
|
|
920
|
+
) as any as S.Schema<V1VendorDecisionCreatedResponse>;
|
|
1095
921
|
|
|
1096
922
|
export type V1ControlCommentCreatedError = VantaOpError;
|
|
1097
923
|
/** Control comment created An external comment was created on an audit control. Fires once per comment. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature — reach out to your Vanta contact to enable it. The payload contains only identifiers. Fetch the comment body from `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
|
|
@@ -1184,7 +1010,7 @@ export const v1EvidenceCommentUpdated: API.OperationMethod<
|
|
|
1184
1010
|
}));
|
|
1185
1011
|
|
|
1186
1012
|
export type V1EvidenceCreatedError = VantaOpError;
|
|
1187
|
-
/** Evidence created Fires when an audit evidence item comes into scope for an audit, including when a previously removed item re-enters scope after soft-delete. Evidence items are derived from the customer's compliance program, so this event means "a new item is now in scope for this audit", not "a customer uploaded a file". A brand-new item starts in `NOT_READY_FOR_AUDIT` with no files; wait for [`v1.evidence.status-changed`](/reference/
|
|
1013
|
+
/** Evidence created Fires when an audit evidence item comes into scope for an audit, including when a previously removed item re-enters scope after soft-delete. Evidence items are derived from the customer's compliance program, so this event means "a new item is now in scope for this audit", not "a customer uploaded a file". A brand-new item starts in `NOT_READY_FOR_AUDIT` with no files; wait for [`v1.evidence.status-changed`](/api-reference/evidence/evidence-status-changed) before requesting URLs. A re-scoped item retains its previous status and files. It may already be in `READY_FOR_AUDIT` or another state, and no follow-up status-change event is guaranteed. **This event does not replace the initial sync.** Items can come into scope from the moment the audit exists, which is normally before your access to the audit begins, and events from before that point are not delivered or replayed. Always perform a full traversal of `GET /audits/{auditId}/evidence` when you first pick up an audit, then rely on this event for items that come into scope afterwards. */
|
|
1188
1014
|
export const v1EvidenceCreated: API.OperationMethod<
|
|
1189
1015
|
V1EvidenceCreatedRequest,
|
|
1190
1016
|
V1EvidenceCreatedResponse,
|
|
@@ -1199,7 +1025,7 @@ export const v1EvidenceCreated: API.OperationMethod<
|
|
|
1199
1025
|
}));
|
|
1200
1026
|
|
|
1201
1027
|
export type V1EvidenceDeletedError = VantaOpError;
|
|
1202
|
-
/** Evidence deleted Fires when an audit evidence item leaves scope for an audit. Fires once per item. The item is soft-deleted rather than removed: `GET /audits/{auditId}/evidence` still returns it, with a non-null `deletionDate`. Stop requesting URLs for the item. If the item later returns to scope, Vanta emits a fresh [`v1.evidence.created`](/reference/
|
|
1028
|
+
/** Evidence deleted Fires when an audit evidence item leaves scope for an audit. Fires once per item. The item is soft-deleted rather than removed: `GET /audits/{auditId}/evidence` still returns it, with a non-null `deletionDate`. Stop requesting URLs for the item. If the item later returns to scope, Vanta emits a fresh [`v1.evidence.created`](/api-reference/evidence/evidence-created) event and clears `deletionDate`. */
|
|
1203
1029
|
export const v1EvidenceDeleted: API.OperationMethod<
|
|
1204
1030
|
V1EvidenceDeletedRequest,
|
|
1205
1031
|
V1EvidenceDeletedResponse,
|
|
@@ -1214,7 +1040,7 @@ export const v1EvidenceDeleted: API.OperationMethod<
|
|
|
1214
1040
|
}));
|
|
1215
1041
|
|
|
1216
1042
|
export type V1EvidenceStatusChangedError = VantaOpError;
|
|
1217
|
-
/** Evidence status changed Fires when an existing audit evidence item changes status. `oldStatus` and `newStatus` always describe a transition of an item that already exists. See [`v1.evidence.created`](/reference/
|
|
1043
|
+
/** Evidence status changed Fires when an existing audit evidence item changes status. `oldStatus` and `newStatus` always describe a transition of an item that already exists. See [`v1.evidence.created`](/api-reference/evidence/evidence-created) for the event that fires when an item first comes into scope for an audit. **Ready-to-review signal:** a `newStatus` of `READY_FOR_AUDIT` means the customer has provided evidence for the item and it is ready for the auditor to review. **When it fires:** once per evidence item, each time its status changes. Status can also change on its own as the customer's compliance posture changes, so an item may move from `READY_FOR_AUDIT` back to `NOT_READY_FOR_AUDIT` without an explicit auditor action. `oldStatus` and `newStatus` can be equal. A newly detected document re-fires this event with both fields set to the item's current status (for example, `READY_FOR_AUDIT`, `ACCEPTED`, or `FLAGGED`). Treat that as a signal that the item's files may have changed and re-fetch its URLs. Do not discard events where the status is unchanged. **Status values:** - `NOT_READY_FOR_AUDIT` — the item is not yet ready for the auditor; required evidence is missing or does not meet the requirement. - `READY_FOR_AUDIT` — the customer has provided the evidence and it is ready for the auditor to review. - `ACCEPTED` — the auditor reviewed the item and accepted it. - `FLAGGED` — the auditor reviewed the item and flagged an issue for the customer to address; once the customer addresses it the item returns to `READY_FOR_AUDIT`. - `NA` — the item is not applicable to this audit. A typical lifecycle is `NOT_READY_FOR_AUDIT → READY_FOR_AUDIT → ACCEPTED` (or `→ FLAGGED`, which returns to `READY_FOR_AUDIT` once the customer addresses the issue). `INITIALIZED` is an internal status and is never delivered — `oldStatus` and `newStatus` are always one of the values above. */
|
|
1218
1044
|
export const v1EvidenceStatusChanged: API.OperationMethod<
|
|
1219
1045
|
V1EvidenceStatusChangedRequest,
|
|
1220
1046
|
V1EvidenceStatusChangedResponse,
|
|
@@ -1229,7 +1055,7 @@ export const v1EvidenceStatusChanged: API.OperationMethod<
|
|
|
1229
1055
|
}));
|
|
1230
1056
|
|
|
1231
1057
|
export type V1InformationRequestCommentCreatedError = VantaOpError;
|
|
1232
|
-
/** Information request comment created Fires when a comment is created on an information request. Fires once per comment.
|
|
1058
|
+
/** Information request comment created Fires when a comment is created on an information request. Fires once per comment. Fetch the comment body with `GET /v1/audits/{auditId}/information-requests/{requestId}/comments/{commentId}`. The information request may be deleted between this event and your fetch. If the fetch returns a 4xx HTTP error, check the request's `deletionDate` in the information-request list. If set, treat the request and all its comments and evidence as deleted in your system. */
|
|
1233
1059
|
export const v1InformationRequestCommentCreated: API.OperationMethod<
|
|
1234
1060
|
V1InformationRequestCommentCreatedRequest,
|
|
1235
1061
|
V1InformationRequestCommentCreatedResponse,
|
|
@@ -1244,7 +1070,7 @@ export const v1InformationRequestCommentCreated: API.OperationMethod<
|
|
|
1244
1070
|
}));
|
|
1245
1071
|
|
|
1246
1072
|
export type V1InformationRequestCommentDeletedError = VantaOpError;
|
|
1247
|
-
/** Information request comment deleted Fires when a comment is deleted from an information request.
|
|
1073
|
+
/** Information request comment deleted Fires once when a comment is deleted from an information request. Remove the comment from your system using the IDs in this event. */
|
|
1248
1074
|
export const v1InformationRequestCommentDeleted: API.OperationMethod<
|
|
1249
1075
|
V1InformationRequestCommentDeletedRequest,
|
|
1250
1076
|
V1InformationRequestCommentDeletedResponse,
|
|
@@ -1259,7 +1085,7 @@ export const v1InformationRequestCommentDeleted: API.OperationMethod<
|
|
|
1259
1085
|
}));
|
|
1260
1086
|
|
|
1261
1087
|
export type V1InformationRequestCommentUpdatedError = VantaOpError;
|
|
1262
|
-
/** Information request comment updated Fires when a comment on an information request is updated. Fires once per comment update.
|
|
1088
|
+
/** Information request comment updated Fires when a comment on an information request is updated. Fires once per comment update. Fetch the comment body with `GET /v1/audits/{auditId}/information-requests/{requestId}/comments/{commentId}`. The information request may be deleted between this event and your fetch. If the fetch returns a 4xx HTTP error, check the request's `deletionDate` in the information-request list. If set, treat the request and all its comments and evidence as deleted in your system. */
|
|
1263
1089
|
export const v1InformationRequestCommentUpdated: API.OperationMethod<
|
|
1264
1090
|
V1InformationRequestCommentUpdatedRequest,
|
|
1265
1091
|
V1InformationRequestCommentUpdatedResponse,
|