@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
package/src/apis/AdminApi.ts
CHANGED
|
@@ -28,6 +28,7 @@ import type {
|
|
|
28
28
|
AdminGetAllDomainTransfers200Response,
|
|
29
29
|
AdminLandingDesignStatsDto,
|
|
30
30
|
AdminMarketplaceDto,
|
|
31
|
+
AdminUserSecurityDto,
|
|
31
32
|
BadRequestException,
|
|
32
33
|
BulkCommissionActionsInput,
|
|
33
34
|
ChangeInvoiceStatusInput,
|
|
@@ -65,6 +66,7 @@ import type {
|
|
|
65
66
|
ListDomains200Response,
|
|
66
67
|
ListLeadMessagesDto,
|
|
67
68
|
ListLeads200Response,
|
|
69
|
+
ListUserLoginAttempts200Response,
|
|
68
70
|
ObjectId,
|
|
69
71
|
PaySellerInvoicesInput,
|
|
70
72
|
SellerLeadDetails,
|
|
@@ -112,6 +114,8 @@ import {
|
|
|
112
114
|
AdminLandingDesignStatsDtoToJSON,
|
|
113
115
|
AdminMarketplaceDtoFromJSON,
|
|
114
116
|
AdminMarketplaceDtoToJSON,
|
|
117
|
+
AdminUserSecurityDtoFromJSON,
|
|
118
|
+
AdminUserSecurityDtoToJSON,
|
|
115
119
|
BadRequestExceptionFromJSON,
|
|
116
120
|
BadRequestExceptionToJSON,
|
|
117
121
|
BulkCommissionActionsInputFromJSON,
|
|
@@ -186,6 +190,8 @@ import {
|
|
|
186
190
|
ListLeadMessagesDtoToJSON,
|
|
187
191
|
ListLeads200ResponseFromJSON,
|
|
188
192
|
ListLeads200ResponseToJSON,
|
|
193
|
+
ListUserLoginAttempts200ResponseFromJSON,
|
|
194
|
+
ListUserLoginAttempts200ResponseToJSON,
|
|
189
195
|
ObjectIdFromJSON,
|
|
190
196
|
ObjectIdToJSON,
|
|
191
197
|
PaySellerInvoicesInputFromJSON,
|
|
@@ -454,6 +460,10 @@ export interface AdminApiListAccountNotesRequest {
|
|
|
454
460
|
accountId: string;
|
|
455
461
|
}
|
|
456
462
|
|
|
463
|
+
export interface AdminApiListAccountUsersSecurityRequest {
|
|
464
|
+
accountId: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
457
467
|
export interface AdminApiListAccountsRequest {
|
|
458
468
|
filter?: { [key: string]: string; };
|
|
459
469
|
page?: number;
|
|
@@ -536,6 +546,16 @@ export interface AdminApiListLedgerMutationsRequest {
|
|
|
536
546
|
dateRange?: StatsFilterInputDateRange | null;
|
|
537
547
|
}
|
|
538
548
|
|
|
549
|
+
export interface AdminApiListUserLoginAttemptsAsAdminRequest {
|
|
550
|
+
userId: string;
|
|
551
|
+
filter?: { [key: string]: string; };
|
|
552
|
+
page?: number;
|
|
553
|
+
limit?: number;
|
|
554
|
+
sortBy?: Array<string>;
|
|
555
|
+
filterResult?: string;
|
|
556
|
+
filterMethod?: string;
|
|
557
|
+
}
|
|
558
|
+
|
|
539
559
|
export interface AdminApiLoginAsRequest {
|
|
540
560
|
accountId: string;
|
|
541
561
|
}
|
|
@@ -591,6 +611,10 @@ export interface AdminApiReopenAdminLeadRequest {
|
|
|
591
611
|
leadId: string;
|
|
592
612
|
}
|
|
593
613
|
|
|
614
|
+
export interface AdminApiResetUserSecondFactorsRequest {
|
|
615
|
+
userId: string;
|
|
616
|
+
}
|
|
617
|
+
|
|
594
618
|
export interface AdminApiShowcaseDomainRequest {
|
|
595
619
|
domainId: string;
|
|
596
620
|
}
|
|
@@ -2788,6 +2812,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2788
2812
|
return await response.value();
|
|
2789
2813
|
}
|
|
2790
2814
|
|
|
2815
|
+
/**
|
|
2816
|
+
* List how the users of an account sign in
|
|
2817
|
+
*/
|
|
2818
|
+
async listAccountUsersSecurityRaw(requestParameters: AdminApiListAccountUsersSecurityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminUserSecurityDto>>> {
|
|
2819
|
+
if (requestParameters['accountId'] == null) {
|
|
2820
|
+
throw new runtime.RequiredError(
|
|
2821
|
+
'accountId',
|
|
2822
|
+
'Required parameter "accountId" was null or undefined when calling listAccountUsersSecurity().'
|
|
2823
|
+
);
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
const queryParameters: any = {};
|
|
2827
|
+
|
|
2828
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2829
|
+
|
|
2830
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2831
|
+
const token = this.configuration.accessToken;
|
|
2832
|
+
const tokenString = await token("bearer", []);
|
|
2833
|
+
|
|
2834
|
+
if (tokenString) {
|
|
2835
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
const response = await this.request({
|
|
2839
|
+
path: `/admin/accounts/{accountId}/users/security`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
2840
|
+
method: 'GET',
|
|
2841
|
+
headers: headerParameters,
|
|
2842
|
+
query: queryParameters,
|
|
2843
|
+
}, initOverrides);
|
|
2844
|
+
|
|
2845
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminUserSecurityDtoFromJSON));
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
/**
|
|
2849
|
+
* List how the users of an account sign in
|
|
2850
|
+
*/
|
|
2851
|
+
async listAccountUsersSecurity(requestParameters: AdminApiListAccountUsersSecurityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserSecurityDto>> {
|
|
2852
|
+
const response = await this.listAccountUsersSecurityRaw(requestParameters, initOverrides);
|
|
2853
|
+
return await response.value();
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2791
2856
|
/**
|
|
2792
2857
|
* Lists all seller accounts.
|
|
2793
2858
|
* List accounts
|
|
@@ -3507,6 +3572,71 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3507
3572
|
return await response.value();
|
|
3508
3573
|
}
|
|
3509
3574
|
|
|
3575
|
+
/**
|
|
3576
|
+
* List the sign-ins of a user
|
|
3577
|
+
*/
|
|
3578
|
+
async listUserLoginAttemptsAsAdminRaw(requestParameters: AdminApiListUserLoginAttemptsAsAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListUserLoginAttempts200Response>> {
|
|
3579
|
+
if (requestParameters['userId'] == null) {
|
|
3580
|
+
throw new runtime.RequiredError(
|
|
3581
|
+
'userId',
|
|
3582
|
+
'Required parameter "userId" was null or undefined when calling listUserLoginAttemptsAsAdmin().'
|
|
3583
|
+
);
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
const queryParameters: any = {};
|
|
3587
|
+
|
|
3588
|
+
if (requestParameters['filter'] != null) {
|
|
3589
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3592
|
+
if (requestParameters['page'] != null) {
|
|
3593
|
+
queryParameters['page'] = requestParameters['page'];
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
if (requestParameters['limit'] != null) {
|
|
3597
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
if (requestParameters['sortBy'] != null) {
|
|
3601
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3604
|
+
if (requestParameters['filterResult'] != null) {
|
|
3605
|
+
queryParameters['filter[result]'] = requestParameters['filterResult'];
|
|
3606
|
+
}
|
|
3607
|
+
|
|
3608
|
+
if (requestParameters['filterMethod'] != null) {
|
|
3609
|
+
queryParameters['filter[method]'] = requestParameters['filterMethod'];
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3613
|
+
|
|
3614
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3615
|
+
const token = this.configuration.accessToken;
|
|
3616
|
+
const tokenString = await token("bearer", []);
|
|
3617
|
+
|
|
3618
|
+
if (tokenString) {
|
|
3619
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
const response = await this.request({
|
|
3623
|
+
path: `/admin/users/{userId}/login-attempts`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
3624
|
+
method: 'GET',
|
|
3625
|
+
headers: headerParameters,
|
|
3626
|
+
query: queryParameters,
|
|
3627
|
+
}, initOverrides);
|
|
3628
|
+
|
|
3629
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListUserLoginAttempts200ResponseFromJSON(jsonValue));
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
/**
|
|
3633
|
+
* List the sign-ins of a user
|
|
3634
|
+
*/
|
|
3635
|
+
async listUserLoginAttemptsAsAdmin(requestParameters: AdminApiListUserLoginAttemptsAsAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListUserLoginAttempts200Response> {
|
|
3636
|
+
const response = await this.listUserLoginAttemptsAsAdminRaw(requestParameters, initOverrides);
|
|
3637
|
+
return await response.value();
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3510
3640
|
/**
|
|
3511
3641
|
* Generates an authentication token to impersonate the account. Requires super admin role.
|
|
3512
3642
|
* Login as account
|
|
@@ -4087,6 +4217,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
4087
4217
|
await this.reopenAdminLeadRaw(requestParameters, initOverrides);
|
|
4088
4218
|
}
|
|
4089
4219
|
|
|
4220
|
+
/**
|
|
4221
|
+
* For a user who lost them: removes the authenticator app, passkeys and recovery codes, and goes back to a password alone. Staff are asked to set up an authenticator app at the next sign-in. Requires super admin role.
|
|
4222
|
+
* Remove every second factor of a user
|
|
4223
|
+
*/
|
|
4224
|
+
async resetUserSecondFactorsRaw(requestParameters: AdminApiResetUserSecondFactorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
4225
|
+
if (requestParameters['userId'] == null) {
|
|
4226
|
+
throw new runtime.RequiredError(
|
|
4227
|
+
'userId',
|
|
4228
|
+
'Required parameter "userId" was null or undefined when calling resetUserSecondFactors().'
|
|
4229
|
+
);
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
const queryParameters: any = {};
|
|
4233
|
+
|
|
4234
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4235
|
+
|
|
4236
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4237
|
+
const token = this.configuration.accessToken;
|
|
4238
|
+
const tokenString = await token("bearer", []);
|
|
4239
|
+
|
|
4240
|
+
if (tokenString) {
|
|
4241
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4242
|
+
}
|
|
4243
|
+
}
|
|
4244
|
+
const response = await this.request({
|
|
4245
|
+
path: `/admin/users/{userId}/security/reset`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
4246
|
+
method: 'POST',
|
|
4247
|
+
headers: headerParameters,
|
|
4248
|
+
query: queryParameters,
|
|
4249
|
+
}, initOverrides);
|
|
4250
|
+
|
|
4251
|
+
return new runtime.VoidApiResponse(response);
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
/**
|
|
4255
|
+
* For a user who lost them: removes the authenticator app, passkeys and recovery codes, and goes back to a password alone. Staff are asked to set up an authenticator app at the next sign-in. Requires super admin role.
|
|
4256
|
+
* Remove every second factor of a user
|
|
4257
|
+
*/
|
|
4258
|
+
async resetUserSecondFactors(requestParameters: AdminApiResetUserSecondFactorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
4259
|
+
await this.resetUserSecondFactorsRaw(requestParameters, initOverrides);
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4090
4262
|
/**
|
|
4091
4263
|
* Picks the domain for the public showcase on the website. Idempotent: showcasing an already showcased domain keeps its original position in the showcase.
|
|
4092
4264
|
* Showcase domain
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AuctionBuyerWithTokenDto,
|
|
19
|
-
|
|
19
|
+
BuyerLoginDto,
|
|
20
20
|
LoginInput,
|
|
21
21
|
RequestAccessTokenInput,
|
|
22
22
|
RequestEmailOtpInput,
|
|
@@ -26,8 +26,8 @@ import type {
|
|
|
26
26
|
import {
|
|
27
27
|
AuctionBuyerWithTokenDtoFromJSON,
|
|
28
28
|
AuctionBuyerWithTokenDtoToJSON,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
BuyerLoginDtoFromJSON,
|
|
30
|
+
BuyerLoginDtoToJSON,
|
|
31
31
|
LoginInputFromJSON,
|
|
32
32
|
LoginInputToJSON,
|
|
33
33
|
RequestAccessTokenInputFromJSON,
|
|
@@ -65,7 +65,7 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
65
65
|
* Authenticates a buyer with email and password. Requires valid buyer credentials. Signing in also activates every unverified lead of the buyer, since it proves they own the mailbox.
|
|
66
66
|
* Authenticate a buyer
|
|
67
67
|
*/
|
|
68
|
-
async buyerLoginRaw(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
68
|
+
async buyerLoginRaw(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerLoginDto>> {
|
|
69
69
|
if (requestParameters['loginInput'] == null) {
|
|
70
70
|
throw new runtime.RequiredError(
|
|
71
71
|
'loginInput',
|
|
@@ -87,14 +87,14 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
87
87
|
body: LoginInputToJSON(requestParameters['loginInput']),
|
|
88
88
|
}, initOverrides);
|
|
89
89
|
|
|
90
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerLoginDtoFromJSON(jsonValue));
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Authenticates a buyer with email and password. Requires valid buyer credentials. Signing in also activates every unverified lead of the buyer, since it proves they own the mailbox.
|
|
95
95
|
* Authenticate a buyer
|
|
96
96
|
*/
|
|
97
|
-
async buyerLogin(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
97
|
+
async buyerLogin(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerLoginDto> {
|
|
98
98
|
const response = await this.buyerLoginRaw(requestParameters, initOverrides);
|
|
99
99
|
return await response.value();
|
|
100
100
|
}
|