@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,106 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { UserLoginAttemptDto } from './UserLoginAttemptDto';
|
|
24
|
+
import {
|
|
25
|
+
UserLoginAttemptDtoFromJSON,
|
|
26
|
+
UserLoginAttemptDtoFromJSONTyped,
|
|
27
|
+
UserLoginAttemptDtoToJSON,
|
|
28
|
+
UserLoginAttemptDtoToJSONTyped,
|
|
29
|
+
} from './UserLoginAttemptDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ListUserLoginAttempts200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListUserLoginAttempts200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<UserLoginAttemptDto>}
|
|
47
|
+
* @memberof ListUserLoginAttempts200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<UserLoginAttemptDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListUserLoginAttempts200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListUserLoginAttempts200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListUserLoginAttempts200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListUserLoginAttempts200Response(value: object): value is ListUserLoginAttempts200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListUserLoginAttempts200ResponseFromJSON(json: any): ListUserLoginAttempts200Response {
|
|
75
|
+
return ListUserLoginAttempts200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListUserLoginAttempts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListUserLoginAttempts200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(UserLoginAttemptDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListUserLoginAttempts200ResponseToJSON(json: any): ListUserLoginAttempts200Response {
|
|
91
|
+
return ListUserLoginAttempts200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListUserLoginAttempts200ResponseToJSONTyped(value?: ListUserLoginAttempts200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(UserLoginAttemptDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -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 LoginChallengeInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginChallengeInput {
|
|
22
|
+
/**
|
|
23
|
+
* Challenge token returned by the previous sign-in step.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginChallengeInput
|
|
26
|
+
*/
|
|
27
|
+
challengeToken: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LoginChallengeInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLoginChallengeInput(value: object): value is LoginChallengeInput {
|
|
34
|
+
if (!('challengeToken' in value) || value['challengeToken'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function LoginChallengeInputFromJSON(json: any): LoginChallengeInput {
|
|
39
|
+
return LoginChallengeInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LoginChallengeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginChallengeInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'challengeToken': json['challengeToken'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LoginChallengeInputToJSON(json: any): LoginChallengeInput {
|
|
53
|
+
return LoginChallengeInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LoginChallengeInputToJSONTyped(value?: LoginChallengeInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'challengeToken': value['challengeToken'],
|
|
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 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 LoginPasswordInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginPasswordInput {
|
|
22
|
+
/**
|
|
23
|
+
* Challenge token returned by the previous sign-in step.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginPasswordInput
|
|
26
|
+
*/
|
|
27
|
+
challengeToken: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginPasswordInput
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginPasswordInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginPasswordInput(value: object): value is LoginPasswordInput {
|
|
40
|
+
if (!('challengeToken' in value) || value['challengeToken'] === undefined) return false;
|
|
41
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginPasswordInputFromJSON(json: any): LoginPasswordInput {
|
|
46
|
+
return LoginPasswordInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginPasswordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasswordInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'challengeToken': json['challengeToken'],
|
|
56
|
+
'password': json['password'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LoginPasswordInputToJSON(json: any): LoginPasswordInput {
|
|
61
|
+
return LoginPasswordInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LoginPasswordInputToJSONTyped(value?: LoginPasswordInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'challengeToken': value['challengeToken'],
|
|
72
|
+
'password': value['password'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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
|
+
|