@tearleads/client-sdk 0.1.93 → 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 +12 -2
- package/client/root/index.js +10 -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 +6 -1
- package/internal/api-client/ApiClient.js +17 -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 +2 -0
- package/internal/validators/operation/index.js +2 -0
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/registry.d.ts +5 -0
- package/internal/validators/operation/registry.js +5 -0
- package/internal/validators/operation/registry.js.map +1 -1
- package/internal/validators/operation/root.d.ts +8 -0
- package/internal/validators/operation/rootAudit.d.ts +4 -4
- package/internal/validators/operation/rootOpsHealth.d.ts +287 -0
- package/internal/validators/operation/rootOpsHealth.js +18 -0
- package/internal/validators/operation/rootOpsHealth.js.map +1 -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 +3 -2
- package/internal/validators/response/index.js +3 -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 +11 -10
- package/internal/validators/response/rootAudit.js +16 -1
- package/internal/validators/response/rootAudit.js.map +1 -1
- package/internal/validators/response/rootOpsHealth.d.ts +224 -0
- package/internal/validators/response/rootOpsHealth.js +79 -0
- package/internal/validators/response/rootOpsHealth.js.map +1 -0
- package/internal/validators/response/rootOrganizations.d.ts +8 -0
- package/package.json +1 -1
- package/workflows/root/audit.d.ts +11 -4
- package/workflows/root/audit.js.map +1 -1
- package/workflows/root/index.d.ts +2 -0
- package/workflows/root/index.js +2 -0
- package/workflows/root/index.js.map +1 -1
- package/workflows/root/opsHealth.d.ts +9 -0
- package/workflows/root/opsHealth.js +5 -0
- package/workflows/root/opsHealth.js.map +1 -0
- 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,287 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ErrorResponseSchema } from "../response/index.js";
|
|
3
|
+
export declare const getRootOpsHealthReportOperation: Omit<{
|
|
4
|
+
readonly auth: "session";
|
|
5
|
+
readonly failureResponses: {
|
|
6
|
+
readonly 401: z.ZodType<{
|
|
7
|
+
error: string;
|
|
8
|
+
code?: "session_refresh_required" | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
error: string;
|
|
11
|
+
code?: "session_refresh_required" | undefined;
|
|
12
|
+
}, z.core.$ZodTypeInternals<{
|
|
13
|
+
error: string;
|
|
14
|
+
code?: "session_refresh_required" | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
error: string;
|
|
17
|
+
code?: "session_refresh_required" | undefined;
|
|
18
|
+
}>>;
|
|
19
|
+
readonly 403: z.ZodType<{
|
|
20
|
+
error: string;
|
|
21
|
+
}, {
|
|
22
|
+
error: string;
|
|
23
|
+
}, z.core.$ZodTypeInternals<{
|
|
24
|
+
error: string;
|
|
25
|
+
}, {
|
|
26
|
+
error: string;
|
|
27
|
+
}>>;
|
|
28
|
+
readonly 500: z.ZodType<{
|
|
29
|
+
error: string;
|
|
30
|
+
}, {
|
|
31
|
+
error: string;
|
|
32
|
+
}, z.core.$ZodTypeInternals<{
|
|
33
|
+
error: string;
|
|
34
|
+
}, {
|
|
35
|
+
error: string;
|
|
36
|
+
}>>;
|
|
37
|
+
};
|
|
38
|
+
readonly failureStatuses: readonly [401, 403, 500];
|
|
39
|
+
readonly id: "root.reports.opsHealth.get";
|
|
40
|
+
readonly method: "GET";
|
|
41
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
42
|
+
readonly path: "/root/reports/ops-health";
|
|
43
|
+
readonly responses: {
|
|
44
|
+
readonly 200: z.ZodType<{
|
|
45
|
+
generatedAt: string;
|
|
46
|
+
seatSync: {
|
|
47
|
+
rows: {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
50
|
+
attemptCount: number;
|
|
51
|
+
appliedRevision: number;
|
|
52
|
+
desiredRevision: number;
|
|
53
|
+
lastError: string | null;
|
|
54
|
+
lastSyncedAt: string | null;
|
|
55
|
+
leaseExpiresAt: string | null;
|
|
56
|
+
nextAttemptAt: string | null;
|
|
57
|
+
}[];
|
|
58
|
+
truncated: boolean;
|
|
59
|
+
};
|
|
60
|
+
trialExpiry: {
|
|
61
|
+
rows: {
|
|
62
|
+
organizationId: string;
|
|
63
|
+
trialEndsAt: string;
|
|
64
|
+
attemptCount: number;
|
|
65
|
+
lastError: string | null;
|
|
66
|
+
nextAttemptAt: string | null;
|
|
67
|
+
requiresAttention: boolean;
|
|
68
|
+
}[];
|
|
69
|
+
truncated: boolean;
|
|
70
|
+
};
|
|
71
|
+
purges: {
|
|
72
|
+
rows: {
|
|
73
|
+
organizationId: string;
|
|
74
|
+
status: "disabled" | "deleting";
|
|
75
|
+
purgeAfter: string | null;
|
|
76
|
+
purgeStartedAt: string | null;
|
|
77
|
+
}[];
|
|
78
|
+
truncated: boolean;
|
|
79
|
+
};
|
|
80
|
+
trialsEnding: {
|
|
81
|
+
rows: {
|
|
82
|
+
organizationId: string;
|
|
83
|
+
trialEndsAt: string;
|
|
84
|
+
}[];
|
|
85
|
+
truncated: boolean;
|
|
86
|
+
};
|
|
87
|
+
purgesDue: {
|
|
88
|
+
rows: {
|
|
89
|
+
organizationId: string;
|
|
90
|
+
disabledAt: string | null;
|
|
91
|
+
purgeAfter: string;
|
|
92
|
+
}[];
|
|
93
|
+
truncated: boolean;
|
|
94
|
+
};
|
|
95
|
+
}, {
|
|
96
|
+
generatedAt: string;
|
|
97
|
+
seatSync: {
|
|
98
|
+
rows: {
|
|
99
|
+
organizationId: string;
|
|
100
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
101
|
+
attemptCount: number;
|
|
102
|
+
appliedRevision: number;
|
|
103
|
+
desiredRevision: number;
|
|
104
|
+
lastError: string | null;
|
|
105
|
+
lastSyncedAt: string | null;
|
|
106
|
+
leaseExpiresAt: string | null;
|
|
107
|
+
nextAttemptAt: string | null;
|
|
108
|
+
}[];
|
|
109
|
+
truncated: boolean;
|
|
110
|
+
};
|
|
111
|
+
trialExpiry: {
|
|
112
|
+
rows: {
|
|
113
|
+
organizationId: string;
|
|
114
|
+
trialEndsAt: string;
|
|
115
|
+
attemptCount: number;
|
|
116
|
+
lastError: string | null;
|
|
117
|
+
nextAttemptAt: string | null;
|
|
118
|
+
requiresAttention: boolean;
|
|
119
|
+
}[];
|
|
120
|
+
truncated: boolean;
|
|
121
|
+
};
|
|
122
|
+
purges: {
|
|
123
|
+
rows: {
|
|
124
|
+
organizationId: string;
|
|
125
|
+
status: "disabled" | "deleting";
|
|
126
|
+
purgeAfter: string | null;
|
|
127
|
+
purgeStartedAt: string | null;
|
|
128
|
+
}[];
|
|
129
|
+
truncated: boolean;
|
|
130
|
+
};
|
|
131
|
+
trialsEnding: {
|
|
132
|
+
rows: {
|
|
133
|
+
organizationId: string;
|
|
134
|
+
trialEndsAt: string;
|
|
135
|
+
}[];
|
|
136
|
+
truncated: boolean;
|
|
137
|
+
};
|
|
138
|
+
purgesDue: {
|
|
139
|
+
rows: {
|
|
140
|
+
organizationId: string;
|
|
141
|
+
disabledAt: string | null;
|
|
142
|
+
purgeAfter: string;
|
|
143
|
+
}[];
|
|
144
|
+
truncated: boolean;
|
|
145
|
+
};
|
|
146
|
+
}, z.core.$ZodTypeInternals<{
|
|
147
|
+
generatedAt: string;
|
|
148
|
+
seatSync: {
|
|
149
|
+
rows: {
|
|
150
|
+
organizationId: string;
|
|
151
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
152
|
+
attemptCount: number;
|
|
153
|
+
appliedRevision: number;
|
|
154
|
+
desiredRevision: number;
|
|
155
|
+
lastError: string | null;
|
|
156
|
+
lastSyncedAt: string | null;
|
|
157
|
+
leaseExpiresAt: string | null;
|
|
158
|
+
nextAttemptAt: string | null;
|
|
159
|
+
}[];
|
|
160
|
+
truncated: boolean;
|
|
161
|
+
};
|
|
162
|
+
trialExpiry: {
|
|
163
|
+
rows: {
|
|
164
|
+
organizationId: string;
|
|
165
|
+
trialEndsAt: string;
|
|
166
|
+
attemptCount: number;
|
|
167
|
+
lastError: string | null;
|
|
168
|
+
nextAttemptAt: string | null;
|
|
169
|
+
requiresAttention: boolean;
|
|
170
|
+
}[];
|
|
171
|
+
truncated: boolean;
|
|
172
|
+
};
|
|
173
|
+
purges: {
|
|
174
|
+
rows: {
|
|
175
|
+
organizationId: string;
|
|
176
|
+
status: "disabled" | "deleting";
|
|
177
|
+
purgeAfter: string | null;
|
|
178
|
+
purgeStartedAt: string | null;
|
|
179
|
+
}[];
|
|
180
|
+
truncated: boolean;
|
|
181
|
+
};
|
|
182
|
+
trialsEnding: {
|
|
183
|
+
rows: {
|
|
184
|
+
organizationId: string;
|
|
185
|
+
trialEndsAt: string;
|
|
186
|
+
}[];
|
|
187
|
+
truncated: boolean;
|
|
188
|
+
};
|
|
189
|
+
purgesDue: {
|
|
190
|
+
rows: {
|
|
191
|
+
organizationId: string;
|
|
192
|
+
disabledAt: string | null;
|
|
193
|
+
purgeAfter: string;
|
|
194
|
+
}[];
|
|
195
|
+
truncated: boolean;
|
|
196
|
+
};
|
|
197
|
+
}, {
|
|
198
|
+
generatedAt: string;
|
|
199
|
+
seatSync: {
|
|
200
|
+
rows: {
|
|
201
|
+
organizationId: string;
|
|
202
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
203
|
+
attemptCount: number;
|
|
204
|
+
appliedRevision: number;
|
|
205
|
+
desiredRevision: number;
|
|
206
|
+
lastError: string | null;
|
|
207
|
+
lastSyncedAt: string | null;
|
|
208
|
+
leaseExpiresAt: string | null;
|
|
209
|
+
nextAttemptAt: string | null;
|
|
210
|
+
}[];
|
|
211
|
+
truncated: boolean;
|
|
212
|
+
};
|
|
213
|
+
trialExpiry: {
|
|
214
|
+
rows: {
|
|
215
|
+
organizationId: string;
|
|
216
|
+
trialEndsAt: string;
|
|
217
|
+
attemptCount: number;
|
|
218
|
+
lastError: string | null;
|
|
219
|
+
nextAttemptAt: string | null;
|
|
220
|
+
requiresAttention: boolean;
|
|
221
|
+
}[];
|
|
222
|
+
truncated: boolean;
|
|
223
|
+
};
|
|
224
|
+
purges: {
|
|
225
|
+
rows: {
|
|
226
|
+
organizationId: string;
|
|
227
|
+
status: "disabled" | "deleting";
|
|
228
|
+
purgeAfter: string | null;
|
|
229
|
+
purgeStartedAt: string | null;
|
|
230
|
+
}[];
|
|
231
|
+
truncated: boolean;
|
|
232
|
+
};
|
|
233
|
+
trialsEnding: {
|
|
234
|
+
rows: {
|
|
235
|
+
organizationId: string;
|
|
236
|
+
trialEndsAt: string;
|
|
237
|
+
}[];
|
|
238
|
+
truncated: boolean;
|
|
239
|
+
};
|
|
240
|
+
purgesDue: {
|
|
241
|
+
rows: {
|
|
242
|
+
organizationId: string;
|
|
243
|
+
disabledAt: string | null;
|
|
244
|
+
purgeAfter: string;
|
|
245
|
+
}[];
|
|
246
|
+
truncated: boolean;
|
|
247
|
+
};
|
|
248
|
+
}>>;
|
|
249
|
+
};
|
|
250
|
+
}, "failureResponses" | "failureStatuses"> & {
|
|
251
|
+
readonly failureResponses: {
|
|
252
|
+
readonly 401: z.ZodType<{
|
|
253
|
+
error: string;
|
|
254
|
+
code?: "session_refresh_required" | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
error: string;
|
|
257
|
+
code?: "session_refresh_required" | undefined;
|
|
258
|
+
}, z.core.$ZodTypeInternals<{
|
|
259
|
+
error: string;
|
|
260
|
+
code?: "session_refresh_required" | undefined;
|
|
261
|
+
}, {
|
|
262
|
+
error: string;
|
|
263
|
+
code?: "session_refresh_required" | undefined;
|
|
264
|
+
}>>;
|
|
265
|
+
readonly 403: z.ZodType<{
|
|
266
|
+
error: string;
|
|
267
|
+
}, {
|
|
268
|
+
error: string;
|
|
269
|
+
}, z.core.$ZodTypeInternals<{
|
|
270
|
+
error: string;
|
|
271
|
+
}, {
|
|
272
|
+
error: string;
|
|
273
|
+
}>>;
|
|
274
|
+
readonly 500: z.ZodType<{
|
|
275
|
+
error: string;
|
|
276
|
+
}, {
|
|
277
|
+
error: string;
|
|
278
|
+
}, z.core.$ZodTypeInternals<{
|
|
279
|
+
error: string;
|
|
280
|
+
}, {
|
|
281
|
+
error: string;
|
|
282
|
+
}>>;
|
|
283
|
+
} & {
|
|
284
|
+
readonly 503: typeof ErrorResponseSchema;
|
|
285
|
+
};
|
|
286
|
+
readonly failureStatuses: readonly [401, 403, 500] | readonly [401, 403, 500, 503];
|
|
287
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ErrorResponseSchema, RootOpsHealthReportResponseSchema, SessionFailureResponseSchema, } from "../response/index.js";
|
|
3
|
+
import { defineJsonOperation } from "./definition.js";
|
|
4
|
+
export const getRootOpsHealthReportOperation = defineJsonOperation({
|
|
5
|
+
auth: "session",
|
|
6
|
+
failureResponses: {
|
|
7
|
+
401: SessionFailureResponseSchema,
|
|
8
|
+
403: ErrorResponseSchema,
|
|
9
|
+
500: ErrorResponseSchema,
|
|
10
|
+
},
|
|
11
|
+
failureStatuses: [401, 403, 500],
|
|
12
|
+
id: "root.reports.opsHealth.get",
|
|
13
|
+
method: "GET",
|
|
14
|
+
params: z.strictObject({}),
|
|
15
|
+
path: "/root/reports/ops-health",
|
|
16
|
+
responses: { 200: RootOpsHealthReportResponseSchema },
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=rootOpsHealth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rootOpsHealth.js","sourceRoot":"","sources":["rootOpsHealth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;IACjE,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAChC,EAAE,EAAE,4BAA4B;IAChC,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;IAC1B,IAAI,EAAE,0BAA0B;IAChC,SAAS,EAAE,EAAE,GAAG,EAAE,iCAAiC,EAAE;CACtD,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n ErrorResponseSchema,\n RootOpsHealthReportResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { defineJsonOperation } from \"./definition\";\n\nexport const getRootOpsHealthReportOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [401, 403, 500],\n id: \"root.reports.opsHealth.get\",\n method: \"GET\",\n params: z.strictObject({}),\n path: \"/root/reports/ops-health\",\n responses: { 200: RootOpsHealthReportResponseSchema },\n});\n"]}
|
|
@@ -692,6 +692,7 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
|
|
|
692
692
|
lastActiveAt: string | null;
|
|
693
693
|
registrationSourceIpAddress: string | null;
|
|
694
694
|
signingKeyFingerprint: string;
|
|
695
|
+
suspendedAt: string | null;
|
|
695
696
|
userId: string;
|
|
696
697
|
};
|
|
697
698
|
roster: {
|
|
@@ -712,6 +713,7 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
|
|
|
712
713
|
lastActiveAt: string | null;
|
|
713
714
|
registrationSourceIpAddress: string | null;
|
|
714
715
|
signingKeyFingerprint: string;
|
|
716
|
+
suspendedAt: string | null;
|
|
715
717
|
userId: string;
|
|
716
718
|
};
|
|
717
719
|
roster: {
|
|
@@ -732,6 +734,7 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
|
|
|
732
734
|
lastActiveAt: string | null;
|
|
733
735
|
registrationSourceIpAddress: string | null;
|
|
734
736
|
signingKeyFingerprint: string;
|
|
737
|
+
suspendedAt: string | null;
|
|
735
738
|
userId: string;
|
|
736
739
|
};
|
|
737
740
|
roster: {
|
|
@@ -752,6 +755,7 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
|
|
|
752
755
|
lastActiveAt: string | null;
|
|
753
756
|
registrationSourceIpAddress: string | null;
|
|
754
757
|
signingKeyFingerprint: string;
|
|
758
|
+
suspendedAt: string | null;
|
|
755
759
|
userId: string;
|
|
756
760
|
};
|
|
757
761
|
roster: {
|
|
@@ -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
|
+
};
|