@randock/nameshift-api-client 0.0.557 → 0.0.558

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.
Files changed (95) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +38 -1
  4. package/dist/apis/AdminApi.js +165 -0
  5. package/dist/apis/BuyersApi.d.ts +3 -2
  6. package/dist/apis/BuyersApi.js +5 -2
  7. package/dist/apis/LeadsPublicApi.d.ts +43 -1
  8. package/dist/apis/LeadsPublicApi.js +151 -0
  9. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  10. package/dist/models/FeatureFlagListItemDto.js +3 -1
  11. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  12. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  13. package/dist/models/LeadDto.d.ts +7 -0
  14. package/dist/models/LeadDto.js +5 -0
  15. package/dist/models/LeadEmailVerificationDto.d.ts +38 -0
  16. package/dist/models/LeadEmailVerificationDto.js +55 -0
  17. package/dist/models/LeadPhoneVerificationDeliveryDto.d.ts +49 -0
  18. package/dist/models/LeadPhoneVerificationDeliveryDto.js +66 -0
  19. package/dist/models/LeadPhoneVerificationDto.d.ts +80 -0
  20. package/dist/models/LeadPhoneVerificationDto.js +89 -0
  21. package/dist/models/LeadPhoneVerificationReason.d.ts +35 -0
  22. package/dist/models/LeadPhoneVerificationReason.js +61 -0
  23. package/dist/models/LeadPhoneVerificationSummaryDto.d.ts +32 -0
  24. package/dist/models/LeadPhoneVerificationSummaryDto.js +51 -0
  25. package/dist/models/LeadPhoneVerificationTooSoonOutput.d.ts +51 -0
  26. package/dist/models/LeadPhoneVerificationTooSoonOutput.js +64 -0
  27. package/dist/models/LeadPhoneVerificationUnavailableOutput.d.ts +51 -0
  28. package/dist/models/LeadPhoneVerificationUnavailableOutput.js +64 -0
  29. package/dist/models/LeadVerificationDto.d.ts +40 -0
  30. package/dist/models/LeadVerificationDto.js +57 -0
  31. package/dist/models/LeadVerificationInput.d.ts +24 -0
  32. package/dist/models/LeadVerificationInput.js +8 -0
  33. package/dist/models/LeadVerificationSettingsDto.d.ts +24 -0
  34. package/dist/models/LeadVerificationSettingsDto.js +16 -0
  35. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  36. package/dist/models/ListLeadsResultItem.js +5 -0
  37. package/dist/models/ManualLeadDetails.d.ts +7 -0
  38. package/dist/models/ManualLeadDetails.js +5 -0
  39. package/dist/models/PhoneMessageDeliveryStatus.d.ts +27 -0
  40. package/dist/models/PhoneMessageDeliveryStatus.js +53 -0
  41. package/dist/models/PlatformConfigurationBlock.d.ts +25 -0
  42. package/dist/models/PlatformConfigurationBlock.js +51 -0
  43. package/dist/models/PlatformConfigurationDto.d.ts +62 -0
  44. package/dist/models/PlatformConfigurationDto.js +69 -0
  45. package/dist/models/PlatformConfigurationUpdatedByDto.d.ts +44 -0
  46. package/dist/models/PlatformConfigurationUpdatedByDto.js +59 -0
  47. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  48. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  49. package/dist/models/PublicLeadDto.d.ts +7 -0
  50. package/dist/models/PublicLeadDto.js +5 -0
  51. package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +9 -2
  52. package/dist/models/RegisterAuctionBuyerPhoneInput.js +3 -3
  53. package/dist/models/RequestLeadPhoneVerificationCodeInput.d.ts +32 -0
  54. package/dist/models/RequestLeadPhoneVerificationCodeInput.js +49 -0
  55. package/dist/models/SellerLeadDetails.d.ts +7 -0
  56. package/dist/models/SellerLeadDetails.js +5 -0
  57. package/dist/models/UpdatePlatformConfigurationInput.d.ts +34 -0
  58. package/dist/models/UpdatePlatformConfigurationInput.js +51 -0
  59. package/dist/models/VerifyLeadPhoneInput.d.ts +32 -0
  60. package/dist/models/VerifyLeadPhoneInput.js +51 -0
  61. package/dist/models/VerifyPhoneOtpInput.d.ts +1 -1
  62. package/dist/models/index.d.ts +15 -0
  63. package/dist/models/index.js +15 -0
  64. package/package.json +1 -1
  65. package/src/apis/AdminApi.ts +149 -0
  66. package/src/apis/BuyersApi.ts +7 -2
  67. package/src/apis/LeadsPublicApi.ts +162 -0
  68. package/src/models/FeatureFlagListItemDto.ts +3 -1
  69. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  70. package/src/models/LeadDto.ts +16 -0
  71. package/src/models/LeadEmailVerificationDto.ts +75 -0
  72. package/src/models/LeadPhoneVerificationDeliveryDto.ts +96 -0
  73. package/src/models/LeadPhoneVerificationDto.ts +132 -0
  74. package/src/models/LeadPhoneVerificationReason.ts +63 -0
  75. package/src/models/LeadPhoneVerificationSummaryDto.ts +66 -0
  76. package/src/models/LeadPhoneVerificationTooSoonOutput.ts +103 -0
  77. package/src/models/LeadPhoneVerificationUnavailableOutput.ts +103 -0
  78. package/src/models/LeadVerificationDto.ts +90 -0
  79. package/src/models/LeadVerificationInput.ts +32 -0
  80. package/src/models/LeadVerificationSettingsDto.ts +36 -0
  81. package/src/models/ListLeadsResultItem.ts +16 -0
  82. package/src/models/ManualLeadDetails.ts +16 -0
  83. package/src/models/PhoneMessageDeliveryStatus.ts +55 -0
  84. package/src/models/PlatformConfigurationBlock.ts +53 -0
  85. package/src/models/PlatformConfigurationDto.ts +119 -0
  86. package/src/models/PlatformConfigurationUpdatedByDto.ts +84 -0
  87. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  88. package/src/models/PublicLeadDto.ts +16 -0
  89. package/src/models/RegisterAuctionBuyerPhoneInput.ts +12 -4
  90. package/src/models/RequestLeadPhoneVerificationCodeInput.ts +65 -0
  91. package/src/models/SellerLeadDetails.ts +16 -0
  92. package/src/models/UpdatePlatformConfigurationInput.ts +66 -0
  93. package/src/models/VerifyLeadPhoneInput.ts +66 -0
  94. package/src/models/VerifyPhoneOtpInput.ts +1 -1
  95. package/src/models/index.ts +15 -0
@@ -449,6 +449,7 @@ src/models/LeadBrokeredDealDto.ts
449
449
  src/models/LeadBuyerConfigDto.ts
450
450
  src/models/LeadDomainDto.ts
451
451
  src/models/LeadDto.ts
452
+ src/models/LeadEmailVerificationDto.ts
452
453
  src/models/LeadEnrichmentActivityDto.ts
453
454
  src/models/LeadEnrichmentCompanyDto.ts
454
455
  src/models/LeadEnrichmentDomainDto.ts
@@ -472,12 +473,19 @@ src/models/LeadOfferDto.ts
472
473
  src/models/LeadOfferExpirationConfigurationDto.ts
473
474
  src/models/LeadOfferExpirationConfigurationInput.ts
474
475
  src/models/LeadOfferExpirationDurationInput.ts
476
+ src/models/LeadPhoneVerificationDeliveryDto.ts
477
+ src/models/LeadPhoneVerificationDto.ts
478
+ src/models/LeadPhoneVerificationReason.ts
479
+ src/models/LeadPhoneVerificationSummaryDto.ts
480
+ src/models/LeadPhoneVerificationTooSoonOutput.ts
481
+ src/models/LeadPhoneVerificationUnavailableOutput.ts
475
482
  src/models/LeadPriceNegotiatorAiAgentConfigurationDto.ts
476
483
  src/models/LeadPriceNegotiatorAiAgentConfigurationInput.ts
477
484
  src/models/LeadQuickReplyDto.ts
478
485
  src/models/LeadQuickReplyListDto.ts
479
486
  src/models/LeadRentConfigurationDto.ts
480
487
  src/models/LeadStatusDto.ts
488
+ src/models/LeadVerificationDto.ts
481
489
  src/models/LeadVerificationInput.ts
482
490
  src/models/LeadVerificationSettingsDto.ts
483
491
  src/models/LeaseToOwnConfigurationDto.ts
@@ -579,6 +587,10 @@ src/models/PaymentMethodAvailabilityProfile.ts
579
587
  src/models/PaymentMethodsAvailabilityDto.ts
580
588
  src/models/PaymentMethodsStatsDto.ts
581
589
  src/models/PayoutFrequency.ts
590
+ src/models/PhoneMessageDeliveryStatus.ts
591
+ src/models/PlatformConfigurationBlock.ts
592
+ src/models/PlatformConfigurationDto.ts
593
+ src/models/PlatformConfigurationUpdatedByDto.ts
582
594
  src/models/PopularCategoryDto.ts
583
595
  src/models/PreviewDomainEditInput.ts
584
596
  src/models/PrivateAccountGetMeResponse.ts
@@ -625,6 +637,7 @@ src/models/RentDto.ts
625
637
  src/models/RentIndexationDto.ts
626
638
  src/models/RequestAccessTokenInput.ts
627
639
  src/models/RequestEmailOtpInput.ts
640
+ src/models/RequestLeadPhoneVerificationCodeInput.ts
628
641
  src/models/RequestUserEmailChangeOtpInput.ts
629
642
  src/models/SalesCountCommissionPayloadDto.ts
630
643
  src/models/SalesCountCommissionPayloadInput.ts
@@ -739,6 +752,7 @@ src/models/UpdateLeaseToOwnConfigurationDto.ts
739
752
  src/models/UpdateMarketplaceInput.ts
740
753
  src/models/UpdateNewsletterInput.ts
741
754
  src/models/UpdateOrderInput.ts
755
+ src/models/UpdatePlatformConfigurationInput.ts
742
756
  src/models/UpdateRentConfigurationDto.ts
743
757
  src/models/UpdateSubscriptionBillingPeriodicityInput.ts
744
758
  src/models/UpdateSubscriptionBuyerInformationInput.ts
@@ -770,6 +784,7 @@ src/models/ValidationError.ts
770
784
  src/models/ValidationException.ts
771
785
  src/models/VerifyEmailOtpInput.ts
772
786
  src/models/VerifyLeadInput.ts
787
+ src/models/VerifyLeadPhoneInput.ts
773
788
  src/models/VerifyPhoneOtpInput.ts
774
789
  src/models/WebhookAttemptTrigger.ts
775
790
  src/models/WebhookDeliveriesSummaryDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.557
1
+ ## @randock/nameshift-api-client@0.0.558
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.557 --save
39
+ npm install @randock/nameshift-api-client@0.0.558 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 3de371fa6be62fc35feebc8f29185b80cafae6ecea0c205d9326d904d2b328b8497d60d211a99ea0a30594d670a90457
47
+ 614e140e4b88a659d3897afd59e27e8834ce0d84072dfbf8a263e7aa293987fbe01cf40b2debfb40c6dbbef987b5fa11
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AccountsStatsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminListBrokeredLeads200Response, AdminMarketplaceDto, AdminUserNewsletterInput, AdminUserSecurityDto, AffiliatesStatsDto, AuctionsStatsDto, BulkCommissionActionsInput, ChangeDomainAppraisalRequestStatusInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CommissionsStatsDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListBuyers200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, OverrideBrokeredLeadNameshiftCommissionInput, PaySellerInvoicesInput, PaymentMethodsStatsDto, SalesStatsDto, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AccountsStatsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminListBrokeredLeads200Response, AdminMarketplaceDto, AdminUserNewsletterInput, AdminUserSecurityDto, AffiliatesStatsDto, AuctionsStatsDto, BulkCommissionActionsInput, ChangeDomainAppraisalRequestStatusInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CommissionsStatsDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListBuyers200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, OverrideBrokeredLeadNameshiftCommissionInput, PaySellerInvoicesInput, PaymentMethodsStatsDto, PlatformConfigurationBlock, PlatformConfigurationDto, SalesStatsDto, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdatePlatformConfigurationInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -24,6 +24,9 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
24
24
  filterSearchTerm?: string;
25
25
  filterStatus?: string;
26
26
  }
27
+ export interface AdminApiAdminGetPlatformConfigurationRequest {
28
+ name: PlatformConfigurationBlock;
29
+ }
27
30
  export interface AdminApiAdminListBrokeredLeadsRequest {
28
31
  filter?: {
29
32
  [key: string]: string;
@@ -49,6 +52,10 @@ export interface AdminApiAdminUpdateDomainTransferBuyerInfoRequest {
49
52
  transferId: string;
50
53
  updateAdminDomainTransferBuyerInfoInput: UpdateAdminDomainTransferBuyerInfoInput;
51
54
  }
55
+ export interface AdminApiAdminUpdatePlatformConfigurationRequest {
56
+ name: PlatformConfigurationBlock;
57
+ updatePlatformConfigurationInput: UpdatePlatformConfigurationInput;
58
+ }
52
59
  export interface AdminApiBulkCommissionActionsRequest {
53
60
  bulkCommissionActionsInput: BulkCommissionActionsInput;
54
61
  }
@@ -513,6 +520,16 @@ export declare class AdminApi extends runtime.BaseAPI {
513
520
  * List all domain transfers
514
521
  */
515
522
  adminGetAllDomainTransfers(requestParameters?: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response>;
523
+ /**
524
+ * Returns one configuration block with its JSON Schema and its values.
525
+ * Get a platform configuration block
526
+ */
527
+ adminGetPlatformConfigurationRaw(requestParameters: AdminApiAdminGetPlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlatformConfigurationDto>>;
528
+ /**
529
+ * Returns one configuration block with its JSON Schema and its values.
530
+ * Get a platform configuration block
531
+ */
532
+ adminGetPlatformConfiguration(requestParameters: AdminApiAdminGetPlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlatformConfigurationDto>;
516
533
  /**
517
534
  * List all brokered deals
518
535
  */
@@ -521,6 +538,16 @@ export declare class AdminApi extends runtime.BaseAPI {
521
538
  * List all brokered deals
522
539
  */
523
540
  adminListBrokeredLeads(requestParameters?: AdminApiAdminListBrokeredLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminListBrokeredLeads200Response>;
541
+ /**
542
+ * Lists every configuration block with its JSON Schema and its values.
543
+ * List platform configuration blocks
544
+ */
545
+ adminListPlatformConfigurationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PlatformConfigurationDto>>>;
546
+ /**
547
+ * Lists every configuration block with its JSON Schema and its values.
548
+ * List platform configuration blocks
549
+ */
550
+ adminListPlatformConfigurations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlatformConfigurationDto>>;
524
551
  /**
525
552
  * Overrides the platform fee charged to the broker, e.g. for a high value deal. Only until the buyer has paid, and never above the broker commission.
526
553
  * Set a custom platform fee for a brokered deal
@@ -551,6 +578,16 @@ export declare class AdminApi extends runtime.BaseAPI {
551
578
  * Correct the transfer info of the buyer
552
579
  */
553
580
  adminUpdateDomainTransferBuyerInfo(requestParameters: AdminApiAdminUpdateDomainTransferBuyerInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
581
+ /**
582
+ * Replaces the values of a configuration block.
583
+ * Save a platform configuration block
584
+ */
585
+ adminUpdatePlatformConfigurationRaw(requestParameters: AdminApiAdminUpdatePlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
586
+ /**
587
+ * Replaces the values of a configuration block.
588
+ * Save a platform configuration block
589
+ */
590
+ adminUpdatePlatformConfiguration(requestParameters: AdminApiAdminUpdatePlatformConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
554
591
  /**
555
592
  * Executes multiple commission add, update, or delete actions in a single request.
556
593
  * Bulk commission actions
@@ -199,6 +199,61 @@ var AdminApi = /** @class */ (function (_super) {
199
199
  });
200
200
  });
201
201
  };
202
+ /**
203
+ * Returns one configuration block with its JSON Schema and its values.
204
+ * Get a platform configuration block
205
+ */
206
+ AdminApi.prototype.adminGetPlatformConfigurationRaw = function (requestParameters, initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function () {
208
+ var queryParameters, headerParameters, token, tokenString, response;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0:
212
+ if (requestParameters['name'] == null) {
213
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling adminGetPlatformConfiguration().');
214
+ }
215
+ queryParameters = {};
216
+ headerParameters = {};
217
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
218
+ token = this.configuration.accessToken;
219
+ return [4 /*yield*/, token("bearer", [])];
220
+ case 1:
221
+ tokenString = _a.sent();
222
+ if (tokenString) {
223
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
224
+ }
225
+ _a.label = 2;
226
+ case 2: return [4 /*yield*/, this.request({
227
+ path: "/admin/platform-configurations/{name}".replace("{".concat("name", "}"), encodeURIComponent(String(requestParameters['name']))),
228
+ method: 'GET',
229
+ headers: headerParameters,
230
+ query: queryParameters,
231
+ }, initOverrides)];
232
+ case 3:
233
+ response = _a.sent();
234
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PlatformConfigurationDtoFromJSON)(jsonValue); })];
235
+ }
236
+ });
237
+ });
238
+ };
239
+ /**
240
+ * Returns one configuration block with its JSON Schema and its values.
241
+ * Get a platform configuration block
242
+ */
243
+ AdminApi.prototype.adminGetPlatformConfiguration = function (requestParameters, initOverrides) {
244
+ return __awaiter(this, void 0, void 0, function () {
245
+ var response;
246
+ return __generator(this, function (_a) {
247
+ switch (_a.label) {
248
+ case 0: return [4 /*yield*/, this.adminGetPlatformConfigurationRaw(requestParameters, initOverrides)];
249
+ case 1:
250
+ response = _a.sent();
251
+ return [4 /*yield*/, response.value()];
252
+ case 2: return [2 /*return*/, _a.sent()];
253
+ }
254
+ });
255
+ });
256
+ };
202
257
  /**
203
258
  * List all brokered deals
204
259
  */
@@ -277,6 +332,58 @@ var AdminApi = /** @class */ (function (_super) {
277
332
  });
278
333
  });
279
334
  };
335
+ /**
336
+ * Lists every configuration block with its JSON Schema and its values.
337
+ * List platform configuration blocks
338
+ */
339
+ AdminApi.prototype.adminListPlatformConfigurationsRaw = function (initOverrides) {
340
+ return __awaiter(this, void 0, void 0, function () {
341
+ var queryParameters, headerParameters, token, tokenString, response;
342
+ return __generator(this, function (_a) {
343
+ switch (_a.label) {
344
+ case 0:
345
+ queryParameters = {};
346
+ headerParameters = {};
347
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
348
+ token = this.configuration.accessToken;
349
+ return [4 /*yield*/, token("bearer", [])];
350
+ case 1:
351
+ tokenString = _a.sent();
352
+ if (tokenString) {
353
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
354
+ }
355
+ _a.label = 2;
356
+ case 2: return [4 /*yield*/, this.request({
357
+ path: "/admin/platform-configurations",
358
+ method: 'GET',
359
+ headers: headerParameters,
360
+ query: queryParameters,
361
+ }, initOverrides)];
362
+ case 3:
363
+ response = _a.sent();
364
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PlatformConfigurationDtoFromJSON); })];
365
+ }
366
+ });
367
+ });
368
+ };
369
+ /**
370
+ * Lists every configuration block with its JSON Schema and its values.
371
+ * List platform configuration blocks
372
+ */
373
+ AdminApi.prototype.adminListPlatformConfigurations = function (initOverrides) {
374
+ return __awaiter(this, void 0, void 0, function () {
375
+ var response;
376
+ return __generator(this, function (_a) {
377
+ switch (_a.label) {
378
+ case 0: return [4 /*yield*/, this.adminListPlatformConfigurationsRaw(initOverrides)];
379
+ case 1:
380
+ response = _a.sent();
381
+ return [4 /*yield*/, response.value()];
382
+ case 2: return [2 /*return*/, _a.sent()];
383
+ }
384
+ });
385
+ });
386
+ };
280
387
  /**
281
388
  * Overrides the platform fee charged to the broker, e.g. for a high value deal. Only until the buyer has paid, and never above the broker commission.
282
389
  * Set a custom platform fee for a brokered deal
@@ -451,6 +558,64 @@ var AdminApi = /** @class */ (function (_super) {
451
558
  });
452
559
  });
453
560
  };
561
+ /**
562
+ * Replaces the values of a configuration block.
563
+ * Save a platform configuration block
564
+ */
565
+ AdminApi.prototype.adminUpdatePlatformConfigurationRaw = function (requestParameters, initOverrides) {
566
+ return __awaiter(this, void 0, void 0, function () {
567
+ var queryParameters, headerParameters, token, tokenString, response;
568
+ return __generator(this, function (_a) {
569
+ switch (_a.label) {
570
+ case 0:
571
+ if (requestParameters['name'] == null) {
572
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling adminUpdatePlatformConfiguration().');
573
+ }
574
+ if (requestParameters['updatePlatformConfigurationInput'] == null) {
575
+ throw new runtime.RequiredError('updatePlatformConfigurationInput', 'Required parameter "updatePlatformConfigurationInput" was null or undefined when calling adminUpdatePlatformConfiguration().');
576
+ }
577
+ queryParameters = {};
578
+ headerParameters = {};
579
+ headerParameters['Content-Type'] = 'application/json';
580
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
581
+ token = this.configuration.accessToken;
582
+ return [4 /*yield*/, token("bearer", [])];
583
+ case 1:
584
+ tokenString = _a.sent();
585
+ if (tokenString) {
586
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
587
+ }
588
+ _a.label = 2;
589
+ case 2: return [4 /*yield*/, this.request({
590
+ path: "/admin/platform-configurations/{name}".replace("{".concat("name", "}"), encodeURIComponent(String(requestParameters['name']))),
591
+ method: 'PUT',
592
+ headers: headerParameters,
593
+ query: queryParameters,
594
+ body: (0, index_1.UpdatePlatformConfigurationInputToJSON)(requestParameters['updatePlatformConfigurationInput']),
595
+ }, initOverrides)];
596
+ case 3:
597
+ response = _a.sent();
598
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
599
+ }
600
+ });
601
+ });
602
+ };
603
+ /**
604
+ * Replaces the values of a configuration block.
605
+ * Save a platform configuration block
606
+ */
607
+ AdminApi.prototype.adminUpdatePlatformConfiguration = function (requestParameters, initOverrides) {
608
+ return __awaiter(this, void 0, void 0, function () {
609
+ return __generator(this, function (_a) {
610
+ switch (_a.label) {
611
+ case 0: return [4 /*yield*/, this.adminUpdatePlatformConfigurationRaw(requestParameters, initOverrides)];
612
+ case 1:
613
+ _a.sent();
614
+ return [2 /*return*/];
615
+ }
616
+ });
617
+ });
618
+ };
454
619
  /**
455
620
  * Executes multiple commission add, update, or delete actions in a single request.
456
621
  * Bulk commission actions
@@ -156,6 +156,7 @@ export interface BuyersApiRegisterRequest {
156
156
  }
157
157
  export interface BuyersApiRegisterPhoneRequest {
158
158
  registerAuctionBuyerPhoneInput: RegisterAuctionBuyerPhoneInput;
159
+ xRecaptchaToken?: string;
159
160
  }
160
161
  export interface BuyersApiRemoveSubscriptionDomainRecordRequest {
161
162
  subscriptionId: string;
@@ -553,12 +554,12 @@ export declare class BuyersApi extends runtime.BaseAPI {
553
554
  */
554
555
  register(requestParameters: BuyersApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
555
556
  /**
556
- * Initiates phone number verification for the auction buyer via SMS or WhatsApp.
557
+ * Initiates phone number verification for the auction buyer, on the channels of the platform configuration.
557
558
  * Register auction buyer phone
558
559
  */
559
560
  registerPhoneRaw(requestParameters: BuyersApiRegisterPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
560
561
  /**
561
- * Initiates phone number verification for the auction buyer via SMS or WhatsApp.
562
+ * Initiates phone number verification for the auction buyer, on the channels of the platform configuration.
562
563
  * Register auction buyer phone
563
564
  */
564
565
  registerPhone(requestParameters: BuyersApiRegisterPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -2058,7 +2058,7 @@ var BuyersApi = /** @class */ (function (_super) {
2058
2058
  });
2059
2059
  };
2060
2060
  /**
2061
- * Initiates phone number verification for the auction buyer via SMS or WhatsApp.
2061
+ * Initiates phone number verification for the auction buyer, on the channels of the platform configuration.
2062
2062
  * Register auction buyer phone
2063
2063
  */
2064
2064
  BuyersApi.prototype.registerPhoneRaw = function (requestParameters, initOverrides) {
@@ -2073,6 +2073,9 @@ var BuyersApi = /** @class */ (function (_super) {
2073
2073
  queryParameters = {};
2074
2074
  headerParameters = {};
2075
2075
  headerParameters['Content-Type'] = 'application/json';
2076
+ if (requestParameters['xRecaptchaToken'] != null) {
2077
+ headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
2078
+ }
2076
2079
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2077
2080
  token = this.configuration.accessToken;
2078
2081
  return [4 /*yield*/, token("bearer", [])];
@@ -2097,7 +2100,7 @@ var BuyersApi = /** @class */ (function (_super) {
2097
2100
  });
2098
2101
  };
2099
2102
  /**
2100
- * Initiates phone number verification for the auction buyer via SMS or WhatsApp.
2103
+ * Initiates phone number verification for the auction buyer, on the channels of the platform configuration.
2101
2104
  * Register auction buyer phone
2102
2105
  */
2103
2106
  BuyersApi.prototype.registerPhone = function (requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssociateVisitorInput, CreateInformationRequestLeadInput, CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
13
+ import type { AssociateVisitorInput, CreateInformationRequestLeadInput, CreateLeadInput, LeadPhoneVerificationDeliveryDto, LeadStatusDto, LeadVerificationDto, ObjectId, PublicLeadDto, RequestLeadPhoneVerificationCodeInput, UpdateLeadInput, VerifyLeadInput, VerifyLeadPhoneInput } from '../models/index';
14
14
  export interface LeadsPublicApiAssociateLeadVisitorRequest {
15
15
  leadId: string;
16
16
  associateVisitorInput: AssociateVisitorInput;
@@ -26,9 +26,17 @@ export interface LeadsPublicApiCreateLeadRequest {
26
26
  export interface LeadsPublicApiGetLeadRequest {
27
27
  leadId: string;
28
28
  }
29
+ export interface LeadsPublicApiGetLeadPhoneVerificationDeliveryRequest {
30
+ leadId: string;
31
+ }
29
32
  export interface LeadsPublicApiGetLeadStatusRequest {
30
33
  leadId: string;
31
34
  }
35
+ export interface LeadsPublicApiRequestLeadPhoneVerificationCodeRequest {
36
+ leadId: string;
37
+ requestLeadPhoneVerificationCodeInput: RequestLeadPhoneVerificationCodeInput;
38
+ xRecaptchaToken?: string;
39
+ }
32
40
  export interface LeadsPublicApiRequestVerificationCodeRequest {
33
41
  leadId: string;
34
42
  }
@@ -40,6 +48,10 @@ export interface LeadsPublicApiVerifyLeadRequest {
40
48
  leadId: string;
41
49
  verifyLeadInput: VerifyLeadInput;
42
50
  }
51
+ export interface LeadsPublicApiVerifyLeadPhoneRequest {
52
+ leadId: string;
53
+ verifyLeadPhoneInput: VerifyLeadPhoneInput;
54
+ }
43
55
  /**
44
56
  *
45
57
  */
@@ -84,6 +96,16 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
84
96
  * Get public lead details
85
97
  */
86
98
  getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto>;
99
+ /**
100
+ * Returns whether the last phone code of a lead is on its way, arrived or could not arrive, and on which app. No authentication required.
101
+ * Get where the last phone code is
102
+ */
103
+ getLeadPhoneVerificationDeliveryRaw(requestParameters: LeadsPublicApiGetLeadPhoneVerificationDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadPhoneVerificationDeliveryDto>>;
104
+ /**
105
+ * Returns whether the last phone code of a lead is on its way, arrived or could not arrive, and on which app. No authentication required.
106
+ * Get where the last phone code is
107
+ */
108
+ getLeadPhoneVerificationDelivery(requestParameters: LeadsPublicApiGetLeadPhoneVerificationDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadPhoneVerificationDeliveryDto>;
87
109
  /**
88
110
  * Returns the current negotiation status of a lead. No authentication required.
89
111
  * Get lead status
@@ -94,6 +116,16 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
94
116
  * Get lead status
95
117
  */
96
118
  getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto>;
119
+ /**
120
+ * Sends the buyer of a lead a one-time code by Telegram, WhatsApp, SMS or a voice call, to the phone number on the lead. No authentication required.
121
+ * Send a phone verification code
122
+ */
123
+ requestLeadPhoneVerificationCodeRaw(requestParameters: LeadsPublicApiRequestLeadPhoneVerificationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadVerificationDto>>;
124
+ /**
125
+ * Sends the buyer of a lead a one-time code by Telegram, WhatsApp, SMS or a voice call, to the phone number on the lead. No authentication required.
126
+ * Send a phone verification code
127
+ */
128
+ requestLeadPhoneVerificationCode(requestParameters: LeadsPublicApiRequestLeadPhoneVerificationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadVerificationDto>;
97
129
  /**
98
130
  * Generates and sends a new one-time verification code to the buyer email for the specified lead. No authentication required.
99
131
  * Request a verification code
@@ -124,4 +156,14 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
124
156
  * Verify a lead
125
157
  */
126
158
  verifyLead(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
159
+ /**
160
+ * Checks the one-time code the buyer received by Telegram, WhatsApp, SMS or a voice call. No authentication required.
161
+ * Verify a lead phone code
162
+ */
163
+ verifyLeadPhoneRaw(requestParameters: LeadsPublicApiVerifyLeadPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadVerificationDto>>;
164
+ /**
165
+ * Checks the one-time code the buyer received by Telegram, WhatsApp, SMS or a voice call. No authentication required.
166
+ * Verify a lead phone code
167
+ */
168
+ verifyLeadPhone(requestParameters: LeadsPublicApiVerifyLeadPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadVerificationDto>;
127
169
  }