@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
|
@@ -31,6 +31,7 @@ export class EpisodesClient {
|
|
|
31
31
|
* @throws {@link Ichos.UnauthorizedError}
|
|
32
32
|
* @throws {@link Ichos.ForbiddenError}
|
|
33
33
|
* @throws {@link Ichos.NotFoundError}
|
|
34
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
34
35
|
* @throws {@link Ichos.InternalServerError}
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
@@ -88,7 +89,7 @@ export class EpisodesClient {
|
|
|
88
89
|
);
|
|
89
90
|
case 403:
|
|
90
91
|
throw new Ichos.ForbiddenError(
|
|
91
|
-
_response.error.body as Ichos.
|
|
92
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
92
93
|
_response.rawResponse,
|
|
93
94
|
);
|
|
94
95
|
case 404:
|
|
@@ -96,6 +97,11 @@ export class EpisodesClient {
|
|
|
96
97
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
97
98
|
_response.rawResponse,
|
|
98
99
|
);
|
|
100
|
+
case 429:
|
|
101
|
+
throw new Ichos.TooManyRequestsError(
|
|
102
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
103
|
+
_response.rawResponse,
|
|
104
|
+
);
|
|
99
105
|
case 500:
|
|
100
106
|
throw new Ichos.InternalServerError(
|
|
101
107
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -122,6 +128,7 @@ export class EpisodesClient {
|
|
|
122
128
|
* @throws {@link Ichos.UnauthorizedError}
|
|
123
129
|
* @throws {@link Ichos.ForbiddenError}
|
|
124
130
|
* @throws {@link Ichos.NotFoundError}
|
|
131
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
125
132
|
* @throws {@link Ichos.InternalServerError}
|
|
126
133
|
*
|
|
127
134
|
* @example
|
|
@@ -180,7 +187,7 @@ export class EpisodesClient {
|
|
|
180
187
|
);
|
|
181
188
|
case 403:
|
|
182
189
|
throw new Ichos.ForbiddenError(
|
|
183
|
-
_response.error.body as Ichos.
|
|
190
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
184
191
|
_response.rawResponse,
|
|
185
192
|
);
|
|
186
193
|
case 404:
|
|
@@ -188,6 +195,11 @@ export class EpisodesClient {
|
|
|
188
195
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
189
196
|
_response.rawResponse,
|
|
190
197
|
);
|
|
198
|
+
case 429:
|
|
199
|
+
throw new Ichos.TooManyRequestsError(
|
|
200
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
201
|
+
_response.rawResponse,
|
|
202
|
+
);
|
|
191
203
|
case 500:
|
|
192
204
|
throw new Ichos.InternalServerError(
|
|
193
205
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -213,6 +225,7 @@ export class EpisodesClient {
|
|
|
213
225
|
*
|
|
214
226
|
* @throws {@link Ichos.UnauthorizedError}
|
|
215
227
|
* @throws {@link Ichos.ForbiddenError}
|
|
228
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
216
229
|
* @throws {@link Ichos.InternalServerError}
|
|
217
230
|
*
|
|
218
231
|
* @example
|
|
@@ -295,7 +308,12 @@ export class EpisodesClient {
|
|
|
295
308
|
);
|
|
296
309
|
case 403:
|
|
297
310
|
throw new Ichos.ForbiddenError(
|
|
298
|
-
_response.error.body as Ichos.
|
|
311
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
312
|
+
_response.rawResponse,
|
|
313
|
+
);
|
|
314
|
+
case 429:
|
|
315
|
+
throw new Ichos.TooManyRequestsError(
|
|
316
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
299
317
|
_response.rawResponse,
|
|
300
318
|
);
|
|
301
319
|
case 500:
|
|
@@ -324,6 +342,7 @@ export class EpisodesClient {
|
|
|
324
342
|
* @throws {@link Ichos.UnauthorizedError}
|
|
325
343
|
* @throws {@link Ichos.ForbiddenError}
|
|
326
344
|
* @throws {@link Ichos.NotFoundError}
|
|
345
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
327
346
|
* @throws {@link Ichos.InternalServerError}
|
|
328
347
|
*
|
|
329
348
|
* @example
|
|
@@ -379,7 +398,7 @@ export class EpisodesClient {
|
|
|
379
398
|
);
|
|
380
399
|
case 403:
|
|
381
400
|
throw new Ichos.ForbiddenError(
|
|
382
|
-
_response.error.body as Ichos.
|
|
401
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
383
402
|
_response.rawResponse,
|
|
384
403
|
);
|
|
385
404
|
case 404:
|
|
@@ -387,6 +406,11 @@ export class EpisodesClient {
|
|
|
387
406
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
388
407
|
_response.rawResponse,
|
|
389
408
|
);
|
|
409
|
+
case 429:
|
|
410
|
+
throw new Ichos.TooManyRequestsError(
|
|
411
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
412
|
+
_response.rawResponse,
|
|
413
|
+
);
|
|
390
414
|
case 500:
|
|
391
415
|
throw new Ichos.InternalServerError(
|
|
392
416
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -414,6 +438,7 @@ export class EpisodesClient {
|
|
|
414
438
|
* @throws {@link Ichos.UnauthorizedError}
|
|
415
439
|
* @throws {@link Ichos.ForbiddenError}
|
|
416
440
|
* @throws {@link Ichos.NotFoundError}
|
|
441
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
417
442
|
* @throws {@link Ichos.InternalServerError}
|
|
418
443
|
*
|
|
419
444
|
* @example
|
|
@@ -474,7 +499,7 @@ export class EpisodesClient {
|
|
|
474
499
|
);
|
|
475
500
|
case 403:
|
|
476
501
|
throw new Ichos.ForbiddenError(
|
|
477
|
-
_response.error.body as Ichos.
|
|
502
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
478
503
|
_response.rawResponse,
|
|
479
504
|
);
|
|
480
505
|
case 404:
|
|
@@ -482,6 +507,11 @@ export class EpisodesClient {
|
|
|
482
507
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
483
508
|
_response.rawResponse,
|
|
484
509
|
);
|
|
510
|
+
case 429:
|
|
511
|
+
throw new Ichos.TooManyRequestsError(
|
|
512
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
513
|
+
_response.rawResponse,
|
|
514
|
+
);
|
|
485
515
|
case 500:
|
|
486
516
|
throw new Ichos.InternalServerError(
|
|
487
517
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -500,7 +530,7 @@ export class EpisodesClient {
|
|
|
500
530
|
}
|
|
501
531
|
|
|
502
532
|
/**
|
|
503
|
-
* Update an existing episode
|
|
533
|
+
* Update an existing episode
|
|
504
534
|
* Cover uploads are finalized via storage events; to replace a cover, start a new upload flow.
|
|
505
535
|
*
|
|
506
536
|
* @param {Ichos.EpisodeUpdate} request
|
|
@@ -509,6 +539,7 @@ export class EpisodesClient {
|
|
|
509
539
|
* @throws {@link Ichos.UnauthorizedError}
|
|
510
540
|
* @throws {@link Ichos.ForbiddenError}
|
|
511
541
|
* @throws {@link Ichos.NotFoundError}
|
|
542
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
512
543
|
* @throws {@link Ichos.InternalServerError}
|
|
513
544
|
*
|
|
514
545
|
* @example
|
|
@@ -567,7 +598,7 @@ export class EpisodesClient {
|
|
|
567
598
|
);
|
|
568
599
|
case 403:
|
|
569
600
|
throw new Ichos.ForbiddenError(
|
|
570
|
-
_response.error.body as Ichos.
|
|
601
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
571
602
|
_response.rawResponse,
|
|
572
603
|
);
|
|
573
604
|
case 404:
|
|
@@ -575,6 +606,11 @@ export class EpisodesClient {
|
|
|
575
606
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
576
607
|
_response.rawResponse,
|
|
577
608
|
);
|
|
609
|
+
case 429:
|
|
610
|
+
throw new Ichos.TooManyRequestsError(
|
|
611
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
612
|
+
_response.rawResponse,
|
|
613
|
+
);
|
|
578
614
|
case 500:
|
|
579
615
|
throw new Ichos.InternalServerError(
|
|
580
616
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -601,6 +637,7 @@ export class EpisodesClient {
|
|
|
601
637
|
* @throws {@link Ichos.UnauthorizedError}
|
|
602
638
|
* @throws {@link Ichos.ForbiddenError}
|
|
603
639
|
* @throws {@link Ichos.NotFoundError}
|
|
640
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
604
641
|
* @throws {@link Ichos.InternalServerError}
|
|
605
642
|
*
|
|
606
643
|
* @example
|
|
@@ -656,7 +693,7 @@ export class EpisodesClient {
|
|
|
656
693
|
);
|
|
657
694
|
case 403:
|
|
658
695
|
throw new Ichos.ForbiddenError(
|
|
659
|
-
_response.error.body as Ichos.
|
|
696
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
660
697
|
_response.rawResponse,
|
|
661
698
|
);
|
|
662
699
|
case 404:
|
|
@@ -664,6 +701,11 @@ export class EpisodesClient {
|
|
|
664
701
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
665
702
|
_response.rawResponse,
|
|
666
703
|
);
|
|
704
|
+
case 429:
|
|
705
|
+
throw new Ichos.TooManyRequestsError(
|
|
706
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
707
|
+
_response.rawResponse,
|
|
708
|
+
);
|
|
667
709
|
case 500:
|
|
668
710
|
throw new Ichos.InternalServerError(
|
|
669
711
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -695,6 +737,7 @@ export class EpisodesClient {
|
|
|
695
737
|
* @throws {@link Ichos.UnauthorizedError}
|
|
696
738
|
* @throws {@link Ichos.ForbiddenError}
|
|
697
739
|
* @throws {@link Ichos.NotFoundError}
|
|
740
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
698
741
|
* @throws {@link Ichos.InternalServerError}
|
|
699
742
|
*
|
|
700
743
|
* @example
|
|
@@ -754,7 +797,7 @@ export class EpisodesClient {
|
|
|
754
797
|
);
|
|
755
798
|
case 403:
|
|
756
799
|
throw new Ichos.ForbiddenError(
|
|
757
|
-
_response.error.body as Ichos.
|
|
800
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
758
801
|
_response.rawResponse,
|
|
759
802
|
);
|
|
760
803
|
case 404:
|
|
@@ -762,98 +805,9 @@ export class EpisodesClient {
|
|
|
762
805
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
763
806
|
_response.rawResponse,
|
|
764
807
|
);
|
|
765
|
-
case
|
|
766
|
-
throw new Ichos.
|
|
767
|
-
_response.error.body as Ichos.
|
|
768
|
-
_response.rawResponse,
|
|
769
|
-
);
|
|
770
|
-
default:
|
|
771
|
-
throw new errors.IchosError({
|
|
772
|
-
statusCode: _response.error.statusCode,
|
|
773
|
-
body: _response.error.body,
|
|
774
|
-
rawResponse: _response.rawResponse,
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
return handleNonStatusCodeError(
|
|
780
|
-
_response.error,
|
|
781
|
-
_response.rawResponse,
|
|
782
|
-
"POST",
|
|
783
|
-
"/v1/episodes/{episodeId}/cover/pull",
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* Retrieve the current cover image for an episode.
|
|
789
|
-
*
|
|
790
|
-
* @param {Ichos.GetEpisodeCoverRequest} request
|
|
791
|
-
* @param {EpisodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
792
|
-
*
|
|
793
|
-
* @throws {@link Ichos.UnauthorizedError}
|
|
794
|
-
* @throws {@link Ichos.ForbiddenError}
|
|
795
|
-
* @throws {@link Ichos.NotFoundError}
|
|
796
|
-
* @throws {@link Ichos.InternalServerError}
|
|
797
|
-
*
|
|
798
|
-
* @example
|
|
799
|
-
* await client.episodes.getEpisodeCover({
|
|
800
|
-
* episodeId: "episodeId"
|
|
801
|
-
* })
|
|
802
|
-
*/
|
|
803
|
-
public getEpisodeCover(
|
|
804
|
-
request: Ichos.GetEpisodeCoverRequest,
|
|
805
|
-
requestOptions?: EpisodesClient.RequestOptions,
|
|
806
|
-
): core.HttpResponsePromise<Ichos.RetrieveCoverResponse> {
|
|
807
|
-
return core.HttpResponsePromise.fromPromise(this.__getEpisodeCover(request, requestOptions));
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
private async __getEpisodeCover(
|
|
811
|
-
request: Ichos.GetEpisodeCoverRequest,
|
|
812
|
-
requestOptions?: EpisodesClient.RequestOptions,
|
|
813
|
-
): Promise<core.WithRawResponse<Ichos.RetrieveCoverResponse>> {
|
|
814
|
-
const { episodeId } = request;
|
|
815
|
-
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
816
|
-
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
817
|
-
_authRequest.headers,
|
|
818
|
-
this._options?.headers,
|
|
819
|
-
mergeOnlyDefinedHeaders({ "x-virtual-user": requestOptions?.virtualUser ?? this._options?.virtualUser }),
|
|
820
|
-
requestOptions?.headers,
|
|
821
|
-
);
|
|
822
|
-
const _response = await core.fetcher({
|
|
823
|
-
url: core.url.join(
|
|
824
|
-
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
825
|
-
(await core.Supplier.get(this._options.environment)) ??
|
|
826
|
-
environments.IchosEnvironment.Default,
|
|
827
|
-
`v1/episodes/${core.url.encodePathParam(episodeId)}/cover`,
|
|
828
|
-
),
|
|
829
|
-
method: "GET",
|
|
830
|
-
headers: _headers,
|
|
831
|
-
queryParameters: requestOptions?.queryParams,
|
|
832
|
-
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
833
|
-
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
834
|
-
abortSignal: requestOptions?.abortSignal,
|
|
835
|
-
fetchFn: this._options?.fetch,
|
|
836
|
-
logging: this._options.logging,
|
|
837
|
-
});
|
|
838
|
-
if (_response.ok) {
|
|
839
|
-
return { data: _response.body as Ichos.RetrieveCoverResponse, rawResponse: _response.rawResponse };
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
if (_response.error.reason === "status-code") {
|
|
843
|
-
switch (_response.error.statusCode) {
|
|
844
|
-
case 401:
|
|
845
|
-
throw new Ichos.UnauthorizedError(
|
|
846
|
-
_response.error.body as Ichos.UnauthorizedErrorResponse,
|
|
847
|
-
_response.rawResponse,
|
|
848
|
-
);
|
|
849
|
-
case 403:
|
|
850
|
-
throw new Ichos.ForbiddenError(
|
|
851
|
-
_response.error.body as Ichos.UnauthenticatedErrorResponse,
|
|
852
|
-
_response.rawResponse,
|
|
853
|
-
);
|
|
854
|
-
case 404:
|
|
855
|
-
throw new Ichos.NotFoundError(
|
|
856
|
-
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
808
|
+
case 429:
|
|
809
|
+
throw new Ichos.TooManyRequestsError(
|
|
810
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
857
811
|
_response.rawResponse,
|
|
858
812
|
);
|
|
859
813
|
case 500:
|
|
@@ -873,8 +827,8 @@ export class EpisodesClient {
|
|
|
873
827
|
return handleNonStatusCodeError(
|
|
874
828
|
_response.error,
|
|
875
829
|
_response.rawResponse,
|
|
876
|
-
"
|
|
877
|
-
"/v1/episodes/{episodeId}/cover",
|
|
830
|
+
"POST",
|
|
831
|
+
"/v1/episodes/{episodeId}/cover/pull",
|
|
878
832
|
);
|
|
879
833
|
}
|
|
880
834
|
|
|
@@ -888,6 +842,7 @@ export class EpisodesClient {
|
|
|
888
842
|
* @throws {@link Ichos.ForbiddenError}
|
|
889
843
|
* @throws {@link Ichos.NotFoundError}
|
|
890
844
|
* @throws {@link Ichos.UnprocessableEntityError}
|
|
845
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
891
846
|
* @throws {@link Ichos.InternalServerError}
|
|
892
847
|
*
|
|
893
848
|
* @example
|
|
@@ -943,7 +898,7 @@ export class EpisodesClient {
|
|
|
943
898
|
);
|
|
944
899
|
case 403:
|
|
945
900
|
throw new Ichos.ForbiddenError(
|
|
946
|
-
_response.error.body as Ichos.
|
|
901
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
947
902
|
_response.rawResponse,
|
|
948
903
|
);
|
|
949
904
|
case 404:
|
|
@@ -956,6 +911,11 @@ export class EpisodesClient {
|
|
|
956
911
|
_response.error.body as Ichos.ValidationErrorResponse,
|
|
957
912
|
_response.rawResponse,
|
|
958
913
|
);
|
|
914
|
+
case 429:
|
|
915
|
+
throw new Ichos.TooManyRequestsError(
|
|
916
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
917
|
+
_response.rawResponse,
|
|
918
|
+
);
|
|
959
919
|
case 500:
|
|
960
920
|
throw new Ichos.InternalServerError(
|
|
961
921
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -987,6 +947,7 @@ export class EpisodesClient {
|
|
|
987
947
|
* @throws {@link Ichos.UnauthorizedError}
|
|
988
948
|
* @throws {@link Ichos.ForbiddenError}
|
|
989
949
|
* @throws {@link Ichos.NotFoundError}
|
|
950
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
990
951
|
* @throws {@link Ichos.InternalServerError}
|
|
991
952
|
*
|
|
992
953
|
* @example
|
|
@@ -1042,7 +1003,7 @@ export class EpisodesClient {
|
|
|
1042
1003
|
);
|
|
1043
1004
|
case 403:
|
|
1044
1005
|
throw new Ichos.ForbiddenError(
|
|
1045
|
-
_response.error.body as Ichos.
|
|
1006
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
1046
1007
|
_response.rawResponse,
|
|
1047
1008
|
);
|
|
1048
1009
|
case 404:
|
|
@@ -1050,6 +1011,11 @@ export class EpisodesClient {
|
|
|
1050
1011
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
1051
1012
|
_response.rawResponse,
|
|
1052
1013
|
);
|
|
1014
|
+
case 429:
|
|
1015
|
+
throw new Ichos.TooManyRequestsError(
|
|
1016
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1017
|
+
_response.rawResponse,
|
|
1018
|
+
);
|
|
1053
1019
|
case 500:
|
|
1054
1020
|
throw new Ichos.InternalServerError(
|
|
1055
1021
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -1081,6 +1047,7 @@ export class EpisodesClient {
|
|
|
1081
1047
|
* @throws {@link Ichos.UnauthorizedError}
|
|
1082
1048
|
* @throws {@link Ichos.ForbiddenError}
|
|
1083
1049
|
* @throws {@link Ichos.NotFoundError}
|
|
1050
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
1084
1051
|
* @throws {@link Ichos.InternalServerError}
|
|
1085
1052
|
*
|
|
1086
1053
|
* @example
|
|
@@ -1136,7 +1103,7 @@ export class EpisodesClient {
|
|
|
1136
1103
|
);
|
|
1137
1104
|
case 403:
|
|
1138
1105
|
throw new Ichos.ForbiddenError(
|
|
1139
|
-
_response.error.body as Ichos.
|
|
1106
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
1140
1107
|
_response.rawResponse,
|
|
1141
1108
|
);
|
|
1142
1109
|
case 404:
|
|
@@ -1144,6 +1111,11 @@ export class EpisodesClient {
|
|
|
1144
1111
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
1145
1112
|
_response.rawResponse,
|
|
1146
1113
|
);
|
|
1114
|
+
case 429:
|
|
1115
|
+
throw new Ichos.TooManyRequestsError(
|
|
1116
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1117
|
+
_response.rawResponse,
|
|
1118
|
+
);
|
|
1147
1119
|
case 500:
|
|
1148
1120
|
throw new Ichos.InternalServerError(
|
|
1149
1121
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -1175,6 +1147,7 @@ export class EpisodesClient {
|
|
|
1175
1147
|
* @throws {@link Ichos.UnauthorizedError}
|
|
1176
1148
|
* @throws {@link Ichos.ForbiddenError}
|
|
1177
1149
|
* @throws {@link Ichos.NotFoundError}
|
|
1150
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
1178
1151
|
* @throws {@link Ichos.InternalServerError}
|
|
1179
1152
|
*
|
|
1180
1153
|
* @example
|
|
@@ -1234,7 +1207,7 @@ export class EpisodesClient {
|
|
|
1234
1207
|
);
|
|
1235
1208
|
case 403:
|
|
1236
1209
|
throw new Ichos.ForbiddenError(
|
|
1237
|
-
_response.error.body as Ichos.
|
|
1210
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
1238
1211
|
_response.rawResponse,
|
|
1239
1212
|
);
|
|
1240
1213
|
case 404:
|
|
@@ -1242,6 +1215,11 @@ export class EpisodesClient {
|
|
|
1242
1215
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
1243
1216
|
_response.rawResponse,
|
|
1244
1217
|
);
|
|
1218
|
+
case 429:
|
|
1219
|
+
throw new Ichos.TooManyRequestsError(
|
|
1220
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1221
|
+
_response.rawResponse,
|
|
1222
|
+
);
|
|
1245
1223
|
case 500:
|
|
1246
1224
|
throw new Ichos.InternalServerError(
|
|
1247
1225
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -17,16 +17,13 @@ export interface EpisodeCreate {
|
|
|
17
17
|
description?: string | null;
|
|
18
18
|
explicit?: boolean | null;
|
|
19
19
|
block?: boolean | null;
|
|
20
|
-
pubDate?: string | null;
|
|
21
20
|
season?: number | null;
|
|
22
21
|
episode?: number | null;
|
|
23
22
|
episodeType?: EpisodeCreate.EpisodeType | null;
|
|
24
|
-
coverKey?: string | null;
|
|
25
23
|
transcripts?: Ichos.EpisodeTranscript[] | null;
|
|
26
24
|
chaptersUrl?: string | null;
|
|
27
25
|
persons?: Ichos.Person[] | null;
|
|
28
26
|
license?: string | null;
|
|
29
|
-
status?: EpisodeCreate.Status;
|
|
30
27
|
metadata?: Ichos.Metadata | null;
|
|
31
28
|
autoPublish?: boolean;
|
|
32
29
|
coverOptions?: Ichos.CoverUploadOptions;
|
|
@@ -40,11 +37,4 @@ export namespace EpisodeCreate {
|
|
|
40
37
|
Bonus: "bonus",
|
|
41
38
|
} as const;
|
|
42
39
|
export type EpisodeType = (typeof EpisodeType)[keyof typeof EpisodeType];
|
|
43
|
-
export const Status = {
|
|
44
|
-
Draft: "draft",
|
|
45
|
-
Scheduled: "scheduled",
|
|
46
|
-
Published: "published",
|
|
47
|
-
Deleted: "deleted",
|
|
48
|
-
} as const;
|
|
49
|
-
export type Status = (typeof Status)[keyof typeof Status];
|
|
50
40
|
}
|
|
@@ -18,7 +18,7 @@ export interface EpisodeUpdate {
|
|
|
18
18
|
explicit?: boolean;
|
|
19
19
|
block?: boolean;
|
|
20
20
|
metadata?: Ichos.Metadata;
|
|
21
|
-
|
|
21
|
+
coverOptions?: Ichos.CoverUploadOptions;
|
|
22
22
|
season?: number;
|
|
23
23
|
episode?: number;
|
|
24
24
|
episodeType?: EpisodeUpdate.EpisodeType;
|
|
@@ -26,9 +26,7 @@ export interface EpisodeUpdate {
|
|
|
26
26
|
chaptersUrl?: string;
|
|
27
27
|
persons?: Ichos.Person[];
|
|
28
28
|
license?: string;
|
|
29
|
-
status?: EpisodeUpdate.Status;
|
|
30
29
|
autoPublish?: boolean;
|
|
31
|
-
coverOptions?: Ichos.CoverUploadOptions;
|
|
32
30
|
audioOptions?: Ichos.AudioUploadOptions;
|
|
33
31
|
}
|
|
34
32
|
|
|
@@ -39,11 +37,4 @@ export namespace EpisodeUpdate {
|
|
|
39
37
|
Bonus: "bonus",
|
|
40
38
|
} as const;
|
|
41
39
|
export type EpisodeType = (typeof EpisodeType)[keyof typeof EpisodeType];
|
|
42
|
-
export const Status = {
|
|
43
|
-
Draft: "draft",
|
|
44
|
-
Scheduled: "scheduled",
|
|
45
|
-
Published: "published",
|
|
46
|
-
Deleted: "deleted",
|
|
47
|
-
} as const;
|
|
48
|
-
export type Status = (typeof Status)[keyof typeof Status];
|
|
49
40
|
}
|
|
@@ -3,7 +3,6 @@ export type { EpisodeCreate } from "./EpisodeCreate.js";
|
|
|
3
3
|
export type { EpisodeUpdate } from "./EpisodeUpdate.js";
|
|
4
4
|
export type { GenerateEpisodeCoverUploadUrlRequest } from "./GenerateEpisodeCoverUploadUrlRequest.js";
|
|
5
5
|
export type { GetEpisodeAudioRequest } from "./GetEpisodeAudioRequest.js";
|
|
6
|
-
export type { GetEpisodeCoverRequest } from "./GetEpisodeCoverRequest.js";
|
|
7
6
|
export type { GetEpisodeListenersReportRequest } from "./GetEpisodeListenersReportRequest.js";
|
|
8
7
|
export type { GetEpisodeRequest } from "./GetEpisodeRequest.js";
|
|
9
8
|
export type { LinkEpisodeAudioRequest } from "./LinkEpisodeAudioRequest.js";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from "./ads/client/requests/index.js";
|
|
2
2
|
export * as ads from "./ads/index.js";
|
|
3
|
-
export * from "./analytics/client/requests/index.js";
|
|
4
|
-
export * as analytics from "./analytics/index.js";
|
|
5
3
|
export * from "./audio/client/requests/index.js";
|
|
6
4
|
export * as audio from "./audio/index.js";
|
|
7
5
|
export * from "./episodes/client/requests/index.js";
|
|
@@ -29,6 +29,7 @@ export class OrganizationsClient {
|
|
|
29
29
|
*
|
|
30
30
|
* @throws {@link Ichos.UnauthorizedError}
|
|
31
31
|
* @throws {@link Ichos.ForbiddenError}
|
|
32
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
32
33
|
* @throws {@link Ichos.InternalServerError}
|
|
33
34
|
*
|
|
34
35
|
* @example
|
|
@@ -82,7 +83,12 @@ export class OrganizationsClient {
|
|
|
82
83
|
);
|
|
83
84
|
case 403:
|
|
84
85
|
throw new Ichos.ForbiddenError(
|
|
85
|
-
_response.error.body as Ichos.
|
|
86
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
87
|
+
_response.rawResponse,
|
|
88
|
+
);
|
|
89
|
+
case 429:
|
|
90
|
+
throw new Ichos.TooManyRequestsError(
|
|
91
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
86
92
|
_response.rawResponse,
|
|
87
93
|
);
|
|
88
94
|
case 500:
|
|
@@ -110,6 +116,7 @@ export class OrganizationsClient {
|
|
|
110
116
|
* @throws {@link Ichos.UnauthorizedError}
|
|
111
117
|
* @throws {@link Ichos.ForbiddenError}
|
|
112
118
|
* @throws {@link Ichos.NotFoundError}
|
|
119
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
113
120
|
* @throws {@link Ichos.InternalServerError}
|
|
114
121
|
*
|
|
115
122
|
* @example
|
|
@@ -160,7 +167,7 @@ export class OrganizationsClient {
|
|
|
160
167
|
);
|
|
161
168
|
case 403:
|
|
162
169
|
throw new Ichos.ForbiddenError(
|
|
163
|
-
_response.error.body as Ichos.
|
|
170
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
164
171
|
_response.rawResponse,
|
|
165
172
|
);
|
|
166
173
|
case 404:
|
|
@@ -168,6 +175,11 @@ export class OrganizationsClient {
|
|
|
168
175
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
169
176
|
_response.rawResponse,
|
|
170
177
|
);
|
|
178
|
+
case 429:
|
|
179
|
+
throw new Ichos.TooManyRequestsError(
|
|
180
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
181
|
+
_response.rawResponse,
|
|
182
|
+
);
|
|
171
183
|
case 500:
|
|
172
184
|
throw new Ichos.InternalServerError(
|
|
173
185
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -195,6 +207,7 @@ export class OrganizationsClient {
|
|
|
195
207
|
*
|
|
196
208
|
* @throws {@link Ichos.UnauthorizedError}
|
|
197
209
|
* @throws {@link Ichos.ForbiddenError}
|
|
210
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
198
211
|
* @throws {@link Ichos.InternalServerError}
|
|
199
212
|
*
|
|
200
213
|
* @example
|
|
@@ -248,7 +261,12 @@ export class OrganizationsClient {
|
|
|
248
261
|
);
|
|
249
262
|
case 403:
|
|
250
263
|
throw new Ichos.ForbiddenError(
|
|
251
|
-
_response.error.body as Ichos.
|
|
264
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
265
|
+
_response.rawResponse,
|
|
266
|
+
);
|
|
267
|
+
case 429:
|
|
268
|
+
throw new Ichos.TooManyRequestsError(
|
|
269
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
252
270
|
_response.rawResponse,
|
|
253
271
|
);
|
|
254
272
|
case 500:
|