@randock/nameshift-api-client 0.0.503 → 0.0.504
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/.openapi-generator/FILES +32 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +44 -1
- package/dist/apis/AdminApi.js +177 -0
- package/dist/apis/BuyersPublicApi.d.ts +3 -3
- package/dist/apis/BuyersPublicApi.js +1 -1
- package/dist/apis/UsersApi.d.ts +285 -1
- package/dist/apis/UsersApi.js +1305 -46
- package/dist/apis/UsersPublicApi.d.ts +107 -3
- package/dist/apis/UsersPublicApi.js +388 -2
- package/dist/models/ActivateUserTotpInput.d.ts +32 -0
- package/dist/models/ActivateUserTotpInput.js +51 -0
- package/dist/models/AdminUserSecurityDto.d.ts +87 -0
- package/dist/models/AdminUserSecurityDto.js +88 -0
- package/dist/models/BuyerLoginDto.d.ts +38 -0
- package/dist/models/BuyerLoginDto.js +55 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/ChangeUserAuthenticationMethodInput.d.ts +33 -0
- package/dist/models/ChangeUserAuthenticationMethodInput.js +52 -0
- package/dist/models/ChangeUserLoginLocationVerificationInput.d.ts +32 -0
- package/dist/models/ChangeUserLoginLocationVerificationInput.js +51 -0
- package/dist/models/ChangeUserPasswordInput.d.ts +38 -0
- package/dist/models/ChangeUserPasswordInput.js +55 -0
- package/dist/models/ConfirmLoginLocationInput.d.ts +32 -0
- package/dist/models/ConfirmLoginLocationInput.js +51 -0
- package/dist/models/CurrentPasswordInput.d.ts +32 -0
- package/dist/models/CurrentPasswordInput.js +51 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/ListUserLoginAttempts200Response.d.ts +47 -0
- package/dist/models/ListUserLoginAttempts200Response.js +62 -0
- package/dist/models/LoginChallengeInput.d.ts +32 -0
- package/dist/models/LoginChallengeInput.js +51 -0
- package/dist/models/LoginCodeInput.d.ts +38 -0
- package/dist/models/LoginCodeInput.js +55 -0
- package/dist/models/LoginDto.d.ts +30 -4
- package/dist/models/LoginDto.js +13 -5
- package/dist/models/LoginPasskeyInput.d.ts +46 -0
- package/dist/models/LoginPasskeyInput.js +57 -0
- package/dist/models/LoginPasskeyOptionsInput.d.ts +32 -0
- package/dist/models/LoginPasskeyOptionsInput.js +49 -0
- package/dist/models/LoginRecoveryCodeInput.d.ts +38 -0
- package/dist/models/LoginRecoveryCodeInput.js +55 -0
- package/dist/models/LoginStatus.d.ts +26 -0
- package/dist/models/LoginStatus.js +52 -0
- package/dist/models/PasskeyOptionsDto.d.ts +40 -0
- package/dist/models/PasskeyOptionsDto.js +55 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/ReauthenticateWithPasskeyInput.d.ts +40 -0
- package/dist/models/ReauthenticateWithPasskeyInput.js +55 -0
- package/dist/models/ReauthenticationDto.d.ts +38 -0
- package/dist/models/ReauthenticationDto.js +55 -0
- package/dist/models/RecoveryCodesDto.d.ts +32 -0
- package/dist/models/RecoveryCodesDto.js +51 -0
- package/dist/models/RegisterUserPasskeyInput.d.ts +46 -0
- package/dist/models/RegisterUserPasskeyInput.js +59 -0
- package/dist/models/RemoveUserPasskeyInput.d.ts +40 -0
- package/dist/models/RemoveUserPasskeyInput.js +55 -0
- package/dist/models/RenameUserPasskeyInput.d.ts +32 -0
- package/dist/models/RenameUserPasskeyInput.js +51 -0
- package/dist/models/SecondFactorMethod.d.ts +26 -0
- package/dist/models/SecondFactorMethod.js +52 -0
- package/dist/models/SellerSecurityUserDto.d.ts +12 -0
- package/dist/models/SellerSecurityUserDto.js +4 -0
- package/dist/models/TotpCodeInput.d.ts +32 -0
- package/dist/models/TotpCodeInput.js +51 -0
- package/dist/models/TotpEnrolmentDto.d.ts +38 -0
- package/dist/models/TotpEnrolmentDto.js +55 -0
- package/dist/models/UserAuthenticationMethod.d.ts +27 -0
- package/dist/models/UserAuthenticationMethod.js +53 -0
- package/dist/models/UserLoginAttemptDto.d.ts +88 -0
- package/dist/models/UserLoginAttemptDto.js +89 -0
- package/dist/models/UserLoginAttemptMethod.d.ts +29 -0
- package/dist/models/UserLoginAttemptMethod.js +55 -0
- package/dist/models/UserLoginAttemptResult.d.ts +30 -0
- package/dist/models/UserLoginAttemptResult.js +56 -0
- package/dist/models/UserLoginLocationConfirmationDetailsDto.d.ts +62 -0
- package/dist/models/UserLoginLocationConfirmationDetailsDto.js +71 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/UserPasskeyDto.d.ts +62 -0
- package/dist/models/UserPasskeyDto.js +71 -0
- package/dist/models/UserSecurityDto.d.ts +94 -0
- package/dist/models/UserSecurityDto.js +93 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +32 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +172 -0
- package/src/apis/BuyersPublicApi.ts +6 -6
- package/src/apis/UsersApi.ts +1219 -48
- package/src/apis/UsersPublicApi.ts +375 -2
- package/src/models/ActivateUserTotpInput.ts +66 -0
- package/src/models/AdminUserSecurityDto.ts +157 -0
- package/src/models/BuyerLoginDto.ts +75 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/ChangeUserAuthenticationMethodInput.ts +76 -0
- package/src/models/ChangeUserLoginLocationVerificationInput.ts +66 -0
- package/src/models/ChangeUserPasswordInput.ts +75 -0
- package/src/models/ConfirmLoginLocationInput.ts +66 -0
- package/src/models/CurrentPasswordInput.ts +66 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/ListUserLoginAttempts200Response.ts +106 -0
- package/src/models/LoginChallengeInput.ts +66 -0
- package/src/models/LoginCodeInput.ts +75 -0
- package/src/models/LoginDto.ts +56 -8
- package/src/models/LoginPasskeyInput.ts +83 -0
- package/src/models/LoginPasskeyOptionsInput.ts +65 -0
- package/src/models/LoginRecoveryCodeInput.ts +75 -0
- package/src/models/LoginStatus.ts +54 -0
- package/src/models/PasskeyOptionsDto.ts +75 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/ReauthenticateWithPasskeyInput.ts +75 -0
- package/src/models/ReauthenticationDto.ts +75 -0
- package/src/models/RecoveryCodesDto.ts +66 -0
- package/src/models/RegisterUserPasskeyInput.ts +84 -0
- package/src/models/RemoveUserPasskeyInput.ts +75 -0
- package/src/models/RenameUserPasskeyInput.ts +66 -0
- package/src/models/SecondFactorMethod.ts +54 -0
- package/src/models/SellerSecurityUserDto.ts +16 -0
- package/src/models/TotpCodeInput.ts +66 -0
- package/src/models/TotpEnrolmentDto.ts +75 -0
- package/src/models/UserAuthenticationMethod.ts +55 -0
- package/src/models/UserLoginAttemptDto.ts +164 -0
- package/src/models/UserLoginAttemptMethod.ts +57 -0
- package/src/models/UserLoginAttemptResult.ts +58 -0
- package/src/models/UserLoginLocationConfirmationDetailsDto.ts +111 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/UserPasskeyDto.ts +111 -0
- package/src/models/UserSecurityDto.ts +173 -0
- package/src/models/index.ts +32 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRegisterUserPasskeyInput = instanceOfRegisterUserPasskeyInput;
|
|
17
|
+
exports.RegisterUserPasskeyInputFromJSON = RegisterUserPasskeyInputFromJSON;
|
|
18
|
+
exports.RegisterUserPasskeyInputFromJSONTyped = RegisterUserPasskeyInputFromJSONTyped;
|
|
19
|
+
exports.RegisterUserPasskeyInputToJSON = RegisterUserPasskeyInputToJSON;
|
|
20
|
+
exports.RegisterUserPasskeyInputToJSONTyped = RegisterUserPasskeyInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RegisterUserPasskeyInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRegisterUserPasskeyInput(value) {
|
|
25
|
+
if (!('webauthnToken' in value) || value['webauthnToken'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('response' in value) || value['response'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function RegisterUserPasskeyInputFromJSON(json) {
|
|
34
|
+
return RegisterUserPasskeyInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function RegisterUserPasskeyInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'webauthnToken': json['webauthnToken'],
|
|
42
|
+
'response': json['response'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function RegisterUserPasskeyInputToJSON(json) {
|
|
47
|
+
return RegisterUserPasskeyInputToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function RegisterUserPasskeyInputToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'webauthnToken': value['webauthnToken'],
|
|
56
|
+
'response': value['response'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RemoveUserPasskeyInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RemoveUserPasskeyInput {
|
|
18
|
+
/**
|
|
19
|
+
* Token returned with the passkey options.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RemoveUserPasskeyInput
|
|
22
|
+
*/
|
|
23
|
+
webauthnToken: string;
|
|
24
|
+
/**
|
|
25
|
+
* Answer of the browser, as @simplewebauthn/browser startAuthentication returns it.
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof RemoveUserPasskeyInput
|
|
28
|
+
*/
|
|
29
|
+
response: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the RemoveUserPasskeyInput interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfRemoveUserPasskeyInput(value: object): value is RemoveUserPasskeyInput;
|
|
37
|
+
export declare function RemoveUserPasskeyInputFromJSON(json: any): RemoveUserPasskeyInput;
|
|
38
|
+
export declare function RemoveUserPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveUserPasskeyInput;
|
|
39
|
+
export declare function RemoveUserPasskeyInputToJSON(json: any): RemoveUserPasskeyInput;
|
|
40
|
+
export declare function RemoveUserPasskeyInputToJSONTyped(value?: RemoveUserPasskeyInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRemoveUserPasskeyInput = instanceOfRemoveUserPasskeyInput;
|
|
17
|
+
exports.RemoveUserPasskeyInputFromJSON = RemoveUserPasskeyInputFromJSON;
|
|
18
|
+
exports.RemoveUserPasskeyInputFromJSONTyped = RemoveUserPasskeyInputFromJSONTyped;
|
|
19
|
+
exports.RemoveUserPasskeyInputToJSON = RemoveUserPasskeyInputToJSON;
|
|
20
|
+
exports.RemoveUserPasskeyInputToJSONTyped = RemoveUserPasskeyInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RemoveUserPasskeyInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRemoveUserPasskeyInput(value) {
|
|
25
|
+
if (!('webauthnToken' in value) || value['webauthnToken'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('response' in value) || value['response'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function RemoveUserPasskeyInputFromJSON(json) {
|
|
32
|
+
return RemoveUserPasskeyInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function RemoveUserPasskeyInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'webauthnToken': json['webauthnToken'],
|
|
40
|
+
'response': json['response'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function RemoveUserPasskeyInputToJSON(json) {
|
|
44
|
+
return RemoveUserPasskeyInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RemoveUserPasskeyInputToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'webauthnToken': value['webauthnToken'],
|
|
53
|
+
'response': value['response'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RenameUserPasskeyInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RenameUserPasskeyInput {
|
|
18
|
+
/**
|
|
19
|
+
* Name to recognise the passkey by.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RenameUserPasskeyInput
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RenameUserPasskeyInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRenameUserPasskeyInput(value: object): value is RenameUserPasskeyInput;
|
|
29
|
+
export declare function RenameUserPasskeyInputFromJSON(json: any): RenameUserPasskeyInput;
|
|
30
|
+
export declare function RenameUserPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameUserPasskeyInput;
|
|
31
|
+
export declare function RenameUserPasskeyInputToJSON(json: any): RenameUserPasskeyInput;
|
|
32
|
+
export declare function RenameUserPasskeyInputToJSONTyped(value?: RenameUserPasskeyInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRenameUserPasskeyInput = instanceOfRenameUserPasskeyInput;
|
|
17
|
+
exports.RenameUserPasskeyInputFromJSON = RenameUserPasskeyInputFromJSON;
|
|
18
|
+
exports.RenameUserPasskeyInputFromJSONTyped = RenameUserPasskeyInputFromJSONTyped;
|
|
19
|
+
exports.RenameUserPasskeyInputToJSON = RenameUserPasskeyInputToJSON;
|
|
20
|
+
exports.RenameUserPasskeyInputToJSONTyped = RenameUserPasskeyInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RenameUserPasskeyInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRenameUserPasskeyInput(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RenameUserPasskeyInputFromJSON(json) {
|
|
30
|
+
return RenameUserPasskeyInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RenameUserPasskeyInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function RenameUserPasskeyInputToJSON(json) {
|
|
41
|
+
return RenameUserPasskeyInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RenameUserPasskeyInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Second factors the user can prove, when one is required, preferred first.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SecondFactorMethod: {
|
|
17
|
+
readonly PASSKEY: "passkey";
|
|
18
|
+
readonly TOTP: "totp";
|
|
19
|
+
readonly RECOVERY_CODE: "recovery_code";
|
|
20
|
+
};
|
|
21
|
+
export type SecondFactorMethod = typeof SecondFactorMethod[keyof typeof SecondFactorMethod];
|
|
22
|
+
export declare function instanceOfSecondFactorMethod(value: any): boolean;
|
|
23
|
+
export declare function SecondFactorMethodFromJSON(json: any): SecondFactorMethod;
|
|
24
|
+
export declare function SecondFactorMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecondFactorMethod;
|
|
25
|
+
export declare function SecondFactorMethodToJSON(value?: SecondFactorMethod | null): any;
|
|
26
|
+
export declare function SecondFactorMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): SecondFactorMethod;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SecondFactorMethod = void 0;
|
|
17
|
+
exports.instanceOfSecondFactorMethod = instanceOfSecondFactorMethod;
|
|
18
|
+
exports.SecondFactorMethodFromJSON = SecondFactorMethodFromJSON;
|
|
19
|
+
exports.SecondFactorMethodFromJSONTyped = SecondFactorMethodFromJSONTyped;
|
|
20
|
+
exports.SecondFactorMethodToJSON = SecondFactorMethodToJSON;
|
|
21
|
+
exports.SecondFactorMethodToJSONTyped = SecondFactorMethodToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Second factors the user can prove, when one is required, preferred first.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SecondFactorMethod = {
|
|
27
|
+
PASSKEY: 'passkey',
|
|
28
|
+
TOTP: 'totp',
|
|
29
|
+
RECOVERY_CODE: 'recovery_code'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSecondFactorMethod(value) {
|
|
32
|
+
for (var key in exports.SecondFactorMethod) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SecondFactorMethod, key)) {
|
|
34
|
+
if (exports.SecondFactorMethod[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function SecondFactorMethodFromJSON(json) {
|
|
42
|
+
return SecondFactorMethodFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SecondFactorMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function SecondFactorMethodToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function SecondFactorMethodToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -70,6 +70,18 @@ export interface SellerSecurityUserDto {
|
|
|
70
70
|
* @memberof SellerSecurityUserDto
|
|
71
71
|
*/
|
|
72
72
|
account: SellerSecurityUserAccountDto;
|
|
73
|
+
/**
|
|
74
|
+
* What the user proved to sign in (RFC 8176): pwd, otp, rec, hwk (passkey) or imp (impersonation).
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof SellerSecurityUserDto
|
|
77
|
+
*/
|
|
78
|
+
amr?: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the session was opened with more than a password.
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof SellerSecurityUserDto
|
|
83
|
+
*/
|
|
84
|
+
mfa?: boolean;
|
|
73
85
|
}
|
|
74
86
|
/**
|
|
75
87
|
* @export
|
|
@@ -68,6 +68,8 @@ function SellerSecurityUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
68
|
'firstname': json['firstname'],
|
|
69
69
|
'lastname': json['lastname'],
|
|
70
70
|
'account': (0, SellerSecurityUserAccountDto_1.SellerSecurityUserAccountDtoFromJSON)(json['account']),
|
|
71
|
+
'amr': json['amr'] == null ? undefined : json['amr'],
|
|
72
|
+
'mfa': json['mfa'] == null ? undefined : json['mfa'],
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
function SellerSecurityUserDtoToJSON(json) {
|
|
@@ -88,5 +90,7 @@ function SellerSecurityUserDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
90
|
'firstname': value['firstname'],
|
|
89
91
|
'lastname': value['lastname'],
|
|
90
92
|
'account': (0, SellerSecurityUserAccountDto_1.SellerSecurityUserAccountDtoToJSON)(value['account']),
|
|
93
|
+
'amr': value['amr'],
|
|
94
|
+
'mfa': value['mfa'],
|
|
91
95
|
};
|
|
92
96
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TotpCodeInput
|
|
16
|
+
*/
|
|
17
|
+
export interface TotpCodeInput {
|
|
18
|
+
/**
|
|
19
|
+
* Code the authenticator app shows.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TotpCodeInput
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the TotpCodeInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfTotpCodeInput(value: object): value is TotpCodeInput;
|
|
29
|
+
export declare function TotpCodeInputFromJSON(json: any): TotpCodeInput;
|
|
30
|
+
export declare function TotpCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpCodeInput;
|
|
31
|
+
export declare function TotpCodeInputToJSON(json: any): TotpCodeInput;
|
|
32
|
+
export declare function TotpCodeInputToJSONTyped(value?: TotpCodeInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTotpCodeInput = instanceOfTotpCodeInput;
|
|
17
|
+
exports.TotpCodeInputFromJSON = TotpCodeInputFromJSON;
|
|
18
|
+
exports.TotpCodeInputFromJSONTyped = TotpCodeInputFromJSONTyped;
|
|
19
|
+
exports.TotpCodeInputToJSON = TotpCodeInputToJSON;
|
|
20
|
+
exports.TotpCodeInputToJSONTyped = TotpCodeInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TotpCodeInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTotpCodeInput(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function TotpCodeInputFromJSON(json) {
|
|
30
|
+
return TotpCodeInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function TotpCodeInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'code': json['code'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function TotpCodeInputToJSON(json) {
|
|
41
|
+
return TotpCodeInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TotpCodeInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'code': value['code'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TotpEnrolmentDto
|
|
16
|
+
*/
|
|
17
|
+
export interface TotpEnrolmentDto {
|
|
18
|
+
/**
|
|
19
|
+
* otpauth:// URI to show as a QR code for the authenticator app to scan.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TotpEnrolmentDto
|
|
22
|
+
*/
|
|
23
|
+
otpauthUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
* Base32 secret, to type in the app by hand when the QR code cannot be scanned.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TotpEnrolmentDto
|
|
28
|
+
*/
|
|
29
|
+
secret: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the TotpEnrolmentDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfTotpEnrolmentDto(value: object): value is TotpEnrolmentDto;
|
|
35
|
+
export declare function TotpEnrolmentDtoFromJSON(json: any): TotpEnrolmentDto;
|
|
36
|
+
export declare function TotpEnrolmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpEnrolmentDto;
|
|
37
|
+
export declare function TotpEnrolmentDtoToJSON(json: any): TotpEnrolmentDto;
|
|
38
|
+
export declare function TotpEnrolmentDtoToJSONTyped(value?: TotpEnrolmentDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTotpEnrolmentDto = instanceOfTotpEnrolmentDto;
|
|
17
|
+
exports.TotpEnrolmentDtoFromJSON = TotpEnrolmentDtoFromJSON;
|
|
18
|
+
exports.TotpEnrolmentDtoFromJSONTyped = TotpEnrolmentDtoFromJSONTyped;
|
|
19
|
+
exports.TotpEnrolmentDtoToJSON = TotpEnrolmentDtoToJSON;
|
|
20
|
+
exports.TotpEnrolmentDtoToJSONTyped = TotpEnrolmentDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TotpEnrolmentDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTotpEnrolmentDto(value) {
|
|
25
|
+
if (!('otpauthUrl' in value) || value['otpauthUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('secret' in value) || value['secret'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function TotpEnrolmentDtoFromJSON(json) {
|
|
32
|
+
return TotpEnrolmentDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function TotpEnrolmentDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'otpauthUrl': json['otpauthUrl'],
|
|
40
|
+
'secret': json['secret'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function TotpEnrolmentDtoToJSON(json) {
|
|
44
|
+
return TotpEnrolmentDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function TotpEnrolmentDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'otpauthUrl': value['otpauthUrl'],
|
|
53
|
+
'secret': value['secret'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Method the user signs in with.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const UserAuthenticationMethod: {
|
|
17
|
+
readonly PASSWORD: "password";
|
|
18
|
+
readonly PASSWORD_AND_SECOND_FACTOR: "password_and_second_factor";
|
|
19
|
+
readonly PASSKEY_AND_TOTP: "passkey_and_totp";
|
|
20
|
+
readonly PASSKEY: "passkey";
|
|
21
|
+
};
|
|
22
|
+
export type UserAuthenticationMethod = typeof UserAuthenticationMethod[keyof typeof UserAuthenticationMethod];
|
|
23
|
+
export declare function instanceOfUserAuthenticationMethod(value: any): boolean;
|
|
24
|
+
export declare function UserAuthenticationMethodFromJSON(json: any): UserAuthenticationMethod;
|
|
25
|
+
export declare function UserAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
|
|
26
|
+
export declare function UserAuthenticationMethodToJSON(value?: UserAuthenticationMethod | null): any;
|
|
27
|
+
export declare function UserAuthenticationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAuthenticationMethod;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UserAuthenticationMethod = void 0;
|
|
17
|
+
exports.instanceOfUserAuthenticationMethod = instanceOfUserAuthenticationMethod;
|
|
18
|
+
exports.UserAuthenticationMethodFromJSON = UserAuthenticationMethodFromJSON;
|
|
19
|
+
exports.UserAuthenticationMethodFromJSONTyped = UserAuthenticationMethodFromJSONTyped;
|
|
20
|
+
exports.UserAuthenticationMethodToJSON = UserAuthenticationMethodToJSON;
|
|
21
|
+
exports.UserAuthenticationMethodToJSONTyped = UserAuthenticationMethodToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Method the user signs in with.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UserAuthenticationMethod = {
|
|
27
|
+
PASSWORD: 'password',
|
|
28
|
+
PASSWORD_AND_SECOND_FACTOR: 'password_and_second_factor',
|
|
29
|
+
PASSKEY_AND_TOTP: 'passkey_and_totp',
|
|
30
|
+
PASSKEY: 'passkey'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfUserAuthenticationMethod(value) {
|
|
33
|
+
for (var key in exports.UserAuthenticationMethod) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.UserAuthenticationMethod, key)) {
|
|
35
|
+
if (exports.UserAuthenticationMethod[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function UserAuthenticationMethodFromJSON(json) {
|
|
43
|
+
return UserAuthenticationMethodFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function UserAuthenticationMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function UserAuthenticationMethodToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function UserAuthenticationMethodToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|