@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
|
@@ -10,16 +10,42 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ForgotPasswordRequestInput, LoginDto, LoginInput, NotificationsUnsubscribeResultDto, SetNewPasswordInput, UserPasswordResetDto, UserSignedTokenInput } from '../models/index';
|
|
13
|
+
import type { ConfirmLoginLocationInput, ForgotPasswordRequestInput, LoginChallengeInput, LoginCodeInput, LoginDto, LoginInput, LoginPasskeyInput, LoginPasskeyOptionsInput, LoginRecoveryCodeInput, NotificationsUnsubscribeResultDto, PasskeyOptionsDto, SetNewPasswordInput, UserLoginLocationConfirmationDetailsDto, UserPasswordResetDto, UserSignedTokenInput } from '../models/index';
|
|
14
|
+
export interface UsersPublicApiConfirmLoginLocationRequest {
|
|
15
|
+
confirmationId: string;
|
|
16
|
+
confirmLoginLocationInput: ConfirmLoginLocationInput;
|
|
17
|
+
}
|
|
14
18
|
export interface UsersPublicApiForgotPasswordRequestRequest {
|
|
15
19
|
forgotPasswordRequestInput: ForgotPasswordRequestInput;
|
|
16
20
|
}
|
|
17
21
|
export interface UsersPublicApiGetForgotPasswordRequestRequest {
|
|
18
22
|
passwordRequestId: string;
|
|
19
23
|
}
|
|
24
|
+
export interface UsersPublicApiGetLoginLocationConfirmationDetailsRequest {
|
|
25
|
+
confirmationId: string;
|
|
26
|
+
confirmLoginLocationInput: ConfirmLoginLocationInput;
|
|
27
|
+
}
|
|
28
|
+
export interface UsersPublicApiGetLoginLocationConfirmationStatusRequest {
|
|
29
|
+
loginChallengeInput: LoginChallengeInput;
|
|
30
|
+
}
|
|
31
|
+
export interface UsersPublicApiGetLoginPasskeyOptionsRequest {
|
|
32
|
+
loginPasskeyOptionsInput: LoginPasskeyOptionsInput;
|
|
33
|
+
}
|
|
20
34
|
export interface UsersPublicApiLoginRequest {
|
|
21
35
|
loginInput: LoginInput;
|
|
22
36
|
}
|
|
37
|
+
export interface UsersPublicApiLoginWithPasskeyRequest {
|
|
38
|
+
loginPasskeyInput: LoginPasskeyInput;
|
|
39
|
+
}
|
|
40
|
+
export interface UsersPublicApiLoginWithRecoveryCodeRequest {
|
|
41
|
+
loginCodeInput: LoginCodeInput;
|
|
42
|
+
}
|
|
43
|
+
export interface UsersPublicApiLoginWithRecoveryCodeInsteadOfPasskeyRequest {
|
|
44
|
+
loginRecoveryCodeInput: LoginRecoveryCodeInput;
|
|
45
|
+
}
|
|
46
|
+
export interface UsersPublicApiLoginWithTotpRequest {
|
|
47
|
+
loginCodeInput: LoginCodeInput;
|
|
48
|
+
}
|
|
23
49
|
export interface UsersPublicApiPostNewPasswordRequest {
|
|
24
50
|
passwordRequestId: string;
|
|
25
51
|
setNewPasswordInput: SetNewPasswordInput;
|
|
@@ -31,6 +57,16 @@ export interface UsersPublicApiUnsubscribeFromNotificationsByTokenRequest {
|
|
|
31
57
|
*
|
|
32
58
|
*/
|
|
33
59
|
export declare class UsersPublicApi extends runtime.BaseAPI {
|
|
60
|
+
/**
|
|
61
|
+
* Called by the page the email links to. It only approves the sign-in: no session is returned here.
|
|
62
|
+
* Approve a sign-in from a new location
|
|
63
|
+
*/
|
|
64
|
+
confirmLoginLocationRaw(requestParameters: UsersPublicApiConfirmLoginLocationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
65
|
+
/**
|
|
66
|
+
* Called by the page the email links to. It only approves the sign-in: no session is returned here.
|
|
67
|
+
* Approve a sign-in from a new location
|
|
68
|
+
*/
|
|
69
|
+
confirmLoginLocation(requestParameters: UsersPublicApiConfirmLoginLocationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
34
70
|
/**
|
|
35
71
|
* Creates a password reset request and sends a reset link to the provided email address.
|
|
36
72
|
* Request a password reset email
|
|
@@ -52,15 +88,83 @@ export declare class UsersPublicApi extends runtime.BaseAPI {
|
|
|
52
88
|
*/
|
|
53
89
|
getForgotPasswordRequest(requestParameters: UsersPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPasswordResetDto>;
|
|
54
90
|
/**
|
|
55
|
-
*
|
|
91
|
+
* Approves nothing: the page the email links to shows these details and approves only when the user says so, so that mail scanners opening the link approve nothing.
|
|
92
|
+
* See the sign-in an email link asks to approve
|
|
93
|
+
*/
|
|
94
|
+
getLoginLocationConfirmationDetailsRaw(requestParameters: UsersPublicApiGetLoginLocationConfirmationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLoginLocationConfirmationDetailsDto>>;
|
|
95
|
+
/**
|
|
96
|
+
* Approves nothing: the page the email links to shows these details and approves only when the user says so, so that mail scanners opening the link approve nothing.
|
|
97
|
+
* See the sign-in an email link asks to approve
|
|
98
|
+
*/
|
|
99
|
+
getLoginLocationConfirmationDetails(requestParameters: UsersPublicApiGetLoginLocationConfirmationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLoginLocationConfirmationDetailsDto>;
|
|
100
|
+
/**
|
|
101
|
+
* Polled by the browser that started the sign-in. It, and only it, gets the session once the user opens the link in the email.
|
|
102
|
+
* Wait for the email confirming a new location
|
|
103
|
+
*/
|
|
104
|
+
getLoginLocationConfirmationStatusRaw(requestParameters: UsersPublicApiGetLoginLocationConfirmationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>>;
|
|
105
|
+
/**
|
|
106
|
+
* Polled by the browser that started the sign-in. It, and only it, gets the session once the user opens the link in the email.
|
|
107
|
+
* Wait for the email confirming a new location
|
|
108
|
+
*/
|
|
109
|
+
getLoginLocationConfirmationStatus(requestParameters: UsersPublicApiGetLoginLocationConfirmationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
110
|
+
/**
|
|
111
|
+
* Without a challenge token, any passkey of the site on the device can answer and signs in on its own. With one, the passkey is the second factor of that sign-in.
|
|
112
|
+
* Start signing in with a passkey
|
|
113
|
+
*/
|
|
114
|
+
getLoginPasskeyOptionsRaw(requestParameters: UsersPublicApiGetLoginPasskeyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasskeyOptionsDto>>;
|
|
115
|
+
/**
|
|
116
|
+
* Without a challenge token, any passkey of the site on the device can answer and signs in on its own. With one, the passkey is the second factor of that sign-in.
|
|
117
|
+
* Start signing in with a passkey
|
|
118
|
+
*/
|
|
119
|
+
getLoginPasskeyOptions(requestParameters: UsersPublicApiGetLoginPasskeyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasskeyOptionsDto>;
|
|
120
|
+
/**
|
|
121
|
+
* Validates email and password. Returns the session token, or a challenge token and the next step: a second factor, setting up an authenticator app, or confirming a new location by email.
|
|
56
122
|
* Authenticate a seller user
|
|
57
123
|
*/
|
|
58
124
|
loginRaw(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>>;
|
|
59
125
|
/**
|
|
60
|
-
* Validates email and password
|
|
126
|
+
* Validates email and password. Returns the session token, or a challenge token and the next step: a second factor, setting up an authenticator app, or confirming a new location by email.
|
|
61
127
|
* Authenticate a seller user
|
|
62
128
|
*/
|
|
63
129
|
login(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
130
|
+
/**
|
|
131
|
+
* Sign in with a passkey, or prove the second factor with one
|
|
132
|
+
*/
|
|
133
|
+
loginWithPasskeyRaw(requestParameters: UsersPublicApiLoginWithPasskeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>>;
|
|
134
|
+
/**
|
|
135
|
+
* Sign in with a passkey, or prove the second factor with one
|
|
136
|
+
*/
|
|
137
|
+
loginWithPasskey(requestParameters: UsersPublicApiLoginWithPasskeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
138
|
+
/**
|
|
139
|
+
* Each recovery code works once.
|
|
140
|
+
* Prove the second factor with a recovery code
|
|
141
|
+
*/
|
|
142
|
+
loginWithRecoveryCodeRaw(requestParameters: UsersPublicApiLoginWithRecoveryCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>>;
|
|
143
|
+
/**
|
|
144
|
+
* Each recovery code works once.
|
|
145
|
+
* Prove the second factor with a recovery code
|
|
146
|
+
*/
|
|
147
|
+
loginWithRecoveryCode(requestParameters: UsersPublicApiLoginWithRecoveryCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
148
|
+
/**
|
|
149
|
+
* For users who sign in without a password: the recovery code stands in for the passkey (and the authenticator app is still asked for when the method needs it). Users who sign in with a password enter it first, then the recovery code as their verification step; here they get the same error as for a wrong code.
|
|
150
|
+
* Sign in with a recovery code instead of a lost passkey
|
|
151
|
+
*/
|
|
152
|
+
loginWithRecoveryCodeInsteadOfPasskeyRaw(requestParameters: UsersPublicApiLoginWithRecoveryCodeInsteadOfPasskeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>>;
|
|
153
|
+
/**
|
|
154
|
+
* For users who sign in without a password: the recovery code stands in for the passkey (and the authenticator app is still asked for when the method needs it). Users who sign in with a password enter it first, then the recovery code as their verification step; here they get the same error as for a wrong code.
|
|
155
|
+
* Sign in with a recovery code instead of a lost passkey
|
|
156
|
+
*/
|
|
157
|
+
loginWithRecoveryCodeInsteadOfPasskey(requestParameters: UsersPublicApiLoginWithRecoveryCodeInsteadOfPasskeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
158
|
+
/**
|
|
159
|
+
* Accepts the code of the current period, the previous or the next one, never twice.
|
|
160
|
+
* Prove the second factor with an authenticator app code
|
|
161
|
+
*/
|
|
162
|
+
loginWithTotpRaw(requestParameters: UsersPublicApiLoginWithTotpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>>;
|
|
163
|
+
/**
|
|
164
|
+
* Accepts the code of the current period, the previous or the next one, never twice.
|
|
165
|
+
* Prove the second factor with an authenticator app code
|
|
166
|
+
*/
|
|
167
|
+
loginWithTotp(requestParameters: UsersPublicApiLoginWithTotpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
64
168
|
/**
|
|
65
169
|
* Completes the password reset flow by setting a new password for the user linked to the reset request.
|
|
66
170
|
* Set a new password from reset request
|
|
@@ -75,6 +75,55 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function UsersPublicApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Called by the page the email links to. It only approves the sign-in: no session is returned here.
|
|
80
|
+
* Approve a sign-in from a new location
|
|
81
|
+
*/
|
|
82
|
+
UsersPublicApi.prototype.confirmLoginLocationRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['confirmationId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('confirmationId', 'Required parameter "confirmationId" was null or undefined when calling confirmLoginLocation().');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['confirmLoginLocationInput'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('confirmLoginLocationInput', 'Required parameter "confirmLoginLocationInput" was null or undefined when calling confirmLoginLocation().');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
headerParameters = {};
|
|
96
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
return [4 /*yield*/, this.request({
|
|
98
|
+
path: "/users/login/location-confirmation/{confirmationId}/confirm".replace("{".concat("confirmationId", "}"), encodeURIComponent(String(requestParameters['confirmationId']))),
|
|
99
|
+
method: 'POST',
|
|
100
|
+
headers: headerParameters,
|
|
101
|
+
query: queryParameters,
|
|
102
|
+
body: (0, index_1.ConfirmLoginLocationInputToJSON)(requestParameters['confirmLoginLocationInput']),
|
|
103
|
+
}, initOverrides)];
|
|
104
|
+
case 1:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Called by the page the email links to. It only approves the sign-in: no session is returned here.
|
|
113
|
+
* Approve a sign-in from a new location
|
|
114
|
+
*/
|
|
115
|
+
UsersPublicApi.prototype.confirmLoginLocation = function (requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0: return [4 /*yield*/, this.confirmLoginLocationRaw(requestParameters, initOverrides)];
|
|
120
|
+
case 1:
|
|
121
|
+
_a.sent();
|
|
122
|
+
return [2 /*return*/];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
};
|
|
78
127
|
/**
|
|
79
128
|
* Creates a password reset request and sends a reset link to the provided email address.
|
|
80
129
|
* Request a password reset email
|
|
@@ -168,7 +217,154 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
168
217
|
});
|
|
169
218
|
};
|
|
170
219
|
/**
|
|
171
|
-
*
|
|
220
|
+
* Approves nothing: the page the email links to shows these details and approves only when the user says so, so that mail scanners opening the link approve nothing.
|
|
221
|
+
* See the sign-in an email link asks to approve
|
|
222
|
+
*/
|
|
223
|
+
UsersPublicApi.prototype.getLoginLocationConfirmationDetailsRaw = function (requestParameters, initOverrides) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
+
var queryParameters, headerParameters, response;
|
|
226
|
+
return __generator(this, function (_a) {
|
|
227
|
+
switch (_a.label) {
|
|
228
|
+
case 0:
|
|
229
|
+
if (requestParameters['confirmationId'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('confirmationId', 'Required parameter "confirmationId" was null or undefined when calling getLoginLocationConfirmationDetails().');
|
|
231
|
+
}
|
|
232
|
+
if (requestParameters['confirmLoginLocationInput'] == null) {
|
|
233
|
+
throw new runtime.RequiredError('confirmLoginLocationInput', 'Required parameter "confirmLoginLocationInput" was null or undefined when calling getLoginLocationConfirmationDetails().');
|
|
234
|
+
}
|
|
235
|
+
queryParameters = {};
|
|
236
|
+
headerParameters = {};
|
|
237
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
238
|
+
return [4 /*yield*/, this.request({
|
|
239
|
+
path: "/users/login/location-confirmation/{confirmationId}/details".replace("{".concat("confirmationId", "}"), encodeURIComponent(String(requestParameters['confirmationId']))),
|
|
240
|
+
method: 'POST',
|
|
241
|
+
headers: headerParameters,
|
|
242
|
+
query: queryParameters,
|
|
243
|
+
body: (0, index_1.ConfirmLoginLocationInputToJSON)(requestParameters['confirmLoginLocationInput']),
|
|
244
|
+
}, initOverrides)];
|
|
245
|
+
case 1:
|
|
246
|
+
response = _a.sent();
|
|
247
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserLoginLocationConfirmationDetailsDtoFromJSON)(jsonValue); })];
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Approves nothing: the page the email links to shows these details and approves only when the user says so, so that mail scanners opening the link approve nothing.
|
|
254
|
+
* See the sign-in an email link asks to approve
|
|
255
|
+
*/
|
|
256
|
+
UsersPublicApi.prototype.getLoginLocationConfirmationDetails = function (requestParameters, initOverrides) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
258
|
+
var response;
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
switch (_a.label) {
|
|
261
|
+
case 0: return [4 /*yield*/, this.getLoginLocationConfirmationDetailsRaw(requestParameters, initOverrides)];
|
|
262
|
+
case 1:
|
|
263
|
+
response = _a.sent();
|
|
264
|
+
return [4 /*yield*/, response.value()];
|
|
265
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Polled by the browser that started the sign-in. It, and only it, gets the session once the user opens the link in the email.
|
|
272
|
+
* Wait for the email confirming a new location
|
|
273
|
+
*/
|
|
274
|
+
UsersPublicApi.prototype.getLoginLocationConfirmationStatusRaw = function (requestParameters, initOverrides) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
276
|
+
var queryParameters, headerParameters, response;
|
|
277
|
+
return __generator(this, function (_a) {
|
|
278
|
+
switch (_a.label) {
|
|
279
|
+
case 0:
|
|
280
|
+
if (requestParameters['loginChallengeInput'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('loginChallengeInput', 'Required parameter "loginChallengeInput" was null or undefined when calling getLoginLocationConfirmationStatus().');
|
|
282
|
+
}
|
|
283
|
+
queryParameters = {};
|
|
284
|
+
headerParameters = {};
|
|
285
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
286
|
+
return [4 /*yield*/, this.request({
|
|
287
|
+
path: "/users/login/location-confirmation/status",
|
|
288
|
+
method: 'POST',
|
|
289
|
+
headers: headerParameters,
|
|
290
|
+
query: queryParameters,
|
|
291
|
+
body: (0, index_1.LoginChallengeInputToJSON)(requestParameters['loginChallengeInput']),
|
|
292
|
+
}, initOverrides)];
|
|
293
|
+
case 1:
|
|
294
|
+
response = _a.sent();
|
|
295
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginDtoFromJSON)(jsonValue); })];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* Polled by the browser that started the sign-in. It, and only it, gets the session once the user opens the link in the email.
|
|
302
|
+
* Wait for the email confirming a new location
|
|
303
|
+
*/
|
|
304
|
+
UsersPublicApi.prototype.getLoginLocationConfirmationStatus = function (requestParameters, initOverrides) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
306
|
+
var response;
|
|
307
|
+
return __generator(this, function (_a) {
|
|
308
|
+
switch (_a.label) {
|
|
309
|
+
case 0: return [4 /*yield*/, this.getLoginLocationConfirmationStatusRaw(requestParameters, initOverrides)];
|
|
310
|
+
case 1:
|
|
311
|
+
response = _a.sent();
|
|
312
|
+
return [4 /*yield*/, response.value()];
|
|
313
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Without a challenge token, any passkey of the site on the device can answer and signs in on its own. With one, the passkey is the second factor of that sign-in.
|
|
320
|
+
* Start signing in with a passkey
|
|
321
|
+
*/
|
|
322
|
+
UsersPublicApi.prototype.getLoginPasskeyOptionsRaw = function (requestParameters, initOverrides) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
324
|
+
var queryParameters, headerParameters, response;
|
|
325
|
+
return __generator(this, function (_a) {
|
|
326
|
+
switch (_a.label) {
|
|
327
|
+
case 0:
|
|
328
|
+
if (requestParameters['loginPasskeyOptionsInput'] == null) {
|
|
329
|
+
throw new runtime.RequiredError('loginPasskeyOptionsInput', 'Required parameter "loginPasskeyOptionsInput" was null or undefined when calling getLoginPasskeyOptions().');
|
|
330
|
+
}
|
|
331
|
+
queryParameters = {};
|
|
332
|
+
headerParameters = {};
|
|
333
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
334
|
+
return [4 /*yield*/, this.request({
|
|
335
|
+
path: "/users/login/passkey/options",
|
|
336
|
+
method: 'POST',
|
|
337
|
+
headers: headerParameters,
|
|
338
|
+
query: queryParameters,
|
|
339
|
+
body: (0, index_1.LoginPasskeyOptionsInputToJSON)(requestParameters['loginPasskeyOptionsInput']),
|
|
340
|
+
}, initOverrides)];
|
|
341
|
+
case 1:
|
|
342
|
+
response = _a.sent();
|
|
343
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PasskeyOptionsDtoFromJSON)(jsonValue); })];
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Without a challenge token, any passkey of the site on the device can answer and signs in on its own. With one, the passkey is the second factor of that sign-in.
|
|
350
|
+
* Start signing in with a passkey
|
|
351
|
+
*/
|
|
352
|
+
UsersPublicApi.prototype.getLoginPasskeyOptions = function (requestParameters, initOverrides) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
354
|
+
var response;
|
|
355
|
+
return __generator(this, function (_a) {
|
|
356
|
+
switch (_a.label) {
|
|
357
|
+
case 0: return [4 /*yield*/, this.getLoginPasskeyOptionsRaw(requestParameters, initOverrides)];
|
|
358
|
+
case 1:
|
|
359
|
+
response = _a.sent();
|
|
360
|
+
return [4 /*yield*/, response.value()];
|
|
361
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Validates email and password. Returns the session token, or a challenge token and the next step: a second factor, setting up an authenticator app, or confirming a new location by email.
|
|
172
368
|
* Authenticate a seller user
|
|
173
369
|
*/
|
|
174
370
|
UsersPublicApi.prototype.loginRaw = function (requestParameters, initOverrides) {
|
|
@@ -198,7 +394,7 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
198
394
|
});
|
|
199
395
|
};
|
|
200
396
|
/**
|
|
201
|
-
* Validates email and password
|
|
397
|
+
* Validates email and password. Returns the session token, or a challenge token and the next step: a second factor, setting up an authenticator app, or confirming a new location by email.
|
|
202
398
|
* Authenticate a seller user
|
|
203
399
|
*/
|
|
204
400
|
UsersPublicApi.prototype.login = function (requestParameters, initOverrides) {
|
|
@@ -215,6 +411,196 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
215
411
|
});
|
|
216
412
|
});
|
|
217
413
|
};
|
|
414
|
+
/**
|
|
415
|
+
* Sign in with a passkey, or prove the second factor with one
|
|
416
|
+
*/
|
|
417
|
+
UsersPublicApi.prototype.loginWithPasskeyRaw = function (requestParameters, initOverrides) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
419
|
+
var queryParameters, headerParameters, response;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
switch (_a.label) {
|
|
422
|
+
case 0:
|
|
423
|
+
if (requestParameters['loginPasskeyInput'] == null) {
|
|
424
|
+
throw new runtime.RequiredError('loginPasskeyInput', 'Required parameter "loginPasskeyInput" was null or undefined when calling loginWithPasskey().');
|
|
425
|
+
}
|
|
426
|
+
queryParameters = {};
|
|
427
|
+
headerParameters = {};
|
|
428
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
429
|
+
return [4 /*yield*/, this.request({
|
|
430
|
+
path: "/users/login/passkey",
|
|
431
|
+
method: 'POST',
|
|
432
|
+
headers: headerParameters,
|
|
433
|
+
query: queryParameters,
|
|
434
|
+
body: (0, index_1.LoginPasskeyInputToJSON)(requestParameters['loginPasskeyInput']),
|
|
435
|
+
}, initOverrides)];
|
|
436
|
+
case 1:
|
|
437
|
+
response = _a.sent();
|
|
438
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginDtoFromJSON)(jsonValue); })];
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
});
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* Sign in with a passkey, or prove the second factor with one
|
|
445
|
+
*/
|
|
446
|
+
UsersPublicApi.prototype.loginWithPasskey = function (requestParameters, initOverrides) {
|
|
447
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
448
|
+
var response;
|
|
449
|
+
return __generator(this, function (_a) {
|
|
450
|
+
switch (_a.label) {
|
|
451
|
+
case 0: return [4 /*yield*/, this.loginWithPasskeyRaw(requestParameters, initOverrides)];
|
|
452
|
+
case 1:
|
|
453
|
+
response = _a.sent();
|
|
454
|
+
return [4 /*yield*/, response.value()];
|
|
455
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
});
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* Each recovery code works once.
|
|
462
|
+
* Prove the second factor with a recovery code
|
|
463
|
+
*/
|
|
464
|
+
UsersPublicApi.prototype.loginWithRecoveryCodeRaw = function (requestParameters, initOverrides) {
|
|
465
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
466
|
+
var queryParameters, headerParameters, response;
|
|
467
|
+
return __generator(this, function (_a) {
|
|
468
|
+
switch (_a.label) {
|
|
469
|
+
case 0:
|
|
470
|
+
if (requestParameters['loginCodeInput'] == null) {
|
|
471
|
+
throw new runtime.RequiredError('loginCodeInput', 'Required parameter "loginCodeInput" was null or undefined when calling loginWithRecoveryCode().');
|
|
472
|
+
}
|
|
473
|
+
queryParameters = {};
|
|
474
|
+
headerParameters = {};
|
|
475
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
476
|
+
return [4 /*yield*/, this.request({
|
|
477
|
+
path: "/users/login/recovery-code",
|
|
478
|
+
method: 'POST',
|
|
479
|
+
headers: headerParameters,
|
|
480
|
+
query: queryParameters,
|
|
481
|
+
body: (0, index_1.LoginCodeInputToJSON)(requestParameters['loginCodeInput']),
|
|
482
|
+
}, initOverrides)];
|
|
483
|
+
case 1:
|
|
484
|
+
response = _a.sent();
|
|
485
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginDtoFromJSON)(jsonValue); })];
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* Each recovery code works once.
|
|
492
|
+
* Prove the second factor with a recovery code
|
|
493
|
+
*/
|
|
494
|
+
UsersPublicApi.prototype.loginWithRecoveryCode = function (requestParameters, initOverrides) {
|
|
495
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
496
|
+
var response;
|
|
497
|
+
return __generator(this, function (_a) {
|
|
498
|
+
switch (_a.label) {
|
|
499
|
+
case 0: return [4 /*yield*/, this.loginWithRecoveryCodeRaw(requestParameters, initOverrides)];
|
|
500
|
+
case 1:
|
|
501
|
+
response = _a.sent();
|
|
502
|
+
return [4 /*yield*/, response.value()];
|
|
503
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
/**
|
|
509
|
+
* For users who sign in without a password: the recovery code stands in for the passkey (and the authenticator app is still asked for when the method needs it). Users who sign in with a password enter it first, then the recovery code as their verification step; here they get the same error as for a wrong code.
|
|
510
|
+
* Sign in with a recovery code instead of a lost passkey
|
|
511
|
+
*/
|
|
512
|
+
UsersPublicApi.prototype.loginWithRecoveryCodeInsteadOfPasskeyRaw = function (requestParameters, initOverrides) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
514
|
+
var queryParameters, headerParameters, response;
|
|
515
|
+
return __generator(this, function (_a) {
|
|
516
|
+
switch (_a.label) {
|
|
517
|
+
case 0:
|
|
518
|
+
if (requestParameters['loginRecoveryCodeInput'] == null) {
|
|
519
|
+
throw new runtime.RequiredError('loginRecoveryCodeInput', 'Required parameter "loginRecoveryCodeInput" was null or undefined when calling loginWithRecoveryCodeInsteadOfPasskey().');
|
|
520
|
+
}
|
|
521
|
+
queryParameters = {};
|
|
522
|
+
headerParameters = {};
|
|
523
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
524
|
+
return [4 /*yield*/, this.request({
|
|
525
|
+
path: "/users/login/recovery-code-instead-of-passkey",
|
|
526
|
+
method: 'POST',
|
|
527
|
+
headers: headerParameters,
|
|
528
|
+
query: queryParameters,
|
|
529
|
+
body: (0, index_1.LoginRecoveryCodeInputToJSON)(requestParameters['loginRecoveryCodeInput']),
|
|
530
|
+
}, initOverrides)];
|
|
531
|
+
case 1:
|
|
532
|
+
response = _a.sent();
|
|
533
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginDtoFromJSON)(jsonValue); })];
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* For users who sign in without a password: the recovery code stands in for the passkey (and the authenticator app is still asked for when the method needs it). Users who sign in with a password enter it first, then the recovery code as their verification step; here they get the same error as for a wrong code.
|
|
540
|
+
* Sign in with a recovery code instead of a lost passkey
|
|
541
|
+
*/
|
|
542
|
+
UsersPublicApi.prototype.loginWithRecoveryCodeInsteadOfPasskey = function (requestParameters, initOverrides) {
|
|
543
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
544
|
+
var response;
|
|
545
|
+
return __generator(this, function (_a) {
|
|
546
|
+
switch (_a.label) {
|
|
547
|
+
case 0: return [4 /*yield*/, this.loginWithRecoveryCodeInsteadOfPasskeyRaw(requestParameters, initOverrides)];
|
|
548
|
+
case 1:
|
|
549
|
+
response = _a.sent();
|
|
550
|
+
return [4 /*yield*/, response.value()];
|
|
551
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
});
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* Accepts the code of the current period, the previous or the next one, never twice.
|
|
558
|
+
* Prove the second factor with an authenticator app code
|
|
559
|
+
*/
|
|
560
|
+
UsersPublicApi.prototype.loginWithTotpRaw = function (requestParameters, initOverrides) {
|
|
561
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
562
|
+
var queryParameters, headerParameters, response;
|
|
563
|
+
return __generator(this, function (_a) {
|
|
564
|
+
switch (_a.label) {
|
|
565
|
+
case 0:
|
|
566
|
+
if (requestParameters['loginCodeInput'] == null) {
|
|
567
|
+
throw new runtime.RequiredError('loginCodeInput', 'Required parameter "loginCodeInput" was null or undefined when calling loginWithTotp().');
|
|
568
|
+
}
|
|
569
|
+
queryParameters = {};
|
|
570
|
+
headerParameters = {};
|
|
571
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
572
|
+
return [4 /*yield*/, this.request({
|
|
573
|
+
path: "/users/login/totp",
|
|
574
|
+
method: 'POST',
|
|
575
|
+
headers: headerParameters,
|
|
576
|
+
query: queryParameters,
|
|
577
|
+
body: (0, index_1.LoginCodeInputToJSON)(requestParameters['loginCodeInput']),
|
|
578
|
+
}, initOverrides)];
|
|
579
|
+
case 1:
|
|
580
|
+
response = _a.sent();
|
|
581
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginDtoFromJSON)(jsonValue); })];
|
|
582
|
+
}
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* Accepts the code of the current period, the previous or the next one, never twice.
|
|
588
|
+
* Prove the second factor with an authenticator app code
|
|
589
|
+
*/
|
|
590
|
+
UsersPublicApi.prototype.loginWithTotp = function (requestParameters, initOverrides) {
|
|
591
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
592
|
+
var response;
|
|
593
|
+
return __generator(this, function (_a) {
|
|
594
|
+
switch (_a.label) {
|
|
595
|
+
case 0: return [4 /*yield*/, this.loginWithTotpRaw(requestParameters, initOverrides)];
|
|
596
|
+
case 1:
|
|
597
|
+
response = _a.sent();
|
|
598
|
+
return [4 /*yield*/, response.value()];
|
|
599
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
};
|
|
218
604
|
/**
|
|
219
605
|
* Completes the password reset flow by setting a new password for the user linked to the reset request.
|
|
220
606
|
* Set a new password from reset request
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ActivateUserTotpInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ActivateUserTotpInput {
|
|
18
|
+
/**
|
|
19
|
+
* Code the authenticator app shows, to prove it was set up.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ActivateUserTotpInput
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ActivateUserTotpInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfActivateUserTotpInput(value: object): value is ActivateUserTotpInput;
|
|
29
|
+
export declare function ActivateUserTotpInputFromJSON(json: any): ActivateUserTotpInput;
|
|
30
|
+
export declare function ActivateUserTotpInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActivateUserTotpInput;
|
|
31
|
+
export declare function ActivateUserTotpInputToJSON(json: any): ActivateUserTotpInput;
|
|
32
|
+
export declare function ActivateUserTotpInputToJSONTyped(value?: ActivateUserTotpInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfActivateUserTotpInput = instanceOfActivateUserTotpInput;
|
|
17
|
+
exports.ActivateUserTotpInputFromJSON = ActivateUserTotpInputFromJSON;
|
|
18
|
+
exports.ActivateUserTotpInputFromJSONTyped = ActivateUserTotpInputFromJSONTyped;
|
|
19
|
+
exports.ActivateUserTotpInputToJSON = ActivateUserTotpInputToJSON;
|
|
20
|
+
exports.ActivateUserTotpInputToJSONTyped = ActivateUserTotpInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ActivateUserTotpInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfActivateUserTotpInput(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ActivateUserTotpInputFromJSON(json) {
|
|
30
|
+
return ActivateUserTotpInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ActivateUserTotpInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'code': json['code'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ActivateUserTotpInputToJSON(json) {
|
|
41
|
+
return ActivateUserTotpInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ActivateUserTotpInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'code': value['code'],
|
|
50
|
+
};
|
|
51
|
+
}
|