diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0552d74..487122b 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: b4f7f2df-6c4d-4150-a18f-8b74fe44eb22 management: - docChecksum: 59634240879b8bce1b699c21c7f4f276 + docChecksum: 15b03577412e825b1bed730cb677f220 docVersion: 1.0.0 - speakeasyVersion: 1.377.1 - generationVersion: 2.404.1 - releaseVersion: 0.5.0 - configChecksum: 3b33f25e938c6a67453f8e636f88064a + speakeasyVersion: 1.419.0 + generationVersion: 2.438.3 + releaseVersion: 0.6.0 + configChecksum: bf3dd6586cf095c222bd18a161dcabef repoURL: https://github.com/livepeer/livepeer-java.git features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.29.4 + core: 3.30.4 deprecations: 2.81.1 flattening: 2.81.1 globalSecurity: 2.82.7 @@ -25,721 +25,1246 @@ features: sdkHooks: 0.1.0 unions: 0.0.5 generatedFiles: - - src/main/java/studio/livepeer/livepeer/SecuritySource.java - - src/main/java/studio/livepeer/livepeer/SDKConfiguration.java - - src/main/java/studio/livepeer/livepeer/Stream.java - - src/main/java/studio/livepeer/livepeer/Multistream.java - - src/main/java/studio/livepeer/livepeer/Webhook.java - - src/main/java/studio/livepeer/livepeer/Asset.java - - src/main/java/studio/livepeer/livepeer/Session.java - - src/main/java/studio/livepeer/livepeer/Room.java - - src/main/java/studio/livepeer/livepeer/Metrics.java - - src/main/java/studio/livepeer/livepeer/AccessControl.java - - src/main/java/studio/livepeer/livepeer/Task.java - - src/main/java/studio/livepeer/livepeer/Transcode.java - - src/main/java/studio/livepeer/livepeer/Playback.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetTasksRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java - - src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java - - src/main/java/studio/livepeer/livepeer/Livepeer.java - .gitattributes + - CONTRIBUTING.md + - USAGE.md - build.gradle - - gradle/wrapper/gradle-wrapper.jar - - gradle/wrapper/gradle-wrapper.properties - - gradlew - - gradlew.bat - - settings.gradle - - src/main/java/studio/livepeer/livepeer/utils/BackoffStrategy.java - - src/main/java/studio/livepeer/livepeer/utils/BigDecimalString.java - - src/main/java/studio/livepeer/livepeer/utils/BigIntegerString.java - - src/main/java/studio/livepeer/livepeer/utils/Deserializers.java - - src/main/java/studio/livepeer/livepeer/utils/EventStream.java - - src/main/java/studio/livepeer/livepeer/utils/EventStreamLineReader.java - - src/main/java/studio/livepeer/livepeer/utils/EventStreamMessage.java - - src/main/java/studio/livepeer/livepeer/utils/EventStreamReader.java - - src/main/java/studio/livepeer/livepeer/utils/FormMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/HTTPClient.java - - src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java - - src/main/java/studio/livepeer/livepeer/utils/HeaderMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/Helpers.java - - src/main/java/studio/livepeer/livepeer/utils/Hook.java - - src/main/java/studio/livepeer/livepeer/utils/Hooks.java - - src/main/java/studio/livepeer/livepeer/utils/JSON.java - - src/main/java/studio/livepeer/livepeer/utils/LazySingletonValue.java - - src/main/java/studio/livepeer/livepeer/utils/Metadata.java - - src/main/java/studio/livepeer/livepeer/utils/MultipartFormMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java - - src/main/java/studio/livepeer/livepeer/utils/Options.java - - src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java - - src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/RequestBody.java - - src/main/java/studio/livepeer/livepeer/utils/RequestMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/Response.java - - src/main/java/studio/livepeer/livepeer/utils/Retries.java - - src/main/java/studio/livepeer/livepeer/utils/RetryConfig.java - - src/main/java/studio/livepeer/livepeer/utils/Security.java - - src/main/java/studio/livepeer/livepeer/utils/SecurityMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/SerializedBody.java - - src/main/java/studio/livepeer/livepeer/utils/SpeakeasyHTTPClient.java - - src/main/java/studio/livepeer/livepeer/utils/SpeakeasyMetadata.java - - src/main/java/studio/livepeer/livepeer/utils/TypedObject.java - - src/main/java/studio/livepeer/livepeer/utils/Types.java - - src/main/java/studio/livepeer/livepeer/utils/Utils.java - - src/main/java/studio/livepeer/livepeer/models/errors/AuthException.java - - src/main/java/studio/livepeer/livepeer/models/errors/SDKError.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipTask.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipData.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/Task.java - - src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadData.java - - src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetAssetTask.java - - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetDataOutput.java - - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetTask.java - - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetData.java - - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/Record.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/From.java - - src/main/java/studio/livepeer/livepeer/models/operations/To.java - - src/main/java/studio/livepeer/livepeer/models/operations/TimeStep.java - - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java - - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java - - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTimeStep.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsData.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamTimeStep.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamBreakdownBy.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBody.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetTaskResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequest.java - - src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java - - src/main/java/studio/livepeer/livepeer/models/errors/Error.java - - src/main/java/studio/livepeer/livepeer/models/components/Three.java - - src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java - - src/main/java/studio/livepeer/livepeer/models/components/IsMobile1.java - - src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java - - src/main/java/studio/livepeer/livepeer/models/components/StreamLocation.java - - src/main/java/studio/livepeer/livepeer/models/components/StreamPull.java - - src/main/java/studio/livepeer/livepeer/models/components/StreamRecordingSpec.java - - src/main/java/studio/livepeer/livepeer/models/components/StreamMultistream.java - - src/main/java/studio/livepeer/livepeer/models/components/Renditions.java - - src/main/java/studio/livepeer/livepeer/models/components/Stream.java - - src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java - - src/main/java/studio/livepeer/livepeer/models/components/Profile.java - - src/main/java/studio/livepeer/livepeer/models/components/Encoder.java - - src/main/java/studio/livepeer/livepeer/models/components/FfmpegProfile.java - - src/main/java/studio/livepeer/livepeer/models/components/Type.java - - src/main/java/studio/livepeer/livepeer/models/components/PlaybackPolicy.java - - src/main/java/studio/livepeer/livepeer/models/components/CreatorIdType.java - - src/main/java/studio/livepeer/livepeer/models/components/CreatorId1.java - - src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java - - src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayloadRecordingSpec.java - - src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java - - src/main/java/studio/livepeer/livepeer/models/components/UserTags.java - - src/main/java/studio/livepeer/livepeer/models/components/Multistream.java - - src/main/java/studio/livepeer/livepeer/models/components/TargetSpec.java - - src/main/java/studio/livepeer/livepeer/models/components/Target.java - - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorIdType.java - - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId1.java - - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java - - src/main/java/studio/livepeer/livepeer/models/components/One.java - - src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java - - src/main/java/studio/livepeer/livepeer/models/components/Location.java - - src/main/java/studio/livepeer/livepeer/models/components/Pull.java - - src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetType.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetSource3Type.java - - src/main/java/studio/livepeer/livepeer/models/components/Source3.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetSourceType.java - - src/main/java/studio/livepeer/livepeer/models/components/Two.java - - src/main/java/studio/livepeer/livepeer/models/components/SourceType.java - - src/main/java/studio/livepeer/livepeer/models/components/Source1.java - - src/main/java/studio/livepeer/livepeer/models/components/Source.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadataTemplate.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadata.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetIpfs.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetStorage.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetPhase.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetStatus.java - - src/main/java/studio/livepeer/livepeer/models/components/Hash.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetVideoSpecType.java - - src/main/java/studio/livepeer/livepeer/models/components/Tracks.java - - src/main/java/studio/livepeer/livepeer/models/components/VideoSpec.java - - src/main/java/studio/livepeer/livepeer/models/components/Asset.java - - src/main/java/studio/livepeer/livepeer/models/components/Phase.java - - src/main/java/studio/livepeer/livepeer/models/components/Tasks.java - - src/main/java/studio/livepeer/livepeer/models/components/StorageStatus.java - - src/main/java/studio/livepeer/livepeer/models/components/IpfsFileInfo.java - - src/main/java/studio/livepeer/livepeer/models/components/EncryptionOutput.java - - src/main/java/studio/livepeer/livepeer/models/components/ClipPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayloadSpec.java - - src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/MultistreamTarget.java - - src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetInput.java - - src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetPatchPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/Events.java - - src/main/java/studio/livepeer/livepeer/models/components/LastFailure.java - - src/main/java/studio/livepeer/livepeer/models/components/Status.java - - src/main/java/studio/livepeer/livepeer/models/components/Webhook.java - - src/main/java/studio/livepeer/livepeer/models/components/WebhookInput.java - - src/main/java/studio/livepeer/livepeer/models/components/Request.java - - src/main/java/studio/livepeer/livepeer/models/components/Response.java - - src/main/java/studio/livepeer/livepeer/models/components/WebhookLog.java - - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs1.java - - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java - - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadStorage.java - - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadEncryption.java - - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/NftMetadataTemplate.java - - src/main/java/studio/livepeer/livepeer/models/components/NftMetadata.java - - src/main/java/studio/livepeer/livepeer/models/components/Spec.java - - src/main/java/studio/livepeer/livepeer/models/components/NewAssetFromUrlPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/Encryption.java - - src/main/java/studio/livepeer/livepeer/models/components/Ipfs1.java - - src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java - - src/main/java/studio/livepeer/livepeer/models/components/Storage.java - - src/main/java/studio/livepeer/livepeer/models/components/AssetPatchPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java - - src/main/java/studio/livepeer/livepeer/models/components/Session.java - - src/main/java/studio/livepeer/livepeer/models/components/CreateRoomResponse.java - - src/main/java/studio/livepeer/livepeer/models/components/Participants.java - - src/main/java/studio/livepeer/livepeer/models/components/Room.java - - src/main/java/studio/livepeer/livepeer/models/components/RoomEgressPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/RoomUserResponse.java - - src/main/java/studio/livepeer/livepeer/models/components/RoomUserPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java - - src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java - - src/main/java/studio/livepeer/livepeer/models/components/RealtimeViewershipMetric.java - - src/main/java/studio/livepeer/livepeer/models/components/ViewershipMetric.java - - src/main/java/studio/livepeer/livepeer/models/components/UsageMetric.java - - src/main/java/studio/livepeer/livepeer/models/components/SigningKey.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskType.java - - src/main/java/studio/livepeer/livepeer/models/components/Upload.java - - src/main/java/studio/livepeer/livepeer/models/components/Content.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskExportData.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskInput.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskStorage.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskHls.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskMp4.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskOutputs.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodeFile.java - - src/main/java/studio/livepeer/livepeer/models/components/ClipStrategy.java - - src/main/java/studio/livepeer/livepeer/models/components/CatalystPipelineStrategy.java - - src/main/java/studio/livepeer/livepeer/models/components/Clip.java - - src/main/java/studio/livepeer/livepeer/models/components/Params.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskPhase.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskStatus.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskIpfs.java - - src/main/java/studio/livepeer/livepeer/models/components/Export.java - - src/main/java/studio/livepeer/livepeer/models/components/TaskOutputIpfs.java - - src/main/java/studio/livepeer/livepeer/models/components/ExportData.java - - src/main/java/studio/livepeer/livepeer/models/components/Output.java - - src/main/java/studio/livepeer/livepeer/models/components/Task.java - - src/main/java/studio/livepeer/livepeer/models/components/Pinata2.java - - src/main/java/studio/livepeer/livepeer/models/components/Pinata1.java - - src/main/java/studio/livepeer/livepeer/models/components/Pinata.java - - src/main/java/studio/livepeer/livepeer/models/components/IpfsExportParams.java - - src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams2.java - - src/main/java/studio/livepeer/livepeer/models/components/Custom.java - - src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams1.java - - src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java - - src/main/java/studio/livepeer/livepeer/models/components/InputType.java - - src/main/java/studio/livepeer/livepeer/models/components/Credentials.java - - src/main/java/studio/livepeer/livepeer/models/components/Input2.java - - src/main/java/studio/livepeer/livepeer/models/components/Input1.java - - src/main/java/studio/livepeer/livepeer/models/components/Input.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageType.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageCredentials.java - - src/main/java/studio/livepeer/livepeer/models/components/Storage2.java - - src/main/java/studio/livepeer/livepeer/models/components/StorageType.java - - src/main/java/studio/livepeer/livepeer/models/components/StorageCredentials.java - - src/main/java/studio/livepeer/livepeer/models/components/Storage1.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java - - src/main/java/studio/livepeer/livepeer/models/components/Hls.java - - src/main/java/studio/livepeer/livepeer/models/components/Mp4.java - - src/main/java/studio/livepeer/livepeer/models/components/Fmp4.java - - src/main/java/studio/livepeer/livepeer/models/components/Outputs.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayload.java - - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoType.java - - src/main/java/studio/livepeer/livepeer/models/components/Live.java - - src/main/java/studio/livepeer/livepeer/models/components/Hrn.java - - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaType.java - - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoSource.java - - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoHrn.java - - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaDvrPlaybackType.java - - src/main/java/studio/livepeer/livepeer/models/components/DvrPlayback.java - - src/main/java/studio/livepeer/livepeer/models/components/Meta.java - - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfo.java - - src/main/java/studio/livepeer/livepeer/models/components/PrimaryType.java - - src/main/java/studio/livepeer/livepeer/models/components/Name.java - - src/main/java/studio/livepeer/livepeer/models/components/Version.java - - src/main/java/studio/livepeer/livepeer/models/components/Domain.java - - src/main/java/studio/livepeer/livepeer/models/components/Attestations.java - - src/main/java/studio/livepeer/livepeer/models/components/Message.java - - src/main/java/studio/livepeer/livepeer/models/components/SignatureType.java - - src/main/java/studio/livepeer/livepeer/models/components/AttestationIpfs.java - - src/main/java/studio/livepeer/livepeer/models/components/AttestationStorage.java - - src/main/java/studio/livepeer/livepeer/models/components/Attestation.java - - src/main/java/studio/livepeer/livepeer/models/components/Security.java - - docs/models/operations/CreateStreamResponse.md - - docs/models/operations/GetStreamsRequest.md - - docs/models/operations/GetStreamsResponse.md - - docs/models/operations/GetStreamRequest.md - - docs/models/operations/GetStreamResponse.md - - docs/models/operations/UpdateStreamRequest.md - - docs/models/operations/UpdateStreamResponse.md - - docs/models/operations/DeleteStreamRequest.md - - docs/models/operations/DeleteStreamResponse.md - - docs/models/operations/TerminateStreamRequest.md - - docs/models/operations/TerminateStreamResponse.md - - docs/models/operations/StartPullStreamRequest.md - - docs/models/operations/StartPullStreamResponse.md - - docs/models/operations/CreateClipTask.md - - docs/models/operations/CreateClipData.md - - docs/models/operations/CreateClipResponse.md - - docs/models/operations/GetClipsRequest.md - - docs/models/operations/GetClipsResponse.md - - docs/models/operations/AddMultistreamTargetRequest.md - - docs/models/operations/AddMultistreamTargetResponse.md - - docs/models/operations/RemoveMultistreamTargetRequest.md - - docs/models/operations/RemoveMultistreamTargetResponse.md - - docs/models/operations/GetMultistreamTargetsResponse.md - - docs/models/operations/CreateMultistreamTargetResponse.md - - docs/models/operations/GetMultistreamTargetRequest.md - - docs/models/operations/GetMultistreamTargetResponse.md - - docs/models/operations/UpdateMultistreamTargetRequest.md - - docs/models/operations/UpdateMultistreamTargetResponse.md - - docs/models/operations/DeleteMultistreamTargetRequest.md - - docs/models/operations/DeleteMultistreamTargetResponse.md - - docs/models/operations/GetWebhooksResponse.md - - docs/models/operations/CreateWebhookResponse.md - - docs/models/operations/GetWebhookRequest.md - - docs/models/operations/GetWebhookResponse.md - - docs/models/operations/UpdateWebhookRequest.md - - docs/models/operations/UpdateWebhookResponse.md - - docs/models/operations/DeleteWebhookRequest.md - - docs/models/operations/DeleteWebhookResponse.md - - docs/models/operations/GetWebhookLogsRequest.md - - docs/models/operations/GetWebhookLogsResponse.md - - docs/models/operations/GetWebhookLogRequest.md - - docs/models/operations/GetWebhookLogResponse.md - - docs/models/operations/ResendWebhookRequest.md - - docs/models/operations/ResendWebhookResponse.md - - docs/models/operations/GetAssetsResponse.md - - docs/models/operations/Task.md - - docs/models/operations/RequestUploadData.md - - docs/models/operations/RequestUploadResponse.md - - docs/models/operations/UploadAssetAssetTask.md - - docs/models/operations/UploadAssetDataOutput.md - - docs/models/operations/UploadAssetTask.md - - docs/models/operations/UploadAssetData.md - - docs/models/operations/UploadAssetResponse.md - - docs/models/operations/GetAssetRequest.md - - docs/models/operations/GetAssetResponse.md - - docs/models/operations/UpdateAssetRequest.md - - docs/models/operations/UpdateAssetResponse.md - - docs/models/operations/DeleteAssetRequest.md - - docs/models/operations/DeleteAssetResponse.md - - docs/models/operations/GetSessionClipsRequest.md - - docs/models/operations/GetSessionClipsResponse.md - - docs/models/operations/GetSessionsResponse.md - - docs/models/operations/GetSessionRequest.md - - docs/models/operations/GetSessionResponse.md - - docs/models/operations/Record.md - - docs/models/operations/GetRecordedSessionsRequest.md - - docs/models/operations/GetRecordedSessionsResponse.md - - docs/models/operations/CreateRoomResponse.md - - docs/models/operations/GetRoomRequest.md - - docs/models/operations/GetRoomResponse.md - - docs/models/operations/DeleteRoomRequest.md - - docs/models/operations/DeleteRoomResponse.md - - docs/models/operations/StartRoomEgressRequest.md - - docs/models/operations/StartRoomEgressResponse.md - - docs/models/operations/StopRoomEgressRequest.md - - docs/models/operations/StopRoomEgressResponse.md - - docs/models/operations/CreateRoomUserRequest.md - - docs/models/operations/CreateRoomUserResponse.md - - docs/models/operations/GetRoomUserRequest.md - - docs/models/operations/GetRoomUserResponse.md - - docs/models/operations/UpdateRoomUserRequest.md - - docs/models/operations/UpdateRoomUserResponse.md - - docs/models/operations/DeleteRoomUserRequest.md - - docs/models/operations/DeleteRoomUserResponse.md - - docs/models/operations/BreakdownBy.md - - docs/models/operations/GetRealtimeViewershipNowRequest.md - - docs/models/operations/GetRealtimeViewershipNowResponse.md - - docs/models/operations/From.md - - docs/models/operations/To.md - - docs/models/operations/TimeStep.md - - docs/models/operations/QueryParamBreakdownBy.md - - docs/models/operations/GetViewershipMetricsRequest.md - - docs/models/operations/GetViewershipMetricsResponse.md - - docs/models/operations/QueryParamFrom.md - - docs/models/operations/QueryParamTo.md - - docs/models/operations/QueryParamTimeStep.md - - docs/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md - - docs/models/operations/GetCreatorViewershipMetricsRequest.md - - docs/models/operations/GetCreatorViewershipMetricsResponse.md - - docs/models/operations/GetPublicViewershipMetricsRequest.md - - docs/models/operations/GetPublicViewershipMetricsData.md - - docs/models/operations/GetPublicViewershipMetricsResponse.md - - docs/models/operations/GetUsageMetricsQueryParamTimeStep.md - - docs/models/operations/GetUsageMetricsQueryParamBreakdownBy.md - - docs/models/operations/GetUsageMetricsRequest.md - - docs/models/operations/GetUsageMetricsResponse.md - - docs/models/operations/CreateSigningKeyResponse.md - - docs/models/operations/GetSigningKeysResponse.md - - docs/models/operations/DeleteSigningKeyRequest.md - - docs/models/operations/DeleteSigningKeyResponse.md - - docs/models/operations/GetSigningKeyRequest.md - - docs/models/operations/GetSigningKeyResponse.md - - docs/models/operations/UpdateSigningKeyRequestBody.md - - docs/models/operations/UpdateSigningKeyRequest.md - - docs/models/operations/UpdateSigningKeyResponse.md - - docs/models/operations/GetTasksResponse.md - - docs/models/operations/GetTaskRequest.md - - docs/models/operations/GetTaskResponse.md - - docs/models/operations/TranscodeVideoResponse.md - - docs/models/operations/GetPlaybackInfoRequest.md - - docs/models/operations/GetPlaybackInfoResponse.md - - docs/models/errors/Error.md - - docs/models/components/Three.md - - docs/models/components/StreamUserTags.md - - docs/models/components/IsMobile1.md - - docs/models/components/StreamIsMobile.md - - docs/models/components/StreamLocation.md - - docs/models/components/StreamPull.md - - docs/models/components/StreamRecordingSpec.md - - docs/models/components/StreamMultistream.md - - docs/models/components/Renditions.md - - docs/models/components/Stream.md - - docs/models/components/TargetOutput.md - - docs/models/components/TranscodeProfileProfile.md - - docs/models/components/TranscodeProfileEncoder.md - - docs/models/components/TranscodeProfile.md - - docs/models/components/Profile.md + - docs/models/components/Asset.md + - docs/models/components/AssetIpfs.md + - docs/models/components/AssetNftMetadata.md + - docs/models/components/AssetNftMetadataTemplate.md + - docs/models/components/AssetPatchPayload.md + - docs/models/components/AssetPhase.md + - docs/models/components/AssetSource3Type.md + - docs/models/components/AssetSourceType.md + - docs/models/components/AssetSpec.md + - docs/models/components/AssetStatus.md + - docs/models/components/AssetStorage.md + - docs/models/components/AssetType.md + - docs/models/components/AssetVideoSpecType.md + - docs/models/components/Attestation.md + - docs/models/components/AttestationIpfs.md + - docs/models/components/AttestationStorage.md + - docs/models/components/Attestations.md + - docs/models/components/CatalystPipelineStrategy.md + - docs/models/components/Clip.md + - docs/models/components/ClipPayload.md + - docs/models/components/ClipStrategy.md + - docs/models/components/Content.md + - docs/models/components/CreateRoomResponse.md + - docs/models/components/CreatorId.md + - docs/models/components/CreatorId1.md + - docs/models/components/CreatorIdType.md + - docs/models/components/Credentials.md + - docs/models/components/Custom.md + - docs/models/components/Domain.md + - docs/models/components/DvrPlayback.md - docs/models/components/Encoder.md + - docs/models/components/Encryption.md + - docs/models/components/EncryptionOutput.md + - docs/models/components/Error.md + - docs/models/components/Events.md + - docs/models/components/Export.md + - docs/models/components/ExportData.md + - docs/models/components/ExportTaskParams.md + - docs/models/components/ExportTaskParams1.md + - docs/models/components/ExportTaskParams2.md - docs/models/components/FfmpegProfile.md - - docs/models/components/Type.md - - docs/models/components/PlaybackPolicy.md - - docs/models/components/CreatorIdType.md - - docs/models/components/CreatorId1.md - - docs/models/components/CreatorId.md - - docs/models/components/NewStreamPayloadRecordingSpec.md - - docs/models/components/NewStreamPayload.md - - docs/models/components/UserTags3.md - - docs/models/components/UserTags.md - - docs/models/components/Multistream.md - - docs/models/components/TargetSpec.md - - docs/models/components/InputCreatorIdType.md - - docs/models/components/InputCreatorId1.md + - docs/models/components/Fmp4.md + - docs/models/components/GetRoomUserResponse.md + - docs/models/components/Hash.md + - docs/models/components/Hls.md + - docs/models/components/Hrn.md + - docs/models/components/Input.md + - docs/models/components/Input1.md + - docs/models/components/Input2.md - docs/models/components/InputCreatorId.md - - docs/models/components/One.md + - docs/models/components/InputCreatorId1.md + - docs/models/components/InputCreatorIdType.md + - docs/models/components/InputType.md + - docs/models/components/Ipfs.md + - docs/models/components/Ipfs1.md + - docs/models/components/IpfsExportParams.md + - docs/models/components/IpfsFileInfo.md - docs/models/components/IsMobile.md + - docs/models/components/IsMobile1.md + - docs/models/components/LastFailure.md + - docs/models/components/Live.md - docs/models/components/Location.md - - docs/models/components/Pull.md - - docs/models/components/StreamPatchPayload.md - - docs/models/components/RecordingSpec.md - - docs/models/components/AssetType.md - - docs/models/components/AssetSource3Type.md - - docs/models/components/Source3.md - - docs/models/components/AssetSourceType.md - - docs/models/components/Two.md - - docs/models/components/SourceType.md - - docs/models/components/Source1.md - - docs/models/components/Source.md - - docs/models/components/AssetNftMetadataTemplate.md - - docs/models/components/AssetNftMetadata.md - - docs/models/components/AssetSpec.md - - docs/models/components/AssetIpfs.md - - docs/models/components/AssetStorage.md - - docs/models/components/AssetPhase.md - - docs/models/components/AssetStatus.md - - docs/models/components/Hash.md - - docs/models/components/AssetVideoSpecType.md - - docs/models/components/Tracks.md - - docs/models/components/VideoSpec.md - - docs/models/components/Asset.md - - docs/models/components/Phase.md - - docs/models/components/Tasks.md - - docs/models/components/StorageStatus.md - - docs/models/components/IpfsFileInfo.md - - docs/models/components/EncryptionOutput.md - - docs/models/components/ClipPayload.md - - docs/models/components/TargetAddPayloadSpec.md - - docs/models/components/TargetAddPayload.md + - docs/models/components/Message.md + - docs/models/components/Meta.md + - docs/models/components/Mp4.md + - docs/models/components/Multistream.md - docs/models/components/MultistreamTarget.md + - docs/models/components/MultistreamTargetInput.md - docs/models/components/MultistreamTargetPatchPayload.md - - docs/models/components/Events.md - - docs/models/components/LastFailure.md - - docs/models/components/Status.md - - docs/models/components/Webhook.md - - docs/models/components/Request.md - - docs/models/components/Response.md - - docs/models/components/WebhookLog.md - - docs/models/components/NewAssetPayloadIpfs1.md + - docs/models/components/Name.md + - docs/models/components/NewAssetFromUrlPayload.md + - docs/models/components/NewAssetPayload.md + - docs/models/components/NewAssetPayloadEncryption.md - docs/models/components/NewAssetPayloadIpfs.md + - docs/models/components/NewAssetPayloadIpfs1.md - docs/models/components/NewAssetPayloadStorage.md - - docs/models/components/NewAssetPayloadEncryption.md - - docs/models/components/NewAssetPayload.md - - docs/models/components/NftMetadataTemplate.md + - docs/models/components/NewStreamPayload.md + - docs/models/components/NewStreamPayloadRecordingSpec.md - docs/models/components/NftMetadata.md - - docs/models/components/Spec.md - - docs/models/components/NewAssetFromUrlPayload.md - - docs/models/components/Ipfs1.md - - docs/models/components/Ipfs.md - - docs/models/components/Storage.md - - docs/models/components/AssetPatchPayload.md - - docs/models/components/RecordingStatus.md - - docs/models/components/Session.md - - docs/models/components/CreateRoomResponse.md + - docs/models/components/NftMetadataTemplate.md + - docs/models/components/One.md + - docs/models/components/Output.md + - docs/models/components/Outputs.md + - docs/models/components/Params.md - docs/models/components/Participants.md + - docs/models/components/Phase.md + - docs/models/components/Pinata.md + - docs/models/components/Pinata1.md + - docs/models/components/Pinata2.md + - docs/models/components/PlaybackInfo.md + - docs/models/components/PlaybackInfoHrn.md + - docs/models/components/PlaybackInfoMetaDvrPlaybackType.md + - docs/models/components/PlaybackInfoMetaType.md + - docs/models/components/PlaybackInfoSource.md + - docs/models/components/PlaybackInfoType.md + - docs/models/components/PlaybackPolicy.md + - docs/models/components/PrimaryType.md + - docs/models/components/Profile.md + - docs/models/components/Pull.md + - docs/models/components/RealtimeViewershipMetric.md + - docs/models/components/RecordingSpec.md + - docs/models/components/RecordingStatus.md + - docs/models/components/Renditions.md + - docs/models/components/Request.md + - docs/models/components/Response.md - docs/models/components/Room.md - docs/models/components/RoomEgressPayload.md - - docs/models/components/RoomUserResponse.md - docs/models/components/RoomUserPayload.md - - docs/models/components/GetRoomUserResponse.md + - docs/models/components/RoomUserResponse.md - docs/models/components/RoomUserUpdatePayload.md - - docs/models/components/RealtimeViewershipMetric.md - - docs/models/components/ViewershipMetric.md - - docs/models/components/UsageMetric.md + - docs/models/components/Security.md + - docs/models/components/Session.md + - docs/models/components/SignatureType.md - docs/models/components/SigningKey.md - - docs/models/components/TaskType.md - - docs/models/components/Upload.md - - docs/models/components/Content.md + - docs/models/components/Source.md + - docs/models/components/Source1.md + - docs/models/components/Source3.md + - docs/models/components/SourceType.md + - docs/models/components/Spec.md + - docs/models/components/Status.md + - docs/models/components/Storage.md + - docs/models/components/Storage1.md + - docs/models/components/Storage2.md + - docs/models/components/StorageCredentials.md + - docs/models/components/StorageStatus.md + - docs/models/components/StorageType.md + - docs/models/components/Stream.md + - docs/models/components/StreamIsMobile.md + - docs/models/components/StreamLocation.md + - docs/models/components/StreamMultistream.md + - docs/models/components/StreamPatchPayload.md + - docs/models/components/StreamPull.md + - docs/models/components/StreamRecordingSpec.md + - docs/models/components/StreamUserTags.md + - docs/models/components/Target.md + - docs/models/components/TargetAddPayload.md + - docs/models/components/TargetAddPayloadSpec.md + - docs/models/components/TargetOutput.md + - docs/models/components/TargetSpec.md + - docs/models/components/Task.md - docs/models/components/TaskExportData.md - - docs/models/components/TaskInput.md - - docs/models/components/TaskStorage.md - docs/models/components/TaskHls.md + - docs/models/components/TaskInput.md + - docs/models/components/TaskIpfs.md - docs/models/components/TaskMp4.md + - docs/models/components/TaskOutputIpfs.md - docs/models/components/TaskOutputs.md - - docs/models/components/TranscodeFile.md - - docs/models/components/ClipStrategy.md - - docs/models/components/CatalystPipelineStrategy.md - - docs/models/components/Clip.md - - docs/models/components/Params.md - docs/models/components/TaskPhase.md - docs/models/components/TaskStatus.md - - docs/models/components/TaskIpfs.md - - docs/models/components/Export.md - - docs/models/components/TaskOutputIpfs.md - - docs/models/components/ExportData.md - - docs/models/components/Output.md - - docs/models/components/Task.md - - docs/models/components/Pinata2.md - - docs/models/components/Pinata1.md - - docs/models/components/Pinata.md - - docs/models/components/IpfsExportParams.md - - docs/models/components/ExportTaskParams2.md - - docs/models/components/Custom.md - - docs/models/components/ExportTaskParams1.md - - docs/models/components/ExportTaskParams.md - - docs/models/components/InputType.md - - docs/models/components/Credentials.md - - docs/models/components/Input2.md - - docs/models/components/Input1.md - - docs/models/components/Input.md - - docs/models/components/TranscodePayloadStorageType.md - - docs/models/components/TranscodePayloadStorageCredentials.md - - docs/models/components/Storage2.md - - docs/models/components/StorageType.md - - docs/models/components/StorageCredentials.md - - docs/models/components/Storage1.md - - docs/models/components/TranscodePayloadStorage.md - - docs/models/components/Hls.md - - docs/models/components/Mp4.md - - docs/models/components/Fmp4.md - - docs/models/components/Outputs.md + - docs/models/components/TaskStorage.md + - docs/models/components/TaskType.md + - docs/models/components/Tasks.md + - docs/models/components/Three.md + - docs/models/components/Tracks.md + - docs/models/components/TranscodeFile.md - docs/models/components/TranscodePayload.md - - docs/models/components/PlaybackInfoType.md - - docs/models/components/Live.md - - docs/models/components/Hrn.md - - docs/models/components/PlaybackInfoMetaType.md - - docs/models/components/PlaybackInfoSource.md - - docs/models/components/PlaybackInfoHrn.md - - docs/models/components/PlaybackInfoMetaDvrPlaybackType.md - - docs/models/components/DvrPlayback.md - - docs/models/components/Meta.md - - docs/models/components/PlaybackInfo.md - - docs/models/components/PrimaryType.md - - docs/models/components/Name.md + - docs/models/components/TranscodePayloadStorage.md + - docs/models/components/TranscodePayloadStorageCredentials.md + - docs/models/components/TranscodePayloadStorageType.md + - docs/models/components/TranscodeProfile.md + - docs/models/components/TranscodeProfileEncoder.md + - docs/models/components/TranscodeProfileProfile.md + - docs/models/components/Two.md + - docs/models/components/Type.md + - docs/models/components/Upload.md + - docs/models/components/UsageMetric.md + - docs/models/components/UserTags.md + - docs/models/components/UserTags3.md - docs/models/components/Version.md - - docs/models/components/Domain.md - - docs/models/components/Attestations.md - - docs/models/components/Message.md - - docs/models/components/SignatureType.md - - docs/models/components/AttestationIpfs.md - - docs/models/components/AttestationStorage.md - - docs/models/components/Attestation.md - - docs/models/components/Security.md + - docs/models/components/VideoSpec.md + - docs/models/components/ViewershipMetric.md + - docs/models/components/Webhook.md + - docs/models/components/WebhookInput.md + - docs/models/components/WebhookLog.md + - docs/models/errors/Error.md + - docs/models/operations/AddMultistreamTargetRequest.md + - docs/models/operations/AddMultistreamTargetResponse.md + - docs/models/operations/BreakdownBy.md + - docs/models/operations/CreateClipData.md + - docs/models/operations/CreateClipResponse.md + - docs/models/operations/CreateClipTask.md + - docs/models/operations/CreateMultistreamTargetResponse.md + - docs/models/operations/CreateRoomResponse.md + - docs/models/operations/CreateRoomUserRequest.md + - docs/models/operations/CreateRoomUserResponse.md + - docs/models/operations/CreateSigningKeyResponse.md + - docs/models/operations/CreateStreamResponse.md + - docs/models/operations/CreateWebhookResponse.md + - docs/models/operations/DeleteAssetRequest.md + - docs/models/operations/DeleteAssetResponse.md + - docs/models/operations/DeleteMultistreamTargetRequest.md + - docs/models/operations/DeleteMultistreamTargetResponse.md + - docs/models/operations/DeleteRoomRequest.md + - docs/models/operations/DeleteRoomResponse.md + - docs/models/operations/DeleteRoomUserRequest.md + - docs/models/operations/DeleteRoomUserResponse.md + - docs/models/operations/DeleteSigningKeyRequest.md + - docs/models/operations/DeleteSigningKeyResponse.md + - docs/models/operations/DeleteStreamRequest.md + - docs/models/operations/DeleteStreamResponse.md + - docs/models/operations/DeleteWebhookRequest.md + - docs/models/operations/DeleteWebhookResponse.md + - docs/models/operations/From.md + - docs/models/operations/GetAssetRequest.md + - docs/models/operations/GetAssetResponse.md + - docs/models/operations/GetAssetsResponse.md + - docs/models/operations/GetClipsRequest.md + - docs/models/operations/GetClipsResponse.md + - docs/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md + - docs/models/operations/GetCreatorViewershipMetricsRequest.md + - docs/models/operations/GetCreatorViewershipMetricsResponse.md + - docs/models/operations/GetMultistreamTargetRequest.md + - docs/models/operations/GetMultistreamTargetResponse.md + - docs/models/operations/GetMultistreamTargetsResponse.md + - docs/models/operations/GetPlaybackInfoRequest.md + - docs/models/operations/GetPlaybackInfoResponse.md + - docs/models/operations/GetPublicViewershipMetricsData.md + - docs/models/operations/GetPublicViewershipMetricsRequest.md + - docs/models/operations/GetPublicViewershipMetricsResponse.md + - docs/models/operations/GetRealtimeViewershipNowRequest.md + - docs/models/operations/GetRealtimeViewershipNowResponse.md + - docs/models/operations/GetRecordedSessionsRequest.md + - docs/models/operations/GetRecordedSessionsResponse.md + - docs/models/operations/GetRoomRequest.md + - docs/models/operations/GetRoomResponse.md + - docs/models/operations/GetRoomUserRequest.md + - docs/models/operations/GetRoomUserResponse.md + - docs/models/operations/GetSessionClipsRequest.md + - docs/models/operations/GetSessionClipsResponse.md + - docs/models/operations/GetSessionRequest.md + - docs/models/operations/GetSessionResponse.md + - docs/models/operations/GetSessionsResponse.md + - docs/models/operations/GetSigningKeyRequest.md + - docs/models/operations/GetSigningKeyResponse.md + - docs/models/operations/GetSigningKeysResponse.md + - docs/models/operations/GetStreamRequest.md + - docs/models/operations/GetStreamResponse.md + - docs/models/operations/GetStreamsRequest.md + - docs/models/operations/GetStreamsResponse.md + - docs/models/operations/GetTaskRequest.md + - docs/models/operations/GetTaskResponse.md + - docs/models/operations/GetTasksResponse.md + - docs/models/operations/GetUsageMetricsQueryParamBreakdownBy.md + - docs/models/operations/GetUsageMetricsQueryParamTimeStep.md + - docs/models/operations/GetUsageMetricsRequest.md + - docs/models/operations/GetUsageMetricsResponse.md + - docs/models/operations/GetViewershipMetricsRequest.md + - docs/models/operations/GetViewershipMetricsResponse.md + - docs/models/operations/GetWebhookLogRequest.md + - docs/models/operations/GetWebhookLogResponse.md + - docs/models/operations/GetWebhookLogsRequest.md + - docs/models/operations/GetWebhookLogsResponse.md + - docs/models/operations/GetWebhookRequest.md + - docs/models/operations/GetWebhookResponse.md + - docs/models/operations/GetWebhooksResponse.md + - docs/models/operations/QueryParamBreakdownBy.md + - docs/models/operations/QueryParamFrom.md + - docs/models/operations/QueryParamTimeStep.md + - docs/models/operations/QueryParamTo.md + - docs/models/operations/Record.md + - docs/models/operations/RemoveMultistreamTargetRequest.md + - docs/models/operations/RemoveMultistreamTargetResponse.md + - docs/models/operations/RequestUploadData.md + - docs/models/operations/RequestUploadResponse.md + - docs/models/operations/ResendWebhookRequest.md + - docs/models/operations/ResendWebhookResponse.md + - docs/models/operations/StartPullStreamRequest.md + - docs/models/operations/StartPullStreamResponse.md + - docs/models/operations/StartRoomEgressRequest.md + - docs/models/operations/StartRoomEgressResponse.md + - docs/models/operations/StopRoomEgressRequest.md + - docs/models/operations/StopRoomEgressResponse.md + - docs/models/operations/Task.md + - docs/models/operations/TerminateStreamRequest.md + - docs/models/operations/TerminateStreamResponse.md + - docs/models/operations/TimeStep.md + - docs/models/operations/To.md + - docs/models/operations/TranscodeVideoResponse.md + - docs/models/operations/UpdateAssetRequest.md + - docs/models/operations/UpdateAssetResponse.md + - docs/models/operations/UpdateMultistreamTargetRequest.md + - docs/models/operations/UpdateMultistreamTargetResponse.md + - docs/models/operations/UpdateRoomUserRequest.md + - docs/models/operations/UpdateRoomUserResponse.md + - docs/models/operations/UpdateSigningKeyRequest.md + - docs/models/operations/UpdateSigningKeyRequestBody.md + - docs/models/operations/UpdateSigningKeyResponse.md + - docs/models/operations/UpdateStreamRequest.md + - docs/models/operations/UpdateStreamResponse.md + - docs/models/operations/UpdateWebhookRequest.md + - docs/models/operations/UpdateWebhookResponse.md + - docs/models/operations/UploadAssetAssetTask.md + - docs/models/operations/UploadAssetData.md + - docs/models/operations/UploadAssetDataOutput.md + - docs/models/operations/UploadAssetResponse.md + - docs/models/operations/UploadAssetTask.md + - docs/sdks/accesscontrol/README.md + - docs/sdks/asset/README.md - docs/sdks/livepeer/README.md - - docs/sdks/stream/README.md + - docs/sdks/metrics/README.md - docs/sdks/multistream/README.md - - docs/sdks/webhook/README.md - - docs/sdks/asset/README.md - - docs/sdks/session/README.md + - docs/sdks/playback/README.md - docs/sdks/room/README.md - - docs/sdks/metrics/README.md - - docs/sdks/accesscontrol/README.md + - docs/sdks/session/README.md + - docs/sdks/stream/README.md - docs/sdks/task/README.md - docs/sdks/transcode/README.md - - docs/sdks/playback/README.md - - USAGE.md - - CONTRIBUTING.md + - docs/sdks/webhook/README.md + - gradle/wrapper/gradle-wrapper.jar + - gradle/wrapper/gradle-wrapper.properties + - gradlew + - gradlew.bat + - settings.gradle + - src/main/java/studio/livepeer/livepeer/AccessControl.java + - src/main/java/studio/livepeer/livepeer/Asset.java + - src/main/java/studio/livepeer/livepeer/Livepeer.java + - src/main/java/studio/livepeer/livepeer/Metrics.java + - src/main/java/studio/livepeer/livepeer/Multistream.java + - src/main/java/studio/livepeer/livepeer/Playback.java + - src/main/java/studio/livepeer/livepeer/Room.java + - src/main/java/studio/livepeer/livepeer/SDKConfiguration.java + - src/main/java/studio/livepeer/livepeer/SecuritySource.java + - src/main/java/studio/livepeer/livepeer/Session.java + - src/main/java/studio/livepeer/livepeer/Stream.java + - src/main/java/studio/livepeer/livepeer/Task.java + - src/main/java/studio/livepeer/livepeer/Transcode.java + - src/main/java/studio/livepeer/livepeer/Webhook.java + - src/main/java/studio/livepeer/livepeer/models/components/Asset.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetIpfs.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadata.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadataTemplate.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetPatchPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetPhase.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetSource3Type.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetSourceType.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetStatus.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetStorage.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetType.java + - src/main/java/studio/livepeer/livepeer/models/components/AssetVideoSpecType.java + - src/main/java/studio/livepeer/livepeer/models/components/Attestation.java + - src/main/java/studio/livepeer/livepeer/models/components/AttestationIpfs.java + - src/main/java/studio/livepeer/livepeer/models/components/AttestationStorage.java + - src/main/java/studio/livepeer/livepeer/models/components/Attestations.java + - src/main/java/studio/livepeer/livepeer/models/components/CatalystPipelineStrategy.java + - src/main/java/studio/livepeer/livepeer/models/components/Clip.java + - src/main/java/studio/livepeer/livepeer/models/components/ClipPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/ClipStrategy.java + - src/main/java/studio/livepeer/livepeer/models/components/Content.java + - src/main/java/studio/livepeer/livepeer/models/components/CreateRoomResponse.java + - src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java + - src/main/java/studio/livepeer/livepeer/models/components/CreatorId1.java + - src/main/java/studio/livepeer/livepeer/models/components/CreatorIdType.java + - src/main/java/studio/livepeer/livepeer/models/components/Credentials.java + - src/main/java/studio/livepeer/livepeer/models/components/Custom.java + - src/main/java/studio/livepeer/livepeer/models/components/Domain.java + - src/main/java/studio/livepeer/livepeer/models/components/DvrPlayback.java + - src/main/java/studio/livepeer/livepeer/models/components/Encoder.java + - src/main/java/studio/livepeer/livepeer/models/components/Encryption.java + - src/main/java/studio/livepeer/livepeer/models/components/EncryptionOutput.java + - src/main/java/studio/livepeer/livepeer/models/components/Error.java + - src/main/java/studio/livepeer/livepeer/models/components/Events.java + - src/main/java/studio/livepeer/livepeer/models/components/Export.java + - src/main/java/studio/livepeer/livepeer/models/components/ExportData.java + - src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java + - src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams1.java + - src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams2.java + - src/main/java/studio/livepeer/livepeer/models/components/FfmpegProfile.java + - src/main/java/studio/livepeer/livepeer/models/components/Fmp4.java + - src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java + - src/main/java/studio/livepeer/livepeer/models/components/Hash.java + - src/main/java/studio/livepeer/livepeer/models/components/Hls.java + - src/main/java/studio/livepeer/livepeer/models/components/Hrn.java + - src/main/java/studio/livepeer/livepeer/models/components/Input.java + - src/main/java/studio/livepeer/livepeer/models/components/Input1.java + - src/main/java/studio/livepeer/livepeer/models/components/Input2.java + - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java + - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId1.java + - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorIdType.java + - src/main/java/studio/livepeer/livepeer/models/components/InputType.java + - src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java + - src/main/java/studio/livepeer/livepeer/models/components/Ipfs1.java + - src/main/java/studio/livepeer/livepeer/models/components/IpfsExportParams.java + - src/main/java/studio/livepeer/livepeer/models/components/IpfsFileInfo.java + - src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java + - src/main/java/studio/livepeer/livepeer/models/components/IsMobile1.java + - src/main/java/studio/livepeer/livepeer/models/components/LastFailure.java + - src/main/java/studio/livepeer/livepeer/models/components/Live.java + - src/main/java/studio/livepeer/livepeer/models/components/Location.java + - src/main/java/studio/livepeer/livepeer/models/components/Message.java + - src/main/java/studio/livepeer/livepeer/models/components/Meta.java + - src/main/java/studio/livepeer/livepeer/models/components/Mp4.java + - src/main/java/studio/livepeer/livepeer/models/components/Multistream.java + - src/main/java/studio/livepeer/livepeer/models/components/MultistreamTarget.java + - src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetInput.java + - src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetPatchPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/Name.java + - src/main/java/studio/livepeer/livepeer/models/components/NewAssetFromUrlPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadEncryption.java + - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java + - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs1.java + - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadStorage.java + - src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayloadRecordingSpec.java + - src/main/java/studio/livepeer/livepeer/models/components/NftMetadata.java + - src/main/java/studio/livepeer/livepeer/models/components/NftMetadataTemplate.java + - src/main/java/studio/livepeer/livepeer/models/components/One.java + - src/main/java/studio/livepeer/livepeer/models/components/Output.java + - src/main/java/studio/livepeer/livepeer/models/components/Outputs.java + - src/main/java/studio/livepeer/livepeer/models/components/Params.java + - src/main/java/studio/livepeer/livepeer/models/components/Participants.java + - src/main/java/studio/livepeer/livepeer/models/components/Phase.java + - src/main/java/studio/livepeer/livepeer/models/components/Pinata.java + - src/main/java/studio/livepeer/livepeer/models/components/Pinata1.java + - src/main/java/studio/livepeer/livepeer/models/components/Pinata2.java + - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfo.java + - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoHrn.java + - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaDvrPlaybackType.java + - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaType.java + - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoSource.java + - src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoType.java + - src/main/java/studio/livepeer/livepeer/models/components/PlaybackPolicy.java + - src/main/java/studio/livepeer/livepeer/models/components/PrimaryType.java + - src/main/java/studio/livepeer/livepeer/models/components/Profile.java + - src/main/java/studio/livepeer/livepeer/models/components/Pull.java + - src/main/java/studio/livepeer/livepeer/models/components/RealtimeViewershipMetric.java + - src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java + - src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java + - src/main/java/studio/livepeer/livepeer/models/components/Renditions.java + - src/main/java/studio/livepeer/livepeer/models/components/Request.java + - src/main/java/studio/livepeer/livepeer/models/components/Response.java + - src/main/java/studio/livepeer/livepeer/models/components/Room.java + - src/main/java/studio/livepeer/livepeer/models/components/RoomEgressPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/RoomUserPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/RoomUserResponse.java + - src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java + - src/main/java/studio/livepeer/livepeer/models/components/Security.java + - src/main/java/studio/livepeer/livepeer/models/components/Session.java + - src/main/java/studio/livepeer/livepeer/models/components/SignatureType.java + - src/main/java/studio/livepeer/livepeer/models/components/SigningKey.java + - src/main/java/studio/livepeer/livepeer/models/components/Source.java + - src/main/java/studio/livepeer/livepeer/models/components/Source1.java + - src/main/java/studio/livepeer/livepeer/models/components/Source3.java + - src/main/java/studio/livepeer/livepeer/models/components/SourceType.java + - src/main/java/studio/livepeer/livepeer/models/components/Spec.java + - src/main/java/studio/livepeer/livepeer/models/components/Status.java + - src/main/java/studio/livepeer/livepeer/models/components/Storage.java + - src/main/java/studio/livepeer/livepeer/models/components/Storage1.java + - src/main/java/studio/livepeer/livepeer/models/components/Storage2.java + - src/main/java/studio/livepeer/livepeer/models/components/StorageCredentials.java + - src/main/java/studio/livepeer/livepeer/models/components/StorageStatus.java + - src/main/java/studio/livepeer/livepeer/models/components/StorageType.java + - src/main/java/studio/livepeer/livepeer/models/components/Stream.java + - src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java + - src/main/java/studio/livepeer/livepeer/models/components/StreamLocation.java + - src/main/java/studio/livepeer/livepeer/models/components/StreamMultistream.java + - src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/StreamPull.java + - src/main/java/studio/livepeer/livepeer/models/components/StreamRecordingSpec.java + - src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java + - src/main/java/studio/livepeer/livepeer/models/components/Target.java + - src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayloadSpec.java + - src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java + - src/main/java/studio/livepeer/livepeer/models/components/TargetSpec.java + - src/main/java/studio/livepeer/livepeer/models/components/Task.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskExportData.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskHls.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskInput.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskIpfs.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskMp4.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskOutputIpfs.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskOutputs.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskPhase.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskStatus.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskStorage.java + - src/main/java/studio/livepeer/livepeer/models/components/TaskType.java + - src/main/java/studio/livepeer/livepeer/models/components/Tasks.java + - src/main/java/studio/livepeer/livepeer/models/components/Three.java + - src/main/java/studio/livepeer/livepeer/models/components/Tracks.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodeFile.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayload.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageCredentials.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageType.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java + - src/main/java/studio/livepeer/livepeer/models/components/Two.java + - src/main/java/studio/livepeer/livepeer/models/components/Type.java + - src/main/java/studio/livepeer/livepeer/models/components/Upload.java + - src/main/java/studio/livepeer/livepeer/models/components/UsageMetric.java + - src/main/java/studio/livepeer/livepeer/models/components/UserTags.java + - src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java + - src/main/java/studio/livepeer/livepeer/models/components/Version.java + - src/main/java/studio/livepeer/livepeer/models/components/VideoSpec.java + - src/main/java/studio/livepeer/livepeer/models/components/ViewershipMetric.java + - src/main/java/studio/livepeer/livepeer/models/components/Webhook.java + - src/main/java/studio/livepeer/livepeer/models/components/WebhookInput.java + - src/main/java/studio/livepeer/livepeer/models/components/WebhookLog.java + - src/main/java/studio/livepeer/livepeer/models/errors/AuthException.java + - src/main/java/studio/livepeer/livepeer/models/errors/Error.java + - src/main/java/studio/livepeer/livepeer/models/errors/SDKError.java + - src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipData.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateClipTask.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/From.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsData.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetTaskResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetTasksRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamBreakdownBy.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamTimeStep.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java + - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java + - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTimeStep.java + - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java + - src/main/java/studio/livepeer/livepeer/models/operations/Record.java + - src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadData.java + - src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java + - src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/Task.java + - src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/TimeStep.java + - src/main/java/studio/livepeer/livepeer/models/operations/To.java + - src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBody.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetAssetTask.java + - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetData.java + - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetDataOutput.java + - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetTask.java + - src/main/java/studio/livepeer/livepeer/utils/BackoffStrategy.java + - src/main/java/studio/livepeer/livepeer/utils/BigDecimalString.java + - src/main/java/studio/livepeer/livepeer/utils/BigIntegerString.java + - src/main/java/studio/livepeer/livepeer/utils/Deserializers.java + - src/main/java/studio/livepeer/livepeer/utils/EventStream.java + - src/main/java/studio/livepeer/livepeer/utils/EventStreamLineReader.java + - src/main/java/studio/livepeer/livepeer/utils/EventStreamMessage.java + - src/main/java/studio/livepeer/livepeer/utils/EventStreamReader.java + - src/main/java/studio/livepeer/livepeer/utils/FormMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/HTTPClient.java + - src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java + - src/main/java/studio/livepeer/livepeer/utils/HeaderMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/Helpers.java + - src/main/java/studio/livepeer/livepeer/utils/Hook.java + - src/main/java/studio/livepeer/livepeer/utils/Hooks.java + - src/main/java/studio/livepeer/livepeer/utils/JSON.java + - src/main/java/studio/livepeer/livepeer/utils/LazySingletonValue.java + - src/main/java/studio/livepeer/livepeer/utils/Metadata.java + - src/main/java/studio/livepeer/livepeer/utils/MultipartFormMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java + - src/main/java/studio/livepeer/livepeer/utils/Options.java + - src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java + - src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/RequestBody.java + - src/main/java/studio/livepeer/livepeer/utils/RequestMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/Response.java + - src/main/java/studio/livepeer/livepeer/utils/Retries.java + - src/main/java/studio/livepeer/livepeer/utils/RetryConfig.java + - src/main/java/studio/livepeer/livepeer/utils/Security.java + - src/main/java/studio/livepeer/livepeer/utils/SecurityMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/SerializedBody.java + - src/main/java/studio/livepeer/livepeer/utils/SpeakeasyHTTPClient.java + - src/main/java/studio/livepeer/livepeer/utils/SpeakeasyMetadata.java + - src/main/java/studio/livepeer/livepeer/utils/TypedObject.java + - src/main/java/studio/livepeer/livepeer/utils/Types.java + - src/main/java/studio/livepeer/livepeer/utils/Utils.java +examples: + createStream: + speakeasy-default-create-stream: + requestBody: + application/json: {"name": "test_stream", "pull": {"source": "https://myservice.com/live/stream.flv", "headers": {"Authorization": "Bearer 123"}, "location": {"lat": 39.739, "lon": -104.988}}, "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}], "record": false, "recordingSpec": {"profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]}, "multistream": {"targets": [{"profile": "720p0", "videoOnly": false, "id": "PUSH123", "spec": {"name": "My target", "url": "rtmps://live.my-service.tv/channel/secretKey"}}]}} + responses: + "201": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_stream", "creatorId": {"type": "unverified", "value": "user123"}, "lastSeen": 1587667174725, "sourceSegments": 1, "transcodedSegments": 2, "sourceSegmentsDuration": 1, "transcodedSegmentsDuration": 2, "sourceBytes": 1, "transcodedBytes": 2, "ingestRate": 1, "outgoingRate": 2, "isActive": true, "createdByTokenName": "abc-123-xyz-456", "createdAt": 1587667174725, "parentId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "streamKey": "hgebdhhigq", "pull": {"source": "https://myservice.com/live/stream.flv", "headers": {"Authorization": "Bearer 123"}, "location": {"lat": 39.739, "lon": -104.988}}, "playbackId": "eaw4nk06ts2d0mzb", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}], "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "record": false, "recordingSpec": {"profiles": []}, "multistream": {"targets": [{"profile": "720p0", "videoOnly": false, "id": "PUSH123"}]}, "lastTerminatedAt": 1713281212993} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getStreams: + speakeasy-default-get-streams: + responses: + "200": + application/json: [{"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_stream", "creatorId": {"type": "unverified", "value": "user123"}, "lastSeen": 1587667174725, "sourceSegments": 1, "transcodedSegments": 2, "sourceSegmentsDuration": 1, "transcodedSegmentsDuration": 2, "sourceBytes": 1, "transcodedBytes": 2, "ingestRate": 1, "outgoingRate": 2, "isActive": true, "createdByTokenName": "abc-123-xyz-456", "createdAt": 1587667174725, "parentId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "streamKey": "hgebdhhigq", "pull": {"source": "https://myservice.com/live/stream.flv", "headers": {"Authorization": "Bearer 123"}, "location": {"lat": 39.739, "lon": -104.988}}, "playbackId": "eaw4nk06ts2d0mzb", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "profiles": [], "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "record": false, "recordingSpec": {"profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]}, "multistream": {"targets": [{"profile": "720p0", "videoOnly": false, "id": "PUSH123"}]}, "lastTerminatedAt": 1713281212993}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getStream: + speakeasy-default-get-stream: + parameters: + path: + id: "" + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_stream", "creatorId": {"type": "unverified", "value": "user123"}, "lastSeen": 1587667174725, "sourceSegments": 1, "transcodedSegments": 2, "sourceSegmentsDuration": 1, "transcodedSegmentsDuration": 2, "sourceBytes": 1, "transcodedBytes": 2, "ingestRate": 1, "outgoingRate": 2, "isActive": true, "createdByTokenName": "abc-123-xyz-456", "createdAt": 1587667174725, "parentId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "streamKey": "hgebdhhigq", "pull": {"source": "https://myservice.com/live/stream.flv", "headers": {"Authorization": "Bearer 123"}, "location": {"lat": 39.739, "lon": -104.988}}, "playbackId": "eaw4nk06ts2d0mzb", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}], "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "record": false, "recordingSpec": {"profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]}, "multistream": {"targets": [{"profile": "720p0", "videoOnly": false, "id": "PUSH123"}]}, "lastTerminatedAt": 1713281212993} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + updateStream: + speakeasy-default-update-stream: + parameters: + path: + id: "" + requestBody: + application/json: {"record": false, "multistream": {"targets": [{"profile": "720p0", "videoOnly": false, "id": "PUSH123", "spec": {"name": "My target", "url": "rtmps://live.my-service.tv/channel/secretKey"}}]}, "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}], "recordingSpec": {"profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]}} + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + deleteStream: + speakeasy-default-delete-stream: + parameters: + path: + id: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + terminateStream: + speakeasy-default-terminate-stream: + parameters: + path: + id: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + startPullStream: + speakeasy-default-start-pull-stream: + parameters: + path: + id: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + createClip: + speakeasy-default-create-clip: + requestBody: + application/json: {"playbackId": "eaw4nk06ts2d0mzb", "startTime": 1587667174725, "endTime": 1587667174725, "name": "My Clip", "sessionId": "de7818e7-610a-4057-8f6f-b785dc1e6f88"} + responses: + "200": + application/json: {"asset": {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "video", "playbackId": "eaw4nk06ts2d0mzb", "playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8", "downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": {"type": "clip"}, "creatorId": {"type": "unverified", "value": "user123"}, "profiles": [], "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}, "status": {"phase": "failed", "updatedAt": 1587667174725}, "name": "filename.mp4", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "size": 84934509, "hash": [{"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}], "videoSpec": {"format": "mp4", "duration": 23.8328, "bitrate": 1000000, "tracks": [{"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}]}}, "task": {"id": "34d7618e-fd42-4798-acf5-19504616a11e"}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getClips: + speakeasy-default-get-clips: + parameters: + path: + id: "" + responses: + "200": + application/json: [] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + addMultistreamTarget: + speakeasy-default-add-multistream-target: + parameters: + path: + id: "" + requestBody: + application/json: {"profile": "720p0", "videoOnly": false, "id": "PUSH123", "spec": {"name": "My target", "url": "rtmps://live.my-service.tv/channel/secretKey"}} + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + removeMultistreamTarget: + speakeasy-default-remove-multistream-target: + parameters: + path: + id: "" + targetId: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getMultistreamTargets: + speakeasy-default-get-multistream-targets: + responses: + "200": + application/json: [{"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "createdAt": 1587667174725}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + createMultistreamTarget: + speakeasy-default-create-multistream-target: + requestBody: + application/json: {"url": "rtmps://live.my-service.tv/channel/secretKey"} + responses: + "201": + application/json: {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "createdAt": 1587667174725} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getMultistreamTarget: + speakeasy-default-get-multistream-target: + parameters: + path: + id: "" + responses: + "200": + application/json: {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "createdAt": 1587667174725} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + updateMultistreamTarget: + speakeasy-default-update-multistream-target: + parameters: + path: + id: "" + requestBody: + application/json: {"url": "rtmps://live.my-service.tv/channel/secretKey"} + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + deleteMultistreamTarget: + speakeasy-default-delete-multistream-target: + parameters: + path: + id: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getWebhooks: + speakeasy-default-get-webhooks: + responses: + "200": + application/json: [{"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_webhook", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "events": ["stream.started", "stream.idle"], "url": "https://my-service.com/webhook", "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "status": {"lastFailure": {"timestamp": 1587667174725, "error": "Error message", "response": "Response body", "statusCode": 500}, "lastTriggeredAt": 1587667174725}}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + createWebhook: + speakeasy-default-create-webhook: + requestBody: + application/json: {"name": "test_webhook", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "events": ["stream.started", "stream.idle"], "url": "https://my-service.com/webhook", "sharedSecret": "my-secret", "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88"} + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_webhook", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "events": ["stream.started", "stream.idle"], "url": "https://my-service.com/webhook", "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "status": {"lastFailure": {"timestamp": 1587667174725, "error": "Error message", "response": "Response body", "statusCode": 500}, "lastTriggeredAt": 1587667174725}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getWebhook: + speakeasy-default-get-webhook: + parameters: + path: + id: "" + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_webhook", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "events": ["stream.started", "stream.idle"], "url": "https://my-service.com/webhook", "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "status": {"lastFailure": {"timestamp": 1587667174725, "error": "Error message", "response": "Response body", "statusCode": 500}, "lastTriggeredAt": 1587667174725}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + updateWebhook: + speakeasy-default-update-webhook: + parameters: + path: + id: "" + requestBody: + application/json: {"name": "test_webhook", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "events": ["stream.started", "stream.idle"], "url": "https://my-service.com/webhook", "sharedSecret": "my-secret", "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88"} + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_webhook", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "events": ["stream.started", "stream.idle"], "url": "https://my-service.com/webhook", "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "status": {"lastFailure": {"timestamp": 1587667174725, "error": "Error message", "response": "Response body", "statusCode": 500}, "lastTriggeredAt": 1587667174725}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + deleteWebhook: + speakeasy-default-delete-webhook: + parameters: + path: + id: "" + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_webhook", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "events": ["stream.started", "stream.idle"], "url": "https://my-service.com/webhook", "streamId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "status": {"lastFailure": {"timestamp": 1587667174725, "error": "Error message", "response": "Response body", "statusCode": 500}, "lastTriggeredAt": 1587667174725}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getWebhookLogs: + speakeasy-default-get-webhook-logs: + parameters: + path: + id: "" + responses: + "200": + application/json: [{"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "webhookId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "event": "stream.started", "createdAt": 1587667174725, "duration": 0.5, "success": true, "request": {"url": "https://my-service.com/webhook", "method": "POST", "headers": {"User-Agent": "livepeer.studio"}, "body": "{\"event\": \"stream.started\"}"}}, {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "webhookId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "event": "stream.started", "createdAt": 1587667174725, "duration": 0.5, "success": true, "request": {"url": "https://my-service.com/webhook", "method": "POST", "headers": {"User-Agent": "livepeer.studio"}, "body": "{\"event\": \"stream.started\"}"}}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getWebhookLog: + speakeasy-default-get-webhook-log: + parameters: + path: + id: "" + logId: "" + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "webhookId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "event": "stream.started", "createdAt": 1587667174725, "duration": 0.5, "success": true, "request": {"url": "https://my-service.com/webhook", "method": "POST", "headers": {"User-Agent": "livepeer.studio"}, "body": "{\"event\": \"stream.started\"}"}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + resendWebhook: + speakeasy-default-resend-webhook: + parameters: + path: + id: "" + logId: "" + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "webhookId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "event": "stream.started", "createdAt": 1587667174725, "duration": 0.5, "success": true, "request": {"url": "https://my-service.com/webhook", "method": "POST", "headers": {"User-Agent": "livepeer.studio"}, "body": "{\"event\": \"stream.started\"}"}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getAssets: + speakeasy-default-get-assets: + responses: + "200": + application/json: [{"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "video", "playbackId": "eaw4nk06ts2d0mzb", "playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8", "downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": {"type": "url", "url": "https://puzzled-adviser.info"}, "creatorId": {"type": "unverified", "value": "user123"}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}, "status": {"phase": "uploading", "updatedAt": 1587667174725}, "name": "filename.mp4", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "size": 84934509, "hash": [{"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}, {"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}, {"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}], "videoSpec": {"format": "mp4", "duration": 23.8328, "bitrate": 1000000, "tracks": [{"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}, {"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}, {"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}]}}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + requestUpload: + speakeasy-default-request-upload: + requestBody: + application/json: {"name": "filename.mp4", "staticMp4": true, "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]} + responses: + "200": + application/json: {"url": "https://origin.livepeer.com/api/asset/upload/direct?token=eyJhbGciOiJIUzI1NiJ9.eyJtc2ciOiJoZWxsbyBoYWNrZXIsIHRoZXJlJ3Mgbm90aGluZyBmb3IgeW91IGhlcmUg8J-YhiJ9.1YDjmXsqLcgNyMSzT4kXl_kIni46_EuGX_xfqmC7e0Q", "tusEndpoint": "https://origin.livepeer.com/api/asset/upload/tus?token=eyJhbGciOiJIUzI1NiJ9.eyJtc2ciOiJoZWxsbyBoYWNrZXIsIHRoZXJlJ3Mgbm90aGluZyBmb3IgeW91IGhlcmUg8J-YhiJ9.1YDjmXsqLcgNyMSzT4kXl_kIni46_EuGX_xfqmC7e0Q", "asset": {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "video", "playbackId": "eaw4nk06ts2d0mzb", "playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8", "downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": {"type": "recording", "sessionId": ""}, "creatorId": {"type": "unverified", "value": "user123"}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}, "status": {"phase": "uploading", "updatedAt": 1587667174725}, "name": "filename.mp4", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "size": 84934509, "hash": [], "videoSpec": {"format": "mp4", "duration": 23.8328, "bitrate": 1000000, "tracks": [{"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}, {"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}, {"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}]}}, "task": {"id": "34d7618e-fd42-4798-acf5-19504616a11e"}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + uploadAsset: + speakeasy-default-upload-asset: + requestBody: + application/json: {"name": "filename.mp4", "staticMp4": true, "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "url": "https://s3.amazonaws.com/my-bucket/path/filename.mp4", "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]} + responses: + "200": + application/json: {"asset": {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "video", "playbackId": "eaw4nk06ts2d0mzb", "playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8", "downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": {"type": "url", "url": "https://creative-tenant.com/"}, "creatorId": {"type": "unverified", "value": "user123"}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}, "status": {"phase": "ready", "updatedAt": 1587667174725}, "name": "filename.mp4", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "size": 84934509, "hash": [], "videoSpec": {"format": "mp4", "duration": 23.8328, "bitrate": 1000000, "tracks": [{"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}, {"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}]}}, "task": {"id": "34d7618e-fd42-4798-acf5-19504616a11e"}} + "201": + application/json: {"asset": {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "video", "playbackId": "eaw4nk06ts2d0mzb", "playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8", "downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": {"type": "directUpload"}, "creatorId": {"type": "unverified", "value": "user123"}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}, "status": {"phase": "deleted", "updatedAt": 1587667174725}, "name": "filename.mp4", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "size": 84934509, "hash": [], "videoSpec": {"format": "mp4", "duration": 23.8328, "bitrate": 1000000, "tracks": [{"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}]}}, "task": {"id": "34d7618e-fd42-4798-acf5-19504616a11e"}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getAsset: + speakeasy-default-get-asset: + parameters: + path: + assetId: "" + responses: + "200": + application/json: {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "video", "playbackId": "eaw4nk06ts2d0mzb", "playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8", "downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": {"type": "clip"}, "creatorId": {"type": "unverified", "value": "user123"}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}, "status": {"phase": "ready", "updatedAt": 1587667174725}, "name": "filename.mp4", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "size": 84934509, "hash": [{"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}, {"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}, {"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}], "videoSpec": {"format": "mp4", "duration": 23.8328, "bitrate": 1000000, "tracks": [{"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}]}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + updateAsset: + speakeasy-default-update-asset: + parameters: + path: + assetId: "" + requestBody: + application/json: {"name": "filename.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}} + responses: + "200": + application/json: {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "video", "playbackId": "eaw4nk06ts2d0mzb", "playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8", "downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4", "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": {"type": "clip"}, "creatorId": {"type": "unverified", "value": "user123"}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}, "status": {"phase": "deleted", "updatedAt": 1587667174725}, "name": "filename.mp4", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "createdAt": 1587667174725, "size": 84934509, "hash": [{"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}, {"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57", "algorithm": "sha256"}], "videoSpec": {"format": "mp4", "duration": 23.8328, "bitrate": 1000000, "tracks": [{"type": "video", "codec": "aac", "startTime": 23.8238, "duration": 23.8238, "bitrate": 1000000, "width": 1920, "height": 1080, "pixelFormat": "yuv420p", "fps": 30, "channels": 2, "sampleRate": 44100, "bitDepth": 16}]}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + deleteAsset: + speakeasy-default-delete-asset: + parameters: + path: + assetId: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getSessionClips: + speakeasy-default-get-session-clips: + parameters: + path: + id: "" + responses: + "200": + application/json: [] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getSessions: + speakeasy-default-get-sessions: + responses: + "200": + application/json: [{"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_session", "lastSeen": 1587667174725, "sourceSegments": 1, "transcodedSegments": 2, "sourceSegmentsDuration": 1, "transcodedSegmentsDuration": 2, "sourceBytes": 1, "transcodedBytes": 2, "ingestRate": 1, "outgoingRate": 2, "createdAt": 1587667174725, "parentId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "record": false, "playbackId": "eaw4nk06ts2d0mzb", "profiles": [], "recordingSpec": {"profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]}}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getSession: + speakeasy-default-get-session: + parameters: + path: + id: "" + responses: + "200": + application/json: {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_session", "lastSeen": 1587667174725, "sourceSegments": 1, "transcodedSegments": 2, "sourceSegmentsDuration": 1, "transcodedSegmentsDuration": 2, "sourceBytes": 1, "transcodedBytes": 2, "ingestRate": 1, "outgoingRate": 2, "createdAt": 1587667174725, "parentId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "record": false, "playbackId": "eaw4nk06ts2d0mzb", "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}], "recordingSpec": {"profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getRecordedSessions: + speakeasy-default-get-recorded-sessions: + parameters: + path: + parentId: "" + query: + record: true + responses: + "200": + application/json: [{"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_session", "lastSeen": 1587667174725, "sourceSegments": 1, "transcodedSegments": 2, "sourceSegmentsDuration": 1, "transcodedSegmentsDuration": 2, "sourceBytes": 1, "transcodedBytes": 2, "ingestRate": 1, "outgoingRate": 2, "createdAt": 1587667174725, "parentId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "record": false, "playbackId": "eaw4nk06ts2d0mzb", "profiles": [], "recordingSpec": {"profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]}}, {"id": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "name": "test_session", "lastSeen": 1587667174725, "sourceSegments": 1, "transcodedSegments": 2, "sourceSegmentsDuration": 1, "transcodedSegmentsDuration": 2, "sourceBytes": 1, "transcodedBytes": 2, "ingestRate": 1, "outgoingRate": 2, "createdAt": 1587667174725, "parentId": "de7818e7-610a-4057-8f6f-b785dc1e6f88", "projectId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9", "record": false, "playbackId": "eaw4nk06ts2d0mzb", "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "fps": 30, "fpsDen": 1, "quality": 23, "gop": "2", "profile": "H264Baseline"}], "recordingSpec": {"profiles": []}}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + createRoom: + speakeasy-default-create-room: + responses: + "200": + application/json: {"id": "d32ae9e6-c459-4931-9898-e86e2f5e7e16"} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getRoom: + speakeasy-default-get-room: + parameters: + path: + id: "" + responses: + "200": + application/json: {"id": "d32ae9e6-c459-4931-9898-e86e2f5e7e16", "createdAt": 1587667174725, "updatedAt": 1587667174725} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + deleteRoom: + speakeasy-default-delete-room: + parameters: + path: + id: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + startRoomEgress: + speakeasy-default-start-room-egress: + parameters: + path: + id: "" + requestBody: + application/json: {"streamId": "aac12556-4d65-4d34-9fb6-d1f0985eb0a9"} + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + stopRoomEgress: + speakeasy-default-stop-room-egress: + parameters: + path: + id: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + createRoomUser: + speakeasy-default-create-room-user: + parameters: + path: + id: "" + requestBody: + application/json: {"name": "name", "canPublish": true, "canPublishData": true} + responses: + "201": + application/json: {"id": "d32ae9e6-c459-4931-9898-e86e2f5e7e16", "joinUrl": "https://meet.livepeer.chat", "token": "token"} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getRoomUser: + speakeasy-default-get-room-user: + parameters: + path: + id: "" + userId: "" + responses: + "200": + application/json: {"id": "d32ae9e6-c459-4931-9898-e86e2f5e7e16", "joinedAt": 1687517025261, "name": "name", "isPublisher": true} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + updateRoomUser: + speakeasy-default-update-room-user: + parameters: + path: + id: "" + userId: "" + requestBody: + application/json: {"canPublish": true, "canPublishData": true} + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + deleteRoomUser: + speakeasy-default-delete-room-user: + parameters: + path: + id: "" + userId: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getRealtimeViewershipNow: + speakeasy-default-get-realtime-viewership-now: + responses: + "200": + application/json: [] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getViewershipMetrics: + speakeasy-default-get-viewership-metrics: + responses: + "200": + application/json: [{"playbackId": "1bde4o2i6xycudoy", "creatorId": "john@doe.com", "viewerId": "1bde4o2i6xycudoy", "dStorageUrl": "ipfs://QmZ4", "timestamp": 1587667174725, "device": "iPhone", "deviceType": "mobile", "cpu": "ARM", "os": "iOS", "browser": "Safari", "browserEngine": "WebKit", "continent": "North America", "country": "United States", "subdivision": "California", "timezone": "America/Los_Angeles", "geohash": "123", "viewCount": 100, "playtimeMins": 10, "ttffMs": 100, "rebufferRatio": 0.1, "errorRate": 0.1, "exitsBeforeStart": 0.5}, {"playbackId": "1bde4o2i6xycudoy", "creatorId": "john@doe.com", "viewerId": "1bde4o2i6xycudoy", "dStorageUrl": "ipfs://QmZ4", "timestamp": 1587667174725, "device": "iPhone", "deviceType": "mobile", "cpu": "ARM", "os": "iOS", "browser": "Safari", "browserEngine": "WebKit", "continent": "North America", "country": "United States", "subdivision": "California", "timezone": "America/Los_Angeles", "geohash": "123", "viewCount": 100, "playtimeMins": 10, "ttffMs": 100, "rebufferRatio": 0.1, "errorRate": 0.1, "exitsBeforeStart": 0.5}, {"playbackId": "1bde4o2i6xycudoy", "creatorId": "john@doe.com", "viewerId": "1bde4o2i6xycudoy", "dStorageUrl": "ipfs://QmZ4", "timestamp": 1587667174725, "device": "iPhone", "deviceType": "mobile", "cpu": "ARM", "os": "iOS", "browser": "Safari", "browserEngine": "WebKit", "continent": "North America", "country": "United States", "subdivision": "California", "timezone": "America/Los_Angeles", "geohash": "123", "viewCount": 100, "playtimeMins": 10, "ttffMs": 100, "rebufferRatio": 0.1, "errorRate": 0.1, "exitsBeforeStart": 0.5}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getCreatorViewershipMetrics: + speakeasy-default-get-creator-viewership-metrics: + responses: + "200": + application/json: [{"playbackId": "1bde4o2i6xycudoy", "creatorId": "john@doe.com", "viewerId": "1bde4o2i6xycudoy", "dStorageUrl": "ipfs://QmZ4", "timestamp": 1587667174725, "device": "iPhone", "deviceType": "mobile", "cpu": "ARM", "os": "iOS", "browser": "Safari", "browserEngine": "WebKit", "continent": "North America", "country": "United States", "subdivision": "California", "timezone": "America/Los_Angeles", "geohash": "123", "viewCount": 100, "playtimeMins": 10, "ttffMs": 100, "rebufferRatio": 0.1, "errorRate": 0.1, "exitsBeforeStart": 0.5}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getPublicViewershipMetrics: + speakeasy-default-get-public-viewership-metrics: + parameters: + path: + playbackId: "" + responses: + "200": + application/json: {"playbackId": "1bde4o2i6xycudoy", "dStorageUrl": "ipfs://QmZ4", "viewCount": 100, "playtimeMins": 10} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getUsageMetrics: + speakeasy-default-get-usage-metrics: + responses: + "200": + application/json: {"UserID": "1bde4o2i6xycudoy", "CreatorID": "john@doe.com", "DeliveryUsageMins": 100, "TotalUsageMins": 100, "StorageUsageMins": 100} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + createSigningKey: + speakeasy-default-create-signing-key: + responses: + "200": + application/json: {"id": "78df0075-b5f3-4683-a618-1086faca35dc", "name": "key1", "createdAt": 1587667174725, "lastSeen": 1587667174725, "publicKey": "", "disabled": false, "projectId": "aac12556-4d65-4d34-9fb"} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getSigningKeys: + speakeasy-default-get-signing-keys: + responses: + "200": + application/json: [{"id": "78df0075-b5f3-4683-a618-1086faca35dc", "name": "key1", "createdAt": 1587667174725, "lastSeen": 1587667174725, "publicKey": "", "disabled": false, "projectId": "aac12556-4d65-4d34-9fb"}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + deleteSigningKey: + speakeasy-default-delete-signing-key: + parameters: + path: + keyId: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getSigningKey: + speakeasy-default-get-signing-key: + parameters: + path: + keyId: "" + responses: + "200": + application/json: {"id": "78df0075-b5f3-4683-a618-1086faca35dc", "name": "key1", "createdAt": 1587667174725, "lastSeen": 1587667174725, "publicKey": "", "disabled": false, "projectId": "aac12556-4d65-4d34-9fb"} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + updateSigningKey: + speakeasy-default-update-signing-key: + parameters: + path: + keyId: "" + responses: + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getTasks: + speakeasy-default-get-tasks: + responses: + "200": + application/json: [{"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "upload", "createdAt": 1587667174725, "scheduledAt": 1587667174725, "inputAssetId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "outputAssetId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "projectId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "requesterId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "params": {"upload": {"url": "https://cdn.livepeer.com/ABC123/filename.mp4", "c2pa": true, "profiles": [], "targetSegmentSizeSecs": 6}, "export": {"ipfs": {"pinata": {"apiKey": "1234567890"}}}, "exportData": {"ipfs": {}, "type": "text/plain", "id": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}, "transcode-file": {"input": {"url": "https://cdn.livepeer.com/ABC123/filename.mp4"}, "storage": {"url": "s3+https://accessKeyId:secretAccessKey@s3Endpoint/bucket"}, "outputs": {"hls": {"path": "/samplevideo/hls"}, "mp4": {"path": "/samplevideo/mp4"}}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "targetSegmentSizeSecs": 10, "c2pa": false}, "clip": {"url": "https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4", "clipStrategy": {"startTime": 1587667174725, "endTime": 1587667174725, "playbackId": "eaw4nk06ts2d0mzb"}, "catalystPipelineStrategy": "catalyst_ffmpeg", "sessionId": "d32ae9e6-c459-4931-9898-e86e2f5e7e16", "inputId": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}, "status": {"phase": "pending", "updatedAt": 1587667174725, "progress": 0.5, "errorMessage": "Failed to upload file", "retries": 3}, "output": {"export": {"ipfs": {"videoFileCid": "Qmabc123xyz341", "videoFileUrl": "ipfs://Qmabc123xyz341", "videoFileGatewayUrl": "https://gateway.ipfs.io/ipfs/Qmabc123xyz341", "nftMetadataCid": "Qmabc123xyz341", "nftMetadataUrl": "ipfs://Qmabc123xyz341", "nftMetadataGatewayUrl": "https://gateway.ipfs.io/ipfs/Qmabc123xyz341"}}, "exportData": {"ipfs": {"cid": "Qmabc123xyz341"}}}}] + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getTask: + speakeasy-default-get-task: + parameters: + path: + taskId: "" + responses: + "200": + application/json: {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "upload", "createdAt": 1587667174725, "scheduledAt": 1587667174725, "inputAssetId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "outputAssetId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "projectId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "requesterId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "params": {"upload": {"url": "https://cdn.livepeer.com/ABC123/filename.mp4", "c2pa": true, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "targetSegmentSizeSecs": 6}, "export": {"ipfs": {"pinata": {"apiKey": "1234567890"}}}, "exportData": {"ipfs": {"pinata": {"apiKey": "1234567890"}}, "type": "text/plain", "id": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}, "transcode-file": {"input": {"url": "https://cdn.livepeer.com/ABC123/filename.mp4"}, "storage": {"url": "s3+https://accessKeyId:secretAccessKey@s3Endpoint/bucket"}, "outputs": {"hls": {"path": "/samplevideo/hls"}, "mp4": {"path": "/samplevideo/mp4"}}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "targetSegmentSizeSecs": 10, "c2pa": false}, "clip": {"url": "https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4", "clipStrategy": {"startTime": 1587667174725, "endTime": 1587667174725, "playbackId": "eaw4nk06ts2d0mzb"}, "catalystPipelineStrategy": "catalyst_ffmpeg", "sessionId": "d32ae9e6-c459-4931-9898-e86e2f5e7e16", "inputId": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}, "status": {"phase": "pending", "updatedAt": 1587667174725, "progress": 0.5, "errorMessage": "Failed to upload file", "retries": 3}, "output": {"export": {"ipfs": {"videoFileCid": "Qmabc123xyz341", "videoFileUrl": "ipfs://Qmabc123xyz341", "videoFileGatewayUrl": "https://gateway.ipfs.io/ipfs/Qmabc123xyz341", "nftMetadataCid": "Qmabc123xyz341", "nftMetadataUrl": "ipfs://Qmabc123xyz341", "nftMetadataGatewayUrl": "https://gateway.ipfs.io/ipfs/Qmabc123xyz341"}}, "exportData": {"ipfs": {"cid": "Qmabc123xyz341"}}}} + transcodeVideo: + speakeasy-default-transcode-video: + requestBody: + application/json: {"input": {"url": "https://s3.amazonaws.com/bucket/file.mp4"}, "storage": {"type": "web3.storage", "credentials": {"proof": "EaJlcm9vdHOAZ3ZlcnNpb24BmgIBcRIg2uxHpcPYSWNtifMKFkPC7IEDvFDCxCd3ADViv0coV7SnYXNYRO2hA0AnblHEW38s3lSlcwaDjPn"}}, "outputs": {"hls": {"path": "/samplevideo/hls"}, "mp4": {"path": "/samplevideo/mp4"}, "fmp4": {"path": "/samplevideo/fmp4"}}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}]} + responses: + "200": + application/json: {"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "type": "upload", "createdAt": 1587667174725, "scheduledAt": 1587667174725, "inputAssetId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "outputAssetId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "projectId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "requesterId": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "params": {"upload": {"url": "https://cdn.livepeer.com/ABC123/filename.mp4", "c2pa": true, "profiles": [], "targetSegmentSizeSecs": 6}, "export": {"custom": {"url": "https://s3.amazonaws.com/my-bucket/path/filename.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=LLMMB", "method": "POST"}}, "exportData": {"ipfs": {"pinata": {"apiKey": "1234567890"}}, "type": "text/plain", "id": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}, "transcode-file": {"input": {"url": "https://cdn.livepeer.com/ABC123/filename.mp4"}, "storage": {"url": "s3+https://accessKeyId:secretAccessKey@s3Endpoint/bucket"}, "outputs": {"hls": {"path": "/samplevideo/hls"}, "mp4": {"path": "/samplevideo/mp4"}}, "profiles": [{"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}, {"width": 1280, "name": "720p", "height": 720, "bitrate": 3000000, "quality": 23, "fps": 30, "fpsDen": 1, "gop": "2", "profile": "H264Baseline", "encoder": "H.264"}], "targetSegmentSizeSecs": 10, "c2pa": false}, "clip": {"url": "https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4", "clipStrategy": {"startTime": 1587667174725, "endTime": 1587667174725, "playbackId": "eaw4nk06ts2d0mzb"}, "catalystPipelineStrategy": "catalyst_ffmpeg", "sessionId": "d32ae9e6-c459-4931-9898-e86e2f5e7e16", "inputId": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}, "status": {"phase": "pending", "updatedAt": 1587667174725, "progress": 0.5, "errorMessage": "Failed to upload file", "retries": 3}, "output": {"export": {"ipfs": {"videoFileCid": "Qmabc123xyz341", "videoFileUrl": "ipfs://Qmabc123xyz341", "videoFileGatewayUrl": "https://gateway.ipfs.io/ipfs/Qmabc123xyz341", "nftMetadataCid": "Qmabc123xyz341", "nftMetadataUrl": "ipfs://Qmabc123xyz341", "nftMetadataGatewayUrl": "https://gateway.ipfs.io/ipfs/Qmabc123xyz341"}}, "exportData": {"ipfs": {"cid": "Qmabc123xyz341"}}}} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + getPlaybackInfo: + speakeasy-default-get-playback-info: + parameters: + path: + id: "" + responses: + "200": + application/json: {"type": "vod", "meta": {"live": 0, "playbackPolicy": {"type": "webhook", "webhookId": "1bde4o2i6xycudoy", "webhookContext": {"streamerId": "my-custom-id"}, "refreshInterval": 600}, "source": [{"hrn": "MP4", "type": "html5/video/mp4", "url": "https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4", "size": 494778, "width": 204, "height": 360, "bitrate": 449890}, {"hrn": "MP4", "type": "html5/video/mp4", "url": "https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4", "size": 494778, "width": 204, "height": 360, "bitrate": 449890}], "dvrPlayback": [{"hrn": "HLS (TS)", "type": "html5/application/vnd.apple.mpegurl", "url": "https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4"}, {"hrn": "HLS (TS)", "type": "html5/application/vnd.apple.mpegurl", "url": "https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4"}], "attestation": {"id": "5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0", "primaryType": "VideoAttestation", "domain": {"name": "Verifiable Video", "version": "1"}, "message": {"video": "5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0", "attestations": [{"role": "creator", "address": "1311768467294899700"}, {"role": "creator", "address": "1311768467294899700"}], "signer": "1311768467294899700", "timestamp": 1587667174725}, "signature": "1311768467294899700", "createdAt": 1587667174725, "signatureType": "eip712", "storage": {"ipfs": {"updatedAt": 1587667174725}, "status": {"phase": "ready", "progress": 0.5, "errorMessage": "Failed to update storage", "tasks": {"pending": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "last": "09F8B46C-61A0-4254-9875-F71F4C605BC7", "failed": "09F8B46C-61A0-4254-9875-F71F4C605BC7"}}}}}} + "404": + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} + default: + application/json: {"errors": ["[\"id not provided\",\"Account not found\"]"]} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 4d8f487..0918daa 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true java: - version: 0.5.0 + version: 0.6.0 additionalDependencies: [] additionalPlugins: [] artifactID: livepeer diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 647effc..e4bdf1e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.377.1 +speakeasyVersion: 1.419.0 sources: Livepeer: sourceNamespace: livepeer @@ -8,8 +8,8 @@ sources: - latest livepeer-studio-api: sourceNamespace: livepeer-studio-api - sourceRevisionDigest: sha256:9333277669bf8fb46063579d611518570aff37c2bfb20e0a90fd3b0c030ca2ad - sourceBlobDigest: sha256:1705d75b1de89f7c2e60643ed2c2aaced22b577da6f2935b1c2e09d533bb7182 + sourceRevisionDigest: sha256:ab272c3238cf1edffefe2e1cdd3352598bce8a6a221b33e0da4263ab83a3288d + sourceBlobDigest: sha256:548870f7275fa92596e5874fc29be41f80459c0beae33717e7837e5c67eb3195 tags: - latest - main @@ -17,15 +17,13 @@ targets: livepeer-java: source: livepeer-studio-api sourceNamespace: livepeer-studio-api - sourceRevisionDigest: sha256:9333277669bf8fb46063579d611518570aff37c2bfb20e0a90fd3b0c030ca2ad - sourceBlobDigest: sha256:1705d75b1de89f7c2e60643ed2c2aaced22b577da6f2935b1c2e09d533bb7182 - outLocation: /github/workspace/repo + sourceRevisionDigest: sha256:ab272c3238cf1edffefe2e1cdd3352598bce8a6a221b33e0da4263ab83a3288d + sourceBlobDigest: sha256:548870f7275fa92596e5874fc29be41f80459c0beae33717e7837e5c67eb3195 my-first-target: source: Livepeer sourceNamespace: livepeer sourceRevisionDigest: sha256:a27b08eda9895afa45560e8255cc722036759a56c7c16bf09d002f2f5a4e2dea sourceBlobDigest: sha256:856a4f7c8547bd06b13cb376f3b89f51fe7f6578c4fa6284a1877fc99cc46766 - outLocation: /Users/chase/git/livepeer/livepeer-java workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -33,6 +31,7 @@ workflow: livepeer-studio-api: inputs: - location: https://raw.githubusercontent.com/livepeer/studio/master/packages/api/src/schema/api-schema.yaml + - location: https://raw.githubusercontent.com/livepeer/studio/master/packages/api/src/schema/ai-api-schema.yaml registry: location: registry.speakeasyapi.dev/livepeer/livepeer-studio/livepeer-studio-api targets: diff --git a/README.md b/README.md index cb7a2f0..943778e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,25 @@ applications written in Java. For full documentation and examples, please visit [docs.livepeer.org](https://docs.livepeer.org/sdks/javascript/). + +## Summary + +Livepeer API Reference: Welcome to the Livepeer API reference docs. Here you will find all the +endpoints exposed on the standard Livepeer API, learn how to use them and +what they return. + + + +## Table of Contents + +* [SDK Installation](#sdk-installation) +* [SDK Example Usage](#sdk-example-usage) +* [Available Resources and Operations](#available-resources-and-operations) +* [Error Handling](#error-handling) +* [Server Selection](#server-selection) +* [Authentication](#authentication) + + ## SDK Installation @@ -18,7 +37,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'studio.livepeer:livepeer:0.5.0' +implementation 'studio.livepeer:livepeer:0.6.0' ``` Maven: @@ -26,7 +45,7 @@ Maven: studio.livepeer livepeer - 0.5.0 + 0.6.0 ``` @@ -71,18 +90,17 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewStreamPayload req = NewStreamPayload.builder() + NewStreamPayload req = NewStreamPayload.builder() .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") @@ -142,21 +160,13 @@ public class Application { .build()) .build(); - CreateStreamResponse res = sdk.stream().create() + CreateStreamResponse res = sdk.stream().create() .request(req) .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } ``` @@ -165,38 +175,16 @@ public class Application { ## Available Resources and Operations -### [stream()](docs/sdks/stream/README.md) +
+Available methods -* [create](docs/sdks/stream/README.md#create) - Create a stream -* [getAll](docs/sdks/stream/README.md#getall) - Retrieve streams -* [get](docs/sdks/stream/README.md#get) - Retrieve a stream -* [update](docs/sdks/stream/README.md#update) - Update a stream -* [delete](docs/sdks/stream/README.md#delete) - Delete a stream -* [terminate](docs/sdks/stream/README.md#terminate) - Terminates a live stream -* [startPull](docs/sdks/stream/README.md#startpull) - Start ingest for a pull stream -* [createClip](docs/sdks/stream/README.md#createclip) - Create a clip -* [getClips](docs/sdks/stream/README.md#getclips) - Retrieve clips of a livestream -* [addMultistreamTarget](docs/sdks/stream/README.md#addmultistreamtarget) - Add a multistream target -* [removeMultistreamTarget](docs/sdks/stream/README.md#removemultistreamtarget) - Remove a multistream target - -### [multistream()](docs/sdks/multistream/README.md) - -* [getAll](docs/sdks/multistream/README.md#getall) - Retrieve Multistream Targets -* [create](docs/sdks/multistream/README.md#create) - Create a multistream target -* [get](docs/sdks/multistream/README.md#get) - Retrieve a multistream target -* [update](docs/sdks/multistream/README.md#update) - Update Multistream Target -* [delete](docs/sdks/multistream/README.md#delete) - Delete a multistream target - -### [webhook()](docs/sdks/webhook/README.md) +### [accessControl()](docs/sdks/accesscontrol/README.md) -* [getAll](docs/sdks/webhook/README.md#getall) - Retrieve a Webhook -* [create](docs/sdks/webhook/README.md#create) - Create a webhook -* [get](docs/sdks/webhook/README.md#get) - Retrieve a webhook -* [update](docs/sdks/webhook/README.md#update) - Update a webhook -* [delete](docs/sdks/webhook/README.md#delete) - Delete a webhook -* [getLogs](docs/sdks/webhook/README.md#getlogs) - Retrieve webhook logs -* [getLog](docs/sdks/webhook/README.md#getlog) - Retrieve a webhook log -* [resendLog](docs/sdks/webhook/README.md#resendlog) - Resend a webhook +* [create](docs/sdks/accesscontrol/README.md#create) - Create a signing key +* [getAll](docs/sdks/accesscontrol/README.md#getall) - Retrieves signing keys +* [delete](docs/sdks/accesscontrol/README.md#delete) - Delete Signing Key +* [get](docs/sdks/accesscontrol/README.md#get) - Retrieves a signing key +* [update](docs/sdks/accesscontrol/README.md#update) - Update a signing key ### [asset()](docs/sdks/asset/README.md) @@ -207,14 +195,28 @@ public class Application { * [update](docs/sdks/asset/README.md#update) - Patch an asset * [delete](docs/sdks/asset/README.md#delete) - Delete an asset -### [session()](docs/sdks/session/README.md) -* [getClips](docs/sdks/session/README.md#getclips) - Retrieve clips of a session -* [getAll](docs/sdks/session/README.md#getall) - Retrieve sessions -* [get](docs/sdks/session/README.md#get) - Retrieve a session -* [getRecorded](docs/sdks/session/README.md#getrecorded) - Retrieve Recorded Sessions +### [metrics()](docs/sdks/metrics/README.md) + +* [getRealtimeViewership](docs/sdks/metrics/README.md#getrealtimeviewership) - Query realtime viewership +* [getViewership](docs/sdks/metrics/README.md#getviewership) - Query viewership metrics +* [getCreatorViewership](docs/sdks/metrics/README.md#getcreatorviewership) - Query creator viewership metrics +* [getPublicViewership](docs/sdks/metrics/README.md#getpublicviewership) - Query public total views metrics +* [getUsage](docs/sdks/metrics/README.md#getusage) - Query usage metrics + +### [multistream()](docs/sdks/multistream/README.md) + +* [getAll](docs/sdks/multistream/README.md#getall) - Retrieve Multistream Targets +* [create](docs/sdks/multistream/README.md#create) - Create a multistream target +* [get](docs/sdks/multistream/README.md#get) - Retrieve a multistream target +* [update](docs/sdks/multistream/README.md#update) - Update Multistream Target +* [delete](docs/sdks/multistream/README.md#delete) - Delete a multistream target + +### [playback()](docs/sdks/playback/README.md) -### [room()](docs/sdks/room/README.md) +* [get](docs/sdks/playback/README.md#get) - Retrieve Playback Info + +### [~~room()~~](docs/sdks/room/README.md) * [~~create~~](docs/sdks/room/README.md#create) - Create a room :warning: **Deprecated** * [~~get~~](docs/sdks/room/README.md#get) - Retrieve a room :warning: **Deprecated** @@ -226,21 +228,26 @@ public class Application { * [~~updateUser~~](docs/sdks/room/README.md#updateuser) - Update a room user :warning: **Deprecated** * [~~deleteUser~~](docs/sdks/room/README.md#deleteuser) - Remove a user from the room :warning: **Deprecated** -### [metrics()](docs/sdks/metrics/README.md) +### [session()](docs/sdks/session/README.md) -* [getRealtimeViewership](docs/sdks/metrics/README.md#getrealtimeviewership) - Query realtime viewership -* [getViewership](docs/sdks/metrics/README.md#getviewership) - Query viewership metrics -* [getCreatorViewership](docs/sdks/metrics/README.md#getcreatorviewership) - Query creator viewership metrics -* [getPublicViewership](docs/sdks/metrics/README.md#getpublicviewership) - Query public total views metrics -* [getUsage](docs/sdks/metrics/README.md#getusage) - Query usage metrics +* [getClips](docs/sdks/session/README.md#getclips) - Retrieve clips of a session +* [getAll](docs/sdks/session/README.md#getall) - Retrieve sessions +* [get](docs/sdks/session/README.md#get) - Retrieve a session +* [getRecorded](docs/sdks/session/README.md#getrecorded) - Retrieve Recorded Sessions -### [accessControl()](docs/sdks/accesscontrol/README.md) +### [stream()](docs/sdks/stream/README.md) -* [create](docs/sdks/accesscontrol/README.md#create) - Create a signing key -* [getAll](docs/sdks/accesscontrol/README.md#getall) - Retrieves signing keys -* [delete](docs/sdks/accesscontrol/README.md#delete) - Delete Signing Key -* [get](docs/sdks/accesscontrol/README.md#get) - Retrieves a signing key -* [update](docs/sdks/accesscontrol/README.md#update) - Update a signing key +* [create](docs/sdks/stream/README.md#create) - Create a stream +* [getAll](docs/sdks/stream/README.md#getall) - Retrieve streams +* [get](docs/sdks/stream/README.md#get) - Retrieve a stream +* [update](docs/sdks/stream/README.md#update) - Update a stream +* [delete](docs/sdks/stream/README.md#delete) - Delete a stream +* [terminate](docs/sdks/stream/README.md#terminate) - Terminates a live stream +* [startPull](docs/sdks/stream/README.md#startpull) - Start ingest for a pull stream +* [createClip](docs/sdks/stream/README.md#createclip) - Create a clip +* [getClips](docs/sdks/stream/README.md#getclips) - Retrieve clips of a livestream +* [addMultistreamTarget](docs/sdks/stream/README.md#addmultistreamtarget) - Add a multistream target +* [removeMultistreamTarget](docs/sdks/stream/README.md#removemultistreamtarget) - Remove a multistream target ### [task()](docs/sdks/task/README.md) @@ -251,20 +258,31 @@ public class Application { * [create](docs/sdks/transcode/README.md#create) - Transcode a video -### [playback()](docs/sdks/playback/README.md) +### [webhook()](docs/sdks/webhook/README.md) -* [get](docs/sdks/playback/README.md#get) - Retrieve Playback Info +* [getAll](docs/sdks/webhook/README.md#getall) - Retrieve a Webhook +* [create](docs/sdks/webhook/README.md#create) - Create a webhook +* [get](docs/sdks/webhook/README.md#get) - Retrieve a webhook +* [update](docs/sdks/webhook/README.md#update) - Update a webhook +* [delete](docs/sdks/webhook/README.md#delete) - Delete a webhook +* [getLogs](docs/sdks/webhook/README.md#getlogs) - Retrieve webhook logs +* [getLog](docs/sdks/webhook/README.md#getlog) - Retrieve a webhook log +* [resendLog](docs/sdks/webhook/README.md#resendlog) - Resend a webhook + +
## Error Handling -Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Exception type. +Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception. + +By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get` method throws the following exceptions: -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | | models/errors/Error | 404 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ### Example @@ -273,35 +291,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; public class Application { - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + public static void main(String[] args) throws Error, Exception { + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetPlaybackInfoResponse res = sdk.playback().get() - .id("") + GetPlaybackInfoResponse res = sdk.playback().get() + .id("") .call(); - if (res.playbackInfo().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.Error e) { - // handle exception - throw e; - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.playbackInfo().isPresent()) { + // handle response } - } } ``` @@ -341,19 +348,18 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .serverIndex(0) .apiKey("") - .build(); + .build(); - NewStreamPayload req = NewStreamPayload.builder() + NewStreamPayload req = NewStreamPayload.builder() .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") @@ -413,21 +419,13 @@ public class Application { .build()) .build(); - CreateStreamResponse res = sdk.stream().create() + CreateStreamResponse res = sdk.stream().create() .request(req) .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } ``` @@ -457,19 +455,18 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .serverURL("https://livepeer.studio/api") .apiKey("") - .build(); + .build(); - NewStreamPayload req = NewStreamPayload.builder() + NewStreamPayload req = NewStreamPayload.builder() .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") @@ -529,21 +526,13 @@ public class Application { .build()) .build(); - CreateStreamResponse res = sdk.stream().create() + CreateStreamResponse res = sdk.stream().create() .request(req) .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } ``` @@ -582,18 +571,17 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewStreamPayload req = NewStreamPayload.builder() + NewStreamPayload req = NewStreamPayload.builder() .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") @@ -653,21 +641,13 @@ public class Application { .build()) .build(); - CreateStreamResponse res = sdk.stream().create() + CreateStreamResponse res = sdk.stream().create() .request(req) .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } ``` diff --git a/RELEASES.md b/RELEASES.md index b1002f1..07ad33b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -46,4 +46,12 @@ Based on: - OpenAPI Doc - Speakeasy CLI 1.377.1 (2.404.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [java v0.5.0] . \ No newline at end of file +- [java v0.5.0] . + +## 2024-10-17 00:10:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.419.0 (2.438.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.6.0] . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 7677927..e4df902 100644 --- a/USAGE.md +++ b/USAGE.md @@ -20,18 +20,17 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewStreamPayload req = NewStreamPayload.builder() + NewStreamPayload req = NewStreamPayload.builder() .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") @@ -91,21 +90,13 @@ public class Application { .build()) .build(); - CreateStreamResponse res = sdk.stream().create() + CreateStreamResponse res = sdk.stream().create() .request(req) .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } ``` diff --git a/build.gradle b/build.gradle index 630190a..38fd2a1 100644 --- a/build.gradle +++ b/build.gradle @@ -61,7 +61,7 @@ tasks.withType(Javadoc) { } group = "studio.livepeer" -version = "0.5.0" +version = "0.6.0" sourcesJar { archiveBaseName = "livepeer" @@ -78,7 +78,7 @@ publishing { maven(MavenPublication) { groupId = 'studio.livepeer' artifactId = 'livepeer' - version = '0.5.0' + version = '0.6.0' from components.java diff --git a/codeSamples.yaml b/codeSamples.yaml index cde5191..2ea5f62 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,6 +3,34 @@ info: title: CodeSamples overlay for java target version: 0.0.0 actions: + - target: $["paths"]["/access-control/signing-key"]["get"] + update: + x-codeSamples: + - lang: java + label: getSigningKeys + source: |- + package hello.world; + + import java.lang.Exception; + import studio.livepeer.livepeer.Livepeer; + import studio.livepeer.livepeer.models.operations.GetSigningKeysResponse; + + public class Application { + + public static void main(String[] args) throws Exception { + + Livepeer sdk = Livepeer.builder() + .apiKey("") + .build(); + + GetSigningKeysResponse res = sdk.accessControl().getAll() + .call(); + + if (res.data().isPresent()) { + // handle response + } + } + } - target: $["paths"]["/access-control/signing-key"]["post"] update: x-codeSamples: @@ -13,349 +41,360 @@ actions: import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - CreateSigningKeyResponse res = sdk.accessControl().create() + CreateSigningKeyResponse res = sdk.accessControl().create() .call(); - if (res.signingKey().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.signingKey().isPresent()) { + // handle response } - } } - - target: $["paths"]["/playback/{id}"]["get"] + - target: $["paths"]["/access-control/signing-key/{keyId}"]["delete"] update: x-codeSamples: - lang: java - label: getPlaybackInfo + label: deleteSigningKey source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; + import studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetPlaybackInfoResponse res = sdk.playback().get() - .id("") + DeleteSigningKeyResponse res = sdk.accessControl().delete() + .keyId("") .call(); - if (res.playbackInfo().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.Error e) { - // handle exception - throw e; - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/stream/{id}"]["delete"] + - target: $["paths"]["/access-control/signing-key/{keyId}"]["get"] update: x-codeSamples: - lang: java - label: deleteStream + label: getSigningKey source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.DeleteStreamResponse; + import studio.livepeer.livepeer.models.operations.GetSigningKeyResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteStreamResponse res = sdk.stream().delete() - .id("") + GetSigningKeyResponse res = sdk.accessControl().get() + .keyId("") .call(); + if (res.signingKey().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } + } + } + - target: $["paths"]["/access-control/signing-key/{keyId}"]["patch"] + update: + x-codeSamples: + - lang: java + label: updateSigningKey + source: |- + package hello.world; + + import java.lang.Exception; + import studio.livepeer.livepeer.Livepeer; + import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody; + import studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse; + + public class Application { + + public static void main(String[] args) throws Exception { + Livepeer sdk = Livepeer.builder() + .apiKey("") + .build(); + + UpdateSigningKeyResponse res = sdk.accessControl().update() + .keyId("") + .requestBody(UpdateSigningKeyRequestBody.builder() + .build()) + .call(); + + // handle response } } - - target: $["paths"]["/multistream/target/{id}"]["get"] + - target: $["paths"]["/asset"]["get"] update: x-codeSamples: - lang: java - label: getMultistreamTarget + label: getAssets source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse; + import studio.livepeer.livepeer.models.operations.GetAssetsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetMultistreamTargetResponse res = sdk.multistream().get() - .id("") + GetAssetsResponse res = sdk.asset().getAll() .call(); - if (res.multistreamTarget().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/webhook"]["post"] + - target: $["paths"]["/asset/request-upload"]["post"] update: x-codeSamples: - lang: java - label: createWebhook + label: requestUpload source: |- package hello.world; import java.lang.Exception; import java.util.List; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.Events; - import studio.livepeer.livepeer.models.components.WebhookInput; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.CreateWebhookResponse; + import studio.livepeer.livepeer.models.components.NewAssetPayload; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.operations.RequestUploadResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - WebhookInput req = WebhookInput.builder() - .name("test_webhook") - .url("https://my-service.com/webhook") - .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .events(List.of( - Events.STREAM_STARTED, - Events.STREAM_IDLE)) - .sharedSecret("my-secret") - .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") + NewAssetPayload req = NewAssetPayload.builder() + .name("filename.mp4") + .staticMp4(true) + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) + .build()) + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) + .width(1280L) + .name("720p") + .height(720L) + .quality(23L) + .fps(30L) + .fpsDen(1L) + .gop("2") + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) + .build())) .build(); - CreateWebhookResponse res = sdk.webhook().create() + RequestUploadResponse res = sdk.asset().create() .request(req) .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/asset"]["get"] + - target: $["paths"]["/asset/upload/url"]["post"] update: x-codeSamples: - lang: java - label: getAssets + label: uploadAsset source: |- package hello.world; import java.lang.Exception; + import java.util.List; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetAssetsResponse; + import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.operations.UploadAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") + .build(); + + NewAssetFromUrlPayload req = NewAssetFromUrlPayload.builder() + .name("filename.mp4") + .url("https://s3.amazonaws.com/my-bucket/path/filename.mp4") + .staticMp4(true) + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) + .build()) + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) + .width(1280L) + .name("720p") + .height(720L) + .quality(23L) + .fps(30L) + .fpsDen(1L) + .gop("2") + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) + .build())) .build(); - GetAssetsResponse res = sdk.asset().getAll() + UploadAssetResponse res = sdk.asset().createViaUrl() + .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.twoHundredApplicationJsonData().isPresent()) { + // handle response } - } } - - target: $["paths"]["/session/{id}/clips"]["get"] + - target: $["paths"]["/asset/{assetId}"]["delete"] update: x-codeSamples: - lang: java - label: getSessionClips + label: deleteAsset source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetSessionClipsResponse; + import studio.livepeer.livepeer.models.operations.DeleteAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetSessionClipsResponse res = sdk.session().getClips() - .id("") + DeleteAssetResponse res = sdk.asset().delete() + .assetId("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/stream/{id}/clips"]["get"] + - target: $["paths"]["/asset/{assetId}"]["get"] update: x-codeSamples: - lang: java - label: getClips + label: getAsset source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetClipsResponse; + import studio.livepeer.livepeer.models.operations.GetAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetClipsResponse res = sdk.stream().getClips() - .id("") + GetAssetResponse res = sdk.asset().get() + .assetId("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.asset().isPresent()) { + // handle response } - } } - - target: $["paths"]["/task/{taskId}"]["get"] + - target: $["paths"]["/asset/{assetId}"]["patch"] update: x-codeSamples: - lang: java - label: getTask + label: updateAsset source: |- package hello.world; import java.lang.Exception; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetTaskResponse; + import studio.livepeer.livepeer.models.components.AssetPatchPayload; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.operations.UpdateAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetTaskResponse res = sdk.task().get() - .taskId("") + UpdateAssetResponse res = sdk.asset().update() + .assetId("") + .assetPatchPayload(AssetPatchPayload.builder() + .name("filename.mp4") + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) + .build()) + .build()) .call(); - if (res.task().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.asset().isPresent()) { + // handle response } - } } - target: $["paths"]["/clip"]["post"] @@ -369,18 +408,17 @@ actions: import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.ClipPayload; - import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateClipResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - ClipPayload req = ClipPayload.builder() + ClipPayload req = ClipPayload.builder() .playbackId("eaw4nk06ts2d0mzb") .startTime(1587667174725d) .endTime(1587667174725d) @@ -388,108 +426,80 @@ actions: .sessionId("de7818e7-610a-4057-8f6f-b785dc1e6f88") .build(); - CreateClipResponse res = sdk.stream().createClip() + CreateClipResponse res = sdk.stream().createClip() .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/webhook/{id}"]["put"] + - target: $["paths"]["/data/usage/query"]["get"] update: x-codeSamples: - lang: java - label: updateWebhook + label: getUsageMetrics source: |- package hello.world; import java.lang.Exception; - import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.Events; - import studio.livepeer.livepeer.models.components.WebhookInput; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.UpdateWebhookResponse; + import studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest; + import studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") + .build(); + + GetUsageMetricsRequest req = GetUsageMetricsRequest.builder() .build(); - UpdateWebhookResponse res = sdk.webhook().update() - .id("") - .webhook(WebhookInput.builder() - .name("test_webhook") - .url("https://my-service.com/webhook") - .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .events(List.of( - Events.STREAM_STARTED, - Events.STREAM_IDLE)) - .sharedSecret("my-secret") - .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") - .build()) + GetUsageMetricsResponse res = sdk.metrics().getUsage() + .request(req) .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.usageMetric().isPresent()) { + // handle response } - } } - - target: $["paths"]["/room/{id}/egress"]["delete"] + - target: $["paths"]["/data/views/now"]["get"] update: x-codeSamples: - lang: java - label: stopRoomEgress + label: getRealtimeViewershipNow source: |- package hello.world; import java.lang.Exception; + import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.StopRoomEgressResponse; + import studio.livepeer.livepeer.models.operations.BreakdownBy; + import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - StopRoomEgressResponse res = sdk.room().stopEgress() - .id("") + GetRealtimeViewershipNowResponse res = sdk.metrics().getRealtimeViewership() + .playbackId("") + .creatorId("") + .breakdownBy(List.of( + BreakdownBy.PLAYBACK_ID)) .call(); + if (res.data().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - target: $["paths"]["/data/views/query"]["get"] @@ -502,479 +512,390 @@ actions: import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest; import studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetViewershipMetricsRequest req = GetViewershipMetricsRequest.builder() + GetViewershipMetricsRequest req = GetViewershipMetricsRequest.builder() .build(); - GetViewershipMetricsResponse res = sdk.metrics().getViewership() + GetViewershipMetricsResponse res = sdk.metrics().getViewership() .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/access-control/signing-key"]["get"] + - target: $["paths"]["/data/views/query/creator"]["get"] update: x-codeSamples: - lang: java - label: getSigningKeys + label: getCreatorViewershipMetrics source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetSigningKeysResponse; + import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest; + import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") + .build(); + + GetCreatorViewershipMetricsRequest req = GetCreatorViewershipMetricsRequest.builder() .build(); - GetSigningKeysResponse res = sdk.accessControl().getAll() + GetCreatorViewershipMetricsResponse res = sdk.metrics().getCreatorViewership() + .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/stream/{id}/create-multistream-target"]["post"] + - target: $["paths"]["/data/views/query/total/{playbackId}"]["get"] update: x-codeSamples: - lang: java - label: addMultistreamTarget + label: getPublicViewershipMetrics source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.TargetAddPayload; - import studio.livepeer.livepeer.models.components.TargetAddPayloadSpec; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse; + import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - AddMultistreamTargetResponse res = sdk.stream().addMultistreamTarget() - .id("") - .targetAddPayload(TargetAddPayload.builder() - .profile("720p0") - .videoOnly(false) - .id("PUSH123") - .spec(TargetAddPayloadSpec.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .name("My target") - .build()) - .build()) + GetPublicViewershipMetricsResponse res = sdk.metrics().getPublicViewership() + .playbackId("") .call(); + if (res.data().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - - target: $["paths"]["/room"]["post"] + - target: $["paths"]["/multistream/target"]["get"] update: x-codeSamples: - lang: java - label: createRoom + label: getMultistreamTargets source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.CreateRoomResponse; + import studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - CreateRoomResponse res = sdk.room().create() + GetMultistreamTargetsResponse res = sdk.multistream().getAll() .call(); - if (res.createRoomResponse().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/room/{id}"]["get"] + - target: $["paths"]["/multistream/target"]["post"] update: x-codeSamples: - lang: java - label: getRoom + label: createMultistreamTarget source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetRoomResponse; + import studio.livepeer.livepeer.models.components.MultistreamTargetInput; + import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") + .build(); + + MultistreamTargetInput req = MultistreamTargetInput.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") .build(); - GetRoomResponse res = sdk.room().get() - .id("") + CreateMultistreamTargetResponse res = sdk.multistream().create() + .request(req) .call(); - if (res.room().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.multistreamTarget().isPresent()) { + // handle response } + } + } + - target: $["paths"]["/multistream/target/{id}"]["delete"] + update: + x-codeSamples: + - lang: java + label: deleteMultistreamTarget + source: |- + package hello.world; + + import java.lang.Exception; + import studio.livepeer.livepeer.Livepeer; + import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse; + + public class Application { + + public static void main(String[] args) throws Exception { + + Livepeer sdk = Livepeer.builder() + .apiKey("") + .build(); + + DeleteMultistreamTargetResponse res = sdk.multistream().delete() + .id("") + .call(); + // handle response } } - - target: $["paths"]["/room/{id}"]["delete"] + - target: $["paths"]["/multistream/target/{id}"]["get"] update: x-codeSamples: - lang: java - label: deleteRoom + label: getMultistreamTarget source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.DeleteRoomResponse; + import studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteRoomResponse res = sdk.room().delete() - .id("") + GetMultistreamTargetResponse res = sdk.multistream().get() + .id("") .call(); + if (res.multistreamTarget().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - - target: $["paths"]["/room/{id}/user/{userId}"]["get"] + - target: $["paths"]["/multistream/target/{id}"]["patch"] update: x-codeSamples: - lang: java - label: getRoomUser + label: updateMultistreamTarget source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetRoomUserResponse; + import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; + import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetRoomUserResponse res = sdk.room().getUser() - .id("") - .userId("") + UpdateMultistreamTargetResponse res = sdk.multistream().update() + .id("") + .multistreamTargetPatchPayload(MultistreamTargetPatchPayload.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") + .build()) .call(); - if (res.getRoomUserResponse().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/webhook"]["get"] + - target: $["paths"]["/playback/{id}"]["get"] update: x-codeSamples: - lang: java - label: getWebhooks + label: getPlaybackInfo source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetWebhooksResponse; + import studio.livepeer.livepeer.models.errors.Error; + import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; public class Application { - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + public static void main(String[] args) throws Error, Exception { + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetWebhooksResponse res = sdk.webhook().getAll() + GetPlaybackInfoResponse res = sdk.playback().get() + .id("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.playbackInfo().isPresent()) { + // handle response } - } } - - target: $["paths"]["/webhook/{id}"]["get"] + - target: $["paths"]["/session"]["get"] update: x-codeSamples: - lang: java - label: getWebhook + label: getSessions source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetWebhookResponse; + import studio.livepeer.livepeer.models.operations.GetSessionsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetWebhookResponse res = sdk.webhook().get() - .id("") + GetSessionsResponse res = sdk.session().getAll() .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/room/{id}/user"]["post"] + - target: $["paths"]["/session/{id}"]["get"] update: x-codeSamples: - lang: java - label: createRoomUser + label: getSession source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.RoomUserPayload; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.CreateRoomUserResponse; + import studio.livepeer.livepeer.models.operations.GetSessionResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - CreateRoomUserResponse res = sdk.room().createUser() - .id("") - .roomUserPayload(RoomUserPayload.builder() - .name("name") - .canPublish(true) - .canPublishData(true) - .build()) + GetSessionResponse res = sdk.session().get() + .id("") .call(); - if (res.roomUserResponse().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.session().isPresent()) { + // handle response } - } } - - target: $["paths"]["/multistream/target"]["post"] + - target: $["paths"]["/session/{id}/clips"]["get"] update: x-codeSamples: - lang: java - label: createMultistreamTarget + label: getSessionClips source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.MultistreamTargetInput; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse; + import studio.livepeer.livepeer.models.operations.GetSessionClipsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - MultistreamTargetInput req = MultistreamTargetInput.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .build(); + Livepeer sdk = Livepeer.builder() + .apiKey("") + .build(); - CreateMultistreamTargetResponse res = sdk.multistream().create() - .request(req) + GetSessionClipsResponse res = sdk.session().getClips() + .id("") .call(); - if (res.multistreamTarget().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/multistream/target/{id}"]["patch"] + - target: $["paths"]["/stream"]["get"] update: x-codeSamples: - lang: java - label: updateMultistreamTarget + label: getStreams source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse; + import studio.livepeer.livepeer.models.operations.GetStreamsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateMultistreamTargetResponse res = sdk.multistream().update() - .id("") - .multistreamTargetPatchPayload(MultistreamTargetPatchPayload.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .build()) + GetStreamsResponse res = sdk.stream().getAll() + .streamsonly("") .call(); + if (res.data().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - - target: $["paths"]["/asset/request-upload"]["post"] + - target: $["paths"]["/stream"]["post"] update: x-codeSamples: - lang: java - label: requestUpload + label: createStream source: |- package hello.world; @@ -982,26 +903,41 @@ actions: import java.util.List; import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.NewAssetPayload; + import studio.livepeer.livepeer.models.components.FfmpegProfile; + import studio.livepeer.livepeer.models.components.Location; + import studio.livepeer.livepeer.models.components.Multistream; + import studio.livepeer.livepeer.models.components.NewStreamPayload; + import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.Profile; + import studio.livepeer.livepeer.models.components.Pull; + import studio.livepeer.livepeer.models.components.Target; + import studio.livepeer.livepeer.models.components.TargetSpec; import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.RequestUploadResponse; + import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewAssetPayload req = NewAssetPayload.builder() - .name("filename.mp4") - .staticMp4(true) + NewStreamPayload req = NewStreamPayload.builder() + .name("test_stream") + .pull(Pull.builder() + .source("https://myservice.com/live/stream.flv") + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) + .location(Location.builder() + .lat(39.739d) + .lon(-104.988d) + .build()) + .build()) .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") @@ -1010,664 +946,148 @@ actions: .refreshInterval(600d) .build()) .profiles(List.of( - TranscodeProfile.builder() - .bitrate(3000000L) + FfmpegProfile.builder() .width(1280L) .name("720p") .height(720L) - .quality(23L) + .bitrate(3000000L) .fps(30L) .fpsDen(1L) + .quality(23L) .gop("2") - .profile(TranscodeProfileProfile.H264_BASELINE) - .encoder(TranscodeProfileEncoder.H264) + .profile(Profile.H264_BASELINE) .build())) + .record(false) + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) + .width(1280L) + .name("720p") + .height(720L) + .quality(23L) + .fps(30L) + .fpsDen(1L) + .gop("2") + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) + .build())) + .build()) + .multistream(Multistream.builder() + .targets(List.of( + Target.builder() + .profile("720p0") + .videoOnly(false) + .id("PUSH123") + .spec(TargetSpec.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") + .name("My target") + .build()) + .build())) + .build()) .build(); - RequestUploadResponse res = sdk.asset().create() + CreateStreamResponse res = sdk.stream().create() .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } - - target: $["paths"]["/room/{id}/user/{userId}"]["put"] + - target: $["paths"]["/stream/{id}"]["delete"] update: x-codeSamples: - lang: java - label: updateRoomUser + label: deleteStream source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse; + import studio.livepeer.livepeer.models.operations.DeleteStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateRoomUserResponse res = sdk.room().updateUser() - .id("") - .userId("") - .roomUserUpdatePayload(RoomUserUpdatePayload.builder() - .canPublish(true) - .canPublishData(true) - .build()) + DeleteStreamResponse res = sdk.stream().delete() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/data/views/query/total/{playbackId}"]["get"] + - target: $["paths"]["/stream/{id}"]["get"] update: x-codeSamples: - lang: java - label: getPublicViewershipMetrics + label: getStream source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse; + import studio.livepeer.livepeer.models.operations.GetStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetPublicViewershipMetricsResponse res = sdk.metrics().getPublicViewership() - .playbackId("") + GetStreamResponse res = sdk.stream().get() + .id("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } - - target: $["paths"]["/stream/{id}/multistream/{targetId}"]["delete"] + - target: $["paths"]["/stream/{id}"]["patch"] update: x-codeSamples: - lang: java - label: removeMultistreamTarget + label: updateStream source: |- package hello.world; import java.lang.Exception; + import java.util.List; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse; + import studio.livepeer.livepeer.models.components.FfmpegProfile; + import studio.livepeer.livepeer.models.components.Multistream; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.Profile; + import studio.livepeer.livepeer.models.components.RecordingSpec; + import studio.livepeer.livepeer.models.components.StreamPatchPayload; + import studio.livepeer.livepeer.models.components.Target; + import studio.livepeer.livepeer.models.components.TargetSpec; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.operations.UpdateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - RemoveMultistreamTargetResponse res = sdk.stream().removeMultistreamTarget() - .id("") - .targetId("") - .call(); - - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/webhook/{id}"]["delete"] - update: - x-codeSamples: - - lang: java - label: deleteWebhook - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.DeleteWebhookResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - DeleteWebhookResponse res = sdk.webhook().delete() - .id("") - .call(); - - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/room/{id}/user/{userId}"]["delete"] - update: - x-codeSamples: - - lang: java - label: deleteRoomUser - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - DeleteRoomUserResponse res = sdk.room().deleteUser() - .id("") - .userId("") - .call(); - - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/data/views/now"]["get"] - update: - x-codeSamples: - - lang: java - label: getRealtimeViewershipNow - source: |- - package hello.world; - - import java.lang.Exception; - import java.util.List; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.BreakdownBy; - import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - GetRealtimeViewershipNowResponse res = sdk.metrics().getRealtimeViewership() - .playbackId("") - .creatorId("") - .breakdownBy(List.of( - BreakdownBy.PLAYBACK_ID)) - .call(); - - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/transcode"]["post"] - update: - x-codeSamples: - - lang: java - label: transcodeVideo - source: |- - package hello.world; - - import java.lang.Exception; - import java.util.List; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.Fmp4; - import studio.livepeer.livepeer.models.components.Hls; - import studio.livepeer.livepeer.models.components.Input1; - import studio.livepeer.livepeer.models.components.Input; - import studio.livepeer.livepeer.models.components.Mp4; - import studio.livepeer.livepeer.models.components.Outputs; - import studio.livepeer.livepeer.models.components.Storage1; - import studio.livepeer.livepeer.models.components.StorageCredentials; - import studio.livepeer.livepeer.models.components.StorageType; - import studio.livepeer.livepeer.models.components.TranscodePayload; - import studio.livepeer.livepeer.models.components.TranscodePayloadStorage; - import studio.livepeer.livepeer.models.components.TranscodeProfile; - import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; - import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.TranscodeVideoResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - TranscodePayload req = TranscodePayload.builder() - .input(Input.of(Input1.builder() - .url("https://s3.amazonaws.com/bucket/file.mp4") - .build())) - .storage(TranscodePayloadStorage.of(Storage1.builder() - .type(StorageType.S3) - .endpoint("https://gateway.storjshare.io") - .bucket("outputbucket") - .credentials(StorageCredentials.builder() - .accessKeyId("AKIAIOSFODNN7EXAMPLE") - .secretAccessKey("wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY") - .build()) - .build())) - .outputs(Outputs.builder() - .hls(Hls.builder() - .path("/samplevideo/hls") - .build()) - .mp4(Mp4.builder() - .path("/samplevideo/mp4") - .build()) - .fmp4(Fmp4.builder() - .path("/samplevideo/fmp4") - .build()) - .build()) - .profiles(List.of( - TranscodeProfile.builder() - .bitrate(3000000L) - .width(1280L) - .name("720p") - .height(720L) - .quality(23L) - .fps(30L) - .fpsDen(1L) - .gop("2") - .profile(TranscodeProfileProfile.H264_BASELINE) - .encoder(TranscodeProfileEncoder.H264) - .build())) - .build(); - - TranscodeVideoResponse res = sdk.transcode().create() - .request(req) - .call(); - - if (res.task().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/webhook/{id}/log"]["get"] - update: - x-codeSamples: - - lang: java - label: getWebhookLogs - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - GetWebhookLogsResponse res = sdk.webhook().getLogs() - .id("") - .call(); - - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/asset/upload/url"]["post"] - update: - x-codeSamples: - - lang: java - label: uploadAsset - source: |- - package hello.world; - - import java.lang.Exception; - import java.util.List; - import java.util.Map; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; - import studio.livepeer.livepeer.models.components.PlaybackPolicy; - import studio.livepeer.livepeer.models.components.TranscodeProfile; - import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; - import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; - import studio.livepeer.livepeer.models.components.Type; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.UploadAssetResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - NewAssetFromUrlPayload req = NewAssetFromUrlPayload.builder() - .name("filename.mp4") - .url("https://s3.amazonaws.com/my-bucket/path/filename.mp4") - .staticMp4(true) - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(Map.ofEntries( - Map.entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) - .build()) - .profiles(List.of( - TranscodeProfile.builder() - .bitrate(3000000L) - .width(1280L) - .name("720p") - .height(720L) - .quality(23L) - .fps(30L) - .fpsDen(1L) - .gop("2") - .profile(TranscodeProfileProfile.H264_BASELINE) - .encoder(TranscodeProfileEncoder.H264) - .build())) - .build(); - - UploadAssetResponse res = sdk.asset().createViaUrl() - .request(req) - .call(); - - if (res.twoHundredApplicationJsonData().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/data/usage/query"]["get"] - update: - x-codeSamples: - - lang: java - label: getUsageMetrics - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest; - import studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - GetUsageMetricsRequest req = GetUsageMetricsRequest.builder() - .build(); - - GetUsageMetricsResponse res = sdk.metrics().getUsage() - .request(req) - .call(); - - if (res.usageMetric().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/access-control/signing-key/{keyId}"]["delete"] - update: - x-codeSamples: - - lang: java - label: deleteSigningKey - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - DeleteSigningKeyResponse res = sdk.accessControl().delete() - .keyId("") - .call(); - - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/stream"]["get"] - update: - x-codeSamples: - - lang: java - label: getStreams - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetStreamsResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - GetStreamsResponse res = sdk.stream().getAll() - .streamsonly("") - .call(); - - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/session"]["get"] - update: - x-codeSamples: - - lang: java - label: getSessions - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetSessionsResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - GetSessionsResponse res = sdk.session().getAll() - .call(); - - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/stream/{id}"]["patch"] - update: - x-codeSamples: - - lang: java - label: updateStream - source: |- - package hello.world; - - import java.lang.Exception; - import java.util.List; - import java.util.Map; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.FfmpegProfile; - import studio.livepeer.livepeer.models.components.Multistream; - import studio.livepeer.livepeer.models.components.PlaybackPolicy; - import studio.livepeer.livepeer.models.components.Profile; - import studio.livepeer.livepeer.models.components.RecordingSpec; - import studio.livepeer.livepeer.models.components.StreamPatchPayload; - import studio.livepeer.livepeer.models.components.Target; - import studio.livepeer.livepeer.models.components.TargetSpec; - import studio.livepeer.livepeer.models.components.TranscodeProfile; - import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; - import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; - import studio.livepeer.livepeer.models.components.Type; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.UpdateStreamResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - - UpdateStreamResponse res = sdk.stream().update() - .id("") + UpdateStreamResponse res = sdk.stream().update() + .id("") .streamPatchPayload(StreamPatchPayload.builder() .record(false) .multistream(Multistream.builder() @@ -1719,789 +1139,583 @@ actions: .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/multistream/target"]["get"] + - target: $["paths"]["/stream/{id}/clips"]["get"] update: x-codeSamples: - lang: java - label: getMultistreamTargets + label: getClips source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse; + import studio.livepeer.livepeer.models.operations.GetClipsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - GetMultistreamTargetsResponse res = sdk.multistream().getAll() - .call(); - - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } - } - - target: $["paths"]["/multistream/target/{id}"]["delete"] - update: - x-codeSamples: - - lang: java - label: deleteMultistreamTarget - source: |- - package hello.world; - - import java.lang.Exception; - import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse; - - public class Application { - - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteMultistreamTargetResponse res = sdk.multistream().delete() - .id("") + GetClipsResponse res = sdk.stream().getClips() + .id("") .call(); + if (res.data().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - - target: $["paths"]["/stream/{id}/terminate"]["delete"] + - target: $["paths"]["/stream/{id}/create-multistream-target"]["post"] update: x-codeSamples: - lang: java - label: terminateStream + label: addMultistreamTarget source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.TerminateStreamResponse; + import studio.livepeer.livepeer.models.components.TargetAddPayload; + import studio.livepeer.livepeer.models.components.TargetAddPayloadSpec; + import studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - TerminateStreamResponse res = sdk.stream().terminate() - .id("") + AddMultistreamTargetResponse res = sdk.stream().addMultistreamTarget() + .id("") + .targetAddPayload(TargetAddPayload.builder() + .profile("720p0") + .videoOnly(false) + .id("PUSH123") + .spec(TargetAddPayloadSpec.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") + .name("My target") + .build()) + .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/data/views/query/creator"]["get"] + - target: $["paths"]["/stream/{id}/multistream/{targetId}"]["delete"] update: x-codeSamples: - lang: java - label: getCreatorViewershipMetrics + label: removeMultistreamTarget source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest; - import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse; + import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() - .apiKey("") - .build(); - GetCreatorViewershipMetricsRequest req = GetCreatorViewershipMetricsRequest.builder() - .build(); + Livepeer sdk = Livepeer.builder() + .apiKey("") + .build(); - GetCreatorViewershipMetricsResponse res = sdk.metrics().getCreatorViewership() - .request(req) + RemoveMultistreamTargetResponse res = sdk.stream().removeMultistreamTarget() + .id("") + .targetId("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/asset/{assetId}"]["delete"] + - target: $["paths"]["/stream/{id}/start-pull"]["post"] update: x-codeSamples: - lang: java - label: deleteAsset + label: startPullStream source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.DeleteAssetResponse; + import studio.livepeer.livepeer.models.operations.StartPullStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteAssetResponse res = sdk.asset().delete() - .assetId("") + StartPullStreamResponse res = sdk.stream().startPull() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/stream/{parentId}/sessions"]["get"] + - target: $["paths"]["/stream/{id}/terminate"]["delete"] update: x-codeSamples: - lang: java - label: getRecordedSessions + label: terminateStream source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse; - import studio.livepeer.livepeer.models.operations.Record; + import studio.livepeer.livepeer.models.operations.TerminateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetRecordedSessionsResponse res = sdk.session().getRecorded() - .parentId("") - .record(Record.of(true)) + TerminateStreamResponse res = sdk.stream().terminate() + .id("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } - - target: $["paths"]["/room/{id}/egress"]["post"] + - target: $["paths"]["/stream/{parentId}/sessions"]["get"] update: x-codeSamples: - lang: java - label: startRoomEgress + label: getRecordedSessions source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.RoomEgressPayload; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.StartRoomEgressResponse; + import studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse; + import studio.livepeer.livepeer.models.operations.Record; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - StartRoomEgressResponse res = sdk.room().startEgress() - .id("") - .roomEgressPayload(RoomEgressPayload.builder() - .streamId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .build()) + GetRecordedSessionsResponse res = sdk.session().getRecorded() + .parentId("") + .record(Record.of(true)) .call(); + if (res.data().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - - target: $["paths"]["/stream/{id}/start-pull"]["post"] + - target: $["paths"]["/task"]["get"] update: x-codeSamples: - lang: java - label: startPullStream + label: getTasks source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.StartPullStreamResponse; + import studio.livepeer.livepeer.models.operations.GetTasksResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - StartPullStreamResponse res = sdk.stream().startPull() - .id("") + GetTasksResponse res = sdk.task().getAll() .call(); + if (res.data().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - - target: $["paths"]["/webhook/{id}/log/{logId}/resend"]["post"] + - target: $["paths"]["/task/{taskId}"]["get"] update: x-codeSamples: - lang: java - label: resendWebhook + label: getTask source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.ResendWebhookResponse; + import studio.livepeer.livepeer.models.operations.GetTaskResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - ResendWebhookResponse res = sdk.webhook().resendLog() - .id("") - .logId("") + GetTaskResponse res = sdk.task().get() + .taskId("") .call(); - if (res.webhookLog().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.task().isPresent()) { + // handle response } - } } - - target: $["paths"]["/stream"]["post"] + - target: $["paths"]["/transcode"]["post"] update: x-codeSamples: - lang: java - label: createStream + label: transcodeVideo source: |- package hello.world; import java.lang.Exception; import java.util.List; - import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.FfmpegProfile; - import studio.livepeer.livepeer.models.components.Location; - import studio.livepeer.livepeer.models.components.Multistream; - import studio.livepeer.livepeer.models.components.NewStreamPayload; - import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; - import studio.livepeer.livepeer.models.components.PlaybackPolicy; - import studio.livepeer.livepeer.models.components.Profile; - import studio.livepeer.livepeer.models.components.Pull; - import studio.livepeer.livepeer.models.components.Target; - import studio.livepeer.livepeer.models.components.TargetSpec; + import studio.livepeer.livepeer.models.components.Fmp4; + import studio.livepeer.livepeer.models.components.Hls; + import studio.livepeer.livepeer.models.components.Input1; + import studio.livepeer.livepeer.models.components.Input; + import studio.livepeer.livepeer.models.components.Mp4; + import studio.livepeer.livepeer.models.components.Outputs; + import studio.livepeer.livepeer.models.components.Storage2; + import studio.livepeer.livepeer.models.components.TranscodePayload; + import studio.livepeer.livepeer.models.components.TranscodePayloadStorage; + import studio.livepeer.livepeer.models.components.TranscodePayloadStorageCredentials; + import studio.livepeer.livepeer.models.components.TranscodePayloadStorageType; import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; - import studio.livepeer.livepeer.models.components.Type; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.CreateStreamResponse; + import studio.livepeer.livepeer.models.operations.TranscodeVideoResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewStreamPayload req = NewStreamPayload.builder() - .name("test_stream") - .pull(Pull.builder() - .source("https://myservice.com/live/stream.flv") - .headers(Map.ofEntries( - Map.entry("Authorization", "Bearer 123"))) - .location(Location.builder() - .lat(39.739d) - .lon(-104.988d) + TranscodePayload req = TranscodePayload.builder() + .input(Input.of(Input1.builder() + .url("https://s3.amazonaws.com/bucket/file.mp4") + .build())) + .storage(TranscodePayloadStorage.of(Storage2.builder() + .type(TranscodePayloadStorageType.WEB3_STORAGE) + .credentials(TranscodePayloadStorageCredentials.builder() + .proof("EaJlcm9vdHOAZ3ZlcnNpb24BmgIBcRIg2uxHpcPYSWNtifMKFkPC7IEDvFDCxCd3ADViv0coV7SnYXNYRO2hA0AnblHEW38s3lSlcwaDjPn") + .build()) + .build())) + .outputs(Outputs.builder() + .hls(Hls.builder() + .path("/samplevideo/hls") + .build()) + .mp4(Mp4.builder() + .path("/samplevideo/mp4") + .build()) + .fmp4(Fmp4.builder() + .path("/samplevideo/fmp4") .build()) - .build()) - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(Map.ofEntries( - Map.entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) .build()) .profiles(List.of( - FfmpegProfile.builder() + TranscodeProfile.builder() + .bitrate(3000000L) .width(1280L) .name("720p") .height(720L) - .bitrate(3000000L) + .quality(23L) .fps(30L) .fpsDen(1L) - .quality(23L) .gop("2") - .profile(Profile.H264_BASELINE) + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) .build())) - .record(false) - .recordingSpec(NewStreamPayloadRecordingSpec.builder() - .profiles(List.of( - TranscodeProfile.builder() - .bitrate(3000000L) - .width(1280L) - .name("720p") - .height(720L) - .quality(23L) - .fps(30L) - .fpsDen(1L) - .gop("2") - .profile(TranscodeProfileProfile.H264_BASELINE) - .encoder(TranscodeProfileEncoder.H264) - .build())) - .build()) - .multistream(Multistream.builder() - .targets(List.of( - Target.builder() - .profile("720p0") - .videoOnly(false) - .id("PUSH123") - .spec(TargetSpec.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .name("My target") - .build()) - .build())) - .build()) .build(); - CreateStreamResponse res = sdk.stream().create() + TranscodeVideoResponse res = sdk.transcode().create() .request(req) .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.task().isPresent()) { + // handle response } - } } - - target: $["paths"]["/asset/{assetId}"]["patch"] + - target: $["paths"]["/webhook"]["get"] update: x-codeSamples: - lang: java - label: updateAsset + label: getWebhooks source: |- package hello.world; import java.lang.Exception; - import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.AssetPatchPayload; - import studio.livepeer.livepeer.models.components.PlaybackPolicy; - import studio.livepeer.livepeer.models.components.Type; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.UpdateAssetResponse; + import studio.livepeer.livepeer.models.operations.GetWebhooksResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateAssetResponse res = sdk.asset().update() - .assetId("") - .assetPatchPayload(AssetPatchPayload.builder() - .name("filename.mp4") - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(Map.ofEntries( - Map.entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) - .build()) - .build()) + GetWebhooksResponse res = sdk.webhook().getAll() .call(); - if (res.asset().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/session/{id}"]["get"] + - target: $["paths"]["/webhook"]["post"] update: x-codeSamples: - lang: java - label: getSession + label: createWebhook source: |- package hello.world; import java.lang.Exception; + import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetSessionResponse; + import studio.livepeer.livepeer.models.components.Events; + import studio.livepeer.livepeer.models.components.WebhookInput; + import studio.livepeer.livepeer.models.operations.CreateWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") + .build(); + + WebhookInput req = WebhookInput.builder() + .name("test_webhook") + .url("https://my-service.com/webhook") + .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") + .events(List.of( + Events.STREAM_STARTED, + Events.STREAM_IDLE)) + .sharedSecret("my-secret") + .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") .build(); - GetSessionResponse res = sdk.session().get() - .id("") + CreateWebhookResponse res = sdk.webhook().create() + .request(req) .call(); - if (res.session().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } - - target: $["paths"]["/access-control/signing-key/{keyId}"]["get"] + - target: $["paths"]["/webhook/{id}"]["delete"] update: x-codeSamples: - lang: java - label: getSigningKey + label: deleteWebhook source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetSigningKeyResponse; + import studio.livepeer.livepeer.models.operations.DeleteWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetSigningKeyResponse res = sdk.accessControl().get() - .keyId("") + DeleteWebhookResponse res = sdk.webhook().delete() + .id("") .call(); - if (res.signingKey().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } - - target: $["paths"]["/stream/{id}"]["get"] + - target: $["paths"]["/webhook/{id}"]["get"] update: x-codeSamples: - lang: java - label: getStream + label: getWebhook source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetStreamResponse; + import studio.livepeer.livepeer.models.operations.GetWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetStreamResponse res = sdk.stream().get() - .id("") + GetWebhookResponse res = sdk.webhook().get() + .id("") .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } - - target: $["paths"]["/webhook/{id}/log/{logId}"]["get"] + - target: $["paths"]["/webhook/{id}"]["put"] update: x-codeSamples: - lang: java - label: getWebhookLog + label: updateWebhook source: |- package hello.world; import java.lang.Exception; + import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetWebhookLogResponse; + import studio.livepeer.livepeer.models.components.Events; + import studio.livepeer.livepeer.models.components.WebhookInput; + import studio.livepeer.livepeer.models.operations.UpdateWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetWebhookLogResponse res = sdk.webhook().getLog() - .id("") - .logId("") + UpdateWebhookResponse res = sdk.webhook().update() + .id("") + .webhook(WebhookInput.builder() + .name("test_webhook") + .url("https://my-service.com/webhook") + .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") + .events(List.of( + Events.STREAM_STARTED, + Events.STREAM_IDLE)) + .sharedSecret("my-secret") + .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") + .build()) .call(); - if (res.webhookLog().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } - - target: $["paths"]["/asset/{assetId}"]["get"] + - target: $["paths"]["/webhook/{id}/log"]["get"] update: x-codeSamples: - lang: java - label: getAsset + label: getWebhookLogs source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetAssetResponse; + import studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetAssetResponse res = sdk.asset().get() - .assetId("") + GetWebhookLogsResponse res = sdk.webhook().getLogs() + .id("") .call(); - if (res.asset().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } - - target: $["paths"]["/access-control/signing-key/{keyId}"]["patch"] + - target: $["paths"]["/webhook/{id}/log/{logId}"]["get"] update: x-codeSamples: - lang: java - label: updateSigningKey + label: getWebhookLog source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody; - import studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse; + import studio.livepeer.livepeer.models.operations.GetWebhookLogResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateSigningKeyResponse res = sdk.accessControl().update() - .keyId("") - .requestBody(UpdateSigningKeyRequestBody.builder() - .build()) + GetWebhookLogResponse res = sdk.webhook().getLog() + .id("") + .logId("") .call(); + if (res.webhookLog().isPresent()) { // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; } - } } - - target: $["paths"]["/task"]["get"] + - target: $["paths"]["/webhook/{id}/log/{logId}/resend"]["post"] update: x-codeSamples: - lang: java - label: getTasks + label: resendWebhook source: |- package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.errors.SDKError; - import studio.livepeer.livepeer.models.operations.GetTasksResponse; + import studio.livepeer.livepeer.models.operations.ResendWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetTasksResponse res = sdk.task().getAll() + ResendWebhookResponse res = sdk.webhook().resendLog() + .id("") + .logId("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhookLog().isPresent()) { + // handle response } - } } diff --git a/docs/models/components/Asset.md b/docs/models/components/Asset.md index 0a08693..4c7690c 100644 --- a/docs/models/components/Asset.md +++ b/docs/models/components/Asset.md @@ -10,7 +10,7 @@ | `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | | ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F | | `playbackUrl` | *Optional* | :heavy_minus_sign: | URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). | https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8 | -| `downloadUrl` | *Optional* | :heavy_minus_sign: | The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. | https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video | +| `downloadUrl` | *Optional* | :heavy_minus_sign: | The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. | https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4 | | `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | | `source` | [Source](../../models/components/Source.md) | :heavy_check_mark: | N/A | | | `creatorId` | [Optional](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/components/Encryption.md b/docs/models/components/Encryption.md new file mode 100644 index 0000000..1f7667c --- /dev/null +++ b/docs/models/components/Encryption.md @@ -0,0 +1,8 @@ +# Encryption + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `encryptedKey` | *String* | :heavy_check_mark: | Encryption key used to encrypt the asset. Only writable in the upload asset endpoints and cannot be retrieved back. | \ No newline at end of file diff --git a/docs/models/components/Error.md b/docs/models/components/Error.md new file mode 100644 index 0000000..25b31cc --- /dev/null +++ b/docs/models/components/Error.md @@ -0,0 +1,8 @@ +# Error + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `errors` | List<*String*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/MultistreamTargetInput.md b/docs/models/components/MultistreamTargetInput.md new file mode 100644 index 0000000..89c54f3 --- /dev/null +++ b/docs/models/components/MultistreamTargetInput.md @@ -0,0 +1,10 @@ +# MultistreamTargetInput + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `name` | *Optional* | :heavy_minus_sign: | N/A | | +| `url` | *String* | :heavy_check_mark: | Livepeer-compatible multistream target URL (RTMP(S) or SRT) | rtmps://live.my-service.tv/channel/secretKey | +| `disabled` | *Optional* | :heavy_minus_sign: | If true then this multistream target will not be used for pushing
even if it is configured in a stream object.
| | \ No newline at end of file diff --git a/docs/models/components/RecordingStatus.md b/docs/models/components/RecordingStatus.md index 4235018..5fccebc 100644 --- a/docs/models/components/RecordingStatus.md +++ b/docs/models/components/RecordingStatus.md @@ -10,4 +10,5 @@ The status of the recording process of this stream session. | `WAITING` | waiting | | `READY` | ready | | `FAILED` | failed | +| `DELETED` | deleted | | `NONE` | none | \ No newline at end of file diff --git a/docs/models/components/Target.md b/docs/models/components/Target.md new file mode 100644 index 0000000..a28bb05 --- /dev/null +++ b/docs/models/components/Target.md @@ -0,0 +1,11 @@ +# Target + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `profile` | *String* | :heavy_check_mark: | Name of transcoding profile that should be sent. Use
"source" for pushing source stream data
| 720p0 | +| `videoOnly` | *Optional* | :heavy_minus_sign: | If true, the stream audio will be muted and only silent
video will be pushed to the target.
| false | +| `id` | *Optional* | :heavy_minus_sign: | ID of multistream target object where to push this stream | PUSH123 | +| `spec` | [Optional](../../models/components/TargetSpec.md) | :heavy_minus_sign: | Inline multistream target object. Will automatically
create the target resource to be used by the created
stream.
| | \ No newline at end of file diff --git a/docs/models/components/Task.md b/docs/models/components/Task.md index 31a0363..c1b8b91 100644 --- a/docs/models/components/Task.md +++ b/docs/models/components/Task.md @@ -11,6 +11,7 @@ | `scheduledAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the task was scheduled for
execution (e.g. after file upload finished).
| 1587667174725 | | `inputAssetId` | *Optional* | :heavy_minus_sign: | ID of the input asset | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | | `outputAssetId` | *Optional* | :heavy_minus_sign: | ID of the output asset | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `projectId` | *Optional* | :heavy_minus_sign: | ID of the project | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | | `requesterId` | *Optional* | :heavy_minus_sign: | ID of the requester hash(IP + SALT + PlaybackId) | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | | `params` | [Optional](../../models/components/Params.md) | :heavy_minus_sign: | Parameters of the task | | | `status` | [Optional](../../models/components/TaskStatus.md) | :heavy_minus_sign: | Status of the task | | diff --git a/docs/models/components/WebhookInput.md b/docs/models/components/WebhookInput.md new file mode 100644 index 0000000..01b1089 --- /dev/null +++ b/docs/models/components/WebhookInput.md @@ -0,0 +1,13 @@ +# WebhookInput + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `name` | *String* | :heavy_check_mark: | N/A | test_webhook | +| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `events` | List<[Events](../../models/components/Events.md)> | :heavy_minus_sign: | N/A | [
"stream.started",
"stream.idle"
] | +| `url` | *String* | :heavy_check_mark: | N/A | https://my-service.com/webhook | +| `sharedSecret` | *Optional* | :heavy_minus_sign: | shared secret used to sign the webhook payload | my-secret | +| `streamId` | *Optional* | :heavy_minus_sign: | streamId of the stream on which the webhook is applied | de7818e7-610a-4057-8f6f-b785dc1e6f88 | \ No newline at end of file diff --git a/docs/models/operations/AddMultistreamTargetResponse.md b/docs/models/operations/AddMultistreamTargetResponse.md index 3da8246..64feb86 100644 --- a/docs/models/operations/AddMultistreamTargetResponse.md +++ b/docs/models/operations/AddMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateClipResponse.md b/docs/models/operations/CreateClipResponse.md index c640660..094880e 100644 --- a/docs/models/operations/CreateClipResponse.md +++ b/docs/models/operations/CreateClipResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | [Optional](../../models/operations/CreateClipData.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateMultistreamTargetResponse.md b/docs/models/operations/CreateMultistreamTargetResponse.md index 28ec03b..c713f84 100644 --- a/docs/models/operations/CreateMultistreamTargetResponse.md +++ b/docs/models/operations/CreateMultistreamTargetResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateRoomResponse.md b/docs/models/operations/CreateRoomResponse.md index df87089..bfb590c 100644 --- a/docs/models/operations/CreateRoomResponse.md +++ b/docs/models/operations/CreateRoomResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `createRoomResponse` | [Optional](../../models/components/CreateRoomResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateRoomUserResponse.md b/docs/models/operations/CreateRoomUserResponse.md index 1d41549..fe1799e 100644 --- a/docs/models/operations/CreateRoomUserResponse.md +++ b/docs/models/operations/CreateRoomUserResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `roomUserResponse` | [Optional](../../models/components/RoomUserResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateSigningKeyResponse.md b/docs/models/operations/CreateSigningKeyResponse.md index 327fde0..ba4d820 100644 --- a/docs/models/operations/CreateSigningKeyResponse.md +++ b/docs/models/operations/CreateSigningKeyResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateStreamResponse.md b/docs/models/operations/CreateStreamResponse.md index 2d8e055..c8959a1 100644 --- a/docs/models/operations/CreateStreamResponse.md +++ b/docs/models/operations/CreateStreamResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateWebhookResponse.md b/docs/models/operations/CreateWebhookResponse.md index 83db0cd..b22a386 100644 --- a/docs/models/operations/CreateWebhookResponse.md +++ b/docs/models/operations/CreateWebhookResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteAssetResponse.md b/docs/models/operations/DeleteAssetResponse.md index 9faa387..1975ba2 100644 --- a/docs/models/operations/DeleteAssetResponse.md +++ b/docs/models/operations/DeleteAssetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteMultistreamTargetResponse.md b/docs/models/operations/DeleteMultistreamTargetResponse.md index 97a72d4..08f40f1 100644 --- a/docs/models/operations/DeleteMultistreamTargetResponse.md +++ b/docs/models/operations/DeleteMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteRoomResponse.md b/docs/models/operations/DeleteRoomResponse.md index f86b8a7..7a18f15 100644 --- a/docs/models/operations/DeleteRoomResponse.md +++ b/docs/models/operations/DeleteRoomResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteRoomUserResponse.md b/docs/models/operations/DeleteRoomUserResponse.md index 390d080..0427311 100644 --- a/docs/models/operations/DeleteRoomUserResponse.md +++ b/docs/models/operations/DeleteRoomUserResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteSigningKeyResponse.md b/docs/models/operations/DeleteSigningKeyResponse.md index 9253c43..a9c0cc7 100644 --- a/docs/models/operations/DeleteSigningKeyResponse.md +++ b/docs/models/operations/DeleteSigningKeyResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteStreamResponse.md b/docs/models/operations/DeleteStreamResponse.md index 6e84149..3dcdaf7 100644 --- a/docs/models/operations/DeleteStreamResponse.md +++ b/docs/models/operations/DeleteStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteWebhookResponse.md b/docs/models/operations/DeleteWebhookResponse.md index 4332553..d2bb344 100644 --- a/docs/models/operations/DeleteWebhookResponse.md +++ b/docs/models/operations/DeleteWebhookResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetAssetResponse.md b/docs/models/operations/GetAssetResponse.md index bab0167..d78a316 100644 --- a/docs/models/operations/GetAssetResponse.md +++ b/docs/models/operations/GetAssetResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetAssetsResponse.md b/docs/models/operations/GetAssetsResponse.md index a3e6551..2433498 100644 --- a/docs/models/operations/GetAssetsResponse.md +++ b/docs/models/operations/GetAssetsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetClipsResponse.md b/docs/models/operations/GetClipsResponse.md index 56d4ce2..c7dfbba 100644 --- a/docs/models/operations/GetClipsResponse.md +++ b/docs/models/operations/GetClipsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetCreatorViewershipMetricsResponse.md b/docs/models/operations/GetCreatorViewershipMetricsResponse.md index df05bb2..3f404d0 100644 --- a/docs/models/operations/GetCreatorViewershipMetricsResponse.md +++ b/docs/models/operations/GetCreatorViewershipMetricsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetMultistreamTargetResponse.md b/docs/models/operations/GetMultistreamTargetResponse.md index 51e416c..7e1b575 100644 --- a/docs/models/operations/GetMultistreamTargetResponse.md +++ b/docs/models/operations/GetMultistreamTargetResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetMultistreamTargetsResponse.md b/docs/models/operations/GetMultistreamTargetsResponse.md index ff5c4b8..8cb195c 100644 --- a/docs/models/operations/GetMultistreamTargetsResponse.md +++ b/docs/models/operations/GetMultistreamTargetsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[MultistreamTarget](../../models/components/MultistreamTarget.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetPlaybackInfoResponse.md b/docs/models/operations/GetPlaybackInfoResponse.md index 9b55fe8..3779ec0 100644 --- a/docs/models/operations/GetPlaybackInfoResponse.md +++ b/docs/models/operations/GetPlaybackInfoResponse.md @@ -8,4 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `playbackInfo` | [Optional](../../models/components/PlaybackInfo.md) | :heavy_minus_sign: | Successful response | \ No newline at end of file +| `playbackInfo` | [Optional](../../models/components/PlaybackInfo.md) | :heavy_minus_sign: | Successful response | +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Playback not found | \ No newline at end of file diff --git a/docs/models/operations/GetPublicViewershipMetricsResponse.md b/docs/models/operations/GetPublicViewershipMetricsResponse.md index 3872ebb..04b1303 100644 --- a/docs/models/operations/GetPublicViewershipMetricsResponse.md +++ b/docs/models/operations/GetPublicViewershipMetricsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | [Optional](../../models/operations/GetPublicViewershipMetricsData.md) | :heavy_minus_sign: | A single Metric object with the viewCount and playtimeMins metrics. | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRealtimeViewershipNowResponse.md b/docs/models/operations/GetRealtimeViewershipNowResponse.md index 8e89968..f175d2c 100644 --- a/docs/models/operations/GetRealtimeViewershipNowResponse.md +++ b/docs/models/operations/GetRealtimeViewershipNowResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[RealtimeViewershipMetric](../../models/components/RealtimeViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRecordedSessionsResponse.md b/docs/models/operations/GetRecordedSessionsResponse.md index cce0752..464a633 100644 --- a/docs/models/operations/GetRecordedSessionsResponse.md +++ b/docs/models/operations/GetRecordedSessionsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRoomResponse.md b/docs/models/operations/GetRoomResponse.md index c0d8811..2d1efb9 100644 --- a/docs/models/operations/GetRoomResponse.md +++ b/docs/models/operations/GetRoomResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `room` | [Optional](../../models/components/Room.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRoomUserResponse.md b/docs/models/operations/GetRoomUserResponse.md index 86e160e..eb5edac 100644 --- a/docs/models/operations/GetRoomUserResponse.md +++ b/docs/models/operations/GetRoomUserResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `getRoomUserResponse` | [Optional](../../models/components/GetRoomUserResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSessionClipsResponse.md b/docs/models/operations/GetSessionClipsResponse.md index 954e521..8d13648 100644 --- a/docs/models/operations/GetSessionClipsResponse.md +++ b/docs/models/operations/GetSessionClipsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSessionResponse.md b/docs/models/operations/GetSessionResponse.md index 2a1833e..9b30960 100644 --- a/docs/models/operations/GetSessionResponse.md +++ b/docs/models/operations/GetSessionResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `session` | [Optional](../../models/components/Session.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsResponse.md b/docs/models/operations/GetSessionsResponse.md index 2bce61e..b6c4575 100644 --- a/docs/models/operations/GetSessionsResponse.md +++ b/docs/models/operations/GetSessionsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSigningKeyResponse.md b/docs/models/operations/GetSigningKeyResponse.md index efc8ecc..c97a69c 100644 --- a/docs/models/operations/GetSigningKeyResponse.md +++ b/docs/models/operations/GetSigningKeyResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSigningKeysResponse.md b/docs/models/operations/GetSigningKeysResponse.md index e65fd8e..4c7e5bb 100644 --- a/docs/models/operations/GetSigningKeysResponse.md +++ b/docs/models/operations/GetSigningKeysResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[SigningKey](../../models/components/SigningKey.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetStreamResponse.md b/docs/models/operations/GetStreamResponse.md index ae521bc..d999f0f 100644 --- a/docs/models/operations/GetStreamResponse.md +++ b/docs/models/operations/GetStreamResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetStreamsResponse.md b/docs/models/operations/GetStreamsResponse.md index 1ea0010..f87ca3b 100644 --- a/docs/models/operations/GetStreamsResponse.md +++ b/docs/models/operations/GetStreamsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Stream](../../models/components/Stream.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetTasksResponse.md b/docs/models/operations/GetTasksResponse.md index 72f6c33..e234416 100644 --- a/docs/models/operations/GetTasksResponse.md +++ b/docs/models/operations/GetTasksResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Task](../../models/components/Task.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetUsageMetricsResponse.md b/docs/models/operations/GetUsageMetricsResponse.md index b31e631..eca8bae 100644 --- a/docs/models/operations/GetUsageMetricsResponse.md +++ b/docs/models/operations/GetUsageMetricsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `usageMetric` | [Optional](../../models/components/UsageMetric.md) | :heavy_minus_sign: | A Usage Metric object | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetViewershipMetricsResponse.md b/docs/models/operations/GetViewershipMetricsResponse.md index 762ae90..671c7be 100644 --- a/docs/models/operations/GetViewershipMetricsResponse.md +++ b/docs/models/operations/GetViewershipMetricsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhookLogResponse.md b/docs/models/operations/GetWebhookLogResponse.md index fd44c3e..2350fbb 100644 --- a/docs/models/operations/GetWebhookLogResponse.md +++ b/docs/models/operations/GetWebhookLogResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhookLogsResponse.md b/docs/models/operations/GetWebhookLogsResponse.md index e958c3f..3ec18ec 100644 --- a/docs/models/operations/GetWebhookLogsResponse.md +++ b/docs/models/operations/GetWebhookLogsResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[WebhookLog](../../models/components/WebhookLog.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhookResponse.md b/docs/models/operations/GetWebhookResponse.md index 2f893e0..01d248f 100644 --- a/docs/models/operations/GetWebhookResponse.md +++ b/docs/models/operations/GetWebhookResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhooksResponse.md b/docs/models/operations/GetWebhooksResponse.md index 2968f74..c2653db 100644 --- a/docs/models/operations/GetWebhooksResponse.md +++ b/docs/models/operations/GetWebhooksResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | List<[Webhook](../../models/components/Webhook.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/RemoveMultistreamTargetResponse.md b/docs/models/operations/RemoveMultistreamTargetResponse.md index d142083..842f889 100644 --- a/docs/models/operations/RemoveMultistreamTargetResponse.md +++ b/docs/models/operations/RemoveMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/RequestUploadResponse.md b/docs/models/operations/RequestUploadResponse.md index 9ccb433..22d718c 100644 --- a/docs/models/operations/RequestUploadResponse.md +++ b/docs/models/operations/RequestUploadResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `data` | [Optional](../../models/operations/RequestUploadData.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/ResendWebhookResponse.md b/docs/models/operations/ResendWebhookResponse.md index 9c5d1b6..a0fc549 100644 --- a/docs/models/operations/ResendWebhookResponse.md +++ b/docs/models/operations/ResendWebhookResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/StartPullStreamResponse.md b/docs/models/operations/StartPullStreamResponse.md index 23f62ea..d5435a3 100644 --- a/docs/models/operations/StartPullStreamResponse.md +++ b/docs/models/operations/StartPullStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/StartRoomEgressResponse.md b/docs/models/operations/StartRoomEgressResponse.md index 102814e..54478f8 100644 --- a/docs/models/operations/StartRoomEgressResponse.md +++ b/docs/models/operations/StartRoomEgressResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/StopRoomEgressResponse.md b/docs/models/operations/StopRoomEgressResponse.md index efe3aab..6d0ccae 100644 --- a/docs/models/operations/StopRoomEgressResponse.md +++ b/docs/models/operations/StopRoomEgressResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/TerminateStreamResponse.md b/docs/models/operations/TerminateStreamResponse.md index 42550cc..4335849 100644 --- a/docs/models/operations/TerminateStreamResponse.md +++ b/docs/models/operations/TerminateStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/TranscodeVideoResponse.md b/docs/models/operations/TranscodeVideoResponse.md index 24ccb13..58b6373 100644 --- a/docs/models/operations/TranscodeVideoResponse.md +++ b/docs/models/operations/TranscodeVideoResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `task` | [Optional](../../models/components/Task.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateAssetResponse.md b/docs/models/operations/UpdateAssetResponse.md index dcbc33f..cad2fc1 100644 --- a/docs/models/operations/UpdateAssetResponse.md +++ b/docs/models/operations/UpdateAssetResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateMultistreamTargetResponse.md b/docs/models/operations/UpdateMultistreamTargetResponse.md index e344005..541c7f2 100644 --- a/docs/models/operations/UpdateMultistreamTargetResponse.md +++ b/docs/models/operations/UpdateMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateRoomUserResponse.md b/docs/models/operations/UpdateRoomUserResponse.md index d54cb65..4f13ff7 100644 --- a/docs/models/operations/UpdateRoomUserResponse.md +++ b/docs/models/operations/UpdateRoomUserResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateSigningKeyResponse.md b/docs/models/operations/UpdateSigningKeyResponse.md index 815fe3a..ae35d43 100644 --- a/docs/models/operations/UpdateSigningKeyResponse.md +++ b/docs/models/operations/UpdateSigningKeyResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateStreamResponse.md b/docs/models/operations/UpdateStreamResponse.md index fad3251..fa7f83c 100644 --- a/docs/models/operations/UpdateStreamResponse.md +++ b/docs/models/operations/UpdateStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateWebhookResponse.md b/docs/models/operations/UpdateWebhookResponse.md index 49637c2..77def9b 100644 --- a/docs/models/operations/UpdateWebhookResponse.md +++ b/docs/models/operations/UpdateWebhookResponse.md @@ -9,4 +9,4 @@ | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UploadAssetResponse.md b/docs/models/operations/UploadAssetResponse.md index a0dad73..4f62afa 100644 --- a/docs/models/operations/UploadAssetResponse.md +++ b/docs/models/operations/UploadAssetResponse.md @@ -10,4 +10,4 @@ | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | `twoHundredApplicationJsonData` | [Optional](../../models/operations/UploadAssetData.md) | :heavy_minus_sign: | Upload in progress | | `twoHundredAndOneApplicationJsonData` | [Optional](../../models/operations/UploadAssetDataOutput.md) | :heavy_minus_sign: | Upload started | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | [Optional](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/sdks/accesscontrol/README.md b/docs/sdks/accesscontrol/README.md index 12695c4..ff3ed2f 100644 --- a/docs/sdks/accesscontrol/README.md +++ b/docs/sdks/accesscontrol/README.md @@ -26,31 +26,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - CreateSigningKeyResponse res = sdk.accessControl().create() + CreateSigningKeyResponse res = sdk.accessControl().create() .call(); - if (res.signingKey().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.signingKey().isPresent()) { + // handle response } - } } ``` @@ -61,10 +52,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getAll @@ -77,31 +67,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetSigningKeysResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetSigningKeysResponse res = sdk.accessControl().getAll() + GetSigningKeysResponse res = sdk.accessControl().getAll() .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -112,10 +93,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## delete @@ -128,30 +108,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteSigningKeyResponse res = sdk.accessControl().delete() - .keyId("") + DeleteSigningKeyResponse res = sdk.accessControl().delete() + .keyId("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -168,10 +139,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## get @@ -184,32 +154,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetSigningKeyResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetSigningKeyResponse res = sdk.accessControl().get() - .keyId("") + GetSigningKeyResponse res = sdk.accessControl().get() + .keyId("") .call(); - if (res.signingKey().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.signingKey().isPresent()) { + // handle response } - } } ``` @@ -226,10 +187,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## update @@ -242,33 +202,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody; import studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateSigningKeyResponse res = sdk.accessControl().update() - .keyId("") + UpdateSigningKeyResponse res = sdk.accessControl().update() + .keyId("") .requestBody(UpdateSigningKeyRequestBody.builder() .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -286,6 +237,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/asset/README.md b/docs/sdks/asset/README.md index 27da1d3..ecad9d2 100644 --- a/docs/sdks/asset/README.md +++ b/docs/sdks/asset/README.md @@ -25,31 +25,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetAssetsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetAssetsResponse res = sdk.asset().getAll() + GetAssetsResponse res = sdk.asset().getAll() .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -60,10 +51,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## create @@ -155,18 +145,17 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.RequestUploadResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewAssetPayload req = NewAssetPayload.builder() + NewAssetPayload req = NewAssetPayload.builder() .name("filename.mp4") .staticMp4(true) .playbackPolicy(PlaybackPolicy.builder() @@ -191,21 +180,13 @@ public class Application { .build())) .build(); - RequestUploadResponse res = sdk.asset().create() + RequestUploadResponse res = sdk.asset().create() .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -222,10 +203,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createViaUrl @@ -246,18 +226,17 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.UploadAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewAssetFromUrlPayload req = NewAssetFromUrlPayload.builder() + NewAssetFromUrlPayload req = NewAssetFromUrlPayload.builder() .name("filename.mp4") .url("https://s3.amazonaws.com/my-bucket/path/filename.mp4") .staticMp4(true) @@ -283,21 +262,13 @@ public class Application { .build())) .build(); - UploadAssetResponse res = sdk.asset().createViaUrl() + UploadAssetResponse res = sdk.asset().createViaUrl() .request(req) .call(); - if (res.twoHundredApplicationJsonData().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.twoHundredApplicationJsonData().isPresent()) { + // handle response } - } } ``` @@ -314,10 +285,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## get @@ -330,32 +300,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetAssetResponse res = sdk.asset().get() - .assetId("") + GetAssetResponse res = sdk.asset().get() + .assetId("") .call(); - if (res.asset().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.asset().isPresent()) { + // handle response } - } } ``` @@ -372,10 +333,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## update @@ -392,19 +352,18 @@ import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.AssetPatchPayload; import studio.livepeer.livepeer.models.components.PlaybackPolicy; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.UpdateAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateAssetResponse res = sdk.asset().update() - .assetId("") + UpdateAssetResponse res = sdk.asset().update() + .assetId("") .assetPatchPayload(AssetPatchPayload.builder() .name("filename.mp4") .playbackPolicy(PlaybackPolicy.builder() @@ -417,17 +376,9 @@ public class Application { .build()) .call(); - if (res.asset().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.asset().isPresent()) { + // handle response } - } } ``` @@ -445,10 +396,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## delete @@ -461,30 +411,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteAssetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteAssetResponse res = sdk.asset().delete() - .assetId("") + DeleteAssetResponse res = sdk.asset().delete() + .assetId("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -501,6 +442,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/metrics/README.md b/docs/sdks/metrics/README.md index 16d672c..6c2aef7 100644 --- a/docs/sdks/metrics/README.md +++ b/docs/sdks/metrics/README.md @@ -26,36 +26,27 @@ package hello.world; import java.lang.Exception; import java.util.List; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.BreakdownBy; import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetRealtimeViewershipNowResponse res = sdk.metrics().getRealtimeViewership() - .playbackId("") - .creatorId("") + GetRealtimeViewershipNowResponse res = sdk.metrics().getRealtimeViewership() + .playbackId("") + .creatorId("") .breakdownBy(List.of( BreakdownBy.PLAYBACK_ID)) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -74,10 +65,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getViewership @@ -91,36 +81,27 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest; import studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetViewershipMetricsRequest req = GetViewershipMetricsRequest.builder() + GetViewershipMetricsRequest req = GetViewershipMetricsRequest.builder() .build(); - GetViewershipMetricsResponse res = sdk.metrics().getViewership() + GetViewershipMetricsResponse res = sdk.metrics().getViewership() .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -137,10 +118,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getCreatorViewership @@ -154,36 +134,27 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest; import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetCreatorViewershipMetricsRequest req = GetCreatorViewershipMetricsRequest.builder() + GetCreatorViewershipMetricsRequest req = GetCreatorViewershipMetricsRequest.builder() .build(); - GetCreatorViewershipMetricsResponse res = sdk.metrics().getCreatorViewership() + GetCreatorViewershipMetricsResponse res = sdk.metrics().getCreatorViewership() .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -200,10 +171,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getPublicViewership @@ -219,32 +189,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetPublicViewershipMetricsResponse res = sdk.metrics().getPublicViewership() - .playbackId("") + GetPublicViewershipMetricsResponse res = sdk.metrics().getPublicViewership() + .playbackId("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -261,10 +222,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getUsage @@ -277,36 +237,27 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest; import studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetUsageMetricsRequest req = GetUsageMetricsRequest.builder() + GetUsageMetricsRequest req = GetUsageMetricsRequest.builder() .build(); - GetUsageMetricsResponse res = sdk.metrics().getUsage() + GetUsageMetricsResponse res = sdk.metrics().getUsage() .request(req) .call(); - if (res.usageMetric().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.usageMetric().isPresent()) { + // handle response } - } } ``` @@ -323,6 +274,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/multistream/README.md b/docs/sdks/multistream/README.md index 08093e2..30fe205 100644 --- a/docs/sdks/multistream/README.md +++ b/docs/sdks/multistream/README.md @@ -24,31 +24,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetMultistreamTargetsResponse res = sdk.multistream().getAll() + GetMultistreamTargetsResponse res = sdk.multistream().getAll() .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -59,10 +50,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## create @@ -76,36 +66,27 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.MultistreamTargetInput; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - MultistreamTargetInput req = MultistreamTargetInput.builder() + MultistreamTargetInput req = MultistreamTargetInput.builder() .url("rtmps://live.my-service.tv/channel/secretKey") .build(); - CreateMultistreamTargetResponse res = sdk.multistream().create() + CreateMultistreamTargetResponse res = sdk.multistream().create() .request(req) .call(); - if (res.multistreamTarget().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.multistreamTarget().isPresent()) { + // handle response } - } } ``` @@ -122,10 +103,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## get @@ -138,32 +118,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetMultistreamTargetResponse res = sdk.multistream().get() - .id("") + GetMultistreamTargetResponse res = sdk.multistream().get() + .id("") .call(); - if (res.multistreamTarget().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.multistreamTarget().isPresent()) { + // handle response } - } } ``` @@ -180,10 +151,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## update @@ -197,33 +167,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateMultistreamTargetResponse res = sdk.multistream().update() - .id("") + UpdateMultistreamTargetResponse res = sdk.multistream().update() + .id("") .multistreamTargetPatchPayload(MultistreamTargetPatchPayload.builder() .url("rtmps://live.my-service.tv/channel/secretKey") .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -241,10 +202,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## delete @@ -259,30 +219,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteMultistreamTargetResponse res = sdk.multistream().delete() - .id("") + DeleteMultistreamTargetResponse res = sdk.multistream().delete() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -299,6 +250,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/playback/README.md b/docs/sdks/playback/README.md index f2477d3..90d4f32 100644 --- a/docs/sdks/playback/README.md +++ b/docs/sdks/playback/README.md @@ -20,35 +20,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; public class Application { - public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + public static void main(String[] args) throws Error, Exception { + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetPlaybackInfoResponse res = sdk.playback().get() - .id("") + GetPlaybackInfoResponse res = sdk.playback().get() + .id("") .call(); - if (res.playbackInfo().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.Error e) { - // handle exception - throw e; - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.playbackInfo().isPresent()) { + // handle response } - } } ``` @@ -65,7 +54,7 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | | models/errors/Error | 404 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/room/README.md b/docs/sdks/room/README.md index 1580b9e..b37ce7e 100644 --- a/docs/sdks/room/README.md +++ b/docs/sdks/room/README.md @@ -31,31 +31,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateRoomResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - CreateRoomResponse res = sdk.room().create() + CreateRoomResponse res = sdk.room().create() .call(); - if (res.createRoomResponse().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.createRoomResponse().isPresent()) { + // handle response } - } } ``` @@ -66,10 +57,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~get~~ @@ -84,32 +74,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetRoomResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetRoomResponse res = sdk.room().get() - .id("") + GetRoomResponse res = sdk.room().get() + .id("") .call(); - if (res.room().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.room().isPresent()) { + // handle response } - } } ``` @@ -126,10 +107,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~delete~~ @@ -144,30 +124,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteRoomResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteRoomResponse res = sdk.room().delete() - .id("") + DeleteRoomResponse res = sdk.room().delete() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -184,10 +155,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~startEgress~~ @@ -205,33 +175,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.RoomEgressPayload; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.StartRoomEgressResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - StartRoomEgressResponse res = sdk.room().startEgress() - .id("") + StartRoomEgressResponse res = sdk.room().startEgress() + .id("") .roomEgressPayload(RoomEgressPayload.builder() .streamId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -249,10 +210,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~stopEgress~~ @@ -267,30 +227,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.StopRoomEgressResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - StopRoomEgressResponse res = sdk.room().stopEgress() - .id("") + StopRoomEgressResponse res = sdk.room().stopEgress() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -307,10 +258,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~createUser~~ @@ -329,19 +279,18 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.RoomUserPayload; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateRoomUserResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - CreateRoomUserResponse res = sdk.room().createUser() - .id("") + CreateRoomUserResponse res = sdk.room().createUser() + .id("") .roomUserPayload(RoomUserPayload.builder() .name("name") .canPublish(true) @@ -349,17 +298,9 @@ public class Application { .build()) .call(); - if (res.roomUserResponse().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.roomUserResponse().isPresent()) { + // handle response } - } } ``` @@ -377,10 +318,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~getUser~~ @@ -395,33 +335,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetRoomUserResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetRoomUserResponse res = sdk.room().getUser() - .id("") - .userId("") + GetRoomUserResponse res = sdk.room().getUser() + .id("") + .userId("") .call(); - if (res.getRoomUserResponse().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.getRoomUserResponse().isPresent()) { + // handle response } - } } ``` @@ -439,10 +370,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~updateUser~~ @@ -458,35 +388,26 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateRoomUserResponse res = sdk.room().updateUser() - .id("") - .userId("") + UpdateRoomUserResponse res = sdk.room().updateUser() + .id("") + .userId("") .roomUserUpdatePayload(RoomUserUpdatePayload.builder() .canPublish(true) .canPublishData(true) .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -505,10 +426,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~deleteUser~~ @@ -523,31 +443,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteRoomUserResponse res = sdk.room().deleteUser() - .id("") - .userId("") + DeleteRoomUserResponse res = sdk.room().deleteUser() + .id("") + .userId("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -565,6 +476,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/session/README.md b/docs/sdks/session/README.md index b08c618..913a0b8 100644 --- a/docs/sdks/session/README.md +++ b/docs/sdks/session/README.md @@ -23,32 +23,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetSessionClipsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetSessionClipsResponse res = sdk.session().getClips() - .id("") + GetSessionClipsResponse res = sdk.session().getClips() + .id("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -65,10 +56,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getAll @@ -81,31 +71,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetSessionsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetSessionsResponse res = sdk.session().getAll() + GetSessionsResponse res = sdk.session().getAll() .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -116,10 +97,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## get @@ -132,32 +112,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetSessionResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetSessionResponse res = sdk.session().get() - .id("") + GetSessionResponse res = sdk.session().get() + .id("") .call(); - if (res.session().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.session().isPresent()) { + // handle response } - } } ``` @@ -174,10 +145,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getRecorded @@ -190,34 +160,25 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse; import studio.livepeer.livepeer.models.operations.Record; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetRecordedSessionsResponse res = sdk.session().getRecorded() - .parentId("") + GetRecordedSessionsResponse res = sdk.session().getRecorded() + .parentId("") .record(Record.of(true)) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -235,6 +196,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/stream/README.md b/docs/sdks/stream/README.md index bf313be..3388e1e 100644 --- a/docs/sdks/stream/README.md +++ b/docs/sdks/stream/README.md @@ -59,18 +59,17 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - NewStreamPayload req = NewStreamPayload.builder() + NewStreamPayload req = NewStreamPayload.builder() .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") @@ -130,21 +129,13 @@ public class Application { .build()) .build(); - CreateStreamResponse res = sdk.stream().create() + CreateStreamResponse res = sdk.stream().create() .request(req) .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } ``` @@ -161,10 +152,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getAll @@ -177,32 +167,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetStreamsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetStreamsResponse res = sdk.stream().getAll() + GetStreamsResponse res = sdk.stream().getAll() .streamsonly("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -219,10 +200,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## get @@ -235,32 +215,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetStreamResponse res = sdk.stream().get() - .id("") + GetStreamResponse res = sdk.stream().get() + .id("") .call(); - if (res.stream().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.stream().isPresent()) { + // handle response } - } } ``` @@ -277,10 +248,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## update @@ -307,19 +277,18 @@ import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; import studio.livepeer.livepeer.models.components.Type; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.UpdateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateStreamResponse res = sdk.stream().update() - .id("") + UpdateStreamResponse res = sdk.stream().update() + .id("") .streamPatchPayload(StreamPatchPayload.builder() .record(false) .multistream(Multistream.builder() @@ -371,15 +340,7 @@ public class Application { .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -397,10 +358,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## delete @@ -417,30 +377,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteStreamResponse res = sdk.stream().delete() - .id("") + DeleteStreamResponse res = sdk.stream().delete() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -457,10 +408,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## terminate @@ -481,30 +431,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.TerminateStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - TerminateStreamResponse res = sdk.stream().terminate() - .id("") + TerminateStreamResponse res = sdk.stream().terminate() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -521,10 +462,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## startPull @@ -544,30 +484,21 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.StartPullStreamResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - StartPullStreamResponse res = sdk.stream().startPull() - .id("") + StartPullStreamResponse res = sdk.stream().startPull() + .id("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -584,10 +515,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createClip @@ -601,18 +531,17 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.ClipPayload; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateClipResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - ClipPayload req = ClipPayload.builder() + ClipPayload req = ClipPayload.builder() .playbackId("eaw4nk06ts2d0mzb") .startTime(1587667174725d) .endTime(1587667174725d) @@ -620,21 +549,13 @@ public class Application { .sessionId("de7818e7-610a-4057-8f6f-b785dc1e6f88") .build(); - CreateClipResponse res = sdk.stream().createClip() + CreateClipResponse res = sdk.stream().createClip() .request(req) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -651,10 +572,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getClips @@ -667,32 +587,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetClipsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetClipsResponse res = sdk.stream().getClips() - .id("") + GetClipsResponse res = sdk.stream().getClips() + .id("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -709,10 +620,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## addMultistreamTarget @@ -727,19 +637,18 @@ import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.TargetAddPayload; import studio.livepeer.livepeer.models.components.TargetAddPayloadSpec; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - AddMultistreamTargetResponse res = sdk.stream().addMultistreamTarget() - .id("") + AddMultistreamTargetResponse res = sdk.stream().addMultistreamTarget() + .id("") .targetAddPayload(TargetAddPayload.builder() .profile("720p0") .videoOnly(false) @@ -751,15 +660,7 @@ public class Application { .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -777,10 +678,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## removeMultistreamTarget @@ -793,31 +693,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - RemoveMultistreamTargetResponse res = sdk.stream().removeMultistreamTarget() - .id("") - .targetId("") + RemoveMultistreamTargetResponse res = sdk.stream().removeMultistreamTarget() + .id("") + .targetId("") .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -835,6 +726,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/task/README.md b/docs/sdks/task/README.md index 7264fbc..c74d57a 100644 --- a/docs/sdks/task/README.md +++ b/docs/sdks/task/README.md @@ -21,31 +21,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetTasksResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetTasksResponse res = sdk.task().getAll() + GetTasksResponse res = sdk.task().getAll() .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -56,10 +47,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## get @@ -72,32 +62,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetTaskResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetTaskResponse res = sdk.task().get() - .taskId("") + GetTaskResponse res = sdk.task().get() + .taskId("") .call(); - if (res.task().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.task().isPresent()) { + // handle response } - } } ``` @@ -114,6 +95,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/transcode/README.md b/docs/sdks/transcode/README.md index fc6c5e1..62f1348 100644 --- a/docs/sdks/transcode/README.md +++ b/docs/sdks/transcode/README.md @@ -148,49 +148,45 @@ import studio.livepeer.livepeer.models.components.Input1; import studio.livepeer.livepeer.models.components.Input; import studio.livepeer.livepeer.models.components.Mp4; import studio.livepeer.livepeer.models.components.Outputs; -import studio.livepeer.livepeer.models.components.Storage1; -import studio.livepeer.livepeer.models.components.StorageCredentials; -import studio.livepeer.livepeer.models.components.StorageType; +import studio.livepeer.livepeer.models.components.Storage2; import studio.livepeer.livepeer.models.components.TranscodePayload; import studio.livepeer.livepeer.models.components.TranscodePayloadStorage; +import studio.livepeer.livepeer.models.components.TranscodePayloadStorageCredentials; +import studio.livepeer.livepeer.models.components.TranscodePayloadStorageType; import studio.livepeer.livepeer.models.components.TranscodeProfile; import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.TranscodeVideoResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - TranscodePayload req = TranscodePayload.builder() + TranscodePayload req = TranscodePayload.builder() .input(Input.of(Input1.builder() - .url("https://s3.amazonaws.com/bucket/file.mp4") - .build())) - .storage(TranscodePayloadStorage.of(Storage1.builder() - .type(StorageType.S3) - .endpoint("https://gateway.storjshare.io") - .bucket("outputbucket") - .credentials(StorageCredentials.builder() - .accessKeyId("AKIAIOSFODNN7EXAMPLE") - .secretAccessKey("wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY") - .build()) - .build())) + .url("https://s3.amazonaws.com/bucket/file.mp4") + .build())) + .storage(TranscodePayloadStorage.of(Storage2.builder() + .type(TranscodePayloadStorageType.WEB3_STORAGE) + .credentials(TranscodePayloadStorageCredentials.builder() + .proof("EaJlcm9vdHOAZ3ZlcnNpb24BmgIBcRIg2uxHpcPYSWNtifMKFkPC7IEDvFDCxCd3ADViv0coV7SnYXNYRO2hA0AnblHEW38s3lSlcwaDjPn") + .build()) + .build())) .outputs(Outputs.builder() - .hls(Hls.builder() - .path("/samplevideo/hls") - .build()) - .mp4(Mp4.builder() - .path("/samplevideo/mp4") - .build()) - .fmp4(Fmp4.builder() - .path("/samplevideo/fmp4") - .build()) + .hls(Hls.builder() + .path("/samplevideo/hls") .build()) + .mp4(Mp4.builder() + .path("/samplevideo/mp4") + .build()) + .fmp4(Fmp4.builder() + .path("/samplevideo/fmp4") + .build()) + .build()) .profiles(List.of( TranscodeProfile.builder() .bitrate(3000000L) @@ -206,21 +202,13 @@ public class Application { .build())) .build(); - TranscodeVideoResponse res = sdk.transcode().create() + TranscodeVideoResponse res = sdk.transcode().create() .request(req) .call(); - if (res.task().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.task().isPresent()) { + // handle response } - } } ``` @@ -237,6 +225,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/webhook/README.md b/docs/sdks/webhook/README.md index f48748e..3eef848 100644 --- a/docs/sdks/webhook/README.md +++ b/docs/sdks/webhook/README.md @@ -27,31 +27,22 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetWebhooksResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetWebhooksResponse res = sdk.webhook().getAll() + GetWebhooksResponse res = sdk.webhook().getAll() .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -62,10 +53,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## create @@ -82,18 +72,17 @@ import java.util.List; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.Events; import studio.livepeer.livepeer.models.components.WebhookInput; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - WebhookInput req = WebhookInput.builder() + WebhookInput req = WebhookInput.builder() .name("test_webhook") .url("https://my-service.com/webhook") .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") @@ -104,21 +93,13 @@ public class Application { .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") .build(); - CreateWebhookResponse res = sdk.webhook().create() + CreateWebhookResponse res = sdk.webhook().create() .request(req) .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } ``` @@ -135,10 +116,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## get @@ -151,32 +131,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetWebhookResponse res = sdk.webhook().get() - .id("") + GetWebhookResponse res = sdk.webhook().get() + .id("") .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } ``` @@ -193,10 +164,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## update @@ -212,19 +182,18 @@ import java.util.List; import studio.livepeer.livepeer.Livepeer; import studio.livepeer.livepeer.models.components.Events; import studio.livepeer.livepeer.models.components.WebhookInput; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.UpdateWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - UpdateWebhookResponse res = sdk.webhook().update() - .id("") + UpdateWebhookResponse res = sdk.webhook().update() + .id("") .webhook(WebhookInput.builder() .name("test_webhook") .url("https://my-service.com/webhook") @@ -237,17 +206,9 @@ public class Application { .build()) .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } ``` @@ -265,10 +226,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## delete @@ -281,32 +241,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - DeleteWebhookResponse res = sdk.webhook().delete() - .id("") + DeleteWebhookResponse res = sdk.webhook().delete() + .id("") .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhook().isPresent()) { + // handle response } - } } ``` @@ -323,10 +274,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getLogs @@ -339,32 +289,23 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetWebhookLogsResponse res = sdk.webhook().getLogs() - .id("") + GetWebhookLogsResponse res = sdk.webhook().getLogs() + .id("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.data().isPresent()) { + // handle response } - } } ``` @@ -381,10 +322,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getLog @@ -397,33 +337,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetWebhookLogResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - GetWebhookLogResponse res = sdk.webhook().getLog() - .id("") - .logId("") + GetWebhookLogResponse res = sdk.webhook().getLog() + .id("") + .logId("") .call(); - if (res.webhookLog().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhookLog().isPresent()) { + // handle response } - } } ``` @@ -441,10 +372,9 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## resendLog @@ -460,33 +390,24 @@ package hello.world; import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.ResendWebhookResponse; public class Application { public static void main(String[] args) throws Exception { - try { - Livepeer sdk = Livepeer.builder() + + Livepeer sdk = Livepeer.builder() .apiKey("") - .build(); + .build(); - ResendWebhookResponse res = sdk.webhook().resendLog() - .id("") - .logId("") + ResendWebhookResponse res = sdk.webhook().resendLog() + .id("") + .logId("") .call(); - if (res.webhookLog().isPresent()) { - // handle response - } - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; + if (res.webhookLog().isPresent()) { + // handle response } - } } ``` @@ -504,6 +425,6 @@ public class Application { ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/src/main/java/studio/livepeer/livepeer/AccessControl.java b/src/main/java/studio/livepeer/livepeer/AccessControl.java index 029ab24..7db5eb5 100644 --- a/src/main/java/studio/livepeer/livepeer/AccessControl.java +++ b/src/main/java/studio/livepeer/livepeer/AccessControl.java @@ -13,8 +13,8 @@ import java.net.http.HttpResponse; import java.util.List; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.SigningKey; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateSigningKeyRequestBuilder; import studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse; @@ -85,7 +85,7 @@ public CreateSigningKeyResponse createDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "POST"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -212,7 +212,7 @@ public GetSigningKeysResponse getAllDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -349,7 +349,7 @@ public DeleteSigningKeyResponse delete( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -475,7 +475,7 @@ public GetSigningKeyResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -628,7 +628,7 @@ public UpdateSigningKeyResponse update( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/Asset.java b/src/main/java/studio/livepeer/livepeer/Asset.java index 60a8f1f..9eb7f46 100644 --- a/src/main/java/studio/livepeer/livepeer/Asset.java +++ b/src/main/java/studio/livepeer/livepeer/Asset.java @@ -14,9 +14,9 @@ import java.util.List; import java.util.Optional; import studio.livepeer.livepeer.models.components.AssetPatchPayload; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; import studio.livepeer.livepeer.models.components.NewAssetPayload; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.DeleteAssetRequest; import studio.livepeer.livepeer.models.operations.DeleteAssetRequestBuilder; @@ -86,7 +86,7 @@ public GetAssetsResponse getAllDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -372,7 +372,7 @@ public RequestUploadResponse create( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -514,7 +514,7 @@ public UploadAssetResponse createViaUrl( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -666,7 +666,7 @@ public GetAssetResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -819,7 +819,7 @@ public UpdateAssetResponse update( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -956,7 +956,7 @@ public DeleteAssetResponse delete( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/Livepeer.java b/src/main/java/studio/livepeer/livepeer/Livepeer.java index 9a962cc..5828316 100644 --- a/src/main/java/studio/livepeer/livepeer/Livepeer.java +++ b/src/main/java/studio/livepeer/livepeer/Livepeer.java @@ -11,6 +11,7 @@ import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.RetryConfig; import studio.livepeer.livepeer.utils.SpeakeasyHTTPClient; +import studio.livepeer.livepeer.utils.Utils; /** * Livepeer API Reference: Welcome to the Livepeer API reference docs. Here you will find all the @@ -224,7 +225,7 @@ public Builder serverURL(String serverUrl) { * @return The builder instance. */ public Builder serverURL(String serverUrl, Map params) { - this.sdkConfiguration.serverUrl = studio.livepeer.livepeer.utils.Utils.templateUrl(serverUrl, params); + this.sdkConfiguration.serverUrl = Utils.templateUrl(serverUrl, params); return this; } diff --git a/src/main/java/studio/livepeer/livepeer/Metrics.java b/src/main/java/studio/livepeer/livepeer/Metrics.java index 6f1c074..f618545 100644 --- a/src/main/java/studio/livepeer/livepeer/Metrics.java +++ b/src/main/java/studio/livepeer/livepeer/Metrics.java @@ -12,10 +12,10 @@ import java.net.http.HttpResponse; import java.util.List; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.RealtimeViewershipMetric; import studio.livepeer.livepeer.models.components.UsageMetric; import studio.livepeer.livepeer.models.components.ViewershipMetric; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.BreakdownBy; import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest; @@ -115,7 +115,7 @@ public GetRealtimeViewershipNowResponse getRealtimeViewership( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); _req.addQueryParams(Utils.getQueryParams( GetRealtimeViewershipNowRequest.class, @@ -253,7 +253,7 @@ public GetViewershipMetricsResponse getViewership( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); _req.addQueryParams(Utils.getQueryParams( GetViewershipMetricsRequest.class, @@ -391,7 +391,7 @@ public GetCreatorViewershipMetricsResponse getCreatorViewership( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); _req.addQueryParams(Utils.getQueryParams( GetCreatorViewershipMetricsRequest.class, @@ -544,7 +544,7 @@ public GetPublicViewershipMetricsResponse getPublicViewership( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -673,7 +673,7 @@ public GetUsageMetricsResponse getUsage( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); _req.addQueryParams(Utils.getQueryParams( GetUsageMetricsRequest.class, diff --git a/src/main/java/studio/livepeer/livepeer/Multistream.java b/src/main/java/studio/livepeer/livepeer/Multistream.java index 6315f4a..a1e0f07 100644 --- a/src/main/java/studio/livepeer/livepeer/Multistream.java +++ b/src/main/java/studio/livepeer/livepeer/Multistream.java @@ -13,10 +13,10 @@ import java.net.http.HttpResponse; import java.util.List; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.MultistreamTarget; import studio.livepeer.livepeer.models.components.MultistreamTargetInput; import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRequestBuilder; import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse; @@ -80,7 +80,7 @@ public GetMultistreamTargetsResponse getAllDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -222,7 +222,7 @@ public CreateMultistreamTargetResponse create( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -359,7 +359,7 @@ public GetMultistreamTargetResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -512,7 +512,7 @@ public UpdateMultistreamTargetResponse update( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -644,7 +644,7 @@ public DeleteMultistreamTargetResponse delete( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/Playback.java b/src/main/java/studio/livepeer/livepeer/Playback.java index e6f8a7e..ecf91ed 100644 --- a/src/main/java/studio/livepeer/livepeer/Playback.java +++ b/src/main/java/studio/livepeer/livepeer/Playback.java @@ -71,7 +71,7 @@ public GetPlaybackInfoResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -166,6 +166,21 @@ public GetPlaybackInfoResponse get( "API error occurred", Utils.extractByteArrayFromBody(_httpRes)); } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + studio.livepeer.livepeer.models.components.Error _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } throw new SDKError( _httpRes, _httpRes.statusCode(), diff --git a/src/main/java/studio/livepeer/livepeer/Room.java b/src/main/java/studio/livepeer/livepeer/Room.java index 42b6847..b0fe28b 100644 --- a/src/main/java/studio/livepeer/livepeer/Room.java +++ b/src/main/java/studio/livepeer/livepeer/Room.java @@ -14,11 +14,11 @@ import java.net.http.HttpResponse; import java.util.List; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.RoomEgressPayload; import studio.livepeer.livepeer.models.components.RoomUserPayload; import studio.livepeer.livepeer.models.components.RoomUserResponse; import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateRoomRequestBuilder; import studio.livepeer.livepeer.models.operations.CreateRoomResponse; @@ -107,7 +107,7 @@ public CreateRoomResponse createDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "POST"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -248,7 +248,7 @@ public GetRoomResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -389,7 +389,7 @@ public DeleteRoomResponse delete( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -541,7 +541,7 @@ public StartRoomEgressResponse startEgress( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -671,7 +671,7 @@ public StopRoomEgressResponse stopEgress( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -825,7 +825,7 @@ public CreateRoomUserResponse createUser( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -969,7 +969,7 @@ public GetRoomUserResponse getUser( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1131,7 +1131,7 @@ public UpdateRoomUserResponse updateUser( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1264,7 +1264,7 @@ public DeleteRoomUserResponse deleteUser( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java b/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java index a9cb585..44ad840 100644 --- a/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java +++ b/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java @@ -21,11 +21,14 @@ public Optional securitySource() { public HTTPClient defaultClient; public String serverUrl; public int serverIdx = 0; - public String language = "java"; - public String openapiDocVersion = "1.0.0"; - public String sdkVersion = "0.5.0"; - public String genVersion = "2.404.1"; - public String userAgent = "speakeasy-sdk/java 0.5.0 2.404.1 1.0.0 studio.livepeer.livepeer"; + private static final String LANGUAGE = "java"; + public static final String OPENAPI_DOC_VERSION = "1.0.0"; + public static final String SDK_VERSION = "0.6.0"; + public static final String GEN_VERSION = "2.438.3"; + private static final String BASE_PACKAGE = "studio.livepeer.livepeer"; + public static final String USER_AGENT = + String.format("speakeasy-sdk/%s %s %s %s %s", + LANGUAGE, SDK_VERSION, GEN_VERSION, OPENAPI_DOC_VERSION, BASE_PACKAGE); private Hooks _hooks = createHooks(); diff --git a/src/main/java/studio/livepeer/livepeer/Session.java b/src/main/java/studio/livepeer/livepeer/Session.java index 04836d1..05dd653 100644 --- a/src/main/java/studio/livepeer/livepeer/Session.java +++ b/src/main/java/studio/livepeer/livepeer/Session.java @@ -13,7 +13,7 @@ import java.util.List; import java.util.Optional; import studio.livepeer.livepeer.models.components.Asset; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequest; import studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequestBuilder; @@ -83,7 +83,7 @@ public GetSessionClipsResponse getClips( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -210,7 +210,7 @@ public GetSessionsResponse getAllDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -347,7 +347,7 @@ public GetSessionResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -500,7 +500,7 @@ public GetRecordedSessionsResponse getRecorded( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); _req.addQueryParams(Utils.getQueryParams( GetRecordedSessionsRequest.class, diff --git a/src/main/java/studio/livepeer/livepeer/Stream.java b/src/main/java/studio/livepeer/livepeer/Stream.java index ef77c0f..50f42e2 100644 --- a/src/main/java/studio/livepeer/livepeer/Stream.java +++ b/src/main/java/studio/livepeer/livepeer/Stream.java @@ -15,10 +15,10 @@ import java.util.Optional; import studio.livepeer.livepeer.models.components.Asset; import studio.livepeer.livepeer.models.components.ClipPayload; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.NewStreamPayload; import studio.livepeer.livepeer.models.components.StreamPatchPayload; import studio.livepeer.livepeer.models.components.TargetAddPayload; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequest; import studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequestBuilder; @@ -150,7 +150,7 @@ public CreateStreamResponse create( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -294,7 +294,7 @@ public GetStreamsResponse getAll( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); _req.addQueryParams(Utils.getQueryParams( GetStreamsRequest.class, @@ -436,7 +436,7 @@ public GetStreamResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -589,7 +589,7 @@ public UpdateStreamResponse update( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -725,7 +725,7 @@ public DeleteStreamResponse delete( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -869,7 +869,7 @@ public TerminateStreamResponse terminate( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1011,7 +1011,7 @@ public StartPullStreamResponse startPull( HTTPRequest _req = new HTTPRequest(_url, "POST"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1142,7 +1142,7 @@ public CreateClipResponse createClip( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1279,7 +1279,7 @@ public GetClipsResponse getClips( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1432,7 +1432,7 @@ public AddMultistreamTargetResponse addMultistreamTarget( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1561,7 +1561,7 @@ public RemoveMultistreamTargetResponse removeMultistreamTarget( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/Task.java b/src/main/java/studio/livepeer/livepeer/Task.java index fd634d9..213efc5 100644 --- a/src/main/java/studio/livepeer/livepeer/Task.java +++ b/src/main/java/studio/livepeer/livepeer/Task.java @@ -12,7 +12,7 @@ import java.net.http.HttpResponse; import java.util.List; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.GetTaskRequest; import studio.livepeer.livepeer.models.operations.GetTaskRequestBuilder; @@ -63,7 +63,7 @@ public GetTasksResponse getAllDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -200,7 +200,7 @@ public GetTaskResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/Transcode.java b/src/main/java/studio/livepeer/livepeer/Transcode.java index c6b6668..b2889cb 100644 --- a/src/main/java/studio/livepeer/livepeer/Transcode.java +++ b/src/main/java/studio/livepeer/livepeer/Transcode.java @@ -13,9 +13,9 @@ import java.net.http.HttpResponse; import java.util.List; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Task; import studio.livepeer.livepeer.models.components.TranscodePayload; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; import studio.livepeer.livepeer.models.operations.TranscodeVideoRequestBuilder; @@ -323,7 +323,7 @@ public TranscodeVideoResponse create( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/Webhook.java b/src/main/java/studio/livepeer/livepeer/Webhook.java index 8ca36b1..cf9ba39 100644 --- a/src/main/java/studio/livepeer/livepeer/Webhook.java +++ b/src/main/java/studio/livepeer/livepeer/Webhook.java @@ -13,9 +13,9 @@ import java.net.http.HttpResponse; import java.util.List; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.WebhookInput; import studio.livepeer.livepeer.models.components.WebhookLog; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.CreateWebhookRequestBuilder; import studio.livepeer.livepeer.models.operations.CreateWebhookResponse; @@ -91,7 +91,7 @@ public GetWebhooksResponse getAllDirect() throws Exception { HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -237,7 +237,7 @@ public CreateWebhookResponse create( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -374,7 +374,7 @@ public GetWebhookResponse get( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -527,7 +527,7 @@ public UpdateWebhookResponse update( _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -664,7 +664,7 @@ public DeleteWebhookResponse delete( HTTPRequest _req = new HTTPRequest(_url, "DELETE"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -801,7 +801,7 @@ public GetWebhookLogsResponse getLogs( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -941,7 +941,7 @@ public GetWebhookLogResponse getLog( HTTPRequest _req = new HTTPRequest(_url, "GET"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1089,7 +1089,7 @@ public ResendWebhookResponse resendLog( HTTPRequest _req = new HTTPRequest(_url, "POST"); _req.addHeader("Accept", "application/json") .addHeader("user-agent", - this.sdkConfiguration.userAgent); + SDKConfiguration.USER_AGENT); Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java index 6cb5a01..286e682 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java @@ -221,8 +221,7 @@ public Builder nftMetadata(Optional nftMetadata) { public AssetSpec build() { if (nftMetadataTemplate == null) { nftMetadataTemplate = _SINGLETON_VALUE_NftMetadataTemplate.value(); - } - return new AssetSpec( + } return new AssetSpec( nftMetadataTemplate, nftMetadata); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java b/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java index ed3b9d5..ed7dac2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java @@ -77,7 +77,7 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(CreatorId.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Custom.java b/src/main/java/studio/livepeer/livepeer/models/components/Custom.java index 71daf05..60871bb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Custom.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Custom.java @@ -229,8 +229,7 @@ public Builder headers(Optional> headers) { public Custom build() { if (method == null) { method = _SINGLETON_VALUE_Method.value(); - } - return new Custom( + } return new Custom( url, method, headers); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Error.java b/src/main/java/studio/livepeer/livepeer/models/components/Error.java new file mode 100644 index 0000000..040be6a --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/components/Error.java @@ -0,0 +1,112 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.components; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import studio.livepeer.livepeer.utils.Utils; + + +public class Error { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + @JsonCreator + public Error( + @JsonProperty("errors") Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + } + + public Error() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> errors() { + return (Optional>) errors; + } + + public final static Builder builder() { + return new Builder(); + } + + public Error withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public Error withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Error other = (Error) o; + return + Objects.deepEquals(this.errors, other.errors); + } + + @Override + public int hashCode() { + return Objects.hash( + errors); + } + + @Override + public String toString() { + return Utils.toString(Error.class, + "errors", errors); + } + + public final static class Builder { + + private Optional> errors = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder errors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public Builder errors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + public Error build() { + return new Error( + errors); + } + } +} + diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java index 7c18109..d65ea68 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java @@ -86,8 +86,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java index c2f7667..d0300d8 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java @@ -361,8 +361,7 @@ public Builder metadata(Optional metadata) { public GetRoomUserResponse build() { if (isPublisher == null) { isPublisher = _SINGLETON_VALUE_IsPublisher.value(); - } - return new GetRoomUserResponse( + } return new GetRoomUserResponse( id, joinedAt, name, diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Input.java b/src/main/java/studio/livepeer/livepeer/models/components/Input.java index 6224967..7fb29f1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Input.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Input.java @@ -83,8 +83,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Input.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java index 2187791..414462d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java @@ -83,8 +83,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java b/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java index 26b8b20..c777e89 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -89,8 +90,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Ipfs.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java b/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java index 2a54d6f..a210c03 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -86,8 +87,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(IsMobile.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java index b9c58e1..4161458 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -89,8 +90,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java b/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java index f8ade73..e06844c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java @@ -88,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Pinata.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java b/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java index c844ad5..f752adc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java @@ -14,6 +14,7 @@ public enum RecordingStatus { WAITING("waiting"), READY("ready"), FAILED("failed"), + DELETED("deleted"), NONE("none"); @JsonValue diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java index cfaa2ec..7d0f4ac 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java @@ -245,8 +245,7 @@ public RoomUserUpdatePayload build() { } if (canPublishData == null) { canPublishData = _SINGLETON_VALUE_CanPublishData.value(); - } - return new RoomUserUpdatePayload( + } return new RoomUserUpdatePayload( canPublish, canPublishData, metadata); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Source.java b/src/main/java/studio/livepeer/livepeer/models/components/Source.java index 56d9277..9f7080b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Source.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Source.java @@ -89,9 +89,9 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Source.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Spec.java b/src/main/java/studio/livepeer/livepeer/models/components/Spec.java index ccfe255..f1ed21c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Spec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Spec.java @@ -221,8 +221,7 @@ public Builder nftMetadata(Optional nftMetadata) { public Spec build() { if (nftMetadataTemplate == null) { nftMetadataTemplate = _SINGLETON_VALUE_NftMetadataTemplate.value(); - } - return new Spec( + } return new Spec( nftMetadataTemplate, nftMetadata); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java index 492e4c0..3fa2be7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -86,8 +87,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java index e9cf7af..b021c38 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Double; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -90,9 +91,9 @@ public static final class _Deserializer extends OneOfDeserializer>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Target.java b/src/main/java/studio/livepeer/livepeer/models/components/Target.java index 046449f..a0dcdca 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Target.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Target.java @@ -323,8 +323,7 @@ public Builder spec(Optional spec) { public Target build() { if (videoOnly == null) { videoOnly = _SINGLETON_VALUE_VideoOnly.value(); - } - return new Target( + } return new Target( profile, videoOnly, id, diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java index 84a3401..eec1b35 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java @@ -323,8 +323,7 @@ public Builder spec(Optional spec) { public TargetAddPayload build() { if (videoOnly == null) { videoOnly = _SINGLETON_VALUE_VideoOnly.value(); - } - return new TargetAddPayload( + } return new TargetAddPayload( profile, videoOnly, id, diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java b/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java index cfa4331..e313216 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java @@ -244,8 +244,7 @@ public Builder id(Optional id) { public TargetOutput build() { if (videoOnly == null) { videoOnly = _SINGLETON_VALUE_VideoOnly.value(); - } - return new TargetOutput( + } return new TargetOutput( profile, videoOnly, id); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Task.java b/src/main/java/studio/livepeer/livepeer/models/components/Task.java index 82d95a6..c5777dc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Task.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Task.java @@ -65,6 +65,13 @@ public class Task { @JsonProperty("outputAssetId") private Optional outputAssetId; + /** + * ID of the project + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("projectId") + private Optional projectId; + /** * ID of the requester hash(IP + SALT + PlaybackId) */ @@ -101,6 +108,7 @@ public Task( @JsonProperty("scheduledAt") Optional scheduledAt, @JsonProperty("inputAssetId") Optional inputAssetId, @JsonProperty("outputAssetId") Optional outputAssetId, + @JsonProperty("projectId") Optional projectId, @JsonProperty("requesterId") Optional requesterId, @JsonProperty("params") Optional params, @JsonProperty("status") Optional status, @@ -111,6 +119,7 @@ public Task( Utils.checkNotNull(scheduledAt, "scheduledAt"); Utils.checkNotNull(inputAssetId, "inputAssetId"); Utils.checkNotNull(outputAssetId, "outputAssetId"); + Utils.checkNotNull(projectId, "projectId"); Utils.checkNotNull(requesterId, "requesterId"); Utils.checkNotNull(params, "params"); Utils.checkNotNull(status, "status"); @@ -121,6 +130,7 @@ public Task( this.scheduledAt = scheduledAt; this.inputAssetId = inputAssetId; this.outputAssetId = outputAssetId; + this.projectId = projectId; this.requesterId = requesterId; this.params = params; this.status = status; @@ -128,7 +138,7 @@ public Task( } public Task() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -182,6 +192,14 @@ public Optional outputAssetId() { return outputAssetId; } + /** + * ID of the project + */ + @JsonIgnore + public Optional projectId() { + return projectId; + } + /** * ID of the requester hash(IP + SALT + PlaybackId) */ @@ -333,6 +351,24 @@ public Task withOutputAssetId(Optional outputAssetId) { return this; } + /** + * ID of the project + */ + public Task withProjectId(String projectId) { + Utils.checkNotNull(projectId, "projectId"); + this.projectId = Optional.ofNullable(projectId); + return this; + } + + /** + * ID of the project + */ + public Task withProjectId(Optional projectId) { + Utils.checkNotNull(projectId, "projectId"); + this.projectId = projectId; + return this; + } + /** * ID of the requester hash(IP + SALT + PlaybackId) */ @@ -421,6 +457,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.scheduledAt, other.scheduledAt) && Objects.deepEquals(this.inputAssetId, other.inputAssetId) && Objects.deepEquals(this.outputAssetId, other.outputAssetId) && + Objects.deepEquals(this.projectId, other.projectId) && Objects.deepEquals(this.requesterId, other.requesterId) && Objects.deepEquals(this.params, other.params) && Objects.deepEquals(this.status, other.status) && @@ -436,6 +473,7 @@ public int hashCode() { scheduledAt, inputAssetId, outputAssetId, + projectId, requesterId, params, status, @@ -451,6 +489,7 @@ public String toString() { "scheduledAt", scheduledAt, "inputAssetId", inputAssetId, "outputAssetId", outputAssetId, + "projectId", projectId, "requesterId", requesterId, "params", params, "status", status, @@ -471,6 +510,8 @@ public final static class Builder { private Optional outputAssetId = Optional.empty(); + private Optional projectId = Optional.empty(); + private Optional requesterId = Optional.empty(); private Optional params = Optional.empty(); @@ -595,6 +636,24 @@ public Builder outputAssetId(Optional outputAssetId) { return this; } + /** + * ID of the project + */ + public Builder projectId(String projectId) { + Utils.checkNotNull(projectId, "projectId"); + this.projectId = Optional.ofNullable(projectId); + return this; + } + + /** + * ID of the project + */ + public Builder projectId(Optional projectId) { + Utils.checkNotNull(projectId, "projectId"); + this.projectId = projectId; + return this; + } + /** * ID of the requester hash(IP + SALT + PlaybackId) */ @@ -675,6 +734,7 @@ public Task build() { scheduledAt, inputAssetId, outputAssetId, + projectId, requesterId, params, status, diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Three.java b/src/main/java/studio/livepeer/livepeer/models/components/Three.java index edbb17b..ece2a48 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Three.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Three.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Double; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -83,8 +84,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Three.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java index b94a15b..0364ecb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java @@ -83,8 +83,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java b/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java index b43039d..4243a58 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Double; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -90,9 +91,9 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(UserTags.class, false, - TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java b/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java index 3f9d341..3b5f9a5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Double; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -83,8 +84,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(UserTags3.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java index 4976ba2..7b7f0d3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java @@ -18,13 +18,13 @@ public AddMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallAddMulti this.sdk = sdk; } - public AddMultistreamTargetRequestBuilder id(java.lang.String id) { + public AddMultistreamTargetRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public AddMultistreamTargetRequestBuilder targetAddPayload(studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload) { + public AddMultistreamTargetRequestBuilder targetAddPayload(TargetAddPayload targetAddPayload) { Utils.checkNotNull(targetAddPayload, "targetAddPayload"); this.targetAddPayload = targetAddPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java index 908144e..0735807 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java index 0afbe77..ade1d0a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java @@ -16,7 +16,7 @@ public CreateClipRequestBuilder(SDKMethodInterfaces.MethodCallCreateClip sdk) { this.sdk = sdk; } - public CreateClipRequestBuilder request(studio.livepeer.livepeer.models.components.ClipPayload request) { + public CreateClipRequestBuilder request(ClipPayload request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java index 8e44d86..85be668 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java index d300048..3040c97 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java @@ -16,7 +16,7 @@ public CreateMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallCreat this.sdk = sdk; } - public CreateMultistreamTargetRequestBuilder request(studio.livepeer.livepeer.models.components.MultistreamTargetInput request) { + public CreateMultistreamTargetRequestBuilder request(MultistreamTargetInput request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java index 71a30d5..40f0590 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.MultistreamTarget; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java index 2580285..8681c57 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java index 51beebb..8e07604 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java @@ -18,13 +18,13 @@ public CreateRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallCreateRoomUser this.sdk = sdk; } - public CreateRoomUserRequestBuilder id(java.lang.String id) { + public CreateRoomUserRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public CreateRoomUserRequestBuilder roomUserPayload(studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload) { + public CreateRoomUserRequestBuilder roomUserPayload(RoomUserPayload roomUserPayload) { Utils.checkNotNull(roomUserPayload, "roomUserPayload"); this.roomUserPayload = roomUserPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java index 3a1233b..eda2245 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.RoomUserResponse; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java index 0315a78..768ac3a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.SigningKey; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java index 52db6a7..f1ef01f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java @@ -16,7 +16,7 @@ public CreateStreamRequestBuilder(SDKMethodInterfaces.MethodCallCreateStream sdk this.sdk = sdk; } - public CreateStreamRequestBuilder request(studio.livepeer.livepeer.models.components.NewStreamPayload request) { + public CreateStreamRequestBuilder request(NewStreamPayload request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java index 57b22dc..93987fe 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Stream; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java index c45911a..14ef774 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java @@ -16,7 +16,7 @@ public CreateWebhookRequestBuilder(SDKMethodInterfaces.MethodCallCreateWebhook s this.sdk = sdk; } - public CreateWebhookRequestBuilder request(studio.livepeer.livepeer.models.components.WebhookInput request) { + public CreateWebhookRequestBuilder request(WebhookInput request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java index 0eb3f7b..691aaf2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Webhook; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java index 93aa87b..e206906 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java @@ -16,7 +16,7 @@ public DeleteAssetRequestBuilder(SDKMethodInterfaces.MethodCallDeleteAsset sdk) this.sdk = sdk; } - public DeleteAssetRequestBuilder assetId(java.lang.String assetId) { + public DeleteAssetRequestBuilder assetId(String assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java index 5fed379..eb45a2e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java index 4335757..f2d8a67 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java @@ -16,7 +16,7 @@ public DeleteMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallDelet this.sdk = sdk; } - public DeleteMultistreamTargetRequestBuilder id(java.lang.String id) { + public DeleteMultistreamTargetRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java index f1e7250..0d2b984 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java index 881ae31..c4aa4ed 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java @@ -16,7 +16,7 @@ public DeleteRoomRequestBuilder(SDKMethodInterfaces.MethodCallDeleteRoom sdk) { this.sdk = sdk; } - public DeleteRoomRequestBuilder id(java.lang.String id) { + public DeleteRoomRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java index 70bc062..d4e9b16 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java index bc19de7..b64abd9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java @@ -17,13 +17,13 @@ public DeleteRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallDeleteRoomUser this.sdk = sdk; } - public DeleteRoomUserRequestBuilder id(java.lang.String id) { + public DeleteRoomUserRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public DeleteRoomUserRequestBuilder userId(java.lang.String userId) { + public DeleteRoomUserRequestBuilder userId(String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java index c02116a..bbd160e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java index e66a712..b6c25fc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java @@ -16,7 +16,7 @@ public DeleteSigningKeyRequestBuilder(SDKMethodInterfaces.MethodCallDeleteSignin this.sdk = sdk; } - public DeleteSigningKeyRequestBuilder keyId(java.lang.String keyId) { + public DeleteSigningKeyRequestBuilder keyId(String keyId) { Utils.checkNotNull(keyId, "keyId"); this.keyId = keyId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java index 5c5ba5c..67c843a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java index fdeab72..d86f0f4 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java @@ -16,7 +16,7 @@ public DeleteStreamRequestBuilder(SDKMethodInterfaces.MethodCallDeleteStream sdk this.sdk = sdk; } - public DeleteStreamRequestBuilder id(java.lang.String id) { + public DeleteStreamRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java index 0ed9fbe..741f58c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java index c97044a..e3eca9b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java @@ -16,7 +16,7 @@ public DeleteWebhookRequestBuilder(SDKMethodInterfaces.MethodCallDeleteWebhook s this.sdk = sdk; } - public DeleteWebhookRequestBuilder id(java.lang.String id) { + public DeleteWebhookRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java index 2bf2d4c..dff7d36 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Webhook; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/From.java b/src/main/java/studio/livepeer/livepeer/models/operations/From.java index ea9acba..6bdaf90 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/From.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/From.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -87,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(From.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java index 4f8dceb..f557fc0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java @@ -16,7 +16,7 @@ public GetAssetRequestBuilder(SDKMethodInterfaces.MethodCallGetAsset sdk) { this.sdk = sdk; } - public GetAssetRequestBuilder assetId(java.lang.String assetId) { + public GetAssetRequestBuilder assetId(String assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java index 3d5dd9e..067f56f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.models.components.Asset; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java index 9ff146d..a9dba7e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java @@ -17,7 +17,7 @@ import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.models.components.Asset; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java index 9c17820..7247738 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java @@ -16,7 +16,7 @@ public GetClipsRequestBuilder(SDKMethodInterfaces.MethodCallGetClips sdk) { this.sdk = sdk; } - public GetClipsRequestBuilder id(java.lang.String id) { + public GetClipsRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java index b4191b3..8c51523 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java @@ -17,7 +17,7 @@ import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.models.components.Asset; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java index f5bc5bb..83902d5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java @@ -15,7 +15,7 @@ public GetCreatorViewershipMetricsRequestBuilder(SDKMethodInterfaces.MethodCallG this.sdk = sdk; } - public GetCreatorViewershipMetricsRequestBuilder request(studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest request) { + public GetCreatorViewershipMetricsRequestBuilder request(GetCreatorViewershipMetricsRequest request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java index 2b68e89..0c93eb3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.ViewershipMetric; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java index 90d3b7a..a1a61bc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java @@ -16,7 +16,7 @@ public GetMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallGetMulti this.sdk = sdk; } - public GetMultistreamTargetRequestBuilder id(java.lang.String id) { + public GetMultistreamTargetRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java index 587058d..c5b0fb1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.MultistreamTarget; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java index 70d231b..e674125 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.MultistreamTarget; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java index 0e5e60e..5e3ac27 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java @@ -16,7 +16,7 @@ public GetPlaybackInfoRequestBuilder(SDKMethodInterfaces.MethodCallGetPlaybackIn this.sdk = sdk; } - public GetPlaybackInfoRequestBuilder id(java.lang.String id) { + public GetPlaybackInfoRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java index 4b1a9ef..273638f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java @@ -15,6 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.PlaybackInfo; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; @@ -42,27 +43,35 @@ public class GetPlaybackInfoResponse implements Response { */ private Optional playbackInfo; + /** + * Playback not found + */ + private Optional error; + @JsonCreator public GetPlaybackInfoResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional playbackInfo) { + Optional playbackInfo, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); Utils.checkNotNull(playbackInfo, "playbackInfo"); + Utils.checkNotNull(error, "error"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; this.playbackInfo = playbackInfo; + this.error = error; } public GetPlaybackInfoResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); } /** @@ -98,6 +107,15 @@ public Optional playbackInfo() { return (Optional) playbackInfo; } + /** + * Playback not found + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional error() { + return (Optional) error; + } + public final static Builder builder() { return new Builder(); } @@ -146,6 +164,24 @@ public GetPlaybackInfoResponse withPlaybackInfo(Optional this.playbackInfo = playbackInfo; return this; } + + /** + * Playback not found + */ + public GetPlaybackInfoResponse withError(Error error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + /** + * Playback not found + */ + public GetPlaybackInfoResponse withError(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -160,7 +196,8 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.contentType, other.contentType) && Objects.deepEquals(this.statusCode, other.statusCode) && Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.playbackInfo, other.playbackInfo); + Objects.deepEquals(this.playbackInfo, other.playbackInfo) && + Objects.deepEquals(this.error, other.error); } @Override @@ -169,7 +206,8 @@ public int hashCode() { contentType, statusCode, rawResponse, - playbackInfo); + playbackInfo, + error); } @Override @@ -178,7 +216,8 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "playbackInfo", playbackInfo); + "playbackInfo", playbackInfo, + "error", error); } public final static class Builder { @@ -189,7 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional playbackInfo = Optional.empty(); + private Optional playbackInfo = Optional.empty(); + + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -239,13 +280,32 @@ public Builder playbackInfo(Optional playbackInfo) { this.playbackInfo = playbackInfo; return this; } + + /** + * Playback not found + */ + public Builder error(Error error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + /** + * Playback not found + */ + public Builder error(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } public GetPlaybackInfoResponse build() { return new GetPlaybackInfoResponse( contentType, statusCode, rawResponse, - playbackInfo); + playbackInfo, + error); } } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java index 6f435f2..f24bf33 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java @@ -16,7 +16,7 @@ public GetPublicViewershipMetricsRequestBuilder(SDKMethodInterfaces.MethodCallGe this.sdk = sdk; } - public GetPublicViewershipMetricsRequestBuilder playbackId(java.lang.String playbackId) { + public GetPublicViewershipMetricsRequestBuilder playbackId(String playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java index 2b49c5c..a3fd53f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java index 589383c..75c4448 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java @@ -20,37 +20,37 @@ public GetRealtimeViewershipNowRequestBuilder(SDKMethodInterfaces.MethodCallGetR this.sdk = sdk; } - public GetRealtimeViewershipNowRequestBuilder playbackId(java.lang.String playbackId) { + public GetRealtimeViewershipNowRequestBuilder playbackId(String playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = Optional.of(playbackId); return this; } - public GetRealtimeViewershipNowRequestBuilder playbackId(java.util.Optional playbackId) { + public GetRealtimeViewershipNowRequestBuilder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; } - public GetRealtimeViewershipNowRequestBuilder creatorId(java.lang.String creatorId) { + public GetRealtimeViewershipNowRequestBuilder creatorId(String creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = Optional.of(creatorId); return this; } - public GetRealtimeViewershipNowRequestBuilder creatorId(java.util.Optional creatorId) { + public GetRealtimeViewershipNowRequestBuilder creatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; } - public GetRealtimeViewershipNowRequestBuilder breakdownBy(java.util.List breakdownBy) { + public GetRealtimeViewershipNowRequestBuilder breakdownBy(List breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = Optional.of(breakdownBy); return this; } - public GetRealtimeViewershipNowRequestBuilder breakdownBy(java.util.Optional> breakdownBy) { + public GetRealtimeViewershipNowRequestBuilder breakdownBy(Optional> breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = breakdownBy; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java index 1f72bb8..1eeac9d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.RealtimeViewershipMetric; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java index 2017ed1..ac4a717 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java @@ -18,19 +18,19 @@ public GetRecordedSessionsRequestBuilder(SDKMethodInterfaces.MethodCallGetRecord this.sdk = sdk; } - public GetRecordedSessionsRequestBuilder parentId(java.lang.String parentId) { + public GetRecordedSessionsRequestBuilder parentId(String parentId) { Utils.checkNotNull(parentId, "parentId"); this.parentId = parentId; return this; } - public GetRecordedSessionsRequestBuilder record(studio.livepeer.livepeer.models.operations.Record record) { + public GetRecordedSessionsRequestBuilder record(Record record) { Utils.checkNotNull(record, "record"); this.record = Optional.of(record); return this; } - public GetRecordedSessionsRequestBuilder record(java.util.Optional record) { + public GetRecordedSessionsRequestBuilder record(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java index 7cc4467..db4920b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Session; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java index e54d2c6..4c12a51 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java @@ -16,7 +16,7 @@ public GetRoomRequestBuilder(SDKMethodInterfaces.MethodCallGetRoom sdk) { this.sdk = sdk; } - public GetRoomRequestBuilder id(java.lang.String id) { + public GetRoomRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java index e5df89b..21ab789 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Room; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java index 17fbe15..bc9aec5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java @@ -17,13 +17,13 @@ public GetRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallGetRoomUser sdk) this.sdk = sdk; } - public GetRoomUserRequestBuilder id(java.lang.String id) { + public GetRoomUserRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetRoomUserRequestBuilder userId(java.lang.String userId) { + public GetRoomUserRequestBuilder userId(String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java index 002fe90..b48adba 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java index de1abe4..bcbcc0c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java @@ -16,7 +16,7 @@ public GetSessionClipsRequestBuilder(SDKMethodInterfaces.MethodCallGetSessionCli this.sdk = sdk; } - public GetSessionClipsRequestBuilder id(java.lang.String id) { + public GetSessionClipsRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java index 8007b69..5d29de1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java @@ -17,7 +17,7 @@ import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.models.components.Asset; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java index 37d0354..10554d3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java @@ -16,7 +16,7 @@ public GetSessionRequestBuilder(SDKMethodInterfaces.MethodCallGetSession sdk) { this.sdk = sdk; } - public GetSessionRequestBuilder id(java.lang.String id) { + public GetSessionRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java index 624b79c..a7b12f3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Session; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java index abd862e..22e82e9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Session; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java index bbb7612..a572920 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java @@ -16,7 +16,7 @@ public GetSigningKeyRequestBuilder(SDKMethodInterfaces.MethodCallGetSigningKey s this.sdk = sdk; } - public GetSigningKeyRequestBuilder keyId(java.lang.String keyId) { + public GetSigningKeyRequestBuilder keyId(String keyId) { Utils.checkNotNull(keyId, "keyId"); this.keyId = keyId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java index dc0b02c..8ce2c6c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.SigningKey; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java index f47f52a..0da97eb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.SigningKey; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java index c49ac5c..03f31a5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java @@ -16,7 +16,7 @@ public GetStreamRequestBuilder(SDKMethodInterfaces.MethodCallGetStream sdk) { this.sdk = sdk; } - public GetStreamRequestBuilder id(java.lang.String id) { + public GetStreamRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java index 8ef420b..17df57c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Stream; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java index 5b47ac7..6e5f037 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java @@ -17,13 +17,13 @@ public GetStreamsRequestBuilder(SDKMethodInterfaces.MethodCallGetStreams sdk) { this.sdk = sdk; } - public GetStreamsRequestBuilder streamsonly(java.lang.String streamsonly) { + public GetStreamsRequestBuilder streamsonly(String streamsonly) { Utils.checkNotNull(streamsonly, "streamsonly"); this.streamsonly = Optional.of(streamsonly); return this; } - public GetStreamsRequestBuilder streamsonly(java.util.Optional streamsonly) { + public GetStreamsRequestBuilder streamsonly(Optional streamsonly) { Utils.checkNotNull(streamsonly, "streamsonly"); this.streamsonly = streamsonly; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java index 36cd590..793cb01 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Stream; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java index dc36623..bc65c59 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java @@ -16,7 +16,7 @@ public GetTaskRequestBuilder(SDKMethodInterfaces.MethodCallGetTask sdk) { this.sdk = sdk; } - public GetTaskRequestBuilder taskId(java.lang.String taskId) { + public GetTaskRequestBuilder taskId(String taskId) { Utils.checkNotNull(taskId, "taskId"); this.taskId = taskId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java index 53c34ce..73bdf17 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Task; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java index 70d758c..82a5a74 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java @@ -15,7 +15,7 @@ public GetUsageMetricsRequestBuilder(SDKMethodInterfaces.MethodCallGetUsageMetri this.sdk = sdk; } - public GetUsageMetricsRequestBuilder request(studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest request) { + public GetUsageMetricsRequestBuilder request(GetUsageMetricsRequest request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java index 4f43e8c..b8cffb3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.UsageMetric; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java index c563e8e..b361b98 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java @@ -15,7 +15,7 @@ public GetViewershipMetricsRequestBuilder(SDKMethodInterfaces.MethodCallGetViewe this.sdk = sdk; } - public GetViewershipMetricsRequestBuilder request(studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest request) { + public GetViewershipMetricsRequestBuilder request(GetViewershipMetricsRequest request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java index 095fae0..db2ff3d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.ViewershipMetric; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java index e6ab3cf..7854038 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java @@ -17,13 +17,13 @@ public GetWebhookLogRequestBuilder(SDKMethodInterfaces.MethodCallGetWebhookLog s this.sdk = sdk; } - public GetWebhookLogRequestBuilder id(java.lang.String id) { + public GetWebhookLogRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetWebhookLogRequestBuilder logId(java.lang.String logId) { + public GetWebhookLogRequestBuilder logId(String logId) { Utils.checkNotNull(logId, "logId"); this.logId = logId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java index 8aee898..2c8a9e1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.WebhookLog; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java index d0d9066..2bdedbf 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java @@ -16,7 +16,7 @@ public GetWebhookLogsRequestBuilder(SDKMethodInterfaces.MethodCallGetWebhookLogs this.sdk = sdk; } - public GetWebhookLogsRequestBuilder id(java.lang.String id) { + public GetWebhookLogsRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java index 1c52dab..608d360 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.WebhookLog; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java index a323d5c..bd2d82d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java @@ -16,7 +16,7 @@ public GetWebhookRequestBuilder(SDKMethodInterfaces.MethodCallGetWebhook sdk) { this.sdk = sdk; } - public GetWebhookRequestBuilder id(java.lang.String id) { + public GetWebhookRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java index a98dfb5..305dd30 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Webhook; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java index 6de1c67..022b9d5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java @@ -16,8 +16,8 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Webhook; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java index c5a9be5..3bf923c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -87,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java index 5d1bb18..08bd231 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -87,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer public _Deserializer() { super(QueryParamTo.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/Record.java b/src/main/java/studio/livepeer/livepeer/models/operations/Record.java index e1020e8..4d9f487 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/Record.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/Record.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Boolean; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -88,8 +90,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Record.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java index 739512d..131908e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java @@ -17,13 +17,13 @@ public RemoveMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallRemov this.sdk = sdk; } - public RemoveMultistreamTargetRequestBuilder id(java.lang.String id) { + public RemoveMultistreamTargetRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public RemoveMultistreamTargetRequestBuilder targetId(java.lang.String targetId) { + public RemoveMultistreamTargetRequestBuilder targetId(String targetId) { Utils.checkNotNull(targetId, "targetId"); this.targetId = targetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java index 12c7858..f1cbb02 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java index c1e527c..1696e07 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java @@ -16,7 +16,7 @@ public RequestUploadRequestBuilder(SDKMethodInterfaces.MethodCallRequestUpload s this.sdk = sdk; } - public RequestUploadRequestBuilder request(studio.livepeer.livepeer.models.components.NewAssetPayload request) { + public RequestUploadRequestBuilder request(NewAssetPayload request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java index 0ec9161..49fa3d9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java index d12ba51..2678891 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java @@ -17,13 +17,13 @@ public ResendWebhookRequestBuilder(SDKMethodInterfaces.MethodCallResendWebhook s this.sdk = sdk; } - public ResendWebhookRequestBuilder id(java.lang.String id) { + public ResendWebhookRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public ResendWebhookRequestBuilder logId(java.lang.String logId) { + public ResendWebhookRequestBuilder logId(String logId) { Utils.checkNotNull(logId, "logId"); this.logId = logId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java index 65962c5..b85dded 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.WebhookLog; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java b/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java index 0246e85..b610991 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java @@ -4,6 +4,7 @@ package studio.livepeer.livepeer.models.operations; +import java.lang.Exception; import java.lang.String; import java.util.List; import java.util.Optional; @@ -26,260 +27,260 @@ public class SDKMethodInterfaces { public interface MethodCallCreateStream { - studio.livepeer.livepeer.models.operations.CreateStreamResponse create( + CreateStreamResponse create( NewStreamPayload request) throws Exception; } public interface MethodCallGetStreams { - studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( + GetStreamsResponse getAll( Optional streamsonly) throws Exception; } public interface MethodCallGetStream { - studio.livepeer.livepeer.models.operations.GetStreamResponse get( + GetStreamResponse get( String id) throws Exception; } public interface MethodCallUpdateStream { - studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( + UpdateStreamResponse update( String id, StreamPatchPayload streamPatchPayload) throws Exception; } public interface MethodCallDeleteStream { - studio.livepeer.livepeer.models.operations.DeleteStreamResponse delete( + DeleteStreamResponse delete( String id) throws Exception; } public interface MethodCallTerminateStream { - studio.livepeer.livepeer.models.operations.TerminateStreamResponse terminate( + TerminateStreamResponse terminate( String id) throws Exception; } public interface MethodCallStartPullStream { - studio.livepeer.livepeer.models.operations.StartPullStreamResponse startPull( + StartPullStreamResponse startPull( String id) throws Exception; } public interface MethodCallCreateClip { - studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( + CreateClipResponse createClip( ClipPayload request) throws Exception; } public interface MethodCallGetClips { - studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( + GetClipsResponse getClips( String id) throws Exception; } public interface MethodCallAddMultistreamTarget { - studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse addMultistreamTarget( + AddMultistreamTargetResponse addMultistreamTarget( String id, TargetAddPayload targetAddPayload) throws Exception; } public interface MethodCallRemoveMultistreamTarget { - studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse removeMultistreamTarget( + RemoveMultistreamTargetResponse removeMultistreamTarget( String id, String targetId) throws Exception; } public interface MethodCallGetMultistreamTargets { - studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse getAllDirect() throws Exception; + GetMultistreamTargetsResponse getAllDirect() throws Exception; } public interface MethodCallCreateMultistreamTarget { - studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse create( + CreateMultistreamTargetResponse create( MultistreamTargetInput request) throws Exception; } public interface MethodCallGetMultistreamTarget { - studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse get( + GetMultistreamTargetResponse get( String id) throws Exception; } public interface MethodCallUpdateMultistreamTarget { - studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse update( + UpdateMultistreamTargetResponse update( String id, MultistreamTargetPatchPayload multistreamTargetPatchPayload) throws Exception; } public interface MethodCallDeleteMultistreamTarget { - studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse delete( + DeleteMultistreamTargetResponse delete( String id) throws Exception; } public interface MethodCallGetWebhooks { - studio.livepeer.livepeer.models.operations.GetWebhooksResponse getAllDirect() throws Exception; + GetWebhooksResponse getAllDirect() throws Exception; } public interface MethodCallCreateWebhook { - studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( + CreateWebhookResponse create( WebhookInput request) throws Exception; } public interface MethodCallGetWebhook { - studio.livepeer.livepeer.models.operations.GetWebhookResponse get( + GetWebhookResponse get( String id) throws Exception; } public interface MethodCallUpdateWebhook { - studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( + UpdateWebhookResponse update( String id, WebhookInput webhook) throws Exception; } public interface MethodCallDeleteWebhook { - studio.livepeer.livepeer.models.operations.DeleteWebhookResponse delete( + DeleteWebhookResponse delete( String id) throws Exception; } public interface MethodCallGetWebhookLogs { - studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse getLogs( + GetWebhookLogsResponse getLogs( String id) throws Exception; } public interface MethodCallGetWebhookLog { - studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( + GetWebhookLogResponse getLog( String id, String logId) throws Exception; } public interface MethodCallResendWebhook { - studio.livepeer.livepeer.models.operations.ResendWebhookResponse resendLog( + ResendWebhookResponse resendLog( String id, String logId) throws Exception; } public interface MethodCallGetAssets { - studio.livepeer.livepeer.models.operations.GetAssetsResponse getAllDirect() throws Exception; + GetAssetsResponse getAllDirect() throws Exception; } public interface MethodCallRequestUpload { - studio.livepeer.livepeer.models.operations.RequestUploadResponse create( + RequestUploadResponse create( NewAssetPayload request) throws Exception; } public interface MethodCallUploadAsset { - studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaUrl( + UploadAssetResponse createViaUrl( NewAssetFromUrlPayload request) throws Exception; } public interface MethodCallGetAsset { - studio.livepeer.livepeer.models.operations.GetAssetResponse get( + GetAssetResponse get( String assetId) throws Exception; } public interface MethodCallUpdateAsset { - studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( + UpdateAssetResponse update( String assetId, AssetPatchPayload assetPatchPayload) throws Exception; } public interface MethodCallDeleteAsset { - studio.livepeer.livepeer.models.operations.DeleteAssetResponse delete( + DeleteAssetResponse delete( String assetId) throws Exception; } public interface MethodCallGetSessionClips { - studio.livepeer.livepeer.models.operations.GetSessionClipsResponse getClips( + GetSessionClipsResponse getClips( String id) throws Exception; } public interface MethodCallGetSessions { - studio.livepeer.livepeer.models.operations.GetSessionsResponse getAllDirect() throws Exception; + GetSessionsResponse getAllDirect() throws Exception; } public interface MethodCallGetSession { - studio.livepeer.livepeer.models.operations.GetSessionResponse get( + GetSessionResponse get( String id) throws Exception; } public interface MethodCallGetRecordedSessions { - studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse getRecorded( + GetRecordedSessionsResponse getRecorded( String parentId, Optional record) throws Exception; } public interface MethodCallCreateRoom { - studio.livepeer.livepeer.models.operations.CreateRoomResponse createDirect() throws Exception; + CreateRoomResponse createDirect() throws Exception; } public interface MethodCallGetRoom { - studio.livepeer.livepeer.models.operations.GetRoomResponse get( + GetRoomResponse get( String id) throws Exception; } public interface MethodCallDeleteRoom { - studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( + DeleteRoomResponse delete( String id) throws Exception; } public interface MethodCallStartRoomEgress { - studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startEgress( + StartRoomEgressResponse startEgress( String id, RoomEgressPayload roomEgressPayload) throws Exception; } public interface MethodCallStopRoomEgress { - studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgress( + StopRoomEgressResponse stopEgress( String id) throws Exception; } public interface MethodCallCreateRoomUser { - studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createUser( + CreateRoomUserResponse createUser( String id, RoomUserPayload roomUserPayload) throws Exception; } public interface MethodCallGetRoomUser { - studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( + GetRoomUserResponse getUser( String id, String userId) throws Exception; } public interface MethodCallUpdateRoomUser { - studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateUser( + UpdateRoomUserResponse updateUser( String id, String userId, RoomUserUpdatePayload roomUserUpdatePayload) throws Exception; @@ -287,14 +288,14 @@ studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateUser( public interface MethodCallDeleteRoomUser { - studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteUser( + DeleteRoomUserResponse deleteUser( String id, String userId) throws Exception; } public interface MethodCallGetRealtimeViewershipNow { - studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse getRealtimeViewership( + GetRealtimeViewershipNowResponse getRealtimeViewership( Optional playbackId, Optional creatorId, Optional> breakdownBy) throws Exception; @@ -302,77 +303,77 @@ studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse getR public interface MethodCallGetViewershipMetrics { - studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse getViewership( + GetViewershipMetricsResponse getViewership( GetViewershipMetricsRequest request) throws Exception; } public interface MethodCallGetCreatorViewershipMetrics { - studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse getCreatorViewership( + GetCreatorViewershipMetricsResponse getCreatorViewership( GetCreatorViewershipMetricsRequest request) throws Exception; } public interface MethodCallGetPublicViewershipMetrics { - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse getPublicViewership( + GetPublicViewershipMetricsResponse getPublicViewership( String playbackId) throws Exception; } public interface MethodCallGetUsageMetrics { - studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsage( + GetUsageMetricsResponse getUsage( GetUsageMetricsRequest request) throws Exception; } public interface MethodCallCreateSigningKey { - studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse createDirect() throws Exception; + CreateSigningKeyResponse createDirect() throws Exception; } public interface MethodCallGetSigningKeys { - studio.livepeer.livepeer.models.operations.GetSigningKeysResponse getAllDirect() throws Exception; + GetSigningKeysResponse getAllDirect() throws Exception; } public interface MethodCallDeleteSigningKey { - studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse delete( + DeleteSigningKeyResponse delete( String keyId) throws Exception; } public interface MethodCallGetSigningKey { - studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( + GetSigningKeyResponse get( String keyId) throws Exception; } public interface MethodCallUpdateSigningKey { - studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse update( + UpdateSigningKeyResponse update( String keyId, UpdateSigningKeyRequestBody requestBody) throws Exception; } public interface MethodCallGetTasks { - studio.livepeer.livepeer.models.operations.GetTasksResponse getAllDirect() throws Exception; + GetTasksResponse getAllDirect() throws Exception; } public interface MethodCallGetTask { - studio.livepeer.livepeer.models.operations.GetTaskResponse get( + GetTaskResponse get( String taskId) throws Exception; } public interface MethodCallTranscodeVideo { - studio.livepeer.livepeer.models.operations.TranscodeVideoResponse create( + TranscodeVideoResponse create( TranscodePayload request) throws Exception; } public interface MethodCallGetPlaybackInfo { - studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse get( + GetPlaybackInfoResponse get( String id) throws Exception; } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java index 736a7bd..1f14ffb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java @@ -16,7 +16,7 @@ public StartPullStreamRequestBuilder(SDKMethodInterfaces.MethodCallStartPullStre this.sdk = sdk; } - public StartPullStreamRequestBuilder id(java.lang.String id) { + public StartPullStreamRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java index 37c1f7a..11d2515 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java index ee8e632..7f4a4bc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java @@ -18,13 +18,13 @@ public StartRoomEgressRequestBuilder(SDKMethodInterfaces.MethodCallStartRoomEgre this.sdk = sdk; } - public StartRoomEgressRequestBuilder id(java.lang.String id) { + public StartRoomEgressRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public StartRoomEgressRequestBuilder roomEgressPayload(studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload) { + public StartRoomEgressRequestBuilder roomEgressPayload(RoomEgressPayload roomEgressPayload) { Utils.checkNotNull(roomEgressPayload, "roomEgressPayload"); this.roomEgressPayload = roomEgressPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java index 248f0ea..e51c8ae 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java index 53f69e6..af4f8f0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java @@ -16,7 +16,7 @@ public StopRoomEgressRequestBuilder(SDKMethodInterfaces.MethodCallStopRoomEgress this.sdk = sdk; } - public StopRoomEgressRequestBuilder id(java.lang.String id) { + public StopRoomEgressRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java index e3036d2..5d06924 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java index 78e2725..7b33ccb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java @@ -16,7 +16,7 @@ public TerminateStreamRequestBuilder(SDKMethodInterfaces.MethodCallTerminateStre this.sdk = sdk; } - public TerminateStreamRequestBuilder id(java.lang.String id) { + public TerminateStreamRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java index 286cddc..4a9a8ae 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/To.java b/src/main/java/studio/livepeer/livepeer/models/operations/To.java index 7a25a67..049a2df 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/To.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/To.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -87,8 +88,8 @@ public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(To.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java index c350c68..06ef2d7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java @@ -16,7 +16,7 @@ public TranscodeVideoRequestBuilder(SDKMethodInterfaces.MethodCallTranscodeVideo this.sdk = sdk; } - public TranscodeVideoRequestBuilder request(studio.livepeer.livepeer.models.components.TranscodePayload request) { + public TranscodeVideoRequestBuilder request(TranscodePayload request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java index cf5c29f..798edf4 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Task; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java index d1a1997..d1fdb88 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java @@ -18,13 +18,13 @@ public UpdateAssetRequestBuilder(SDKMethodInterfaces.MethodCallUpdateAsset sdk) this.sdk = sdk; } - public UpdateAssetRequestBuilder assetId(java.lang.String assetId) { + public UpdateAssetRequestBuilder assetId(String assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; } - public UpdateAssetRequestBuilder assetPatchPayload(studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload) { + public UpdateAssetRequestBuilder assetPatchPayload(AssetPatchPayload assetPatchPayload) { Utils.checkNotNull(assetPatchPayload, "assetPatchPayload"); this.assetPatchPayload = assetPatchPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java index fae2062..94a8548 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.models.components.Asset; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java index 7f734f0..2a2db78 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java @@ -18,13 +18,13 @@ public UpdateMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallUpdat this.sdk = sdk; } - public UpdateMultistreamTargetRequestBuilder id(java.lang.String id) { + public UpdateMultistreamTargetRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public UpdateMultistreamTargetRequestBuilder multistreamTargetPatchPayload(studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload) { + public UpdateMultistreamTargetRequestBuilder multistreamTargetPatchPayload(MultistreamTargetPatchPayload multistreamTargetPatchPayload) { Utils.checkNotNull(multistreamTargetPatchPayload, "multistreamTargetPatchPayload"); this.multistreamTargetPatchPayload = multistreamTargetPatchPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java index 583616d..1705ac5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java index 8775e3e..5a8da39 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java @@ -19,19 +19,19 @@ public UpdateRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallUpdateRoomUser this.sdk = sdk; } - public UpdateRoomUserRequestBuilder id(java.lang.String id) { + public UpdateRoomUserRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public UpdateRoomUserRequestBuilder userId(java.lang.String userId) { + public UpdateRoomUserRequestBuilder userId(String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; } - public UpdateRoomUserRequestBuilder roomUserUpdatePayload(studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload) { + public UpdateRoomUserRequestBuilder roomUserUpdatePayload(RoomUserUpdatePayload roomUserUpdatePayload) { Utils.checkNotNull(roomUserUpdatePayload, "roomUserUpdatePayload"); this.roomUserUpdatePayload = roomUserUpdatePayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java index 2a21852..eaebd45 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java index 7b841c5..68b4bc5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java @@ -17,13 +17,13 @@ public UpdateSigningKeyRequestBuilder(SDKMethodInterfaces.MethodCallUpdateSignin this.sdk = sdk; } - public UpdateSigningKeyRequestBuilder keyId(java.lang.String keyId) { + public UpdateSigningKeyRequestBuilder keyId(String keyId) { Utils.checkNotNull(keyId, "keyId"); this.keyId = keyId; return this; } - public UpdateSigningKeyRequestBuilder requestBody(studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody requestBody) { + public UpdateSigningKeyRequestBuilder requestBody(UpdateSigningKeyRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java index 36b502d..ab708b8 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java index 7884407..c338b01 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java @@ -18,13 +18,13 @@ public UpdateStreamRequestBuilder(SDKMethodInterfaces.MethodCallUpdateStream sdk this.sdk = sdk; } - public UpdateStreamRequestBuilder id(java.lang.String id) { + public UpdateStreamRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public UpdateStreamRequestBuilder streamPatchPayload(studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload) { + public UpdateStreamRequestBuilder streamPatchPayload(StreamPatchPayload streamPatchPayload) { Utils.checkNotNull(streamPatchPayload, "streamPatchPayload"); this.streamPatchPayload = streamPatchPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java index a2697f0..3188936 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java index 5ee1a06..064351a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java @@ -18,13 +18,13 @@ public UpdateWebhookRequestBuilder(SDKMethodInterfaces.MethodCallUpdateWebhook s this.sdk = sdk; } - public UpdateWebhookRequestBuilder id(java.lang.String id) { + public UpdateWebhookRequestBuilder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public UpdateWebhookRequestBuilder webhook(studio.livepeer.livepeer.models.components.WebhookInput webhook) { + public UpdateWebhookRequestBuilder webhook(WebhookInput webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java index 7bdaa17..ecdb0c1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java @@ -15,8 +15,8 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.models.components.Webhook; -import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java index c32ae04..c43c0f3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java @@ -16,7 +16,7 @@ public UploadAssetRequestBuilder(SDKMethodInterfaces.MethodCallUploadAsset sdk) this.sdk = sdk; } - public UploadAssetRequestBuilder request(studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload request) { + public UploadAssetRequestBuilder request(NewAssetFromUrlPayload request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java index a02e51d..c47e143 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java @@ -15,7 +15,7 @@ import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; -import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.models.components.Error; import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java b/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java index 9b6ab68..f856e0e 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java +++ b/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java @@ -35,7 +35,7 @@ public class OneOfDeserializer extends StdDeserializer { private static final long serialVersionUID = -1; - private final List typeReferences; // oneOf subschemas + private final transient List typeReferences; // oneOf subschemas private final Class cls; private final boolean strict; private final ObjectMapper mapper; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Options.java b/src/main/java/studio/livepeer/livepeer/utils/Options.java index 5cf3cc8..6c61a72 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Options.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Options.java @@ -13,14 +13,14 @@ public enum Option { RETRY_CONFIG; } - private Optional retryConfig = Optional.empty(); + private Optional retryConfig = Optional.empty(); - private Options(Optional retryConfig) { + private Options(Optional retryConfig) { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = retryConfig; } - public Optional retryConfig() { + public Optional retryConfig() { return retryConfig; } @@ -36,17 +36,17 @@ public final static Builder builder() { public final static class Builder { - private Optional retryConfig = Optional.empty(); + private Optional retryConfig = Optional.empty(); private Builder() {} - public Builder retryConfig(studio.livepeer.livepeer.utils.RetryConfig retryConfig) throws IllegalArgumentException { + public Builder retryConfig(RetryConfig retryConfig) throws IllegalArgumentException { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = Optional.of(retryConfig); return this; } - public Builder retryConfig(Optional retryConfig) throws IllegalArgumentException { + public Builder retryConfig(Optional retryConfig) throws IllegalArgumentException { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = retryConfig; return this; diff --git a/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java b/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java index 0f617bc..09d5112 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java +++ b/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java @@ -61,6 +61,8 @@ public static List parseQueryParams(Class t List pipeDelimitedParams = parseDelimitedParams(queryParamsMetadata, value, "|"); allParams.addAll(pipeDelimitedParams); break; + default: + break; } } } @@ -71,16 +73,15 @@ public static List parseQueryParams(Class t private static List parseSerializedParams(QueryParamsMetadata queryParamsMetadata, Object value) throws JsonProcessingException { List params = new ArrayList<>(); - switch (queryParamsMetadata.serialization) { case "json": ObjectMapper mapper = JSON.getMapper(); String json = mapper.writeValueAsString(value); - params.add(new BasicNameValuePair(queryParamsMetadata.name, json)); break; + default: + break; } - return params; } diff --git a/src/main/java/studio/livepeer/livepeer/utils/Security.java b/src/main/java/studio/livepeer/livepeer/utils/Security.java index d0e314d..5d5e4fe 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Security.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Security.java @@ -5,6 +5,7 @@ package studio.livepeer.livepeer.utils; import java.lang.reflect.Field; +import java.nio.charset.StandardCharsets; import java.util.Base64; public final class Security { @@ -122,7 +123,9 @@ private static void parseSecuritySchemeValue(HTTPRequest request, SecurityMetada request.addHeader(securityMetadata.name, Utils.prefixBearer(Utils.valToString(value))); break; case "oauth2": - request.addHeader(securityMetadata.name, Utils.prefixBearer(Utils.valToString(value))); + if (!"client_credentials".equals(schemeMetadata.subtype)) { + request.addHeader(securityMetadata.name, Utils.prefixBearer(Utils.valToString(value))); + } break; case "http": switch (schemeMetadata.subtype) { @@ -171,6 +174,9 @@ private static void parseBasicAuthScheme(HTTPRequest requestBuilder, Object sche } requestBuilder.addHeader("Authorization", - "Basic " + Base64.getEncoder().encodeToString(String.format("%s:%s", username, password).getBytes())); + "Basic " + + Base64.getEncoder() + .encodeToString(String.format("%s:%s", username, password) + .getBytes(StandardCharsets.UTF_8))); } } \ No newline at end of file diff --git a/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java b/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java index 9df9c0a..b563da6 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java +++ b/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java @@ -37,7 +37,12 @@ public TypeReference typeReference() { public JsonShape shape() { return shape; } - + + @Override + public String toString() { + return String.valueOf(value); + } + public static TypedObject of(T value, JsonShape shape, TypeReference typeReference) { return new TypedObject(value, shape, typeReference); } diff --git a/src/main/java/studio/livepeer/livepeer/utils/Utils.java b/src/main/java/studio/livepeer/livepeer/utils/Utils.java index a0a07ad..a56b585 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Utils.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Utils.java @@ -4,36 +4,44 @@ package studio.livepeer.livepeer.utils; -import java.io.InputStream; import java.io.ByteArrayInputStream; +import java.io.File; import java.io.IOException; +import java.io.InputStream; +import java.io.UncheckedIOException; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.math.BigDecimal; import java.math.BigInteger; import java.net.URI; +import java.net.URISyntaxException; import java.net.URLEncoder; import java.net.http.HttpClient.Version; import java.net.http.HttpHeaders; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.nio.file.StandardOpenOption; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; -import java.util.concurrent.Callable; -import java.util.function.BiPredicate; import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Map.Entry; import java.util.NoSuchElementException; import java.util.Optional; +import java.util.UUID; +import java.util.concurrent.Callable; +import java.util.function.BiPredicate; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; @@ -44,7 +52,6 @@ import org.apache.commons.io.IOUtils; import org.apache.http.NameValuePair; - import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.core.JsonProcessingException; @@ -137,7 +144,7 @@ public static String generateURL(Class type, String baseURL, String path, pathParams.put(pathParamsMetadata.name, String.join(",", - array.stream().map(v -> Utils.valToString(v)) + array.stream().map(v -> valToString(v)) .collect(Collectors.toList()))); break; case MAP: @@ -149,17 +156,17 @@ public static String generateURL(Class type, String baseURL, String path, pathParams.put(pathParamsMetadata.name, String.join(",", map.entrySet().stream().map(e -> { if (pathParamsMetadata.explode) { - return String.format("%s=%s", Utils.valToString(e.getKey()), - Utils.valToString(e.getValue())); + return String.format("%s=%s", valToString(e.getKey()), + valToString(e.getValue())); } else { - return String.format("%s,%s", Utils.valToString(e.getKey()), - Utils.valToString(e.getValue())); + return String.format("%s,%s", valToString(e.getKey()), + valToString(e.getValue())); } }).collect(Collectors.toList()))); break; case OBJECT: if (!allowIntrospection(value.getClass())) { - pathParams.put(pathParamsMetadata.name, Utils.valToString(value)); + pathParams.put(pathParamsMetadata.name, valToString(value)); break; } List values = new ArrayList<>(); @@ -180,17 +187,17 @@ public static String generateURL(Class type, String baseURL, String path, if (pathParamsMetadata.explode) { values.add(String.format("%s=%s", valuePathParamsMetadata.name, - Utils.valToString(val))); + valToString(val))); } else { values.add(String.format("%s,%s", valuePathParamsMetadata.name, - Utils.valToString(val))); + valToString(val))); } } pathParams.put(pathParamsMetadata.name, String.join(",", values)); break; default: - pathParams.put(pathParamsMetadata.name, Utils.valToString(value)); + pathParams.put(pathParamsMetadata.name, valToString(value)); break; } } @@ -287,7 +294,7 @@ public static String templateUrl(String url, Map params) { String key = match.substring(1, match.length() - 1); String value = params.get(key); if (value != null) { - m.appendReplacement(sb, value); + m.appendReplacement(sb, URLEncoder.encode(value, StandardCharsets.UTF_8)); } } m.appendTail(sb); @@ -344,10 +351,10 @@ public static Map> getHeadersFromMetadata(Object headers, M if (headerMetadata.explode) { items.add( String.format("%s=%s", valueHeaderMetadata.name, - Utils.valToString(valueFieldValue))); + valToString(valueFieldValue))); } else { items.add(valueHeaderMetadata.name); - items.add(Utils.valToString(valueFieldValue)); + items.add(valToString(valueFieldValue)); } } @@ -370,11 +377,11 @@ public static Map> getHeadersFromMetadata(Object headers, M for (Map.Entry entry : map.entrySet()) { if (headerMetadata.explode) { - items.add(String.format("%s=%s", Utils.valToString(entry.getKey()), - Utils.valToString(entry.getValue()))); + items.add(String.format("%s=%s", valToString(entry.getKey()), + valToString(entry.getValue()))); } else { - items.add(Utils.valToString(entry.getKey())); - items.add(Utils.valToString(entry.getValue())); + items.add(valToString(entry.getKey())); + items.add(valToString(entry.getValue())); } } @@ -397,7 +404,7 @@ public static Map> getHeadersFromMetadata(Object headers, M List items = new ArrayList<>(); for (Object item : array) { - items.add(Utils.valToString(item)); + items.add(valToString(item)); } if (!result.containsKey(headerMetadata.name)) { @@ -415,7 +422,7 @@ public static Map> getHeadersFromMetadata(Object headers, M } List values = result.get(headerMetadata.name); - values.add(Utils.valToString(value)); + values.add(valToString(value)); break; } } @@ -425,17 +432,16 @@ public static Map> getHeadersFromMetadata(Object headers, M } public static String valToString(Object value) { - switch (Types.getType(value.getClass())) { - case ENUM: - try { - Field field = value.getClass().getDeclaredField("value"); - field.setAccessible(true); - return String.valueOf(field.get(value)); - } catch (Exception e) { - return "ERROR_UNKNOWN_VALUE"; - } - default: - return String.valueOf(resolveOptionals(value)); + if (value.getClass().isEnum()) { + try { + Field field = value.getClass().getDeclaredField("value"); + field.setAccessible(true); + return String.valueOf(field.get(value)); + } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) { + return "ERROR_UNKNOWN_VALUE"; + } + } else { + return String.valueOf(resolveOptionals(value)); } } @@ -464,16 +470,15 @@ public static Object populateGlobal(Object value, String fieldName, String param private static Map parseSerializedParams(PathParamsMetadata pathParamsMetadata, Object value) throws JsonProcessingException { Map params = new HashMap<>(); - switch (pathParamsMetadata.serialization) { case "json": ObjectMapper mapper = JSON.getMapper(); String json = mapper.writeValueAsString(value); - - params.put(pathParamsMetadata.name, URLEncoder.encode(json, StandardCharsets.UTF_8)); + params.put(pathParamsMetadata.name, json); + break; + default: break; } - return params; } @@ -961,7 +966,7 @@ public static final class HttpResponseCached implements HttpResponse response) throws IOException { this.response = response; - this.bytes = Utils.toByteArrayAndClose(response.body()); + this.bytes = toByteArrayAndClose(response.body()); } public String bodyAsUtf8() { @@ -1050,4 +1055,130 @@ public static String discriminatorToString(Object o) { return (String) o; } } + + public static void recordTest(String id) { + try { + new File("build").mkdir(); + Files.writeString(Paths.get("build/test-javav2-record.txt"), id + "\n", StandardOpenOption.CREATE, + StandardOpenOption.APPEND); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + } + + /** + * Returns an equivalent url with query parameters sorted by name. Sort is + * stable in that parameters with the same name will not be reordered. + * + * @param url input + * @return url with query parameters sorted by name + */ + public static String sortQueryParameters(String url) { + if (url == null || url.isBlank()) { + return ""; + } + String[] parts = url.split("\\?"); + if (parts.length == 1) { + return url; + } + String query = parts[1]; + String[] params = query.split("&"); + sortByDelimitedKey(params, "="); + return parts[0] + "?" + Arrays.stream(params).collect(Collectors.joining("&")); + } + + public static Object sortSerializedMaps(Object input, String regex, String delim) { + if (input == null) { + return input; + } else if (input instanceof String) { + return sortMapString((String) input, regex, delim); + } else if (input.getClass().isArray()) { + Object[] a = (Object[]) input; + String[] b = new String[a.length]; + for (int i = 0; i < a.length; i++) { + if (!(a[i] instanceof String)) { + throw new IllegalArgumentException("expected array item type of String, found " + a[i]); + } + b[i] = sortMapString((String) a[i], regex, delim); + } + return b; + } else if (input instanceof Map) { + @SuppressWarnings("unchecked") + Map a = (Map) input; + Map b = new LinkedHashMap<>(); + for (Entry entry: a.entrySet()) { + if (!(entry.getKey() instanceof String)) { + throw new IllegalArgumentException("expected map key type of String, found " + entry.getKey()); + } + if (!(entry.getValue() instanceof String)) { + throw new IllegalArgumentException("expected map value type of String, found " + entry.getValue()); + } + b.put((String) entry.getKey(), sortMapString((String) entry.getValue(), regex, delim)); + } + return b; + } else { + throw new IllegalArgumentException("unexpected type: " + input.getClass()); + } + } + + private static String sortMapString(String input, String regex, String delim) { + return Pattern.compile(regex).matcher(input).replaceAll(m -> { + String escapedDelim = Pattern.quote(delim); + String result = m.group(); + for (int i = 1; i <= m.groupCount(); i++) { + final String match = m.group(i); + String[] pairs; + if (match.contains("=")) { + pairs = match.split(escapedDelim); + sortByDelimitedKey(pairs, "="); + } else { + String[] values = match.split(escapedDelim); + if (values.length == 1) { + pairs = values; + } else { + pairs = new String[values.length / 2]; + for (int j = 0; j < values.length; j += 2) { + pairs[j / 2] = values[j] + delim + values[j + 1]; + } + } + sortByDelimitedKey(pairs, delim); + } + String joined = Arrays.stream(pairs).collect(Collectors.joining(delim)); + result = result.replace(m.group(i), joined); + } + return result; + }); + } + + private static void sortByDelimitedKey(String[] array, String delim) { + Arrays.sort(array, (a, b) -> { + String escapedDelim = Pattern.quote(delim); + String aKey = a.split(escapedDelim)[0]; + String bKey = b.split(escapedDelim)[0]; + return aKey.compareTo(bKey); + }); + } + + public static boolean isPresentAndNotNull(Optional x) { + return x.isPresent(); + } + + public static boolean isPresentAndNotNull(JsonNullable x) { + return x.isPresent() && x.get() != null; + } + + private static final String OPEN_BRACKET_MARKER = UUID.randomUUID().toString().replace("-", ""); + private static final String CLOSE_BRACKET_MARKER = UUID.randomUUID().toString().replace("-", ""); + + public static String urlEncode(String s) { + // Ensure that complies with RFC 2732 (URLEncoder does not and we don't want to + // encode [, ] chars) + return URLEncoder.encode( // + s.replace("[", OPEN_BRACKET_MARKER) // + .replace("]", CLOSE_BRACKET_MARKER), // + StandardCharsets.UTF_8) // + .replace(OPEN_BRACKET_MARKER, "[") // + .replace(CLOSE_BRACKET_MARKER, "]"); + } + }