@hyper.authio/admin 0.7.0 → 0.8.1
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/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +179 -24
- package/dist/index.d.ts +179 -24
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { AuthioAccountCredential, AuthioAccountCredentialOptions } from '@hyper.
|
|
|
3
3
|
export { AuthioAdminError, AuthioAdminNotification, AuthioConfigurationError, parseAuthioAdminEnvelope } from '@hyper.authio/client';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api
|
|
6
|
+
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api a69a97617839b76bd36ee0a6b7b1e80397205fd7).
|
|
7
7
|
* Do not edit: run `npm run generate -w @hyper.authio/admin`.
|
|
8
8
|
*/
|
|
9
9
|
interface paths {
|
|
@@ -262,7 +262,7 @@ interface paths {
|
|
|
262
262
|
path?: never;
|
|
263
263
|
cookie?: never;
|
|
264
264
|
};
|
|
265
|
-
/** Reports whether the account has an authenticator
|
|
265
|
+
/** Reports whether the account has an authenticator app in force, and how many recovery codes it has left. */
|
|
266
266
|
get: operations["Totp_GetStatus"];
|
|
267
267
|
put?: never;
|
|
268
268
|
post?: never;
|
|
@@ -284,7 +284,8 @@ interface paths {
|
|
|
284
284
|
/**
|
|
285
285
|
* Starts enrolment by issuing a fresh key for an authenticator application.
|
|
286
286
|
* @description Two-factor sign-in is not enabled here: the key only takes effect once a valid code proves the
|
|
287
|
-
* pairing works, which is what keeps a mistyped key from locking the account out at the next sign-in.
|
|
287
|
+
* pairing works, which is what keeps a mistyped key from locking the account out at the next sign-in. Refused
|
|
288
|
+
* with a conflict while an app is in force, because issuing a key would stop the codes that app shows.
|
|
288
289
|
*/
|
|
289
290
|
post: operations["Totp_StartEnrollment"];
|
|
290
291
|
delete?: never;
|
|
@@ -895,6 +896,24 @@ interface paths {
|
|
|
895
896
|
patch?: never;
|
|
896
897
|
trace?: never;
|
|
897
898
|
};
|
|
899
|
+
"/api/v1/admin/users/{userId}/mfa/totp": {
|
|
900
|
+
parameters: {
|
|
901
|
+
query?: never;
|
|
902
|
+
header?: never;
|
|
903
|
+
path?: never;
|
|
904
|
+
cookie?: never;
|
|
905
|
+
};
|
|
906
|
+
/** Reports whether a user has an authenticator app in force and how many recovery codes they have left. */
|
|
907
|
+
get: operations["UserTotp_GetStatus"];
|
|
908
|
+
put?: never;
|
|
909
|
+
post?: never;
|
|
910
|
+
/** Resets a user's authenticator app: the secret and the recovery codes are discarded. */
|
|
911
|
+
delete: operations["UserTotp_Reset"];
|
|
912
|
+
options?: never;
|
|
913
|
+
head?: never;
|
|
914
|
+
patch?: never;
|
|
915
|
+
trace?: never;
|
|
916
|
+
};
|
|
898
917
|
"/api/v1/admin/threat-incidents/{incidentId}/analyses": {
|
|
899
918
|
parameters: {
|
|
900
919
|
query?: never;
|
|
@@ -10529,10 +10548,20 @@ interface components {
|
|
|
10529
10548
|
signEncryptedTokens?: boolean;
|
|
10530
10549
|
/** @description Gets or sets the type of cryptographic operation to be performed. */
|
|
10531
10550
|
cryptographyType?: components["schemas"]["CryptographyType"];
|
|
10532
|
-
/**
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10551
|
+
/**
|
|
10552
|
+
* @description Gets or sets the algorithm family the ID token, the signed UserInfo response and the logout token are signed
|
|
10553
|
+
* with.
|
|
10554
|
+
*/
|
|
10555
|
+
idTokenSigningAlgorithmType?: components["schemas"]["AlgorithmType"];
|
|
10556
|
+
/** @description Gets or sets the algorithm the ID token, the signed UserInfo response and the logout token are signed with. */
|
|
10557
|
+
idTokenSigningAlgorithm?: components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
10558
|
+
/** @description Gets or sets the algorithm access tokens are signed with. */
|
|
10559
|
+
accessTokenSigningAlgorithm?: components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
10560
|
+
/**
|
|
10561
|
+
* @description Gets or sets whether the client's access tokens can only be verified by introspection where resource servers
|
|
10562
|
+
* read them.
|
|
10563
|
+
*/
|
|
10564
|
+
accessTokenRequiresIntrospection?: boolean;
|
|
10536
10565
|
/** @description Jwe token algorithm type. */
|
|
10537
10566
|
algorithmJweType?: components["schemas"]["AlgorithmType"];
|
|
10538
10567
|
/** @description Gets or sets the encryption algorithm used for securing content. */
|
|
@@ -11041,8 +11070,6 @@ interface components {
|
|
|
11041
11070
|
emailConfirmed?: boolean;
|
|
11042
11071
|
/** @description Indicates whether the user's phone number has been confirmed. */
|
|
11043
11072
|
phoneNumberConfirmed?: boolean;
|
|
11044
|
-
/** @description Indicates whether two-factor authentication is enabled for the user. */
|
|
11045
|
-
twoFactorEnabled?: boolean;
|
|
11046
11073
|
/** @description Indicates whether account lockout is enabled for the user. */
|
|
11047
11074
|
lockoutEnabled?: boolean;
|
|
11048
11075
|
};
|
|
@@ -11109,8 +11136,6 @@ interface components {
|
|
|
11109
11136
|
emailConfirmed?: boolean;
|
|
11110
11137
|
/** @description Indicates whether the user's phone number has been confirmed. */
|
|
11111
11138
|
phoneNumberConfirmed?: boolean;
|
|
11112
|
-
/** @description Indicates whether two-factor authentication is enabled for the user. */
|
|
11113
|
-
twoFactorEnabled?: boolean;
|
|
11114
11139
|
/** @description Indicates whether account lockout is enabled for the user. */
|
|
11115
11140
|
lockoutEnabled?: boolean;
|
|
11116
11141
|
};
|
|
@@ -15355,12 +15380,14 @@ interface components {
|
|
|
15355
15380
|
TokenConfigurationRequest: {
|
|
15356
15381
|
encrypted?: boolean;
|
|
15357
15382
|
cryptographyType?: components["schemas"]["CryptographyType"];
|
|
15358
|
-
|
|
15383
|
+
/** @description The algorithm family the ID token, the signed UserInfo response and the logout token are signed with. */
|
|
15384
|
+
idTokenSigningAlgorithmType?: components["schemas"]["AlgorithmType"];
|
|
15359
15385
|
algorithmJweType?: components["schemas"]["AlgorithmType"];
|
|
15360
|
-
|
|
15386
|
+
idTokenSigningAlgorithm?: null | components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15361
15387
|
jsonWebKeyECTypes?: null | components["schemas"]["JsonWebKeyCurveType"];
|
|
15362
15388
|
encryptionAlgorithmKey?: null | components["schemas"]["EncryptionAlgorithmKeyType"];
|
|
15363
15389
|
encryptionAlgorithmContent?: null | components["schemas"]["EncryptionAlgorithmContentType"];
|
|
15390
|
+
accessTokenSigningAlgorithm?: null | components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15364
15391
|
};
|
|
15365
15392
|
/** @description The verification code proving control of the paired authenticator. */
|
|
15366
15393
|
TotpCodeRequest: {
|
|
@@ -15637,10 +15664,14 @@ interface components {
|
|
|
15637
15664
|
encrypted?: boolean;
|
|
15638
15665
|
/** @description Gets or sets the type of cryptographic operation to be performed. */
|
|
15639
15666
|
cryptographyType?: components["schemas"]["CryptographyType"];
|
|
15640
|
-
/**
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15667
|
+
/**
|
|
15668
|
+
* @description Gets or sets the algorithm family the ID token, the signed UserInfo response and the logout token are signed
|
|
15669
|
+
* with.
|
|
15670
|
+
*/
|
|
15671
|
+
idTokenSigningAlgorithmType?: components["schemas"]["AlgorithmType"];
|
|
15672
|
+
/** @description Gets or sets the algorithm the ID token, the signed UserInfo response and the logout token are signed with. */
|
|
15673
|
+
idTokenSigningAlgorithm?: components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15674
|
+
accessTokenSigningAlgorithm?: null | components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15644
15675
|
/** @description Jwe token algorithm type. */
|
|
15645
15676
|
algorithmJweType?: components["schemas"]["AlgorithmType"];
|
|
15646
15677
|
/** @description Gets or sets the JSON Web Key (JWK) Elliptic Curve types supported by the application. */
|
|
@@ -15985,8 +16016,6 @@ interface components {
|
|
|
15985
16016
|
emailConfirmed?: boolean;
|
|
15986
16017
|
/** @description Gets or sets a value indicating whether the user's phone number has been confirmed. */
|
|
15987
16018
|
phoneNumberConfirmed?: boolean;
|
|
15988
|
-
/** @description Gets or sets a value indicating whether two-factor authentication is enabled for the user. */
|
|
15989
|
-
twoFactorEnabled?: boolean;
|
|
15990
16019
|
/** @description Gets or sets a value indicating whether account lockout is enabled for the user. */
|
|
15991
16020
|
lockoutEnabled?: boolean;
|
|
15992
16021
|
/** @description Gets or sets the list of role names that should be assigned to the user. */
|
|
@@ -17911,7 +17940,7 @@ interface operations {
|
|
|
17911
17940
|
};
|
|
17912
17941
|
requestBody?: never;
|
|
17913
17942
|
responses: {
|
|
17914
|
-
/** @description
|
|
17943
|
+
/** @description OK */
|
|
17915
17944
|
200: {
|
|
17916
17945
|
headers: {
|
|
17917
17946
|
[name: string]: unknown;
|
|
@@ -17920,6 +17949,15 @@ interface operations {
|
|
|
17920
17949
|
"application/json": components["schemas"]["ApiResultOfTotpSetupResponse"];
|
|
17921
17950
|
};
|
|
17922
17951
|
};
|
|
17952
|
+
/** @description Conflict */
|
|
17953
|
+
409: {
|
|
17954
|
+
headers: {
|
|
17955
|
+
[name: string]: unknown;
|
|
17956
|
+
};
|
|
17957
|
+
content: {
|
|
17958
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
17959
|
+
};
|
|
17960
|
+
};
|
|
17923
17961
|
};
|
|
17924
17962
|
};
|
|
17925
17963
|
Totp_Enable: {
|
|
@@ -17956,6 +17994,15 @@ interface operations {
|
|
|
17956
17994
|
"application/json": components["schemas"]["ErrorResult"];
|
|
17957
17995
|
};
|
|
17958
17996
|
};
|
|
17997
|
+
/** @description Locked */
|
|
17998
|
+
423: {
|
|
17999
|
+
headers: {
|
|
18000
|
+
[name: string]: unknown;
|
|
18001
|
+
};
|
|
18002
|
+
content: {
|
|
18003
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
18004
|
+
};
|
|
18005
|
+
};
|
|
17959
18006
|
};
|
|
17960
18007
|
};
|
|
17961
18008
|
Totp_Disable: {
|
|
@@ -19227,6 +19274,79 @@ interface operations {
|
|
|
19227
19274
|
};
|
|
19228
19275
|
};
|
|
19229
19276
|
};
|
|
19277
|
+
UserTotp_GetStatus: {
|
|
19278
|
+
parameters: {
|
|
19279
|
+
query?: never;
|
|
19280
|
+
header?: never;
|
|
19281
|
+
path: {
|
|
19282
|
+
/** @description The user. */
|
|
19283
|
+
userId: string;
|
|
19284
|
+
};
|
|
19285
|
+
cookie?: never;
|
|
19286
|
+
};
|
|
19287
|
+
requestBody?: never;
|
|
19288
|
+
responses: {
|
|
19289
|
+
/** @description OK */
|
|
19290
|
+
200: {
|
|
19291
|
+
headers: {
|
|
19292
|
+
[name: string]: unknown;
|
|
19293
|
+
};
|
|
19294
|
+
content: {
|
|
19295
|
+
"application/json": components["schemas"]["ApiResultOfTotpStatusResponse"];
|
|
19296
|
+
};
|
|
19297
|
+
};
|
|
19298
|
+
/** @description Not Found */
|
|
19299
|
+
404: {
|
|
19300
|
+
headers: {
|
|
19301
|
+
[name: string]: unknown;
|
|
19302
|
+
};
|
|
19303
|
+
content: {
|
|
19304
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
19305
|
+
};
|
|
19306
|
+
};
|
|
19307
|
+
};
|
|
19308
|
+
};
|
|
19309
|
+
UserTotp_Reset: {
|
|
19310
|
+
parameters: {
|
|
19311
|
+
query?: never;
|
|
19312
|
+
header?: never;
|
|
19313
|
+
path: {
|
|
19314
|
+
/** @description The user. */
|
|
19315
|
+
userId: string;
|
|
19316
|
+
};
|
|
19317
|
+
cookie?: never;
|
|
19318
|
+
};
|
|
19319
|
+
requestBody?: never;
|
|
19320
|
+
responses: {
|
|
19321
|
+
/** @description OK */
|
|
19322
|
+
200: {
|
|
19323
|
+
headers: {
|
|
19324
|
+
[name: string]: unknown;
|
|
19325
|
+
};
|
|
19326
|
+
content: {
|
|
19327
|
+
"application/json": components["schemas"]["ApiResultOfObject"];
|
|
19328
|
+
};
|
|
19329
|
+
};
|
|
19330
|
+
/** @description Not Found */
|
|
19331
|
+
404: {
|
|
19332
|
+
headers: {
|
|
19333
|
+
[name: string]: unknown;
|
|
19334
|
+
};
|
|
19335
|
+
content: {
|
|
19336
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
19337
|
+
};
|
|
19338
|
+
};
|
|
19339
|
+
/** @description Conflict */
|
|
19340
|
+
409: {
|
|
19341
|
+
headers: {
|
|
19342
|
+
[name: string]: unknown;
|
|
19343
|
+
};
|
|
19344
|
+
content: {
|
|
19345
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
19346
|
+
};
|
|
19347
|
+
};
|
|
19348
|
+
};
|
|
19349
|
+
};
|
|
19230
19350
|
ThreatAnalysis_GetAll: {
|
|
19231
19351
|
parameters: {
|
|
19232
19352
|
query?: never;
|
|
@@ -33972,16 +34092,16 @@ type AuthioAdminResult<Id extends AuthioAdminOperationId, Kind extends AuthioAdm
|
|
|
33972
34092
|
type AuthioAdminMethod<Id extends AuthioAdminOperationId, Kind extends AuthioAdminResultKind> = {} extends AuthioAdminParams<Id> ? (params?: AuthioAdminParams<Id>, options?: AuthioAdminCallOptions) => Promise<AuthioAdminResult<Id, Kind>> : (params: AuthioAdminParams<Id>, options?: AuthioAdminCallOptions) => Promise<AuthioAdminResult<Id, Kind>>;
|
|
33973
34093
|
|
|
33974
34094
|
/**
|
|
33975
|
-
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api
|
|
34095
|
+
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api a69a97617839b76bd36ee0a6b7b1e80397205fd7).
|
|
33976
34096
|
* Do not edit: run `npm run generate -w @hyper.authio/admin`.
|
|
33977
34097
|
*/
|
|
33978
34098
|
|
|
33979
34099
|
/**
|
|
33980
34100
|
* The commit of authio.api whose OpenAPI document these operations were generated from.
|
|
33981
34101
|
*/
|
|
33982
|
-
declare const authioAdminOpenApiCommit = "
|
|
34102
|
+
declare const authioAdminOpenApiCommit = "a69a97617839b76bd36ee0a6b7b1e80397205fd7";
|
|
33983
34103
|
/**
|
|
33984
|
-
* Every Admin API operation (
|
|
34104
|
+
* Every Admin API operation (361), grouped by the controller its `operationId` names: `Realm_GetAllPaginated` is
|
|
33985
34105
|
* `realm.getAllPaginated`.
|
|
33986
34106
|
*/
|
|
33987
34107
|
interface AuthioAdminAreas {
|
|
@@ -35996,7 +36116,7 @@ interface AuthioAdminAreas {
|
|
|
35996
36116
|
/** Admin - Two-Factor */
|
|
35997
36117
|
readonly totp: {
|
|
35998
36118
|
/**
|
|
35999
|
-
* Reports whether the account has an authenticator
|
|
36119
|
+
* Reports whether the account has an authenticator app in force, and how many recovery codes it has left.
|
|
36000
36120
|
*
|
|
36001
36121
|
* `GET /api/v1/admin/users/me/mfa/totp` (`Totp_GetStatus`)
|
|
36002
36122
|
*/
|
|
@@ -36247,6 +36367,21 @@ interface AuthioAdminAreas {
|
|
|
36247
36367
|
*/
|
|
36248
36368
|
readonly getOverview: AuthioAdminMethod<"UserSuspensionOverview_GetOverview", "data">;
|
|
36249
36369
|
};
|
|
36370
|
+
/** Admin - User Two-Factor */
|
|
36371
|
+
readonly userTotp: {
|
|
36372
|
+
/**
|
|
36373
|
+
* Reports whether a user has an authenticator app in force and how many recovery codes they have left.
|
|
36374
|
+
*
|
|
36375
|
+
* `GET /api/v1/admin/users/{userId}/mfa/totp` (`UserTotp_GetStatus`)
|
|
36376
|
+
*/
|
|
36377
|
+
readonly getStatus: AuthioAdminMethod<"UserTotp_GetStatus", "data">;
|
|
36378
|
+
/**
|
|
36379
|
+
* Resets a user's authenticator app: the secret and the recovery codes are discarded.
|
|
36380
|
+
*
|
|
36381
|
+
* `DELETE /api/v1/admin/users/{userId}/mfa/totp` (`UserTotp_Reset`)
|
|
36382
|
+
*/
|
|
36383
|
+
readonly reset: AuthioAdminMethod<"UserTotp_Reset", "data">;
|
|
36384
|
+
};
|
|
36250
36385
|
/** Admin - Client Webhooks */
|
|
36251
36386
|
readonly webhook: {
|
|
36252
36387
|
/**
|
|
@@ -39586,6 +39721,26 @@ declare const authioAdminOperations: {
|
|
|
39586
39721
|
readonly body: "none";
|
|
39587
39722
|
};
|
|
39588
39723
|
};
|
|
39724
|
+
readonly userTotp: {
|
|
39725
|
+
readonly getStatus: {
|
|
39726
|
+
readonly id: "UserTotp_GetStatus";
|
|
39727
|
+
readonly method: "GET";
|
|
39728
|
+
readonly path: "/api/v1/admin/users/{userId}/mfa/totp";
|
|
39729
|
+
readonly result: "data";
|
|
39730
|
+
readonly pathParams: readonly ["userId"];
|
|
39731
|
+
readonly queryParams: readonly [];
|
|
39732
|
+
readonly body: "none";
|
|
39733
|
+
};
|
|
39734
|
+
readonly reset: {
|
|
39735
|
+
readonly id: "UserTotp_Reset";
|
|
39736
|
+
readonly method: "DELETE";
|
|
39737
|
+
readonly path: "/api/v1/admin/users/{userId}/mfa/totp";
|
|
39738
|
+
readonly result: "data";
|
|
39739
|
+
readonly pathParams: readonly ["userId"];
|
|
39740
|
+
readonly queryParams: readonly [];
|
|
39741
|
+
readonly body: "none";
|
|
39742
|
+
};
|
|
39743
|
+
};
|
|
39589
39744
|
readonly webhook: {
|
|
39590
39745
|
readonly getAll: {
|
|
39591
39746
|
readonly id: "Webhook_GetAll";
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AuthioAccountCredential, AuthioAccountCredentialOptions } from '@hyper.
|
|
|
3
3
|
export { AuthioAdminError, AuthioAdminNotification, AuthioConfigurationError, parseAuthioAdminEnvelope } from '@hyper.authio/client';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api
|
|
6
|
+
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api a69a97617839b76bd36ee0a6b7b1e80397205fd7).
|
|
7
7
|
* Do not edit: run `npm run generate -w @hyper.authio/admin`.
|
|
8
8
|
*/
|
|
9
9
|
interface paths {
|
|
@@ -262,7 +262,7 @@ interface paths {
|
|
|
262
262
|
path?: never;
|
|
263
263
|
cookie?: never;
|
|
264
264
|
};
|
|
265
|
-
/** Reports whether the account has an authenticator
|
|
265
|
+
/** Reports whether the account has an authenticator app in force, and how many recovery codes it has left. */
|
|
266
266
|
get: operations["Totp_GetStatus"];
|
|
267
267
|
put?: never;
|
|
268
268
|
post?: never;
|
|
@@ -284,7 +284,8 @@ interface paths {
|
|
|
284
284
|
/**
|
|
285
285
|
* Starts enrolment by issuing a fresh key for an authenticator application.
|
|
286
286
|
* @description Two-factor sign-in is not enabled here: the key only takes effect once a valid code proves the
|
|
287
|
-
* pairing works, which is what keeps a mistyped key from locking the account out at the next sign-in.
|
|
287
|
+
* pairing works, which is what keeps a mistyped key from locking the account out at the next sign-in. Refused
|
|
288
|
+
* with a conflict while an app is in force, because issuing a key would stop the codes that app shows.
|
|
288
289
|
*/
|
|
289
290
|
post: operations["Totp_StartEnrollment"];
|
|
290
291
|
delete?: never;
|
|
@@ -895,6 +896,24 @@ interface paths {
|
|
|
895
896
|
patch?: never;
|
|
896
897
|
trace?: never;
|
|
897
898
|
};
|
|
899
|
+
"/api/v1/admin/users/{userId}/mfa/totp": {
|
|
900
|
+
parameters: {
|
|
901
|
+
query?: never;
|
|
902
|
+
header?: never;
|
|
903
|
+
path?: never;
|
|
904
|
+
cookie?: never;
|
|
905
|
+
};
|
|
906
|
+
/** Reports whether a user has an authenticator app in force and how many recovery codes they have left. */
|
|
907
|
+
get: operations["UserTotp_GetStatus"];
|
|
908
|
+
put?: never;
|
|
909
|
+
post?: never;
|
|
910
|
+
/** Resets a user's authenticator app: the secret and the recovery codes are discarded. */
|
|
911
|
+
delete: operations["UserTotp_Reset"];
|
|
912
|
+
options?: never;
|
|
913
|
+
head?: never;
|
|
914
|
+
patch?: never;
|
|
915
|
+
trace?: never;
|
|
916
|
+
};
|
|
898
917
|
"/api/v1/admin/threat-incidents/{incidentId}/analyses": {
|
|
899
918
|
parameters: {
|
|
900
919
|
query?: never;
|
|
@@ -10529,10 +10548,20 @@ interface components {
|
|
|
10529
10548
|
signEncryptedTokens?: boolean;
|
|
10530
10549
|
/** @description Gets or sets the type of cryptographic operation to be performed. */
|
|
10531
10550
|
cryptographyType?: components["schemas"]["CryptographyType"];
|
|
10532
|
-
/**
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10551
|
+
/**
|
|
10552
|
+
* @description Gets or sets the algorithm family the ID token, the signed UserInfo response and the logout token are signed
|
|
10553
|
+
* with.
|
|
10554
|
+
*/
|
|
10555
|
+
idTokenSigningAlgorithmType?: components["schemas"]["AlgorithmType"];
|
|
10556
|
+
/** @description Gets or sets the algorithm the ID token, the signed UserInfo response and the logout token are signed with. */
|
|
10557
|
+
idTokenSigningAlgorithm?: components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
10558
|
+
/** @description Gets or sets the algorithm access tokens are signed with. */
|
|
10559
|
+
accessTokenSigningAlgorithm?: components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
10560
|
+
/**
|
|
10561
|
+
* @description Gets or sets whether the client's access tokens can only be verified by introspection where resource servers
|
|
10562
|
+
* read them.
|
|
10563
|
+
*/
|
|
10564
|
+
accessTokenRequiresIntrospection?: boolean;
|
|
10536
10565
|
/** @description Jwe token algorithm type. */
|
|
10537
10566
|
algorithmJweType?: components["schemas"]["AlgorithmType"];
|
|
10538
10567
|
/** @description Gets or sets the encryption algorithm used for securing content. */
|
|
@@ -11041,8 +11070,6 @@ interface components {
|
|
|
11041
11070
|
emailConfirmed?: boolean;
|
|
11042
11071
|
/** @description Indicates whether the user's phone number has been confirmed. */
|
|
11043
11072
|
phoneNumberConfirmed?: boolean;
|
|
11044
|
-
/** @description Indicates whether two-factor authentication is enabled for the user. */
|
|
11045
|
-
twoFactorEnabled?: boolean;
|
|
11046
11073
|
/** @description Indicates whether account lockout is enabled for the user. */
|
|
11047
11074
|
lockoutEnabled?: boolean;
|
|
11048
11075
|
};
|
|
@@ -11109,8 +11136,6 @@ interface components {
|
|
|
11109
11136
|
emailConfirmed?: boolean;
|
|
11110
11137
|
/** @description Indicates whether the user's phone number has been confirmed. */
|
|
11111
11138
|
phoneNumberConfirmed?: boolean;
|
|
11112
|
-
/** @description Indicates whether two-factor authentication is enabled for the user. */
|
|
11113
|
-
twoFactorEnabled?: boolean;
|
|
11114
11139
|
/** @description Indicates whether account lockout is enabled for the user. */
|
|
11115
11140
|
lockoutEnabled?: boolean;
|
|
11116
11141
|
};
|
|
@@ -15355,12 +15380,14 @@ interface components {
|
|
|
15355
15380
|
TokenConfigurationRequest: {
|
|
15356
15381
|
encrypted?: boolean;
|
|
15357
15382
|
cryptographyType?: components["schemas"]["CryptographyType"];
|
|
15358
|
-
|
|
15383
|
+
/** @description The algorithm family the ID token, the signed UserInfo response and the logout token are signed with. */
|
|
15384
|
+
idTokenSigningAlgorithmType?: components["schemas"]["AlgorithmType"];
|
|
15359
15385
|
algorithmJweType?: components["schemas"]["AlgorithmType"];
|
|
15360
|
-
|
|
15386
|
+
idTokenSigningAlgorithm?: null | components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15361
15387
|
jsonWebKeyECTypes?: null | components["schemas"]["JsonWebKeyCurveType"];
|
|
15362
15388
|
encryptionAlgorithmKey?: null | components["schemas"]["EncryptionAlgorithmKeyType"];
|
|
15363
15389
|
encryptionAlgorithmContent?: null | components["schemas"]["EncryptionAlgorithmContentType"];
|
|
15390
|
+
accessTokenSigningAlgorithm?: null | components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15364
15391
|
};
|
|
15365
15392
|
/** @description The verification code proving control of the paired authenticator. */
|
|
15366
15393
|
TotpCodeRequest: {
|
|
@@ -15637,10 +15664,14 @@ interface components {
|
|
|
15637
15664
|
encrypted?: boolean;
|
|
15638
15665
|
/** @description Gets or sets the type of cryptographic operation to be performed. */
|
|
15639
15666
|
cryptographyType?: components["schemas"]["CryptographyType"];
|
|
15640
|
-
/**
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15667
|
+
/**
|
|
15668
|
+
* @description Gets or sets the algorithm family the ID token, the signed UserInfo response and the logout token are signed
|
|
15669
|
+
* with.
|
|
15670
|
+
*/
|
|
15671
|
+
idTokenSigningAlgorithmType?: components["schemas"]["AlgorithmType"];
|
|
15672
|
+
/** @description Gets or sets the algorithm the ID token, the signed UserInfo response and the logout token are signed with. */
|
|
15673
|
+
idTokenSigningAlgorithm?: components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15674
|
+
accessTokenSigningAlgorithm?: null | components["schemas"]["DigitalSubscriptionsAlgorithmType"];
|
|
15644
15675
|
/** @description Jwe token algorithm type. */
|
|
15645
15676
|
algorithmJweType?: components["schemas"]["AlgorithmType"];
|
|
15646
15677
|
/** @description Gets or sets the JSON Web Key (JWK) Elliptic Curve types supported by the application. */
|
|
@@ -15985,8 +16016,6 @@ interface components {
|
|
|
15985
16016
|
emailConfirmed?: boolean;
|
|
15986
16017
|
/** @description Gets or sets a value indicating whether the user's phone number has been confirmed. */
|
|
15987
16018
|
phoneNumberConfirmed?: boolean;
|
|
15988
|
-
/** @description Gets or sets a value indicating whether two-factor authentication is enabled for the user. */
|
|
15989
|
-
twoFactorEnabled?: boolean;
|
|
15990
16019
|
/** @description Gets or sets a value indicating whether account lockout is enabled for the user. */
|
|
15991
16020
|
lockoutEnabled?: boolean;
|
|
15992
16021
|
/** @description Gets or sets the list of role names that should be assigned to the user. */
|
|
@@ -17911,7 +17940,7 @@ interface operations {
|
|
|
17911
17940
|
};
|
|
17912
17941
|
requestBody?: never;
|
|
17913
17942
|
responses: {
|
|
17914
|
-
/** @description
|
|
17943
|
+
/** @description OK */
|
|
17915
17944
|
200: {
|
|
17916
17945
|
headers: {
|
|
17917
17946
|
[name: string]: unknown;
|
|
@@ -17920,6 +17949,15 @@ interface operations {
|
|
|
17920
17949
|
"application/json": components["schemas"]["ApiResultOfTotpSetupResponse"];
|
|
17921
17950
|
};
|
|
17922
17951
|
};
|
|
17952
|
+
/** @description Conflict */
|
|
17953
|
+
409: {
|
|
17954
|
+
headers: {
|
|
17955
|
+
[name: string]: unknown;
|
|
17956
|
+
};
|
|
17957
|
+
content: {
|
|
17958
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
17959
|
+
};
|
|
17960
|
+
};
|
|
17923
17961
|
};
|
|
17924
17962
|
};
|
|
17925
17963
|
Totp_Enable: {
|
|
@@ -17956,6 +17994,15 @@ interface operations {
|
|
|
17956
17994
|
"application/json": components["schemas"]["ErrorResult"];
|
|
17957
17995
|
};
|
|
17958
17996
|
};
|
|
17997
|
+
/** @description Locked */
|
|
17998
|
+
423: {
|
|
17999
|
+
headers: {
|
|
18000
|
+
[name: string]: unknown;
|
|
18001
|
+
};
|
|
18002
|
+
content: {
|
|
18003
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
18004
|
+
};
|
|
18005
|
+
};
|
|
17959
18006
|
};
|
|
17960
18007
|
};
|
|
17961
18008
|
Totp_Disable: {
|
|
@@ -19227,6 +19274,79 @@ interface operations {
|
|
|
19227
19274
|
};
|
|
19228
19275
|
};
|
|
19229
19276
|
};
|
|
19277
|
+
UserTotp_GetStatus: {
|
|
19278
|
+
parameters: {
|
|
19279
|
+
query?: never;
|
|
19280
|
+
header?: never;
|
|
19281
|
+
path: {
|
|
19282
|
+
/** @description The user. */
|
|
19283
|
+
userId: string;
|
|
19284
|
+
};
|
|
19285
|
+
cookie?: never;
|
|
19286
|
+
};
|
|
19287
|
+
requestBody?: never;
|
|
19288
|
+
responses: {
|
|
19289
|
+
/** @description OK */
|
|
19290
|
+
200: {
|
|
19291
|
+
headers: {
|
|
19292
|
+
[name: string]: unknown;
|
|
19293
|
+
};
|
|
19294
|
+
content: {
|
|
19295
|
+
"application/json": components["schemas"]["ApiResultOfTotpStatusResponse"];
|
|
19296
|
+
};
|
|
19297
|
+
};
|
|
19298
|
+
/** @description Not Found */
|
|
19299
|
+
404: {
|
|
19300
|
+
headers: {
|
|
19301
|
+
[name: string]: unknown;
|
|
19302
|
+
};
|
|
19303
|
+
content: {
|
|
19304
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
19305
|
+
};
|
|
19306
|
+
};
|
|
19307
|
+
};
|
|
19308
|
+
};
|
|
19309
|
+
UserTotp_Reset: {
|
|
19310
|
+
parameters: {
|
|
19311
|
+
query?: never;
|
|
19312
|
+
header?: never;
|
|
19313
|
+
path: {
|
|
19314
|
+
/** @description The user. */
|
|
19315
|
+
userId: string;
|
|
19316
|
+
};
|
|
19317
|
+
cookie?: never;
|
|
19318
|
+
};
|
|
19319
|
+
requestBody?: never;
|
|
19320
|
+
responses: {
|
|
19321
|
+
/** @description OK */
|
|
19322
|
+
200: {
|
|
19323
|
+
headers: {
|
|
19324
|
+
[name: string]: unknown;
|
|
19325
|
+
};
|
|
19326
|
+
content: {
|
|
19327
|
+
"application/json": components["schemas"]["ApiResultOfObject"];
|
|
19328
|
+
};
|
|
19329
|
+
};
|
|
19330
|
+
/** @description Not Found */
|
|
19331
|
+
404: {
|
|
19332
|
+
headers: {
|
|
19333
|
+
[name: string]: unknown;
|
|
19334
|
+
};
|
|
19335
|
+
content: {
|
|
19336
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
19337
|
+
};
|
|
19338
|
+
};
|
|
19339
|
+
/** @description Conflict */
|
|
19340
|
+
409: {
|
|
19341
|
+
headers: {
|
|
19342
|
+
[name: string]: unknown;
|
|
19343
|
+
};
|
|
19344
|
+
content: {
|
|
19345
|
+
"application/json": components["schemas"]["ErrorResult"];
|
|
19346
|
+
};
|
|
19347
|
+
};
|
|
19348
|
+
};
|
|
19349
|
+
};
|
|
19230
19350
|
ThreatAnalysis_GetAll: {
|
|
19231
19351
|
parameters: {
|
|
19232
19352
|
query?: never;
|
|
@@ -33972,16 +34092,16 @@ type AuthioAdminResult<Id extends AuthioAdminOperationId, Kind extends AuthioAdm
|
|
|
33972
34092
|
type AuthioAdminMethod<Id extends AuthioAdminOperationId, Kind extends AuthioAdminResultKind> = {} extends AuthioAdminParams<Id> ? (params?: AuthioAdminParams<Id>, options?: AuthioAdminCallOptions) => Promise<AuthioAdminResult<Id, Kind>> : (params: AuthioAdminParams<Id>, options?: AuthioAdminCallOptions) => Promise<AuthioAdminResult<Id, Kind>>;
|
|
33973
34093
|
|
|
33974
34094
|
/**
|
|
33975
|
-
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api
|
|
34095
|
+
* Generated by scripts/generate.mjs from openapi/v1.json (authio.api a69a97617839b76bd36ee0a6b7b1e80397205fd7).
|
|
33976
34096
|
* Do not edit: run `npm run generate -w @hyper.authio/admin`.
|
|
33977
34097
|
*/
|
|
33978
34098
|
|
|
33979
34099
|
/**
|
|
33980
34100
|
* The commit of authio.api whose OpenAPI document these operations were generated from.
|
|
33981
34101
|
*/
|
|
33982
|
-
declare const authioAdminOpenApiCommit = "
|
|
34102
|
+
declare const authioAdminOpenApiCommit = "a69a97617839b76bd36ee0a6b7b1e80397205fd7";
|
|
33983
34103
|
/**
|
|
33984
|
-
* Every Admin API operation (
|
|
34104
|
+
* Every Admin API operation (361), grouped by the controller its `operationId` names: `Realm_GetAllPaginated` is
|
|
33985
34105
|
* `realm.getAllPaginated`.
|
|
33986
34106
|
*/
|
|
33987
34107
|
interface AuthioAdminAreas {
|
|
@@ -35996,7 +36116,7 @@ interface AuthioAdminAreas {
|
|
|
35996
36116
|
/** Admin - Two-Factor */
|
|
35997
36117
|
readonly totp: {
|
|
35998
36118
|
/**
|
|
35999
|
-
* Reports whether the account has an authenticator
|
|
36119
|
+
* Reports whether the account has an authenticator app in force, and how many recovery codes it has left.
|
|
36000
36120
|
*
|
|
36001
36121
|
* `GET /api/v1/admin/users/me/mfa/totp` (`Totp_GetStatus`)
|
|
36002
36122
|
*/
|
|
@@ -36247,6 +36367,21 @@ interface AuthioAdminAreas {
|
|
|
36247
36367
|
*/
|
|
36248
36368
|
readonly getOverview: AuthioAdminMethod<"UserSuspensionOverview_GetOverview", "data">;
|
|
36249
36369
|
};
|
|
36370
|
+
/** Admin - User Two-Factor */
|
|
36371
|
+
readonly userTotp: {
|
|
36372
|
+
/**
|
|
36373
|
+
* Reports whether a user has an authenticator app in force and how many recovery codes they have left.
|
|
36374
|
+
*
|
|
36375
|
+
* `GET /api/v1/admin/users/{userId}/mfa/totp` (`UserTotp_GetStatus`)
|
|
36376
|
+
*/
|
|
36377
|
+
readonly getStatus: AuthioAdminMethod<"UserTotp_GetStatus", "data">;
|
|
36378
|
+
/**
|
|
36379
|
+
* Resets a user's authenticator app: the secret and the recovery codes are discarded.
|
|
36380
|
+
*
|
|
36381
|
+
* `DELETE /api/v1/admin/users/{userId}/mfa/totp` (`UserTotp_Reset`)
|
|
36382
|
+
*/
|
|
36383
|
+
readonly reset: AuthioAdminMethod<"UserTotp_Reset", "data">;
|
|
36384
|
+
};
|
|
36250
36385
|
/** Admin - Client Webhooks */
|
|
36251
36386
|
readonly webhook: {
|
|
36252
36387
|
/**
|
|
@@ -39586,6 +39721,26 @@ declare const authioAdminOperations: {
|
|
|
39586
39721
|
readonly body: "none";
|
|
39587
39722
|
};
|
|
39588
39723
|
};
|
|
39724
|
+
readonly userTotp: {
|
|
39725
|
+
readonly getStatus: {
|
|
39726
|
+
readonly id: "UserTotp_GetStatus";
|
|
39727
|
+
readonly method: "GET";
|
|
39728
|
+
readonly path: "/api/v1/admin/users/{userId}/mfa/totp";
|
|
39729
|
+
readonly result: "data";
|
|
39730
|
+
readonly pathParams: readonly ["userId"];
|
|
39731
|
+
readonly queryParams: readonly [];
|
|
39732
|
+
readonly body: "none";
|
|
39733
|
+
};
|
|
39734
|
+
readonly reset: {
|
|
39735
|
+
readonly id: "UserTotp_Reset";
|
|
39736
|
+
readonly method: "DELETE";
|
|
39737
|
+
readonly path: "/api/v1/admin/users/{userId}/mfa/totp";
|
|
39738
|
+
readonly result: "data";
|
|
39739
|
+
readonly pathParams: readonly ["userId"];
|
|
39740
|
+
readonly queryParams: readonly [];
|
|
39741
|
+
readonly body: "none";
|
|
39742
|
+
};
|
|
39743
|
+
};
|
|
39589
39744
|
readonly webhook: {
|
|
39590
39745
|
readonly getAll: {
|
|
39591
39746
|
readonly id: "Webhook_GetAll";
|