@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,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LoginCodeInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginCodeInput {
|
|
22
|
+
/**
|
|
23
|
+
* Challenge token returned by the previous sign-in step.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginCodeInput
|
|
26
|
+
*/
|
|
27
|
+
challengeToken: string;
|
|
28
|
+
/**
|
|
29
|
+
* Six-digit code of the authenticator app, or a recovery code (e.g. abcde-fghij).
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginCodeInput
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginCodeInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginCodeInput(value: object): value is LoginCodeInput {
|
|
40
|
+
if (!('challengeToken' in value) || value['challengeToken'] === undefined) return false;
|
|
41
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginCodeInputFromJSON(json: any): LoginCodeInput {
|
|
46
|
+
return LoginCodeInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginCodeInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'challengeToken': json['challengeToken'],
|
|
56
|
+
'code': json['code'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LoginCodeInputToJSON(json: any): LoginCodeInput {
|
|
61
|
+
return LoginCodeInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LoginCodeInputToJSONTyped(value?: LoginCodeInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'challengeToken': value['challengeToken'],
|
|
72
|
+
'code': value['code'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/LoginDto.ts
CHANGED
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LoginStatus } from './LoginStatus';
|
|
17
|
+
import {
|
|
18
|
+
LoginStatusFromJSON,
|
|
19
|
+
LoginStatusFromJSONTyped,
|
|
20
|
+
LoginStatusToJSON,
|
|
21
|
+
LoginStatusToJSONTyped,
|
|
22
|
+
} from './LoginStatus';
|
|
23
|
+
import type { SecondFactorMethod } from './SecondFactorMethod';
|
|
24
|
+
import {
|
|
25
|
+
SecondFactorMethodFromJSON,
|
|
26
|
+
SecondFactorMethodFromJSONTyped,
|
|
27
|
+
SecondFactorMethodToJSON,
|
|
28
|
+
SecondFactorMethodToJSONTyped,
|
|
29
|
+
} from './SecondFactorMethod';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -20,25 +35,50 @@ import { mapValues } from '../runtime';
|
|
|
20
35
|
*/
|
|
21
36
|
export interface LoginDto {
|
|
22
37
|
/**
|
|
23
|
-
*
|
|
38
|
+
* Where the sign-in stands.
|
|
39
|
+
* @type {LoginStatus}
|
|
40
|
+
* @memberof LoginDto
|
|
41
|
+
*/
|
|
42
|
+
status: LoginStatus;
|
|
43
|
+
/**
|
|
44
|
+
* JWT authentication token, once signed in.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof LoginDto
|
|
47
|
+
*/
|
|
48
|
+
token?: string;
|
|
49
|
+
/**
|
|
50
|
+
* User locale (BCP 47), once signed in.
|
|
24
51
|
* @type {string}
|
|
25
52
|
* @memberof LoginDto
|
|
26
53
|
*/
|
|
27
|
-
|
|
54
|
+
locale?: string;
|
|
28
55
|
/**
|
|
29
|
-
*
|
|
56
|
+
* Short-lived token of the sign-in so far, to send with the next step.
|
|
30
57
|
* @type {string}
|
|
31
58
|
* @memberof LoginDto
|
|
32
59
|
*/
|
|
33
|
-
|
|
60
|
+
challengeToken?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Second factors the user can prove, when one is required, preferred first.
|
|
63
|
+
* @type {Array<SecondFactorMethod>}
|
|
64
|
+
* @memberof LoginDto
|
|
65
|
+
*/
|
|
66
|
+
secondFactorMethods?: Array<SecondFactorMethod>;
|
|
67
|
+
/**
|
|
68
|
+
* The second factor the user last signed in with, to offer first. Absent when they never used one: let them choose.
|
|
69
|
+
* @type {SecondFactorMethod}
|
|
70
|
+
* @memberof LoginDto
|
|
71
|
+
*/
|
|
72
|
+
lastSecondFactorMethod?: SecondFactorMethod;
|
|
34
73
|
}
|
|
35
74
|
|
|
75
|
+
|
|
76
|
+
|
|
36
77
|
/**
|
|
37
78
|
* Check if a given object implements the LoginDto interface.
|
|
38
79
|
*/
|
|
39
80
|
export function instanceOfLoginDto(value: object): value is LoginDto {
|
|
40
|
-
if (!('
|
|
41
|
-
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
81
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
42
82
|
return true;
|
|
43
83
|
}
|
|
44
84
|
|
|
@@ -52,8 +92,12 @@ export function LoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
52
92
|
}
|
|
53
93
|
return {
|
|
54
94
|
|
|
55
|
-
'
|
|
56
|
-
'
|
|
95
|
+
'status': LoginStatusFromJSON(json['status']),
|
|
96
|
+
'token': json['token'] == null ? undefined : json['token'],
|
|
97
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
98
|
+
'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
|
|
99
|
+
'secondFactorMethods': json['secondFactorMethods'] == null ? undefined : ((json['secondFactorMethods'] as Array<any>).map(SecondFactorMethodFromJSON)),
|
|
100
|
+
'lastSecondFactorMethod': json['lastSecondFactorMethod'] == null ? undefined : SecondFactorMethodFromJSON(json['lastSecondFactorMethod']),
|
|
57
101
|
};
|
|
58
102
|
}
|
|
59
103
|
|
|
@@ -68,8 +112,12 @@ export function LoginDtoToJSONTyped(value?: LoginDto | null, ignoreDiscriminator
|
|
|
68
112
|
|
|
69
113
|
return {
|
|
70
114
|
|
|
115
|
+
'status': LoginStatusToJSON(value['status']),
|
|
71
116
|
'token': value['token'],
|
|
72
117
|
'locale': value['locale'],
|
|
118
|
+
'challengeToken': value['challengeToken'],
|
|
119
|
+
'secondFactorMethods': value['secondFactorMethods'] == null ? undefined : ((value['secondFactorMethods'] as Array<any>).map(SecondFactorMethodToJSON)),
|
|
120
|
+
'lastSecondFactorMethod': SecondFactorMethodToJSON(value['lastSecondFactorMethod']),
|
|
73
121
|
};
|
|
74
122
|
}
|
|
75
123
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LoginPasskeyInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginPasskeyInput {
|
|
22
|
+
/**
|
|
23
|
+
* Token returned with the passkey options.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginPasskeyInput
|
|
26
|
+
*/
|
|
27
|
+
webauthnToken: string;
|
|
28
|
+
/**
|
|
29
|
+
* Answer of the browser, as @simplewebauthn/browser startAuthentication returns it.
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof LoginPasskeyInput
|
|
32
|
+
*/
|
|
33
|
+
response: { [key: string]: any; };
|
|
34
|
+
/**
|
|
35
|
+
* Challenge token of the sign-in, when the passkey is its second factor.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LoginPasskeyInput
|
|
38
|
+
*/
|
|
39
|
+
challengeToken?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LoginPasskeyInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLoginPasskeyInput(value: object): value is LoginPasskeyInput {
|
|
46
|
+
if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
|
|
47
|
+
if (!('response' in value) || value['response'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LoginPasskeyInputFromJSON(json: any): LoginPasskeyInput {
|
|
52
|
+
return LoginPasskeyInputFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LoginPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasskeyInput {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'webauthnToken': json['webauthnToken'],
|
|
62
|
+
'response': json['response'],
|
|
63
|
+
'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function LoginPasskeyInputToJSON(json: any): LoginPasskeyInput {
|
|
68
|
+
return LoginPasskeyInputToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function LoginPasskeyInputToJSONTyped(value?: LoginPasskeyInput | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'webauthnToken': value['webauthnToken'],
|
|
79
|
+
'response': value['response'],
|
|
80
|
+
'challengeToken': value['challengeToken'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LoginPasskeyOptionsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginPasskeyOptionsInput {
|
|
22
|
+
/**
|
|
23
|
+
* Challenge token of the sign-in, when the passkey is its second factor. Without it, the passkey signs in on its own.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginPasskeyOptionsInput
|
|
26
|
+
*/
|
|
27
|
+
challengeToken?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LoginPasskeyOptionsInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLoginPasskeyOptionsInput(value: object): value is LoginPasskeyOptionsInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function LoginPasskeyOptionsInputFromJSON(json: any): LoginPasskeyOptionsInput {
|
|
38
|
+
return LoginPasskeyOptionsInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function LoginPasskeyOptionsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasskeyOptionsInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'challengeToken': json['challengeToken'] == null ? undefined : json['challengeToken'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LoginPasskeyOptionsInputToJSON(json: any): LoginPasskeyOptionsInput {
|
|
52
|
+
return LoginPasskeyOptionsInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LoginPasskeyOptionsInputToJSONTyped(value?: LoginPasskeyOptionsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'challengeToken': value['challengeToken'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LoginRecoveryCodeInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginRecoveryCodeInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginRecoveryCodeInput
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
* One of the recovery codes.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginRecoveryCodeInput
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginRecoveryCodeInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginRecoveryCodeInput(value: object): value is LoginRecoveryCodeInput {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginRecoveryCodeInputFromJSON(json: any): LoginRecoveryCodeInput {
|
|
46
|
+
return LoginRecoveryCodeInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginRecoveryCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRecoveryCodeInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'code': json['code'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LoginRecoveryCodeInputToJSON(json: any): LoginRecoveryCodeInput {
|
|
61
|
+
return LoginRecoveryCodeInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LoginRecoveryCodeInputToJSONTyped(value?: LoginRecoveryCodeInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'code': value['code'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Where the sign-in stands.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const LoginStatus = {
|
|
21
|
+
AUTHENTICATED: 'authenticated',
|
|
22
|
+
SECOND_FACTOR_REQUIRED: 'second_factor_required',
|
|
23
|
+
LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
|
|
24
|
+
} as const;
|
|
25
|
+
export type LoginStatus = typeof LoginStatus[keyof typeof LoginStatus];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfLoginStatus(value: any): boolean {
|
|
29
|
+
for (const key in LoginStatus) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(LoginStatus, key)) {
|
|
31
|
+
if (LoginStatus[key as keyof typeof LoginStatus] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function LoginStatusFromJSON(json: any): LoginStatus {
|
|
40
|
+
return LoginStatusFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function LoginStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginStatus {
|
|
44
|
+
return json as LoginStatus;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function LoginStatusToJSON(value?: LoginStatus | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LoginStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): LoginStatus {
|
|
52
|
+
return value as LoginStatus;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PasskeyOptionsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PasskeyOptionsDto {
|
|
22
|
+
/**
|
|
23
|
+
* Token to send back with the answer of the browser.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PasskeyOptionsDto
|
|
26
|
+
*/
|
|
27
|
+
webauthnToken: string;
|
|
28
|
+
/**
|
|
29
|
+
* Options for @simplewebauthn/browser startRegistration or startAuthentication.
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof PasskeyOptionsDto
|
|
32
|
+
*/
|
|
33
|
+
options: { [key: string]: any; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PasskeyOptionsDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPasskeyOptionsDto(value: object): value is PasskeyOptionsDto {
|
|
40
|
+
if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
|
|
41
|
+
if (!('options' in value) || value['options'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PasskeyOptionsDtoFromJSON(json: any): PasskeyOptionsDto {
|
|
46
|
+
return PasskeyOptionsDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PasskeyOptionsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasskeyOptionsDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'webauthnToken': json['webauthnToken'],
|
|
56
|
+
'options': json['options'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PasskeyOptionsDtoToJSON(json: any): PasskeyOptionsDto {
|
|
61
|
+
return PasskeyOptionsDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PasskeyOptionsDtoToJSONTyped(value?: PasskeyOptionsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'webauthnToken': value['webauthnToken'],
|
|
72
|
+
'options': value['options'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -192,7 +192,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
192
192
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
193
193
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
194
194
|
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
195
|
-
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
195
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
|
|
196
|
+
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF'
|
|
196
197
|
} as const;
|
|
197
198
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
198
199
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReauthenticateWithPasskeyInput
|
|
20
|
+
*/
|
|
21
|
+
export interface ReauthenticateWithPasskeyInput {
|
|
22
|
+
/**
|
|
23
|
+
* Token returned with the passkey options.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReauthenticateWithPasskeyInput
|
|
26
|
+
*/
|
|
27
|
+
webauthnToken: string;
|
|
28
|
+
/**
|
|
29
|
+
* Answer of the browser, as @simplewebauthn/browser startAuthentication returns it.
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof ReauthenticateWithPasskeyInput
|
|
32
|
+
*/
|
|
33
|
+
response: { [key: string]: any; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ReauthenticateWithPasskeyInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfReauthenticateWithPasskeyInput(value: object): value is ReauthenticateWithPasskeyInput {
|
|
40
|
+
if (!('webauthnToken' in value) || value['webauthnToken'] === undefined) return false;
|
|
41
|
+
if (!('response' in value) || value['response'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ReauthenticateWithPasskeyInputFromJSON(json: any): ReauthenticateWithPasskeyInput {
|
|
46
|
+
return ReauthenticateWithPasskeyInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ReauthenticateWithPasskeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticateWithPasskeyInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'webauthnToken': json['webauthnToken'],
|
|
56
|
+
'response': json['response'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ReauthenticateWithPasskeyInputToJSON(json: any): ReauthenticateWithPasskeyInput {
|
|
61
|
+
return ReauthenticateWithPasskeyInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ReauthenticateWithPasskeyInputToJSONTyped(value?: ReauthenticateWithPasskeyInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'webauthnToken': value['webauthnToken'],
|
|
72
|
+
'response': value['response'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|