@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
@@ -76,27 +76,35 @@ var DomainsApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Imports domains from an uploaded file or a list of domain names and queues them for processing.
79
+ * Imports domains from an uploaded file or a list of domain names and queues them for processing. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
80
80
  * Import domains
81
81
  */
82
82
  DomainsApi.prototype.batchImportRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
84
+ var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
85
+ return __generator(this, function (_c) {
86
+ switch (_c.label) {
87
87
  case 0:
88
88
  queryParameters = {};
89
89
  headerParameters = {};
90
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
90
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
91
+ _a = headerParameters;
92
+ _b = "apikey";
93
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
94
+ case 1:
95
+ _a[_b] = _c.sent(); // api_key authentication
96
+ _c.label = 2;
97
+ case 2:
98
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
91
99
  token = this.configuration.accessToken;
92
100
  return [4 /*yield*/, token("bearer", [])];
93
- case 1:
94
- tokenString = _a.sent();
101
+ case 3:
102
+ tokenString = _c.sent();
95
103
  if (tokenString) {
96
104
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
97
105
  }
98
- _a.label = 2;
99
- case 2:
106
+ _c.label = 4;
107
+ case 4:
100
108
  consumes = [
101
109
  { contentType: 'multipart/form-data' },
102
110
  ];
@@ -123,15 +131,15 @@ var DomainsApi = /** @class */ (function (_super) {
123
131
  query: queryParameters,
124
132
  body: formParams,
125
133
  }, initOverrides)];
126
- case 3:
127
- response = _a.sent();
134
+ case 5:
135
+ response = _c.sent();
128
136
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
129
137
  }
130
138
  });
131
139
  });
132
140
  };
133
141
  /**
134
- * Imports domains from an uploaded file or a list of domain names and queues them for processing.
142
+ * Imports domains from an uploaded file or a list of domain names and queues them for processing. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
135
143
  * Import domains
136
144
  */
137
145
  DomainsApi.prototype.batchImport = function () {
@@ -148,27 +156,35 @@ var DomainsApi = /** @class */ (function (_super) {
148
156
  });
149
157
  };
150
158
  /**
151
- * Uploads a domain import file and returns a preview of parsed domains before import.
159
+ * Uploads a domain import file and returns a preview of parsed domains before import. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
152
160
  * Preview domain import
153
161
  */
154
162
  DomainsApi.prototype.batchImportPreviewRaw = function (requestParameters, initOverrides) {
155
163
  return __awaiter(this, void 0, void 0, function () {
156
- var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
157
- return __generator(this, function (_a) {
158
- switch (_a.label) {
164
+ var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
165
+ return __generator(this, function (_c) {
166
+ switch (_c.label) {
159
167
  case 0:
160
168
  queryParameters = {};
161
169
  headerParameters = {};
162
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
170
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
171
+ _a = headerParameters;
172
+ _b = "apikey";
173
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
174
+ case 1:
175
+ _a[_b] = _c.sent(); // api_key authentication
176
+ _c.label = 2;
177
+ case 2:
178
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
163
179
  token = this.configuration.accessToken;
164
180
  return [4 /*yield*/, token("bearer", [])];
165
- case 1:
166
- tokenString = _a.sent();
181
+ case 3:
182
+ tokenString = _c.sent();
167
183
  if (tokenString) {
168
184
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
169
185
  }
170
- _a.label = 2;
171
- case 2:
186
+ _c.label = 4;
187
+ case 4:
172
188
  consumes = [
173
189
  { contentType: 'multipart/form-data' },
174
190
  ];
@@ -192,15 +208,15 @@ var DomainsApi = /** @class */ (function (_super) {
192
208
  query: queryParameters,
193
209
  body: formParams,
194
210
  }, initOverrides)];
195
- case 3:
196
- response = _a.sent();
211
+ case 5:
212
+ response = _c.sent();
197
213
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BatchImportPreviewDtoFromJSON)(jsonValue); })];
198
214
  }
199
215
  });
200
216
  });
201
217
  };
202
218
  /**
203
- * Uploads a domain import file and returns a preview of parsed domains before import.
219
+ * Uploads a domain import file and returns a preview of parsed domains before import. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
204
220
  * Preview domain import
205
221
  */
206
222
  DomainsApi.prototype.batchImportPreview = function () {
@@ -219,14 +235,14 @@ var DomainsApi = /** @class */ (function (_super) {
219
235
  });
220
236
  };
221
237
  /**
222
- * Applies the same settings update to multiple domains by ID.
238
+ * Applies the same settings update to multiple domains by ID. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
223
239
  * Batch update domains
224
240
  */
225
241
  DomainsApi.prototype.batchUpdateRaw = function (requestParameters, initOverrides) {
226
242
  return __awaiter(this, void 0, void 0, function () {
227
- var queryParameters, headerParameters, token, tokenString, response;
228
- return __generator(this, function (_a) {
229
- switch (_a.label) {
243
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
244
+ return __generator(this, function (_c) {
245
+ switch (_c.label) {
230
246
  case 0:
231
247
  if (requestParameters['batchUpdateDomainsInput'] == null) {
232
248
  throw new runtime.RequiredError('batchUpdateDomainsInput', 'Required parameter "batchUpdateDomainsInput" was null or undefined when calling batchUpdate().');
@@ -234,31 +250,39 @@ var DomainsApi = /** @class */ (function (_super) {
234
250
  queryParameters = {};
235
251
  headerParameters = {};
236
252
  headerParameters['Content-Type'] = 'application/json';
237
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
253
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
254
+ _a = headerParameters;
255
+ _b = "apikey";
256
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
257
+ case 1:
258
+ _a[_b] = _c.sent(); // api_key authentication
259
+ _c.label = 2;
260
+ case 2:
261
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
238
262
  token = this.configuration.accessToken;
239
263
  return [4 /*yield*/, token("bearer", [])];
240
- case 1:
241
- tokenString = _a.sent();
264
+ case 3:
265
+ tokenString = _c.sent();
242
266
  if (tokenString) {
243
267
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
244
268
  }
245
- _a.label = 2;
246
- case 2: return [4 /*yield*/, this.request({
269
+ _c.label = 4;
270
+ case 4: return [4 /*yield*/, this.request({
247
271
  path: "/private/domains",
248
272
  method: 'PATCH',
249
273
  headers: headerParameters,
250
274
  query: queryParameters,
251
275
  body: (0, index_1.BatchUpdateDomainsInputToJSON)(requestParameters['batchUpdateDomainsInput']),
252
276
  }, initOverrides)];
253
- case 3:
254
- response = _a.sent();
277
+ case 5:
278
+ response = _c.sent();
255
279
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
256
280
  }
257
281
  });
258
282
  });
259
283
  };
260
284
  /**
261
- * Applies the same settings update to multiple domains by ID.
285
+ * Applies the same settings update to multiple domains by ID. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
262
286
  * Batch update domains
263
287
  */
264
288
  DomainsApi.prototype.batchUpdate = function (requestParameters, initOverrides) {
@@ -274,14 +298,14 @@ var DomainsApi = /** @class */ (function (_super) {
274
298
  });
275
299
  };
276
300
  /**
277
- * Applies pricing and configuration updates to all domains matching the provided filter criteria.
301
+ * Applies pricing and configuration updates to all domains matching the provided filter criteria. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
278
302
  * Bulk update domains with filters
279
303
  */
280
304
  DomainsApi.prototype.bulkUpdateDomainsWithFiltersRaw = function (requestParameters, initOverrides) {
281
305
  return __awaiter(this, void 0, void 0, function () {
282
- var queryParameters, headerParameters, token, tokenString, response;
283
- return __generator(this, function (_a) {
284
- switch (_a.label) {
306
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
307
+ return __generator(this, function (_c) {
308
+ switch (_c.label) {
285
309
  case 0:
286
310
  if (requestParameters['bulkUpdateDomainsWithFiltersInput'] == null) {
287
311
  throw new runtime.RequiredError('bulkUpdateDomainsWithFiltersInput', 'Required parameter "bulkUpdateDomainsWithFiltersInput" was null or undefined when calling bulkUpdateDomainsWithFilters().');
@@ -292,31 +316,39 @@ var DomainsApi = /** @class */ (function (_super) {
292
316
  }
293
317
  headerParameters = {};
294
318
  headerParameters['Content-Type'] = 'application/json';
295
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
319
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
320
+ _a = headerParameters;
321
+ _b = "apikey";
322
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
323
+ case 1:
324
+ _a[_b] = _c.sent(); // api_key authentication
325
+ _c.label = 2;
326
+ case 2:
327
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
296
328
  token = this.configuration.accessToken;
297
329
  return [4 /*yield*/, token("bearer", [])];
298
- case 1:
299
- tokenString = _a.sent();
330
+ case 3:
331
+ tokenString = _c.sent();
300
332
  if (tokenString) {
301
333
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
302
334
  }
303
- _a.label = 2;
304
- case 2: return [4 /*yield*/, this.request({
335
+ _c.label = 4;
336
+ case 4: return [4 /*yield*/, this.request({
305
337
  path: "/private/domains/bulk-update",
306
338
  method: 'PATCH',
307
339
  headers: headerParameters,
308
340
  query: queryParameters,
309
341
  body: (0, index_1.BulkUpdateDomainsWithFiltersInputToJSON)(requestParameters['bulkUpdateDomainsWithFiltersInput']),
310
342
  }, initOverrides)];
311
- case 3:
312
- response = _a.sent();
343
+ case 5:
344
+ response = _c.sent();
313
345
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
314
346
  }
315
347
  });
316
348
  });
317
349
  };
318
350
  /**
319
- * Applies pricing and configuration updates to all domains matching the provided filter criteria.
351
+ * Applies pricing and configuration updates to all domains matching the provided filter criteria. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
320
352
  * Bulk update domains with filters
321
353
  */
322
354
  DomainsApi.prototype.bulkUpdateDomainsWithFilters = function (requestParameters, initOverrides) {
@@ -332,44 +364,52 @@ var DomainsApi = /** @class */ (function (_super) {
332
364
  });
333
365
  };
334
366
  /**
335
- * Starts a nameserver verification check for a single domain.
367
+ * Starts a nameserver verification check for a single domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
336
368
  * Check domain nameservers
337
369
  */
338
370
  DomainsApi.prototype.checkDnsRaw = function (requestParameters, initOverrides) {
339
371
  return __awaiter(this, void 0, void 0, function () {
340
- var queryParameters, headerParameters, token, tokenString, response;
341
- return __generator(this, function (_a) {
342
- switch (_a.label) {
372
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
373
+ return __generator(this, function (_c) {
374
+ switch (_c.label) {
343
375
  case 0:
344
376
  if (requestParameters['domainId'] == null) {
345
377
  throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDns().');
346
378
  }
347
379
  queryParameters = {};
348
380
  headerParameters = {};
349
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
381
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
382
+ _a = headerParameters;
383
+ _b = "apikey";
384
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
385
+ case 1:
386
+ _a[_b] = _c.sent(); // api_key authentication
387
+ _c.label = 2;
388
+ case 2:
389
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
350
390
  token = this.configuration.accessToken;
351
391
  return [4 /*yield*/, token("bearer", [])];
352
- case 1:
353
- tokenString = _a.sent();
392
+ case 3:
393
+ tokenString = _c.sent();
354
394
  if (tokenString) {
355
395
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
356
396
  }
357
- _a.label = 2;
358
- case 2: return [4 /*yield*/, this.request({
397
+ _c.label = 4;
398
+ case 4: return [4 /*yield*/, this.request({
359
399
  path: "/private/domains/{domainId}/check_ns".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
360
400
  method: 'POST',
361
401
  headers: headerParameters,
362
402
  query: queryParameters,
363
403
  }, initOverrides)];
364
- case 3:
365
- response = _a.sent();
404
+ case 5:
405
+ response = _c.sent();
366
406
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
367
407
  }
368
408
  });
369
409
  });
370
410
  };
371
411
  /**
372
- * Starts a nameserver verification check for a single domain.
412
+ * Starts a nameserver verification check for a single domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
373
413
  * Check domain nameservers
374
414
  */
375
415
  DomainsApi.prototype.checkDns = function (requestParameters, initOverrides) {
@@ -385,14 +425,14 @@ var DomainsApi = /** @class */ (function (_super) {
385
425
  });
386
426
  };
387
427
  /**
388
- * Starts a nameserver verification check for the specified domain IDs.
428
+ * Starts a nameserver verification check for the specified domain IDs. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
389
429
  * Check nameservers for multiple domains
390
430
  */
391
431
  DomainsApi.prototype.checkDnsBatchRaw = function (requestParameters, initOverrides) {
392
432
  return __awaiter(this, void 0, void 0, function () {
393
- var queryParameters, headerParameters, token, tokenString, response;
394
- return __generator(this, function (_a) {
395
- switch (_a.label) {
433
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
434
+ return __generator(this, function (_c) {
435
+ switch (_c.label) {
396
436
  case 0:
397
437
  if (requestParameters['checkDomainsNsInput'] == null) {
398
438
  throw new runtime.RequiredError('checkDomainsNsInput', 'Required parameter "checkDomainsNsInput" was null or undefined when calling checkDnsBatch().');
@@ -400,31 +440,39 @@ var DomainsApi = /** @class */ (function (_super) {
400
440
  queryParameters = {};
401
441
  headerParameters = {};
402
442
  headerParameters['Content-Type'] = 'application/json';
403
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
443
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
444
+ _a = headerParameters;
445
+ _b = "apikey";
446
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
447
+ case 1:
448
+ _a[_b] = _c.sent(); // api_key authentication
449
+ _c.label = 2;
450
+ case 2:
451
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
404
452
  token = this.configuration.accessToken;
405
453
  return [4 /*yield*/, token("bearer", [])];
406
- case 1:
407
- tokenString = _a.sent();
454
+ case 3:
455
+ tokenString = _c.sent();
408
456
  if (tokenString) {
409
457
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
410
458
  }
411
- _a.label = 2;
412
- case 2: return [4 /*yield*/, this.request({
459
+ _c.label = 4;
460
+ case 4: return [4 /*yield*/, this.request({
413
461
  path: "/private/domains/check_ns",
414
462
  method: 'POST',
415
463
  headers: headerParameters,
416
464
  query: queryParameters,
417
465
  body: (0, index_1.CheckDomainsNsInputToJSON)(requestParameters['checkDomainsNsInput']),
418
466
  }, initOverrides)];
419
- case 3:
420
- response = _a.sent();
467
+ case 5:
468
+ response = _c.sent();
421
469
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
422
470
  }
423
471
  });
424
472
  });
425
473
  };
426
474
  /**
427
- * Starts a nameserver verification check for the specified domain IDs.
475
+ * Starts a nameserver verification check for the specified domain IDs. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
428
476
  * Check nameservers for multiple domains
429
477
  */
430
478
  DomainsApi.prototype.checkDnsBatch = function (requestParameters, initOverrides) {
@@ -440,44 +488,52 @@ var DomainsApi = /** @class */ (function (_super) {
440
488
  });
441
489
  };
442
490
  /**
443
- * Checks and updates the verification status of a domain owned by the seller.
491
+ * Checks and updates the verification status of a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
444
492
  * Check domain verification
445
493
  */
446
494
  DomainsApi.prototype.checkDomainVerificationRaw = function (requestParameters, initOverrides) {
447
495
  return __awaiter(this, void 0, void 0, function () {
448
- var queryParameters, headerParameters, token, tokenString, response;
449
- return __generator(this, function (_a) {
450
- switch (_a.label) {
496
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
497
+ return __generator(this, function (_c) {
498
+ switch (_c.label) {
451
499
  case 0:
452
500
  if (requestParameters['domainId'] == null) {
453
501
  throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDomainVerification().');
454
502
  }
455
503
  queryParameters = {};
456
504
  headerParameters = {};
457
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
505
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
506
+ _a = headerParameters;
507
+ _b = "apikey";
508
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
509
+ case 1:
510
+ _a[_b] = _c.sent(); // api_key authentication
511
+ _c.label = 2;
512
+ case 2:
513
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
458
514
  token = this.configuration.accessToken;
459
515
  return [4 /*yield*/, token("bearer", [])];
460
- case 1:
461
- tokenString = _a.sent();
516
+ case 3:
517
+ tokenString = _c.sent();
462
518
  if (tokenString) {
463
519
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
464
520
  }
465
- _a.label = 2;
466
- case 2: return [4 /*yield*/, this.request({
521
+ _c.label = 4;
522
+ case 4: return [4 /*yield*/, this.request({
467
523
  path: "/private/domains/{domainId}/check-verification".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
468
524
  method: 'POST',
469
525
  headers: headerParameters,
470
526
  query: queryParameters,
471
527
  }, initOverrides)];
472
- case 3:
473
- response = _a.sent();
528
+ case 5:
529
+ response = _c.sent();
474
530
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainVerificationStatusDtoFromJSON)(jsonValue); })];
475
531
  }
476
532
  });
477
533
  });
478
534
  };
479
535
  /**
480
- * Checks and updates the verification status of a domain owned by the seller.
536
+ * Checks and updates the verification status of a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
481
537
  * Check domain verification
482
538
  */
483
539
  DomainsApi.prototype.checkDomainVerification = function (requestParameters, initOverrides) {
@@ -495,14 +551,14 @@ var DomainsApi = /** @class */ (function (_super) {
495
551
  });
496
552
  };
497
553
  /**
498
- * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted.
554
+ * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
499
555
  * Delete domains
500
556
  */
501
557
  DomainsApi.prototype.deleteDomainsRaw = function (requestParameters, initOverrides) {
502
558
  return __awaiter(this, void 0, void 0, function () {
503
- var queryParameters, headerParameters, token, tokenString, response;
504
- return __generator(this, function (_a) {
505
- switch (_a.label) {
559
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
560
+ return __generator(this, function (_c) {
561
+ switch (_c.label) {
506
562
  case 0:
507
563
  if (requestParameters['deleteDomainsInput'] == null) {
508
564
  throw new runtime.RequiredError('deleteDomainsInput', 'Required parameter "deleteDomainsInput" was null or undefined when calling deleteDomains().');
@@ -510,31 +566,39 @@ var DomainsApi = /** @class */ (function (_super) {
510
566
  queryParameters = {};
511
567
  headerParameters = {};
512
568
  headerParameters['Content-Type'] = 'application/json';
513
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
569
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
570
+ _a = headerParameters;
571
+ _b = "apikey";
572
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
573
+ case 1:
574
+ _a[_b] = _c.sent(); // api_key authentication
575
+ _c.label = 2;
576
+ case 2:
577
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
514
578
  token = this.configuration.accessToken;
515
579
  return [4 /*yield*/, token("bearer", [])];
516
- case 1:
517
- tokenString = _a.sent();
580
+ case 3:
581
+ tokenString = _c.sent();
518
582
  if (tokenString) {
519
583
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
520
584
  }
521
- _a.label = 2;
522
- case 2: return [4 /*yield*/, this.request({
585
+ _c.label = 4;
586
+ case 4: return [4 /*yield*/, this.request({
523
587
  path: "/private/domains",
524
588
  method: 'DELETE',
525
589
  headers: headerParameters,
526
590
  query: queryParameters,
527
591
  body: (0, index_1.DeleteDomainsInputToJSON)(requestParameters['deleteDomainsInput']),
528
592
  }, initOverrides)];
529
- case 3:
530
- response = _a.sent();
593
+ case 5:
594
+ response = _c.sent();
531
595
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
532
596
  }
533
597
  });
534
598
  });
535
599
  };
536
600
  /**
537
- * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted.
601
+ * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
538
602
  * Delete domains
539
603
  */
540
604
  DomainsApi.prototype.deleteDomains = function (requestParameters, initOverrides) {
@@ -550,41 +614,49 @@ var DomainsApi = /** @class */ (function (_super) {
550
614
  });
551
615
  };
552
616
  /**
553
- * Queues an export of all domains for the current seller account.
617
+ * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
554
618
  * Export domains
555
619
  */
556
620
  DomainsApi.prototype.exportDomainsRaw = function (initOverrides) {
557
621
  return __awaiter(this, void 0, void 0, function () {
558
- var queryParameters, headerParameters, token, tokenString, response;
559
- return __generator(this, function (_a) {
560
- switch (_a.label) {
622
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
623
+ return __generator(this, function (_c) {
624
+ switch (_c.label) {
561
625
  case 0:
562
626
  queryParameters = {};
563
627
  headerParameters = {};
564
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
628
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
629
+ _a = headerParameters;
630
+ _b = "apikey";
631
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
632
+ case 1:
633
+ _a[_b] = _c.sent(); // api_key authentication
634
+ _c.label = 2;
635
+ case 2:
636
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
565
637
  token = this.configuration.accessToken;
566
638
  return [4 /*yield*/, token("bearer", [])];
567
- case 1:
568
- tokenString = _a.sent();
639
+ case 3:
640
+ tokenString = _c.sent();
569
641
  if (tokenString) {
570
642
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
571
643
  }
572
- _a.label = 2;
573
- case 2: return [4 /*yield*/, this.request({
644
+ _c.label = 4;
645
+ case 4: return [4 /*yield*/, this.request({
574
646
  path: "/private/domains/export",
575
647
  method: 'POST',
576
648
  headers: headerParameters,
577
649
  query: queryParameters,
578
650
  }, initOverrides)];
579
- case 3:
580
- response = _a.sent();
651
+ case 5:
652
+ response = _c.sent();
581
653
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
582
654
  }
583
655
  });
584
656
  });
585
657
  };
586
658
  /**
587
- * Queues an export of all domains for the current seller account.
659
+ * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
588
660
  * Export domains
589
661
  */
590
662
  DomainsApi.prototype.exportDomains = function (initOverrides) {
@@ -600,14 +672,14 @@ var DomainsApi = /** @class */ (function (_super) {
600
672
  });
601
673
  };
602
674
  /**
603
- * Returns the affiliate commission information for a domain owned by the seller.
675
+ * Returns the affiliate commission information for a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
604
676
  * Get domain affiliate commission
605
677
  */
606
678
  DomainsApi.prototype.getAffiliateCommissionRaw = function (requestParameters, initOverrides) {
607
679
  return __awaiter(this, void 0, void 0, function () {
608
- var queryParameters, headerParameters, token, tokenString, response;
609
- return __generator(this, function (_a) {
610
- switch (_a.label) {
680
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
681
+ return __generator(this, function (_c) {
682
+ switch (_c.label) {
611
683
  case 0:
612
684
  if (requestParameters['domainName'] == null) {
613
685
  throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getAffiliateCommission().');
@@ -617,30 +689,38 @@ var DomainsApi = /** @class */ (function (_super) {
617
689
  queryParameters['domainName'] = requestParameters['domainName'];
618
690
  }
619
691
  headerParameters = {};
620
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
692
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
693
+ _a = headerParameters;
694
+ _b = "apikey";
695
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
696
+ case 1:
697
+ _a[_b] = _c.sent(); // api_key authentication
698
+ _c.label = 2;
699
+ case 2:
700
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
621
701
  token = this.configuration.accessToken;
622
702
  return [4 /*yield*/, token("bearer", [])];
623
- case 1:
624
- tokenString = _a.sent();
703
+ case 3:
704
+ tokenString = _c.sent();
625
705
  if (tokenString) {
626
706
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
627
707
  }
628
- _a.label = 2;
629
- case 2: return [4 /*yield*/, this.request({
708
+ _c.label = 4;
709
+ case 4: return [4 /*yield*/, this.request({
630
710
  path: "/private/domains/affiliate-commission",
631
711
  method: 'GET',
632
712
  headers: headerParameters,
633
713
  query: queryParameters,
634
714
  }, initOverrides)];
635
- case 3:
636
- response = _a.sent();
715
+ case 5:
716
+ response = _c.sent();
637
717
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerDomainAffiliateCommissionDtoFromJSON)(jsonValue); })];
638
718
  }
639
719
  });
640
720
  });
641
721
  };
642
722
  /**
643
- * Returns the affiliate commission information for a domain owned by the seller.
723
+ * Returns the affiliate commission information for a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
644
724
  * Get domain affiliate commission
645
725
  */
646
726
  DomainsApi.prototype.getAffiliateCommission = function (requestParameters, initOverrides) {
@@ -658,14 +738,14 @@ var DomainsApi = /** @class */ (function (_super) {
658
738
  });
659
739
  };
660
740
  /**
661
- * Lists domain transfers for the seller account.
741
+ * Lists domain transfers for the seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
662
742
  * List domain transfers
663
743
  */
664
744
  DomainsApi.prototype.getAllDomainTransfersRaw = function (requestParameters, initOverrides) {
665
745
  return __awaiter(this, void 0, void 0, function () {
666
- var queryParameters, headerParameters, token, tokenString, response;
667
- return __generator(this, function (_a) {
668
- switch (_a.label) {
746
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
747
+ return __generator(this, function (_c) {
748
+ switch (_c.label) {
669
749
  case 0:
670
750
  queryParameters = {};
671
751
  if (requestParameters['filter'] != null) {
@@ -687,30 +767,38 @@ var DomainsApi = /** @class */ (function (_super) {
687
767
  queryParameters['filter[domainId]'] = requestParameters['filterDomainId'];
688
768
  }
689
769
  headerParameters = {};
690
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
770
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
771
+ _a = headerParameters;
772
+ _b = "apikey";
773
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
774
+ case 1:
775
+ _a[_b] = _c.sent(); // api_key authentication
776
+ _c.label = 2;
777
+ case 2:
778
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
691
779
  token = this.configuration.accessToken;
692
780
  return [4 /*yield*/, token("bearer", [])];
693
- case 1:
694
- tokenString = _a.sent();
781
+ case 3:
782
+ tokenString = _c.sent();
695
783
  if (tokenString) {
696
784
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
697
785
  }
698
- _a.label = 2;
699
- case 2: return [4 /*yield*/, this.request({
786
+ _c.label = 4;
787
+ case 4: return [4 /*yield*/, this.request({
700
788
  path: "/private/domains/transfers",
701
789
  method: 'GET',
702
790
  headers: headerParameters,
703
791
  query: queryParameters,
704
792
  }, initOverrides)];
705
- case 3:
706
- response = _a.sent();
793
+ case 5:
794
+ response = _c.sent();
707
795
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllDomainTransfers200ResponseFromJSON)(jsonValue); })];
708
796
  }
709
797
  });
710
798
  });
711
799
  };
712
800
  /**
713
- * Lists domain transfers for the seller account.
801
+ * Lists domain transfers for the seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
714
802
  * List domain transfers
715
803
  */
716
804
  DomainsApi.prototype.getAllDomainTransfers = function () {
@@ -729,44 +817,52 @@ var DomainsApi = /** @class */ (function (_super) {
729
817
  });
730
818
  };
731
819
  /**
732
- * Returns domain information.
820
+ * Returns domain information. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
733
821
  * Get domain
734
822
  */
735
823
  DomainsApi.prototype.getDomainRaw = function (requestParameters, initOverrides) {
736
824
  return __awaiter(this, void 0, void 0, function () {
737
- var queryParameters, headerParameters, token, tokenString, response;
738
- return __generator(this, function (_a) {
739
- switch (_a.label) {
825
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
826
+ return __generator(this, function (_c) {
827
+ switch (_c.label) {
740
828
  case 0:
741
829
  if (requestParameters['domainId'] == null) {
742
830
  throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomain().');
743
831
  }
744
832
  queryParameters = {};
745
833
  headerParameters = {};
746
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
834
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
835
+ _a = headerParameters;
836
+ _b = "apikey";
837
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
838
+ case 1:
839
+ _a[_b] = _c.sent(); // api_key authentication
840
+ _c.label = 2;
841
+ case 2:
842
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
747
843
  token = this.configuration.accessToken;
748
844
  return [4 /*yield*/, token("bearer", [])];
749
- case 1:
750
- tokenString = _a.sent();
845
+ case 3:
846
+ tokenString = _c.sent();
751
847
  if (tokenString) {
752
848
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
753
849
  }
754
- _a.label = 2;
755
- case 2: return [4 /*yield*/, this.request({
850
+ _c.label = 4;
851
+ case 4: return [4 /*yield*/, this.request({
756
852
  path: "/private/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
757
853
  method: 'GET',
758
854
  headers: headerParameters,
759
855
  query: queryParameters,
760
856
  }, initOverrides)];
761
- case 3:
762
- response = _a.sent();
857
+ case 5:
858
+ response = _c.sent();
763
859
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON)(jsonValue); })];
764
860
  }
765
861
  });
766
862
  });
767
863
  };
768
864
  /**
769
- * Returns domain information.
865
+ * Returns domain information. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
770
866
  * Get domain
771
867
  */
772
868
  DomainsApi.prototype.getDomain = function (requestParameters, initOverrides) {
@@ -784,44 +880,52 @@ var DomainsApi = /** @class */ (function (_super) {
784
880
  });
785
881
  };
786
882
  /**
787
- * Returns the currency exchange rate applicable to the specified domain.
883
+ * Returns the currency exchange rate applicable to the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
788
884
  * Get domain exchange rate
789
885
  */
790
886
  DomainsApi.prototype.getDomainExchangeRateRaw = function (requestParameters, initOverrides) {
791
887
  return __awaiter(this, void 0, void 0, function () {
792
- var queryParameters, headerParameters, token, tokenString, response;
793
- return __generator(this, function (_a) {
794
- switch (_a.label) {
888
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
889
+ return __generator(this, function (_c) {
890
+ switch (_c.label) {
795
891
  case 0:
796
892
  if (requestParameters['domainId'] == null) {
797
893
  throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomainExchangeRate().');
798
894
  }
799
895
  queryParameters = {};
800
896
  headerParameters = {};
801
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
897
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
898
+ _a = headerParameters;
899
+ _b = "apikey";
900
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
901
+ case 1:
902
+ _a[_b] = _c.sent(); // api_key authentication
903
+ _c.label = 2;
904
+ case 2:
905
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
802
906
  token = this.configuration.accessToken;
803
907
  return [4 /*yield*/, token("bearer", [])];
804
- case 1:
805
- tokenString = _a.sent();
908
+ case 3:
909
+ tokenString = _c.sent();
806
910
  if (tokenString) {
807
911
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
808
912
  }
809
- _a.label = 2;
810
- case 2: return [4 /*yield*/, this.request({
913
+ _c.label = 4;
914
+ case 4: return [4 /*yield*/, this.request({
811
915
  path: "/private/domains/{domainId}/exchange-rate".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
812
916
  method: 'GET',
813
917
  headers: headerParameters,
814
918
  query: queryParameters,
815
919
  }, initOverrides)];
816
- case 3:
817
- response = _a.sent();
920
+ case 5:
921
+ response = _c.sent();
818
922
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainExchangeRateDtoFromJSON)(jsonValue); })];
819
923
  }
820
924
  });
821
925
  });
822
926
  };
823
927
  /**
824
- * Returns the currency exchange rate applicable to the specified domain.
928
+ * Returns the currency exchange rate applicable to the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
825
929
  * Get domain exchange rate
826
930
  */
827
931
  DomainsApi.prototype.getDomainExchangeRate = function (requestParameters, initOverrides) {
@@ -839,41 +943,49 @@ var DomainsApi = /** @class */ (function (_super) {
839
943
  });
840
944
  };
841
945
  /**
842
- * Returns available filter options for the seller domain inventory.
946
+ * Returns available filter options for the seller domain inventory. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
843
947
  * Get domain filters
844
948
  */
845
949
  DomainsApi.prototype.getDomainFiltersRaw = function (initOverrides) {
846
950
  return __awaiter(this, void 0, void 0, function () {
847
- var queryParameters, headerParameters, token, tokenString, response;
848
- return __generator(this, function (_a) {
849
- switch (_a.label) {
951
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
952
+ return __generator(this, function (_c) {
953
+ switch (_c.label) {
850
954
  case 0:
851
955
  queryParameters = {};
852
956
  headerParameters = {};
853
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
957
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
958
+ _a = headerParameters;
959
+ _b = "apikey";
960
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
961
+ case 1:
962
+ _a[_b] = _c.sent(); // api_key authentication
963
+ _c.label = 2;
964
+ case 2:
965
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
854
966
  token = this.configuration.accessToken;
855
967
  return [4 /*yield*/, token("bearer", [])];
856
- case 1:
857
- tokenString = _a.sent();
968
+ case 3:
969
+ tokenString = _c.sent();
858
970
  if (tokenString) {
859
971
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
860
972
  }
861
- _a.label = 2;
862
- case 2: return [4 /*yield*/, this.request({
973
+ _c.label = 4;
974
+ case 4: return [4 /*yield*/, this.request({
863
975
  path: "/private/domains/filters",
864
976
  method: 'GET',
865
977
  headers: headerParameters,
866
978
  query: queryParameters,
867
979
  }, initOverrides)];
868
- case 3:
869
- response = _a.sent();
980
+ case 5:
981
+ response = _c.sent();
870
982
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainFiltersDtoFromJSON)(jsonValue); })];
871
983
  }
872
984
  });
873
985
  });
874
986
  };
875
987
  /**
876
- * Returns available filter options for the seller domain inventory.
988
+ * Returns available filter options for the seller domain inventory. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
877
989
  * Get domain filters
878
990
  */
879
991
  DomainsApi.prototype.getDomainFilters = function (initOverrides) {
@@ -891,44 +1003,52 @@ var DomainsApi = /** @class */ (function (_super) {
891
1003
  });
892
1004
  };
893
1005
  /**
894
- * Returns the list of currencies available for the current domain filter selection.
1006
+ * Returns the list of currencies available for the current domain filter selection. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
895
1007
  * Get domain filter currencies
896
1008
  */
897
1009
  DomainsApi.prototype.getDomainFiltersCurrenciesRaw = function (requestParameters, initOverrides) {
898
1010
  return __awaiter(this, void 0, void 0, function () {
899
- var queryParameters, headerParameters, token, tokenString, response;
900
- return __generator(this, function (_a) {
901
- switch (_a.label) {
1011
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1012
+ return __generator(this, function (_c) {
1013
+ switch (_c.label) {
902
1014
  case 0:
903
1015
  queryParameters = {};
904
1016
  if (requestParameters['filter'] != null) {
905
1017
  queryParameters['filter'] = requestParameters['filter'];
906
1018
  }
907
1019
  headerParameters = {};
908
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1020
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1021
+ _a = headerParameters;
1022
+ _b = "apikey";
1023
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1024
+ case 1:
1025
+ _a[_b] = _c.sent(); // api_key authentication
1026
+ _c.label = 2;
1027
+ case 2:
1028
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
909
1029
  token = this.configuration.accessToken;
910
1030
  return [4 /*yield*/, token("bearer", [])];
911
- case 1:
912
- tokenString = _a.sent();
1031
+ case 3:
1032
+ tokenString = _c.sent();
913
1033
  if (tokenString) {
914
1034
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
915
1035
  }
916
- _a.label = 2;
917
- case 2: return [4 /*yield*/, this.request({
1036
+ _c.label = 4;
1037
+ case 4: return [4 /*yield*/, this.request({
918
1038
  path: "/private/domains/filters/currencies",
919
1039
  method: 'GET',
920
1040
  headers: headerParameters,
921
1041
  query: queryParameters,
922
1042
  }, initOverrides)];
923
- case 3:
924
- response = _a.sent();
1043
+ case 5:
1044
+ response = _c.sent();
925
1045
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
926
1046
  }
927
1047
  });
928
1048
  });
929
1049
  };
930
1050
  /**
931
- * Returns the list of currencies available for the current domain filter selection.
1051
+ * Returns the list of currencies available for the current domain filter selection. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
932
1052
  * Get domain filter currencies
933
1053
  */
934
1054
  DomainsApi.prototype.getDomainFiltersCurrencies = function () {
@@ -947,44 +1067,52 @@ var DomainsApi = /** @class */ (function (_super) {
947
1067
  });
948
1068
  };
949
1069
  /**
950
- * Returns domain transfer information.
1070
+ * Returns domain transfer information. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
951
1071
  * Get domain transfer
952
1072
  */
953
1073
  DomainsApi.prototype.getDomainTransferRaw = function (requestParameters, initOverrides) {
954
1074
  return __awaiter(this, void 0, void 0, function () {
955
- var queryParameters, headerParameters, token, tokenString, response;
956
- return __generator(this, function (_a) {
957
- switch (_a.label) {
1075
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1076
+ return __generator(this, function (_c) {
1077
+ switch (_c.label) {
958
1078
  case 0:
959
1079
  if (requestParameters['transferId'] == null) {
960
1080
  throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getDomainTransfer().');
961
1081
  }
962
1082
  queryParameters = {};
963
1083
  headerParameters = {};
964
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1084
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1085
+ _a = headerParameters;
1086
+ _b = "apikey";
1087
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1088
+ case 1:
1089
+ _a[_b] = _c.sent(); // api_key authentication
1090
+ _c.label = 2;
1091
+ case 2:
1092
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
965
1093
  token = this.configuration.accessToken;
966
1094
  return [4 /*yield*/, token("bearer", [])];
967
- case 1:
968
- tokenString = _a.sent();
1095
+ case 3:
1096
+ tokenString = _c.sent();
969
1097
  if (tokenString) {
970
1098
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
971
1099
  }
972
- _a.label = 2;
973
- case 2: return [4 /*yield*/, this.request({
1100
+ _c.label = 4;
1101
+ case 4: return [4 /*yield*/, this.request({
974
1102
  path: "/private/domains/transfers/{transferId}".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
975
1103
  method: 'GET',
976
1104
  headers: headerParameters,
977
1105
  query: queryParameters,
978
1106
  }, initOverrides)];
979
- case 3:
980
- response = _a.sent();
1107
+ case 5:
1108
+ response = _c.sent();
981
1109
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerDomainTransferDtoFromJSON)(jsonValue); })];
982
1110
  }
983
1111
  });
984
1112
  });
985
1113
  };
986
1114
  /**
987
- * Returns domain transfer information.
1115
+ * Returns domain transfer information. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
988
1116
  * Get domain transfer
989
1117
  */
990
1118
  DomainsApi.prototype.getDomainTransfer = function (requestParameters, initOverrides) {
@@ -1002,44 +1130,52 @@ var DomainsApi = /** @class */ (function (_super) {
1002
1130
  });
1003
1131
  };
1004
1132
  /**
1005
- * Returns the public landing page URL for the specified domain.
1133
+ * Returns the public landing page URL for the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1006
1134
  * Get domain URL
1007
1135
  */
1008
1136
  DomainsApi.prototype.getDomainUrlRaw = function (requestParameters, initOverrides) {
1009
1137
  return __awaiter(this, void 0, void 0, function () {
1010
- var queryParameters, headerParameters, token, tokenString, response;
1011
- return __generator(this, function (_a) {
1012
- switch (_a.label) {
1138
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1139
+ return __generator(this, function (_c) {
1140
+ switch (_c.label) {
1013
1141
  case 0:
1014
1142
  if (requestParameters['domainId'] == null) {
1015
1143
  throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomainUrl().');
1016
1144
  }
1017
1145
  queryParameters = {};
1018
1146
  headerParameters = {};
1019
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1147
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1148
+ _a = headerParameters;
1149
+ _b = "apikey";
1150
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1151
+ case 1:
1152
+ _a[_b] = _c.sent(); // api_key authentication
1153
+ _c.label = 2;
1154
+ case 2:
1155
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
1020
1156
  token = this.configuration.accessToken;
1021
1157
  return [4 /*yield*/, token("bearer", [])];
1022
- case 1:
1023
- tokenString = _a.sent();
1158
+ case 3:
1159
+ tokenString = _c.sent();
1024
1160
  if (tokenString) {
1025
1161
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1026
1162
  }
1027
- _a.label = 2;
1028
- case 2: return [4 /*yield*/, this.request({
1163
+ _c.label = 4;
1164
+ case 4: return [4 /*yield*/, this.request({
1029
1165
  path: "/private/domains/{domainId}/url".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
1030
1166
  method: 'GET',
1031
1167
  headers: headerParameters,
1032
1168
  query: queryParameters,
1033
1169
  }, initOverrides)];
1034
- case 3:
1035
- response = _a.sent();
1170
+ case 5:
1171
+ response = _c.sent();
1036
1172
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainUrlDtoFromJSON)(jsonValue); })];
1037
1173
  }
1038
1174
  });
1039
1175
  });
1040
1176
  };
1041
1177
  /**
1042
- * Returns the public landing page URL for the specified domain.
1178
+ * Returns the public landing page URL for the specified domain. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1043
1179
  * Get domain URL
1044
1180
  */
1045
1181
  DomainsApi.prototype.getDomainUrl = function (requestParameters, initOverrides) {
@@ -1057,14 +1193,14 @@ var DomainsApi = /** @class */ (function (_super) {
1057
1193
  });
1058
1194
  };
1059
1195
  /**
1060
- * Lists domains for the seller account.
1196
+ * Lists domains for the seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1061
1197
  * List domains
1062
1198
  */
1063
1199
  DomainsApi.prototype.listRaw = function (requestParameters, initOverrides) {
1064
1200
  return __awaiter(this, void 0, void 0, function () {
1065
- var queryParameters, headerParameters, token, tokenString, response;
1066
- return __generator(this, function (_a) {
1067
- switch (_a.label) {
1201
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1202
+ return __generator(this, function (_c) {
1203
+ switch (_c.label) {
1068
1204
  case 0:
1069
1205
  queryParameters = {};
1070
1206
  if (requestParameters['filter'] != null) {
@@ -1098,30 +1234,38 @@ var DomainsApi = /** @class */ (function (_super) {
1098
1234
  queryParameters['filter[name]'] = requestParameters['filterName'];
1099
1235
  }
1100
1236
  headerParameters = {};
1101
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1237
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1238
+ _a = headerParameters;
1239
+ _b = "apikey";
1240
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1241
+ case 1:
1242
+ _a[_b] = _c.sent(); // api_key authentication
1243
+ _c.label = 2;
1244
+ case 2:
1245
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
1102
1246
  token = this.configuration.accessToken;
1103
1247
  return [4 /*yield*/, token("bearer", [])];
1104
- case 1:
1105
- tokenString = _a.sent();
1248
+ case 3:
1249
+ tokenString = _c.sent();
1106
1250
  if (tokenString) {
1107
1251
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1108
1252
  }
1109
- _a.label = 2;
1110
- case 2: return [4 /*yield*/, this.request({
1253
+ _c.label = 4;
1254
+ case 4: return [4 /*yield*/, this.request({
1111
1255
  path: "/private/domains",
1112
1256
  method: 'GET',
1113
1257
  headers: headerParameters,
1114
1258
  query: queryParameters,
1115
1259
  }, initOverrides)];
1116
- case 3:
1117
- response = _a.sent();
1260
+ case 5:
1261
+ response = _c.sent();
1118
1262
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response2FromJSON)(jsonValue); })];
1119
1263
  }
1120
1264
  });
1121
1265
  });
1122
1266
  };
1123
1267
  /**
1124
- * Lists domains for the seller account.
1268
+ * Lists domains for the seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1125
1269
  * List domains
1126
1270
  */
1127
1271
  DomainsApi.prototype.list = function () {
@@ -1140,14 +1284,14 @@ var DomainsApi = /** @class */ (function (_super) {
1140
1284
  });
1141
1285
  };
1142
1286
  /**
1143
- * Creates and starts an auction for the specified verified domain.
1287
+ * Creates and starts an auction for the specified verified domain. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
1144
1288
  * Start domain auction
1145
1289
  */
1146
1290
  DomainsApi.prototype.startAuctionRaw = function (requestParameters, initOverrides) {
1147
1291
  return __awaiter(this, void 0, void 0, function () {
1148
- var queryParameters, headerParameters, token, tokenString, response;
1149
- return __generator(this, function (_a) {
1150
- switch (_a.label) {
1292
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1293
+ return __generator(this, function (_c) {
1294
+ switch (_c.label) {
1151
1295
  case 0:
1152
1296
  if (requestParameters['domainId'] == null) {
1153
1297
  throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling startAuction().');
@@ -1158,31 +1302,39 @@ var DomainsApi = /** @class */ (function (_super) {
1158
1302
  queryParameters = {};
1159
1303
  headerParameters = {};
1160
1304
  headerParameters['Content-Type'] = 'application/json';
1161
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1305
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1306
+ _a = headerParameters;
1307
+ _b = "apikey";
1308
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1309
+ case 1:
1310
+ _a[_b] = _c.sent(); // api_key authentication
1311
+ _c.label = 2;
1312
+ case 2:
1313
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
1162
1314
  token = this.configuration.accessToken;
1163
1315
  return [4 /*yield*/, token("bearer", [])];
1164
- case 1:
1165
- tokenString = _a.sent();
1316
+ case 3:
1317
+ tokenString = _c.sent();
1166
1318
  if (tokenString) {
1167
1319
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1168
1320
  }
1169
- _a.label = 2;
1170
- case 2: return [4 /*yield*/, this.request({
1321
+ _c.label = 4;
1322
+ case 4: return [4 /*yield*/, this.request({
1171
1323
  path: "/private/domains/{domainId}/start-auction".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
1172
1324
  method: 'POST',
1173
1325
  headers: headerParameters,
1174
1326
  query: queryParameters,
1175
1327
  body: (0, index_1.StartAuctionInputToJSON)(requestParameters['startAuctionInput']),
1176
1328
  }, initOverrides)];
1177
- case 3:
1178
- response = _a.sent();
1329
+ case 5:
1330
+ response = _c.sent();
1179
1331
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
1180
1332
  }
1181
1333
  });
1182
1334
  });
1183
1335
  };
1184
1336
  /**
1185
- * Creates and starts an auction for the specified verified domain.
1337
+ * Creates and starts an auction for the specified verified domain. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
1186
1338
  * Start domain auction
1187
1339
  */
1188
1340
  DomainsApi.prototype.startAuction = function (requestParameters, initOverrides) {
@@ -1198,14 +1350,14 @@ var DomainsApi = /** @class */ (function (_super) {
1198
1350
  });
1199
1351
  };
1200
1352
  /**
1201
- * Updates pricing, landing page, and other settings for a single domain.
1353
+ * Updates pricing, landing page, and other settings for a single domain. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
1202
1354
  * Update domain
1203
1355
  */
1204
1356
  DomainsApi.prototype.updateRaw = function (requestParameters, initOverrides) {
1205
1357
  return __awaiter(this, void 0, void 0, function () {
1206
- var queryParameters, headerParameters, token, tokenString, response;
1207
- return __generator(this, function (_a) {
1208
- switch (_a.label) {
1358
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1359
+ return __generator(this, function (_c) {
1360
+ switch (_c.label) {
1209
1361
  case 0:
1210
1362
  if (requestParameters['domainId'] == null) {
1211
1363
  throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling update().');
@@ -1216,31 +1368,39 @@ var DomainsApi = /** @class */ (function (_super) {
1216
1368
  queryParameters = {};
1217
1369
  headerParameters = {};
1218
1370
  headerParameters['Content-Type'] = 'application/json';
1219
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1371
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1372
+ _a = headerParameters;
1373
+ _b = "apikey";
1374
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1375
+ case 1:
1376
+ _a[_b] = _c.sent(); // api_key authentication
1377
+ _c.label = 2;
1378
+ case 2:
1379
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
1220
1380
  token = this.configuration.accessToken;
1221
1381
  return [4 /*yield*/, token("bearer", [])];
1222
- case 1:
1223
- tokenString = _a.sent();
1382
+ case 3:
1383
+ tokenString = _c.sent();
1224
1384
  if (tokenString) {
1225
1385
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1226
1386
  }
1227
- _a.label = 2;
1228
- case 2: return [4 /*yield*/, this.request({
1387
+ _c.label = 4;
1388
+ case 4: return [4 /*yield*/, this.request({
1229
1389
  path: "/private/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
1230
1390
  method: 'PATCH',
1231
1391
  headers: headerParameters,
1232
1392
  query: queryParameters,
1233
1393
  body: (0, index_1.UpdateDomainInputToJSON)(requestParameters['updateDomainInput']),
1234
1394
  }, initOverrides)];
1235
- case 3:
1236
- response = _a.sent();
1395
+ case 5:
1396
+ response = _c.sent();
1237
1397
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
1238
1398
  }
1239
1399
  });
1240
1400
  });
1241
1401
  };
1242
1402
  /**
1243
- * Updates pricing, landing page, and other settings for a single domain.
1403
+ * Updates pricing, landing page, and other settings for a single domain. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
1244
1404
  * Update domain
1245
1405
  */
1246
1406
  DomainsApi.prototype.update = function (requestParameters, initOverrides) {
@@ -1256,14 +1416,14 @@ var DomainsApi = /** @class */ (function (_super) {
1256
1416
  });
1257
1417
  };
1258
1418
  /**
1259
- * Updates the authorization code for a domain transfer in progress.
1419
+ * Updates the authorization code for a domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
1260
1420
  * Update domain transfer auth code
1261
1421
  */
1262
1422
  DomainsApi.prototype.updateDomainTransferAuthCodeRaw = function (requestParameters, initOverrides) {
1263
1423
  return __awaiter(this, void 0, void 0, function () {
1264
- var queryParameters, headerParameters, token, tokenString, response;
1265
- return __generator(this, function (_a) {
1266
- switch (_a.label) {
1424
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1425
+ return __generator(this, function (_c) {
1426
+ switch (_c.label) {
1267
1427
  case 0:
1268
1428
  if (requestParameters['transferId'] == null) {
1269
1429
  throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferAuthCode().');
@@ -1274,31 +1434,39 @@ var DomainsApi = /** @class */ (function (_super) {
1274
1434
  queryParameters = {};
1275
1435
  headerParameters = {};
1276
1436
  headerParameters['Content-Type'] = 'application/json';
1277
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1437
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1438
+ _a = headerParameters;
1439
+ _b = "apikey";
1440
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1441
+ case 1:
1442
+ _a[_b] = _c.sent(); // api_key authentication
1443
+ _c.label = 2;
1444
+ case 2:
1445
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
1278
1446
  token = this.configuration.accessToken;
1279
1447
  return [4 /*yield*/, token("bearer", [])];
1280
- case 1:
1281
- tokenString = _a.sent();
1448
+ case 3:
1449
+ tokenString = _c.sent();
1282
1450
  if (tokenString) {
1283
1451
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1284
1452
  }
1285
- _a.label = 2;
1286
- case 2: return [4 /*yield*/, this.request({
1453
+ _c.label = 4;
1454
+ case 4: return [4 /*yield*/, this.request({
1287
1455
  path: "/private/domains/transfers/{transferId}/auth-code".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
1288
1456
  method: 'PATCH',
1289
1457
  headers: headerParameters,
1290
1458
  query: queryParameters,
1291
1459
  body: (0, index_1.UpdateDomainTransferAuthCodeInputToJSON)(requestParameters['updateDomainTransferAuthCodeInput']),
1292
1460
  }, initOverrides)];
1293
- case 3:
1294
- response = _a.sent();
1461
+ case 5:
1462
+ response = _c.sent();
1295
1463
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
1296
1464
  }
1297
1465
  });
1298
1466
  });
1299
1467
  };
1300
1468
  /**
1301
- * Updates the authorization code for a domain transfer in progress.
1469
+ * Updates the authorization code for a domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
1302
1470
  * Update domain transfer auth code
1303
1471
  */
1304
1472
  DomainsApi.prototype.updateDomainTransferAuthCode = function (requestParameters, initOverrides) {
@@ -1314,14 +1482,14 @@ var DomainsApi = /** @class */ (function (_super) {
1314
1482
  });
1315
1483
  };
1316
1484
  /**
1317
- * Updates the IPS tag for a .uk domain transfer in progress.
1485
+ * Updates the IPS tag for a .uk domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
1318
1486
  * Update domain transfer IPS tag
1319
1487
  */
1320
1488
  DomainsApi.prototype.updateDomainTransferIpsTagRaw = function (requestParameters, initOverrides) {
1321
1489
  return __awaiter(this, void 0, void 0, function () {
1322
- var queryParameters, headerParameters, token, tokenString, response;
1323
- return __generator(this, function (_a) {
1324
- switch (_a.label) {
1490
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1491
+ return __generator(this, function (_c) {
1492
+ switch (_c.label) {
1325
1493
  case 0:
1326
1494
  if (requestParameters['transferId'] == null) {
1327
1495
  throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferIpsTag().');
@@ -1332,31 +1500,39 @@ var DomainsApi = /** @class */ (function (_super) {
1332
1500
  queryParameters = {};
1333
1501
  headerParameters = {};
1334
1502
  headerParameters['Content-Type'] = 'application/json';
1335
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1503
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1504
+ _a = headerParameters;
1505
+ _b = "apikey";
1506
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1507
+ case 1:
1508
+ _a[_b] = _c.sent(); // api_key authentication
1509
+ _c.label = 2;
1510
+ case 2:
1511
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
1336
1512
  token = this.configuration.accessToken;
1337
1513
  return [4 /*yield*/, token("bearer", [])];
1338
- case 1:
1339
- tokenString = _a.sent();
1514
+ case 3:
1515
+ tokenString = _c.sent();
1340
1516
  if (tokenString) {
1341
1517
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1342
1518
  }
1343
- _a.label = 2;
1344
- case 2: return [4 /*yield*/, this.request({
1519
+ _c.label = 4;
1520
+ case 4: return [4 /*yield*/, this.request({
1345
1521
  path: "/private/domains/transfers/{transferId}/ips-tag".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
1346
1522
  method: 'PATCH',
1347
1523
  headers: headerParameters,
1348
1524
  query: queryParameters,
1349
1525
  body: (0, index_1.UpdateDomainTransferIpsTagInputToJSON)(requestParameters['updateDomainTransferIpsTagInput']),
1350
1526
  }, initOverrides)];
1351
- case 3:
1352
- response = _a.sent();
1527
+ case 5:
1528
+ response = _c.sent();
1353
1529
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
1354
1530
  }
1355
1531
  });
1356
1532
  });
1357
1533
  };
1358
1534
  /**
1359
- * Updates the IPS tag for a .uk domain transfer in progress.
1535
+ * Updates the IPS tag for a .uk domain transfer in progress. **API key scope required:** `TRANSFERS_WRITE`. Requests authenticated with a seller session do not need any scope.
1360
1536
  * Update domain transfer IPS tag
1361
1537
  */
1362
1538
  DomainsApi.prototype.updateDomainTransferIpsTag = function (requestParameters, initOverrides) {