@randock/nameshift-api-client 0.0.503 → 0.0.505
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 +33 -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 +1304 -46
- package/dist/apis/UsersPublicApi.d.ts +120 -3
- package/dist/apis/UsersPublicApi.js +436 -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 +87 -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/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/ChangeUserSignInStepsInput.d.ts +33 -0
- package/dist/models/ChangeUserSignInStepsInput.js +51 -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/LoginPasswordInput.d.ts +38 -0
- package/dist/models/LoginPasswordInput.js +55 -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 +27 -0
- package/dist/models/SecondFactorMethod.js +53 -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/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 +31 -0
- package/dist/models/UserLoginAttemptResult.js +57 -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/UserSignInFactor.d.ts +26 -0
- package/dist/models/UserSignInFactor.js +52 -0
- package/dist/models/index.d.ts +33 -0
- package/dist/models/index.js +33 -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 +1218 -48
- package/src/apis/UsersPublicApi.ts +420 -2
- package/src/models/ActivateUserTotpInput.ts +66 -0
- package/src/models/AdminUserSecurityDto.ts +155 -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/ChangeUserLoginLocationVerificationInput.ts +66 -0
- package/src/models/ChangeUserPasswordInput.ts +75 -0
- package/src/models/ChangeUserSignInStepsInput.ts +74 -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/LoginPasswordInput.ts +75 -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 +55 -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/UserLoginAttemptDto.ts +164 -0
- package/src/models/UserLoginAttemptMethod.ts +57 -0
- package/src/models/UserLoginAttemptResult.ts +59 -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 +171 -0
- package/src/models/UserSignInFactor.ts +54 -0
- package/src/models/index.ts +33 -0
|
@@ -0,0 +1,66 @@
|
|
|
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 TotpCodeInput
|
|
20
|
+
*/
|
|
21
|
+
export interface TotpCodeInput {
|
|
22
|
+
/**
|
|
23
|
+
* Code the authenticator app shows.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TotpCodeInput
|
|
26
|
+
*/
|
|
27
|
+
code: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TotpCodeInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTotpCodeInput(value: object): value is TotpCodeInput {
|
|
34
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TotpCodeInputFromJSON(json: any): TotpCodeInput {
|
|
39
|
+
return TotpCodeInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TotpCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpCodeInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'code': json['code'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TotpCodeInputToJSON(json: any): TotpCodeInput {
|
|
53
|
+
return TotpCodeInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TotpCodeInputToJSONTyped(value?: TotpCodeInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'code': value['code'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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 TotpEnrolmentDto
|
|
20
|
+
*/
|
|
21
|
+
export interface TotpEnrolmentDto {
|
|
22
|
+
/**
|
|
23
|
+
* otpauth:// URI to show as a QR code for the authenticator app to scan.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TotpEnrolmentDto
|
|
26
|
+
*/
|
|
27
|
+
otpauthUrl: string;
|
|
28
|
+
/**
|
|
29
|
+
* Base32 secret, to type in the app by hand when the QR code cannot be scanned.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TotpEnrolmentDto
|
|
32
|
+
*/
|
|
33
|
+
secret: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TotpEnrolmentDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTotpEnrolmentDto(value: object): value is TotpEnrolmentDto {
|
|
40
|
+
if (!('otpauthUrl' in value) || value['otpauthUrl'] === undefined) return false;
|
|
41
|
+
if (!('secret' in value) || value['secret'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TotpEnrolmentDtoFromJSON(json: any): TotpEnrolmentDto {
|
|
46
|
+
return TotpEnrolmentDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TotpEnrolmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotpEnrolmentDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'otpauthUrl': json['otpauthUrl'],
|
|
56
|
+
'secret': json['secret'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TotpEnrolmentDtoToJSON(json: any): TotpEnrolmentDto {
|
|
61
|
+
return TotpEnrolmentDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function TotpEnrolmentDtoToJSONTyped(value?: TotpEnrolmentDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'otpauthUrl': value['otpauthUrl'],
|
|
72
|
+
'secret': value['secret'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
import type { UserLoginAttemptMethod } from './UserLoginAttemptMethod';
|
|
17
|
+
import {
|
|
18
|
+
UserLoginAttemptMethodFromJSON,
|
|
19
|
+
UserLoginAttemptMethodFromJSONTyped,
|
|
20
|
+
UserLoginAttemptMethodToJSON,
|
|
21
|
+
UserLoginAttemptMethodToJSONTyped,
|
|
22
|
+
} from './UserLoginAttemptMethod';
|
|
23
|
+
import type { UserLoginAttemptResult } from './UserLoginAttemptResult';
|
|
24
|
+
import {
|
|
25
|
+
UserLoginAttemptResultFromJSON,
|
|
26
|
+
UserLoginAttemptResultFromJSONTyped,
|
|
27
|
+
UserLoginAttemptResultToJSON,
|
|
28
|
+
UserLoginAttemptResultToJSONTyped,
|
|
29
|
+
} from './UserLoginAttemptResult';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface UserLoginAttemptDto
|
|
35
|
+
*/
|
|
36
|
+
export interface UserLoginAttemptDto {
|
|
37
|
+
/**
|
|
38
|
+
* Attempt ID.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UserLoginAttemptDto
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Outcome of the step.
|
|
45
|
+
* @type {UserLoginAttemptResult}
|
|
46
|
+
* @memberof UserLoginAttemptDto
|
|
47
|
+
*/
|
|
48
|
+
result: UserLoginAttemptResult;
|
|
49
|
+
/**
|
|
50
|
+
* What the user signed in with in this step.
|
|
51
|
+
* @type {UserLoginAttemptMethod}
|
|
52
|
+
* @memberof UserLoginAttemptDto
|
|
53
|
+
*/
|
|
54
|
+
method: UserLoginAttemptMethod;
|
|
55
|
+
/**
|
|
56
|
+
* IP address.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof UserLoginAttemptDto
|
|
59
|
+
*/
|
|
60
|
+
ip: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Autonomous system number of the network.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof UserLoginAttemptDto
|
|
65
|
+
*/
|
|
66
|
+
asn: number | null;
|
|
67
|
+
/**
|
|
68
|
+
* Operator of the network.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof UserLoginAttemptDto
|
|
71
|
+
*/
|
|
72
|
+
asnOrganization: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* ISO 3166-1 alpha-2 country of the IP address.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof UserLoginAttemptDto
|
|
77
|
+
*/
|
|
78
|
+
country: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Browser.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof UserLoginAttemptDto
|
|
83
|
+
*/
|
|
84
|
+
userAgent: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Whether a staff member signed in as the user.
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof UserLoginAttemptDto
|
|
89
|
+
*/
|
|
90
|
+
impersonated: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* When it happened.
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof UserLoginAttemptDto
|
|
95
|
+
*/
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the UserLoginAttemptDto interface.
|
|
103
|
+
*/
|
|
104
|
+
export function instanceOfUserLoginAttemptDto(value: object): value is UserLoginAttemptDto {
|
|
105
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
106
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
107
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
108
|
+
if (!('ip' in value) || value['ip'] === undefined) return false;
|
|
109
|
+
if (!('asn' in value) || value['asn'] === undefined) return false;
|
|
110
|
+
if (!('asnOrganization' in value) || value['asnOrganization'] === undefined) return false;
|
|
111
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
112
|
+
if (!('userAgent' in value) || value['userAgent'] === undefined) return false;
|
|
113
|
+
if (!('impersonated' in value) || value['impersonated'] === undefined) return false;
|
|
114
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function UserLoginAttemptDtoFromJSON(json: any): UserLoginAttemptDto {
|
|
119
|
+
return UserLoginAttemptDtoFromJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function UserLoginAttemptDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptDto {
|
|
123
|
+
if (json == null) {
|
|
124
|
+
return json;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'id': json['id'],
|
|
129
|
+
'result': UserLoginAttemptResultFromJSON(json['result']),
|
|
130
|
+
'method': UserLoginAttemptMethodFromJSON(json['method']),
|
|
131
|
+
'ip': json['ip'],
|
|
132
|
+
'asn': json['asn'],
|
|
133
|
+
'asnOrganization': json['asnOrganization'],
|
|
134
|
+
'country': json['country'],
|
|
135
|
+
'userAgent': json['userAgent'],
|
|
136
|
+
'impersonated': json['impersonated'],
|
|
137
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function UserLoginAttemptDtoToJSON(json: any): UserLoginAttemptDto {
|
|
142
|
+
return UserLoginAttemptDtoToJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function UserLoginAttemptDtoToJSONTyped(value?: UserLoginAttemptDto | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'id': value['id'],
|
|
153
|
+
'result': UserLoginAttemptResultToJSON(value['result']),
|
|
154
|
+
'method': UserLoginAttemptMethodToJSON(value['method']),
|
|
155
|
+
'ip': value['ip'],
|
|
156
|
+
'asn': value['asn'],
|
|
157
|
+
'asnOrganization': value['asnOrganization'],
|
|
158
|
+
'country': value['country'],
|
|
159
|
+
'userAgent': value['userAgent'],
|
|
160
|
+
'impersonated': value['impersonated'],
|
|
161
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* What the user signed in with in this step.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const UserLoginAttemptMethod = {
|
|
21
|
+
PASSWORD: 'password',
|
|
22
|
+
PASSKEY: 'passkey',
|
|
23
|
+
TOTP: 'totp',
|
|
24
|
+
RECOVERY_CODE: 'recovery_code',
|
|
25
|
+
LOCATION_CONFIRMATION: 'location_confirmation',
|
|
26
|
+
IMPERSONATION: 'impersonation'
|
|
27
|
+
} as const;
|
|
28
|
+
export type UserLoginAttemptMethod = typeof UserLoginAttemptMethod[keyof typeof UserLoginAttemptMethod];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export function instanceOfUserLoginAttemptMethod(value: any): boolean {
|
|
32
|
+
for (const key in UserLoginAttemptMethod) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(UserLoginAttemptMethod, key)) {
|
|
34
|
+
if (UserLoginAttemptMethod[key as keyof typeof UserLoginAttemptMethod] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UserLoginAttemptMethodFromJSON(json: any): UserLoginAttemptMethod {
|
|
43
|
+
return UserLoginAttemptMethodFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function UserLoginAttemptMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptMethod {
|
|
47
|
+
return json as UserLoginAttemptMethod;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function UserLoginAttemptMethodToJSON(value?: UserLoginAttemptMethod | null): any {
|
|
51
|
+
return value as any;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UserLoginAttemptMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserLoginAttemptMethod {
|
|
55
|
+
return value as UserLoginAttemptMethod;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* Outcome of the step.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const UserLoginAttemptResult = {
|
|
21
|
+
SUCCESS: 'success',
|
|
22
|
+
INVALID_CREDENTIALS: 'invalid_credentials',
|
|
23
|
+
SECOND_FACTOR_REQUIRED: 'second_factor_required',
|
|
24
|
+
SECOND_FACTOR_FAILED: 'second_factor_failed',
|
|
25
|
+
SECOND_FACTOR_LOCKED: 'second_factor_locked',
|
|
26
|
+
PASSWORD_LOGIN_DISABLED: 'password_login_disabled',
|
|
27
|
+
PASSKEY_LOGIN_DISABLED: 'passkey_login_disabled',
|
|
28
|
+
LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
|
|
29
|
+
} as const;
|
|
30
|
+
export type UserLoginAttemptResult = typeof UserLoginAttemptResult[keyof typeof UserLoginAttemptResult];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export function instanceOfUserLoginAttemptResult(value: any): boolean {
|
|
34
|
+
for (const key in UserLoginAttemptResult) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(UserLoginAttemptResult, key)) {
|
|
36
|
+
if (UserLoginAttemptResult[key as keyof typeof UserLoginAttemptResult] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UserLoginAttemptResultFromJSON(json: any): UserLoginAttemptResult {
|
|
45
|
+
return UserLoginAttemptResultFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function UserLoginAttemptResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptResult {
|
|
49
|
+
return json as UserLoginAttemptResult;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UserLoginAttemptResultToJSON(value?: UserLoginAttemptResult | null): any {
|
|
53
|
+
return value as any;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UserLoginAttemptResultToJSONTyped(value: any, ignoreDiscriminator: boolean): UserLoginAttemptResult {
|
|
57
|
+
return value as UserLoginAttemptResult;
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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 UserLoginLocationConfirmationDetailsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UserLoginLocationConfirmationDetailsDto {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the sign-in is still waiting for it.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UserLoginLocationConfirmationDetailsDto
|
|
26
|
+
*/
|
|
27
|
+
pending: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserLoginLocationConfirmationDetailsDto
|
|
32
|
+
*/
|
|
33
|
+
ip: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Organization of the network (ASN).
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserLoginLocationConfirmationDetailsDto
|
|
38
|
+
*/
|
|
39
|
+
network: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UserLoginLocationConfirmationDetailsDto
|
|
44
|
+
*/
|
|
45
|
+
country: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* User agent.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UserLoginLocationConfirmationDetailsDto
|
|
50
|
+
*/
|
|
51
|
+
device: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof UserLoginLocationConfirmationDetailsDto
|
|
56
|
+
*/
|
|
57
|
+
createdAt: Date;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UserLoginLocationConfirmationDetailsDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfUserLoginLocationConfirmationDetailsDto(value: object): value is UserLoginLocationConfirmationDetailsDto {
|
|
64
|
+
if (!('pending' in value) || value['pending'] === undefined) return false;
|
|
65
|
+
if (!('ip' in value) || value['ip'] === undefined) return false;
|
|
66
|
+
if (!('network' in value) || value['network'] === undefined) return false;
|
|
67
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
68
|
+
if (!('device' in value) || value['device'] === undefined) return false;
|
|
69
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UserLoginLocationConfirmationDetailsDtoFromJSON(json: any): UserLoginLocationConfirmationDetailsDto {
|
|
74
|
+
return UserLoginLocationConfirmationDetailsDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function UserLoginLocationConfirmationDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginLocationConfirmationDetailsDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'pending': json['pending'],
|
|
84
|
+
'ip': json['ip'],
|
|
85
|
+
'network': json['network'],
|
|
86
|
+
'country': json['country'],
|
|
87
|
+
'device': json['device'],
|
|
88
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function UserLoginLocationConfirmationDetailsDtoToJSON(json: any): UserLoginLocationConfirmationDetailsDto {
|
|
93
|
+
return UserLoginLocationConfirmationDetailsDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function UserLoginLocationConfirmationDetailsDtoToJSONTyped(value?: UserLoginLocationConfirmationDetailsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'pending': value['pending'],
|
|
104
|
+
'ip': value['ip'],
|
|
105
|
+
'network': value['network'],
|
|
106
|
+
'country': value['country'],
|
|
107
|
+
'device': value['device'],
|
|
108
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -130,6 +130,7 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
130
130
|
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
131
131
|
PASSWORD_RESET: 'password_reset',
|
|
132
132
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
133
|
+
USER_LOGIN_LOCATION_CONFIRMATION: 'user_login_location_confirmation',
|
|
133
134
|
USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
|
|
134
135
|
BUYER_INVOICE: 'buyer_invoice',
|
|
135
136
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
@@ -116,6 +116,7 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
116
116
|
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
117
117
|
PASSWORD_RESET: 'password_reset',
|
|
118
118
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
119
|
+
USER_LOGIN_LOCATION_CONFIRMATION: 'user_login_location_confirmation',
|
|
119
120
|
USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
|
|
120
121
|
BUYER_INVOICE: 'buyer_invoice',
|
|
121
122
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
@@ -0,0 +1,111 @@
|
|
|
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 UserPasskeyDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UserPasskeyDto {
|
|
22
|
+
/**
|
|
23
|
+
* Passkey ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UserPasskeyDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Name the user gave the passkey.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserPasskeyDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the passkey syncs across devices (multiDevice) or lives on one (singleDevice).
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserPasskeyDto
|
|
38
|
+
*/
|
|
39
|
+
deviceType: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the passkey is backed up.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof UserPasskeyDto
|
|
44
|
+
*/
|
|
45
|
+
backedUp: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* When the passkey was added.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof UserPasskeyDto
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
* When the passkey was last used to sign in.
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof UserPasskeyDto
|
|
56
|
+
*/
|
|
57
|
+
lastUsedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UserPasskeyDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfUserPasskeyDto(value: object): value is UserPasskeyDto {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
66
|
+
if (!('deviceType' in value) || value['deviceType'] === undefined) return false;
|
|
67
|
+
if (!('backedUp' in value) || value['backedUp'] === undefined) return false;
|
|
68
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
69
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UserPasskeyDtoFromJSON(json: any): UserPasskeyDto {
|
|
74
|
+
return UserPasskeyDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function UserPasskeyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasskeyDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'name': json['name'],
|
|
85
|
+
'deviceType': json['deviceType'],
|
|
86
|
+
'backedUp': json['backedUp'],
|
|
87
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
88
|
+
'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function UserPasskeyDtoToJSON(json: any): UserPasskeyDto {
|
|
93
|
+
return UserPasskeyDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function UserPasskeyDtoToJSONTyped(value?: UserPasskeyDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'name': value['name'],
|
|
105
|
+
'deviceType': value['deviceType'],
|
|
106
|
+
'backedUp': value['backedUp'],
|
|
107
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
108
|
+
'lastUsedAt': (value['lastUsedAt'] == null ? null : (value['lastUsedAt'] as any).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|