@ichos/sdk 1.0.9 → 1.0.11
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/BadRequestError.d.ts +7 -0
- package/dist/api/errors/BadRequestError.d.ts.map +1 -0
- package/dist/api/errors/BadRequestError.js +18 -0
- package/dist/api/errors/BadRequestError.js.map +1 -0
- 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 +2 -0
- package/dist/api/errors/index.d.ts.map +1 -1
- package/dist/api/errors/index.js +2 -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 +10 -39
- package/dist/api/resources/audio/client/Client.d.ts.map +1 -1
- package/dist/api/resources/audio/client/Client.js +31 -121
- package/dist/api/resources/audio/client/Client.js.map +1 -1
- package/dist/api/resources/audio/client/requests/GenerateAudioUploadUrlRequest.d.ts +10 -0
- package/dist/api/resources/audio/client/requests/GenerateAudioUploadUrlRequest.d.ts.map +1 -0
- package/dist/api/resources/audio/client/requests/{GetAudioPullStatusRequest.js → GenerateAudioUploadUrlRequest.js} +1 -1
- package/dist/api/resources/audio/client/requests/GenerateAudioUploadUrlRequest.js.map +1 -0
- package/dist/api/resources/audio/client/requests/PullAudioDto.d.ts +2 -0
- package/dist/api/resources/audio/client/requests/PullAudioDto.d.ts.map +1 -1
- package/dist/api/resources/audio/client/requests/index.d.ts +1 -2
- package/dist/api/resources/audio/client/requests/index.d.ts.map +1 -1
- package/dist/api/resources/audio/index.d.ts +1 -0
- package/dist/api/resources/audio/index.d.ts.map +1 -1
- package/dist/api/resources/audio/index.js +1 -0
- package/dist/api/resources/audio/index.js.map +1 -1
- package/dist/api/resources/audio/types/GenerateAudioUploadUrlRequestLinkTo.d.ts +7 -0
- package/dist/api/resources/audio/types/GenerateAudioUploadUrlRequestLinkTo.d.ts.map +1 -0
- package/dist/api/resources/audio/types/GenerateAudioUploadUrlRequestLinkTo.js +7 -0
- package/dist/api/resources/audio/types/GenerateAudioUploadUrlRequestLinkTo.js.map +1 -0
- package/dist/api/resources/audio/types/index.d.ts +2 -0
- package/dist/api/resources/audio/types/index.d.ts.map +1 -0
- package/dist/api/resources/audio/types/index.js +2 -0
- package/dist/api/resources/audio/types/index.js.map +1 -0
- package/dist/api/resources/episodes/client/Client.d.ts +17 -20
- package/dist/api/resources/episodes/client/Client.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/Client.js +41 -61
- 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 +2 -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 +2 -2
- package/dist/api/resources/index.d.ts.map +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/api/resources/index.js.map +1 -1
- package/dist/api/resources/organizations/client/Client.d.ts +2 -12
- package/dist/api/resources/organizations/client/Client.d.ts.map +1 -1
- package/dist/api/resources/organizations/client/Client.js +6 -53
- package/dist/api/resources/organizations/client/Client.js.map +1 -1
- package/dist/api/resources/podcasts/client/Client.d.ts +39 -22
- package/dist/api/resources/podcasts/client/Client.d.ts.map +1 -1
- package/dist/api/resources/podcasts/client/Client.js +104 -61
- 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 +7 -4
- 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 +5 -1
- 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.d.ts +7 -21
- package/dist/api/resources/segments/client/Client.d.ts.map +1 -1
- package/dist/api/resources/segments/client/Client.js +18 -65
- package/dist/api/resources/segments/client/Client.js.map +1 -1
- package/dist/api/resources/segments/client/requests/ListSegmentsRequest.d.ts +12 -0
- package/dist/api/resources/segments/client/requests/ListSegmentsRequest.d.ts.map +1 -0
- package/dist/api/{types/EpisodeSearchParams.js → resources/segments/client/requests/ListSegmentsRequest.js} +1 -1
- package/dist/api/resources/segments/client/requests/ListSegmentsRequest.js.map +1 -0
- package/dist/api/resources/segments/client/requests/SegmentCreate.d.ts +25 -4
- package/dist/api/resources/segments/client/requests/SegmentCreate.d.ts.map +1 -1
- package/dist/api/resources/segments/client/requests/SegmentCreate.js +8 -1
- package/dist/api/resources/segments/client/requests/SegmentCreate.js.map +1 -1
- package/dist/api/resources/segments/client/requests/SegmentUpdate.d.ts +25 -4
- package/dist/api/resources/segments/client/requests/SegmentUpdate.d.ts.map +1 -1
- package/dist/api/resources/segments/client/requests/SegmentUpdate.js +8 -1
- package/dist/api/resources/segments/client/requests/SegmentUpdate.js.map +1 -1
- package/dist/api/resources/segments/client/requests/index.d.ts +1 -1
- package/dist/api/resources/segments/client/requests/index.d.ts.map +1 -1
- package/dist/api/resources/segments/index.d.ts +1 -0
- package/dist/api/resources/segments/index.d.ts.map +1 -1
- package/dist/api/resources/segments/index.js +1 -0
- package/dist/api/resources/segments/index.js.map +1 -1
- package/dist/api/resources/segments/types/ListSegmentsRequestScope.d.ts +7 -0
- package/dist/api/resources/segments/types/ListSegmentsRequestScope.d.ts.map +1 -0
- package/dist/api/resources/segments/types/ListSegmentsRequestScope.js +7 -0
- package/dist/api/resources/segments/types/ListSegmentsRequestScope.js.map +1 -0
- package/dist/api/resources/segments/types/index.d.ts +2 -0
- package/dist/api/resources/segments/types/index.d.ts.map +1 -0
- package/dist/api/resources/segments/types/index.js +2 -0
- package/dist/api/resources/segments/types/index.js.map +1 -0
- package/dist/api/resources/users/client/Client.d.ts +8 -0
- package/dist/api/resources/users/client/Client.d.ts.map +1 -1
- package/dist/api/resources/users/client/Client.js +18 -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/Audio.d.ts +11 -2
- package/dist/api/types/Audio.d.ts.map +1 -1
- package/dist/api/types/Audio.js +1 -0
- package/dist/api/types/Audio.js.map +1 -1
- package/dist/api/types/{UnauthenticatedError.d.ts → BadRequestErrorBody.d.ts} +2 -2
- package/dist/api/types/BadRequestErrorBody.d.ts.map +1 -0
- package/dist/api/types/{UnauthenticatedError.js → BadRequestErrorBody.js} +1 -1
- package/dist/api/types/BadRequestErrorBody.js.map +1 -0
- package/dist/api/types/Chapter.d.ts +3 -0
- package/dist/api/types/Chapter.d.ts.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/podcasts/client/requests/GetPodcastCoverRequest.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/LinkTo.d.ts +13 -0
- package/dist/api/types/LinkTo.d.ts.map +1 -0
- package/dist/api/types/LinkTo.js +10 -0
- package/dist/api/types/LinkTo.js.map +1 -0
- 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 +2 -1
- package/dist/api/types/Podcast.d.ts.map +1 -1
- 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 +80 -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/PublishPodcastResponse.d.ts +7 -0
- package/dist/api/types/PublishPodcastResponse.d.ts.map +1 -0
- package/dist/api/{resources/episodes/client/requests/GetEpisodeCoverRequest.js → types/PublishPodcastResponse.js} +1 -1
- package/dist/api/types/PublishPodcastResponse.js.map +1 -0
- package/dist/api/types/{EpisodeSearchParams.d.ts → SearchParams.d.ts} +4 -4
- package/dist/api/types/SearchParams.d.ts.map +1 -0
- package/dist/api/types/{AudioEntityLink.js → SearchParams.js} +1 -1
- package/dist/api/types/SearchParams.js.map +1 -0
- package/dist/api/types/Segment.d.ts +1 -2
- package/dist/api/types/Segment.d.ts.map +1 -1
- package/dist/api/types/Segment.js +1 -1
- package/dist/api/types/Segment.js.map +1 -1
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +7 -0
- package/dist/api/types/TooManyRequestsErrorBody.d.ts.map +1 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +3 -0
- 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/{resources/audio/client/requests/FinalizeAudioUploadRequest.js → types/TooManyRequestsErrorResponse.js} +1 -1
- 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/ValidationError.js +3 -0
- 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 +12 -8
- package/dist/api/types/index.d.ts.map +1 -1
- package/dist/api/types/index.js +12 -8
- package/dist/api/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Client.ts +0 -6
- package/src/api/errors/BadRequestError.ts +22 -0
- package/src/api/errors/ForbiddenError.ts +1 -1
- package/src/api/errors/TooManyRequestsError.ts +22 -0
- package/src/api/errors/index.ts +2 -0
- package/src/api/resources/ads/client/Client.ts +84 -12
- package/src/api/resources/audio/client/Client.ts +46 -168
- package/src/api/resources/audio/client/requests/GenerateAudioUploadUrlRequest.ts +12 -0
- package/src/api/resources/audio/client/requests/PullAudioDto.ts +3 -0
- package/src/api/resources/audio/client/requests/index.ts +1 -2
- package/src/api/resources/audio/index.ts +1 -0
- package/src/api/resources/audio/types/GenerateAudioUploadUrlRequestLinkTo.ts +9 -0
- package/src/api/resources/audio/types/index.ts +1 -0
- package/src/api/resources/episodes/client/Client.ts +89 -108
- package/src/api/resources/episodes/client/requests/EpisodeCreate.ts +0 -10
- package/src/api/resources/episodes/client/requests/EpisodeUpdate.ts +2 -11
- package/src/api/resources/episodes/client/requests/index.ts +0 -1
- package/src/api/resources/index.ts +2 -2
- package/src/api/resources/organizations/client/Client.ts +13 -84
- package/src/api/resources/podcasts/client/Client.ts +197 -115
- package/src/api/resources/podcasts/client/requests/PodcastCreate.ts +7 -4
- package/src/api/resources/podcasts/client/requests/PodcastUpdate.ts +5 -1
- package/src/api/resources/podcasts/client/requests/index.ts +1 -1
- package/src/api/resources/segments/client/Client.ts +27 -103
- package/src/api/resources/segments/client/requests/ListSegmentsRequest.ts +14 -0
- package/src/api/resources/segments/client/requests/SegmentCreate.ts +26 -4
- package/src/api/resources/segments/client/requests/SegmentUpdate.ts +26 -4
- package/src/api/resources/segments/client/requests/index.ts +1 -1
- package/src/api/resources/segments/index.ts +1 -0
- package/src/api/resources/segments/types/ListSegmentsRequestScope.ts +8 -0
- package/src/api/resources/segments/types/index.ts +1 -0
- package/src/api/resources/users/client/Client.ts +38 -5
- package/src/api/resources/webhooks/client/Client.ts +28 -4
- package/src/api/types/Audio.ts +11 -2
- package/src/api/types/{UnauthenticatedError.ts → BadRequestErrorBody.ts} +1 -1
- package/src/api/types/Chapter.ts +3 -0
- package/src/api/types/EpisodeCreateResponse.ts +1 -1
- package/src/api/types/{EpisodeCreatedResponseData.ts → EpisodeCreateResponseData.ts} +5 -5
- package/src/api/types/ForbiddenErrorBody.ts +7 -0
- package/src/api/types/{UnauthenticatedErrorResponse.ts → ForbiddenErrorResponse.ts} +2 -2
- package/src/api/types/InternalServerErrorBody.ts +0 -3
- package/src/api/types/LinkTo.ts +15 -0
- package/src/api/types/NotFoundErrorBody.ts +0 -3
- package/src/api/types/Podcast.ts +2 -1
- package/src/api/types/PodcastCreateResponse.ts +9 -0
- package/src/api/types/PodcastCreateResponseData.ts +83 -0
- package/src/api/types/{StringOrNullResponse.ts → PublishPodcastResponse.ts} +2 -2
- package/src/api/types/{EpisodeSearchParams.ts → SearchParams.ts} +3 -3
- package/src/api/types/Segment.ts +1 -2
- 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 +12 -8
- 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/audio/client/requests/FinalizeAudioUploadRequest.d.ts +0 -17
- package/dist/api/resources/audio/client/requests/FinalizeAudioUploadRequest.d.ts.map +0 -1
- package/dist/api/resources/audio/client/requests/FinalizeAudioUploadRequest.js.map +0 -1
- package/dist/api/resources/audio/client/requests/GetAudioPullStatusRequest.d.ts +0 -11
- package/dist/api/resources/audio/client/requests/GetAudioPullStatusRequest.d.ts.map +0 -1
- package/dist/api/resources/audio/client/requests/GetAudioPullStatusRequest.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/resources/segments/client/requests/ListPodcastSegmentsRequest.d.ts +0 -11
- package/dist/api/resources/segments/client/requests/ListPodcastSegmentsRequest.d.ts.map +0 -1
- package/dist/api/resources/segments/client/requests/ListPodcastSegmentsRequest.js +0 -3
- package/dist/api/resources/segments/client/requests/ListPodcastSegmentsRequest.js.map +0 -1
- package/dist/api/types/AudioEntityLink.d.ts +0 -17
- package/dist/api/types/AudioEntityLink.d.ts.map +0 -1
- package/dist/api/types/AudioEntityLink.js.map +0 -1
- package/dist/api/types/AudioPullStatusResponse.d.ts +0 -23
- package/dist/api/types/AudioPullStatusResponse.d.ts.map +0 -1
- package/dist/api/types/AudioPullStatusResponse.js +0 -16
- package/dist/api/types/AudioPullStatusResponse.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/EpisodeSearchParams.d.ts.map +0 -1
- package/dist/api/types/EpisodeSearchParams.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.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/audio/client/requests/FinalizeAudioUploadRequest.ts +0 -19
- package/src/api/resources/audio/client/requests/GetAudioPullStatusRequest.ts +0 -12
- 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/resources/segments/client/requests/ListPodcastSegmentsRequest.ts +0 -12
- package/src/api/types/AudioEntityLink.ts +0 -22
- package/src/api/types/AudioPullStatusResponse.ts +0 -27
- 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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import type * as Ichos from "../../../../index.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface GenerateAudioUploadUrlRequest {
|
|
10
|
+
linkTo?: Ichos.GenerateAudioUploadUrlRequestLinkTo;
|
|
11
|
+
linkToId?: string;
|
|
12
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type { DeleteAudioRequest } from "./DeleteAudioRequest.js";
|
|
2
|
-
export type {
|
|
3
|
-
export type { GetAudioPullStatusRequest } from "./GetAudioPullStatusRequest.js";
|
|
2
|
+
export type { GenerateAudioUploadUrlRequest } from "./GenerateAudioUploadUrlRequest.js";
|
|
4
3
|
export type { GetAudioRequest } from "./GetAudioRequest.js";
|
|
5
4
|
export type { PullAudioDto } from "./PullAudioDto.js";
|
|
6
5
|
export type { TextToSpeechRequest } from "./TextToSpeechRequest.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
export const GenerateAudioUploadUrlRequestLinkTo = {
|
|
4
|
+
Episode: "episode",
|
|
5
|
+
Ad: "ad",
|
|
6
|
+
Segment: "segment",
|
|
7
|
+
} as const;
|
|
8
|
+
export type GenerateAudioUploadUrlRequestLinkTo =
|
|
9
|
+
(typeof GenerateAudioUploadUrlRequestLinkTo)[keyof typeof GenerateAudioUploadUrlRequestLinkTo];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GenerateAudioUploadUrlRequestLinkTo.js";
|
|
@@ -15,6 +15,9 @@ export declare namespace EpisodesClient {
|
|
|
15
15
|
export interface RequestOptions extends BaseRequestOptions {}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Endpoints for managing podcast episodes.
|
|
20
|
+
*/
|
|
18
21
|
export class EpisodesClient {
|
|
19
22
|
protected readonly _options: NormalizedClientOptionsWithAuth<EpisodesClient.Options>;
|
|
20
23
|
|
|
@@ -31,6 +34,7 @@ export class EpisodesClient {
|
|
|
31
34
|
* @throws {@link Ichos.UnauthorizedError}
|
|
32
35
|
* @throws {@link Ichos.ForbiddenError}
|
|
33
36
|
* @throws {@link Ichos.NotFoundError}
|
|
37
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
34
38
|
* @throws {@link Ichos.InternalServerError}
|
|
35
39
|
*
|
|
36
40
|
* @example
|
|
@@ -88,7 +92,7 @@ export class EpisodesClient {
|
|
|
88
92
|
);
|
|
89
93
|
case 403:
|
|
90
94
|
throw new Ichos.ForbiddenError(
|
|
91
|
-
_response.error.body as Ichos.
|
|
95
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
92
96
|
_response.rawResponse,
|
|
93
97
|
);
|
|
94
98
|
case 404:
|
|
@@ -96,6 +100,11 @@ export class EpisodesClient {
|
|
|
96
100
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
97
101
|
_response.rawResponse,
|
|
98
102
|
);
|
|
103
|
+
case 429:
|
|
104
|
+
throw new Ichos.TooManyRequestsError(
|
|
105
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
106
|
+
_response.rawResponse,
|
|
107
|
+
);
|
|
99
108
|
case 500:
|
|
100
109
|
throw new Ichos.InternalServerError(
|
|
101
110
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -122,6 +131,7 @@ export class EpisodesClient {
|
|
|
122
131
|
* @throws {@link Ichos.UnauthorizedError}
|
|
123
132
|
* @throws {@link Ichos.ForbiddenError}
|
|
124
133
|
* @throws {@link Ichos.NotFoundError}
|
|
134
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
125
135
|
* @throws {@link Ichos.InternalServerError}
|
|
126
136
|
*
|
|
127
137
|
* @example
|
|
@@ -180,7 +190,7 @@ export class EpisodesClient {
|
|
|
180
190
|
);
|
|
181
191
|
case 403:
|
|
182
192
|
throw new Ichos.ForbiddenError(
|
|
183
|
-
_response.error.body as Ichos.
|
|
193
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
184
194
|
_response.rawResponse,
|
|
185
195
|
);
|
|
186
196
|
case 404:
|
|
@@ -188,6 +198,11 @@ export class EpisodesClient {
|
|
|
188
198
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
189
199
|
_response.rawResponse,
|
|
190
200
|
);
|
|
201
|
+
case 429:
|
|
202
|
+
throw new Ichos.TooManyRequestsError(
|
|
203
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
204
|
+
_response.rawResponse,
|
|
205
|
+
);
|
|
191
206
|
case 500:
|
|
192
207
|
throw new Ichos.InternalServerError(
|
|
193
208
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -213,6 +228,7 @@ export class EpisodesClient {
|
|
|
213
228
|
*
|
|
214
229
|
* @throws {@link Ichos.UnauthorizedError}
|
|
215
230
|
* @throws {@link Ichos.ForbiddenError}
|
|
231
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
216
232
|
* @throws {@link Ichos.InternalServerError}
|
|
217
233
|
*
|
|
218
234
|
* @example
|
|
@@ -295,7 +311,12 @@ export class EpisodesClient {
|
|
|
295
311
|
);
|
|
296
312
|
case 403:
|
|
297
313
|
throw new Ichos.ForbiddenError(
|
|
298
|
-
_response.error.body as Ichos.
|
|
314
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
315
|
+
_response.rawResponse,
|
|
316
|
+
);
|
|
317
|
+
case 429:
|
|
318
|
+
throw new Ichos.TooManyRequestsError(
|
|
319
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
299
320
|
_response.rawResponse,
|
|
300
321
|
);
|
|
301
322
|
case 500:
|
|
@@ -324,6 +345,7 @@ export class EpisodesClient {
|
|
|
324
345
|
* @throws {@link Ichos.UnauthorizedError}
|
|
325
346
|
* @throws {@link Ichos.ForbiddenError}
|
|
326
347
|
* @throws {@link Ichos.NotFoundError}
|
|
348
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
327
349
|
* @throws {@link Ichos.InternalServerError}
|
|
328
350
|
*
|
|
329
351
|
* @example
|
|
@@ -379,7 +401,7 @@ export class EpisodesClient {
|
|
|
379
401
|
);
|
|
380
402
|
case 403:
|
|
381
403
|
throw new Ichos.ForbiddenError(
|
|
382
|
-
_response.error.body as Ichos.
|
|
404
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
383
405
|
_response.rawResponse,
|
|
384
406
|
);
|
|
385
407
|
case 404:
|
|
@@ -387,6 +409,11 @@ export class EpisodesClient {
|
|
|
387
409
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
388
410
|
_response.rawResponse,
|
|
389
411
|
);
|
|
412
|
+
case 429:
|
|
413
|
+
throw new Ichos.TooManyRequestsError(
|
|
414
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
415
|
+
_response.rawResponse,
|
|
416
|
+
);
|
|
390
417
|
case 500:
|
|
391
418
|
throw new Ichos.InternalServerError(
|
|
392
419
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -414,6 +441,7 @@ export class EpisodesClient {
|
|
|
414
441
|
* @throws {@link Ichos.UnauthorizedError}
|
|
415
442
|
* @throws {@link Ichos.ForbiddenError}
|
|
416
443
|
* @throws {@link Ichos.NotFoundError}
|
|
444
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
417
445
|
* @throws {@link Ichos.InternalServerError}
|
|
418
446
|
*
|
|
419
447
|
* @example
|
|
@@ -474,7 +502,7 @@ export class EpisodesClient {
|
|
|
474
502
|
);
|
|
475
503
|
case 403:
|
|
476
504
|
throw new Ichos.ForbiddenError(
|
|
477
|
-
_response.error.body as Ichos.
|
|
505
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
478
506
|
_response.rawResponse,
|
|
479
507
|
);
|
|
480
508
|
case 404:
|
|
@@ -482,6 +510,11 @@ export class EpisodesClient {
|
|
|
482
510
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
483
511
|
_response.rawResponse,
|
|
484
512
|
);
|
|
513
|
+
case 429:
|
|
514
|
+
throw new Ichos.TooManyRequestsError(
|
|
515
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
516
|
+
_response.rawResponse,
|
|
517
|
+
);
|
|
485
518
|
case 500:
|
|
486
519
|
throw new Ichos.InternalServerError(
|
|
487
520
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -500,7 +533,7 @@ export class EpisodesClient {
|
|
|
500
533
|
}
|
|
501
534
|
|
|
502
535
|
/**
|
|
503
|
-
* Update an existing episode
|
|
536
|
+
* Update an existing episode
|
|
504
537
|
* Cover uploads are finalized via storage events; to replace a cover, start a new upload flow.
|
|
505
538
|
*
|
|
506
539
|
* @param {Ichos.EpisodeUpdate} request
|
|
@@ -509,6 +542,7 @@ export class EpisodesClient {
|
|
|
509
542
|
* @throws {@link Ichos.UnauthorizedError}
|
|
510
543
|
* @throws {@link Ichos.ForbiddenError}
|
|
511
544
|
* @throws {@link Ichos.NotFoundError}
|
|
545
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
512
546
|
* @throws {@link Ichos.InternalServerError}
|
|
513
547
|
*
|
|
514
548
|
* @example
|
|
@@ -567,7 +601,7 @@ export class EpisodesClient {
|
|
|
567
601
|
);
|
|
568
602
|
case 403:
|
|
569
603
|
throw new Ichos.ForbiddenError(
|
|
570
|
-
_response.error.body as Ichos.
|
|
604
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
571
605
|
_response.rawResponse,
|
|
572
606
|
);
|
|
573
607
|
case 404:
|
|
@@ -575,6 +609,11 @@ export class EpisodesClient {
|
|
|
575
609
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
576
610
|
_response.rawResponse,
|
|
577
611
|
);
|
|
612
|
+
case 429:
|
|
613
|
+
throw new Ichos.TooManyRequestsError(
|
|
614
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
615
|
+
_response.rawResponse,
|
|
616
|
+
);
|
|
578
617
|
case 500:
|
|
579
618
|
throw new Ichos.InternalServerError(
|
|
580
619
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -601,6 +640,7 @@ export class EpisodesClient {
|
|
|
601
640
|
* @throws {@link Ichos.UnauthorizedError}
|
|
602
641
|
* @throws {@link Ichos.ForbiddenError}
|
|
603
642
|
* @throws {@link Ichos.NotFoundError}
|
|
643
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
604
644
|
* @throws {@link Ichos.InternalServerError}
|
|
605
645
|
*
|
|
606
646
|
* @example
|
|
@@ -656,7 +696,7 @@ export class EpisodesClient {
|
|
|
656
696
|
);
|
|
657
697
|
case 403:
|
|
658
698
|
throw new Ichos.ForbiddenError(
|
|
659
|
-
_response.error.body as Ichos.
|
|
699
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
660
700
|
_response.rawResponse,
|
|
661
701
|
);
|
|
662
702
|
case 404:
|
|
@@ -664,6 +704,11 @@ export class EpisodesClient {
|
|
|
664
704
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
665
705
|
_response.rawResponse,
|
|
666
706
|
);
|
|
707
|
+
case 429:
|
|
708
|
+
throw new Ichos.TooManyRequestsError(
|
|
709
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
710
|
+
_response.rawResponse,
|
|
711
|
+
);
|
|
667
712
|
case 500:
|
|
668
713
|
throw new Ichos.InternalServerError(
|
|
669
714
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -695,6 +740,7 @@ export class EpisodesClient {
|
|
|
695
740
|
* @throws {@link Ichos.UnauthorizedError}
|
|
696
741
|
* @throws {@link Ichos.ForbiddenError}
|
|
697
742
|
* @throws {@link Ichos.NotFoundError}
|
|
743
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
698
744
|
* @throws {@link Ichos.InternalServerError}
|
|
699
745
|
*
|
|
700
746
|
* @example
|
|
@@ -754,7 +800,7 @@ export class EpisodesClient {
|
|
|
754
800
|
);
|
|
755
801
|
case 403:
|
|
756
802
|
throw new Ichos.ForbiddenError(
|
|
757
|
-
_response.error.body as Ichos.
|
|
803
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
758
804
|
_response.rawResponse,
|
|
759
805
|
);
|
|
760
806
|
case 404:
|
|
@@ -762,98 +808,9 @@ export class EpisodesClient {
|
|
|
762
808
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
763
809
|
_response.rawResponse,
|
|
764
810
|
);
|
|
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,
|
|
811
|
+
case 429:
|
|
812
|
+
throw new Ichos.TooManyRequestsError(
|
|
813
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
857
814
|
_response.rawResponse,
|
|
858
815
|
);
|
|
859
816
|
case 500:
|
|
@@ -873,8 +830,8 @@ export class EpisodesClient {
|
|
|
873
830
|
return handleNonStatusCodeError(
|
|
874
831
|
_response.error,
|
|
875
832
|
_response.rawResponse,
|
|
876
|
-
"
|
|
877
|
-
"/v1/episodes/{episodeId}/cover",
|
|
833
|
+
"POST",
|
|
834
|
+
"/v1/episodes/{episodeId}/cover/pull",
|
|
878
835
|
);
|
|
879
836
|
}
|
|
880
837
|
|
|
@@ -888,6 +845,7 @@ export class EpisodesClient {
|
|
|
888
845
|
* @throws {@link Ichos.ForbiddenError}
|
|
889
846
|
* @throws {@link Ichos.NotFoundError}
|
|
890
847
|
* @throws {@link Ichos.UnprocessableEntityError}
|
|
848
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
891
849
|
* @throws {@link Ichos.InternalServerError}
|
|
892
850
|
*
|
|
893
851
|
* @example
|
|
@@ -943,7 +901,7 @@ export class EpisodesClient {
|
|
|
943
901
|
);
|
|
944
902
|
case 403:
|
|
945
903
|
throw new Ichos.ForbiddenError(
|
|
946
|
-
_response.error.body as Ichos.
|
|
904
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
947
905
|
_response.rawResponse,
|
|
948
906
|
);
|
|
949
907
|
case 404:
|
|
@@ -956,6 +914,11 @@ export class EpisodesClient {
|
|
|
956
914
|
_response.error.body as Ichos.ValidationErrorResponse,
|
|
957
915
|
_response.rawResponse,
|
|
958
916
|
);
|
|
917
|
+
case 429:
|
|
918
|
+
throw new Ichos.TooManyRequestsError(
|
|
919
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
920
|
+
_response.rawResponse,
|
|
921
|
+
);
|
|
959
922
|
case 500:
|
|
960
923
|
throw new Ichos.InternalServerError(
|
|
961
924
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -987,6 +950,7 @@ export class EpisodesClient {
|
|
|
987
950
|
* @throws {@link Ichos.UnauthorizedError}
|
|
988
951
|
* @throws {@link Ichos.ForbiddenError}
|
|
989
952
|
* @throws {@link Ichos.NotFoundError}
|
|
953
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
990
954
|
* @throws {@link Ichos.InternalServerError}
|
|
991
955
|
*
|
|
992
956
|
* @example
|
|
@@ -1042,7 +1006,7 @@ export class EpisodesClient {
|
|
|
1042
1006
|
);
|
|
1043
1007
|
case 403:
|
|
1044
1008
|
throw new Ichos.ForbiddenError(
|
|
1045
|
-
_response.error.body as Ichos.
|
|
1009
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
1046
1010
|
_response.rawResponse,
|
|
1047
1011
|
);
|
|
1048
1012
|
case 404:
|
|
@@ -1050,6 +1014,11 @@ export class EpisodesClient {
|
|
|
1050
1014
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
1051
1015
|
_response.rawResponse,
|
|
1052
1016
|
);
|
|
1017
|
+
case 429:
|
|
1018
|
+
throw new Ichos.TooManyRequestsError(
|
|
1019
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1020
|
+
_response.rawResponse,
|
|
1021
|
+
);
|
|
1053
1022
|
case 500:
|
|
1054
1023
|
throw new Ichos.InternalServerError(
|
|
1055
1024
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -1073,7 +1042,7 @@ export class EpisodesClient {
|
|
|
1073
1042
|
}
|
|
1074
1043
|
|
|
1075
1044
|
/**
|
|
1076
|
-
*
|
|
1045
|
+
* Get audio record for a specific episode.
|
|
1077
1046
|
*
|
|
1078
1047
|
* @param {Ichos.GetEpisodeAudioRequest} request
|
|
1079
1048
|
* @param {EpisodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1081,6 +1050,7 @@ export class EpisodesClient {
|
|
|
1081
1050
|
* @throws {@link Ichos.UnauthorizedError}
|
|
1082
1051
|
* @throws {@link Ichos.ForbiddenError}
|
|
1083
1052
|
* @throws {@link Ichos.NotFoundError}
|
|
1053
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
1084
1054
|
* @throws {@link Ichos.InternalServerError}
|
|
1085
1055
|
*
|
|
1086
1056
|
* @example
|
|
@@ -1136,7 +1106,7 @@ export class EpisodesClient {
|
|
|
1136
1106
|
);
|
|
1137
1107
|
case 403:
|
|
1138
1108
|
throw new Ichos.ForbiddenError(
|
|
1139
|
-
_response.error.body as Ichos.
|
|
1109
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
1140
1110
|
_response.rawResponse,
|
|
1141
1111
|
);
|
|
1142
1112
|
case 404:
|
|
@@ -1144,6 +1114,11 @@ export class EpisodesClient {
|
|
|
1144
1114
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
1145
1115
|
_response.rawResponse,
|
|
1146
1116
|
);
|
|
1117
|
+
case 429:
|
|
1118
|
+
throw new Ichos.TooManyRequestsError(
|
|
1119
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1120
|
+
_response.rawResponse,
|
|
1121
|
+
);
|
|
1147
1122
|
case 500:
|
|
1148
1123
|
throw new Ichos.InternalServerError(
|
|
1149
1124
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -1175,6 +1150,7 @@ export class EpisodesClient {
|
|
|
1175
1150
|
* @throws {@link Ichos.UnauthorizedError}
|
|
1176
1151
|
* @throws {@link Ichos.ForbiddenError}
|
|
1177
1152
|
* @throws {@link Ichos.NotFoundError}
|
|
1153
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
1178
1154
|
* @throws {@link Ichos.InternalServerError}
|
|
1179
1155
|
*
|
|
1180
1156
|
* @example
|
|
@@ -1234,7 +1210,7 @@ export class EpisodesClient {
|
|
|
1234
1210
|
);
|
|
1235
1211
|
case 403:
|
|
1236
1212
|
throw new Ichos.ForbiddenError(
|
|
1237
|
-
_response.error.body as Ichos.
|
|
1213
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
1238
1214
|
_response.rawResponse,
|
|
1239
1215
|
);
|
|
1240
1216
|
case 404:
|
|
@@ -1242,6 +1218,11 @@ export class EpisodesClient {
|
|
|
1242
1218
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
1243
1219
|
_response.rawResponse,
|
|
1244
1220
|
);
|
|
1221
|
+
case 429:
|
|
1222
|
+
throw new Ichos.TooManyRequestsError(
|
|
1223
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
1224
|
+
_response.rawResponse,
|
|
1225
|
+
);
|
|
1245
1226
|
case 500:
|
|
1246
1227
|
throw new Ichos.InternalServerError(
|
|
1247
1228
|
_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
|
}
|
|
@@ -11,14 +11,14 @@ import type * as Ichos from "../../../../index.js";
|
|
|
11
11
|
export interface EpisodeUpdate {
|
|
12
12
|
/** - The ID of the episode to update */
|
|
13
13
|
episodeId: string;
|
|
14
|
+
metadata?: Ichos.Metadata;
|
|
14
15
|
title?: string;
|
|
15
16
|
link?: string;
|
|
16
17
|
description?: string;
|
|
17
18
|
adsEnabled?: boolean;
|
|
18
19
|
explicit?: boolean;
|
|
19
20
|
block?: boolean;
|
|
20
|
-
|
|
21
|
-
pubDate?: string;
|
|
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,9 +1,8 @@
|
|
|
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";
|
|
5
|
+
export * from "./audio/types/index.js";
|
|
7
6
|
export * from "./episodes/client/requests/index.js";
|
|
8
7
|
export * as episodes from "./episodes/index.js";
|
|
9
8
|
export * as organizations from "./organizations/index.js";
|
|
@@ -11,6 +10,7 @@ export * from "./podcasts/client/requests/index.js";
|
|
|
11
10
|
export * as podcasts from "./podcasts/index.js";
|
|
12
11
|
export * from "./segments/client/requests/index.js";
|
|
13
12
|
export * as segments from "./segments/index.js";
|
|
13
|
+
export * from "./segments/types/index.js";
|
|
14
14
|
export * from "./users/client/requests/index.js";
|
|
15
15
|
export * as users from "./users/index.js";
|
|
16
16
|
export * from "./webhooks/client/requests/index.js";
|