@ichos/sdk 1.0.8 → 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 +8 -1
- package/dist/api/resources/audio/client/Client.d.ts.map +1 -1
- package/dist/api/resources/audio/client/Client.js +22 -1
- package/dist/api/resources/audio/client/Client.js.map +1 -1
- package/dist/api/resources/episodes/client/Client.d.ts +14 -19
- package/dist/api/resources/episodes/client/Client.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/Client.js +38 -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 -11
- 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/AudioUploadResponse.d.ts +3 -3
- package/dist/api/types/CoverUploadResponse.d.ts +2 -1
- package/dist/api/types/CoverUploadResponse.d.ts.map +1 -1
- package/dist/api/types/CoverUploadResponse.js.map +1 -1
- package/dist/api/types/Episode.d.ts +7 -0
- package/dist/api/types/Episode.d.ts.map +1 -1
- package/dist/api/types/Episode.js +5 -0
- package/dist/api/types/Episode.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} +12 -5
- package/dist/api/types/EpisodeCreateResponseData.d.ts.map +1 -0
- package/dist/api/types/EpisodeCreateResponseData.js +21 -0
- 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/Podcast.d.ts +9 -0
- package/dist/api/types/Podcast.d.ts.map +1 -1
- package/dist/api/types/Podcast.js +6 -0
- package/dist/api/types/Podcast.js.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 +43 -1
- package/src/api/resources/episodes/client/Client.ts +86 -107
- package/src/api/resources/episodes/client/requests/EpisodeCreate.ts +0 -10
- package/src/api/resources/episodes/client/requests/EpisodeUpdate.ts +1 -11
- 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/AudioUploadResponse.ts +3 -3
- package/src/api/types/CoverUploadResponse.ts +2 -1
- package/src/api/types/Episode.ts +7 -0
- package/src/api/types/EpisodeCreateResponse.ts +1 -1
- package/src/api/types/{EpisodeCreatedResponseData.ts → EpisodeCreateResponseData.ts} +11 -4
- 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/Podcast.ts +9 -0
- 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 +0 -16
- 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
|
@@ -80,7 +80,7 @@ export class SegmentsClient {
|
|
|
80
80
|
);
|
|
81
81
|
case 403:
|
|
82
82
|
throw new Ichos.ForbiddenError(
|
|
83
|
-
_response.error.body as Ichos.
|
|
83
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
84
84
|
_response.rawResponse,
|
|
85
85
|
);
|
|
86
86
|
case 404:
|
|
@@ -172,7 +172,7 @@ export class SegmentsClient {
|
|
|
172
172
|
);
|
|
173
173
|
case 403:
|
|
174
174
|
throw new Ichos.ForbiddenError(
|
|
175
|
-
_response.error.body as Ichos.
|
|
175
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
176
176
|
_response.rawResponse,
|
|
177
177
|
);
|
|
178
178
|
case 500:
|
|
@@ -259,7 +259,7 @@ export class SegmentsClient {
|
|
|
259
259
|
);
|
|
260
260
|
case 403:
|
|
261
261
|
throw new Ichos.ForbiddenError(
|
|
262
|
-
_response.error.body as Ichos.
|
|
262
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
263
263
|
_response.rawResponse,
|
|
264
264
|
);
|
|
265
265
|
case 500:
|
|
@@ -348,7 +348,7 @@ export class SegmentsClient {
|
|
|
348
348
|
);
|
|
349
349
|
case 403:
|
|
350
350
|
throw new Ichos.ForbiddenError(
|
|
351
|
-
_response.error.body as Ichos.
|
|
351
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
352
352
|
_response.rawResponse,
|
|
353
353
|
);
|
|
354
354
|
case 404:
|
|
@@ -448,7 +448,7 @@ export class SegmentsClient {
|
|
|
448
448
|
);
|
|
449
449
|
case 403:
|
|
450
450
|
throw new Ichos.ForbiddenError(
|
|
451
|
-
_response.error.body as Ichos.
|
|
451
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
452
452
|
_response.rawResponse,
|
|
453
453
|
);
|
|
454
454
|
case 404:
|
|
@@ -540,7 +540,7 @@ export class SegmentsClient {
|
|
|
540
540
|
);
|
|
541
541
|
case 403:
|
|
542
542
|
throw new Ichos.ForbiddenError(
|
|
543
|
-
_response.error.body as Ichos.
|
|
543
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
544
544
|
_response.rawResponse,
|
|
545
545
|
);
|
|
546
546
|
case 404:
|
|
@@ -30,6 +30,7 @@ export class UsersClient {
|
|
|
30
30
|
* @throws {@link Ichos.UnauthorizedError}
|
|
31
31
|
* @throws {@link Ichos.ForbiddenError}
|
|
32
32
|
* @throws {@link Ichos.NotFoundError}
|
|
33
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
33
34
|
* @throws {@link Ichos.InternalServerError}
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
@@ -80,7 +81,7 @@ export class UsersClient {
|
|
|
80
81
|
);
|
|
81
82
|
case 403:
|
|
82
83
|
throw new Ichos.ForbiddenError(
|
|
83
|
-
_response.error.body as Ichos.
|
|
84
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
84
85
|
_response.rawResponse,
|
|
85
86
|
);
|
|
86
87
|
case 404:
|
|
@@ -88,6 +89,11 @@ export class UsersClient {
|
|
|
88
89
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
89
90
|
_response.rawResponse,
|
|
90
91
|
);
|
|
92
|
+
case 429:
|
|
93
|
+
throw new Ichos.TooManyRequestsError(
|
|
94
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
95
|
+
_response.rawResponse,
|
|
96
|
+
);
|
|
91
97
|
case 500:
|
|
92
98
|
throw new Ichos.InternalServerError(
|
|
93
99
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -113,6 +119,7 @@ export class UsersClient {
|
|
|
113
119
|
* @throws {@link Ichos.UnauthorizedError}
|
|
114
120
|
* @throws {@link Ichos.ForbiddenError}
|
|
115
121
|
* @throws {@link Ichos.NotFoundError}
|
|
122
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
116
123
|
* @throws {@link Ichos.InternalServerError}
|
|
117
124
|
*
|
|
118
125
|
* @example
|
|
@@ -163,7 +170,7 @@ export class UsersClient {
|
|
|
163
170
|
);
|
|
164
171
|
case 403:
|
|
165
172
|
throw new Ichos.ForbiddenError(
|
|
166
|
-
_response.error.body as Ichos.
|
|
173
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
167
174
|
_response.rawResponse,
|
|
168
175
|
);
|
|
169
176
|
case 404:
|
|
@@ -171,6 +178,11 @@ export class UsersClient {
|
|
|
171
178
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
172
179
|
_response.rawResponse,
|
|
173
180
|
);
|
|
181
|
+
case 429:
|
|
182
|
+
throw new Ichos.TooManyRequestsError(
|
|
183
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
184
|
+
_response.rawResponse,
|
|
185
|
+
);
|
|
174
186
|
case 500:
|
|
175
187
|
throw new Ichos.InternalServerError(
|
|
176
188
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -197,6 +209,7 @@ export class UsersClient {
|
|
|
197
209
|
* @throws {@link Ichos.UnauthorizedError}
|
|
198
210
|
* @throws {@link Ichos.ForbiddenError}
|
|
199
211
|
* @throws {@link Ichos.NotFoundError}
|
|
212
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
200
213
|
* @throws {@link Ichos.InternalServerError}
|
|
201
214
|
*
|
|
202
215
|
* @example
|
|
@@ -252,7 +265,7 @@ export class UsersClient {
|
|
|
252
265
|
);
|
|
253
266
|
case 403:
|
|
254
267
|
throw new Ichos.ForbiddenError(
|
|
255
|
-
_response.error.body as Ichos.
|
|
268
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
256
269
|
_response.rawResponse,
|
|
257
270
|
);
|
|
258
271
|
case 404:
|
|
@@ -260,6 +273,11 @@ export class UsersClient {
|
|
|
260
273
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
261
274
|
_response.rawResponse,
|
|
262
275
|
);
|
|
276
|
+
case 429:
|
|
277
|
+
throw new Ichos.TooManyRequestsError(
|
|
278
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
279
|
+
_response.rawResponse,
|
|
280
|
+
);
|
|
263
281
|
case 500:
|
|
264
282
|
throw new Ichos.InternalServerError(
|
|
265
283
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -285,6 +303,7 @@ export class UsersClient {
|
|
|
285
303
|
* @throws {@link Ichos.UnauthorizedError}
|
|
286
304
|
* @throws {@link Ichos.ForbiddenError}
|
|
287
305
|
* @throws {@link Ichos.NotFoundError}
|
|
306
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
288
307
|
* @throws {@link Ichos.InternalServerError}
|
|
289
308
|
*
|
|
290
309
|
* @example
|
|
@@ -335,7 +354,7 @@ export class UsersClient {
|
|
|
335
354
|
);
|
|
336
355
|
case 403:
|
|
337
356
|
throw new Ichos.ForbiddenError(
|
|
338
|
-
_response.error.body as Ichos.
|
|
357
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
339
358
|
_response.rawResponse,
|
|
340
359
|
);
|
|
341
360
|
case 404:
|
|
@@ -343,6 +362,11 @@ export class UsersClient {
|
|
|
343
362
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
344
363
|
_response.rawResponse,
|
|
345
364
|
);
|
|
365
|
+
case 429:
|
|
366
|
+
throw new Ichos.TooManyRequestsError(
|
|
367
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
368
|
+
_response.rawResponse,
|
|
369
|
+
);
|
|
346
370
|
case 500:
|
|
347
371
|
throw new Ichos.InternalServerError(
|
|
348
372
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -368,6 +392,7 @@ export class UsersClient {
|
|
|
368
392
|
* @throws {@link Ichos.UnauthorizedError}
|
|
369
393
|
* @throws {@link Ichos.ForbiddenError}
|
|
370
394
|
* @throws {@link Ichos.NotFoundError}
|
|
395
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
371
396
|
* @throws {@link Ichos.InternalServerError}
|
|
372
397
|
*
|
|
373
398
|
* @example
|
|
@@ -418,7 +443,7 @@ export class UsersClient {
|
|
|
418
443
|
);
|
|
419
444
|
case 403:
|
|
420
445
|
throw new Ichos.ForbiddenError(
|
|
421
|
-
_response.error.body as Ichos.
|
|
446
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
422
447
|
_response.rawResponse,
|
|
423
448
|
);
|
|
424
449
|
case 404:
|
|
@@ -426,6 +451,11 @@ export class UsersClient {
|
|
|
426
451
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
427
452
|
_response.rawResponse,
|
|
428
453
|
);
|
|
454
|
+
case 429:
|
|
455
|
+
throw new Ichos.TooManyRequestsError(
|
|
456
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
457
|
+
_response.rawResponse,
|
|
458
|
+
);
|
|
429
459
|
case 500:
|
|
430
460
|
throw new Ichos.InternalServerError(
|
|
431
461
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -31,6 +31,7 @@ export class WebhooksClient {
|
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link Ichos.UnauthorizedError}
|
|
33
33
|
* @throws {@link Ichos.ForbiddenError}
|
|
34
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
34
35
|
* @throws {@link Ichos.InternalServerError}
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
@@ -88,7 +89,12 @@ export class WebhooksClient {
|
|
|
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,
|
|
93
|
+
_response.rawResponse,
|
|
94
|
+
);
|
|
95
|
+
case 429:
|
|
96
|
+
throw new Ichos.TooManyRequestsError(
|
|
97
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
92
98
|
_response.rawResponse,
|
|
93
99
|
);
|
|
94
100
|
case 500:
|
|
@@ -115,6 +121,7 @@ export class WebhooksClient {
|
|
|
115
121
|
*
|
|
116
122
|
* @throws {@link Ichos.UnauthorizedError}
|
|
117
123
|
* @throws {@link Ichos.ForbiddenError}
|
|
124
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
118
125
|
* @throws {@link Ichos.InternalServerError}
|
|
119
126
|
*
|
|
120
127
|
* @example
|
|
@@ -168,7 +175,12 @@ export class WebhooksClient {
|
|
|
168
175
|
);
|
|
169
176
|
case 403:
|
|
170
177
|
throw new Ichos.ForbiddenError(
|
|
171
|
-
_response.error.body as Ichos.
|
|
178
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
179
|
+
_response.rawResponse,
|
|
180
|
+
);
|
|
181
|
+
case 429:
|
|
182
|
+
throw new Ichos.TooManyRequestsError(
|
|
183
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
172
184
|
_response.rawResponse,
|
|
173
185
|
);
|
|
174
186
|
case 500:
|
|
@@ -196,6 +208,7 @@ export class WebhooksClient {
|
|
|
196
208
|
*
|
|
197
209
|
* @throws {@link Ichos.UnauthorizedError}
|
|
198
210
|
* @throws {@link Ichos.ForbiddenError}
|
|
211
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
199
212
|
* @throws {@link Ichos.InternalServerError}
|
|
200
213
|
*
|
|
201
214
|
* @example
|
|
@@ -251,7 +264,12 @@ export class WebhooksClient {
|
|
|
251
264
|
);
|
|
252
265
|
case 403:
|
|
253
266
|
throw new Ichos.ForbiddenError(
|
|
254
|
-
_response.error.body as Ichos.
|
|
267
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
268
|
+
_response.rawResponse,
|
|
269
|
+
);
|
|
270
|
+
case 429:
|
|
271
|
+
throw new Ichos.TooManyRequestsError(
|
|
272
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
255
273
|
_response.rawResponse,
|
|
256
274
|
);
|
|
257
275
|
case 500:
|
|
@@ -283,6 +301,7 @@ export class WebhooksClient {
|
|
|
283
301
|
*
|
|
284
302
|
* @throws {@link Ichos.UnauthorizedError}
|
|
285
303
|
* @throws {@link Ichos.ForbiddenError}
|
|
304
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
286
305
|
* @throws {@link Ichos.InternalServerError}
|
|
287
306
|
*
|
|
288
307
|
* @example
|
|
@@ -333,7 +352,12 @@ export class WebhooksClient {
|
|
|
333
352
|
);
|
|
334
353
|
case 403:
|
|
335
354
|
throw new Ichos.ForbiddenError(
|
|
336
|
-
_response.error.body as Ichos.
|
|
355
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
356
|
+
_response.rawResponse,
|
|
357
|
+
);
|
|
358
|
+
case 429:
|
|
359
|
+
throw new Ichos.TooManyRequestsError(
|
|
360
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
337
361
|
_response.rawResponse,
|
|
338
362
|
);
|
|
339
363
|
case 500:
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import type * as Ichos from "../index.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Note that if type "put" is selected, then once the
|
|
7
|
-
* to the putUrl,
|
|
8
|
-
*
|
|
6
|
+
* Note that if type "put" is selected, then once the audio is uploaded
|
|
7
|
+
* to the putUrl, processing is triggered via storage events.
|
|
8
|
+
* To replace an audio file, start a new upload flow to receive a fresh key.
|
|
9
9
|
*/
|
|
10
10
|
export type AudioUploadResponse = Ichos.AudioUploadResponse.Put | Ichos.AudioUploadResponse.Pull;
|
|
11
11
|
|
|
@@ -4,7 +4,8 @@ import type * as Ichos from "../index.js";
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Note that if type "put" is selected, then once the cover is uploaded
|
|
7
|
-
* to the putUrl, the
|
|
7
|
+
* to the putUrl, the upload completion is detected via storage events.
|
|
8
|
+
* To replace a cover image, start a new upload flow to receive a fresh key.
|
|
8
9
|
*/
|
|
9
10
|
export type CoverUploadResponse = Ichos.CoverUploadResponse.Put | Ichos.CoverUploadResponse.Pull;
|
|
10
11
|
|
package/src/api/types/Episode.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface Episode {
|
|
|
15
15
|
episode: number | null;
|
|
16
16
|
episodeType: Episode.EpisodeType;
|
|
17
17
|
coverUrl: string | null;
|
|
18
|
+
coverUploadStatus: Episode.CoverUploadStatus | null;
|
|
18
19
|
transcripts: Ichos.EpisodeTranscript[] | null;
|
|
19
20
|
chaptersUrl: string | null;
|
|
20
21
|
persons: Ichos.Person[] | null;
|
|
@@ -37,6 +38,12 @@ export namespace Episode {
|
|
|
37
38
|
Bonus: "bonus",
|
|
38
39
|
} as const;
|
|
39
40
|
export type EpisodeType = (typeof EpisodeType)[keyof typeof EpisodeType];
|
|
41
|
+
export const CoverUploadStatus = {
|
|
42
|
+
Pending: "pending",
|
|
43
|
+
Complete: "complete",
|
|
44
|
+
Failed: "failed",
|
|
45
|
+
} as const;
|
|
46
|
+
export type CoverUploadStatus = (typeof CoverUploadStatus)[keyof typeof CoverUploadStatus];
|
|
40
47
|
export const Status = {
|
|
41
48
|
Draft: "draft",
|
|
42
49
|
Scheduled: "scheduled",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type * as Ichos from "../index.js";
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface EpisodeCreateResponseData {
|
|
6
6
|
id: string;
|
|
7
7
|
adsEnabled: boolean;
|
|
8
8
|
title: string;
|
|
@@ -13,13 +13,14 @@ export interface EpisodeCreatedResponseData {
|
|
|
13
13
|
pubDate: string;
|
|
14
14
|
season: number | null;
|
|
15
15
|
episode: number | null;
|
|
16
|
-
episodeType:
|
|
16
|
+
episodeType: EpisodeCreateResponseData.EpisodeType;
|
|
17
17
|
coverUrl: string | null;
|
|
18
|
+
coverUploadStatus: EpisodeCreateResponseData.CoverUploadStatus | null;
|
|
18
19
|
transcripts: Ichos.EpisodeTranscript[] | null;
|
|
19
20
|
chaptersUrl: string | null;
|
|
20
21
|
persons: Ichos.Person[] | null;
|
|
21
22
|
license: string | null;
|
|
22
|
-
status?:
|
|
23
|
+
status?: EpisodeCreateResponseData.Status;
|
|
23
24
|
podcastId: string;
|
|
24
25
|
audioId: string | null;
|
|
25
26
|
guid: string;
|
|
@@ -32,13 +33,19 @@ export interface EpisodeCreatedResponseData {
|
|
|
32
33
|
audioUpload: Ichos.AudioUploadResponse;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
export namespace
|
|
36
|
+
export namespace EpisodeCreateResponseData {
|
|
36
37
|
export const EpisodeType = {
|
|
37
38
|
Full: "full",
|
|
38
39
|
Trailer: "trailer",
|
|
39
40
|
Bonus: "bonus",
|
|
40
41
|
} as const;
|
|
41
42
|
export type EpisodeType = (typeof EpisodeType)[keyof typeof EpisodeType];
|
|
43
|
+
export const CoverUploadStatus = {
|
|
44
|
+
Pending: "pending",
|
|
45
|
+
Complete: "complete",
|
|
46
|
+
Failed: "failed",
|
|
47
|
+
} as const;
|
|
48
|
+
export type CoverUploadStatus = (typeof CoverUploadStatus)[keyof typeof CoverUploadStatus];
|
|
42
49
|
export const Status = {
|
|
43
50
|
Draft: "draft",
|
|
44
51
|
Scheduled: "scheduled",
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
export interface
|
|
4
|
-
name: string;
|
|
5
|
-
message: string;
|
|
6
|
-
stack?: string;
|
|
3
|
+
export interface ForbiddenErrorBody {
|
|
7
4
|
statusCode: number;
|
|
8
5
|
errorCode: string;
|
|
9
6
|
errorMessage: string;
|
package/src/api/types/Podcast.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface Podcast {
|
|
|
20
20
|
description: string | null;
|
|
21
21
|
/** The language of the podcast (ISO 639-1 code). */
|
|
22
22
|
language: string | null;
|
|
23
|
+
/** Current cover upload status. */
|
|
24
|
+
coverUploadStatus: Podcast.CoverUploadStatus | null;
|
|
23
25
|
/** Whether ads are enabled for the podcast. */
|
|
24
26
|
adsEnabled?: boolean;
|
|
25
27
|
/** Categories associated with the podcast. */
|
|
@@ -63,6 +65,13 @@ export namespace Podcast {
|
|
|
63
65
|
Deleted: "deleted",
|
|
64
66
|
} as const;
|
|
65
67
|
export type Status = (typeof Status)[keyof typeof Status];
|
|
68
|
+
/** Current cover upload status. */
|
|
69
|
+
export const CoverUploadStatus = {
|
|
70
|
+
Pending: "pending",
|
|
71
|
+
Complete: "complete",
|
|
72
|
+
Failed: "failed",
|
|
73
|
+
} as const;
|
|
74
|
+
export type CoverUploadStatus = (typeof CoverUploadStatus)[keyof typeof CoverUploadStatus];
|
|
66
75
|
/** The type of podcast (e.g., episodic, serial). */
|
|
67
76
|
export const Type = {
|
|
68
77
|
Episodic: "episodic",
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import type * as Ichos from "../index.js";
|
|
4
|
+
|
|
5
|
+
export interface PodcastCreateResponseData {
|
|
6
|
+
/** Unique identifier for the podcast. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** The title of the podcast. */
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* The unique GUID for the podcast.
|
|
12
|
+
* A GUIDv5 based on the podcast's feed URL.
|
|
13
|
+
*/
|
|
14
|
+
guid: string;
|
|
15
|
+
/** The current status of the podcast. */
|
|
16
|
+
status: PodcastCreateResponseData.Status;
|
|
17
|
+
/** The website link for the podcast. */
|
|
18
|
+
link: string | null;
|
|
19
|
+
/** A detailed description of the podcast. */
|
|
20
|
+
description: string | null;
|
|
21
|
+
/** The language of the podcast (ISO 639-1 code). */
|
|
22
|
+
language: string | null;
|
|
23
|
+
/** Current cover upload status. */
|
|
24
|
+
coverUploadStatus: PodcastCreateResponseData.CoverUploadStatus | null;
|
|
25
|
+
/** Whether ads are enabled for the podcast. */
|
|
26
|
+
adsEnabled?: boolean;
|
|
27
|
+
/** Categories associated with the podcast. */
|
|
28
|
+
categories: Ichos.ApplePodcastCategory[] | null;
|
|
29
|
+
/** Whether the podcast contains explicit content. */
|
|
30
|
+
explicit: boolean;
|
|
31
|
+
/** The author of the podcast. */
|
|
32
|
+
author: string | null;
|
|
33
|
+
/** The name of the podcast owner. */
|
|
34
|
+
ownerName: string | null;
|
|
35
|
+
/** The email of the podcast owner. */
|
|
36
|
+
ownerEmail: string | null;
|
|
37
|
+
/** Copyright information for the podcast. */
|
|
38
|
+
copyright: string | null;
|
|
39
|
+
/** The type of podcast (e.g., episodic, serial). */
|
|
40
|
+
type: PodcastCreateResponseData.Type;
|
|
41
|
+
/** The new URL for the podcast feed if it has moved. */
|
|
42
|
+
newFeedUrl: string | null;
|
|
43
|
+
/** Whether the podcast is complete. */
|
|
44
|
+
complete: boolean;
|
|
45
|
+
/** Whether the podcast is blocked. */
|
|
46
|
+
block: boolean;
|
|
47
|
+
/** Whether the podcast is locked. */
|
|
48
|
+
locked: boolean;
|
|
49
|
+
/** The URL for funding/donations. */
|
|
50
|
+
fundingUrl: string | null;
|
|
51
|
+
/** The text to display for the funding link. */
|
|
52
|
+
fundingText: string | null;
|
|
53
|
+
rssUrl: string | null;
|
|
54
|
+
pubDate: string;
|
|
55
|
+
metadata: Ichos.Metadata;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
coverUpload?: Ichos.CoverUploadResponse;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace PodcastCreateResponseData {
|
|
62
|
+
/** The current status of the podcast. */
|
|
63
|
+
export const Status = {
|
|
64
|
+
Draft: "draft",
|
|
65
|
+
Published: "published",
|
|
66
|
+
Deleted: "deleted",
|
|
67
|
+
} as const;
|
|
68
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
69
|
+
/** Current cover upload status. */
|
|
70
|
+
export const CoverUploadStatus = {
|
|
71
|
+
Pending: "pending",
|
|
72
|
+
Complete: "complete",
|
|
73
|
+
Failed: "failed",
|
|
74
|
+
} as const;
|
|
75
|
+
export type CoverUploadStatus = (typeof CoverUploadStatus)[keyof typeof CoverUploadStatus];
|
|
76
|
+
/** The type of podcast (e.g., episodic, serial). */
|
|
77
|
+
export const Type = {
|
|
78
|
+
Episodic: "episodic",
|
|
79
|
+
Serial: "serial",
|
|
80
|
+
} as const;
|
|
81
|
+
export type Type = (typeof Type)[keyof typeof Type];
|
|
82
|
+
}
|
package/src/api/types/index.ts
CHANGED
|
@@ -23,12 +23,14 @@ export * from "./Chapter.js";
|
|
|
23
23
|
export * from "./CoverUploadOptions.js";
|
|
24
24
|
export * from "./CoverUploadResponse.js";
|
|
25
25
|
export * from "./Episode.js";
|
|
26
|
-
export * from "./EpisodeCreatedResponseData.js";
|
|
27
26
|
export * from "./EpisodeCreateResponse.js";
|
|
27
|
+
export * from "./EpisodeCreateResponseData.js";
|
|
28
28
|
export * from "./EpisodeResponse.js";
|
|
29
29
|
export * from "./EpisodeSearchParams.js";
|
|
30
30
|
export * from "./EpisodesResponse.js";
|
|
31
31
|
export * from "./EpisodeTranscript.js";
|
|
32
|
+
export * from "./ForbiddenErrorBody.js";
|
|
33
|
+
export * from "./ForbiddenErrorResponse.js";
|
|
32
34
|
export * from "./InternalServerErrorBody.js";
|
|
33
35
|
export * from "./InternalServerErrorResponse.js";
|
|
34
36
|
export * from "./Listeners.js";
|
|
@@ -46,21 +48,21 @@ export * from "./OrganizationWhitelabelConfiguration.js";
|
|
|
46
48
|
export * from "./OrganizationWhitelabelConfigurationResponse.js";
|
|
47
49
|
export * from "./Person.js";
|
|
48
50
|
export * from "./Podcast.js";
|
|
51
|
+
export * from "./PodcastCreateResponse.js";
|
|
52
|
+
export * from "./PodcastCreateResponseData.js";
|
|
49
53
|
export * from "./PodcastImportCompletedPayload.js";
|
|
50
54
|
export * from "./PodcastImportFailedPayload.js";
|
|
51
55
|
export * from "./PodcastResponse.js";
|
|
52
56
|
export * from "./PodcastSearchParams.js";
|
|
53
57
|
export * from "./PodcastsResponse.js";
|
|
54
58
|
export * from "./PublishPodcastOutput.js";
|
|
55
|
-
export * from "./RetrieveCoverResponse.js";
|
|
56
59
|
export * from "./Segment.js";
|
|
57
60
|
export * from "./SegmentListResponse.js";
|
|
58
61
|
export * from "./SegmentResponse.js";
|
|
59
|
-
export * from "./StringOrNullResponse.js";
|
|
60
62
|
export * from "./StringResponse.js";
|
|
63
|
+
export * from "./TooManyRequestsErrorBody.js";
|
|
64
|
+
export * from "./TooManyRequestsErrorResponse.js";
|
|
61
65
|
export * from "./TranscriptCompletedPayload.js";
|
|
62
|
-
export * from "./UnauthenticatedError.js";
|
|
63
|
-
export * from "./UnauthenticatedErrorResponse.js";
|
|
64
66
|
export * from "./UnauthorizedErrorBody.js";
|
|
65
67
|
export * from "./UnauthorizedErrorResponse.js";
|
|
66
68
|
export * from "./UserUploadAudioResponse.js";
|
|
@@ -68,6 +70,7 @@ export * from "./UserUploadAudioResult.js";
|
|
|
68
70
|
export * from "./UserUploadCoverResponse.js";
|
|
69
71
|
export * from "./UserUploadCoverResult.js";
|
|
70
72
|
export * from "./UserUploadCoverResultResponse.js";
|
|
73
|
+
export * from "./ValidationError.js";
|
|
71
74
|
export * from "./ValidationErrorResponse.js";
|
|
72
75
|
export * from "./ValidationIssue.js";
|
|
73
76
|
export * from "./VirtualUser.js";
|