@ichos/sdk 1.0.9 → 1.0.10
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.
- package/dist/Client.d.ts +0 -3
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +0 -5
- package/dist/Client.js.map +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +1 -1
- package/dist/api/errors/ForbiddenError.d.ts.map +1 -1
- package/dist/api/errors/ForbiddenError.js.map +1 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +7 -0
- package/dist/api/errors/TooManyRequestsError.d.ts.map +1 -0
- package/dist/api/errors/TooManyRequestsError.js +18 -0
- package/dist/api/errors/TooManyRequestsError.js.map +1 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.d.ts.map +1 -1
- package/dist/api/errors/index.js +1 -0
- package/dist/api/errors/index.js.map +1 -1
- package/dist/api/resources/ads/client/Client.d.ts +12 -0
- package/dist/api/resources/ads/client/Client.d.ts.map +1 -1
- package/dist/api/resources/ads/client/Client.js +36 -0
- package/dist/api/resources/ads/client/Client.js.map +1 -1
- package/dist/api/resources/audio/client/Client.d.ts +7 -0
- package/dist/api/resources/audio/client/Client.d.ts.map +1 -1
- package/dist/api/resources/audio/client/Client.js +21 -0
- package/dist/api/resources/audio/client/Client.js.map +1 -1
- package/dist/api/resources/episodes/client/Client.d.ts +13 -19
- package/dist/api/resources/episodes/client/Client.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/Client.js +37 -60
- package/dist/api/resources/episodes/client/Client.js.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.d.ts +0 -10
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.js +0 -6
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.js.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.d.ts +1 -10
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.js +0 -6
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.js.map +1 -1
- package/dist/api/resources/episodes/client/requests/index.d.ts +0 -1
- package/dist/api/resources/episodes/client/requests/index.d.ts.map +1 -1
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.d.ts.map +1 -1
- package/dist/api/resources/index.js +0 -2
- package/dist/api/resources/index.js.map +1 -1
- package/dist/api/resources/organizations/client/Client.d.ts +3 -0
- package/dist/api/resources/organizations/client/Client.d.ts.map +1 -1
- package/dist/api/resources/organizations/client/Client.js +9 -0
- package/dist/api/resources/organizations/client/Client.js.map +1 -1
- package/dist/api/resources/podcasts/client/Client.d.ts +34 -19
- package/dist/api/resources/podcasts/client/Client.d.ts.map +1 -1
- package/dist/api/resources/podcasts/client/Client.js +100 -59
- package/dist/api/resources/podcasts/client/Client.js.map +1 -1
- package/dist/api/resources/podcasts/client/requests/GetAverageMonthlyListenersRequest.d.ts.map +1 -0
- package/dist/api/resources/podcasts/client/requests/GetAverageMonthlyListenersRequest.js.map +1 -0
- package/dist/api/resources/podcasts/client/requests/PodcastCreate.d.ts +1 -0
- package/dist/api/resources/podcasts/client/requests/PodcastCreate.d.ts.map +1 -1
- package/dist/api/resources/podcasts/client/requests/PodcastCreate.js.map +1 -1
- package/dist/api/resources/podcasts/client/requests/PodcastUpdate.d.ts +1 -0
- package/dist/api/resources/podcasts/client/requests/PodcastUpdate.d.ts.map +1 -1
- package/dist/api/resources/podcasts/client/requests/PodcastUpdate.js.map +1 -1
- package/dist/api/resources/podcasts/client/requests/index.d.ts +1 -1
- package/dist/api/resources/podcasts/client/requests/index.d.ts.map +1 -1
- package/dist/api/resources/segments/client/Client.js.map +1 -1
- package/dist/api/resources/users/client/Client.d.ts +5 -0
- package/dist/api/resources/users/client/Client.d.ts.map +1 -1
- package/dist/api/resources/users/client/Client.js +15 -0
- package/dist/api/resources/users/client/Client.js.map +1 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -0
- package/dist/api/resources/webhooks/client/Client.d.ts.map +1 -1
- package/dist/api/resources/webhooks/client/Client.js +12 -0
- package/dist/api/resources/webhooks/client/Client.js.map +1 -1
- package/dist/api/types/EpisodeCreateResponse.d.ts +1 -1
- package/dist/api/types/EpisodeCreateResponse.d.ts.map +1 -1
- package/dist/api/types/{EpisodeCreatedResponseData.d.ts → EpisodeCreateResponseData.d.ts} +6 -6
- package/dist/api/types/EpisodeCreateResponseData.d.ts.map +1 -0
- package/dist/api/types/{EpisodeCreatedResponseData.js → EpisodeCreateResponseData.js} +7 -7
- package/dist/api/types/EpisodeCreateResponseData.js.map +1 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts +6 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts.map +1 -0
- package/dist/api/types/{StringOrNullResponse.js → ForbiddenErrorBody.js} +1 -1
- package/dist/api/types/ForbiddenErrorBody.js.map +1 -0
- package/dist/api/types/ForbiddenErrorResponse.d.ts +7 -0
- package/dist/api/types/ForbiddenErrorResponse.d.ts.map +1 -0
- package/dist/api/{resources/episodes/client/requests/GetEpisodeCoverRequest.js → types/ForbiddenErrorResponse.js} +1 -1
- package/dist/api/types/ForbiddenErrorResponse.js.map +1 -0
- package/dist/api/types/InternalServerErrorBody.d.ts +0 -3
- package/dist/api/types/InternalServerErrorBody.d.ts.map +1 -1
- package/dist/api/types/NotFoundErrorBody.d.ts +0 -3
- package/dist/api/types/NotFoundErrorBody.d.ts.map +1 -1
- package/dist/api/types/PodcastCreateResponse.d.ts +7 -0
- package/dist/api/types/PodcastCreateResponse.d.ts.map +1 -0
- package/dist/api/types/{RetrieveCoverResponse.js → PodcastCreateResponse.js} +1 -1
- package/dist/api/types/PodcastCreateResponse.js.map +1 -0
- package/dist/api/types/PodcastCreateResponseData.d.ts +79 -0
- package/dist/api/types/PodcastCreateResponseData.d.ts.map +1 -0
- package/dist/api/types/PodcastCreateResponseData.js +22 -0
- package/dist/api/types/PodcastCreateResponseData.js.map +1 -0
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +7 -0
- package/dist/api/types/TooManyRequestsErrorBody.d.ts.map +1 -0
- package/dist/api/{resources/podcasts/client/requests/GetPodcastCoverRequest.js → types/TooManyRequestsErrorBody.js} +1 -1
- package/dist/api/types/TooManyRequestsErrorBody.js.map +1 -0
- package/dist/api/types/TooManyRequestsErrorResponse.d.ts +7 -0
- package/dist/api/types/TooManyRequestsErrorResponse.d.ts.map +1 -0
- package/dist/api/types/TooManyRequestsErrorResponse.js +3 -0
- package/dist/api/types/TooManyRequestsErrorResponse.js.map +1 -0
- package/dist/api/types/UnauthorizedErrorBody.d.ts +0 -3
- package/dist/api/types/UnauthorizedErrorBody.d.ts.map +1 -1
- package/dist/api/types/ValidationError.d.ts +8 -0
- package/dist/api/types/ValidationError.d.ts.map +1 -0
- package/dist/api/types/{UnauthenticatedError.js → ValidationError.js} +1 -1
- package/dist/api/types/ValidationError.js.map +1 -0
- package/dist/api/types/ValidationErrorResponse.d.ts +1 -1
- package/dist/api/types/ValidationErrorResponse.d.ts.map +1 -1
- package/dist/api/types/ValidationIssue.d.ts +1 -0
- package/dist/api/types/ValidationIssue.d.ts.map +1 -1
- package/dist/api/types/ValidationIssue.js +1 -0
- package/dist/api/types/ValidationIssue.js.map +1 -1
- package/dist/api/types/index.d.ts +8 -5
- package/dist/api/types/index.d.ts.map +1 -1
- package/dist/api/types/index.js +8 -5
- package/dist/api/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Client.ts +0 -6
- package/src/api/errors/ForbiddenError.ts +1 -1
- package/src/api/errors/TooManyRequestsError.ts +22 -0
- package/src/api/errors/index.ts +1 -0
- package/src/api/resources/ads/client/Client.ts +84 -12
- package/src/api/resources/audio/client/Client.ts +42 -0
- package/src/api/resources/episodes/client/Client.ts +85 -107
- package/src/api/resources/episodes/client/requests/EpisodeCreate.ts +0 -10
- package/src/api/resources/episodes/client/requests/EpisodeUpdate.ts +1 -10
- package/src/api/resources/episodes/client/requests/index.ts +0 -1
- package/src/api/resources/index.ts +0 -2
- package/src/api/resources/organizations/client/Client.ts +21 -3
- package/src/api/resources/podcasts/client/Client.ts +190 -110
- package/src/api/resources/podcasts/client/requests/PodcastCreate.ts +1 -0
- package/src/api/resources/podcasts/client/requests/PodcastUpdate.ts +1 -0
- package/src/api/resources/podcasts/client/requests/index.ts +1 -1
- package/src/api/resources/segments/client/Client.ts +6 -6
- package/src/api/resources/users/client/Client.ts +35 -5
- package/src/api/resources/webhooks/client/Client.ts +28 -4
- package/src/api/types/EpisodeCreateResponse.ts +1 -1
- package/src/api/types/{EpisodeCreatedResponseData.ts → EpisodeCreateResponseData.ts} +5 -5
- package/src/api/types/{UnauthenticatedError.ts → ForbiddenErrorBody.ts} +1 -4
- package/src/api/types/{UnauthenticatedErrorResponse.ts → ForbiddenErrorResponse.ts} +2 -2
- package/src/api/types/InternalServerErrorBody.ts +0 -3
- package/src/api/types/NotFoundErrorBody.ts +0 -3
- package/src/api/types/{StringOrNullResponse.ts → PodcastCreateResponse.ts} +2 -2
- package/src/api/types/PodcastCreateResponseData.ts +82 -0
- package/src/api/types/TooManyRequestsErrorBody.ts +8 -0
- package/src/api/types/TooManyRequestsErrorResponse.ts +9 -0
- package/src/api/types/UnauthorizedErrorBody.ts +0 -3
- package/src/api/types/ValidationError.ts +10 -0
- package/src/api/types/ValidationErrorResponse.ts +1 -1
- package/src/api/types/ValidationIssue.ts +1 -0
- package/src/api/types/index.ts +8 -5
- package/dist/api/resources/analytics/client/Client.d.ts +0 -29
- package/dist/api/resources/analytics/client/Client.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/Client.js +0 -69
- package/dist/api/resources/analytics/client/Client.js.map +0 -1
- package/dist/api/resources/analytics/client/index.d.ts +0 -2
- package/dist/api/resources/analytics/client/index.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/index.js +0 -2
- package/dist/api/resources/analytics/client/index.js.map +0 -1
- package/dist/api/resources/analytics/client/requests/GetAverageMonthlyListenersRequest.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/requests/GetAverageMonthlyListenersRequest.js.map +0 -1
- package/dist/api/resources/analytics/client/requests/index.d.ts +0 -2
- package/dist/api/resources/analytics/client/requests/index.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/requests/index.js +0 -2
- package/dist/api/resources/analytics/client/requests/index.js.map +0 -1
- package/dist/api/resources/analytics/index.d.ts +0 -2
- package/dist/api/resources/analytics/index.d.ts.map +0 -1
- package/dist/api/resources/analytics/index.js +0 -2
- package/dist/api/resources/analytics/index.js.map +0 -1
- package/dist/api/resources/episodes/client/requests/GetEpisodeCoverRequest.d.ts +0 -11
- package/dist/api/resources/episodes/client/requests/GetEpisodeCoverRequest.d.ts.map +0 -1
- package/dist/api/resources/episodes/client/requests/GetEpisodeCoverRequest.js.map +0 -1
- package/dist/api/resources/podcasts/client/requests/GetPodcastCoverRequest.d.ts +0 -11
- package/dist/api/resources/podcasts/client/requests/GetPodcastCoverRequest.d.ts.map +0 -1
- package/dist/api/resources/podcasts/client/requests/GetPodcastCoverRequest.js.map +0 -1
- package/dist/api/types/EpisodeCreatedResponseData.d.ts.map +0 -1
- package/dist/api/types/EpisodeCreatedResponseData.js.map +0 -1
- package/dist/api/types/RetrieveCoverResponse.d.ts +0 -12
- package/dist/api/types/RetrieveCoverResponse.d.ts.map +0 -1
- package/dist/api/types/RetrieveCoverResponse.js.map +0 -1
- package/dist/api/types/StringOrNullResponse.d.ts +0 -7
- package/dist/api/types/StringOrNullResponse.d.ts.map +0 -1
- package/dist/api/types/StringOrNullResponse.js.map +0 -1
- package/dist/api/types/UnauthenticatedError.d.ts +0 -9
- package/dist/api/types/UnauthenticatedError.d.ts.map +0 -1
- package/dist/api/types/UnauthenticatedError.js.map +0 -1
- package/dist/api/types/UnauthenticatedErrorResponse.d.ts +0 -7
- package/dist/api/types/UnauthenticatedErrorResponse.d.ts.map +0 -1
- package/dist/api/types/UnauthenticatedErrorResponse.js +0 -3
- package/dist/api/types/UnauthenticatedErrorResponse.js.map +0 -1
- package/src/api/resources/analytics/client/Client.ts +0 -110
- package/src/api/resources/analytics/client/index.ts +0 -1
- package/src/api/resources/analytics/client/requests/index.ts +0 -1
- package/src/api/resources/analytics/index.ts +0 -1
- package/src/api/resources/episodes/client/requests/GetEpisodeCoverRequest.ts +0 -12
- package/src/api/resources/podcasts/client/requests/GetPodcastCoverRequest.ts +0 -12
- package/src/api/types/RetrieveCoverResponse.ts +0 -15
- /package/dist/api/resources/{analytics → podcasts}/client/requests/GetAverageMonthlyListenersRequest.d.ts +0 -0
- /package/dist/api/resources/{analytics → podcasts}/client/requests/GetAverageMonthlyListenersRequest.js +0 -0
- /package/src/api/resources/{analytics → podcasts}/client/requests/GetAverageMonthlyListenersRequest.ts +0 -0
|
@@ -33,6 +33,7 @@ export class AdsClient {
|
|
|
33
33
|
*
|
|
34
34
|
* @throws {@link Ichos.UnauthorizedError}
|
|
35
35
|
* @throws {@link Ichos.ForbiddenError}
|
|
36
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
36
37
|
* @throws {@link Ichos.InternalServerError}
|
|
37
38
|
*
|
|
38
39
|
* @example
|
|
@@ -93,7 +94,12 @@ export class AdsClient {
|
|
|
93
94
|
);
|
|
94
95
|
case 403:
|
|
95
96
|
throw new Ichos.ForbiddenError(
|
|
96
|
-
_response.error.body as Ichos.
|
|
97
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
98
|
+
_response.rawResponse,
|
|
99
|
+
);
|
|
100
|
+
case 429:
|
|
101
|
+
throw new Ichos.TooManyRequestsError(
|
|
102
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
97
103
|
_response.rawResponse,
|
|
98
104
|
);
|
|
99
105
|
case 500:
|
|
@@ -123,6 +129,7 @@ export class AdsClient {
|
|
|
123
129
|
* @throws {@link Ichos.UnauthorizedError}
|
|
124
130
|
* @throws {@link Ichos.ForbiddenError}
|
|
125
131
|
* @throws {@link Ichos.NotFoundError}
|
|
132
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
126
133
|
* @throws {@link Ichos.InternalServerError}
|
|
127
134
|
*
|
|
128
135
|
* @example
|
|
@@ -183,7 +190,7 @@ export class AdsClient {
|
|
|
183
190
|
);
|
|
184
191
|
case 403:
|
|
185
192
|
throw new Ichos.ForbiddenError(
|
|
186
|
-
_response.error.body as Ichos.
|
|
193
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
187
194
|
_response.rawResponse,
|
|
188
195
|
);
|
|
189
196
|
case 404:
|
|
@@ -191,6 +198,11 @@ export class AdsClient {
|
|
|
191
198
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
192
199
|
_response.rawResponse,
|
|
193
200
|
);
|
|
201
|
+
case 429:
|
|
202
|
+
throw new Ichos.TooManyRequestsError(
|
|
203
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
204
|
+
_response.rawResponse,
|
|
205
|
+
);
|
|
194
206
|
case 500:
|
|
195
207
|
throw new Ichos.InternalServerError(
|
|
196
208
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -216,6 +228,7 @@ export class AdsClient {
|
|
|
216
228
|
*
|
|
217
229
|
* @throws {@link Ichos.UnauthorizedError}
|
|
218
230
|
* @throws {@link Ichos.ForbiddenError}
|
|
231
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
219
232
|
* @throws {@link Ichos.InternalServerError}
|
|
220
233
|
*
|
|
221
234
|
* @example
|
|
@@ -274,7 +287,12 @@ export class AdsClient {
|
|
|
274
287
|
);
|
|
275
288
|
case 403:
|
|
276
289
|
throw new Ichos.ForbiddenError(
|
|
277
|
-
_response.error.body as Ichos.
|
|
290
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
291
|
+
_response.rawResponse,
|
|
292
|
+
);
|
|
293
|
+
case 429:
|
|
294
|
+
throw new Ichos.TooManyRequestsError(
|
|
295
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
278
296
|
_response.rawResponse,
|
|
279
297
|
);
|
|
280
298
|
case 500:
|
|
@@ -303,6 +321,7 @@ export class AdsClient {
|
|
|
303
321
|
*
|
|
304
322
|
* @throws {@link Ichos.UnauthorizedError}
|
|
305
323
|
* @throws {@link Ichos.ForbiddenError}
|
|
324
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
306
325
|
* @throws {@link Ichos.InternalServerError}
|
|
307
326
|
*
|
|
308
327
|
* @example
|
|
@@ -362,7 +381,12 @@ export class AdsClient {
|
|
|
362
381
|
);
|
|
363
382
|
case 403:
|
|
364
383
|
throw new Ichos.ForbiddenError(
|
|
365
|
-
_response.error.body as Ichos.
|
|
384
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
385
|
+
_response.rawResponse,
|
|
386
|
+
);
|
|
387
|
+
case 429:
|
|
388
|
+
throw new Ichos.TooManyRequestsError(
|
|
389
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
366
390
|
_response.rawResponse,
|
|
367
391
|
);
|
|
368
392
|
case 500:
|
|
@@ -390,6 +414,7 @@ export class AdsClient {
|
|
|
390
414
|
* @throws {@link Ichos.UnauthorizedError}
|
|
391
415
|
* @throws {@link Ichos.ForbiddenError}
|
|
392
416
|
* @throws {@link Ichos.NotFoundError}
|
|
417
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
393
418
|
* @throws {@link Ichos.InternalServerError}
|
|
394
419
|
*
|
|
395
420
|
* @example
|
|
@@ -440,7 +465,7 @@ export class AdsClient {
|
|
|
440
465
|
);
|
|
441
466
|
case 403:
|
|
442
467
|
throw new Ichos.ForbiddenError(
|
|
443
|
-
_response.error.body as Ichos.
|
|
468
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
444
469
|
_response.rawResponse,
|
|
445
470
|
);
|
|
446
471
|
case 404:
|
|
@@ -448,6 +473,11 @@ export class AdsClient {
|
|
|
448
473
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
449
474
|
_response.rawResponse,
|
|
450
475
|
);
|
|
476
|
+
case 429:
|
|
477
|
+
throw new Ichos.TooManyRequestsError(
|
|
478
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
479
|
+
_response.rawResponse,
|
|
480
|
+
);
|
|
451
481
|
case 500:
|
|
452
482
|
throw new Ichos.InternalServerError(
|
|
453
483
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -474,6 +504,7 @@ export class AdsClient {
|
|
|
474
504
|
* @throws {@link Ichos.UnauthorizedError}
|
|
475
505
|
* @throws {@link Ichos.ForbiddenError}
|
|
476
506
|
* @throws {@link Ichos.NotFoundError}
|
|
507
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
477
508
|
* @throws {@link Ichos.InternalServerError}
|
|
478
509
|
*
|
|
479
510
|
* @example
|
|
@@ -532,7 +563,7 @@ export class AdsClient {
|
|
|
532
563
|
);
|
|
533
564
|
case 403:
|
|
534
565
|
throw new Ichos.ForbiddenError(
|
|
535
|
-
_response.error.body as Ichos.
|
|
566
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
536
567
|
_response.rawResponse,
|
|
537
568
|
);
|
|
538
569
|
case 404:
|
|
@@ -540,6 +571,11 @@ export class AdsClient {
|
|
|
540
571
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
541
572
|
_response.rawResponse,
|
|
542
573
|
);
|
|
574
|
+
case 429:
|
|
575
|
+
throw new Ichos.TooManyRequestsError(
|
|
576
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
577
|
+
_response.rawResponse,
|
|
578
|
+
);
|
|
543
579
|
case 500:
|
|
544
580
|
throw new Ichos.InternalServerError(
|
|
545
581
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -565,6 +601,7 @@ export class AdsClient {
|
|
|
565
601
|
* @throws {@link Ichos.UnauthorizedError}
|
|
566
602
|
* @throws {@link Ichos.ForbiddenError}
|
|
567
603
|
* @throws {@link Ichos.NotFoundError}
|
|
604
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
568
605
|
* @throws {@link Ichos.InternalServerError}
|
|
569
606
|
*
|
|
570
607
|
* @example
|
|
@@ -615,7 +652,7 @@ export class AdsClient {
|
|
|
615
652
|
);
|
|
616
653
|
case 403:
|
|
617
654
|
throw new Ichos.ForbiddenError(
|
|
618
|
-
_response.error.body as Ichos.
|
|
655
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
619
656
|
_response.rawResponse,
|
|
620
657
|
);
|
|
621
658
|
case 404:
|
|
@@ -623,6 +660,11 @@ export class AdsClient {
|
|
|
623
660
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
624
661
|
_response.rawResponse,
|
|
625
662
|
);
|
|
663
|
+
case 429:
|
|
664
|
+
throw new Ichos.TooManyRequestsError(
|
|
665
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
666
|
+
_response.rawResponse,
|
|
667
|
+
);
|
|
626
668
|
case 500:
|
|
627
669
|
throw new Ichos.InternalServerError(
|
|
628
670
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -649,6 +691,7 @@ export class AdsClient {
|
|
|
649
691
|
* @throws {@link Ichos.UnauthorizedError}
|
|
650
692
|
* @throws {@link Ichos.ForbiddenError}
|
|
651
693
|
* @throws {@link Ichos.NotFoundError}
|
|
694
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
652
695
|
* @throws {@link Ichos.InternalServerError}
|
|
653
696
|
*
|
|
654
697
|
* @example
|
|
@@ -706,7 +749,7 @@ export class AdsClient {
|
|
|
706
749
|
);
|
|
707
750
|
case 403:
|
|
708
751
|
throw new Ichos.ForbiddenError(
|
|
709
|
-
_response.error.body as Ichos.
|
|
752
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
710
753
|
_response.rawResponse,
|
|
711
754
|
);
|
|
712
755
|
case 404:
|
|
@@ -714,6 +757,11 @@ export class AdsClient {
|
|
|
714
757
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
715
758
|
_response.rawResponse,
|
|
716
759
|
);
|
|
760
|
+
case 429:
|
|
761
|
+
throw new Ichos.TooManyRequestsError(
|
|
762
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
763
|
+
_response.rawResponse,
|
|
764
|
+
);
|
|
717
765
|
case 500:
|
|
718
766
|
throw new Ichos.InternalServerError(
|
|
719
767
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -739,6 +787,7 @@ export class AdsClient {
|
|
|
739
787
|
* @throws {@link Ichos.UnauthorizedError}
|
|
740
788
|
* @throws {@link Ichos.ForbiddenError}
|
|
741
789
|
* @throws {@link Ichos.NotFoundError}
|
|
790
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
742
791
|
* @throws {@link Ichos.InternalServerError}
|
|
743
792
|
*
|
|
744
793
|
* @example
|
|
@@ -789,7 +838,7 @@ export class AdsClient {
|
|
|
789
838
|
);
|
|
790
839
|
case 403:
|
|
791
840
|
throw new Ichos.ForbiddenError(
|
|
792
|
-
_response.error.body as Ichos.
|
|
841
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
793
842
|
_response.rawResponse,
|
|
794
843
|
);
|
|
795
844
|
case 404:
|
|
@@ -797,6 +846,11 @@ export class AdsClient {
|
|
|
797
846
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
798
847
|
_response.rawResponse,
|
|
799
848
|
);
|
|
849
|
+
case 429:
|
|
850
|
+
throw new Ichos.TooManyRequestsError(
|
|
851
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
852
|
+
_response.rawResponse,
|
|
853
|
+
);
|
|
800
854
|
case 500:
|
|
801
855
|
throw new Ichos.InternalServerError(
|
|
802
856
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -823,6 +877,7 @@ export class AdsClient {
|
|
|
823
877
|
* @throws {@link Ichos.UnauthorizedError}
|
|
824
878
|
* @throws {@link Ichos.ForbiddenError}
|
|
825
879
|
* @throws {@link Ichos.NotFoundError}
|
|
880
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
826
881
|
* @throws {@link Ichos.InternalServerError}
|
|
827
882
|
*
|
|
828
883
|
* @example
|
|
@@ -881,7 +936,7 @@ export class AdsClient {
|
|
|
881
936
|
);
|
|
882
937
|
case 403:
|
|
883
938
|
throw new Ichos.ForbiddenError(
|
|
884
|
-
_response.error.body as Ichos.
|
|
939
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
885
940
|
_response.rawResponse,
|
|
886
941
|
);
|
|
887
942
|
case 404:
|
|
@@ -889,6 +944,11 @@ export class AdsClient {
|
|
|
889
944
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
890
945
|
_response.rawResponse,
|
|
891
946
|
);
|
|
947
|
+
case 429:
|
|
948
|
+
throw new Ichos.TooManyRequestsError(
|
|
949
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
950
|
+
_response.rawResponse,
|
|
951
|
+
);
|
|
892
952
|
case 500:
|
|
893
953
|
throw new Ichos.InternalServerError(
|
|
894
954
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -915,6 +975,7 @@ export class AdsClient {
|
|
|
915
975
|
* @throws {@link Ichos.UnauthorizedError}
|
|
916
976
|
* @throws {@link Ichos.ForbiddenError}
|
|
917
977
|
* @throws {@link Ichos.NotFoundError}
|
|
978
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
918
979
|
* @throws {@link Ichos.InternalServerError}
|
|
919
980
|
*
|
|
920
981
|
* @example
|
|
@@ -973,7 +1034,7 @@ export class AdsClient {
|
|
|
973
1034
|
);
|
|
974
1035
|
case 403:
|
|
975
1036
|
throw new Ichos.ForbiddenError(
|
|
976
|
-
_response.error.body as Ichos.
|
|
1037
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
977
1038
|
_response.rawResponse,
|
|
978
1039
|
);
|
|
979
1040
|
case 404:
|
|
@@ -981,6 +1042,11 @@ export class AdsClient {
|
|
|
981
1042
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
982
1043
|
_response.rawResponse,
|
|
983
1044
|
);
|
|
1045
|
+
case 429:
|
|
1046
|
+
throw new Ichos.TooManyRequestsError(
|
|
1047
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1048
|
+
_response.rawResponse,
|
|
1049
|
+
);
|
|
984
1050
|
case 500:
|
|
985
1051
|
throw new Ichos.InternalServerError(
|
|
986
1052
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -1007,6 +1073,7 @@ export class AdsClient {
|
|
|
1007
1073
|
* @throws {@link Ichos.UnauthorizedError}
|
|
1008
1074
|
* @throws {@link Ichos.ForbiddenError}
|
|
1009
1075
|
* @throws {@link Ichos.NotFoundError}
|
|
1076
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
1010
1077
|
* @throws {@link Ichos.InternalServerError}
|
|
1011
1078
|
*
|
|
1012
1079
|
* @example
|
|
@@ -1062,7 +1129,7 @@ export class AdsClient {
|
|
|
1062
1129
|
);
|
|
1063
1130
|
case 403:
|
|
1064
1131
|
throw new Ichos.ForbiddenError(
|
|
1065
|
-
_response.error.body as Ichos.
|
|
1132
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
1066
1133
|
_response.rawResponse,
|
|
1067
1134
|
);
|
|
1068
1135
|
case 404:
|
|
@@ -1070,6 +1137,11 @@ export class AdsClient {
|
|
|
1070
1137
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
1071
1138
|
_response.rawResponse,
|
|
1072
1139
|
);
|
|
1140
|
+
case 429:
|
|
1141
|
+
throw new Ichos.TooManyRequestsError(
|
|
1142
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1143
|
+
_response.rawResponse,
|
|
1144
|
+
);
|
|
1073
1145
|
case 500:
|
|
1074
1146
|
throw new Ichos.InternalServerError(
|
|
1075
1147
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -30,6 +30,7 @@ export class AudioClient {
|
|
|
30
30
|
* @param {AudioClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link Ichos.UnauthorizedError}
|
|
33
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
33
34
|
* @throws {@link Ichos.InternalServerError}
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
@@ -85,6 +86,11 @@ export class AudioClient {
|
|
|
85
86
|
_response.error.body as Ichos.UnauthorizedErrorResponse,
|
|
86
87
|
_response.rawResponse,
|
|
87
88
|
);
|
|
89
|
+
case 429:
|
|
90
|
+
throw new Ichos.TooManyRequestsError(
|
|
91
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
92
|
+
_response.rawResponse,
|
|
93
|
+
);
|
|
88
94
|
case 500:
|
|
89
95
|
throw new Ichos.InternalServerError(
|
|
90
96
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -109,6 +115,7 @@ export class AudioClient {
|
|
|
109
115
|
* @param {AudioClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
116
|
*
|
|
111
117
|
* @throws {@link Ichos.UnauthorizedError}
|
|
118
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
112
119
|
* @throws {@link Ichos.InternalServerError}
|
|
113
120
|
*
|
|
114
121
|
* @example
|
|
@@ -157,6 +164,11 @@ export class AudioClient {
|
|
|
157
164
|
_response.error.body as Ichos.UnauthorizedErrorResponse,
|
|
158
165
|
_response.rawResponse,
|
|
159
166
|
);
|
|
167
|
+
case 429:
|
|
168
|
+
throw new Ichos.TooManyRequestsError(
|
|
169
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
170
|
+
_response.rawResponse,
|
|
171
|
+
);
|
|
160
172
|
case 500:
|
|
161
173
|
throw new Ichos.InternalServerError(
|
|
162
174
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -182,6 +194,7 @@ export class AudioClient {
|
|
|
182
194
|
*
|
|
183
195
|
* @throws {@link Ichos.UnauthorizedError}
|
|
184
196
|
* @throws {@link Ichos.NotFoundError}
|
|
197
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
185
198
|
* @throws {@link Ichos.InternalServerError}
|
|
186
199
|
*
|
|
187
200
|
* @example
|
|
@@ -240,6 +253,11 @@ export class AudioClient {
|
|
|
240
253
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
241
254
|
_response.rawResponse,
|
|
242
255
|
);
|
|
256
|
+
case 429:
|
|
257
|
+
throw new Ichos.TooManyRequestsError(
|
|
258
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
259
|
+
_response.rawResponse,
|
|
260
|
+
);
|
|
243
261
|
case 500:
|
|
244
262
|
throw new Ichos.InternalServerError(
|
|
245
263
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -265,6 +283,7 @@ export class AudioClient {
|
|
|
265
283
|
* @param {AudioClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
266
284
|
*
|
|
267
285
|
* @throws {@link Ichos.UnauthorizedError}
|
|
286
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
268
287
|
* @throws {@link Ichos.InternalServerError}
|
|
269
288
|
*
|
|
270
289
|
* @example
|
|
@@ -325,6 +344,11 @@ export class AudioClient {
|
|
|
325
344
|
_response.error.body as Ichos.UnauthorizedErrorResponse,
|
|
326
345
|
_response.rawResponse,
|
|
327
346
|
);
|
|
347
|
+
case 429:
|
|
348
|
+
throw new Ichos.TooManyRequestsError(
|
|
349
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
350
|
+
_response.rawResponse,
|
|
351
|
+
);
|
|
328
352
|
case 500:
|
|
329
353
|
throw new Ichos.InternalServerError(
|
|
330
354
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -350,6 +374,7 @@ export class AudioClient {
|
|
|
350
374
|
*
|
|
351
375
|
* @throws {@link Ichos.UnauthorizedError}
|
|
352
376
|
* @throws {@link Ichos.NotFoundError}
|
|
377
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
353
378
|
* @throws {@link Ichos.InternalServerError}
|
|
354
379
|
*
|
|
355
380
|
* @example
|
|
@@ -408,6 +433,11 @@ export class AudioClient {
|
|
|
408
433
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
409
434
|
_response.rawResponse,
|
|
410
435
|
);
|
|
436
|
+
case 429:
|
|
437
|
+
throw new Ichos.TooManyRequestsError(
|
|
438
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
439
|
+
_response.rawResponse,
|
|
440
|
+
);
|
|
411
441
|
case 500:
|
|
412
442
|
throw new Ichos.InternalServerError(
|
|
413
443
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -433,6 +463,7 @@ export class AudioClient {
|
|
|
433
463
|
*
|
|
434
464
|
* @throws {@link Ichos.UnauthorizedError}
|
|
435
465
|
* @throws {@link Ichos.NotFoundError}
|
|
466
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
436
467
|
* @throws {@link Ichos.InternalServerError}
|
|
437
468
|
*
|
|
438
469
|
* @example
|
|
@@ -491,6 +522,11 @@ export class AudioClient {
|
|
|
491
522
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
492
523
|
_response.rawResponse,
|
|
493
524
|
);
|
|
525
|
+
case 429:
|
|
526
|
+
throw new Ichos.TooManyRequestsError(
|
|
527
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
528
|
+
_response.rawResponse,
|
|
529
|
+
);
|
|
494
530
|
case 500:
|
|
495
531
|
throw new Ichos.InternalServerError(
|
|
496
532
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -513,6 +549,7 @@ export class AudioClient {
|
|
|
513
549
|
* @param {AudioClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
514
550
|
*
|
|
515
551
|
* @throws {@link Ichos.UnauthorizedError}
|
|
552
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
516
553
|
* @throws {@link Ichos.InternalServerError}
|
|
517
554
|
*
|
|
518
555
|
* @example
|
|
@@ -568,6 +605,11 @@ export class AudioClient {
|
|
|
568
605
|
_response.error.body as Ichos.UnauthorizedErrorResponse,
|
|
569
606
|
_response.rawResponse,
|
|
570
607
|
);
|
|
608
|
+
case 429:
|
|
609
|
+
throw new Ichos.TooManyRequestsError(
|
|
610
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
611
|
+
_response.rawResponse,
|
|
612
|
+
);
|
|
571
613
|
case 500:
|
|
572
614
|
throw new Ichos.InternalServerError(
|
|
573
615
|
_response.error.body as Ichos.InternalServerErrorResponse,
|