@randock/nameshift-api-client 0.0.447 → 0.0.449

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 (87) hide show
  1. package/.openapi-generator/FILES +6 -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 +26 -0
  8. package/dist/apis/AdminApi.js +106 -0
  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/MarketApi.d.ts +2 -2
  26. package/dist/apis/MarketApi.js +2 -2
  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 +1 -0
  38. package/dist/apis/index.js +1 -0
  39. package/dist/models/AdminDomainListItemDto.d.ts +6 -0
  40. package/dist/models/AdminDomainListItemDto.js +4 -0
  41. package/dist/models/ApiKeyDto.d.ts +107 -0
  42. package/dist/models/ApiKeyDto.js +114 -0
  43. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  44. package/dist/models/ApiKeyScopeDto.js +98 -0
  45. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  46. package/dist/models/CreateApiKeyInput.js +96 -0
  47. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  48. package/dist/models/CreatedApiKeyDto.js +118 -0
  49. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
  50. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
  51. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
  52. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  53. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
  54. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
  55. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  56. package/dist/models/UpdateApiKeyInput.js +90 -0
  57. package/dist/models/index.d.ts +5 -0
  58. package/dist/models/index.js +5 -0
  59. package/package.json +1 -1
  60. package/src/apis/APIKeysApi.ts +271 -0
  61. package/src/apis/AccountsApi.ts +108 -36
  62. package/src/apis/AdminApi.ts +92 -0
  63. package/src/apis/AuctionsApi.ts +12 -4
  64. package/src/apis/BankAccountsApi.ts +30 -10
  65. package/src/apis/ChallengesApi.ts +18 -6
  66. package/src/apis/DomainTransfersApi.ts +6 -2
  67. package/src/apis/DomainsApi.ts +132 -44
  68. package/src/apis/EppApi.ts +6 -2
  69. package/src/apis/InvoicesApi.ts +18 -6
  70. package/src/apis/LeadsApi.ts +114 -38
  71. package/src/apis/MarketApi.ts +2 -2
  72. package/src/apis/NotificationsApi.ts +24 -8
  73. package/src/apis/StatsApi.ts +42 -14
  74. package/src/apis/SubscriptionsApi.ts +6 -2
  75. package/src/apis/TasksApi.ts +18 -6
  76. package/src/apis/UsersApi.ts +30 -10
  77. package/src/apis/index.ts +1 -0
  78. package/src/models/AdminDomainListItemDto.ts +9 -0
  79. package/src/models/ApiKeyDto.ts +162 -0
  80. package/src/models/ApiKeyScopeDto.ts +126 -0
  81. package/src/models/CreateApiKeyInput.ts +125 -0
  82. package/src/models/CreatedApiKeyDto.ts +171 -0
  83. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  84. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  85. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  86. package/src/models/UpdateApiKeyInput.ts +115 -0
  87. package/src/models/index.ts +5 -0
@@ -76,14 +76,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Adds a new bank account for payouts to the current seller account.
79
+ * 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.
80
80
  * Create bank account
81
81
  */
82
82
  BankAccountsApi.prototype.createBankAccountRaw = 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['accountId'] == null) {
89
89
  throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling createBankAccount().');
@@ -94,31 +94,39 @@ var BankAccountsApi = /** @class */ (function (_super) {
94
94
  queryParameters = {};
95
95
  headerParameters = {};
96
96
  headerParameters['Content-Type'] = 'application/json';
97
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
97
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
98
+ _a = headerParameters;
99
+ _b = "apikey";
100
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
101
+ case 1:
102
+ _a[_b] = _c.sent(); // api_key authentication
103
+ _c.label = 2;
104
+ case 2:
105
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
98
106
  token = this.configuration.accessToken;
99
107
  return [4 /*yield*/, token("bearer", [])];
100
- case 1:
101
- tokenString = _a.sent();
108
+ case 3:
109
+ tokenString = _c.sent();
102
110
  if (tokenString) {
103
111
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
104
112
  }
105
- _a.label = 2;
106
- case 2: return [4 /*yield*/, this.request({
113
+ _c.label = 4;
114
+ case 4: return [4 /*yield*/, this.request({
107
115
  path: "/private/accounts/{accountId}/bank-accounts".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
108
116
  method: 'POST',
109
117
  headers: headerParameters,
110
118
  query: queryParameters,
111
119
  body: (0, index_1.CreateBankAccountInputToJSON)(requestParameters['createBankAccountInput']),
112
120
  }, initOverrides)];
113
- case 3:
114
- response = _a.sent();
121
+ case 5:
122
+ response = _c.sent();
115
123
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
116
124
  }
117
125
  });
118
126
  });
119
127
  };
120
128
  /**
121
- * Adds a new bank account for payouts to the current seller account.
129
+ * 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.
122
130
  * Create bank account
123
131
  */
124
132
  BankAccountsApi.prototype.createBankAccount = function (requestParameters, initOverrides) {
@@ -134,14 +142,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
134
142
  });
135
143
  };
136
144
  /**
137
- * Removes a bank account from the current seller account.
145
+ * 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.
138
146
  * Delete bank account
139
147
  */
140
148
  BankAccountsApi.prototype.deleteBankAccountRaw = function (requestParameters, initOverrides) {
141
149
  return __awaiter(this, void 0, void 0, function () {
142
- var queryParameters, headerParameters, token, tokenString, response;
143
- return __generator(this, function (_a) {
144
- switch (_a.label) {
150
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
151
+ return __generator(this, function (_c) {
152
+ switch (_c.label) {
145
153
  case 0:
146
154
  if (requestParameters['accountId'] == null) {
147
155
  throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling deleteBankAccount().');
@@ -151,30 +159,38 @@ var BankAccountsApi = /** @class */ (function (_super) {
151
159
  }
152
160
  queryParameters = {};
153
161
  headerParameters = {};
154
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
162
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
163
+ _a = headerParameters;
164
+ _b = "apikey";
165
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
166
+ case 1:
167
+ _a[_b] = _c.sent(); // api_key authentication
168
+ _c.label = 2;
169
+ case 2:
170
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
155
171
  token = this.configuration.accessToken;
156
172
  return [4 /*yield*/, token("bearer", [])];
157
- case 1:
158
- tokenString = _a.sent();
173
+ case 3:
174
+ tokenString = _c.sent();
159
175
  if (tokenString) {
160
176
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
161
177
  }
162
- _a.label = 2;
163
- case 2: return [4 /*yield*/, this.request({
178
+ _c.label = 4;
179
+ case 4: return [4 /*yield*/, this.request({
164
180
  path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
165
181
  method: 'DELETE',
166
182
  headers: headerParameters,
167
183
  query: queryParameters,
168
184
  }, initOverrides)];
169
- case 3:
170
- response = _a.sent();
185
+ case 5:
186
+ response = _c.sent();
171
187
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
172
188
  }
173
189
  });
174
190
  });
175
191
  };
176
192
  /**
177
- * Removes a bank account from the current seller account.
193
+ * 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.
178
194
  * Delete bank account
179
195
  */
180
196
  BankAccountsApi.prototype.deleteBankAccount = function (requestParameters, initOverrides) {
@@ -190,14 +206,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
190
206
  });
191
207
  };
192
208
  /**
193
- * Returns bank account details to use for microdeposit verification.
209
+ * 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.
194
210
  * Get microdeposit bank account details
195
211
  */
196
212
  BankAccountsApi.prototype.getBankAccountToUseForMicrodepositRaw = function (requestParameters, initOverrides) {
197
213
  return __awaiter(this, void 0, void 0, function () {
198
- var queryParameters, headerParameters, token, tokenString, response;
199
- return __generator(this, function (_a) {
200
- switch (_a.label) {
214
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
215
+ return __generator(this, function (_c) {
216
+ switch (_c.label) {
201
217
  case 0:
202
218
  if (requestParameters['bankAccountId'] == null) {
203
219
  throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().');
@@ -207,30 +223,38 @@ var BankAccountsApi = /** @class */ (function (_super) {
207
223
  }
208
224
  queryParameters = {};
209
225
  headerParameters = {};
210
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
226
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
227
+ _a = headerParameters;
228
+ _b = "apikey";
229
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
230
+ case 1:
231
+ _a[_b] = _c.sent(); // api_key authentication
232
+ _c.label = 2;
233
+ case 2:
234
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
211
235
  token = this.configuration.accessToken;
212
236
  return [4 /*yield*/, token("bearer", [])];
213
- case 1:
214
- tokenString = _a.sent();
237
+ case 3:
238
+ tokenString = _c.sent();
215
239
  if (tokenString) {
216
240
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
217
241
  }
218
- _a.label = 2;
219
- case 2: return [4 /*yield*/, this.request({
242
+ _c.label = 4;
243
+ case 4: return [4 /*yield*/, this.request({
220
244
  path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit".replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))).replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
221
245
  method: 'GET',
222
246
  headers: headerParameters,
223
247
  query: queryParameters,
224
248
  }, initOverrides)];
225
- case 3:
226
- response = _a.sent();
249
+ case 5:
250
+ response = _c.sent();
227
251
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AirwallexBankAccountDetailsDtoFromJSON)(jsonValue); })];
228
252
  }
229
253
  });
230
254
  });
231
255
  };
232
256
  /**
233
- * Returns bank account details to use for microdeposit verification.
257
+ * 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.
234
258
  * Get microdeposit bank account details
235
259
  */
236
260
  BankAccountsApi.prototype.getBankAccountToUseForMicrodeposit = function (requestParameters, initOverrides) {
@@ -248,44 +272,52 @@ var BankAccountsApi = /** @class */ (function (_super) {
248
272
  });
249
273
  };
250
274
  /**
251
- * Returns all bank accounts configured for the current seller account.
275
+ * 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.
252
276
  * List bank accounts
253
277
  */
254
278
  BankAccountsApi.prototype.listBankAccountsRaw = function (requestParameters, initOverrides) {
255
279
  return __awaiter(this, void 0, void 0, function () {
256
- var queryParameters, headerParameters, token, tokenString, response;
257
- return __generator(this, function (_a) {
258
- switch (_a.label) {
280
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
281
+ return __generator(this, function (_c) {
282
+ switch (_c.label) {
259
283
  case 0:
260
284
  if (requestParameters['accountId'] == null) {
261
285
  throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling listBankAccounts().');
262
286
  }
263
287
  queryParameters = {};
264
288
  headerParameters = {};
265
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
289
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
290
+ _a = headerParameters;
291
+ _b = "apikey";
292
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
293
+ case 1:
294
+ _a[_b] = _c.sent(); // api_key authentication
295
+ _c.label = 2;
296
+ case 2:
297
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
266
298
  token = this.configuration.accessToken;
267
299
  return [4 /*yield*/, token("bearer", [])];
268
- case 1:
269
- tokenString = _a.sent();
300
+ case 3:
301
+ tokenString = _c.sent();
270
302
  if (tokenString) {
271
303
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
272
304
  }
273
- _a.label = 2;
274
- case 2: return [4 /*yield*/, this.request({
305
+ _c.label = 4;
306
+ case 4: return [4 /*yield*/, this.request({
275
307
  path: "/private/accounts/{accountId}/bank-accounts".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
276
308
  method: 'GET',
277
309
  headers: headerParameters,
278
310
  query: queryParameters,
279
311
  }, initOverrides)];
280
- case 3:
281
- response = _a.sent();
312
+ case 5:
313
+ response = _c.sent();
282
314
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountBankAccountDtoFromJSON); })];
283
315
  }
284
316
  });
285
317
  });
286
318
  };
287
319
  /**
288
- * Returns all bank accounts configured for the current seller account.
320
+ * 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.
289
321
  * List bank accounts
290
322
  */
291
323
  BankAccountsApi.prototype.listBankAccounts = function (requestParameters, initOverrides) {
@@ -303,14 +335,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
303
335
  });
304
336
  };
305
337
  /**
306
- * Sets the specified bank account as the primary payout destination.
338
+ * 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.
307
339
  * Set primary bank account
308
340
  */
309
341
  BankAccountsApi.prototype.makeBankAccountPrimaryRaw = function (requestParameters, initOverrides) {
310
342
  return __awaiter(this, void 0, void 0, function () {
311
- var queryParameters, headerParameters, token, tokenString, response;
312
- return __generator(this, function (_a) {
313
- switch (_a.label) {
343
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
344
+ return __generator(this, function (_c) {
345
+ switch (_c.label) {
314
346
  case 0:
315
347
  if (requestParameters['accountId'] == null) {
316
348
  throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling makeBankAccountPrimary().');
@@ -320,30 +352,38 @@ var BankAccountsApi = /** @class */ (function (_super) {
320
352
  }
321
353
  queryParameters = {};
322
354
  headerParameters = {};
323
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
355
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
356
+ _a = headerParameters;
357
+ _b = "apikey";
358
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
359
+ case 1:
360
+ _a[_b] = _c.sent(); // api_key authentication
361
+ _c.label = 2;
362
+ case 2:
363
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
324
364
  token = this.configuration.accessToken;
325
365
  return [4 /*yield*/, token("bearer", [])];
326
- case 1:
327
- tokenString = _a.sent();
366
+ case 3:
367
+ tokenString = _c.sent();
328
368
  if (tokenString) {
329
369
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
330
370
  }
331
- _a.label = 2;
332
- case 2: return [4 /*yield*/, this.request({
371
+ _c.label = 4;
372
+ case 4: return [4 /*yield*/, this.request({
333
373
  path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/make-primary".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
334
374
  method: 'POST',
335
375
  headers: headerParameters,
336
376
  query: queryParameters,
337
377
  }, initOverrides)];
338
- case 3:
339
- response = _a.sent();
378
+ case 5:
379
+ response = _c.sent();
340
380
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
341
381
  }
342
382
  });
343
383
  });
344
384
  };
345
385
  /**
346
- * Sets the specified bank account as the primary payout destination.
386
+ * 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.
347
387
  * Set primary bank account
348
388
  */
349
389
  BankAccountsApi.prototype.makeBankAccountPrimary = function (requestParameters, initOverrides) {
@@ -20,32 +20,32 @@ export interface ChallengesApiCollectChallengeRewardRequest {
20
20
  */
21
21
  export declare class ChallengesApi extends runtime.BaseAPI {
22
22
  /**
23
- * Collects the reward points for a completed challenge progress entry.
23
+ * Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
24
24
  * Collect challenge reward
25
25
  */
26
26
  collectChallengeRewardRaw(requestParameters: ChallengesApiCollectChallengeRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
27
27
  /**
28
- * Collects the reward points for a completed challenge progress entry.
28
+ * Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
29
29
  * Collect challenge reward
30
30
  */
31
31
  collectChallengeReward(requestParameters: ChallengesApiCollectChallengeRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
32
32
  /**
33
- * Returns the list of challenge reward usages for the current seller account.
33
+ * Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
34
34
  * Get challenge reward usages
35
35
  */
36
36
  getAccountChallengeRewardUsagesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAccountChallengeRewardUsagesListDto>>;
37
37
  /**
38
- * Returns the list of challenge reward usages for the current seller account.
38
+ * Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
39
39
  * Get challenge reward usages
40
40
  */
41
41
  getAccountChallengeRewardUsages(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAccountChallengeRewardUsagesListDto>;
42
42
  /**
43
- * Lists active challenges for the seller account.
43
+ * Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
44
44
  * Get seller challenges
45
45
  */
46
46
  getChallengesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSellerChallengesListDto>>;
47
47
  /**
48
- * Lists active challenges for the seller account.
48
+ * Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
49
49
  * Get seller challenges
50
50
  */
51
51
  getChallenges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSellerChallengesListDto>;
@@ -76,14 +76,14 @@ var ChallengesApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Collects the reward points for a completed challenge progress entry.
79
+ * Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
80
80
  * Collect challenge reward
81
81
  */
82
82
  ChallengesApi.prototype.collectChallengeRewardRaw = 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['challengeId'] == null) {
89
89
  throw new runtime.RequiredError('challengeId', 'Required parameter "challengeId" was null or undefined when calling collectChallengeReward().');
@@ -93,30 +93,38 @@ var ChallengesApi = /** @class */ (function (_super) {
93
93
  }
94
94
  queryParameters = {};
95
95
  headerParameters = {};
96
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
96
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
97
+ _a = headerParameters;
98
+ _b = "apikey";
99
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
100
+ case 1:
101
+ _a[_b] = _c.sent(); // api_key authentication
102
+ _c.label = 2;
103
+ case 2:
104
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
97
105
  token = this.configuration.accessToken;
98
106
  return [4 /*yield*/, token("bearer", [])];
99
- case 1:
100
- tokenString = _a.sent();
107
+ case 3:
108
+ tokenString = _c.sent();
101
109
  if (tokenString) {
102
110
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
103
111
  }
104
- _a.label = 2;
105
- case 2: return [4 /*yield*/, this.request({
112
+ _c.label = 4;
113
+ case 4: return [4 /*yield*/, this.request({
106
114
  path: "/private/challenges/{challengeId}/progress/{progressId}/collect".replace("{".concat("challengeId", "}"), encodeURIComponent(String(requestParameters['challengeId']))).replace("{".concat("progressId", "}"), encodeURIComponent(String(requestParameters['progressId']))),
107
115
  method: 'POST',
108
116
  headers: headerParameters,
109
117
  query: queryParameters,
110
118
  }, initOverrides)];
111
- case 3:
112
- response = _a.sent();
119
+ case 5:
120
+ response = _c.sent();
113
121
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
114
122
  }
115
123
  });
116
124
  });
117
125
  };
118
126
  /**
119
- * Collects the reward points for a completed challenge progress entry.
127
+ * Collects the reward points for a completed challenge progress entry. **API key scope required:** `CHALLENGES_WRITE`. Requests authenticated with a seller session do not need any scope.
120
128
  * Collect challenge reward
121
129
  */
122
130
  ChallengesApi.prototype.collectChallengeReward = function (requestParameters, initOverrides) {
@@ -132,41 +140,49 @@ var ChallengesApi = /** @class */ (function (_super) {
132
140
  });
133
141
  };
134
142
  /**
135
- * Returns the list of challenge reward usages for the current seller account.
143
+ * Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
136
144
  * Get challenge reward usages
137
145
  */
138
146
  ChallengesApi.prototype.getAccountChallengeRewardUsagesRaw = function (initOverrides) {
139
147
  return __awaiter(this, void 0, void 0, function () {
140
- var queryParameters, headerParameters, token, tokenString, response;
141
- return __generator(this, function (_a) {
142
- switch (_a.label) {
148
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
149
+ return __generator(this, function (_c) {
150
+ switch (_c.label) {
143
151
  case 0:
144
152
  queryParameters = {};
145
153
  headerParameters = {};
146
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
154
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
155
+ _a = headerParameters;
156
+ _b = "apikey";
157
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
158
+ case 1:
159
+ _a[_b] = _c.sent(); // api_key authentication
160
+ _c.label = 2;
161
+ case 2:
162
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
147
163
  token = this.configuration.accessToken;
148
164
  return [4 /*yield*/, token("bearer", [])];
149
- case 1:
150
- tokenString = _a.sent();
165
+ case 3:
166
+ tokenString = _c.sent();
151
167
  if (tokenString) {
152
168
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
153
169
  }
154
- _a.label = 2;
155
- case 2: return [4 /*yield*/, this.request({
170
+ _c.label = 4;
171
+ case 4: return [4 /*yield*/, this.request({
156
172
  path: "/private/challenges/reward-usages",
157
173
  method: 'GET',
158
174
  headers: headerParameters,
159
175
  query: queryParameters,
160
176
  }, initOverrides)];
161
- case 3:
162
- response = _a.sent();
177
+ case 5:
178
+ response = _c.sent();
163
179
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAccountChallengeRewardUsagesListDtoFromJSON)(jsonValue); })];
164
180
  }
165
181
  });
166
182
  });
167
183
  };
168
184
  /**
169
- * Returns the list of challenge reward usages for the current seller account.
185
+ * Returns the list of challenge reward usages for the current seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
170
186
  * Get challenge reward usages
171
187
  */
172
188
  ChallengesApi.prototype.getAccountChallengeRewardUsages = function (initOverrides) {
@@ -184,41 +200,49 @@ var ChallengesApi = /** @class */ (function (_super) {
184
200
  });
185
201
  };
186
202
  /**
187
- * Lists active challenges for the seller account.
203
+ * Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
188
204
  * Get seller challenges
189
205
  */
190
206
  ChallengesApi.prototype.getChallengesRaw = function (initOverrides) {
191
207
  return __awaiter(this, void 0, void 0, function () {
192
- var queryParameters, headerParameters, token, tokenString, response;
193
- return __generator(this, function (_a) {
194
- switch (_a.label) {
208
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
209
+ return __generator(this, function (_c) {
210
+ switch (_c.label) {
195
211
  case 0:
196
212
  queryParameters = {};
197
213
  headerParameters = {};
198
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
214
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
215
+ _a = headerParameters;
216
+ _b = "apikey";
217
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
218
+ case 1:
219
+ _a[_b] = _c.sent(); // api_key authentication
220
+ _c.label = 2;
221
+ case 2:
222
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
199
223
  token = this.configuration.accessToken;
200
224
  return [4 /*yield*/, token("bearer", [])];
201
- case 1:
202
- tokenString = _a.sent();
225
+ case 3:
226
+ tokenString = _c.sent();
203
227
  if (tokenString) {
204
228
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
205
229
  }
206
- _a.label = 2;
207
- case 2: return [4 /*yield*/, this.request({
230
+ _c.label = 4;
231
+ case 4: return [4 /*yield*/, this.request({
208
232
  path: "/private/challenges",
209
233
  method: 'GET',
210
234
  headers: headerParameters,
211
235
  query: queryParameters,
212
236
  }, initOverrides)];
213
- case 3:
214
- response = _a.sent();
237
+ case 5:
238
+ response = _c.sent();
215
239
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetSellerChallengesListDtoFromJSON)(jsonValue); })];
216
240
  }
217
241
  });
218
242
  });
219
243
  };
220
244
  /**
221
- * Lists active challenges for the seller account.
245
+ * Lists active challenges for the seller account. **API key scope required:** `CHALLENGES_READ`. Requests authenticated with a seller session do not need any scope.
222
246
  * Get seller challenges
223
247
  */
224
248
  ChallengesApi.prototype.getChallenges = function (initOverrides) {
@@ -16,12 +16,12 @@ import type { DomainTransferTldInformationDto } from '../models/index';
16
16
  */
17
17
  export declare class DomainTransfersApi extends runtime.BaseAPI {
18
18
  /**
19
- * Returns TLD-specific transfer requirements and information for the current seller account.
19
+ * Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
20
20
  * Get domain transfer TLD information
21
21
  */
22
22
  getDomainTransferTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferTldInformationDto>>;
23
23
  /**
24
- * Returns TLD-specific transfer requirements and information for the current seller account.
24
+ * Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
25
25
  * Get domain transfer TLD information
26
26
  */
27
27
  getDomainTransferTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferTldInformationDto>;
@@ -76,41 +76,49 @@ var DomainTransfersApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Returns TLD-specific transfer requirements and information for the current seller account.
79
+ * Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
80
80
  * Get domain transfer TLD information
81
81
  */
82
82
  DomainTransfersApi.prototype.getDomainTransferTldsRaw = function (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
  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: return [4 /*yield*/, this.request({
106
+ _c.label = 4;
107
+ case 4: return [4 /*yield*/, this.request({
100
108
  path: "/private/domain-transfers/tlds",
101
109
  method: 'GET',
102
110
  headers: headerParameters,
103
111
  query: queryParameters,
104
112
  }, initOverrides)];
105
- case 3:
106
- response = _a.sent();
113
+ case 5:
114
+ response = _c.sent();
107
115
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTransferTldInformationDtoFromJSON)(jsonValue); })];
108
116
  }
109
117
  });
110
118
  });
111
119
  };
112
120
  /**
113
- * Returns TLD-specific transfer requirements and information for the current seller account.
121
+ * Returns TLD-specific transfer requirements and information for the current seller account. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
114
122
  * Get domain transfer TLD information
115
123
  */
116
124
  DomainTransfersApi.prototype.getDomainTransferTlds = function (initOverrides) {