@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
|
@@ -23,27 +23,40 @@ export class SegmentsClient {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* Retrieve all segments for the
|
|
26
|
+
* Retrieve all segments for the given scope.
|
|
27
27
|
*
|
|
28
|
+
* @param {Ichos.ListSegmentsRequest} request
|
|
28
29
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
30
|
*
|
|
31
|
+
* @throws {@link Ichos.BadRequestError}
|
|
30
32
|
* @throws {@link Ichos.UnauthorizedError}
|
|
31
33
|
* @throws {@link Ichos.ForbiddenError}
|
|
32
34
|
* @throws {@link Ichos.NotFoundError}
|
|
33
35
|
* @throws {@link Ichos.InternalServerError}
|
|
34
36
|
*
|
|
35
37
|
* @example
|
|
36
|
-
* await client.segments.listSegments(
|
|
38
|
+
* await client.segments.listSegments({
|
|
39
|
+
* scope: "organization"
|
|
40
|
+
* })
|
|
37
41
|
*/
|
|
38
42
|
public listSegments(
|
|
43
|
+
request: Ichos.ListSegmentsRequest,
|
|
39
44
|
requestOptions?: SegmentsClient.RequestOptions,
|
|
40
45
|
): core.HttpResponsePromise<Ichos.SegmentListResponse> {
|
|
41
|
-
return core.HttpResponsePromise.fromPromise(this.__listSegments(requestOptions));
|
|
46
|
+
return core.HttpResponsePromise.fromPromise(this.__listSegments(request, requestOptions));
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
private async __listSegments(
|
|
50
|
+
request: Ichos.ListSegmentsRequest,
|
|
45
51
|
requestOptions?: SegmentsClient.RequestOptions,
|
|
46
52
|
): Promise<core.WithRawResponse<Ichos.SegmentListResponse>> {
|
|
53
|
+
const { scope, id } = request;
|
|
54
|
+
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
|
|
55
|
+
_queryParams.scope = scope;
|
|
56
|
+
if (id != null) {
|
|
57
|
+
_queryParams.id = id;
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
48
61
|
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
49
62
|
_authRequest.headers,
|
|
@@ -60,7 +73,7 @@ export class SegmentsClient {
|
|
|
60
73
|
),
|
|
61
74
|
method: "GET",
|
|
62
75
|
headers: _headers,
|
|
63
|
-
queryParameters: requestOptions?.queryParams,
|
|
76
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
64
77
|
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
65
78
|
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
66
79
|
abortSignal: requestOptions?.abortSignal,
|
|
@@ -73,6 +86,11 @@ export class SegmentsClient {
|
|
|
73
86
|
|
|
74
87
|
if (_response.error.reason === "status-code") {
|
|
75
88
|
switch (_response.error.statusCode) {
|
|
89
|
+
case 400:
|
|
90
|
+
throw new Ichos.BadRequestError(
|
|
91
|
+
_response.error.body as Ichos.BadRequestErrorBody,
|
|
92
|
+
_response.rawResponse,
|
|
93
|
+
);
|
|
76
94
|
case 401:
|
|
77
95
|
throw new Ichos.UnauthorizedError(
|
|
78
96
|
_response.error.body as Ichos.UnauthorizedErrorResponse,
|
|
@@ -80,7 +98,7 @@ export class SegmentsClient {
|
|
|
80
98
|
);
|
|
81
99
|
case 403:
|
|
82
100
|
throw new Ichos.ForbiddenError(
|
|
83
|
-
_response.error.body as Ichos.
|
|
101
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
84
102
|
_response.rawResponse,
|
|
85
103
|
);
|
|
86
104
|
case 404:
|
|
@@ -172,7 +190,7 @@ export class SegmentsClient {
|
|
|
172
190
|
);
|
|
173
191
|
case 403:
|
|
174
192
|
throw new Ichos.ForbiddenError(
|
|
175
|
-
_response.error.body as Ichos.
|
|
193
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
176
194
|
_response.rawResponse,
|
|
177
195
|
);
|
|
178
196
|
case 500:
|
|
@@ -259,7 +277,7 @@ export class SegmentsClient {
|
|
|
259
277
|
);
|
|
260
278
|
case 403:
|
|
261
279
|
throw new Ichos.ForbiddenError(
|
|
262
|
-
_response.error.body as Ichos.
|
|
280
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
263
281
|
_response.rawResponse,
|
|
264
282
|
);
|
|
265
283
|
case 500:
|
|
@@ -284,100 +302,6 @@ export class SegmentsClient {
|
|
|
284
302
|
);
|
|
285
303
|
}
|
|
286
304
|
|
|
287
|
-
/**
|
|
288
|
-
* Retrieve all segments for a specific podcast.
|
|
289
|
-
*
|
|
290
|
-
* @param {Ichos.ListPodcastSegmentsRequest} request
|
|
291
|
-
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
292
|
-
*
|
|
293
|
-
* @throws {@link Ichos.UnauthorizedError}
|
|
294
|
-
* @throws {@link Ichos.ForbiddenError}
|
|
295
|
-
* @throws {@link Ichos.NotFoundError}
|
|
296
|
-
* @throws {@link Ichos.InternalServerError}
|
|
297
|
-
*
|
|
298
|
-
* @example
|
|
299
|
-
* await client.segments.listPodcastSegments({
|
|
300
|
-
* podcastId: "podcastId"
|
|
301
|
-
* })
|
|
302
|
-
*/
|
|
303
|
-
public listPodcastSegments(
|
|
304
|
-
request: Ichos.ListPodcastSegmentsRequest,
|
|
305
|
-
requestOptions?: SegmentsClient.RequestOptions,
|
|
306
|
-
): core.HttpResponsePromise<Ichos.SegmentListResponse> {
|
|
307
|
-
return core.HttpResponsePromise.fromPromise(this.__listPodcastSegments(request, requestOptions));
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
private async __listPodcastSegments(
|
|
311
|
-
request: Ichos.ListPodcastSegmentsRequest,
|
|
312
|
-
requestOptions?: SegmentsClient.RequestOptions,
|
|
313
|
-
): Promise<core.WithRawResponse<Ichos.SegmentListResponse>> {
|
|
314
|
-
const { podcastId } = request;
|
|
315
|
-
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
316
|
-
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
317
|
-
_authRequest.headers,
|
|
318
|
-
this._options?.headers,
|
|
319
|
-
mergeOnlyDefinedHeaders({ "x-virtual-user": requestOptions?.virtualUser ?? this._options?.virtualUser }),
|
|
320
|
-
requestOptions?.headers,
|
|
321
|
-
);
|
|
322
|
-
const _response = await core.fetcher({
|
|
323
|
-
url: core.url.join(
|
|
324
|
-
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
325
|
-
(await core.Supplier.get(this._options.environment)) ??
|
|
326
|
-
environments.IchosEnvironment.Default,
|
|
327
|
-
`v1/segments/podcast/${core.url.encodePathParam(podcastId)}`,
|
|
328
|
-
),
|
|
329
|
-
method: "GET",
|
|
330
|
-
headers: _headers,
|
|
331
|
-
queryParameters: requestOptions?.queryParams,
|
|
332
|
-
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
333
|
-
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
334
|
-
abortSignal: requestOptions?.abortSignal,
|
|
335
|
-
fetchFn: this._options?.fetch,
|
|
336
|
-
logging: this._options.logging,
|
|
337
|
-
});
|
|
338
|
-
if (_response.ok) {
|
|
339
|
-
return { data: _response.body as Ichos.SegmentListResponse, rawResponse: _response.rawResponse };
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
if (_response.error.reason === "status-code") {
|
|
343
|
-
switch (_response.error.statusCode) {
|
|
344
|
-
case 401:
|
|
345
|
-
throw new Ichos.UnauthorizedError(
|
|
346
|
-
_response.error.body as Ichos.UnauthorizedErrorResponse,
|
|
347
|
-
_response.rawResponse,
|
|
348
|
-
);
|
|
349
|
-
case 403:
|
|
350
|
-
throw new Ichos.ForbiddenError(
|
|
351
|
-
_response.error.body as Ichos.UnauthenticatedErrorResponse,
|
|
352
|
-
_response.rawResponse,
|
|
353
|
-
);
|
|
354
|
-
case 404:
|
|
355
|
-
throw new Ichos.NotFoundError(
|
|
356
|
-
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
357
|
-
_response.rawResponse,
|
|
358
|
-
);
|
|
359
|
-
case 500:
|
|
360
|
-
throw new Ichos.InternalServerError(
|
|
361
|
-
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
362
|
-
_response.rawResponse,
|
|
363
|
-
);
|
|
364
|
-
default:
|
|
365
|
-
throw new errors.IchosError({
|
|
366
|
-
statusCode: _response.error.statusCode,
|
|
367
|
-
body: _response.error.body,
|
|
368
|
-
rawResponse: _response.rawResponse,
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
return handleNonStatusCodeError(
|
|
374
|
-
_response.error,
|
|
375
|
-
_response.rawResponse,
|
|
376
|
-
"GET",
|
|
377
|
-
"/v1/segments/podcast/{podcastId}",
|
|
378
|
-
);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
305
|
/**
|
|
382
306
|
* Delete a segment.
|
|
383
307
|
* Optionally delete the associated audio file.
|
|
@@ -448,7 +372,7 @@ export class SegmentsClient {
|
|
|
448
372
|
);
|
|
449
373
|
case 403:
|
|
450
374
|
throw new Ichos.ForbiddenError(
|
|
451
|
-
_response.error.body as Ichos.
|
|
375
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
452
376
|
_response.rawResponse,
|
|
453
377
|
);
|
|
454
378
|
case 404:
|
|
@@ -540,7 +464,7 @@ export class SegmentsClient {
|
|
|
540
464
|
);
|
|
541
465
|
case 403:
|
|
542
466
|
throw new Ichos.ForbiddenError(
|
|
543
|
-
_response.error.body as Ichos.
|
|
467
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
544
468
|
_response.rawResponse,
|
|
545
469
|
);
|
|
546
470
|
case 404:
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
* scope: "organization"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ListSegmentsRequest {
|
|
12
|
+
scope: Ichos.ListSegmentsRequestScope;
|
|
13
|
+
id?: string;
|
|
14
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
+
import type * as Ichos from "../../../../index.js";
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* @example
|
|
5
7
|
* {
|
|
@@ -8,22 +10,42 @@
|
|
|
8
10
|
* }
|
|
9
11
|
*/
|
|
10
12
|
export interface SegmentCreate {
|
|
13
|
+
/**
|
|
14
|
+
* The scope of the segment, which can be 'organization', 'virtualUser', or 'podcast'. This determines the ownership and applicability of the segment.
|
|
15
|
+
* - 'organization': The segment applies to all podcasts within the organization.
|
|
16
|
+
* - 'virtualUser': The segment applies to all podcasts associated with a specific virtual user.
|
|
17
|
+
* - 'podcast': The segment applies only to a specific podcast.
|
|
18
|
+
*/
|
|
11
19
|
scope: SegmentCreate.Scope;
|
|
20
|
+
/** The type of segment, which can be either 'intro' or 'outro'. */
|
|
12
21
|
type: SegmentCreate.Type;
|
|
22
|
+
/** Whether or not the segment will be actively used. */
|
|
13
23
|
active?: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
/**
|
|
25
|
+
* The ID to the virtualUser or podcast this segment belongs to, depending on the scope.
|
|
26
|
+
* For an organization-scoped segment, this is not required.
|
|
27
|
+
*/
|
|
28
|
+
entityId?: string;
|
|
29
|
+
/** Optional metadata object that can store additional information about the segment. */
|
|
30
|
+
metadata?: Ichos.Metadata;
|
|
31
|
+
/** The ID of the audio file associated with this segment, if any. */
|
|
17
32
|
audioId?: string | null;
|
|
18
33
|
}
|
|
19
34
|
|
|
20
35
|
export namespace SegmentCreate {
|
|
36
|
+
/**
|
|
37
|
+
* The scope of the segment, which can be 'organization', 'virtualUser', or 'podcast'. This determines the ownership and applicability of the segment.
|
|
38
|
+
* - 'organization': The segment applies to all podcasts within the organization.
|
|
39
|
+
* - 'virtualUser': The segment applies to all podcasts associated with a specific virtual user.
|
|
40
|
+
* - 'podcast': The segment applies only to a specific podcast.
|
|
41
|
+
*/
|
|
21
42
|
export const Scope = {
|
|
22
43
|
Organization: "organization",
|
|
23
|
-
VirtualUser: "
|
|
44
|
+
VirtualUser: "virtualUser",
|
|
24
45
|
Podcast: "podcast",
|
|
25
46
|
} as const;
|
|
26
47
|
export type Scope = (typeof Scope)[keyof typeof Scope];
|
|
48
|
+
/** The type of segment, which can be either 'intro' or 'outro'. */
|
|
27
49
|
export const Type = {
|
|
28
50
|
Intro: "intro",
|
|
29
51
|
Outro: "outro",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
+
import type * as Ichos from "../../../../index.js";
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* @example
|
|
5
7
|
* {
|
|
@@ -8,22 +10,42 @@
|
|
|
8
10
|
*/
|
|
9
11
|
export interface SegmentUpdate {
|
|
10
12
|
segmentId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The scope of the segment, which can be 'organization', 'virtualUser', or 'podcast'. This determines the ownership and applicability of the segment.
|
|
15
|
+
* - 'organization': The segment applies to all podcasts within the organization.
|
|
16
|
+
* - 'virtualUser': The segment applies to all podcasts associated with a specific virtual user.
|
|
17
|
+
* - 'podcast': The segment applies only to a specific podcast.
|
|
18
|
+
*/
|
|
11
19
|
scope?: SegmentUpdate.Scope;
|
|
20
|
+
/** The type of segment, which can be either 'intro' or 'outro'. */
|
|
12
21
|
type?: SegmentUpdate.Type;
|
|
22
|
+
/** Whether or not the segment will be actively used. */
|
|
13
23
|
active?: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
/**
|
|
25
|
+
* The ID to the virtualUser or podcast this segment belongs to, depending on the scope.
|
|
26
|
+
* For an organization-scoped segment, this is not required.
|
|
27
|
+
*/
|
|
28
|
+
entityId?: string;
|
|
29
|
+
/** Optional metadata object that can store additional information about the segment. */
|
|
30
|
+
metadata?: Ichos.Metadata;
|
|
31
|
+
/** The ID of the audio file associated with this segment, if any. */
|
|
17
32
|
audioId?: string;
|
|
18
33
|
}
|
|
19
34
|
|
|
20
35
|
export namespace SegmentUpdate {
|
|
36
|
+
/**
|
|
37
|
+
* The scope of the segment, which can be 'organization', 'virtualUser', or 'podcast'. This determines the ownership and applicability of the segment.
|
|
38
|
+
* - 'organization': The segment applies to all podcasts within the organization.
|
|
39
|
+
* - 'virtualUser': The segment applies to all podcasts associated with a specific virtual user.
|
|
40
|
+
* - 'podcast': The segment applies only to a specific podcast.
|
|
41
|
+
*/
|
|
21
42
|
export const Scope = {
|
|
22
43
|
Organization: "organization",
|
|
23
|
-
VirtualUser: "
|
|
44
|
+
VirtualUser: "virtualUser",
|
|
24
45
|
Podcast: "podcast",
|
|
25
46
|
} as const;
|
|
26
47
|
export type Scope = (typeof Scope)[keyof typeof Scope];
|
|
48
|
+
/** The type of segment, which can be either 'intro' or 'outro'. */
|
|
27
49
|
export const Type = {
|
|
28
50
|
Intro: "intro",
|
|
29
51
|
Outro: "outro",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { DeleteSegmentRequest } from "./DeleteSegmentRequest.js";
|
|
2
2
|
export type { LinkSegmentAudioRequest } from "./LinkSegmentAudioRequest.js";
|
|
3
|
-
export type {
|
|
3
|
+
export type { ListSegmentsRequest } from "./ListSegmentsRequest.js";
|
|
4
4
|
export type { SegmentCreate } from "./SegmentCreate.js";
|
|
5
5
|
export type { SegmentUpdate } from "./SegmentUpdate.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
export const ListSegmentsRequestScope = {
|
|
4
|
+
Organization: "organization",
|
|
5
|
+
VirtualUser: "virtualUser",
|
|
6
|
+
Podcast: "podcast",
|
|
7
|
+
} as const;
|
|
8
|
+
export type ListSegmentsRequestScope = (typeof ListSegmentsRequestScope)[keyof typeof ListSegmentsRequestScope];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListSegmentsRequestScope.js";
|
|
@@ -15,6 +15,9 @@ export declare namespace UsersClient {
|
|
|
15
15
|
export interface RequestOptions extends BaseRequestOptions {}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Endpoints for managing user accounts and profiles.
|
|
20
|
+
*/
|
|
18
21
|
export class UsersClient {
|
|
19
22
|
protected readonly _options: NormalizedClientOptionsWithAuth<UsersClient.Options>;
|
|
20
23
|
|
|
@@ -30,6 +33,7 @@ export class UsersClient {
|
|
|
30
33
|
* @throws {@link Ichos.UnauthorizedError}
|
|
31
34
|
* @throws {@link Ichos.ForbiddenError}
|
|
32
35
|
* @throws {@link Ichos.NotFoundError}
|
|
36
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
33
37
|
* @throws {@link Ichos.InternalServerError}
|
|
34
38
|
*
|
|
35
39
|
* @example
|
|
@@ -80,7 +84,7 @@ export class UsersClient {
|
|
|
80
84
|
);
|
|
81
85
|
case 403:
|
|
82
86
|
throw new Ichos.ForbiddenError(
|
|
83
|
-
_response.error.body as Ichos.
|
|
87
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
84
88
|
_response.rawResponse,
|
|
85
89
|
);
|
|
86
90
|
case 404:
|
|
@@ -88,6 +92,11 @@ export class UsersClient {
|
|
|
88
92
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
89
93
|
_response.rawResponse,
|
|
90
94
|
);
|
|
95
|
+
case 429:
|
|
96
|
+
throw new Ichos.TooManyRequestsError(
|
|
97
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
98
|
+
_response.rawResponse,
|
|
99
|
+
);
|
|
91
100
|
case 500:
|
|
92
101
|
throw new Ichos.InternalServerError(
|
|
93
102
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -113,6 +122,7 @@ export class UsersClient {
|
|
|
113
122
|
* @throws {@link Ichos.UnauthorizedError}
|
|
114
123
|
* @throws {@link Ichos.ForbiddenError}
|
|
115
124
|
* @throws {@link Ichos.NotFoundError}
|
|
125
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
116
126
|
* @throws {@link Ichos.InternalServerError}
|
|
117
127
|
*
|
|
118
128
|
* @example
|
|
@@ -163,7 +173,7 @@ export class UsersClient {
|
|
|
163
173
|
);
|
|
164
174
|
case 403:
|
|
165
175
|
throw new Ichos.ForbiddenError(
|
|
166
|
-
_response.error.body as Ichos.
|
|
176
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
167
177
|
_response.rawResponse,
|
|
168
178
|
);
|
|
169
179
|
case 404:
|
|
@@ -171,6 +181,11 @@ export class UsersClient {
|
|
|
171
181
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
172
182
|
_response.rawResponse,
|
|
173
183
|
);
|
|
184
|
+
case 429:
|
|
185
|
+
throw new Ichos.TooManyRequestsError(
|
|
186
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
187
|
+
_response.rawResponse,
|
|
188
|
+
);
|
|
174
189
|
case 500:
|
|
175
190
|
throw new Ichos.InternalServerError(
|
|
176
191
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -197,6 +212,7 @@ export class UsersClient {
|
|
|
197
212
|
* @throws {@link Ichos.UnauthorizedError}
|
|
198
213
|
* @throws {@link Ichos.ForbiddenError}
|
|
199
214
|
* @throws {@link Ichos.NotFoundError}
|
|
215
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
200
216
|
* @throws {@link Ichos.InternalServerError}
|
|
201
217
|
*
|
|
202
218
|
* @example
|
|
@@ -252,7 +268,7 @@ export class UsersClient {
|
|
|
252
268
|
);
|
|
253
269
|
case 403:
|
|
254
270
|
throw new Ichos.ForbiddenError(
|
|
255
|
-
_response.error.body as Ichos.
|
|
271
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
256
272
|
_response.rawResponse,
|
|
257
273
|
);
|
|
258
274
|
case 404:
|
|
@@ -260,6 +276,11 @@ export class UsersClient {
|
|
|
260
276
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
261
277
|
_response.rawResponse,
|
|
262
278
|
);
|
|
279
|
+
case 429:
|
|
280
|
+
throw new Ichos.TooManyRequestsError(
|
|
281
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
282
|
+
_response.rawResponse,
|
|
283
|
+
);
|
|
263
284
|
case 500:
|
|
264
285
|
throw new Ichos.InternalServerError(
|
|
265
286
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -285,6 +306,7 @@ export class UsersClient {
|
|
|
285
306
|
* @throws {@link Ichos.UnauthorizedError}
|
|
286
307
|
* @throws {@link Ichos.ForbiddenError}
|
|
287
308
|
* @throws {@link Ichos.NotFoundError}
|
|
309
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
288
310
|
* @throws {@link Ichos.InternalServerError}
|
|
289
311
|
*
|
|
290
312
|
* @example
|
|
@@ -335,7 +357,7 @@ export class UsersClient {
|
|
|
335
357
|
);
|
|
336
358
|
case 403:
|
|
337
359
|
throw new Ichos.ForbiddenError(
|
|
338
|
-
_response.error.body as Ichos.
|
|
360
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
339
361
|
_response.rawResponse,
|
|
340
362
|
);
|
|
341
363
|
case 404:
|
|
@@ -343,6 +365,11 @@ export class UsersClient {
|
|
|
343
365
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
344
366
|
_response.rawResponse,
|
|
345
367
|
);
|
|
368
|
+
case 429:
|
|
369
|
+
throw new Ichos.TooManyRequestsError(
|
|
370
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
371
|
+
_response.rawResponse,
|
|
372
|
+
);
|
|
346
373
|
case 500:
|
|
347
374
|
throw new Ichos.InternalServerError(
|
|
348
375
|
_response.error.body as Ichos.InternalServerErrorResponse,
|
|
@@ -368,6 +395,7 @@ export class UsersClient {
|
|
|
368
395
|
* @throws {@link Ichos.UnauthorizedError}
|
|
369
396
|
* @throws {@link Ichos.ForbiddenError}
|
|
370
397
|
* @throws {@link Ichos.NotFoundError}
|
|
398
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
371
399
|
* @throws {@link Ichos.InternalServerError}
|
|
372
400
|
*
|
|
373
401
|
* @example
|
|
@@ -418,7 +446,7 @@ export class UsersClient {
|
|
|
418
446
|
);
|
|
419
447
|
case 403:
|
|
420
448
|
throw new Ichos.ForbiddenError(
|
|
421
|
-
_response.error.body as Ichos.
|
|
449
|
+
_response.error.body as Ichos.ForbiddenErrorResponse,
|
|
422
450
|
_response.rawResponse,
|
|
423
451
|
);
|
|
424
452
|
case 404:
|
|
@@ -426,6 +454,11 @@ export class UsersClient {
|
|
|
426
454
|
_response.error.body as Ichos.NotFoundErrorResponse,
|
|
427
455
|
_response.rawResponse,
|
|
428
456
|
);
|
|
457
|
+
case 429:
|
|
458
|
+
throw new Ichos.TooManyRequestsError(
|
|
459
|
+
_response.error.body as Ichos.TooManyRequestsErrorResponse,
|
|
460
|
+
_response.rawResponse,
|
|
461
|
+
);
|
|
429
462
|
case 500:
|
|
430
463
|
throw new Ichos.InternalServerError(
|
|
431
464
|
_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:
|
package/src/api/types/Audio.ts
CHANGED
|
@@ -3,22 +3,31 @@
|
|
|
3
3
|
import type * as Ichos from "../index.js";
|
|
4
4
|
|
|
5
5
|
export interface Audio {
|
|
6
|
+
/** Unique identifier for the audio record. */
|
|
6
7
|
id: string;
|
|
7
|
-
|
|
8
|
+
/** Original file size of the raw file uploaded by the user. Null if the raw audio has been deleted. */
|
|
8
9
|
rawSize: number | null;
|
|
10
|
+
/** Processing status of the audio file. Will be 'uploading' while the user is uploading the file, then transition to 'processing' while we analyze and process the audio, and finally 'done' when the audio is ready to be used. If any errors occur during upload or processing, the status will be 'pull_failed' or 'failed' respectively. */
|
|
9
11
|
status: Audio.Status;
|
|
10
|
-
|
|
12
|
+
/** Duration in seconds for the processed audio. Null if unknown. */
|
|
11
13
|
duration: number | null;
|
|
14
|
+
/** Size in bytes for the processed audio. Null if unknown. */
|
|
12
15
|
size: number | null;
|
|
16
|
+
/** MIME type of the processed audio (e.g. "audio/mpeg"). Null if unknown. */
|
|
13
17
|
type: string | null;
|
|
18
|
+
/** Bitrate in kbps for the processed audio. Null if unknown. */
|
|
14
19
|
bitrate: number | null;
|
|
20
|
+
/** Sample rate in Hz for the processed audio. Null if unknown. */
|
|
15
21
|
sampleRate: number | null;
|
|
22
|
+
/** Number of audio channels (e.g. 1 for mono, 2 for stereo) for the processed audio. Null if unknown. */
|
|
16
23
|
channels: number | null;
|
|
17
24
|
chapters: Ichos.Chapter[];
|
|
25
|
+
/** URL to access the audio file. This URL is temporary and will expire after 1 hour. */
|
|
18
26
|
url: string | null;
|
|
19
27
|
}
|
|
20
28
|
|
|
21
29
|
export namespace Audio {
|
|
30
|
+
/** Processing status of the audio file. Will be 'uploading' while the user is uploading the file, then transition to 'processing' while we analyze and process the audio, and finally 'done' when the audio is ready to be used. If any errors occur during upload or processing, the status will be 'pull_failed' or 'failed' respectively. */
|
|
22
31
|
export const Status = {
|
|
23
32
|
Uploading: "uploading",
|
|
24
33
|
Pulling: "pulling",
|
package/src/api/types/Chapter.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
export interface Chapter {
|
|
4
|
+
/** Start time of the chapter in seconds. Must be less than endTime. */
|
|
4
5
|
startTime: number;
|
|
6
|
+
/** End time of the chapter in seconds. Must be greater than startTime. */
|
|
5
7
|
endTime: number;
|
|
8
|
+
/** Title of the chapter. */
|
|
6
9
|
title: string;
|
|
7
10
|
}
|