@randock/nameshift-api-client 0.0.448 → 0.0.450

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 (162) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +3 -3
  3. package/dist/apis/APIKeysApi.d.ts +78 -0
  4. package/dist/apis/APIKeysApi.js +354 -0
  5. package/dist/apis/AccountsApi.d.ts +36 -36
  6. package/dist/apis/AccountsApi.js +360 -216
  7. package/dist/apis/AdminApi.d.ts +37 -1
  8. package/dist/apis/AdminApi.js +122 -1
  9. package/dist/apis/AuctionsApi.d.ts +4 -4
  10. package/dist/apis/AuctionsApi.js +40 -24
  11. package/dist/apis/BankAccountsApi.d.ts +10 -10
  12. package/dist/apis/BankAccountsApi.js +100 -60
  13. package/dist/apis/ChallengesApi.d.ts +6 -6
  14. package/dist/apis/ChallengesApi.js +60 -36
  15. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  16. package/dist/apis/DomainTransfersApi.js +20 -12
  17. package/dist/apis/DomainsApi.d.ts +44 -44
  18. package/dist/apis/DomainsApi.js +440 -264
  19. package/dist/apis/EppApi.d.ts +2 -2
  20. package/dist/apis/EppApi.js +20 -12
  21. package/dist/apis/InvoicesApi.d.ts +6 -6
  22. package/dist/apis/InvoicesApi.js +60 -36
  23. package/dist/apis/LeadsApi.d.ts +38 -38
  24. package/dist/apis/LeadsApi.js +380 -228
  25. package/dist/apis/MarketplacesApi.d.ts +89 -0
  26. package/dist/apis/MarketplacesApi.js +332 -0
  27. package/dist/apis/NotificationsApi.d.ts +8 -8
  28. package/dist/apis/NotificationsApi.js +80 -48
  29. package/dist/apis/StatsApi.d.ts +14 -14
  30. package/dist/apis/StatsApi.js +140 -84
  31. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  32. package/dist/apis/SubscriptionsApi.js +20 -12
  33. package/dist/apis/TasksApi.d.ts +6 -6
  34. package/dist/apis/TasksApi.js +60 -36
  35. package/dist/apis/UsersApi.d.ts +10 -10
  36. package/dist/apis/UsersApi.js +100 -60
  37. package/dist/apis/index.d.ts +2 -0
  38. package/dist/apis/index.js +2 -0
  39. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  40. package/dist/models/AccountMarketplaceDto.js +71 -0
  41. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  42. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  43. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  44. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  45. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  46. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  47. package/dist/models/AccountSettingsDto.d.ts +18 -0
  48. package/dist/models/AccountSettingsDto.js +16 -0
  49. package/dist/models/AccountSettingsInput.d.ts +18 -0
  50. package/dist/models/AccountSettingsInput.js +14 -0
  51. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  52. package/dist/models/AdminDomainListItemDto.js +17 -1
  53. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  54. package/dist/models/AdminMarketplaceDto.js +91 -0
  55. package/dist/models/ApiKeyDto.d.ts +107 -0
  56. package/dist/models/ApiKeyDto.js +114 -0
  57. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  58. package/dist/models/ApiKeyScopeDto.js +98 -0
  59. package/dist/models/CommissionDto.d.ts +1 -0
  60. package/dist/models/CommissionDto.js +1 -0
  61. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  62. package/dist/models/CommissionPayloadInput.js +1 -0
  63. package/dist/models/CommissionReasonDto.d.ts +1 -0
  64. package/dist/models/CommissionReasonDto.js +1 -0
  65. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  66. package/dist/models/CommissionSimulationItemInput.js +1 -0
  67. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  68. package/dist/models/CreateApiKeyInput.js +96 -0
  69. package/dist/models/CreateOrderInput.d.ts +6 -0
  70. package/dist/models/CreateOrderInput.js +2 -0
  71. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  72. package/dist/models/CreateSubscriptionInput.js +2 -0
  73. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  74. package/dist/models/CreatedApiKeyDto.js +118 -0
  75. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  76. package/dist/models/FeatureFlagListItemDto.js +2 -1
  77. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  78. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  79. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  80. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  81. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  82. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  83. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  84. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  85. package/dist/models/MarketplaceDto.d.ts +74 -0
  86. package/dist/models/MarketplaceDto.js +83 -0
  87. package/dist/models/OrderDto.d.ts +7 -1
  88. package/dist/models/OrderDto.js +4 -0
  89. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  90. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  91. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  92. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  93. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  94. package/dist/models/SimulateCommissionInput.js +1 -0
  95. package/dist/models/SubscriptionDto.d.ts +7 -1
  96. package/dist/models/SubscriptionDto.js +4 -0
  97. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  98. package/dist/models/UpdateApiKeyInput.js +90 -0
  99. package/dist/models/UpdateDomainInput.d.ts +18 -0
  100. package/dist/models/UpdateDomainInput.js +14 -0
  101. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  102. package/dist/models/UpdateMarketplaceInput.js +53 -0
  103. package/dist/models/UpdateOrderInput.d.ts +6 -0
  104. package/dist/models/UpdateOrderInput.js +2 -0
  105. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  106. package/dist/models/UpdateSubscriptionInput.js +2 -0
  107. package/dist/models/index.d.ts +10 -0
  108. package/dist/models/index.js +10 -0
  109. package/package.json +1 -1
  110. package/src/apis/APIKeysApi.ts +271 -0
  111. package/src/apis/AccountsApi.ts +108 -36
  112. package/src/apis/AdminApi.ts +112 -0
  113. package/src/apis/AuctionsApi.ts +12 -4
  114. package/src/apis/BankAccountsApi.ts +30 -10
  115. package/src/apis/ChallengesApi.ts +18 -6
  116. package/src/apis/DomainTransfersApi.ts +6 -2
  117. package/src/apis/DomainsApi.ts +132 -44
  118. package/src/apis/EppApi.ts +6 -2
  119. package/src/apis/InvoicesApi.ts +18 -6
  120. package/src/apis/LeadsApi.ts +114 -38
  121. package/src/apis/MarketplacesApi.ts +240 -0
  122. package/src/apis/NotificationsApi.ts +24 -8
  123. package/src/apis/StatsApi.ts +42 -14
  124. package/src/apis/SubscriptionsApi.ts +6 -2
  125. package/src/apis/TasksApi.ts +18 -6
  126. package/src/apis/UsersApi.ts +30 -10
  127. package/src/apis/index.ts +2 -0
  128. package/src/models/AccountMarketplaceDto.ts +99 -0
  129. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  130. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  131. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  132. package/src/models/AccountSettingsDto.ts +24 -0
  133. package/src/models/AccountSettingsInput.ts +23 -0
  134. package/src/models/AdminDomainListItemDto.ts +23 -0
  135. package/src/models/AdminMarketplaceDto.ts +144 -0
  136. package/src/models/ApiKeyDto.ts +162 -0
  137. package/src/models/ApiKeyScopeDto.ts +126 -0
  138. package/src/models/CommissionDto.ts +1 -0
  139. package/src/models/CommissionPayloadInput.ts +1 -0
  140. package/src/models/CommissionReasonDto.ts +1 -0
  141. package/src/models/CommissionSimulationItemInput.ts +1 -0
  142. package/src/models/CreateApiKeyInput.ts +125 -0
  143. package/src/models/CreateOrderInput.ts +8 -0
  144. package/src/models/CreateSubscriptionInput.ts +8 -0
  145. package/src/models/CreatedApiKeyDto.ts +171 -0
  146. package/src/models/FeatureFlagListItemDto.ts +2 -1
  147. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  148. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  149. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  150. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  151. package/src/models/MarketplaceDto.ts +126 -0
  152. package/src/models/OrderDto.ts +10 -1
  153. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  154. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  155. package/src/models/SimulateCommissionInput.ts +1 -0
  156. package/src/models/SubscriptionDto.ts +10 -1
  157. package/src/models/UpdateApiKeyInput.ts +115 -0
  158. package/src/models/UpdateDomainInput.ts +23 -0
  159. package/src/models/UpdateMarketplaceInput.ts +81 -0
  160. package/src/models/UpdateOrderInput.ts +8 -0
  161. package/src/models/UpdateSubscriptionInput.ts +8 -0
  162. package/src/models/index.ts +10 -0
@@ -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, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -298,6 +298,10 @@ export interface AdminApiUpdateFeatureFlagRequest {
298
298
  featureFlagId: string;
299
299
  updateFeatureFlagInput: UpdateFeatureFlagInput;
300
300
  }
301
+ export interface AdminApiUpdateMarketplaceRequest {
302
+ code: UpdateMarketplaceCodeEnum;
303
+ updateMarketplaceInput: UpdateMarketplaceInput;
304
+ }
301
305
  export interface AdminApiVerifyAccountAliasRequest {
302
306
  accountId: string;
303
307
  }
@@ -658,6 +662,16 @@ export declare class AdminApi extends runtime.BaseAPI {
658
662
  * List accounts
659
663
  */
660
664
  listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
665
+ /**
666
+ * Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
667
+ * List all marketplaces
668
+ */
669
+ listAdminMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminMarketplaceDto>>>;
670
+ /**
671
+ * Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
672
+ * List all marketplaces
673
+ */
674
+ listAdminMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminMarketplaceDto>>;
661
675
  /**
662
676
  * Lists all existing non-deleted challenges.
663
677
  * List all challenges
@@ -938,6 +952,16 @@ export declare class AdminApi extends runtime.BaseAPI {
938
952
  * Update platform feature
939
953
  */
940
954
  updateFeatureFlag(requestParameters: AdminApiUpdateFeatureFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
955
+ /**
956
+ * Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
957
+ * Update a marketplace
958
+ */
959
+ updateMarketplaceRaw(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
960
+ /**
961
+ * Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
962
+ * Update a marketplace
963
+ */
964
+ updateMarketplace(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
941
965
  /**
942
966
  * Marks the account alias as verified.
943
967
  * Verify account alias
@@ -959,3 +983,15 @@ export declare class AdminApi extends runtime.BaseAPI {
959
983
  */
960
984
  verifyBankAccount(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
961
985
  }
986
+ /**
987
+ * @export
988
+ */
989
+ export declare const UpdateMarketplaceCodeEnum: {
990
+ readonly NAMESHIFT: "nameshift";
991
+ readonly SEDO: "sedo";
992
+ readonly AFTERNIC: "afternic";
993
+ readonly ATOM: "atom";
994
+ readonly SPACESHIP: "spaceship";
995
+ readonly NAMECLUB: "nameclub";
996
+ };
997
+ export type UpdateMarketplaceCodeEnum = typeof UpdateMarketplaceCodeEnum[keyof typeof UpdateMarketplaceCodeEnum];
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.AdminApi = void 0;
67
+ exports.UpdateMarketplaceCodeEnum = exports.AdminApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
@@ -2148,6 +2148,58 @@ var AdminApi = /** @class */ (function (_super) {
2148
2148
  });
2149
2149
  });
2150
2150
  };
2151
+ /**
2152
+ * Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
2153
+ * List all marketplaces
2154
+ */
2155
+ AdminApi.prototype.listAdminMarketplacesRaw = function (initOverrides) {
2156
+ return __awaiter(this, void 0, void 0, function () {
2157
+ var queryParameters, headerParameters, token, tokenString, response;
2158
+ return __generator(this, function (_a) {
2159
+ switch (_a.label) {
2160
+ case 0:
2161
+ queryParameters = {};
2162
+ headerParameters = {};
2163
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2164
+ token = this.configuration.accessToken;
2165
+ return [4 /*yield*/, token("bearer", [])];
2166
+ case 1:
2167
+ tokenString = _a.sent();
2168
+ if (tokenString) {
2169
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2170
+ }
2171
+ _a.label = 2;
2172
+ case 2: return [4 /*yield*/, this.request({
2173
+ path: "/admin/marketplaces",
2174
+ method: 'GET',
2175
+ headers: headerParameters,
2176
+ query: queryParameters,
2177
+ }, initOverrides)];
2178
+ case 3:
2179
+ response = _a.sent();
2180
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AdminMarketplaceDtoFromJSON); })];
2181
+ }
2182
+ });
2183
+ });
2184
+ };
2185
+ /**
2186
+ * Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
2187
+ * List all marketplaces
2188
+ */
2189
+ AdminApi.prototype.listAdminMarketplaces = function (initOverrides) {
2190
+ return __awaiter(this, void 0, void 0, function () {
2191
+ var response;
2192
+ return __generator(this, function (_a) {
2193
+ switch (_a.label) {
2194
+ case 0: return [4 /*yield*/, this.listAdminMarketplacesRaw(initOverrides)];
2195
+ case 1:
2196
+ response = _a.sent();
2197
+ return [4 /*yield*/, response.value()];
2198
+ case 2: return [2 /*return*/, _a.sent()];
2199
+ }
2200
+ });
2201
+ });
2202
+ };
2151
2203
  /**
2152
2204
  * Lists all existing non-deleted challenges.
2153
2205
  * List all challenges
@@ -3768,6 +3820,64 @@ var AdminApi = /** @class */ (function (_super) {
3768
3820
  });
3769
3821
  });
3770
3822
  };
3823
+ /**
3824
+ * Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
3825
+ * Update a marketplace
3826
+ */
3827
+ AdminApi.prototype.updateMarketplaceRaw = function (requestParameters, initOverrides) {
3828
+ return __awaiter(this, void 0, void 0, function () {
3829
+ var queryParameters, headerParameters, token, tokenString, response;
3830
+ return __generator(this, function (_a) {
3831
+ switch (_a.label) {
3832
+ case 0:
3833
+ if (requestParameters['code'] == null) {
3834
+ throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling updateMarketplace().');
3835
+ }
3836
+ if (requestParameters['updateMarketplaceInput'] == null) {
3837
+ throw new runtime.RequiredError('updateMarketplaceInput', 'Required parameter "updateMarketplaceInput" was null or undefined when calling updateMarketplace().');
3838
+ }
3839
+ queryParameters = {};
3840
+ headerParameters = {};
3841
+ headerParameters['Content-Type'] = 'application/json';
3842
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3843
+ token = this.configuration.accessToken;
3844
+ return [4 /*yield*/, token("bearer", [])];
3845
+ case 1:
3846
+ tokenString = _a.sent();
3847
+ if (tokenString) {
3848
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3849
+ }
3850
+ _a.label = 2;
3851
+ case 2: return [4 /*yield*/, this.request({
3852
+ path: "/admin/marketplaces/{code}".replace("{".concat("code", "}"), encodeURIComponent(String(requestParameters['code']))),
3853
+ method: 'PATCH',
3854
+ headers: headerParameters,
3855
+ query: queryParameters,
3856
+ body: (0, index_1.UpdateMarketplaceInputToJSON)(requestParameters['updateMarketplaceInput']),
3857
+ }, initOverrides)];
3858
+ case 3:
3859
+ response = _a.sent();
3860
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
3861
+ }
3862
+ });
3863
+ });
3864
+ };
3865
+ /**
3866
+ * Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
3867
+ * Update a marketplace
3868
+ */
3869
+ AdminApi.prototype.updateMarketplace = function (requestParameters, initOverrides) {
3870
+ return __awaiter(this, void 0, void 0, function () {
3871
+ return __generator(this, function (_a) {
3872
+ switch (_a.label) {
3873
+ case 0: return [4 /*yield*/, this.updateMarketplaceRaw(requestParameters, initOverrides)];
3874
+ case 1:
3875
+ _a.sent();
3876
+ return [2 /*return*/];
3877
+ }
3878
+ });
3879
+ });
3880
+ };
3771
3881
  /**
3772
3882
  * Marks the account alias as verified.
3773
3883
  * Verify account alias
@@ -3877,3 +3987,14 @@ var AdminApi = /** @class */ (function (_super) {
3877
3987
  return AdminApi;
3878
3988
  }(runtime.BaseAPI));
3879
3989
  exports.AdminApi = AdminApi;
3990
+ /**
3991
+ * @export
3992
+ */
3993
+ exports.UpdateMarketplaceCodeEnum = {
3994
+ NAMESHIFT: 'nameshift',
3995
+ SEDO: 'sedo',
3996
+ AFTERNIC: 'afternic',
3997
+ ATOM: 'atom',
3998
+ SPACESHIP: 'spaceship',
3999
+ NAMECLUB: 'nameclub'
4000
+ };
@@ -29,22 +29,22 @@ export interface AuctionsApiGetAllAuctionsRequest {
29
29
  */
30
30
  export declare class AuctionsApi extends runtime.BaseAPI {
31
31
  /**
32
- * Deletes a scheduled auction owned by the seller account.
32
+ * Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
33
33
  * Delete auction
34
34
  */
35
35
  deleteAuctionRaw(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
36
36
  /**
37
- * Deletes a scheduled auction owned by the seller account.
37
+ * Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
38
38
  * Delete auction
39
39
  */
40
40
  deleteAuction(requestParameters: AuctionsApiDeleteAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
41
41
  /**
42
- * Lists auctions for the seller account.
42
+ * Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
43
43
  * List seller auctions
44
44
  */
45
45
  getAllAuctionsRaw(requestParameters: AuctionsApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response1>>;
46
46
  /**
47
- * Lists auctions for the seller account.
47
+ * Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
48
48
  * List seller auctions
49
49
  */
50
50
  getAllAuctions(requestParameters?: AuctionsApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response1>;
@@ -76,44 +76,52 @@ var AuctionsApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Deletes a scheduled auction owned by the seller account.
79
+ * Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
80
80
  * Delete auction
81
81
  */
82
82
  AuctionsApi.prototype.deleteAuctionRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, token, tokenString, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
84
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
85
+ return __generator(this, function (_c) {
86
+ switch (_c.label) {
87
87
  case 0:
88
88
  if (requestParameters['auctionId'] == null) {
89
89
  throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling deleteAuction().');
90
90
  }
91
91
  queryParameters = {};
92
92
  headerParameters = {};
93
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
93
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
94
+ _a = headerParameters;
95
+ _b = "apikey";
96
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
97
+ case 1:
98
+ _a[_b] = _c.sent(); // api_key authentication
99
+ _c.label = 2;
100
+ case 2:
101
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
94
102
  token = this.configuration.accessToken;
95
103
  return [4 /*yield*/, token("bearer", [])];
96
- case 1:
97
- tokenString = _a.sent();
104
+ case 3:
105
+ tokenString = _c.sent();
98
106
  if (tokenString) {
99
107
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
100
108
  }
101
- _a.label = 2;
102
- case 2: return [4 /*yield*/, this.request({
109
+ _c.label = 4;
110
+ case 4: return [4 /*yield*/, this.request({
103
111
  path: "/private/auctions/{auctionId}".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
104
112
  method: 'DELETE',
105
113
  headers: headerParameters,
106
114
  query: queryParameters,
107
115
  }, initOverrides)];
108
- case 3:
109
- response = _a.sent();
116
+ case 5:
117
+ response = _c.sent();
110
118
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
111
119
  }
112
120
  });
113
121
  });
114
122
  };
115
123
  /**
116
- * Deletes a scheduled auction owned by the seller account.
124
+ * Deletes a scheduled auction owned by the seller account. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
117
125
  * Delete auction
118
126
  */
119
127
  AuctionsApi.prototype.deleteAuction = function (requestParameters, initOverrides) {
@@ -129,14 +137,14 @@ var AuctionsApi = /** @class */ (function (_super) {
129
137
  });
130
138
  };
131
139
  /**
132
- * Lists auctions for the seller account.
140
+ * Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
133
141
  * List seller auctions
134
142
  */
135
143
  AuctionsApi.prototype.getAllAuctionsRaw = function (requestParameters, initOverrides) {
136
144
  return __awaiter(this, void 0, void 0, function () {
137
- var queryParameters, headerParameters, token, tokenString, response;
138
- return __generator(this, function (_a) {
139
- switch (_a.label) {
145
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
146
+ return __generator(this, function (_c) {
147
+ switch (_c.label) {
140
148
  case 0:
141
149
  queryParameters = {};
142
150
  if (requestParameters['filter'] != null) {
@@ -158,30 +166,38 @@ var AuctionsApi = /** @class */ (function (_super) {
158
166
  queryParameters['filter[status]'] = requestParameters['filterStatus'];
159
167
  }
160
168
  headerParameters = {};
161
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
169
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
170
+ _a = headerParameters;
171
+ _b = "apikey";
172
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
173
+ case 1:
174
+ _a[_b] = _c.sent(); // api_key authentication
175
+ _c.label = 2;
176
+ case 2:
177
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
162
178
  token = this.configuration.accessToken;
163
179
  return [4 /*yield*/, token("bearer", [])];
164
- case 1:
165
- tokenString = _a.sent();
180
+ case 3:
181
+ tokenString = _c.sent();
166
182
  if (tokenString) {
167
183
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
168
184
  }
169
- _a.label = 2;
170
- case 2: return [4 /*yield*/, this.request({
185
+ _c.label = 4;
186
+ case 4: return [4 /*yield*/, this.request({
171
187
  path: "/private/auctions",
172
188
  method: 'GET',
173
189
  headers: headerParameters,
174
190
  query: queryParameters,
175
191
  }, initOverrides)];
176
- case 3:
177
- response = _a.sent();
192
+ case 5:
193
+ response = _c.sent();
178
194
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllAuctions200Response1FromJSON)(jsonValue); })];
179
195
  }
180
196
  });
181
197
  });
182
198
  };
183
199
  /**
184
- * Lists auctions for the seller account.
200
+ * Lists auctions for the seller account. **API key scope required:** `AUCTIONS_READ`. Requests authenticated with a seller session do not need any scope.
185
201
  * List seller auctions
186
202
  */
187
203
  AuctionsApi.prototype.getAllAuctions = function () {
@@ -35,52 +35,52 @@ export interface BankAccountsApiMakeBankAccountPrimaryRequest {
35
35
  */
36
36
  export declare class BankAccountsApi extends runtime.BaseAPI {
37
37
  /**
38
- * Adds a new bank account for payouts to the current seller account.
38
+ * Adds a new bank account for payouts to the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
39
39
  * Create bank account
40
40
  */
41
41
  createBankAccountRaw(requestParameters: BankAccountsApiCreateBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
42
42
  /**
43
- * Adds a new bank account for payouts to the current seller account.
43
+ * Adds a new bank account for payouts to the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
44
44
  * Create bank account
45
45
  */
46
46
  createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
47
47
  /**
48
- * Removes a bank account from the current seller account.
48
+ * Removes a bank account from the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
49
49
  * Delete bank account
50
50
  */
51
51
  deleteBankAccountRaw(requestParameters: BankAccountsApiDeleteBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
52
52
  /**
53
- * Removes a bank account from the current seller account.
53
+ * Removes a bank account from the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
54
54
  * Delete bank account
55
55
  */
56
56
  deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
57
57
  /**
58
- * Returns bank account details to use for microdeposit verification.
58
+ * Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
59
59
  * Get microdeposit bank account details
60
60
  */
61
61
  getBankAccountToUseForMicrodepositRaw(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AirwallexBankAccountDetailsDto>>;
62
62
  /**
63
- * Returns bank account details to use for microdeposit verification.
63
+ * Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
64
64
  * Get microdeposit bank account details
65
65
  */
66
66
  getBankAccountToUseForMicrodeposit(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AirwallexBankAccountDetailsDto>;
67
67
  /**
68
- * Returns all bank accounts configured for the current seller account.
68
+ * Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
69
69
  * List bank accounts
70
70
  */
71
71
  listBankAccountsRaw(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBankAccountDto>>>;
72
72
  /**
73
- * Returns all bank accounts configured for the current seller account.
73
+ * Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
74
74
  * List bank accounts
75
75
  */
76
76
  listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBankAccountDto>>;
77
77
  /**
78
- * Sets the specified bank account as the primary payout destination.
78
+ * Sets the specified bank account as the primary payout destination. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
79
79
  * Set primary bank account
80
80
  */
81
81
  makeBankAccountPrimaryRaw(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
82
82
  /**
83
- * Sets the specified bank account as the primary payout destination.
83
+ * Sets the specified bank account as the primary payout destination. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
84
84
  * Set primary bank account
85
85
  */
86
86
  makeBankAccountPrimary(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;