@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
@@ -0,0 +1,240 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ AccountMarketplaceDto,
19
+ MarketplaceDto,
20
+ SetAccountMarketplaceInput,
21
+ } from '../models/index';
22
+ import {
23
+ AccountMarketplaceDtoFromJSON,
24
+ AccountMarketplaceDtoToJSON,
25
+ MarketplaceDtoFromJSON,
26
+ MarketplaceDtoToJSON,
27
+ SetAccountMarketplaceInputFromJSON,
28
+ SetAccountMarketplaceInputToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface MarketplacesApiDeleteAccountMarketplaceRequest {
32
+ code: DeleteAccountMarketplaceCodeEnum;
33
+ }
34
+
35
+ export interface MarketplacesApiSetAccountMarketplaceRequest {
36
+ code: SetAccountMarketplaceCodeEnum;
37
+ setAccountMarketplaceInput: SetAccountMarketplaceInput;
38
+ }
39
+
40
+ /**
41
+ *
42
+ */
43
+ export class MarketplacesApi extends runtime.BaseAPI {
44
+
45
+ /**
46
+ * Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
47
+ * Remove the account marketplace link
48
+ */
49
+ async deleteAccountMarketplaceRaw(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
50
+ if (requestParameters['code'] == null) {
51
+ throw new runtime.RequiredError(
52
+ 'code',
53
+ 'Required parameter "code" was null or undefined when calling deleteAccountMarketplace().'
54
+ );
55
+ }
56
+
57
+ const queryParameters: any = {};
58
+
59
+ const headerParameters: runtime.HTTPHeaders = {};
60
+
61
+ if (this.configuration && this.configuration.apiKey) {
62
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
63
+ }
64
+
65
+ if (this.configuration && this.configuration.accessToken) {
66
+ const token = this.configuration.accessToken;
67
+ const tokenString = await token("bearer", []);
68
+
69
+ if (tokenString) {
70
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
+ }
72
+ }
73
+ const response = await this.request({
74
+ path: `/private/marketplaces/{code}`.replace(`{${"code"}}`, encodeURIComponent(String(requestParameters['code']))),
75
+ method: 'DELETE',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ }, initOverrides);
79
+
80
+ return new runtime.VoidApiResponse(response);
81
+ }
82
+
83
+ /**
84
+ * Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
85
+ * Remove the account marketplace link
86
+ */
87
+ async deleteAccountMarketplace(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
88
+ await this.deleteAccountMarketplaceRaw(requestParameters, initOverrides);
89
+ }
90
+
91
+ /**
92
+ * Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
93
+ * List the account marketplace links
94
+ */
95
+ async listAccountMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountMarketplaceDto>>> {
96
+ const queryParameters: any = {};
97
+
98
+ const headerParameters: runtime.HTTPHeaders = {};
99
+
100
+ if (this.configuration && this.configuration.apiKey) {
101
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
102
+ }
103
+
104
+ if (this.configuration && this.configuration.accessToken) {
105
+ const token = this.configuration.accessToken;
106
+ const tokenString = await token("bearer", []);
107
+
108
+ if (tokenString) {
109
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
110
+ }
111
+ }
112
+ const response = await this.request({
113
+ path: `/private/marketplaces`,
114
+ method: 'GET',
115
+ headers: headerParameters,
116
+ query: queryParameters,
117
+ }, initOverrides);
118
+
119
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountMarketplaceDtoFromJSON));
120
+ }
121
+
122
+ /**
123
+ * Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
124
+ * List the account marketplace links
125
+ */
126
+ async listAccountMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountMarketplaceDto>> {
127
+ const response = await this.listAccountMarketplacesRaw(initOverrides);
128
+ return await response.value();
129
+ }
130
+
131
+ /**
132
+ * Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
133
+ * List routable marketplaces
134
+ */
135
+ async listMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketplaceDto>>> {
136
+ const queryParameters: any = {};
137
+
138
+ const headerParameters: runtime.HTTPHeaders = {};
139
+
140
+ const response = await this.request({
141
+ path: `/marketplaces`,
142
+ method: 'GET',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ }, initOverrides);
146
+
147
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MarketplaceDtoFromJSON));
148
+ }
149
+
150
+ /**
151
+ * Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
152
+ * List routable marketplaces
153
+ */
154
+ async listMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketplaceDto>> {
155
+ const response = await this.listMarketplacesRaw(initOverrides);
156
+ return await response.value();
157
+ }
158
+
159
+ /**
160
+ * Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
161
+ * Link the account to a marketplace
162
+ */
163
+ async setAccountMarketplaceRaw(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
164
+ if (requestParameters['code'] == null) {
165
+ throw new runtime.RequiredError(
166
+ 'code',
167
+ 'Required parameter "code" was null or undefined when calling setAccountMarketplace().'
168
+ );
169
+ }
170
+
171
+ if (requestParameters['setAccountMarketplaceInput'] == null) {
172
+ throw new runtime.RequiredError(
173
+ 'setAccountMarketplaceInput',
174
+ 'Required parameter "setAccountMarketplaceInput" was null or undefined when calling setAccountMarketplace().'
175
+ );
176
+ }
177
+
178
+ const queryParameters: any = {};
179
+
180
+ const headerParameters: runtime.HTTPHeaders = {};
181
+
182
+ headerParameters['Content-Type'] = 'application/json';
183
+
184
+ if (this.configuration && this.configuration.apiKey) {
185
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
186
+ }
187
+
188
+ if (this.configuration && this.configuration.accessToken) {
189
+ const token = this.configuration.accessToken;
190
+ const tokenString = await token("bearer", []);
191
+
192
+ if (tokenString) {
193
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
194
+ }
195
+ }
196
+ const response = await this.request({
197
+ path: `/private/marketplaces/{code}`.replace(`{${"code"}}`, encodeURIComponent(String(requestParameters['code']))),
198
+ method: 'PUT',
199
+ headers: headerParameters,
200
+ query: queryParameters,
201
+ body: SetAccountMarketplaceInputToJSON(requestParameters['setAccountMarketplaceInput']),
202
+ }, initOverrides);
203
+
204
+ return new runtime.VoidApiResponse(response);
205
+ }
206
+
207
+ /**
208
+ * Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
209
+ * Link the account to a marketplace
210
+ */
211
+ async setAccountMarketplace(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
212
+ await this.setAccountMarketplaceRaw(requestParameters, initOverrides);
213
+ }
214
+
215
+ }
216
+
217
+ /**
218
+ * @export
219
+ */
220
+ export const DeleteAccountMarketplaceCodeEnum = {
221
+ NAMESHIFT: 'nameshift',
222
+ SEDO: 'sedo',
223
+ AFTERNIC: 'afternic',
224
+ ATOM: 'atom',
225
+ SPACESHIP: 'spaceship',
226
+ NAMECLUB: 'nameclub'
227
+ } as const;
228
+ export type DeleteAccountMarketplaceCodeEnum = typeof DeleteAccountMarketplaceCodeEnum[keyof typeof DeleteAccountMarketplaceCodeEnum];
229
+ /**
230
+ * @export
231
+ */
232
+ export const SetAccountMarketplaceCodeEnum = {
233
+ NAMESHIFT: 'nameshift',
234
+ SEDO: 'sedo',
235
+ AFTERNIC: 'afternic',
236
+ ATOM: 'atom',
237
+ SPACESHIP: 'spaceship',
238
+ NAMECLUB: 'nameclub'
239
+ } as const;
240
+ export type SetAccountMarketplaceCodeEnum = typeof SetAccountMarketplaceCodeEnum[keyof typeof SetAccountMarketplaceCodeEnum];
@@ -62,7 +62,7 @@ export interface NotificationsApiListNotificationsRequest {
62
62
  export class NotificationsApi extends runtime.BaseAPI {
63
63
 
64
64
  /**
65
- * Marks multiple seller notifications as read or unread based on the readStatus parameter.
65
+ * Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
66
66
  * Bulk mark notifications as read or unread
67
67
  */
68
68
  async bulkMarkNotificationsAsReadRaw(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -79,6 +79,10 @@ export class NotificationsApi extends runtime.BaseAPI {
79
79
 
80
80
  headerParameters['Content-Type'] = 'application/json';
81
81
 
82
+ if (this.configuration && this.configuration.apiKey) {
83
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
84
+ }
85
+
82
86
  if (this.configuration && this.configuration.accessToken) {
83
87
  const token = this.configuration.accessToken;
84
88
  const tokenString = await token("bearer", []);
@@ -99,7 +103,7 @@ export class NotificationsApi extends runtime.BaseAPI {
99
103
  }
100
104
 
101
105
  /**
102
- * Marks multiple seller notifications as read or unread based on the readStatus parameter.
106
+ * Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
103
107
  * Bulk mark notifications as read or unread
104
108
  */
105
109
  async bulkMarkNotificationsAsRead(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -107,7 +111,7 @@ export class NotificationsApi extends runtime.BaseAPI {
107
111
  }
108
112
 
109
113
  /**
110
- * Downloads a file attachment from a seller notification.
114
+ * Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
111
115
  * Download notification attachment
112
116
  */
113
117
  async downloadNotificationAttachmentRaw(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
@@ -129,6 +133,10 @@ export class NotificationsApi extends runtime.BaseAPI {
129
133
 
130
134
  const headerParameters: runtime.HTTPHeaders = {};
131
135
 
136
+ if (this.configuration && this.configuration.apiKey) {
137
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
138
+ }
139
+
132
140
  if (this.configuration && this.configuration.accessToken) {
133
141
  const token = this.configuration.accessToken;
134
142
  const tokenString = await token("bearer", []);
@@ -148,7 +156,7 @@ export class NotificationsApi extends runtime.BaseAPI {
148
156
  }
149
157
 
150
158
  /**
151
- * Downloads a file attachment from a seller notification.
159
+ * Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
152
160
  * Download notification attachment
153
161
  */
154
162
  async downloadNotificationAttachment(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
@@ -157,7 +165,7 @@ export class NotificationsApi extends runtime.BaseAPI {
157
165
  }
158
166
 
159
167
  /**
160
- * Returns notification information for the seller user.
168
+ * Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
161
169
  * Get notification details
162
170
  */
163
171
  async getNotificationByIdRaw(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserNotificationDto>> {
@@ -172,6 +180,10 @@ export class NotificationsApi extends runtime.BaseAPI {
172
180
 
173
181
  const headerParameters: runtime.HTTPHeaders = {};
174
182
 
183
+ if (this.configuration && this.configuration.apiKey) {
184
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
185
+ }
186
+
175
187
  if (this.configuration && this.configuration.accessToken) {
176
188
  const token = this.configuration.accessToken;
177
189
  const tokenString = await token("bearer", []);
@@ -191,7 +203,7 @@ export class NotificationsApi extends runtime.BaseAPI {
191
203
  }
192
204
 
193
205
  /**
194
- * Returns notification information for the seller user.
206
+ * Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
195
207
  * Get notification details
196
208
  */
197
209
  async getNotificationById(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationDto> {
@@ -200,7 +212,7 @@ export class NotificationsApi extends runtime.BaseAPI {
200
212
  }
201
213
 
202
214
  /**
203
- * Lists notifications for the seller user.
215
+ * Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
204
216
  * List seller notifications
205
217
  */
206
218
  async listNotificationsRaw(requestParameters: NotificationsApiListNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListNotifications200Response>> {
@@ -232,6 +244,10 @@ export class NotificationsApi extends runtime.BaseAPI {
232
244
 
233
245
  const headerParameters: runtime.HTTPHeaders = {};
234
246
 
247
+ if (this.configuration && this.configuration.apiKey) {
248
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
249
+ }
250
+
235
251
  if (this.configuration && this.configuration.accessToken) {
236
252
  const token = this.configuration.accessToken;
237
253
  const tokenString = await token("bearer", []);
@@ -251,7 +267,7 @@ export class NotificationsApi extends runtime.BaseAPI {
251
267
  }
252
268
 
253
269
  /**
254
- * Lists notifications for the seller user.
270
+ * Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
255
271
  * List seller notifications
256
272
  */
257
273
  async listNotifications(requestParameters: NotificationsApiListNotificationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListNotifications200Response> {
@@ -66,7 +66,7 @@ export interface StatsApiGetTotalEarningsByCurrencyOverTimeRequest {
66
66
  export class StatsApi extends runtime.BaseAPI {
67
67
 
68
68
  /**
69
- * Returns the total pending payout amounts grouped by currency for the seller.
69
+ * Returns the total pending payout amounts grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
70
70
  * Get pending payouts by currency
71
71
  */
72
72
  async getPendingPayoutsByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerPendingPayoutsByCurrencyStatsItemDto>>> {
@@ -74,6 +74,10 @@ export class StatsApi extends runtime.BaseAPI {
74
74
 
75
75
  const headerParameters: runtime.HTTPHeaders = {};
76
76
 
77
+ if (this.configuration && this.configuration.apiKey) {
78
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
79
+ }
80
+
77
81
  if (this.configuration && this.configuration.accessToken) {
78
82
  const token = this.configuration.accessToken;
79
83
  const tokenString = await token("bearer", []);
@@ -93,7 +97,7 @@ export class StatsApi extends runtime.BaseAPI {
93
97
  }
94
98
 
95
99
  /**
96
- * Returns the total pending payout amounts grouped by currency for the seller.
100
+ * Returns the total pending payout amounts grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
97
101
  * Get pending payouts by currency
98
102
  */
99
103
  async getPendingPayoutsByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerPendingPayoutsByCurrencyStatsItemDto>> {
@@ -102,7 +106,7 @@ export class StatsApi extends runtime.BaseAPI {
102
106
  }
103
107
 
104
108
  /**
105
- * Returns remaining versus total lease-to-own income grouped by currency for the seller.
109
+ * Returns remaining versus total lease-to-own income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
106
110
  * Get lease-to-own income comparison
107
111
  */
108
112
  async getRemainingVsTotalLeaseToOwnByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>>> {
@@ -110,6 +114,10 @@ export class StatsApi extends runtime.BaseAPI {
110
114
 
111
115
  const headerParameters: runtime.HTTPHeaders = {};
112
116
 
117
+ if (this.configuration && this.configuration.apiKey) {
118
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
119
+ }
120
+
113
121
  if (this.configuration && this.configuration.accessToken) {
114
122
  const token = this.configuration.accessToken;
115
123
  const tokenString = await token("bearer", []);
@@ -129,7 +137,7 @@ export class StatsApi extends runtime.BaseAPI {
129
137
  }
130
138
 
131
139
  /**
132
- * Returns remaining versus total lease-to-own income grouped by currency for the seller.
140
+ * Returns remaining versus total lease-to-own income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
133
141
  * Get lease-to-own income comparison
134
142
  */
135
143
  async getRemainingVsTotalLeaseToOwnByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>> {
@@ -138,7 +146,7 @@ export class StatsApi extends runtime.BaseAPI {
138
146
  }
139
147
 
140
148
  /**
141
- * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency.
149
+ * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
142
150
  * Get sales by TLD
143
151
  */
144
152
  async getSalesByTldRaw(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>> {
@@ -161,6 +169,10 @@ export class StatsApi extends runtime.BaseAPI {
161
169
 
162
170
  const headerParameters: runtime.HTTPHeaders = {};
163
171
 
172
+ if (this.configuration && this.configuration.apiKey) {
173
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
174
+ }
175
+
164
176
  if (this.configuration && this.configuration.accessToken) {
165
177
  const token = this.configuration.accessToken;
166
178
  const tokenString = await token("bearer", []);
@@ -180,7 +192,7 @@ export class StatsApi extends runtime.BaseAPI {
180
192
  }
181
193
 
182
194
  /**
183
- * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency.
195
+ * Returns sales statistics grouped by top-level domain for the seller within the specified date range and currency. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
184
196
  * Get sales by TLD
185
197
  */
186
198
  async getSalesByTld(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>> {
@@ -189,7 +201,7 @@ export class StatsApi extends runtime.BaseAPI {
189
201
  }
190
202
 
191
203
  /**
192
- * Returns the number of sales for the current seller account within the specified date range.
204
+ * Returns the number of sales for the current seller account within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
193
205
  * Get sales count stats
194
206
  */
195
207
  async getSalesCountRaw(requestParameters: StatsApiGetSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesCountStatsItemDto>>> {
@@ -201,6 +213,10 @@ export class StatsApi extends runtime.BaseAPI {
201
213
 
202
214
  const headerParameters: runtime.HTTPHeaders = {};
203
215
 
216
+ if (this.configuration && this.configuration.apiKey) {
217
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
218
+ }
219
+
204
220
  if (this.configuration && this.configuration.accessToken) {
205
221
  const token = this.configuration.accessToken;
206
222
  const tokenString = await token("bearer", []);
@@ -220,7 +236,7 @@ export class StatsApi extends runtime.BaseAPI {
220
236
  }
221
237
 
222
238
  /**
223
- * Returns the number of sales for the current seller account within the specified date range.
239
+ * Returns the number of sales for the current seller account within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
224
240
  * Get sales count stats
225
241
  */
226
242
  async getSalesCount(requestParameters: StatsApiGetSalesCountRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>> {
@@ -229,7 +245,7 @@ export class StatsApi extends runtime.BaseAPI {
229
245
  }
230
246
 
231
247
  /**
232
- * Returns total earnings grouped by currency for the seller, optionally filtered by date range.
248
+ * Returns total earnings grouped by currency for the seller, optionally filtered by date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
233
249
  * Get total earnings by currency
234
250
  */
235
251
  async getTotalEarningsByCurrencyRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyStatsItemDto>>> {
@@ -241,6 +257,10 @@ export class StatsApi extends runtime.BaseAPI {
241
257
 
242
258
  const headerParameters: runtime.HTTPHeaders = {};
243
259
 
260
+ if (this.configuration && this.configuration.apiKey) {
261
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
262
+ }
263
+
244
264
  if (this.configuration && this.configuration.accessToken) {
245
265
  const token = this.configuration.accessToken;
246
266
  const tokenString = await token("bearer", []);
@@ -260,7 +280,7 @@ export class StatsApi extends runtime.BaseAPI {
260
280
  }
261
281
 
262
282
  /**
263
- * Returns total earnings grouped by currency for the seller, optionally filtered by date range.
283
+ * Returns total earnings grouped by currency for the seller, optionally filtered by date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
264
284
  * Get total earnings by currency
265
285
  */
266
286
  async getTotalEarningsByCurrency(requestParameters: StatsApiGetTotalEarningsByCurrencyRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyStatsItemDto>> {
@@ -269,7 +289,7 @@ export class StatsApi extends runtime.BaseAPI {
269
289
  }
270
290
 
271
291
  /**
272
- * Returns total earnings over time grouped by currency for the seller within the specified date range.
292
+ * Returns total earnings over time grouped by currency for the seller within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
273
293
  * Get earnings over time by currency
274
294
  */
275
295
  async getTotalEarningsByCurrencyOverTimeRaw(requestParameters: StatsApiGetTotalEarningsByCurrencyOverTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>>> {
@@ -281,6 +301,10 @@ export class StatsApi extends runtime.BaseAPI {
281
301
 
282
302
  const headerParameters: runtime.HTTPHeaders = {};
283
303
 
304
+ if (this.configuration && this.configuration.apiKey) {
305
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
306
+ }
307
+
284
308
  if (this.configuration && this.configuration.accessToken) {
285
309
  const token = this.configuration.accessToken;
286
310
  const tokenString = await token("bearer", []);
@@ -300,7 +324,7 @@ export class StatsApi extends runtime.BaseAPI {
300
324
  }
301
325
 
302
326
  /**
303
- * Returns total earnings over time grouped by currency for the seller within the specified date range.
327
+ * Returns total earnings over time grouped by currency for the seller within the specified date range. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
304
328
  * Get earnings over time by currency
305
329
  */
306
330
  async getTotalEarningsByCurrencyOverTime(requestParameters: StatsApiGetTotalEarningsByCurrencyOverTimeRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalEarningsByCurrencyOverTimeStatsItemDto>> {
@@ -309,7 +333,7 @@ export class StatsApi extends runtime.BaseAPI {
309
333
  }
310
334
 
311
335
  /**
312
- * Returns the total monthly rent income grouped by currency for the seller.
336
+ * Returns the total monthly rent income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
313
337
  * Get monthly rent income by currency
314
338
  */
315
339
  async getTotalMonthlyRentIncomeByCurrencyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto>>> {
@@ -317,6 +341,10 @@ export class StatsApi extends runtime.BaseAPI {
317
341
 
318
342
  const headerParameters: runtime.HTTPHeaders = {};
319
343
 
344
+ if (this.configuration && this.configuration.apiKey) {
345
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
346
+ }
347
+
320
348
  if (this.configuration && this.configuration.accessToken) {
321
349
  const token = this.configuration.accessToken;
322
350
  const tokenString = await token("bearer", []);
@@ -336,7 +364,7 @@ export class StatsApi extends runtime.BaseAPI {
336
364
  }
337
365
 
338
366
  /**
339
- * Returns the total monthly rent income grouped by currency for the seller.
367
+ * Returns the total monthly rent income grouped by currency for the seller. **API key scope required:** `STATS_READ`. Requests authenticated with a seller session do not need any scope.
340
368
  * Get monthly rent income by currency
341
369
  */
342
370
  async getTotalMonthlyRentIncomeByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto>> {
@@ -40,7 +40,7 @@ export interface SubscriptionsApiGetAllSubscriptionsRequest {
40
40
  export class SubscriptionsApi extends runtime.BaseAPI {
41
41
 
42
42
  /**
43
- * Lists subscriptions for the seller account.
43
+ * Lists subscriptions for the seller account. **API key scope required:** `SUBSCRIPTIONS_READ`. Requests authenticated with a seller session do not need any scope.
44
44
  * List seller subscriptions
45
45
  */
46
46
  async getAllSubscriptionsRaw(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response1>> {
@@ -72,6 +72,10 @@ export class SubscriptionsApi extends runtime.BaseAPI {
72
72
 
73
73
  const headerParameters: runtime.HTTPHeaders = {};
74
74
 
75
+ if (this.configuration && this.configuration.apiKey) {
76
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
77
+ }
78
+
75
79
  if (this.configuration && this.configuration.accessToken) {
76
80
  const token = this.configuration.accessToken;
77
81
  const tokenString = await token("bearer", []);
@@ -91,7 +95,7 @@ export class SubscriptionsApi extends runtime.BaseAPI {
91
95
  }
92
96
 
93
97
  /**
94
- * Lists subscriptions for the seller account.
98
+ * Lists subscriptions for the seller account. **API key scope required:** `SUBSCRIPTIONS_READ`. Requests authenticated with a seller session do not need any scope.
95
99
  * List seller subscriptions
96
100
  */
97
101
  async getAllSubscriptions(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response1> {
@@ -55,7 +55,7 @@ export interface TasksApiUpdateTaskMuteStatusRequest {
55
55
  export class TasksApi extends runtime.BaseAPI {
56
56
 
57
57
  /**
58
- * Returns task information for the seller.
58
+ * Returns task information for the seller. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
59
59
  * Get task details
60
60
  */
61
61
  async getTaskRaw(requestParameters: TasksApiGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDetailsDto>> {
@@ -70,6 +70,10 @@ export class TasksApi extends runtime.BaseAPI {
70
70
 
71
71
  const headerParameters: runtime.HTTPHeaders = {};
72
72
 
73
+ if (this.configuration && this.configuration.apiKey) {
74
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
75
+ }
76
+
73
77
  if (this.configuration && this.configuration.accessToken) {
74
78
  const token = this.configuration.accessToken;
75
79
  const tokenString = await token("bearer", []);
@@ -89,7 +93,7 @@ export class TasksApi extends runtime.BaseAPI {
89
93
  }
90
94
 
91
95
  /**
92
- * Returns task information for the seller.
96
+ * Returns task information for the seller. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
93
97
  * Get task details
94
98
  */
95
99
  async getTask(requestParameters: TasksApiGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDetailsDto> {
@@ -98,7 +102,7 @@ export class TasksApi extends runtime.BaseAPI {
98
102
  }
99
103
 
100
104
  /**
101
- * Lists tasks for the seller account.
105
+ * Lists tasks for the seller account. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
102
106
  * List seller tasks
103
107
  */
104
108
  async listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
@@ -130,6 +134,10 @@ export class TasksApi extends runtime.BaseAPI {
130
134
 
131
135
  const headerParameters: runtime.HTTPHeaders = {};
132
136
 
137
+ if (this.configuration && this.configuration.apiKey) {
138
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
139
+ }
140
+
133
141
  if (this.configuration && this.configuration.accessToken) {
134
142
  const token = this.configuration.accessToken;
135
143
  const tokenString = await token("bearer", []);
@@ -149,7 +157,7 @@ export class TasksApi extends runtime.BaseAPI {
149
157
  }
150
158
 
151
159
  /**
152
- * Lists tasks for the seller account.
160
+ * Lists tasks for the seller account. **API key scope required:** `TASKS_READ`. Requests authenticated with a seller session do not need any scope.
153
161
  * List seller tasks
154
162
  */
155
163
  async list(requestParameters: TasksApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
@@ -158,7 +166,7 @@ export class TasksApi extends runtime.BaseAPI {
158
166
  }
159
167
 
160
168
  /**
161
- * Mutes or unmutes task notifications for the seller.
169
+ * 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.
162
170
  * Update task mute status
163
171
  */
164
172
  async updateTaskMuteStatusRaw(requestParameters: TasksApiUpdateTaskMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -182,6 +190,10 @@ export class TasksApi extends runtime.BaseAPI {
182
190
 
183
191
  headerParameters['Content-Type'] = 'application/json';
184
192
 
193
+ if (this.configuration && this.configuration.apiKey) {
194
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
195
+ }
196
+
185
197
  if (this.configuration && this.configuration.accessToken) {
186
198
  const token = this.configuration.accessToken;
187
199
  const tokenString = await token("bearer", []);
@@ -202,7 +214,7 @@ export class TasksApi extends runtime.BaseAPI {
202
214
  }
203
215
 
204
216
  /**
205
- * Mutes or unmutes task notifications for the seller.
217
+ * 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
218
  * Update task mute status
207
219
  */
208
220
  async updateTaskMuteStatus(requestParameters: TasksApiUpdateTaskMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {