@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,44 +76,52 @@ var TasksApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Returns task information for the seller.
79
+ * Returns task information for the seller. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
80
80
  * Get task details
81
81
  */
82
82
  TasksApi.prototype.getTaskRaw = 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['taskId'] == null) {
89
89
  throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling getTask().');
90
90
  }
91
91
  queryParameters = {};
92
92
  headerParameters = {};
93
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
93
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
94
+ _a = headerParameters;
95
+ _b = "apikey";
96
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
97
+ case 1:
98
+ _a[_b] = _c.sent(); // api_key authentication
99
+ _c.label = 2;
100
+ case 2:
101
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
94
102
  token = this.configuration.accessToken;
95
103
  return [4 /*yield*/, token("bearer", [])];
96
- case 1:
97
- tokenString = _a.sent();
104
+ case 3:
105
+ tokenString = _c.sent();
98
106
  if (tokenString) {
99
107
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
100
108
  }
101
- _a.label = 2;
102
- case 2: return [4 /*yield*/, this.request({
109
+ _c.label = 4;
110
+ case 4: return [4 /*yield*/, this.request({
103
111
  path: "/private/tasks/{taskId}".replace("{".concat("taskId", "}"), encodeURIComponent(String(requestParameters['taskId']))),
104
112
  method: 'GET',
105
113
  headers: headerParameters,
106
114
  query: queryParameters,
107
115
  }, initOverrides)];
108
- case 3:
109
- response = _a.sent();
116
+ case 5:
117
+ response = _c.sent();
110
118
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TaskDetailsDtoFromJSON)(jsonValue); })];
111
119
  }
112
120
  });
113
121
  });
114
122
  };
115
123
  /**
116
- * Returns task information for the seller.
124
+ * Returns task information for the seller. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
117
125
  * Get task details
118
126
  */
119
127
  TasksApi.prototype.getTask = function (requestParameters, initOverrides) {
@@ -131,14 +139,14 @@ var TasksApi = /** @class */ (function (_super) {
131
139
  });
132
140
  };
133
141
  /**
134
- * Lists tasks for the seller account.
142
+ * Lists tasks for the seller account. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
135
143
  * List seller tasks
136
144
  */
137
145
  TasksApi.prototype.listRaw = function (requestParameters, initOverrides) {
138
146
  return __awaiter(this, void 0, void 0, function () {
139
- var queryParameters, headerParameters, token, tokenString, response;
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
147
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
148
+ return __generator(this, function (_c) {
149
+ switch (_c.label) {
142
150
  case 0:
143
151
  queryParameters = {};
144
152
  if (requestParameters['filter'] != null) {
@@ -160,30 +168,38 @@ var TasksApi = /** @class */ (function (_super) {
160
168
  queryParameters['filter[priority]'] = requestParameters['filterPriority'];
161
169
  }
162
170
  headerParameters = {};
163
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
171
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
172
+ _a = headerParameters;
173
+ _b = "apikey";
174
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
175
+ case 1:
176
+ _a[_b] = _c.sent(); // api_key authentication
177
+ _c.label = 2;
178
+ case 2:
179
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
164
180
  token = this.configuration.accessToken;
165
181
  return [4 /*yield*/, token("bearer", [])];
166
- case 1:
167
- tokenString = _a.sent();
182
+ case 3:
183
+ tokenString = _c.sent();
168
184
  if (tokenString) {
169
185
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
170
186
  }
171
- _a.label = 2;
172
- case 2: return [4 /*yield*/, this.request({
187
+ _c.label = 4;
188
+ case 4: return [4 /*yield*/, this.request({
173
189
  path: "/private/tasks",
174
190
  method: 'GET',
175
191
  headers: headerParameters,
176
192
  query: queryParameters,
177
193
  }, initOverrides)];
178
- case 3:
179
- response = _a.sent();
194
+ case 5:
195
+ response = _c.sent();
180
196
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
181
197
  }
182
198
  });
183
199
  });
184
200
  };
185
201
  /**
186
- * Lists tasks for the seller account.
202
+ * Lists tasks for the seller account. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
187
203
  * List seller tasks
188
204
  */
189
205
  TasksApi.prototype.list = function () {
@@ -202,14 +218,14 @@ var TasksApi = /** @class */ (function (_super) {
202
218
  });
203
219
  };
204
220
  /**
205
- * Mutes or unmutes task notifications for the seller.
221
+ * Mutes or unmutes task notifications for the seller. **API key scope required:** `TASKS_WRITE`. Requests authenticated with a seller session do not need any scope.
206
222
  * Update task mute status
207
223
  */
208
224
  TasksApi.prototype.updateTaskMuteStatusRaw = function (requestParameters, initOverrides) {
209
225
  return __awaiter(this, void 0, void 0, function () {
210
- var queryParameters, headerParameters, token, tokenString, response;
211
- return __generator(this, function (_a) {
212
- switch (_a.label) {
226
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
227
+ return __generator(this, function (_c) {
228
+ switch (_c.label) {
213
229
  case 0:
214
230
  if (requestParameters['taskId'] == null) {
215
231
  throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling updateTaskMuteStatus().');
@@ -220,31 +236,39 @@ var TasksApi = /** @class */ (function (_super) {
220
236
  queryParameters = {};
221
237
  headerParameters = {};
222
238
  headerParameters['Content-Type'] = 'application/json';
223
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
239
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
240
+ _a = headerParameters;
241
+ _b = "apikey";
242
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
243
+ case 1:
244
+ _a[_b] = _c.sent(); // api_key authentication
245
+ _c.label = 2;
246
+ case 2:
247
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
224
248
  token = this.configuration.accessToken;
225
249
  return [4 /*yield*/, token("bearer", [])];
226
- case 1:
227
- tokenString = _a.sent();
250
+ case 3:
251
+ tokenString = _c.sent();
228
252
  if (tokenString) {
229
253
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
230
254
  }
231
- _a.label = 2;
232
- case 2: return [4 /*yield*/, this.request({
255
+ _c.label = 4;
256
+ case 4: return [4 /*yield*/, this.request({
233
257
  path: "/private/tasks/{taskId}/status/mute-for-seller".replace("{".concat("taskId", "}"), encodeURIComponent(String(requestParameters['taskId']))),
234
258
  method: 'PUT',
235
259
  headers: headerParameters,
236
260
  query: queryParameters,
237
261
  body: (0, index_1.UpdateTaskMuteStatusInputToJSON)(requestParameters['updateTaskMuteStatusInput']),
238
262
  }, initOverrides)];
239
- case 3:
240
- response = _a.sent();
263
+ case 5:
264
+ response = _c.sent();
241
265
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
242
266
  }
243
267
  });
244
268
  });
245
269
  };
246
270
  /**
247
- * Mutes or unmutes task notifications for the seller.
271
+ * Mutes or unmutes task notifications for the seller. **API key scope required:** `TASKS_WRITE`. Requests authenticated with a seller session do not need any scope.
248
272
  * Update task mute status
249
273
  */
250
274
  TasksApi.prototype.updateTaskMuteStatus = function (requestParameters, initOverrides) {
@@ -28,52 +28,52 @@ export interface UsersApiUpdateUserNotificationSettingsRequest {
28
28
  */
29
29
  export declare class UsersApi extends runtime.BaseAPI {
30
30
  /**
31
- * Changes the seller user email after validating the OTP sent to the new address.
31
+ * Changes the seller user email after validating the OTP sent to the new address. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
32
32
  * Change user email with OTP
33
33
  */
34
34
  changeUserEmailWithOtpRaw(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
35
35
  /**
36
- * Changes the seller user email after validating the OTP sent to the new address.
36
+ * Changes the seller user email after validating the OTP sent to the new address. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
37
37
  * Change user email with OTP
38
38
  */
39
39
  changeUserEmailWithOtp(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
40
40
  /**
41
- * Returns the notification preferences configured for the seller user.
41
+ * Returns the notification preferences configured for the seller user. **API key scope required:** `USERS_READ`. Requests authenticated with a seller session do not need any scope.
42
42
  * Get user notification settings
43
43
  */
44
44
  getUserNotificationSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserNotificationSettingsDto>>;
45
45
  /**
46
- * Returns the notification preferences configured for the seller user.
46
+ * Returns the notification preferences configured for the seller user. **API key scope required:** `USERS_READ`. Requests authenticated with a seller session do not need any scope.
47
47
  * Get user notification settings
48
48
  */
49
49
  getUserNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationSettingsDto>;
50
50
  /**
51
- * Sends a one-time password to the new email address to verify ownership before changing the account email.
51
+ * Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
52
52
  * Request email change OTP
53
53
  */
54
54
  requestUserEmailChangeOtpRaw(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
55
55
  /**
56
- * Sends a one-time password to the new email address to verify ownership before changing the account email.
56
+ * Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
57
57
  * Request email change OTP
58
58
  */
59
59
  requestUserEmailChangeOtp(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
60
60
  /**
61
- * Persists the seller user locale used for notifications and UI content.
61
+ * Persists the seller user locale used for notifications and UI content. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
62
62
  * Store user locale preference
63
63
  */
64
64
  setLocaleRaw(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
65
65
  /**
66
- * Persists the seller user locale used for notifications and UI content.
66
+ * Persists the seller user locale used for notifications and UI content. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
67
67
  * Store user locale preference
68
68
  */
69
69
  setLocale(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
70
70
  /**
71
- * Updates one or more notification preferences for the seller user.
71
+ * Updates one or more notification preferences for the seller user. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
72
72
  * Update user notification settings
73
73
  */
74
74
  updateUserNotificationSettingsRaw(requestParameters: UsersApiUpdateUserNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
75
75
  /**
76
- * Updates one or more notification preferences for the seller user.
76
+ * Updates one or more notification preferences for the seller user. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
77
77
  * Update user notification settings
78
78
  */
79
79
  updateUserNotificationSettings(requestParameters: UsersApiUpdateUserNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -76,14 +76,14 @@ var UsersApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Changes the seller user email after validating the OTP sent to the new address.
79
+ * Changes the seller user email after validating the OTP sent to the new address. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
80
80
  * Change user email with OTP
81
81
  */
82
82
  UsersApi.prototype.changeUserEmailWithOtpRaw = 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['changeUserEmailWithOtpInput'] == null) {
89
89
  throw new runtime.RequiredError('changeUserEmailWithOtpInput', 'Required parameter "changeUserEmailWithOtpInput" was null or undefined when calling changeUserEmailWithOtp().');
@@ -91,31 +91,39 @@ var UsersApi = /** @class */ (function (_super) {
91
91
  queryParameters = {};
92
92
  headerParameters = {};
93
93
  headerParameters['Content-Type'] = 'application/json';
94
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
94
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
95
+ _a = headerParameters;
96
+ _b = "apikey";
97
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
98
+ case 1:
99
+ _a[_b] = _c.sent(); // api_key authentication
100
+ _c.label = 2;
101
+ case 2:
102
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
95
103
  token = this.configuration.accessToken;
96
104
  return [4 /*yield*/, token("bearer", [])];
97
- case 1:
98
- tokenString = _a.sent();
105
+ case 3:
106
+ tokenString = _c.sent();
99
107
  if (tokenString) {
100
108
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
101
109
  }
102
- _a.label = 2;
103
- case 2: return [4 /*yield*/, this.request({
110
+ _c.label = 4;
111
+ case 4: return [4 /*yield*/, this.request({
104
112
  path: "/private/users/email",
105
113
  method: 'PATCH',
106
114
  headers: headerParameters,
107
115
  query: queryParameters,
108
116
  body: (0, index_1.ChangeUserEmailWithOtpInputToJSON)(requestParameters['changeUserEmailWithOtpInput']),
109
117
  }, initOverrides)];
110
- case 3:
111
- response = _a.sent();
118
+ case 5:
119
+ response = _c.sent();
112
120
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
113
121
  }
114
122
  });
115
123
  });
116
124
  };
117
125
  /**
118
- * Changes the seller user email after validating the OTP sent to the new address.
126
+ * Changes the seller user email after validating the OTP sent to the new address. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
119
127
  * Change user email with OTP
120
128
  */
121
129
  UsersApi.prototype.changeUserEmailWithOtp = function (requestParameters, initOverrides) {
@@ -131,41 +139,49 @@ var UsersApi = /** @class */ (function (_super) {
131
139
  });
132
140
  };
133
141
  /**
134
- * Returns the notification preferences configured for the seller user.
142
+ * Returns the notification preferences configured for the seller user. **API key scope required:** `USERS_READ`. Requests authenticated with a seller session do not need any scope.
135
143
  * Get user notification settings
136
144
  */
137
145
  UsersApi.prototype.getUserNotificationSettingsRaw = function (initOverrides) {
138
146
  return __awaiter(this, void 0, void 0, function () {
139
- var queryParameters, headerParameters, token, tokenString, response;
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
147
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
148
+ return __generator(this, function (_c) {
149
+ switch (_c.label) {
142
150
  case 0:
143
151
  queryParameters = {};
144
152
  headerParameters = {};
145
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
153
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
154
+ _a = headerParameters;
155
+ _b = "apikey";
156
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
157
+ case 1:
158
+ _a[_b] = _c.sent(); // api_key authentication
159
+ _c.label = 2;
160
+ case 2:
161
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
146
162
  token = this.configuration.accessToken;
147
163
  return [4 /*yield*/, token("bearer", [])];
148
- case 1:
149
- tokenString = _a.sent();
164
+ case 3:
165
+ tokenString = _c.sent();
150
166
  if (tokenString) {
151
167
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
152
168
  }
153
- _a.label = 2;
154
- case 2: return [4 /*yield*/, this.request({
169
+ _c.label = 4;
170
+ case 4: return [4 /*yield*/, this.request({
155
171
  path: "/private/users/notification-settings",
156
172
  method: 'GET',
157
173
  headers: headerParameters,
158
174
  query: queryParameters,
159
175
  }, initOverrides)];
160
- case 3:
161
- response = _a.sent();
176
+ case 5:
177
+ response = _c.sent();
162
178
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserNotificationSettingsDtoFromJSON)(jsonValue); })];
163
179
  }
164
180
  });
165
181
  });
166
182
  };
167
183
  /**
168
- * Returns the notification preferences configured for the seller user.
184
+ * Returns the notification preferences configured for the seller user. **API key scope required:** `USERS_READ`. Requests authenticated with a seller session do not need any scope.
169
185
  * Get user notification settings
170
186
  */
171
187
  UsersApi.prototype.getUserNotificationSettings = function (initOverrides) {
@@ -183,14 +199,14 @@ var UsersApi = /** @class */ (function (_super) {
183
199
  });
184
200
  };
185
201
  /**
186
- * Sends a one-time password to the new email address to verify ownership before changing the account email.
202
+ * Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
187
203
  * Request email change OTP
188
204
  */
189
205
  UsersApi.prototype.requestUserEmailChangeOtpRaw = function (requestParameters, initOverrides) {
190
206
  return __awaiter(this, void 0, void 0, function () {
191
- var queryParameters, headerParameters, token, tokenString, response;
192
- return __generator(this, function (_a) {
193
- switch (_a.label) {
207
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
208
+ return __generator(this, function (_c) {
209
+ switch (_c.label) {
194
210
  case 0:
195
211
  if (requestParameters['requestUserEmailChangeOtpInput'] == null) {
196
212
  throw new runtime.RequiredError('requestUserEmailChangeOtpInput', 'Required parameter "requestUserEmailChangeOtpInput" was null or undefined when calling requestUserEmailChangeOtp().');
@@ -198,31 +214,39 @@ var UsersApi = /** @class */ (function (_super) {
198
214
  queryParameters = {};
199
215
  headerParameters = {};
200
216
  headerParameters['Content-Type'] = 'application/json';
201
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
217
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
218
+ _a = headerParameters;
219
+ _b = "apikey";
220
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
221
+ case 1:
222
+ _a[_b] = _c.sent(); // api_key authentication
223
+ _c.label = 2;
224
+ case 2:
225
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
202
226
  token = this.configuration.accessToken;
203
227
  return [4 /*yield*/, token("bearer", [])];
204
- case 1:
205
- tokenString = _a.sent();
228
+ case 3:
229
+ tokenString = _c.sent();
206
230
  if (tokenString) {
207
231
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
208
232
  }
209
- _a.label = 2;
210
- case 2: return [4 /*yield*/, this.request({
233
+ _c.label = 4;
234
+ case 4: return [4 /*yield*/, this.request({
211
235
  path: "/private/users/email-change/request-otp",
212
236
  method: 'POST',
213
237
  headers: headerParameters,
214
238
  query: queryParameters,
215
239
  body: (0, index_1.RequestUserEmailChangeOtpInputToJSON)(requestParameters['requestUserEmailChangeOtpInput']),
216
240
  }, initOverrides)];
217
- case 3:
218
- response = _a.sent();
241
+ case 5:
242
+ response = _c.sent();
219
243
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
220
244
  }
221
245
  });
222
246
  });
223
247
  };
224
248
  /**
225
- * Sends a one-time password to the new email address to verify ownership before changing the account email.
249
+ * Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
226
250
  * Request email change OTP
227
251
  */
228
252
  UsersApi.prototype.requestUserEmailChangeOtp = function (requestParameters, initOverrides) {
@@ -238,14 +262,14 @@ var UsersApi = /** @class */ (function (_super) {
238
262
  });
239
263
  };
240
264
  /**
241
- * Persists the seller user locale used for notifications and UI content.
265
+ * Persists the seller user locale used for notifications and UI content. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
242
266
  * Store user locale preference
243
267
  */
244
268
  UsersApi.prototype.setLocaleRaw = function (requestParameters, initOverrides) {
245
269
  return __awaiter(this, void 0, void 0, function () {
246
- var queryParameters, headerParameters, token, tokenString, response;
247
- return __generator(this, function (_a) {
248
- switch (_a.label) {
270
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
271
+ return __generator(this, function (_c) {
272
+ switch (_c.label) {
249
273
  case 0:
250
274
  if (requestParameters['storeUserLocaleInput'] == null) {
251
275
  throw new runtime.RequiredError('storeUserLocaleInput', 'Required parameter "storeUserLocaleInput" was null or undefined when calling setLocale().');
@@ -253,31 +277,39 @@ var UsersApi = /** @class */ (function (_super) {
253
277
  queryParameters = {};
254
278
  headerParameters = {};
255
279
  headerParameters['Content-Type'] = 'application/json';
256
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
280
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
281
+ _a = headerParameters;
282
+ _b = "apikey";
283
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
284
+ case 1:
285
+ _a[_b] = _c.sent(); // api_key authentication
286
+ _c.label = 2;
287
+ case 2:
288
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
257
289
  token = this.configuration.accessToken;
258
290
  return [4 /*yield*/, token("bearer", [])];
259
- case 1:
260
- tokenString = _a.sent();
291
+ case 3:
292
+ tokenString = _c.sent();
261
293
  if (tokenString) {
262
294
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
263
295
  }
264
- _a.label = 2;
265
- case 2: return [4 /*yield*/, this.request({
296
+ _c.label = 4;
297
+ case 4: return [4 /*yield*/, this.request({
266
298
  path: "/private/users/store-locale",
267
299
  method: 'PATCH',
268
300
  headers: headerParameters,
269
301
  query: queryParameters,
270
302
  body: (0, index_1.StoreUserLocaleInputToJSON)(requestParameters['storeUserLocaleInput']),
271
303
  }, initOverrides)];
272
- case 3:
273
- response = _a.sent();
304
+ case 5:
305
+ response = _c.sent();
274
306
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
275
307
  }
276
308
  });
277
309
  });
278
310
  };
279
311
  /**
280
- * Persists the seller user locale used for notifications and UI content.
312
+ * Persists the seller user locale used for notifications and UI content. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
281
313
  * Store user locale preference
282
314
  */
283
315
  UsersApi.prototype.setLocale = function (requestParameters, initOverrides) {
@@ -293,14 +325,14 @@ var UsersApi = /** @class */ (function (_super) {
293
325
  });
294
326
  };
295
327
  /**
296
- * Updates one or more notification preferences for the seller user.
328
+ * Updates one or more notification preferences for the seller user. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
297
329
  * Update user notification settings
298
330
  */
299
331
  UsersApi.prototype.updateUserNotificationSettingsRaw = function (requestParameters, initOverrides) {
300
332
  return __awaiter(this, void 0, void 0, function () {
301
- var queryParameters, headerParameters, token, tokenString, response;
302
- return __generator(this, function (_a) {
303
- switch (_a.label) {
333
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
334
+ return __generator(this, function (_c) {
335
+ switch (_c.label) {
304
336
  case 0:
305
337
  if (requestParameters['updateUserNotificationSettingsInput'] == null) {
306
338
  throw new runtime.RequiredError('updateUserNotificationSettingsInput', 'Required parameter "updateUserNotificationSettingsInput" was null or undefined when calling updateUserNotificationSettings().');
@@ -308,31 +340,39 @@ var UsersApi = /** @class */ (function (_super) {
308
340
  queryParameters = {};
309
341
  headerParameters = {};
310
342
  headerParameters['Content-Type'] = 'application/json';
311
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
343
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
344
+ _a = headerParameters;
345
+ _b = "apikey";
346
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
347
+ case 1:
348
+ _a[_b] = _c.sent(); // api_key authentication
349
+ _c.label = 2;
350
+ case 2:
351
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
312
352
  token = this.configuration.accessToken;
313
353
  return [4 /*yield*/, token("bearer", [])];
314
- case 1:
315
- tokenString = _a.sent();
354
+ case 3:
355
+ tokenString = _c.sent();
316
356
  if (tokenString) {
317
357
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
318
358
  }
319
- _a.label = 2;
320
- case 2: return [4 /*yield*/, this.request({
359
+ _c.label = 4;
360
+ case 4: return [4 /*yield*/, this.request({
321
361
  path: "/private/users/notification-settings",
322
362
  method: 'PATCH',
323
363
  headers: headerParameters,
324
364
  query: queryParameters,
325
365
  body: (0, index_1.UpdateUserNotificationSettingsInputToJSON)(requestParameters['updateUserNotificationSettingsInput']),
326
366
  }, initOverrides)];
327
- case 3:
328
- response = _a.sent();
367
+ case 5:
368
+ response = _c.sent();
329
369
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
330
370
  }
331
371
  });
332
372
  });
333
373
  };
334
374
  /**
335
- * Updates one or more notification preferences for the seller user.
375
+ * Updates one or more notification preferences for the seller user. **API key scope required:** `USERS_WRITE`. Requests authenticated with a seller session do not need any scope.
336
376
  * Update user notification settings
337
377
  */
338
378
  UsersApi.prototype.updateUserNotificationSettings = function (requestParameters, initOverrides) {
@@ -1,3 +1,4 @@
1
+ export * from './APIKeysApi';
1
2
  export * from './AccountsApi';
2
3
  export * from './AccountsPublicApi';
3
4
  export * from './AddressPublicApi';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./APIKeysApi"), exports);
19
20
  __exportStar(require("./AccountsApi"), exports);
20
21
  __exportStar(require("./AccountsPublicApi"), exports);
21
22
  __exportStar(require("./AddressPublicApi"), exports);
@@ -196,6 +196,12 @@ export interface AdminDomainListItemDto {
196
196
  * @memberof AdminDomainListItemDto
197
197
  */
198
198
  lockedUntil: Date | null;
199
+ /**
200
+ * Whether an admin picked this domain for the public showcase on the website.
201
+ * @type {boolean}
202
+ * @memberof AdminDomainListItemDto
203
+ */
204
+ showcased: boolean;
199
205
  /**
200
206
  * Account that owns the domain.
201
207
  * @type {AccountDto}