@tearleads/client-sdk 0.1.94 → 0.1.95
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/client/root/index.d.ts +10 -2
- package/client/root/index.js +9 -1
- package/client/root/index.js.map +1 -1
- package/client/session/index.js +7 -4
- package/client/session/index.js.map +1 -1
- package/client/session/sessionLoginRefusal.js +17 -0
- package/client/session/sessionLoginRefusal.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +5 -1
- package/internal/api-client/ApiClient.js +14 -3
- package/internal/api-client/ApiClient.js.map +1 -1
- package/internal/api-client/accountSuspension.d.ts +12 -0
- package/internal/api-client/accountSuspension.js +23 -0
- package/internal/api-client/accountSuspension.js.map +1 -0
- package/internal/api-client/index.d.ts +1 -0
- package/internal/api-client/index.js +1 -0
- package/internal/api-client/index.js.map +1 -1
- package/internal/validators/operation/auth.d.ts +104 -2
- package/internal/validators/operation/auth.js +2 -1
- package/internal/validators/operation/auth.js.map +1 -1
- package/internal/validators/operation/index.d.ts +1 -0
- package/internal/validators/operation/index.js +1 -0
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/registry.d.ts +3 -0
- package/internal/validators/operation/registry.js +3 -0
- package/internal/validators/operation/registry.js.map +1 -1
- package/internal/validators/operation/root.d.ts +8 -0
- package/internal/validators/operation/rootOrganizations.d.ts +4 -0
- package/internal/validators/operation/rootSuspension.d.ts +352 -0
- package/internal/validators/operation/rootSuspension.js +45 -0
- package/internal/validators/operation/rootSuspension.js.map +1 -0
- package/internal/validators/response/auth/index.d.ts +1 -1
- package/internal/validators/response/auth/index.js +1 -1
- package/internal/validators/response/auth/index.js.map +1 -1
- package/internal/validators/response/auth/verify.d.ts +15 -0
- package/internal/validators/response/auth/verify.js +9 -0
- package/internal/validators/response/auth/verify.js.map +1 -1
- package/internal/validators/response/index.d.ts +2 -2
- package/internal/validators/response/index.js +2 -2
- package/internal/validators/response/index.js.map +1 -1
- package/internal/validators/response/root.d.ts +60 -0
- package/internal/validators/response/root.js +9 -0
- package/internal/validators/response/root.js.map +1 -1
- package/internal/validators/response/rootAudit.d.ts +2 -2
- package/internal/validators/response/rootAudit.js +2 -0
- package/internal/validators/response/rootAudit.js.map +1 -1
- package/internal/validators/response/rootOrganizations.d.ts +8 -0
- package/package.json +1 -1
- package/workflows/root/index.d.ts +1 -0
- package/workflows/root/index.js +1 -0
- package/workflows/root/index.js.map +1 -1
- package/workflows/root/suspension.d.ts +13 -0
- package/workflows/root/suspension.js +17 -0
- package/workflows/root/suspension.js.map +1 -0
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { ErrorResponseSchema } from "../response/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Suspends an identity: its devices can no longer sign in, and every live
|
|
4
|
+
* session is revoked. Repeating it is harmless and sweeps sessions again.
|
|
5
|
+
* Refused with 409 for a root identity or the operator's own, since root
|
|
6
|
+
* standing is managed only through the API CLI.
|
|
7
|
+
*/
|
|
8
|
+
export declare const suspendRootIdentityOperation: Omit<{
|
|
9
|
+
readonly auth: "session";
|
|
10
|
+
readonly failureResponses: {
|
|
11
|
+
readonly 409: import("zod").ZodType<{
|
|
12
|
+
error: string;
|
|
13
|
+
}, {
|
|
14
|
+
error: string;
|
|
15
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
16
|
+
error: string;
|
|
17
|
+
}, {
|
|
18
|
+
error: string;
|
|
19
|
+
}>>;
|
|
20
|
+
readonly 400: import("zod").ZodType<{
|
|
21
|
+
error: string;
|
|
22
|
+
}, {
|
|
23
|
+
error: string;
|
|
24
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
25
|
+
error: string;
|
|
26
|
+
}, {
|
|
27
|
+
error: string;
|
|
28
|
+
}>>;
|
|
29
|
+
readonly 401: import("zod").ZodType<{
|
|
30
|
+
error: string;
|
|
31
|
+
code?: "session_refresh_required" | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
error: string;
|
|
34
|
+
code?: "session_refresh_required" | undefined;
|
|
35
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
36
|
+
error: string;
|
|
37
|
+
code?: "session_refresh_required" | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
error: string;
|
|
40
|
+
code?: "session_refresh_required" | undefined;
|
|
41
|
+
}>>;
|
|
42
|
+
readonly 403: import("zod").ZodType<{
|
|
43
|
+
error: string;
|
|
44
|
+
}, {
|
|
45
|
+
error: string;
|
|
46
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
47
|
+
error: string;
|
|
48
|
+
}, {
|
|
49
|
+
error: string;
|
|
50
|
+
}>>;
|
|
51
|
+
readonly 404: import("zod").ZodType<{
|
|
52
|
+
error: string;
|
|
53
|
+
}, {
|
|
54
|
+
error: string;
|
|
55
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
56
|
+
error: string;
|
|
57
|
+
}, {
|
|
58
|
+
error: string;
|
|
59
|
+
}>>;
|
|
60
|
+
readonly 500: import("zod").ZodType<{
|
|
61
|
+
error: string;
|
|
62
|
+
}, {
|
|
63
|
+
error: string;
|
|
64
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
65
|
+
error: string;
|
|
66
|
+
}, {
|
|
67
|
+
error: string;
|
|
68
|
+
}>>;
|
|
69
|
+
};
|
|
70
|
+
readonly failureStatuses: readonly [400, 401, 403, 404, 409, 500];
|
|
71
|
+
readonly id: "root.identities.suspension.put";
|
|
72
|
+
readonly method: "PUT";
|
|
73
|
+
readonly params: import("zod").ZodObject<{
|
|
74
|
+
userId: import("zod").ZodCustom<string, string>;
|
|
75
|
+
}, import("zod/v4/core").$strict>;
|
|
76
|
+
readonly path: "/root/identities/{userId}/suspension";
|
|
77
|
+
readonly responses: {
|
|
78
|
+
readonly 200: import("zod").ZodType<{
|
|
79
|
+
identity: {
|
|
80
|
+
createdAt: string;
|
|
81
|
+
defaultOrganizationId: string;
|
|
82
|
+
isRoot: boolean;
|
|
83
|
+
lastActiveAt: string | null;
|
|
84
|
+
registrationSourceIpAddress: string | null;
|
|
85
|
+
signingKeyFingerprint: string;
|
|
86
|
+
suspendedAt: string | null;
|
|
87
|
+
userId: string;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
identity: {
|
|
91
|
+
createdAt: string;
|
|
92
|
+
defaultOrganizationId: string;
|
|
93
|
+
isRoot: boolean;
|
|
94
|
+
lastActiveAt: string | null;
|
|
95
|
+
registrationSourceIpAddress: string | null;
|
|
96
|
+
signingKeyFingerprint: string;
|
|
97
|
+
suspendedAt: string | null;
|
|
98
|
+
userId: string;
|
|
99
|
+
};
|
|
100
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
101
|
+
identity: {
|
|
102
|
+
createdAt: string;
|
|
103
|
+
defaultOrganizationId: string;
|
|
104
|
+
isRoot: boolean;
|
|
105
|
+
lastActiveAt: string | null;
|
|
106
|
+
registrationSourceIpAddress: string | null;
|
|
107
|
+
signingKeyFingerprint: string;
|
|
108
|
+
suspendedAt: string | null;
|
|
109
|
+
userId: string;
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
identity: {
|
|
113
|
+
createdAt: string;
|
|
114
|
+
defaultOrganizationId: string;
|
|
115
|
+
isRoot: boolean;
|
|
116
|
+
lastActiveAt: string | null;
|
|
117
|
+
registrationSourceIpAddress: string | null;
|
|
118
|
+
signingKeyFingerprint: string;
|
|
119
|
+
suspendedAt: string | null;
|
|
120
|
+
userId: string;
|
|
121
|
+
};
|
|
122
|
+
}>>;
|
|
123
|
+
};
|
|
124
|
+
}, "failureResponses" | "failureStatuses"> & {
|
|
125
|
+
readonly failureResponses: {
|
|
126
|
+
readonly 409: import("zod").ZodType<{
|
|
127
|
+
error: string;
|
|
128
|
+
}, {
|
|
129
|
+
error: string;
|
|
130
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
131
|
+
error: string;
|
|
132
|
+
}, {
|
|
133
|
+
error: string;
|
|
134
|
+
}>>;
|
|
135
|
+
readonly 400: import("zod").ZodType<{
|
|
136
|
+
error: string;
|
|
137
|
+
}, {
|
|
138
|
+
error: string;
|
|
139
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
140
|
+
error: string;
|
|
141
|
+
}, {
|
|
142
|
+
error: string;
|
|
143
|
+
}>>;
|
|
144
|
+
readonly 401: import("zod").ZodType<{
|
|
145
|
+
error: string;
|
|
146
|
+
code?: "session_refresh_required" | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
error: string;
|
|
149
|
+
code?: "session_refresh_required" | undefined;
|
|
150
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
151
|
+
error: string;
|
|
152
|
+
code?: "session_refresh_required" | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
error: string;
|
|
155
|
+
code?: "session_refresh_required" | undefined;
|
|
156
|
+
}>>;
|
|
157
|
+
readonly 403: import("zod").ZodType<{
|
|
158
|
+
error: string;
|
|
159
|
+
}, {
|
|
160
|
+
error: string;
|
|
161
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
162
|
+
error: string;
|
|
163
|
+
}, {
|
|
164
|
+
error: string;
|
|
165
|
+
}>>;
|
|
166
|
+
readonly 404: import("zod").ZodType<{
|
|
167
|
+
error: string;
|
|
168
|
+
}, {
|
|
169
|
+
error: string;
|
|
170
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
171
|
+
error: string;
|
|
172
|
+
}, {
|
|
173
|
+
error: string;
|
|
174
|
+
}>>;
|
|
175
|
+
readonly 500: import("zod").ZodType<{
|
|
176
|
+
error: string;
|
|
177
|
+
}, {
|
|
178
|
+
error: string;
|
|
179
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
180
|
+
error: string;
|
|
181
|
+
}, {
|
|
182
|
+
error: string;
|
|
183
|
+
}>>;
|
|
184
|
+
} & {
|
|
185
|
+
readonly 503: typeof ErrorResponseSchema;
|
|
186
|
+
};
|
|
187
|
+
readonly failureStatuses: readonly [400, 401, 403, 404, 409, 500] | readonly [400, 401, 403, 404, 409, 500, 503];
|
|
188
|
+
};
|
|
189
|
+
/** Lifts a suspension so the identity's devices can sign in again. */
|
|
190
|
+
export declare const liftRootIdentitySuspensionOperation: Omit<{
|
|
191
|
+
readonly auth: "session";
|
|
192
|
+
readonly failureResponses: {
|
|
193
|
+
readonly 400: import("zod").ZodType<{
|
|
194
|
+
error: string;
|
|
195
|
+
}, {
|
|
196
|
+
error: string;
|
|
197
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
198
|
+
error: string;
|
|
199
|
+
}, {
|
|
200
|
+
error: string;
|
|
201
|
+
}>>;
|
|
202
|
+
readonly 401: import("zod").ZodType<{
|
|
203
|
+
error: string;
|
|
204
|
+
code?: "session_refresh_required" | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
error: string;
|
|
207
|
+
code?: "session_refresh_required" | undefined;
|
|
208
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
209
|
+
error: string;
|
|
210
|
+
code?: "session_refresh_required" | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
error: string;
|
|
213
|
+
code?: "session_refresh_required" | undefined;
|
|
214
|
+
}>>;
|
|
215
|
+
readonly 403: import("zod").ZodType<{
|
|
216
|
+
error: string;
|
|
217
|
+
}, {
|
|
218
|
+
error: string;
|
|
219
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
220
|
+
error: string;
|
|
221
|
+
}, {
|
|
222
|
+
error: string;
|
|
223
|
+
}>>;
|
|
224
|
+
readonly 404: import("zod").ZodType<{
|
|
225
|
+
error: string;
|
|
226
|
+
}, {
|
|
227
|
+
error: string;
|
|
228
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
229
|
+
error: string;
|
|
230
|
+
}, {
|
|
231
|
+
error: string;
|
|
232
|
+
}>>;
|
|
233
|
+
readonly 500: import("zod").ZodType<{
|
|
234
|
+
error: string;
|
|
235
|
+
}, {
|
|
236
|
+
error: string;
|
|
237
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
238
|
+
error: string;
|
|
239
|
+
}, {
|
|
240
|
+
error: string;
|
|
241
|
+
}>>;
|
|
242
|
+
};
|
|
243
|
+
readonly failureStatuses: readonly [400, 401, 403, 404, 500];
|
|
244
|
+
readonly id: "root.identities.suspension.delete";
|
|
245
|
+
readonly method: "DELETE";
|
|
246
|
+
readonly params: import("zod").ZodObject<{
|
|
247
|
+
userId: import("zod").ZodCustom<string, string>;
|
|
248
|
+
}, import("zod/v4/core").$strict>;
|
|
249
|
+
readonly path: "/root/identities/{userId}/suspension";
|
|
250
|
+
readonly responses: {
|
|
251
|
+
readonly 200: import("zod").ZodType<{
|
|
252
|
+
identity: {
|
|
253
|
+
createdAt: string;
|
|
254
|
+
defaultOrganizationId: string;
|
|
255
|
+
isRoot: boolean;
|
|
256
|
+
lastActiveAt: string | null;
|
|
257
|
+
registrationSourceIpAddress: string | null;
|
|
258
|
+
signingKeyFingerprint: string;
|
|
259
|
+
suspendedAt: string | null;
|
|
260
|
+
userId: string;
|
|
261
|
+
};
|
|
262
|
+
}, {
|
|
263
|
+
identity: {
|
|
264
|
+
createdAt: string;
|
|
265
|
+
defaultOrganizationId: string;
|
|
266
|
+
isRoot: boolean;
|
|
267
|
+
lastActiveAt: string | null;
|
|
268
|
+
registrationSourceIpAddress: string | null;
|
|
269
|
+
signingKeyFingerprint: string;
|
|
270
|
+
suspendedAt: string | null;
|
|
271
|
+
userId: string;
|
|
272
|
+
};
|
|
273
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
274
|
+
identity: {
|
|
275
|
+
createdAt: string;
|
|
276
|
+
defaultOrganizationId: string;
|
|
277
|
+
isRoot: boolean;
|
|
278
|
+
lastActiveAt: string | null;
|
|
279
|
+
registrationSourceIpAddress: string | null;
|
|
280
|
+
signingKeyFingerprint: string;
|
|
281
|
+
suspendedAt: string | null;
|
|
282
|
+
userId: string;
|
|
283
|
+
};
|
|
284
|
+
}, {
|
|
285
|
+
identity: {
|
|
286
|
+
createdAt: string;
|
|
287
|
+
defaultOrganizationId: string;
|
|
288
|
+
isRoot: boolean;
|
|
289
|
+
lastActiveAt: string | null;
|
|
290
|
+
registrationSourceIpAddress: string | null;
|
|
291
|
+
signingKeyFingerprint: string;
|
|
292
|
+
suspendedAt: string | null;
|
|
293
|
+
userId: string;
|
|
294
|
+
};
|
|
295
|
+
}>>;
|
|
296
|
+
};
|
|
297
|
+
}, "failureResponses" | "failureStatuses"> & {
|
|
298
|
+
readonly failureResponses: {
|
|
299
|
+
readonly 400: import("zod").ZodType<{
|
|
300
|
+
error: string;
|
|
301
|
+
}, {
|
|
302
|
+
error: string;
|
|
303
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
304
|
+
error: string;
|
|
305
|
+
}, {
|
|
306
|
+
error: string;
|
|
307
|
+
}>>;
|
|
308
|
+
readonly 401: import("zod").ZodType<{
|
|
309
|
+
error: string;
|
|
310
|
+
code?: "session_refresh_required" | undefined;
|
|
311
|
+
}, {
|
|
312
|
+
error: string;
|
|
313
|
+
code?: "session_refresh_required" | undefined;
|
|
314
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
315
|
+
error: string;
|
|
316
|
+
code?: "session_refresh_required" | undefined;
|
|
317
|
+
}, {
|
|
318
|
+
error: string;
|
|
319
|
+
code?: "session_refresh_required" | undefined;
|
|
320
|
+
}>>;
|
|
321
|
+
readonly 403: import("zod").ZodType<{
|
|
322
|
+
error: string;
|
|
323
|
+
}, {
|
|
324
|
+
error: string;
|
|
325
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
326
|
+
error: string;
|
|
327
|
+
}, {
|
|
328
|
+
error: string;
|
|
329
|
+
}>>;
|
|
330
|
+
readonly 404: import("zod").ZodType<{
|
|
331
|
+
error: string;
|
|
332
|
+
}, {
|
|
333
|
+
error: string;
|
|
334
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
335
|
+
error: string;
|
|
336
|
+
}, {
|
|
337
|
+
error: string;
|
|
338
|
+
}>>;
|
|
339
|
+
readonly 500: import("zod").ZodType<{
|
|
340
|
+
error: string;
|
|
341
|
+
}, {
|
|
342
|
+
error: string;
|
|
343
|
+
}, import("zod/v4/core").$ZodTypeInternals<{
|
|
344
|
+
error: string;
|
|
345
|
+
}, {
|
|
346
|
+
error: string;
|
|
347
|
+
}>>;
|
|
348
|
+
} & {
|
|
349
|
+
readonly 503: typeof ErrorResponseSchema;
|
|
350
|
+
};
|
|
351
|
+
readonly failureStatuses: readonly [400, 401, 403, 404, 500] | readonly [400, 401, 403, 404, 500, 503];
|
|
352
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ErrorResponseSchema, RootIdentitySuspensionResponseSchema, SessionFailureResponseSchema, } from "../response/index.js";
|
|
2
|
+
import { defineJsonOperation } from "./definition.js";
|
|
3
|
+
import { RootIdentityPathParamsSchema } from "./root.js";
|
|
4
|
+
const rootSuspensionFailureResponses = {
|
|
5
|
+
400: ErrorResponseSchema,
|
|
6
|
+
401: SessionFailureResponseSchema,
|
|
7
|
+
403: ErrorResponseSchema,
|
|
8
|
+
404: ErrorResponseSchema,
|
|
9
|
+
500: ErrorResponseSchema,
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Suspends an identity: its devices can no longer sign in, and every live
|
|
13
|
+
* session is revoked. Repeating it is harmless and sweeps sessions again.
|
|
14
|
+
* Refused with 409 for a root identity or the operator's own, since root
|
|
15
|
+
* standing is managed only through the API CLI.
|
|
16
|
+
*/
|
|
17
|
+
export const suspendRootIdentityOperation = defineJsonOperation({
|
|
18
|
+
auth: "session",
|
|
19
|
+
failureResponses: {
|
|
20
|
+
...rootSuspensionFailureResponses,
|
|
21
|
+
409: ErrorResponseSchema,
|
|
22
|
+
},
|
|
23
|
+
failureStatuses: [400, 401, 403, 404, 409, 500],
|
|
24
|
+
id: "root.identities.suspension.put",
|
|
25
|
+
method: "PUT",
|
|
26
|
+
params: RootIdentityPathParamsSchema,
|
|
27
|
+
path: "/root/identities/{userId}/suspension",
|
|
28
|
+
responses: {
|
|
29
|
+
200: RootIdentitySuspensionResponseSchema,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
/** Lifts a suspension so the identity's devices can sign in again. */
|
|
33
|
+
export const liftRootIdentitySuspensionOperation = defineJsonOperation({
|
|
34
|
+
auth: "session",
|
|
35
|
+
failureResponses: rootSuspensionFailureResponses,
|
|
36
|
+
failureStatuses: [400, 401, 403, 404, 500],
|
|
37
|
+
id: "root.identities.suspension.delete",
|
|
38
|
+
method: "DELETE",
|
|
39
|
+
params: RootIdentityPathParamsSchema,
|
|
40
|
+
path: "/root/identities/{userId}/suspension",
|
|
41
|
+
responses: {
|
|
42
|
+
200: RootIdentitySuspensionResponseSchema,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=rootSuspension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rootSuspension.js","sourceRoot":"","sources":["rootSuspension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,oCAAoC,EACpC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,8BAA8B,GAAG;IACrC,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,4BAA4B;IACjC,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;CAChB,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;IAC9D,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,8BAA8B;QACjC,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/C,EAAE,EAAE,gCAAgC;IACpC,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,4BAA4B;IACpC,IAAI,EAAE,sCAAsC;IAC5C,SAAS,EAAE;QACT,GAAG,EAAE,oCAAoC;KAC1C;CACF,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,mCAAmC,GAAG,mBAAmB,CAAC;IACrE,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,8BAA8B;IAChD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC1C,EAAE,EAAE,mCAAmC;IACvC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,4BAA4B;IACpC,IAAI,EAAE,sCAAsC;IAC5C,SAAS,EAAE;QACT,GAAG,EAAE,oCAAoC;KAC1C;CACF,CAAC,CAAC","sourcesContent":["import {\n ErrorResponseSchema,\n RootIdentitySuspensionResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { defineJsonOperation } from \"./definition\";\nimport { RootIdentityPathParamsSchema } from \"./root\";\n\nconst rootSuspensionFailureResponses = {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n} as const;\n\n/**\n * Suspends an identity: its devices can no longer sign in, and every live\n * session is revoked. Repeating it is harmless and sweeps sessions again.\n * Refused with 409 for a root identity or the operator's own, since root\n * standing is managed only through the API CLI.\n */\nexport const suspendRootIdentityOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n ...rootSuspensionFailureResponses,\n 409: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"root.identities.suspension.put\",\n method: \"PUT\",\n params: RootIdentityPathParamsSchema,\n path: \"/root/identities/{userId}/suspension\",\n responses: {\n 200: RootIdentitySuspensionResponseSchema,\n },\n});\n\n/** Lifts a suspension so the identity's devices can sign in again. */\nexport const liftRootIdentitySuspensionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: rootSuspensionFailureResponses,\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"root.identities.suspension.delete\",\n method: \"DELETE\",\n params: RootIdentityPathParamsSchema,\n path: \"/root/identities/{userId}/suspension\",\n responses: {\n 200: RootIdentitySuspensionResponseSchema,\n },\n});\n"]}
|
|
@@ -2,5 +2,5 @@ export { type ChallengeErrorResponse, ChallengeErrorResponseSchema, type Challen
|
|
|
2
2
|
export { isSessionRefreshRequiredFailure, SESSION_ERROR_CODES, type SessionErrorCode, SessionErrorCodeSchema, type SessionFailureResponse, SessionFailureResponseSchema, } from "./sessionFailure.js";
|
|
3
3
|
export { type DestroySessionResponse, DestroySessionResponseSchema, isDestroySessionResponse, isListSessionsResponse, isUserSessionResponse, type ListSessionsResponse, ListSessionsResponseSchema, type UserSessionResponse, UserSessionResponseSchema, } from "./sessions.js";
|
|
4
4
|
export { isUserIdentityResponse, type UserIdentityResponse, UserIdentityResponseSchema, } from "./userIdentity.js";
|
|
5
|
-
export { isVerifyResponse, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, } from "./verify.js";
|
|
5
|
+
export { isVerifyResponse, VERIFY_ERROR_CODES, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, } from "./verify.js";
|
|
6
6
|
export { isWebSocketTicketResponse, type WebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./wsTicket.js";
|
|
@@ -2,6 +2,6 @@ export { ChallengeErrorResponseSchema, ChallengeResponseSchema, isChallengeError
|
|
|
2
2
|
export { isSessionRefreshRequiredFailure, SESSION_ERROR_CODES, SessionErrorCodeSchema, SessionFailureResponseSchema, } from "./sessionFailure.js";
|
|
3
3
|
export { DestroySessionResponseSchema, isDestroySessionResponse, isListSessionsResponse, isUserSessionResponse, ListSessionsResponseSchema, UserSessionResponseSchema, } from "./sessions.js";
|
|
4
4
|
export { isUserIdentityResponse, UserIdentityResponseSchema, } from "./userIdentity.js";
|
|
5
|
-
export { isVerifyResponse, VerifyFailureResponseSchema, VerifySuccessResponseSchema, } from "./verify.js";
|
|
5
|
+
export { isVerifyResponse, VERIFY_ERROR_CODES, VerifyFailureResponseSchema, VerifySuccessResponseSchema, } from "./verify.js";
|
|
6
6
|
export { isWebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./wsTicket.js";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,4BAA4B,EAC5B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EAErB,0BAA0B,EAE1B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,4BAA4B,EAC5B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EAErB,0BAA0B,EAE1B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAElB,2BAA2B,EAG3B,2BAA2B,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,yBAAyB,EAEzB,6BAA6B,GAC9B,MAAM,YAAY,CAAC","sourcesContent":["export {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n} from \"./challenge\";\nexport {\n isSessionRefreshRequiredFailure,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n} from \"./sessionFailure\";\nexport {\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isDestroySessionResponse,\n isListSessionsResponse,\n isUserSessionResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n} from \"./sessions\";\nexport {\n isUserIdentityResponse,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n} from \"./userIdentity\";\nexport {\n isVerifyResponse,\n VERIFY_ERROR_CODES,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n} from \"./verify\";\nexport {\n isWebSocketTicketResponse,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./wsTicket\";\n"]}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const VERIFY_ERROR_CODES: {
|
|
3
|
+
/**
|
|
4
|
+
* The signature is valid but a platform operator suspended the account.
|
|
5
|
+
* Terminal: renewing the session cannot succeed until the suspension lifts.
|
|
6
|
+
*/
|
|
7
|
+
readonly accountSuspended: "account_suspended";
|
|
8
|
+
};
|
|
2
9
|
export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
3
10
|
authenticated: true;
|
|
4
11
|
isRoot: boolean;
|
|
@@ -7,6 +14,7 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
7
14
|
token: string;
|
|
8
15
|
userId: string;
|
|
9
16
|
wsTicket: string;
|
|
17
|
+
code?: undefined;
|
|
10
18
|
error?: undefined;
|
|
11
19
|
}, {
|
|
12
20
|
authenticated: true;
|
|
@@ -16,6 +24,7 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
16
24
|
token: string;
|
|
17
25
|
userId: string;
|
|
18
26
|
wsTicket: string;
|
|
27
|
+
code?: undefined;
|
|
19
28
|
error?: undefined;
|
|
20
29
|
}, z.core.$ZodTypeInternals<{
|
|
21
30
|
authenticated: true;
|
|
@@ -25,6 +34,7 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
25
34
|
token: string;
|
|
26
35
|
userId: string;
|
|
27
36
|
wsTicket: string;
|
|
37
|
+
code?: undefined;
|
|
28
38
|
error?: undefined;
|
|
29
39
|
}, {
|
|
30
40
|
authenticated: true;
|
|
@@ -34,10 +44,12 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
34
44
|
token: string;
|
|
35
45
|
userId: string;
|
|
36
46
|
wsTicket: string;
|
|
47
|
+
code?: undefined;
|
|
37
48
|
error?: undefined;
|
|
38
49
|
}>>;
|
|
39
50
|
export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
40
51
|
authenticated: false;
|
|
52
|
+
code?: "account_suspended" | undefined;
|
|
41
53
|
error?: string | undefined;
|
|
42
54
|
isRoot?: undefined;
|
|
43
55
|
organizationId?: undefined;
|
|
@@ -47,6 +59,7 @@ export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
|
47
59
|
wsTicket?: undefined;
|
|
48
60
|
}, {
|
|
49
61
|
authenticated: false;
|
|
62
|
+
code?: "account_suspended" | undefined;
|
|
50
63
|
error?: string | undefined;
|
|
51
64
|
isRoot?: undefined;
|
|
52
65
|
organizationId?: undefined;
|
|
@@ -56,6 +69,7 @@ export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
|
56
69
|
wsTicket?: undefined;
|
|
57
70
|
}, z.core.$ZodTypeInternals<{
|
|
58
71
|
authenticated: false;
|
|
72
|
+
code?: "account_suspended" | undefined;
|
|
59
73
|
error?: string | undefined;
|
|
60
74
|
isRoot?: undefined;
|
|
61
75
|
organizationId?: undefined;
|
|
@@ -65,6 +79,7 @@ export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
|
65
79
|
wsTicket?: undefined;
|
|
66
80
|
}, {
|
|
67
81
|
authenticated: false;
|
|
82
|
+
code?: "account_suspended" | undefined;
|
|
68
83
|
error?: string | undefined;
|
|
69
84
|
isRoot?: undefined;
|
|
70
85
|
organizationId?: undefined;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { loosePlainObject, nonEmptyStringSchema } from "../../schema.js";
|
|
3
|
+
export const VERIFY_ERROR_CODES = {
|
|
4
|
+
/**
|
|
5
|
+
* The signature is valid but a platform operator suspended the account.
|
|
6
|
+
* Terminal: renewing the session cannot succeed until the suspension lifts.
|
|
7
|
+
*/
|
|
8
|
+
accountSuspended: "account_suspended",
|
|
9
|
+
};
|
|
3
10
|
export const VerifySuccessResponseSchema = loosePlainObject({
|
|
4
11
|
authenticated: z.literal(true),
|
|
12
|
+
code: z.never().optional(),
|
|
5
13
|
error: z.never().optional(),
|
|
6
14
|
/** Platform-operator flag; gates the root console, enforced server-side. */
|
|
7
15
|
isRoot: z.boolean(),
|
|
@@ -14,6 +22,7 @@ export const VerifySuccessResponseSchema = loosePlainObject({
|
|
|
14
22
|
});
|
|
15
23
|
export const VerifyFailureResponseSchema = loosePlainObject({
|
|
16
24
|
authenticated: z.literal(false),
|
|
25
|
+
code: z.literal(VERIFY_ERROR_CODES.accountSuspended).optional(),
|
|
17
26
|
error: z.string().optional(),
|
|
18
27
|
isRoot: z.never().optional(),
|
|
19
28
|
organizationId: z.never().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.js","sourceRoot":"","sources":["verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,4EAA4E;IAC5E,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,cAAc,EAAE,oBAAoB;IACpC,eAAe,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,oBAAoB;IAC5B,4EAA4E;IAC5E,QAAQ,EAAE,oBAAoB;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAMH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,CACL,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO;QACpD,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CACrD,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { loosePlainObject, nonEmptyStringSchema } from \"../../schema\";\n\nexport const VerifySuccessResponseSchema = loosePlainObject({\n authenticated: z.literal(true),\n error: z.never().optional(),\n /** Platform-operator flag; gates the root console, enforced server-side. */\n isRoot: z.boolean(),\n organizationId: nonEmptyStringSchema,\n rootContainerId: nonEmptyStringSchema.nullable(),\n token: nonEmptyStringSchema,\n userId: nonEmptyStringSchema,\n /** Single-use upgrade ticket for this session's first websocket connect. */\n wsTicket: nonEmptyStringSchema,\n});\n\nexport const VerifyFailureResponseSchema = loosePlainObject({\n authenticated: z.literal(false),\n error: z.string().optional(),\n isRoot: z.never().optional(),\n organizationId: z.never().optional(),\n rootContainerId: z.never().optional(),\n token: z.never().optional(),\n userId: z.never().optional(),\n wsTicket: z.never().optional(),\n});\n\nexport type VerifySuccessResponse = z.infer<typeof VerifySuccessResponseSchema>;\nexport type VerifyFailureResponse = z.infer<typeof VerifyFailureResponseSchema>;\nexport type VerifyResponse = VerifySuccessResponse | VerifyFailureResponse;\n\nexport function isVerifyResponse(value: unknown): value is VerifyResponse {\n return (\n VerifySuccessResponseSchema.safeParse(value).success ||\n VerifyFailureResponseSchema.safeParse(value).success\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;;;OAGG;IACH,gBAAgB,EAAE,mBAAmB;CAC7B,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC1B,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,4EAA4E;IAC5E,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,cAAc,EAAE,oBAAoB;IACpC,eAAe,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,oBAAoB;IAC5B,4EAA4E;IAC5E,QAAQ,EAAE,oBAAoB;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IAC/D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAMH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,CACL,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO;QACpD,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CACrD,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { loosePlainObject, nonEmptyStringSchema } from \"../../schema\";\n\nexport const VERIFY_ERROR_CODES = {\n /**\n * The signature is valid but a platform operator suspended the account.\n * Terminal: renewing the session cannot succeed until the suspension lifts.\n */\n accountSuspended: \"account_suspended\",\n} as const;\n\nexport const VerifySuccessResponseSchema = loosePlainObject({\n authenticated: z.literal(true),\n code: z.never().optional(),\n error: z.never().optional(),\n /** Platform-operator flag; gates the root console, enforced server-side. */\n isRoot: z.boolean(),\n organizationId: nonEmptyStringSchema,\n rootContainerId: nonEmptyStringSchema.nullable(),\n token: nonEmptyStringSchema,\n userId: nonEmptyStringSchema,\n /** Single-use upgrade ticket for this session's first websocket connect. */\n wsTicket: nonEmptyStringSchema,\n});\n\nexport const VerifyFailureResponseSchema = loosePlainObject({\n authenticated: z.literal(false),\n code: z.literal(VERIFY_ERROR_CODES.accountSuspended).optional(),\n error: z.string().optional(),\n isRoot: z.never().optional(),\n organizationId: z.never().optional(),\n rootContainerId: z.never().optional(),\n token: z.never().optional(),\n userId: z.never().optional(),\n wsTicket: z.never().optional(),\n});\n\nexport type VerifySuccessResponse = z.infer<typeof VerifySuccessResponseSchema>;\nexport type VerifyFailureResponse = z.infer<typeof VerifyFailureResponseSchema>;\nexport type VerifyResponse = VerifySuccessResponse | VerifyFailureResponse;\n\nexport function isVerifyResponse(value: unknown): value is VerifyResponse {\n return (\n VerifySuccessResponseSchema.safeParse(value).success ||\n VerifyFailureResponseSchema.safeParse(value).success\n );\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type AccessManifestBundleWireResponse, isAccessManifestBundleWireResponse, } from "../util/index.js";
|
|
2
2
|
export { type EffectiveAccessLevel, EffectiveAccessLevelSchema, isEffectiveAccessLevel, } from "./accessLevel.js";
|
|
3
|
-
export { type ChallengeErrorResponse, ChallengeErrorResponseSchema, type ChallengeResponse, ChallengeResponseSchema, type DestroySessionResponse, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, type ListSessionsResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, type SessionErrorCode, SessionErrorCodeSchema, type SessionFailureResponse, SessionFailureResponseSchema, type UserIdentityResponse, UserIdentityResponseSchema, type UserSessionResponse, UserSessionResponseSchema, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, type WebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
3
|
+
export { type ChallengeErrorResponse, ChallengeErrorResponseSchema, type ChallengeResponse, ChallengeResponseSchema, type DestroySessionResponse, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, type ListSessionsResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, type SessionErrorCode, SessionErrorCodeSchema, type SessionFailureResponse, SessionFailureResponseSchema, type UserIdentityResponse, UserIdentityResponseSchema, type UserSessionResponse, UserSessionResponseSchema, VERIFY_ERROR_CODES, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, type WebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
4
4
|
export { isRevenueCatWebhookResponse, isStripeWebhookResponse, type RevenueCatWebhookResponse, RevenueCatWebhookResponseSchema, type StripeWebhookResponse, StripeWebhookResponseSchema, } from "./billingWebhooks.js";
|
|
5
5
|
export { type BlobAttachmentBindResponse, BlobAttachmentBindResponseSchema, type BlobAttachmentDetachResponse, BlobAttachmentDetachResponseSchema, type BlobAttachmentSummary, BlobAttachmentSummarySchema, type BlobContentKeyBundleResponse, BlobContentKeyBundleResponseSchema, type BlobContentKeyTargetEnvelopeResponse, BlobContentKeyTargetEnvelopeResponseSchema, type BlobKekTargetsResponse, BlobKekTargetsResponseSchema, type InitiateMultipartBlobStageResponse, InitiateMultipartBlobStageResponseSchema, isBlobAttachmentBindResponse, isBlobAttachmentDetachResponse, isInitiateMultipartBlobStageResponse, isListDocumentAttachmentsResponse, isMultipartBlobStageStatusResponse, isUploadMultipartBlobPartResponse, type ListDocumentAttachmentsResponse, ListDocumentAttachmentsResponseSchema, type MultipartBlobStagePart, MultipartBlobStagePartSchema, type MultipartBlobStageStatusResponse, MultipartBlobStageStatusResponseSchema, type UploadMultipartBlobPartResponse, UploadMultipartBlobPartResponseSchema, } from "./blob.js";
|
|
6
6
|
export { BLOB_MUTATION_ERROR_CODES, type BlobMutationErrorCode, type BlobMutationFailureResponse, BlobMutationFailureResponseSchema, } from "./blobMutationError.js";
|
|
@@ -36,7 +36,7 @@ export { isPrincipalPolicySnapshotPageResponse, type PrincipalPolicyHistorySourc
|
|
|
36
36
|
export { isReferencedPrincipalStateResponse, type ReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "./principalReference.js";
|
|
37
37
|
export { type ProjectionPolicyEvidenceResponse, ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
|
|
38
38
|
export { isRegistrationResponse, type RegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
|
|
39
|
-
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, type RootIdentitiesResponse, RootIdentitiesResponseSchema, type RootIdentityDetailResponse, RootIdentityDetailResponseSchema, type RootIdentityOrganizationBillingResponse, RootIdentityOrganizationBillingResponseSchema, type RootIdentityOrganizationResponse, RootIdentityOrganizationResponseSchema, type RootIdentityOrganizationsResponse, RootIdentityOrganizationsResponseSchema, type RootIdentitySessionResponse, RootIdentitySessionResponseSchema, type RootIdentitySummaryResponse, RootIdentitySummaryResponseSchema, } from "./root.js";
|
|
39
|
+
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, isRootIdentitySuspensionResponse, type RootIdentitiesResponse, RootIdentitiesResponseSchema, type RootIdentityDetailResponse, RootIdentityDetailResponseSchema, type RootIdentityOrganizationBillingResponse, RootIdentityOrganizationBillingResponseSchema, type RootIdentityOrganizationResponse, RootIdentityOrganizationResponseSchema, type RootIdentityOrganizationsResponse, RootIdentityOrganizationsResponseSchema, type RootIdentitySessionResponse, RootIdentitySessionResponseSchema, type RootIdentitySummaryResponse, RootIdentitySummaryResponseSchema, type RootIdentitySuspensionResponse, RootIdentitySuspensionResponseSchema, } from "./root.js";
|
|
40
40
|
export { ROOT_AUDIT_ACTIONS, type RootAuditAction, RootAuditActionSchema, type RootAuditEventResponse, RootAuditEventResponseSchema, type RootAuditEventsResponse, RootAuditEventsResponseSchema, } from "./rootAudit.js";
|
|
41
41
|
export { ROOT_OPS_HEALTH_OVERDUE_MINUTES, ROOT_OPS_HEALTH_SECTION_LIMIT, ROOT_OPS_HEALTH_UPCOMING_DAYS, ROOT_SEAT_SYNC_CONDITIONS, type RootOpsHealthReportResponse, RootOpsHealthReportResponseSchema, RootSeatSyncConditionSchema, } from "./rootOpsHealth.js";
|
|
42
42
|
export { type RootDataUsageReportResponse, RootDataUsageReportResponseSchema, type RootOrganizationDetailResponse, RootOrganizationDetailResponseSchema, type RootOrganizationIdentitiesResponse, RootOrganizationIdentitiesResponseSchema, type RootOrganizationIdentityResponse, RootOrganizationIdentityResponseSchema, type RootOrganizationSummaryResponse, RootOrganizationSummaryResponseSchema, type RootOrganizationsResponse, RootOrganizationsResponseSchema, } from "./rootOrganizations.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { isAccessManifestBundleWireResponse, } from "../util/index.js";
|
|
2
2
|
export { EffectiveAccessLevelSchema, isEffectiveAccessLevel, } from "./accessLevel.js";
|
|
3
|
-
export { ChallengeErrorResponseSchema, ChallengeResponseSchema, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, SessionErrorCodeSchema, SessionFailureResponseSchema, UserIdentityResponseSchema, UserSessionResponseSchema, VerifyFailureResponseSchema, VerifySuccessResponseSchema, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
3
|
+
export { ChallengeErrorResponseSchema, ChallengeResponseSchema, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, SessionErrorCodeSchema, SessionFailureResponseSchema, UserIdentityResponseSchema, UserSessionResponseSchema, VERIFY_ERROR_CODES, VerifyFailureResponseSchema, VerifySuccessResponseSchema, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
4
4
|
export { isRevenueCatWebhookResponse, isStripeWebhookResponse, RevenueCatWebhookResponseSchema, StripeWebhookResponseSchema, } from "./billingWebhooks.js";
|
|
5
5
|
export { BlobAttachmentBindResponseSchema, BlobAttachmentDetachResponseSchema, BlobAttachmentSummarySchema, BlobContentKeyBundleResponseSchema, BlobContentKeyTargetEnvelopeResponseSchema, BlobKekTargetsResponseSchema, InitiateMultipartBlobStageResponseSchema, isBlobAttachmentBindResponse, isBlobAttachmentDetachResponse, isInitiateMultipartBlobStageResponse, isListDocumentAttachmentsResponse, isMultipartBlobStageStatusResponse, isUploadMultipartBlobPartResponse, ListDocumentAttachmentsResponseSchema, MultipartBlobStagePartSchema, MultipartBlobStageStatusResponseSchema, UploadMultipartBlobPartResponseSchema, } from "./blob.js";
|
|
6
6
|
export { BLOB_MUTATION_ERROR_CODES, BlobMutationFailureResponseSchema, } from "./blobMutationError.js";
|
|
@@ -35,7 +35,7 @@ export { isPrincipalPolicySnapshotPageResponse, PrincipalPolicyHistorySourceResp
|
|
|
35
35
|
export { isReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "./principalReference.js";
|
|
36
36
|
export { ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
|
|
37
37
|
export { isRegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
|
|
38
|
-
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, RootIdentitiesResponseSchema, RootIdentityDetailResponseSchema, RootIdentityOrganizationBillingResponseSchema, RootIdentityOrganizationResponseSchema, RootIdentityOrganizationsResponseSchema, RootIdentitySessionResponseSchema, RootIdentitySummaryResponseSchema, } from "./root.js";
|
|
38
|
+
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, isRootIdentitySuspensionResponse, RootIdentitiesResponseSchema, RootIdentityDetailResponseSchema, RootIdentityOrganizationBillingResponseSchema, RootIdentityOrganizationResponseSchema, RootIdentityOrganizationsResponseSchema, RootIdentitySessionResponseSchema, RootIdentitySummaryResponseSchema, RootIdentitySuspensionResponseSchema, } from "./root.js";
|
|
39
39
|
export { ROOT_AUDIT_ACTIONS, RootAuditActionSchema, RootAuditEventResponseSchema, RootAuditEventsResponseSchema, } from "./rootAudit.js";
|
|
40
40
|
export { ROOT_OPS_HEALTH_OVERDUE_MINUTES, ROOT_OPS_HEALTH_SECTION_LIMIT, ROOT_OPS_HEALTH_UPCOMING_DAYS, ROOT_SEAT_SYNC_CONDITIONS, RootOpsHealthReportResponseSchema, RootSeatSyncConditionSchema, } from "./rootOpsHealth.js";
|
|
41
41
|
export { RootDataUsageReportResponseSchema, RootOrganizationDetailResponseSchema, RootOrganizationIdentitiesResponseSchema, RootOrganizationIdentityResponseSchema, RootOrganizationSummaryResponseSchema, RootOrganizationsResponseSchema, } from "./rootOrganizations.js";
|