@gravity-rail/sdk 4.0.0 → 6.1.0
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/README.md +4 -2
- package/dist/account-DLwJWX9b.d.cts +522 -0
- package/dist/account-DLwJWX9b.d.ts +522 -0
- package/dist/{path-CUY-Iw70.d.ts → agent_standing_job-D60O007y.d.cts} +1068 -140
- package/dist/{path-B3b3_El9.d.cts → agent_standing_job-DbKkPDyY.d.ts} +1068 -140
- package/dist/{chat-interaction-DXgKjFqZ.d.cts → chat-interaction-CCdK_MtC.d.ts} +13616 -9394
- package/dist/{chat-interaction-a7U-tHfQ.d.ts → chat-interaction-rktAADW0.d.cts} +13616 -9394
- package/dist/{chunk-D5VNVTUQ.js → chunk-P2MSMMMJ.js} +120 -2
- package/dist/chunk-P2MSMMMJ.js.map +1 -0
- package/dist/{chunk-ZLF3N3ZD.js → chunk-P2X5TOYY.js} +31 -5
- package/dist/chunk-P2X5TOYY.js.map +1 -0
- package/dist/{chunk-WHRIIBJ4.js → chunk-VFOWHCQ7.js} +1773 -475
- package/dist/chunk-VFOWHCQ7.js.map +1 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +3 -2
- package/dist/helpers.d.ts +3 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1961 -917
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -249
- package/dist/index.d.ts +87 -249
- package/dist/index.js +171 -458
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1928 -448
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2449 -263
- package/dist/internal.d.ts +2449 -263
- package/dist/internal.js +146 -27
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-BHtOru8g.d.cts → member-import-Bk2nh1YU.d.cts} +1 -1
- package/dist/{member-import-VOLKR5dY.d.ts → member-import-CybXt3PK.d.ts} +1 -1
- package/dist/realtime.cjs +250 -3
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +87 -4
- package/dist/realtime.d.ts +87 -4
- package/dist/realtime.js +245 -3
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +154 -19
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +621 -69
- package/dist/schemas.d.ts +621 -69
- package/dist/schemas.js +72 -21
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-CgptqCsN.d.cts → tasks-CGiE1y_T.d.ts} +2243 -1979
- package/dist/{tasks-CgptqCsN.d.ts → tasks-DChznvPX.d.cts} +2243 -1979
- package/dist/{types-BXaWYGHj.d.cts → types-Bv6GtLZ2.d.cts} +25 -2
- package/dist/{types-BXaWYGHj.d.ts → types-Bv6GtLZ2.d.ts} +25 -2
- package/package.json +4 -4
- package/dist/chunk-D5VNVTUQ.js.map +0 -1
- package/dist/chunk-WHRIIBJ4.js.map +0 -1
- package/dist/chunk-ZLF3N3ZD.js.map +0 -1
package/README.md
CHANGED
|
@@ -445,8 +445,10 @@ empty and Member identifiers are null) when the caller cannot read stored
|
|
|
445
445
|
values. Load values with a permitted record read after saving. Customer sign-in
|
|
446
446
|
policies remain separate from record scopes.
|
|
447
447
|
|
|
448
|
-
Managed themes use `workspace.createPage` with `title` and
|
|
449
|
-
`
|
|
448
|
+
Managed themes use `workspace.createPage` with `title` and a TipTap
|
|
449
|
+
`contentBlocks` document for pages. `slug` is optional and derived from the title
|
|
450
|
+
when omitted. Page create and update requests reject `contentHtml`,
|
|
451
|
+
`contentMarkdown`, and `contentAMP`. Source Sites define application routes in their
|
|
450
452
|
React code; creating a managed Page does not register a React route. For a
|
|
451
453
|
verified custom domain, use
|
|
452
454
|
`customDomain` in `createSite` or `updateSite`, following the
|
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
|
|
3
|
+
* (group map from emit_openapi.py). Do not edit manually.
|
|
4
|
+
* Group: session
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* ``{token, sessionKind, expiresAt}`` as sign-in and exchange responses carry it.
|
|
8
|
+
*/
|
|
9
|
+
interface MintedSessionFields {
|
|
10
|
+
token: string;
|
|
11
|
+
sessionKind: SessionKind;
|
|
12
|
+
expiresAt: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* What ``describe_session_token`` reports about a presented session.
|
|
16
|
+
*
|
|
17
|
+
* ``accountUuid`` / ``switchedFromAccountUuid`` let the frontend check that an
|
|
18
|
+
* account-switch stash belongs to the account that switched (the restore in
|
|
19
|
+
* ``/api/auth/end-temp-session``). Both describe a token the caller already
|
|
20
|
+
* holds.
|
|
21
|
+
*/
|
|
22
|
+
interface SessionDescription {
|
|
23
|
+
sessionKind: SessionKind;
|
|
24
|
+
expiresAt: string;
|
|
25
|
+
accountUuid?: string | null;
|
|
26
|
+
switchedFromAccountUuid?: string | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The kind of session a cookie carries, and the kind of host that reads it.
|
|
30
|
+
*/
|
|
31
|
+
type SessionKind = typeof SessionKind[keyof typeof SessionKind];
|
|
32
|
+
declare const SessionKind: {
|
|
33
|
+
readonly account: "account";
|
|
34
|
+
readonly site: "site";
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
|
|
39
|
+
* (group map from emit_openapi.py). Do not edit manually.
|
|
40
|
+
* Group: account
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* One Organization in which the Account has finance access.
|
|
45
|
+
*/
|
|
46
|
+
interface AccountBillingOrganizationRef {
|
|
47
|
+
id: number;
|
|
48
|
+
name?: string | null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Base account response for non-admin endpoints.
|
|
52
|
+
*
|
|
53
|
+
* Note: With Verified Credential Architecture, if email/phone is set,
|
|
54
|
+
* it's verified by construction. The *_verified_at timestamps record when.
|
|
55
|
+
* Credentials are IMMUTABLE once set.
|
|
56
|
+
*/
|
|
57
|
+
interface AccountResponse {
|
|
58
|
+
id: number;
|
|
59
|
+
uuid: string;
|
|
60
|
+
loggedIn: boolean;
|
|
61
|
+
avatarUrl: string | null;
|
|
62
|
+
avatarIcon: AccountResponseAvatarIcon;
|
|
63
|
+
avatarColor: AccountResponseAvatarColor;
|
|
64
|
+
avatarSource: AccountResponseAvatarSource;
|
|
65
|
+
avatarCustomized: boolean;
|
|
66
|
+
avatarUseGravatar: boolean;
|
|
67
|
+
email: string | null;
|
|
68
|
+
phone: string | null;
|
|
69
|
+
emailVerifiedAt: string | null;
|
|
70
|
+
phoneVerifiedAt: string | null;
|
|
71
|
+
name: string | null;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
isSuperuser: boolean;
|
|
74
|
+
enabled: boolean;
|
|
75
|
+
signupWorkspaceId: number | null;
|
|
76
|
+
tosAccepted: boolean;
|
|
77
|
+
optedOut: boolean;
|
|
78
|
+
locale: string | null;
|
|
79
|
+
timezone: string | null;
|
|
80
|
+
}
|
|
81
|
+
type AccountResponseAvatarColor = typeof AccountResponseAvatarColor[keyof typeof AccountResponseAvatarColor];
|
|
82
|
+
declare const AccountResponseAvatarColor: {
|
|
83
|
+
readonly teal: "teal";
|
|
84
|
+
readonly sky: "sky";
|
|
85
|
+
readonly blue: "blue";
|
|
86
|
+
readonly indigo: "indigo";
|
|
87
|
+
readonly violet: "violet";
|
|
88
|
+
readonly fuchsia: "fuchsia";
|
|
89
|
+
readonly slate: "slate";
|
|
90
|
+
};
|
|
91
|
+
type AccountResponseAvatarIcon = typeof AccountResponseAvatarIcon[keyof typeof AccountResponseAvatarIcon] | null;
|
|
92
|
+
declare const AccountResponseAvatarIcon: {
|
|
93
|
+
readonly user: "user";
|
|
94
|
+
readonly stethoscope: "stethoscope";
|
|
95
|
+
readonly heart: "heart";
|
|
96
|
+
readonly shield: "shield";
|
|
97
|
+
readonly sparkles: "sparkles";
|
|
98
|
+
readonly star: "star";
|
|
99
|
+
};
|
|
100
|
+
type AccountResponseAvatarSource = typeof AccountResponseAvatarSource[keyof typeof AccountResponseAvatarSource];
|
|
101
|
+
declare const AccountResponseAvatarSource: {
|
|
102
|
+
readonly upload: "upload";
|
|
103
|
+
readonly custom: "custom";
|
|
104
|
+
readonly external: "external";
|
|
105
|
+
readonly gravatar: "gravatar";
|
|
106
|
+
readonly initials: "initials";
|
|
107
|
+
};
|
|
108
|
+
interface AdminAccountMembershipResponse {
|
|
109
|
+
workspaceUuid: string;
|
|
110
|
+
workspaceName: string;
|
|
111
|
+
role: string;
|
|
112
|
+
createdAt: string;
|
|
113
|
+
tosAccepted: boolean;
|
|
114
|
+
memberRoleId: number;
|
|
115
|
+
memberId: number;
|
|
116
|
+
glbLinked: boolean;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Response for an account's organization membership.
|
|
120
|
+
*/
|
|
121
|
+
interface AdminAccountOrgMembershipResponse {
|
|
122
|
+
organizationId: number;
|
|
123
|
+
organizationUuid: string;
|
|
124
|
+
organizationName: string;
|
|
125
|
+
organizationSlug: string;
|
|
126
|
+
organizationLogoUrl: string | null;
|
|
127
|
+
role: string;
|
|
128
|
+
name: string | null;
|
|
129
|
+
accountName: string | null;
|
|
130
|
+
externalId: string | null;
|
|
131
|
+
hasBillingAccess?: boolean;
|
|
132
|
+
createdAt: string;
|
|
133
|
+
updatedAt: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Detailed account response for admin endpoints including related entities
|
|
137
|
+
*/
|
|
138
|
+
interface AdminAccountResponse {
|
|
139
|
+
id: number;
|
|
140
|
+
uuid: string;
|
|
141
|
+
loggedIn: boolean;
|
|
142
|
+
avatarUrl: string | null;
|
|
143
|
+
avatarIcon: AdminAccountResponseAvatarIcon;
|
|
144
|
+
avatarColor: AdminAccountResponseAvatarColor;
|
|
145
|
+
avatarSource: AdminAccountResponseAvatarSource;
|
|
146
|
+
avatarCustomized: boolean;
|
|
147
|
+
avatarUseGravatar: boolean;
|
|
148
|
+
email: string | null;
|
|
149
|
+
phone: string | null;
|
|
150
|
+
emailVerifiedAt: string | null;
|
|
151
|
+
phoneVerifiedAt: string | null;
|
|
152
|
+
name: string | null;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
isSuperuser: boolean;
|
|
155
|
+
enabled: boolean;
|
|
156
|
+
signupWorkspaceId: number | null;
|
|
157
|
+
tosAccepted: boolean;
|
|
158
|
+
optedOut: boolean;
|
|
159
|
+
locale: string | null;
|
|
160
|
+
timezone: string | null;
|
|
161
|
+
billingOrganizations?: AccountBillingOrganizationRef[];
|
|
162
|
+
pendingDeletion?: boolean;
|
|
163
|
+
deletionRequestedAt?: string | null;
|
|
164
|
+
}
|
|
165
|
+
type AdminAccountResponseAvatarColor = typeof AdminAccountResponseAvatarColor[keyof typeof AdminAccountResponseAvatarColor];
|
|
166
|
+
declare const AdminAccountResponseAvatarColor: {
|
|
167
|
+
readonly teal: "teal";
|
|
168
|
+
readonly sky: "sky";
|
|
169
|
+
readonly blue: "blue";
|
|
170
|
+
readonly indigo: "indigo";
|
|
171
|
+
readonly violet: "violet";
|
|
172
|
+
readonly fuchsia: "fuchsia";
|
|
173
|
+
readonly slate: "slate";
|
|
174
|
+
};
|
|
175
|
+
type AdminAccountResponseAvatarIcon = typeof AdminAccountResponseAvatarIcon[keyof typeof AdminAccountResponseAvatarIcon] | null;
|
|
176
|
+
declare const AdminAccountResponseAvatarIcon: {
|
|
177
|
+
readonly user: "user";
|
|
178
|
+
readonly stethoscope: "stethoscope";
|
|
179
|
+
readonly heart: "heart";
|
|
180
|
+
readonly shield: "shield";
|
|
181
|
+
readonly sparkles: "sparkles";
|
|
182
|
+
readonly star: "star";
|
|
183
|
+
};
|
|
184
|
+
type AdminAccountResponseAvatarSource = typeof AdminAccountResponseAvatarSource[keyof typeof AdminAccountResponseAvatarSource];
|
|
185
|
+
declare const AdminAccountResponseAvatarSource: {
|
|
186
|
+
readonly upload: "upload";
|
|
187
|
+
readonly custom: "custom";
|
|
188
|
+
readonly external: "external";
|
|
189
|
+
readonly gravatar: "gravatar";
|
|
190
|
+
readonly initials: "initials";
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Response model for when a new API key is created, including the full key.
|
|
194
|
+
*/
|
|
195
|
+
interface ApiKeyCreatedResponse {
|
|
196
|
+
id: number;
|
|
197
|
+
uuid: string;
|
|
198
|
+
name: string;
|
|
199
|
+
keyPrefix: string;
|
|
200
|
+
createdAt: string;
|
|
201
|
+
expiresAt?: string | null;
|
|
202
|
+
lastUsedAt?: string | null;
|
|
203
|
+
enabled: boolean;
|
|
204
|
+
scopes: string[];
|
|
205
|
+
appId?: number | null;
|
|
206
|
+
dataUseMode?: DataUseMode;
|
|
207
|
+
key: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Response model for API key information.
|
|
211
|
+
*/
|
|
212
|
+
interface ApiKeyResponse {
|
|
213
|
+
id: number;
|
|
214
|
+
uuid: string;
|
|
215
|
+
name: string;
|
|
216
|
+
keyPrefix: string;
|
|
217
|
+
createdAt: string;
|
|
218
|
+
expiresAt?: string | null;
|
|
219
|
+
lastUsedAt?: string | null;
|
|
220
|
+
enabled: boolean;
|
|
221
|
+
scopes: string[];
|
|
222
|
+
appId?: number | null;
|
|
223
|
+
dataUseMode?: DataUseMode;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Response after canceling a credential change invitation.
|
|
227
|
+
*/
|
|
228
|
+
interface CancelCredentialChangeInviteResponse {
|
|
229
|
+
success: boolean;
|
|
230
|
+
message: string;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Response after canceling a credential change request.
|
|
234
|
+
*/
|
|
235
|
+
interface CancelCredentialChangeResponse {
|
|
236
|
+
success: boolean;
|
|
237
|
+
message: string;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Response after confirming a credential change invitation.
|
|
241
|
+
*/
|
|
242
|
+
interface CredentialChangeInviteConfirmResponse {
|
|
243
|
+
success: boolean;
|
|
244
|
+
message: string;
|
|
245
|
+
credentialType?: CredentialChangeInviteConfirmResponseCredentialType;
|
|
246
|
+
}
|
|
247
|
+
type CredentialChangeInviteConfirmResponseCredentialType = typeof CredentialChangeInviteConfirmResponseCredentialType[keyof typeof CredentialChangeInviteConfirmResponseCredentialType] | null;
|
|
248
|
+
declare const CredentialChangeInviteConfirmResponseCredentialType: {
|
|
249
|
+
readonly email: "email";
|
|
250
|
+
readonly phone: "phone";
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Response with details of a credential change invitation.
|
|
254
|
+
*
|
|
255
|
+
* Used for the confirmation page to show what change is being proposed.
|
|
256
|
+
*/
|
|
257
|
+
interface CredentialChangeInviteDetailsResponse {
|
|
258
|
+
id: number;
|
|
259
|
+
credentialType: CredentialChangeInviteDetailsResponseCredentialType;
|
|
260
|
+
newValue: string;
|
|
261
|
+
workspaceName: string;
|
|
262
|
+
workspaceUuid: string;
|
|
263
|
+
initiatedByName: string | null;
|
|
264
|
+
createdAt: string;
|
|
265
|
+
expiresAt: string;
|
|
266
|
+
isExpired: boolean;
|
|
267
|
+
isValid: boolean;
|
|
268
|
+
}
|
|
269
|
+
type CredentialChangeInviteDetailsResponseCredentialType = typeof CredentialChangeInviteDetailsResponseCredentialType[keyof typeof CredentialChangeInviteDetailsResponseCredentialType];
|
|
270
|
+
declare const CredentialChangeInviteDetailsResponseCredentialType: {
|
|
271
|
+
readonly email: "email";
|
|
272
|
+
readonly phone: "phone";
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Response after creating a credential change invitation.
|
|
276
|
+
*/
|
|
277
|
+
interface CredentialChangeInviteResponse {
|
|
278
|
+
id: number;
|
|
279
|
+
credentialType: CredentialChangeInviteResponseCredentialType;
|
|
280
|
+
maskedNewValue: string;
|
|
281
|
+
expiresAt: string;
|
|
282
|
+
message: string;
|
|
283
|
+
}
|
|
284
|
+
type CredentialChangeInviteResponseCredentialType = typeof CredentialChangeInviteResponseCredentialType[keyof typeof CredentialChangeInviteResponseCredentialType];
|
|
285
|
+
declare const CredentialChangeInviteResponseCredentialType: {
|
|
286
|
+
readonly email: "email";
|
|
287
|
+
readonly phone: "phone";
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Response after requesting a credential change.
|
|
291
|
+
*/
|
|
292
|
+
interface CredentialChangeRequestResponse {
|
|
293
|
+
id: number;
|
|
294
|
+
credentialType: CredentialChangeRequestResponseCredentialType;
|
|
295
|
+
expiresAt: string;
|
|
296
|
+
message: string;
|
|
297
|
+
}
|
|
298
|
+
type CredentialChangeRequestResponseCredentialType = typeof CredentialChangeRequestResponseCredentialType[keyof typeof CredentialChangeRequestResponseCredentialType];
|
|
299
|
+
declare const CredentialChangeRequestResponseCredentialType: {
|
|
300
|
+
readonly email: "email";
|
|
301
|
+
readonly phone: "phone";
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Response after verifying a credential change.
|
|
305
|
+
*/
|
|
306
|
+
interface CredentialChangeVerifyResponse {
|
|
307
|
+
success: boolean;
|
|
308
|
+
message: string;
|
|
309
|
+
credentialType?: CredentialChangeVerifyResponseCredentialType;
|
|
310
|
+
}
|
|
311
|
+
type CredentialChangeVerifyResponseCredentialType = typeof CredentialChangeVerifyResponseCredentialType[keyof typeof CredentialChangeVerifyResponseCredentialType] | null;
|
|
312
|
+
declare const CredentialChangeVerifyResponseCredentialType: {
|
|
313
|
+
readonly email: "email";
|
|
314
|
+
readonly phone: "phone";
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* What a *credential* may carry (ADR-18 §1), not what a member may see.
|
|
318
|
+
*
|
|
319
|
+
* This is an axis on the connection, deliberately not a scope: scopes are
|
|
320
|
+
* additive grants for cross-member access, and a member's own data is reached
|
|
321
|
+
* with no scope at all, so no scope value can express "this channel must not
|
|
322
|
+
* carry PHI". Computed at mint time and mutable afterwards **only toward**
|
|
323
|
+
* :attr:`NO_PHI` — the same "narrows, never widens" doctrine as
|
|
324
|
+
* ``scope_restriction`` and ``Device.enrollment_scope_ceiling``. Widening is a
|
|
325
|
+
* re-consent, i.e. revoke and re-mint under lifted conditions.
|
|
326
|
+
*/
|
|
327
|
+
type DataUseMode = typeof DataUseMode[keyof typeof DataUseMode];
|
|
328
|
+
declare const DataUseMode: {
|
|
329
|
+
readonly unrestricted: "unrestricted";
|
|
330
|
+
readonly no_phi: "no_phi";
|
|
331
|
+
};
|
|
332
|
+
interface LoginResponse {
|
|
333
|
+
token: string;
|
|
334
|
+
accountId: number;
|
|
335
|
+
accountName?: string | null;
|
|
336
|
+
accountUuid?: string | null;
|
|
337
|
+
requiresTwoFactor?: boolean | null;
|
|
338
|
+
availableTwoFactorMethods?: unknown[] | null;
|
|
339
|
+
sessionKind?: SessionKind | 'widget' | null;
|
|
340
|
+
expiresAt?: string | null;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Response for a pending credential change invitation.
|
|
344
|
+
*/
|
|
345
|
+
interface PendingCredentialChangeInviteResponse {
|
|
346
|
+
id: number;
|
|
347
|
+
credentialType: PendingCredentialChangeInviteResponseCredentialType;
|
|
348
|
+
maskedNewValue: string;
|
|
349
|
+
workspaceName: string;
|
|
350
|
+
initiatedByName: string | null;
|
|
351
|
+
createdAt: string;
|
|
352
|
+
expiresAt: string;
|
|
353
|
+
isExpired: boolean;
|
|
354
|
+
status: string;
|
|
355
|
+
}
|
|
356
|
+
type PendingCredentialChangeInviteResponseCredentialType = typeof PendingCredentialChangeInviteResponseCredentialType[keyof typeof PendingCredentialChangeInviteResponseCredentialType];
|
|
357
|
+
declare const PendingCredentialChangeInviteResponseCredentialType: {
|
|
358
|
+
readonly email: "email";
|
|
359
|
+
readonly phone: "phone";
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Response for a pending credential change request.
|
|
363
|
+
*/
|
|
364
|
+
interface PendingCredentialChangeResponse {
|
|
365
|
+
id: number;
|
|
366
|
+
credentialType: PendingCredentialChangeResponseCredentialType;
|
|
367
|
+
maskedNewValue: string;
|
|
368
|
+
createdAt: string;
|
|
369
|
+
expiresAt: string;
|
|
370
|
+
isExpired: boolean;
|
|
371
|
+
attempts: number;
|
|
372
|
+
}
|
|
373
|
+
type PendingCredentialChangeResponseCredentialType = typeof PendingCredentialChangeResponseCredentialType[keyof typeof PendingCredentialChangeResponseCredentialType];
|
|
374
|
+
declare const PendingCredentialChangeResponseCredentialType: {
|
|
375
|
+
readonly email: "email";
|
|
376
|
+
readonly phone: "phone";
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* Response model for recovery codes
|
|
380
|
+
*/
|
|
381
|
+
interface RecoveryCodeResponse {
|
|
382
|
+
/** List of recovery codes (only shown once) */
|
|
383
|
+
codes: string[];
|
|
384
|
+
/** When the codes were generated */
|
|
385
|
+
generatedAt: string;
|
|
386
|
+
warning?: string;
|
|
387
|
+
}
|
|
388
|
+
interface SendLoginCodeResponse {
|
|
389
|
+
success: boolean;
|
|
390
|
+
message?: string | null;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Response for TOTP setup initiation
|
|
394
|
+
*/
|
|
395
|
+
interface TOTPSetupResponse {
|
|
396
|
+
/** Session ID for completing setup */
|
|
397
|
+
setupId: string;
|
|
398
|
+
/** Base32 encoded TOTP secret */
|
|
399
|
+
secret: string;
|
|
400
|
+
/** QR code URL for easy setup */
|
|
401
|
+
qrCodeUrl: string;
|
|
402
|
+
/** Manual entry key for authenticator apps */
|
|
403
|
+
manualEntryKey: string;
|
|
404
|
+
/** Issuer name for TOTP */
|
|
405
|
+
issuer: string;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Response model for 2FA method details
|
|
409
|
+
*/
|
|
410
|
+
interface TwoFactorMethodResponse {
|
|
411
|
+
id: number;
|
|
412
|
+
methodType: string;
|
|
413
|
+
name: string;
|
|
414
|
+
enabled: boolean;
|
|
415
|
+
createdAt: string;
|
|
416
|
+
lastUsedAt?: string | null;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Generic response for 2FA operations
|
|
420
|
+
*/
|
|
421
|
+
interface TwoFactorOperationResponse {
|
|
422
|
+
/** Whether the operation was successful */
|
|
423
|
+
success: boolean;
|
|
424
|
+
/** Human-readable message */
|
|
425
|
+
message: string;
|
|
426
|
+
/** ID of the affected 2FA method */
|
|
427
|
+
methodId?: number | null;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Response for overall 2FA status
|
|
431
|
+
*/
|
|
432
|
+
interface TwoFactorStatusResponse {
|
|
433
|
+
/** Whether any 2FA method is enabled */
|
|
434
|
+
enabled: boolean;
|
|
435
|
+
/** List of configured 2FA methods */
|
|
436
|
+
methods: TwoFactorMethodResponse[];
|
|
437
|
+
/** Number of unused recovery codes */
|
|
438
|
+
recoveryCodesCount: number;
|
|
439
|
+
/** When recovery codes were last generated */
|
|
440
|
+
lastRecoveryCodesGenerated?: string | null;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Authenticator selection criteria in WebAuthn creation options.
|
|
444
|
+
*/
|
|
445
|
+
interface WebAuthnAuthenticatorSelection {
|
|
446
|
+
userVerification: WebAuthnAuthenticatorSelectionUserVerification;
|
|
447
|
+
residentKey: WebAuthnAuthenticatorSelectionResidentKey;
|
|
448
|
+
}
|
|
449
|
+
type WebAuthnAuthenticatorSelectionResidentKey = typeof WebAuthnAuthenticatorSelectionResidentKey[keyof typeof WebAuthnAuthenticatorSelectionResidentKey];
|
|
450
|
+
declare const WebAuthnAuthenticatorSelectionResidentKey: {
|
|
451
|
+
readonly required: "required";
|
|
452
|
+
readonly preferred: "preferred";
|
|
453
|
+
readonly discouraged: "discouraged";
|
|
454
|
+
};
|
|
455
|
+
type WebAuthnAuthenticatorSelectionUserVerification = typeof WebAuthnAuthenticatorSelectionUserVerification[keyof typeof WebAuthnAuthenticatorSelectionUserVerification];
|
|
456
|
+
declare const WebAuthnAuthenticatorSelectionUserVerification: {
|
|
457
|
+
readonly required: "required";
|
|
458
|
+
readonly preferred: "preferred";
|
|
459
|
+
readonly discouraged: "discouraged";
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Credential creation options passed to navigator.credentials.create().
|
|
463
|
+
*/
|
|
464
|
+
interface WebAuthnCredentialCreationOptions {
|
|
465
|
+
challenge: string;
|
|
466
|
+
rp: WebAuthnRelyingParty;
|
|
467
|
+
user: WebAuthnUserEntity;
|
|
468
|
+
pubKeyCredParams: WebAuthnPubKeyCredParam[];
|
|
469
|
+
excludeCredentials: WebAuthnCredentialDescriptor[];
|
|
470
|
+
authenticatorSelection: WebAuthnAuthenticatorSelection;
|
|
471
|
+
timeout: number;
|
|
472
|
+
attestation: WebAuthnCredentialCreationOptionsAttestation;
|
|
473
|
+
}
|
|
474
|
+
type WebAuthnCredentialCreationOptionsAttestation = typeof WebAuthnCredentialCreationOptionsAttestation[keyof typeof WebAuthnCredentialCreationOptionsAttestation];
|
|
475
|
+
declare const WebAuthnCredentialCreationOptionsAttestation: {
|
|
476
|
+
readonly none: "none";
|
|
477
|
+
readonly indirect: "indirect";
|
|
478
|
+
readonly direct: "direct";
|
|
479
|
+
readonly enterprise: "enterprise";
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Descriptor for a registered WebAuthn credential.
|
|
483
|
+
*/
|
|
484
|
+
interface WebAuthnCredentialDescriptor {
|
|
485
|
+
id: string;
|
|
486
|
+
type: 'public-key';
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* A public-key credential parameter the authenticator may create.
|
|
490
|
+
*/
|
|
491
|
+
interface WebAuthnPubKeyCredParam {
|
|
492
|
+
alg: number;
|
|
493
|
+
type: 'public-key';
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Response for WebAuthn registration initiation
|
|
497
|
+
*/
|
|
498
|
+
interface WebAuthnRegistrationResponse {
|
|
499
|
+
/** Session ID for completing setup */
|
|
500
|
+
setupId: string;
|
|
501
|
+
/** WebAuthn credential creation options */
|
|
502
|
+
credentialCreationOptions: WebAuthnCredentialCreationOptions;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Relying party entity in WebAuthn creation options.
|
|
506
|
+
*/
|
|
507
|
+
interface WebAuthnRelyingParty {
|
|
508
|
+
name: string;
|
|
509
|
+
id: string;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* User entity in WebAuthn creation options.
|
|
513
|
+
*/
|
|
514
|
+
interface WebAuthnUserEntity {
|
|
515
|
+
/** Base64url-encoded user handle */
|
|
516
|
+
id: string;
|
|
517
|
+
name: string;
|
|
518
|
+
displayName: string;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export { DataUseMode as D, AccountResponseAvatarColor as l, AccountResponseAvatarIcon as m, AccountResponseAvatarSource as n, SessionKind as t };
|
|
522
|
+
export type { AccountResponse as A, AdminAccountMembershipResponse as B, CancelCredentialChangeInviteResponse as C, LoginResponse as L, MintedSessionFields as M, PendingCredentialChangeResponse as P, RecoveryCodeResponse as R, SendLoginCodeResponse as S, TOTPSetupResponse as T, WebAuthnAuthenticatorSelection as W, ApiKeyResponse as a, ApiKeyCreatedResponse as b, CancelCredentialChangeResponse as c, CredentialChangeInviteConfirmResponse as d, CredentialChangeInviteDetailsResponse as e, CredentialChangeInviteResponse as f, CredentialChangeRequestResponse as g, CredentialChangeVerifyResponse as h, PendingCredentialChangeInviteResponse as i, TwoFactorOperationResponse as j, AccountBillingOrganizationRef as k, AdminAccountResponse as o, AdminAccountOrgMembershipResponse as p, TwoFactorMethodResponse as q, TwoFactorStatusResponse as r, SessionDescription as s, WebAuthnCredentialCreationOptions as u, WebAuthnCredentialDescriptor as v, WebAuthnPubKeyCredParam as w, WebAuthnRegistrationResponse as x, WebAuthnRelyingParty as y, WebAuthnUserEntity as z };
|