@randock/nameshift-api-client 0.0.502 → 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 +35 -1
- 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/PartnerApi.d.ts +14 -1
- package/dist/apis/PartnerApi.js +53 -0
- 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/PartnerDomainSeoMetricsDto.d.ts +40 -0
- package/dist/models/PartnerDomainSeoMetricsDto.js +57 -0
- package/dist/models/PartnerMajesticMetricsDto.d.ts +56 -0
- package/dist/models/PartnerMajesticMetricsDto.js +67 -0
- package/dist/models/PartnerMozMetricsDto.d.ts +62 -0
- package/dist/models/PartnerMozMetricsDto.js +71 -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/{NotFoundException.js → RenameUserPasskeyInput.js} +13 -21
- 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 +35 -1
- package/dist/models/index.js +35 -1
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AccountsPublicApi.ts +0 -3
- package/src/apis/AdminApi.ts +172 -3
- package/src/apis/AuctionsApi.ts +0 -3
- package/src/apis/BuyersApi.ts +0 -3
- package/src/apis/BuyersPublicApi.ts +6 -6
- package/src/apis/CustomerSuccessApi.ts +0 -3
- package/src/apis/DomainAppraisalRequestsApi.ts +0 -3
- package/src/apis/DomainAppraisalRequestsPublicApi.ts +0 -3
- package/src/apis/DomainsApi.ts +0 -3
- package/src/apis/DomainsPublicApi.ts +0 -3
- package/src/apis/InvoicesApi.ts +0 -3
- package/src/apis/JobsApi.ts +0 -3
- package/src/apis/LeadsPublicApi.ts +0 -3
- package/src/apis/NotificationsApi.ts +0 -3
- package/src/apis/OrdersPublicApi.ts +0 -3
- package/src/apis/PartnerApi.ts +46 -0
- package/src/apis/SubscriptionsPublicApi.ts +0 -3
- package/src/apis/UsersApi.ts +1219 -48
- package/src/apis/UsersPublicApi.ts +375 -5
- 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/PartnerDomainSeoMetricsDto.ts +90 -0
- package/src/models/PartnerMajesticMetricsDto.ts +102 -0
- package/src/models/PartnerMozMetricsDto.ts +111 -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 +35 -1
- package/dist/models/NotFoundException.d.ts +0 -44
- package/src/models/NotFoundException.ts +0 -84
|
@@ -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
|
+
* Second factors the user can prove, when one is required, preferred first.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SecondFactorMethod = {
|
|
21
|
+
PASSKEY: 'passkey',
|
|
22
|
+
TOTP: 'totp',
|
|
23
|
+
RECOVERY_CODE: 'recovery_code'
|
|
24
|
+
} as const;
|
|
25
|
+
export type SecondFactorMethod = typeof SecondFactorMethod[keyof typeof SecondFactorMethod];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfSecondFactorMethod(value: any): boolean {
|
|
29
|
+
for (const key in SecondFactorMethod) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(SecondFactorMethod, key)) {
|
|
31
|
+
if (SecondFactorMethod[key as keyof typeof SecondFactorMethod] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SecondFactorMethodFromJSON(json: any): SecondFactorMethod {
|
|
40
|
+
return SecondFactorMethodFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SecondFactorMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecondFactorMethod {
|
|
44
|
+
return json as SecondFactorMethod;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SecondFactorMethodToJSON(value?: SecondFactorMethod | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SecondFactorMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): SecondFactorMethod {
|
|
52
|
+
return value as SecondFactorMethod;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -81,6 +81,18 @@ export interface SellerSecurityUserDto {
|
|
|
81
81
|
* @memberof SellerSecurityUserDto
|
|
82
82
|
*/
|
|
83
83
|
account: SellerSecurityUserAccountDto;
|
|
84
|
+
/**
|
|
85
|
+
* What the user proved to sign in (RFC 8176): pwd, otp, rec, hwk (passkey) or imp (impersonation).
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof SellerSecurityUserDto
|
|
88
|
+
*/
|
|
89
|
+
amr?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the session was opened with more than a password.
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof SellerSecurityUserDto
|
|
94
|
+
*/
|
|
95
|
+
mfa?: boolean;
|
|
84
96
|
}
|
|
85
97
|
|
|
86
98
|
|
|
@@ -129,6 +141,8 @@ export function SellerSecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
141
|
'firstname': json['firstname'],
|
|
130
142
|
'lastname': json['lastname'],
|
|
131
143
|
'account': SellerSecurityUserAccountDtoFromJSON(json['account']),
|
|
144
|
+
'amr': json['amr'] == null ? undefined : json['amr'],
|
|
145
|
+
'mfa': json['mfa'] == null ? undefined : json['mfa'],
|
|
132
146
|
};
|
|
133
147
|
}
|
|
134
148
|
|
|
@@ -152,6 +166,8 @@ export function SellerSecurityUserDtoToJSONTyped(value?: SellerSecurityUserDto |
|
|
|
152
166
|
'firstname': value['firstname'],
|
|
153
167
|
'lastname': value['lastname'],
|
|
154
168
|
'account': SellerSecurityUserAccountDtoToJSON(value['account']),
|
|
169
|
+
'amr': value['amr'],
|
|
170
|
+
'mfa': value['mfa'],
|
|
155
171
|
};
|
|
156
172
|
}
|
|
157
173
|
|
|
@@ -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,55 @@
|
|
|
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
|
+
* Method the user signs in with.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const UserAuthenticationMethod = {
|
|
21
|
+
PASSWORD: 'password',
|
|
22
|
+
PASSWORD_AND_SECOND_FACTOR: 'password_and_second_factor',
|
|
23
|
+
PASSKEY_AND_TOTP: 'passkey_and_totp',
|
|
24
|
+
PASSKEY: 'passkey'
|
|
25
|
+
} as const;
|
|
26
|
+
export type UserAuthenticationMethod = typeof UserAuthenticationMethod[keyof typeof UserAuthenticationMethod];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfUserAuthenticationMethod(value: any): boolean {
|
|
30
|
+
for (const key in UserAuthenticationMethod) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(UserAuthenticationMethod, key)) {
|
|
32
|
+
if (UserAuthenticationMethod[key as keyof typeof UserAuthenticationMethod] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function UserAuthenticationMethodFromJSON(json: any): UserAuthenticationMethod {
|
|
41
|
+
return UserAuthenticationMethodFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UserAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthenticationMethod {
|
|
45
|
+
return json as UserAuthenticationMethod;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function UserAuthenticationMethodToJSON(value?: UserAuthenticationMethod | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UserAuthenticationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAuthenticationMethod {
|
|
53
|
+
return value as UserAuthenticationMethod;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -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,58 @@
|
|
|
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
|
+
LOCATION_CONFIRMATION_REQUIRED: 'location_confirmation_required'
|
|
28
|
+
} as const;
|
|
29
|
+
export type UserLoginAttemptResult = typeof UserLoginAttemptResult[keyof typeof UserLoginAttemptResult];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function instanceOfUserLoginAttemptResult(value: any): boolean {
|
|
33
|
+
for (const key in UserLoginAttemptResult) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(UserLoginAttemptResult, key)) {
|
|
35
|
+
if (UserLoginAttemptResult[key as keyof typeof UserLoginAttemptResult] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UserLoginAttemptResultFromJSON(json: any): UserLoginAttemptResult {
|
|
44
|
+
return UserLoginAttemptResultFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserLoginAttemptResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginAttemptResult {
|
|
48
|
+
return json as UserLoginAttemptResult;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserLoginAttemptResultToJSON(value?: UserLoginAttemptResult | null): any {
|
|
52
|
+
return value as any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UserLoginAttemptResultToJSONTyped(value: any, ignoreDiscriminator: boolean): UserLoginAttemptResult {
|
|
56
|
+
return value as UserLoginAttemptResult;
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -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',
|