diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0552d74..e496340 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,19 @@ lockVersion: 2.0.0 id: b4f7f2df-6c4d-4150-a18f-8b74fe44eb22 management: - docChecksum: 59634240879b8bce1b699c21c7f4f276 + docChecksum: d5178fea7af23529e09cd3b74d1d23c1 docVersion: 1.0.0 - speakeasyVersion: 1.377.1 - generationVersion: 2.404.1 - releaseVersion: 0.5.0 - configChecksum: 3b33f25e938c6a67453f8e636f88064a + speakeasyVersion: 1.443.0 + generationVersion: 2.461.4 + releaseVersion: 0.6.0 + configChecksum: 261f1ef433cf1fcff4cf7f0aae85faad repoURL: https://github.com/livepeer/livepeer-java.git features: java: additionalDependencies: 0.1.0 + additionalProperties: 0.0.1 constsAndDefaults: 0.1.1 - core: 3.29.4 + core: 3.32.1 deprecations: 2.81.1 flattening: 2.81.1 globalSecurity: 2.82.7 @@ -23,723 +24,1253 @@ features: nameOverrides: 2.81.3 nullables: 0.1.0 sdkHooks: 0.1.0 - unions: 0.0.5 + tests: 0.1.0 + unions: 0.0.6 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/TaskUpload.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/TaskUpload.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/QueryParameter.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/Utf8UrlEncoder.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"}]}, "name": "test_stream"} + 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": {"upload": {"assetSpec": {"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": [], "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": "deleting", "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": []}}}, "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": {"upload": {"assetSpec": {"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": "waiting", "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}]}}, "key": ""}, "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": {"upload": {"assetSpec": {"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://brisk-seafood.net/"}, "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": "deleting", "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}]}}, "key": ""}, "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..36cdbde 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -11,8 +11,9 @@ generation: requestResponseComponentNamesFeb2024: true auth: oAuth2ClientCredentialsEnabled: true + oAuth2PasswordEnabled: false java: - version: 0.5.0 + version: 0.6.0 additionalDependencies: [] additionalPlugins: [] artifactID: livepeer @@ -20,6 +21,7 @@ java: companyEmail: info@mycompany.com companyName: My Company companyURL: www.mycompany.com + defaultErrorName: SDKError flattenGlobalSecurity: true githubURL: github.com/owner/repo groupID: studio.livepeer diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 647effc..50c99dc 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.377.1 +speakeasyVersion: 1.443.0 sources: Livepeer: sourceNamespace: livepeer @@ -8,24 +8,24 @@ sources: - latest livepeer-studio-api: sourceNamespace: livepeer-studio-api - sourceRevisionDigest: sha256:9333277669bf8fb46063579d611518570aff37c2bfb20e0a90fd3b0c030ca2ad - sourceBlobDigest: sha256:1705d75b1de89f7c2e60643ed2c2aaced22b577da6f2935b1c2e09d533bb7182 + sourceRevisionDigest: sha256:3b7618ca6295be859418a080a6cd1d3a803c4d66fe637fe51c38f72a843ae9e5 + sourceBlobDigest: sha256:be2290828376735e5ff78d923e40b7d642529225d1d8bf6cd33b570c92ef2e84 tags: - latest - - main + - speakeasy-sdk-regen-1731111021 targets: livepeer-java: source: livepeer-studio-api sourceNamespace: livepeer-studio-api - sourceRevisionDigest: sha256:9333277669bf8fb46063579d611518570aff37c2bfb20e0a90fd3b0c030ca2ad - sourceBlobDigest: sha256:1705d75b1de89f7c2e60643ed2c2aaced22b577da6f2935b1c2e09d533bb7182 - outLocation: /github/workspace/repo + sourceRevisionDigest: sha256:3b7618ca6295be859418a080a6cd1d3a803c4d66fe637fe51c38f72a843ae9e5 + sourceBlobDigest: sha256:be2290828376735e5ff78d923e40b7d642529225d1d8bf6cd33b570c92ef2e84 + codeSamplesNamespace: livepeer-studio-api-code-samples + codeSamplesRevisionDigest: sha256:d455f5b4361caadf2563960177d2ef8d19bccd38f90010593a78ee543b72df4b 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 +33,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: @@ -41,3 +42,5 @@ workflow: source: livepeer-studio-api codeSamples: output: codeSamples.yaml + registry: + location: registry.speakeasyapi.dev/livepeer/livepeer-studio/livepeer-studio-api-code-samples diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index dabdf10..ab3a63a 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -13,3 +13,5 @@ targets: source: livepeer-studio-api codeSamples: output: codeSamples.yaml + registry: + location: registry.speakeasyapi.dev/livepeer/livepeer-studio/livepeer-studio-api-code-samples diff --git a/README.md b/README.md index cb7a2f0..3e93e03 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) - -* [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 +
+Available methods -### [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) -### [room()](docs/sdks/room/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) + +* [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. -| Error Object | Status Code | Content Type | -| ---------------------- | ---------------------- | ---------------------- | -| models/errors/Error | 404 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +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 Type | Status Code | Content Type | +| ---------------------- | ----------- | ---------------- | +| models/errors/Error | 404 | application/json | +| 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 } - } } ``` @@ -310,132 +317,9 @@ public class Application { ## Server Selection -### Select Server by Index - -You can override the default server globally by passing a server index to the `serverIndex` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: - -| # | Server | Variables | -| - | ------ | --------- | -| 0 | `https://livepeer.studio/api` | None | - -#### Example - -```java -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.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() - .serverIndex(0) - .apiKey("") - .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) - .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() - .width(1280L) - .name("720p") - .height(720L) - .bitrate(3000000L) - .fps(30L) - .fpsDen(1L) - .quality(23L) - .gop("2") - .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(); - - 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; - } - - } -} -``` - - ### Override Server URL Per-Client -The default server can also be overridden globally by passing a URL to the `serverURL` builder method when initializing the SDK client instance. For example: +The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example: ```java package hello.world; @@ -457,19 +341,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 +412,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 } - } } ``` @@ -556,9 +431,9 @@ public class Application { This SDK supports the following security scheme globally: -| Name | Type | Scheme | -| ----------- | ----------- | ----------- | -| `apiKey` | http | HTTP Bearer | +| Name | Type | Scheme | +| -------- | ---- | ----------- | +| `apiKey` | http | HTTP Bearer | To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example: ```java @@ -582,18 +457,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 +527,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..53d161d 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-11-22 00:11:32 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.443.0 (2.461.4) 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..dad2085 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 @@ -122,10 +122,11 @@ if (!project.hasProperty('skip.signing')) { } dependencies { + api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2' implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' - implementation 'org.openapitools:jackson-databind-nullable:0.2.6' + api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'org.apache.httpcomponents:httpclient:4.5.14' implementation 'org.apache.httpcomponents:httpmime:4.5.14' implementation 'commons-io:commons-io:2.15.1' diff --git a/codeSamples.yaml b/codeSamples.yaml index cde5191..103e1b8 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() @@ -1716,792 +1136,587 @@ actions: .encoder(TranscodeProfileEncoder.H264) .build())) .build()) + .name("test_stream") .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..51c510e 100644 --- a/docs/models/components/Asset.md +++ b/docs/models/components/Asset.md @@ -6,21 +6,21 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `type` | [Optional](../../models/components/AssetType.md) | :heavy_minus_sign: | Type of the asset. | video | -| `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 | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `type` | [Optional\](../../models/components/AssetType.md) | :heavy_minus_sign: | Type of the asset. | video | +| `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/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 | | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | Requested profiles for the asset to be transcoded into. Configured
on the upload APIs payload or through the `stream.recordingSpec`
field for recordings. If not specified, default profiles are derived
based on the source input. If this is a recording, the source will
not be present in this list but will be available for playback.
| | -| `storage` | [Optional](../../models/components/AssetStorage.md) | :heavy_minus_sign: | N/A | | -| `status` | [Optional](../../models/components/AssetStatus.md) | :heavy_minus_sign: | Status of the asset | | +| `creatorId` | [Optional\](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | Requested profiles for the asset to be transcoded into. Configured
on the upload APIs payload or through the `stream.recordingSpec`
field for recordings. If not specified, default profiles are derived
based on the source input. If this is a recording, the source will
not be present in this list but will be available for playback.
| | +| `storage` | [Optional\](../../models/components/AssetStorage.md) | :heavy_minus_sign: | N/A | | +| `status` | [Optional\](../../models/components/AssetStatus.md) | :heavy_minus_sign: | Status of the asset | | | `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which asset was created | 1587667174725 | -| `createdByTokenName` | *Optional* | :heavy_minus_sign: | Name of the token used to create this object | | -| `size` | *Optional* | :heavy_minus_sign: | Size of the asset in bytes | 84934509 | -| `hash` | List<[Hash](../../models/components/Hash.md)> | :heavy_minus_sign: | Hash of the asset | | -| `videoSpec` | [Optional](../../models/components/VideoSpec.md) | :heavy_minus_sign: | Video metadata | | \ No newline at end of file +| `projectId` | *Optional\* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which asset was created | 1587667174725 | +| `createdByTokenName` | *Optional\* | :heavy_minus_sign: | Name of the token used to create this object | | +| `size` | *Optional\* | :heavy_minus_sign: | Size of the asset in bytes | 84934509 | +| `hash` | List\<[Hash](../../models/components/Hash.md)> | :heavy_minus_sign: | Hash of the asset | | +| `videoSpec` | [Optional\](../../models/components/VideoSpec.md) | :heavy_minus_sign: | Video metadata | | \ No newline at end of file diff --git a/docs/models/components/AssetIpfs.md b/docs/models/components/AssetIpfs.md index fa75d65..1a0fc33 100644 --- a/docs/models/components/AssetIpfs.md +++ b/docs/models/components/AssetIpfs.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `spec` | [Optional](../../models/components/AssetSpec.md) | :heavy_minus_sign: | N/A | | -| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | | -| `nftMetadata` | [Optional](../../models/components/IpfsFileInfo.md) | :heavy_minus_sign: | N/A | | -| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was
updated
| 1587667174725 | \ No newline at end of file +| `spec` | [Optional\](../../models/components/AssetSpec.md) | :heavy_minus_sign: | N/A | | +| `dollarRef` | *Optional\* | :heavy_minus_sign: | N/A | | +| `nftMetadata` | [Optional\](../../models/components/IpfsFileInfo.md) | :heavy_minus_sign: | N/A | | +| `updatedAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was
updated
| 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/AssetPatchPayload.md b/docs/models/components/AssetPatchPayload.md index b133cb4..93cc78f 100644 --- a/docs/models/components/AssetPatchPayload.md +++ b/docs/models/components/AssetPatchPayload.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `name` | *Optional* | :heavy_minus_sign: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `storage` | [Optional](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `name` | *Optional\* | :heavy_minus_sign: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | +| `creatorId` | [Optional\](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `playbackPolicy` | [JsonNullable\](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `storage` | [Optional\](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/AssetSpec.md b/docs/models/components/AssetSpec.md index 6ac9398..1397e67 100644 --- a/docs/models/components/AssetSpec.md +++ b/docs/models/components/AssetSpec.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `nftMetadataTemplate` | [Optional](../../models/components/AssetNftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| -| `nftMetadata` | [Optional](../../models/components/AssetNftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file +| `nftMetadataTemplate` | [Optional\](../../models/components/AssetNftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| +| `nftMetadata` | [Optional\](../../models/components/AssetNftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file diff --git a/docs/models/components/AssetStatus.md b/docs/models/components/AssetStatus.md index 1e44dcf..b6c0d7a 100644 --- a/docs/models/components/AssetStatus.md +++ b/docs/models/components/AssetStatus.md @@ -9,5 +9,5 @@ Status of the asset | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `phase` | [AssetPhase](../../models/components/AssetPhase.md) | :heavy_check_mark: | Phase of the asset | | | `updatedAt` | *double* | :heavy_check_mark: | Timestamp (in milliseconds) at which the asset was last updated | 1587667174725 | -| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task creating this asset. | | -| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the asset creation failed. | | \ No newline at end of file +| `progress` | *Optional\* | :heavy_minus_sign: | Current progress of the task creating this asset. | | +| `errorMessage` | *Optional\* | :heavy_minus_sign: | Error message if the asset creation failed. | | \ No newline at end of file diff --git a/docs/models/components/AssetStorage.md b/docs/models/components/AssetStorage.md index c980349..f10b30c 100644 --- a/docs/models/components/AssetStorage.md +++ b/docs/models/components/AssetStorage.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `ipfs` | [Optional](../../models/components/AssetIpfs.md) | :heavy_minus_sign: | N/A | -| `status` | [Optional](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `ipfs` | [Optional\](../../models/components/AssetIpfs.md) | :heavy_minus_sign: | N/A | +| `status` | [Optional\](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Attestation.md b/docs/models/components/Attestation.md index d78ee96..683f0f9 100644 --- a/docs/models/components/Attestation.md +++ b/docs/models/components/Attestation.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | -| `primaryType` | [PrimaryType](../../models/components/PrimaryType.md) | :heavy_check_mark: | Video Metadata EIP-712 primaryType | VideoAttestation | -| `domain` | [Domain](../../models/components/Domain.md) | :heavy_check_mark: | Video Metadata EIP-712 domain | | -| `message` | [Message](../../models/components/Message.md) | :heavy_check_mark: | Video Metadata EIP-712 message content | | -| `signature` | *String* | :heavy_check_mark: | Video Metadata EIP-712 message signature | 1311768467294899700 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the object was created | 1587667174725 | -| `signatureType` | [Optional](../../models/components/SignatureType.md) | :heavy_minus_sign: | N/A | eip712 | -| `storage` | [Optional](../../models/components/AttestationStorage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `id` | *Optional\* | :heavy_minus_sign: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | +| `primaryType` | [PrimaryType](../../models/components/PrimaryType.md) | :heavy_check_mark: | Video Metadata EIP-712 primaryType | VideoAttestation | +| `domain` | [Domain](../../models/components/Domain.md) | :heavy_check_mark: | Video Metadata EIP-712 domain | | +| `message` | [Message](../../models/components/Message.md) | :heavy_check_mark: | Video Metadata EIP-712 message content | | +| `signature` | *String* | :heavy_check_mark: | Video Metadata EIP-712 message signature | 1311768467294899700 | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the object was created | 1587667174725 | +| `signatureType` | [Optional\](../../models/components/SignatureType.md) | :heavy_minus_sign: | N/A | eip712 | +| `storage` | [Optional\](../../models/components/AttestationStorage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/AttestationIpfs.md b/docs/models/components/AttestationIpfs.md index 37b9214..c451487 100644 --- a/docs/models/components/AttestationIpfs.md +++ b/docs/models/components/AttestationIpfs.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | | -| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was updated
| 1587667174725 | \ No newline at end of file +| `dollarRef` | *Optional\* | :heavy_minus_sign: | N/A | | +| `updatedAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was updated
| 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/AttestationStorage.md b/docs/models/components/AttestationStorage.md index ba5b9da..764c4b1 100644 --- a/docs/models/components/AttestationStorage.md +++ b/docs/models/components/AttestationStorage.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `ipfs` | [Optional](../../models/components/AttestationIpfs.md) | :heavy_minus_sign: | N/A | -| `status` | [Optional](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ipfs` | [Optional\](../../models/components/AttestationIpfs.md) | :heavy_minus_sign: | N/A | +| `status` | [Optional\](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Clip.md b/docs/models/components/Clip.md index 5001d81..f158df4 100644 --- a/docs/models/components/Clip.md +++ b/docs/models/components/Clip.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `url` | *Optional* | :heavy_minus_sign: | URL of the asset to "clip" | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | -| `clipStrategy` | [Optional](../../models/components/ClipStrategy.md) | :heavy_minus_sign: | Strategy to use for clipping the asset. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | | -| `catalystPipelineStrategy` | [Optional](../../models/components/CatalystPipelineStrategy.md) | :heavy_minus_sign: | Force to use a specific strategy in the Catalyst pipeline. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | catalyst_ffmpeg | -| `sessionId` | *Optional* | :heavy_minus_sign: | ID of the session | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `inputId` | *Optional* | :heavy_minus_sign: | ID of the input asset or stream | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file +| `url` | *Optional\* | :heavy_minus_sign: | URL of the asset to "clip" | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | +| `clipStrategy` | [Optional\](../../models/components/ClipStrategy.md) | :heavy_minus_sign: | Strategy to use for clipping the asset. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | | +| `catalystPipelineStrategy` | [Optional\](../../models/components/CatalystPipelineStrategy.md) | :heavy_minus_sign: | Force to use a specific strategy in the Catalyst pipeline. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | catalyst_ffmpeg | +| `sessionId` | *Optional\* | :heavy_minus_sign: | ID of the session | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `inputId` | *Optional\* | :heavy_minus_sign: | ID of the input asset or stream | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file diff --git a/docs/models/components/ClipPayload.md b/docs/models/components/ClipPayload.md index a6c9c9b..9139fde 100644 --- a/docs/models/components/ClipPayload.md +++ b/docs/models/components/ClipPayload.md @@ -7,6 +7,6 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `playbackId` | *String* | :heavy_check_mark: | The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. | eaw4nk06ts2d0mzb | | `startTime` | *double* | :heavy_check_mark: | The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `endTime` | *Optional* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `name` | *Optional* | :heavy_minus_sign: | The optional friendly name of the clip to create. | My Clip | -| `sessionId` | *Optional* | :heavy_minus_sign: | The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. | de7818e7-610a-4057-8f6f-b785dc1e6f88 | \ No newline at end of file +| `endTime` | *Optional\* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | +| `name` | *Optional\* | :heavy_minus_sign: | The optional friendly name of the clip to create. | My Clip | +| `sessionId` | *Optional\* | :heavy_minus_sign: | The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. | de7818e7-610a-4057-8f6f-b785dc1e6f88 | \ No newline at end of file diff --git a/docs/models/components/ClipStrategy.md b/docs/models/components/ClipStrategy.md index 51ee330..0aa2ad0 100644 --- a/docs/models/components/ClipStrategy.md +++ b/docs/models/components/ClipStrategy.md @@ -7,6 +7,6 @@ Strategy to use for clipping the asset. If not specified, the default strategy t | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `startTime` | *Optional* | :heavy_minus_sign: | The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `endTime` | *Optional* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. | eaw4nk06ts2d0mzb | \ No newline at end of file +| `startTime` | *Optional\* | :heavy_minus_sign: | The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | +| `endTime` | *Optional\* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. | eaw4nk06ts2d0mzb | \ No newline at end of file diff --git a/docs/models/components/CreateRoomResponse.md b/docs/models/components/CreateRoomResponse.md index d104426..8245d72 100644 --- a/docs/models/components/CreateRoomResponse.md +++ b/docs/models/components/CreateRoomResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *Optional* | :heavy_minus_sign: | The ID of the room | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | \ No newline at end of file +| `id` | *Optional\* | :heavy_minus_sign: | The ID of the room | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | \ No newline at end of file diff --git a/docs/models/components/Custom.md b/docs/models/components/Custom.md index 2620fca..0101c60 100644 --- a/docs/models/components/Custom.md +++ b/docs/models/components/Custom.md @@ -8,5 +8,5 @@ custom URL parameters for the export task | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `url` | *String* | :heavy_check_mark: | URL where to export the asset | https://s3.amazonaws.com/my-bucket/path/filename.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=LLMMB | -| `method` | *Optional* | :heavy_minus_sign: | Method to use on the export request | POST | -| `headers` | Map | :heavy_minus_sign: | Headers to add to the export request | | \ No newline at end of file +| `method` | *Optional\* | :heavy_minus_sign: | Method to use on the export request | POST | +| `headers` | Map\ | :heavy_minus_sign: | Headers to add to the export request | | \ No newline at end of file diff --git a/docs/models/components/DvrPlayback.md b/docs/models/components/DvrPlayback.md index 646cf7a..98e0edb 100644 --- a/docs/models/components/DvrPlayback.md +++ b/docs/models/components/DvrPlayback.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `hrn` | [Optional](../../models/components/PlaybackInfoHrn.md) | :heavy_minus_sign: | N/A | MP4 | -| `type` | [Optional](../../models/components/PlaybackInfoMetaDvrPlaybackType.md) | :heavy_minus_sign: | N/A | html5/video/mp4 | -| `url` | *Optional* | :heavy_minus_sign: | N/A | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | -| `error` | *Optional* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `hrn` | [Optional\](../../models/components/PlaybackInfoHrn.md) | :heavy_minus_sign: | N/A | MP4 | +| `type` | [Optional\](../../models/components/PlaybackInfoMetaDvrPlaybackType.md) | :heavy_minus_sign: | N/A | html5/video/mp4 | +| `url` | *Optional\* | :heavy_minus_sign: | N/A | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | +| `error` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file 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..a2ba4c3 --- /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/Export.md b/docs/models/components/Export.md index 10f17f8..6a53263 100644 --- a/docs/models/components/Export.md +++ b/docs/models/components/Export.md @@ -5,6 +5,6 @@ Output of the export task ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `ipfs` | [Optional](../../models/components/TaskIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `ipfs` | [Optional\](../../models/components/TaskIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ExportData.md b/docs/models/components/ExportData.md index 281f40d..5f52bc7 100644 --- a/docs/models/components/ExportData.md +++ b/docs/models/components/ExportData.md @@ -5,6 +5,6 @@ Output of the export data task ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `ipfs` | [Optional](../../models/components/TaskOutputIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `ipfs` | [Optional\](../../models/components/TaskOutputIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/FfmpegProfile.md b/docs/models/components/FfmpegProfile.md index 8df3ef1..31d4bc3 100644 --- a/docs/models/components/FfmpegProfile.md +++ b/docs/models/components/FfmpegProfile.md @@ -12,8 +12,8 @@ Transcode profile | `height` | *long* | :heavy_check_mark: | N/A | 720 | | `bitrate` | *long* | :heavy_check_mark: | N/A | 3000000 | | `fps` | *long* | :heavy_check_mark: | N/A | 30 | -| `fpsDen` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `quality` | *Optional* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | -| `gop` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `profile` | [Optional](../../models/components/Profile.md) | :heavy_minus_sign: | N/A | H264Baseline | -| `encoder` | [Optional](../../models/components/Encoder.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `fpsDen` | *Optional\* | :heavy_minus_sign: | N/A | 1 | +| `quality` | *Optional\* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | +| `gop` | *Optional\* | :heavy_minus_sign: | N/A | 2 | +| `profile` | [Optional\](../../models/components/Profile.md) | :heavy_minus_sign: | N/A | H264Baseline | +| `encoder` | [Optional\](../../models/components/Encoder.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetRoomUserResponse.md b/docs/models/components/GetRoomUserResponse.md index 94ea838..51664db 100644 --- a/docs/models/components/GetRoomUserResponse.md +++ b/docs/models/components/GetRoomUserResponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `joinedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the user joined | 1687517025261 | -| `name` | *Optional* | :heavy_minus_sign: | The display name of the user | name | -| `isPublisher` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | -| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file +| `id` | *Optional\* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `joinedAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the user joined | 1687517025261 | +| `name` | *Optional\* | :heavy_minus_sign: | The display name of the user | name | +| `isPublisher` | *Optional\* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | +| `metadata` | *Optional\* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file diff --git a/docs/models/components/Hash.md b/docs/models/components/Hash.md index 17f177c..991f86c 100644 --- a/docs/models/components/Hash.md +++ b/docs/models/components/Hash.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `hash` | *Optional* | :heavy_minus_sign: | Hash of the asset | 9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57 | -| `algorithm` | *Optional* | :heavy_minus_sign: | Hash algorithm used to compute the hash | sha256 | \ No newline at end of file +| `hash` | *Optional\* | :heavy_minus_sign: | Hash of the asset | 9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57 | +| `algorithm` | *Optional\* | :heavy_minus_sign: | Hash algorithm used to compute the hash | sha256 | \ No newline at end of file diff --git a/docs/models/components/Ipfs1.md b/docs/models/components/Ipfs1.md index e400eb8..049f69e 100644 --- a/docs/models/components/Ipfs1.md +++ b/docs/models/components/Ipfs1.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `spec` | [JsonNullable](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `spec` | [JsonNullable\](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/IpfsExportParams.md b/docs/models/components/IpfsExportParams.md index 07775b8..8e10c90 100644 --- a/docs/models/components/IpfsExportParams.md +++ b/docs/models/components/IpfsExportParams.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | -| `pinata` | [Optional](../../models/components/Pinata.md) | :heavy_minus_sign: | Custom credentials for the Piñata service. Must have either
a JWT or an API key and an API secret.
| \ No newline at end of file +| `dollarRef` | *Optional\* | :heavy_minus_sign: | N/A | +| `pinata` | [Optional\](../../models/components/Pinata.md) | :heavy_minus_sign: | Custom credentials for the Piñata service. Must have either
a JWT or an API key and an API secret.
| \ No newline at end of file diff --git a/docs/models/components/IpfsFileInfo.md b/docs/models/components/IpfsFileInfo.md index 58a4638..75ce3d9 100644 --- a/docs/models/components/IpfsFileInfo.md +++ b/docs/models/components/IpfsFileInfo.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | | `cid` | *String* | :heavy_check_mark: | CID of the file on IPFS | -| `url` | *Optional* | :heavy_minus_sign: | URL with IPFS scheme for the file | -| `gatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | \ No newline at end of file +| `url` | *Optional\* | :heavy_minus_sign: | URL with IPFS scheme for the file | +| `gatewayUrl` | *Optional\* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | \ No newline at end of file diff --git a/docs/models/components/LastFailure.md b/docs/models/components/LastFailure.md index 125cfbd..4d54063 100644 --- a/docs/models/components/LastFailure.md +++ b/docs/models/components/LastFailure.md @@ -7,7 +7,7 @@ failure timestamp and error message with status code | Field | Type | Required | Description | Example | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `timestamp` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last failed | 1587667174725 | -| `error` | *Optional* | :heavy_minus_sign: | Webhook failure error message | Error message | -| `response` | *Optional* | :heavy_minus_sign: | Webhook failure response | Response body | -| `statusCode` | *Optional* | :heavy_minus_sign: | Webhook failure status code | 500 | \ No newline at end of file +| `timestamp` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last failed | 1587667174725 | +| `error` | *Optional\* | :heavy_minus_sign: | Webhook failure error message | Error message | +| `response` | *Optional\* | :heavy_minus_sign: | Webhook failure response | Response body | +| `statusCode` | *Optional\* | :heavy_minus_sign: | Webhook failure status code | 500 | \ No newline at end of file diff --git a/docs/models/components/Message.md b/docs/models/components/Message.md index c6207fd..98362a7 100644 --- a/docs/models/components/Message.md +++ b/docs/models/components/Message.md @@ -5,9 +5,9 @@ Video Metadata EIP-712 message content ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `video` | *String* | :heavy_check_mark: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | -| `attestations` | List<[Attestations](../../models/components/Attestations.md)> | :heavy_check_mark: | N/A | | -| `signer` | *String* | :heavy_check_mark: | N/A | 1311768467294899700 | -| `timestamp` | *double* | :heavy_check_mark: | N/A | 1587667174725 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `video` | *String* | :heavy_check_mark: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | +| `attestations` | List\<[Attestations](../../models/components/Attestations.md)> | :heavy_check_mark: | N/A | | +| `signer` | *String* | :heavy_check_mark: | N/A | 1311768467294899700 | +| `timestamp` | *double* | :heavy_check_mark: | N/A | 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/Meta.md b/docs/models/components/Meta.md index 1555f4b..b379644 100644 --- a/docs/models/components/Meta.md +++ b/docs/models/components/Meta.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `live` | [Optional](../../models/components/Live.md) | :heavy_minus_sign: | N/A | 0 | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `source` | List<[PlaybackInfoSource](../../models/components/PlaybackInfoSource.md)> | :heavy_check_mark: | N/A | | -| `dvrPlayback` | List<[DvrPlayback](../../models/components/DvrPlayback.md)> | :heavy_minus_sign: | N/A | | -| `attestation` | [Optional](../../models/components/Attestation.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `live` | [Optional\](../../models/components/Live.md) | :heavy_minus_sign: | N/A | 0 | +| `playbackPolicy` | [JsonNullable\](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `source` | List\<[PlaybackInfoSource](../../models/components/PlaybackInfoSource.md)> | :heavy_check_mark: | N/A | | +| `dvrPlayback` | List\<[DvrPlayback](../../models/components/DvrPlayback.md)> | :heavy_minus_sign: | N/A | | +| `attestation` | [Optional\](../../models/components/Attestation.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Multistream.md b/docs/models/components/Multistream.md index d221a15..15b7013 100644 --- a/docs/models/components/Multistream.md +++ b/docs/models/components/Multistream.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `targets` | List<[Target](../../models/components/Target.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file +| `targets` | List\<[Target](../../models/components/Target.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file diff --git a/docs/models/components/MultistreamTarget.md b/docs/models/components/MultistreamTarget.md index db6d018..8a2c6c2 100644 --- a/docs/models/components/MultistreamTarget.md +++ b/docs/models/components/MultistreamTarget.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | | -| ~~`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 | -| `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.
| | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which multistream target object was
created
| 1587667174725 | \ No newline at end of file +| `id` | *Optional\* | :heavy_minus_sign: | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | | +| ~~`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 | +| `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.
| | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which multistream target object was
created
| 1587667174725 | \ 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..b34eca0 --- /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/MultistreamTargetPatchPayload.md b/docs/models/components/MultistreamTargetPatchPayload.md index b88be5c..a1add11 100644 --- a/docs/models/components/MultistreamTargetPatchPayload.md +++ b/docs/models/components/MultistreamTargetPatchPayload.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | | +| `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 +| `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/NewAssetFromUrlPayload.md b/docs/models/components/NewAssetFromUrlPayload.md index 319a022..3015635 100644 --- a/docs/models/components/NewAssetFromUrlPayload.md +++ b/docs/models/components/NewAssetFromUrlPayload.md @@ -6,12 +6,12 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `staticMp4` | *Optional* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `storage` | [Optional](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | +| `staticMp4` | *Optional\* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | +| `playbackPolicy` | [JsonNullable\](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `creatorId` | [Optional\](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `storage` | [Optional\](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | | `url` | *String* | :heavy_check_mark: | URL where the asset contents can be retrieved, e.g. `https://s3.amazonaws.com/my-bucket/path/filename.mp4`.
For an IPFS source, this should be similar to: `ipfs://{CID}`. For an Arweave
source: `ar://{CID}`.
| https://s3.amazonaws.com/my-bucket/path/filename.mp4 | -| `encryption` | [Optional](../../models/components/Encryption.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file +| `encryption` | [Optional\](../../models/components/Encryption.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional\* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional\* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file diff --git a/docs/models/components/NewAssetPayload.md b/docs/models/components/NewAssetPayload.md index e55a41a..20eef0a 100644 --- a/docs/models/components/NewAssetPayload.md +++ b/docs/models/components/NewAssetPayload.md @@ -6,11 +6,11 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `staticMp4` | *Optional* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `storage` | [Optional](../../models/components/NewAssetPayloadStorage.md) | :heavy_minus_sign: | N/A | | -| `encryption` | [Optional](../../models/components/NewAssetPayloadEncryption.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file +| `staticMp4` | *Optional\* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | +| `playbackPolicy` | [JsonNullable\](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `creatorId` | [Optional\](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `storage` | [Optional\](../../models/components/NewAssetPayloadStorage.md) | :heavy_minus_sign: | N/A | | +| `encryption` | [Optional\](../../models/components/NewAssetPayloadEncryption.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional\* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional\* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file diff --git a/docs/models/components/NewAssetPayloadIpfs1.md b/docs/models/components/NewAssetPayloadIpfs1.md index 5b7fd53..225de3a 100644 --- a/docs/models/components/NewAssetPayloadIpfs1.md +++ b/docs/models/components/NewAssetPayloadIpfs1.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `spec` | [JsonNullable](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `spec` | [JsonNullable\](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/NewAssetPayloadStorage.md b/docs/models/components/NewAssetPayloadStorage.md index bb469fc..8c1ccf4 100644 --- a/docs/models/components/NewAssetPayloadStorage.md +++ b/docs/models/components/NewAssetPayloadStorage.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ipfs` | [JsonNullable](../../models/components/NewAssetPayloadIpfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file +| `ipfs` | [JsonNullable\](../../models/components/NewAssetPayloadIpfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file diff --git a/docs/models/components/NewStreamPayload.md b/docs/models/components/NewStreamPayload.md index 52833af..0beea4d 100644 --- a/docs/models/components/NewStreamPayload.md +++ b/docs/models/components/NewStreamPayload.md @@ -6,11 +6,11 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *String* | :heavy_check_mark: | N/A | test_stream | -| `pull` | [Optional](../../models/components/Pull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | -| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | -| `recordingSpec` | [Optional](../../models/components/NewStreamPayloadRecordingSpec.md) | :heavy_minus_sign: | N/A | | -| `multistream` | [Optional](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | -| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | \ No newline at end of file +| `pull` | [Optional\](../../models/components/Pull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | +| `creatorId` | [Optional\](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `playbackPolicy` | [JsonNullable\](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `profiles` | List\<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | +| `record` | *Optional\* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | +| `recordingSpec` | [Optional\](../../models/components/NewStreamPayloadRecordingSpec.md) | :heavy_minus_sign: | N/A | | +| `multistream` | [Optional\](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | +| `userTags` | Map\ | :heavy_minus_sign: | User input tags associated with the stream | | \ No newline at end of file diff --git a/docs/models/components/NewStreamPayloadRecordingSpec.md b/docs/models/components/NewStreamPayloadRecordingSpec.md index 0234fb0..b04200f 100644 --- a/docs/models/components/NewStreamPayloadRecordingSpec.md +++ b/docs/models/components/NewStreamPayloadRecordingSpec.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Output.md b/docs/models/components/Output.md index 3aa3cd5..10803cb 100644 --- a/docs/models/components/Output.md +++ b/docs/models/components/Output.md @@ -5,8 +5,8 @@ Output of the task ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `upload` | Map | :heavy_minus_sign: | Output of the upload task | -| `export` | [Optional](../../models/components/Export.md) | :heavy_minus_sign: | Output of the export task | -| `exportData` | [Optional](../../models/components/ExportData.md) | :heavy_minus_sign: | Output of the export data task | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `upload` | [Optional\](../../models/components/TaskUpload.md) | :heavy_minus_sign: | Output of the upload task | +| `export` | [Optional\](../../models/components/Export.md) | :heavy_minus_sign: | Output of the export task | +| `exportData` | [Optional\](../../models/components/ExportData.md) | :heavy_minus_sign: | Output of the export data task | \ No newline at end of file diff --git a/docs/models/components/Outputs.md b/docs/models/components/Outputs.md index 21f8824..e58d6e5 100644 --- a/docs/models/components/Outputs.md +++ b/docs/models/components/Outputs.md @@ -5,8 +5,8 @@ Output formats ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `hls` | [Optional](../../models/components/Hls.md) | :heavy_minus_sign: | HLS output format | -| `mp4` | [Optional](../../models/components/Mp4.md) | :heavy_minus_sign: | MP4 output format | -| `fmp4` | [Optional](../../models/components/Fmp4.md) | :heavy_minus_sign: | FMP4 output format | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `hls` | [Optional\](../../models/components/Hls.md) | :heavy_minus_sign: | HLS output format | +| `mp4` | [Optional\](../../models/components/Mp4.md) | :heavy_minus_sign: | MP4 output format | +| `fmp4` | [Optional\](../../models/components/Fmp4.md) | :heavy_minus_sign: | FMP4 output format | \ No newline at end of file diff --git a/docs/models/components/Params.md b/docs/models/components/Params.md index f84e148..082b32d 100644 --- a/docs/models/components/Params.md +++ b/docs/models/components/Params.md @@ -5,10 +5,10 @@ Parameters of the task ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `upload` | [Optional](../../models/components/Upload.md) | :heavy_minus_sign: | Parameters for the upload task | -| `export` | [Optional](../../models/components/ExportTaskParams.md) | :heavy_minus_sign: | Parameters for the export task | -| `exportData` | [Optional](../../models/components/TaskExportData.md) | :heavy_minus_sign: | Parameters for the export-data task | -| `transcodeFile` | [Optional](../../models/components/TranscodeFile.md) | :heavy_minus_sign: | Parameters for the transcode-file task | -| `clip` | [Optional](../../models/components/Clip.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `upload` | [Optional\](../../models/components/Upload.md) | :heavy_minus_sign: | Parameters for the upload task | +| `export` | [Optional\](../../models/components/ExportTaskParams.md) | :heavy_minus_sign: | Parameters for the export task | +| `exportData` | [Optional\](../../models/components/TaskExportData.md) | :heavy_minus_sign: | Parameters for the export-data task | +| `transcodeFile` | [Optional\](../../models/components/TranscodeFile.md) | :heavy_minus_sign: | Parameters for the transcode-file task | +| `clip` | [Optional\](../../models/components/Clip.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Participants.md b/docs/models/components/Participants.md index 47e1968..4da6126 100644 --- a/docs/models/components/Participants.md +++ b/docs/models/components/Participants.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `identity` | *Optional* | :heavy_minus_sign: | participant ID | -| `name` | *Optional* | :heavy_minus_sign: | user defined participant name | -| `joinedAt` | *Optional* | :heavy_minus_sign: | the time the participant joined | -| `leftAt` | *Optional* | :heavy_minus_sign: | the time the participant left | \ No newline at end of file +| `identity` | *Optional\* | :heavy_minus_sign: | participant ID | +| `name` | *Optional\* | :heavy_minus_sign: | user defined participant name | +| `joinedAt` | *Optional\* | :heavy_minus_sign: | the time the participant joined | +| `leftAt` | *Optional\* | :heavy_minus_sign: | the time the participant left | \ No newline at end of file diff --git a/docs/models/components/PlaybackInfoSource.md b/docs/models/components/PlaybackInfoSource.md index 7c50d75..aef94d1 100644 --- a/docs/models/components/PlaybackInfoSource.md +++ b/docs/models/components/PlaybackInfoSource.md @@ -8,7 +8,7 @@ | `hrn` | [Hrn](../../models/components/Hrn.md) | :heavy_check_mark: | Human Readable Name | MP4 | | `type` | [PlaybackInfoMetaType](../../models/components/PlaybackInfoMetaType.md) | :heavy_check_mark: | N/A | html5/video/mp4 | | `url` | *String* | :heavy_check_mark: | N/A | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 494778 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 204 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 360 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 449890 | \ No newline at end of file +| `size` | *Optional\* | :heavy_minus_sign: | N/A | 494778 | +| `width` | *Optional\* | :heavy_minus_sign: | N/A | 204 | +| `height` | *Optional\* | :heavy_minus_sign: | N/A | 360 | +| `bitrate` | *Optional\* | :heavy_minus_sign: | N/A | 449890 | \ No newline at end of file diff --git a/docs/models/components/PlaybackPolicy.md b/docs/models/components/PlaybackPolicy.md index 6a1998b..1c6f934 100644 --- a/docs/models/components/PlaybackPolicy.md +++ b/docs/models/components/PlaybackPolicy.md @@ -8,7 +8,7 @@ Whether the playback policy for an asset or stream is public or signed | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `type` | [Type](../../models/components/Type.md) | :heavy_check_mark: | N/A | webhook | -| `webhookId` | *Optional* | :heavy_minus_sign: | ID of the webhook to use for playback policy | 1bde4o2i6xycudoy | -| `webhookContext` | Map | :heavy_minus_sign: | User-defined webhook context | {
"streamerId": "my-custom-id"
} | -| `refreshInterval` | *Optional* | :heavy_minus_sign: | Interval (in seconds) at which the playback policy should be
refreshed (default 600 seconds)
| 600 | -| `allowedOrigins` | List<*String*> | :heavy_minus_sign: | List of allowed origins for CORS playback (://:, ://) | | \ No newline at end of file +| `webhookId` | *Optional\* | :heavy_minus_sign: | ID of the webhook to use for playback policy | 1bde4o2i6xycudoy | +| `webhookContext` | Map\ | :heavy_minus_sign: | User-defined webhook context | {
"streamerId": "my-custom-id"
} | +| `refreshInterval` | *Optional\* | :heavy_minus_sign: | Interval (in seconds) at which the playback policy should be
refreshed (default 600 seconds)
| 600 | +| `allowedOrigins` | List\<*String*> | :heavy_minus_sign: | List of allowed origins for CORS playback (://:, ://) | | \ No newline at end of file diff --git a/docs/models/components/Pull.md b/docs/models/components/Pull.md index 3e451c1..c24fd94 100644 --- a/docs/models/components/Pull.md +++ b/docs/models/components/Pull.md @@ -10,6 +10,6 @@ stream will not have a streamKey. | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `source` | *String* | :heavy_check_mark: | URL from which to pull from. | https://myservice.com/live/stream.flv | -| `headers` | Map | :heavy_minus_sign: | Headers to be sent with the request to the pull source. | {
"Authorization": "Bearer 123"
} | -| `isMobile` | [Optional](../../models/components/IsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | -| `location` | [Optional](../../models/components/Location.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file +| `headers` | Map\ | :heavy_minus_sign: | Headers to be sent with the request to the pull source. | {
"Authorization": "Bearer 123"
} | +| `isMobile` | [Optional\](../../models/components/IsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | +| `location` | [Optional\](../../models/components/Location.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file diff --git a/docs/models/components/RealtimeViewershipMetric.md b/docs/models/components/RealtimeViewershipMetric.md index 24a8dab..63b530e 100644 --- a/docs/models/components/RealtimeViewershipMetric.md +++ b/docs/models/components/RealtimeViewershipMetric.md @@ -8,9 +8,9 @@ An individual metric about realtime viewership of a stream/asset. | Field | Type | Required | Description | Example | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | -| `device` | *Optional* | :heavy_minus_sign: | The device used by the viewer. | iPhone | -| `browser` | *Optional* | :heavy_minus_sign: | The browser used by the viewer. | Safari | -| `country` | *Optional* | :heavy_minus_sign: | The country where the viewer is located. | United States | +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | +| `device` | *Optional\* | :heavy_minus_sign: | The device used by the viewer. | iPhone | +| `browser` | *Optional\* | :heavy_minus_sign: | The browser used by the viewer. | Safari | +| `country` | *Optional\* | :heavy_minus_sign: | The country where the viewer is located. | United States | | `viewCount` | *long* | :heavy_check_mark: | The number of views for the stream/asset. | 100 | | `errorRate` | *double* | :heavy_check_mark: | The error rate for the stream/asset. | 0.1 | \ No newline at end of file diff --git a/docs/models/components/RecordingSpec.md b/docs/models/components/RecordingSpec.md index 9f22768..0dab35d 100644 --- a/docs/models/components/RecordingSpec.md +++ b/docs/models/components/RecordingSpec.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | \ 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/Request.md b/docs/models/components/Request.md index e9d424c..9b971e1 100644 --- a/docs/models/components/Request.md +++ b/docs/models/components/Request.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `url` | *Optional* | :heavy_minus_sign: | URL used for the request | https://my-service.com/webhook | -| `method` | *Optional* | :heavy_minus_sign: | HTTP request method | POST | -| `headers` | Map | :heavy_minus_sign: | HTTP request headers | {
"User-Agent": "livepeer.studio"
} | -| `body` | *Optional* | :heavy_minus_sign: | request body | {"event": "stream.started"} | \ No newline at end of file +| `url` | *Optional\* | :heavy_minus_sign: | URL used for the request | https://my-service.com/webhook | +| `method` | *Optional\* | :heavy_minus_sign: | HTTP request method | POST | +| `headers` | Map\ | :heavy_minus_sign: | HTTP request headers | {
"User-Agent": "livepeer.studio"
} | +| `body` | *Optional\* | :heavy_minus_sign: | request body | {"event": "stream.started"} | \ No newline at end of file diff --git a/docs/models/components/Response.md b/docs/models/components/Response.md index 8518b42..53048ec 100644 --- a/docs/models/components/Response.md +++ b/docs/models/components/Response.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `body` | *Optional* | :heavy_minus_sign: | response body | -| `status` | *Optional* | :heavy_minus_sign: | HTTP status code | -| `statusText` | *Optional* | :heavy_minus_sign: | response status text | \ No newline at end of file +| `body` | *Optional\* | :heavy_minus_sign: | response body | +| `status` | *Optional\* | :heavy_minus_sign: | HTTP status code | +| `statusText` | *Optional\* | :heavy_minus_sign: | response status text | \ No newline at end of file diff --git a/docs/models/components/Room.md b/docs/models/components/Room.md index 2ad18d0..9ef481c 100644 --- a/docs/models/components/Room.md +++ b/docs/models/components/Room.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | room ID | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the room was created | 1587667174725 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which room was updated | 1587667174725 | -| `egressId` | *Optional* | :heavy_minus_sign: | internal ID for egress output | | -| `participants` | Map | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | room ID | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the room was created | 1587667174725 | +| `updatedAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which room was updated | 1587667174725 | +| `egressId` | *Optional\* | :heavy_minus_sign: | internal ID for egress output | | +| `participants` | Map\ | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/RoomUserPayload.md b/docs/models/components/RoomUserPayload.md index 8cf2978..8a01860 100644 --- a/docs/models/components/RoomUserPayload.md +++ b/docs/models/components/RoomUserPayload.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | | `name` | *String* | :heavy_check_mark: | Display name | name | -| `canPublish` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | -| `canPublishData` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | -| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file +| `canPublish` | *Optional\* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | +| `canPublishData` | *Optional\* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | +| `metadata` | *Optional\* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file diff --git a/docs/models/components/RoomUserResponse.md b/docs/models/components/RoomUserResponse.md index 3b0d4ba..80c2e02 100644 --- a/docs/models/components/RoomUserResponse.md +++ b/docs/models/components/RoomUserResponse.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `joinUrl` | *Optional* | :heavy_minus_sign: | Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). | https://meet.livepeer.chat | -| `token` | *Optional* | :heavy_minus_sign: | Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). | token | \ No newline at end of file +| `id` | *Optional\* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `joinUrl` | *Optional\* | :heavy_minus_sign: | Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). | https://meet.livepeer.chat | +| `token` | *Optional\* | :heavy_minus_sign: | Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). | token | \ No newline at end of file diff --git a/docs/models/components/RoomUserUpdatePayload.md b/docs/models/components/RoomUserUpdatePayload.md index fd9d882..e1f8d56 100644 --- a/docs/models/components/RoomUserUpdatePayload.md +++ b/docs/models/components/RoomUserUpdatePayload.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `canPublish` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam) | true | -| `canPublishData` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | -| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file +| `canPublish` | *Optional\* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam) | true | +| `canPublishData` | *Optional\* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | +| `metadata` | *Optional\* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file diff --git a/docs/models/components/Session.md b/docs/models/components/Session.md index b76ea3a..0802331 100644 --- a/docs/models/components/Session.md +++ b/docs/models/components/Session.md @@ -5,28 +5,28 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | -| ~~`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 | +| `id` | *Optional\* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| ~~`kind`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | +| ~~`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 | | `name` | *String* | :heavy_check_mark: | N/A | test_session | -| `lastSeen` | *Optional* | :heavy_minus_sign: | N/A | 1587667174725 | -| `sourceSegments` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedSegments` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `sourceSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | -| `transcodedSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | -| `sourceBytes` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedBytes` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `ingestRate` | *Optional* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | -| `outgoingRate` | *Optional* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | -| `isHealthy` | *JsonNullable* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | -| `issues` | List<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | -| `parentId` | *Optional* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `record` | *Optional* | :heavy_minus_sign: | Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store.
| false | -| `recordingStatus` | [Optional](../../models/components/RecordingStatus.md) | :heavy_minus_sign: | The status of the recording process of this stream session. | | -| `recordingUrl` | *Optional* | :heavy_minus_sign: | URL for accessing the recording of this stream session. | | -| `mp4Url` | *Optional* | :heavy_minus_sign: | The URL for the stream session recording packaged in an MP4. | | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | -| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to transcode the stream into. If not specified, a default
set of profiles will be used with 240p, 360p, 480p and 720p
resolutions. Keep in mind that the source rendition is always kept.
| | -| `recordingSpec` | [Optional](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | \ No newline at end of file +| `lastSeen` | *Optional\* | :heavy_minus_sign: | N/A | 1587667174725 | +| `sourceSegments` | *Optional\* | :heavy_minus_sign: | N/A | 1 | +| `transcodedSegments` | *Optional\* | :heavy_minus_sign: | N/A | 2 | +| `sourceSegmentsDuration` | *Optional\* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | +| `transcodedSegmentsDuration` | *Optional\* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | +| `sourceBytes` | *Optional\* | :heavy_minus_sign: | N/A | 1 | +| `transcodedBytes` | *Optional\* | :heavy_minus_sign: | N/A | 2 | +| `ingestRate` | *Optional\* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | +| `outgoingRate` | *Optional\* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | +| `isHealthy` | *JsonNullable\* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | +| `issues` | List\<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | +| `parentId` | *Optional\* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `projectId` | *Optional\* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `record` | *Optional\* | :heavy_minus_sign: | Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store.
| false | +| `recordingStatus` | [Optional\](../../models/components/RecordingStatus.md) | :heavy_minus_sign: | The status of the recording process of this stream session. | | +| `recordingUrl` | *Optional\* | :heavy_minus_sign: | URL for accessing the recording of this stream session. | | +| `mp4Url` | *Optional\* | :heavy_minus_sign: | The URL for the stream session recording packaged in an MP4. | | +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | +| `profiles` | List\<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to transcode the stream into. If not specified, a default
set of profiles will be used with 240p, 360p, 480p and 720p
resolutions. Keep in mind that the source rendition is always kept.
| | +| `recordingSpec` | [Optional\](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | \ No newline at end of file diff --git a/docs/models/components/SigningKey.md b/docs/models/components/SigningKey.md index 979fd57..26669ab 100644 --- a/docs/models/components/SigningKey.md +++ b/docs/models/components/SigningKey.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 78df0075-b5f3-4683-a618-1086faca35dc | -| `name` | *Optional* | :heavy_minus_sign: | Name of the signing key | key1 | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 78df0075-b5f3-4683-a618-1086faca35dc | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was created | 1587667174725 | -| `lastSeen` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was last used | 1587667174725 | +| `id` | *Optional\* | :heavy_minus_sign: | N/A | 78df0075-b5f3-4683-a618-1086faca35dc | +| `name` | *Optional\* | :heavy_minus_sign: | Name of the signing key | key1 | +| ~~`userId`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 78df0075-b5f3-4683-a618-1086faca35dc | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was created | 1587667174725 | +| `lastSeen` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was last used | 1587667174725 | | `publicKey` | *String* | :heavy_check_mark: | N/A | | -| `disabled` | *Optional* | :heavy_minus_sign: | Disable the signing key to allow rotation safely | false | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb | \ No newline at end of file +| `disabled` | *Optional\* | :heavy_minus_sign: | Disable the signing key to allow rotation safely | false | +| `projectId` | *Optional\* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb | \ No newline at end of file diff --git a/docs/models/components/Source1.md b/docs/models/components/Source1.md index 4c86cb4..30159a5 100644 --- a/docs/models/components/Source1.md +++ b/docs/models/components/Source1.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `type` | [SourceType](../../models/components/SourceType.md) | :heavy_check_mark: | N/A | -| `url` | *String* | :heavy_check_mark: | URL from which the asset was uploaded. | -| `gatewayUrl` | *Optional* | :heavy_minus_sign: | Gateway URL from asset if parsed from provided URL on upload. | -| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `type` | [SourceType](../../models/components/SourceType.md) | :heavy_check_mark: | N/A | +| `url` | *String* | :heavy_check_mark: | URL from which the asset was uploaded. | +| `gatewayUrl` | *Optional\* | :heavy_minus_sign: | Gateway URL from asset if parsed from provided URL on upload. | +| `encryption` | [Optional\](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Source3.md b/docs/models/components/Source3.md index 01a054c..63a5ec5 100644 --- a/docs/models/components/Source3.md +++ b/docs/models/components/Source3.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `type` | [AssetSource3Type](../../models/components/AssetSource3Type.md) | :heavy_check_mark: | N/A | -| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | -| `sourceId` | *Optional* | :heavy_minus_sign: | ID of the asset or stream from which this asset was created. | -| `sessionId` | *Optional* | :heavy_minus_sign: | ID of the session from which this asset was created. | -| `playbackId` | *Optional* | :heavy_minus_sign: | Playback ID of the asset or stream from which this asset was created. | -| `requesterId` | *Optional* | :heavy_minus_sign: | ID of the requester from which this asset was created. | -| `assetId` | *Optional* | :heavy_minus_sign: | ID of the asset from which this asset was created. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `type` | [AssetSource3Type](../../models/components/AssetSource3Type.md) | :heavy_check_mark: | N/A | +| `encryption` | [Optional\](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | +| `sourceId` | *Optional\* | :heavy_minus_sign: | ID of the asset or stream from which this asset was created. | +| `sessionId` | *Optional\* | :heavy_minus_sign: | ID of the session from which this asset was created. | +| `playbackId` | *Optional\* | :heavy_minus_sign: | Playback ID of the asset or stream from which this asset was created. | +| `requesterId` | *Optional\* | :heavy_minus_sign: | ID of the requester from which this asset was created. | +| `assetId` | *Optional\* | :heavy_minus_sign: | ID of the asset from which this asset was created. | \ No newline at end of file diff --git a/docs/models/components/Spec.md b/docs/models/components/Spec.md index 9dd3a5d..038dc5b 100644 --- a/docs/models/components/Spec.md +++ b/docs/models/components/Spec.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `nftMetadataTemplate` | [Optional](../../models/components/NftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| -| `nftMetadata` | [Optional](../../models/components/NftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file +| `nftMetadataTemplate` | [Optional\](../../models/components/NftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| +| `nftMetadata` | [Optional\](../../models/components/NftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file diff --git a/docs/models/components/Status.md b/docs/models/components/Status.md index 757be8b..799c553 100644 --- a/docs/models/components/Status.md +++ b/docs/models/components/Status.md @@ -7,5 +7,5 @@ status of webhook | Field | Type | Required | Description | Example | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `lastFailure` | [Optional](../../models/components/LastFailure.md) | :heavy_minus_sign: | failure timestamp and error message with status code | | -| `lastTriggeredAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last was
triggered
| 1587667174725 | \ No newline at end of file +| `lastFailure` | [Optional\](../../models/components/LastFailure.md) | :heavy_minus_sign: | failure timestamp and error message with status code | | +| `lastTriggeredAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last was
triggered
| 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/Storage.md b/docs/models/components/Storage.md index b639335..ce53a98 100644 --- a/docs/models/components/Storage.md +++ b/docs/models/components/Storage.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ipfs` | [JsonNullable](../../models/components/Ipfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file +| `ipfs` | [JsonNullable\](../../models/components/Ipfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file diff --git a/docs/models/components/StorageStatus.md b/docs/models/components/StorageStatus.md index 79af3e1..604d808 100644 --- a/docs/models/components/StorageStatus.md +++ b/docs/models/components/StorageStatus.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | | `phase` | [Phase](../../models/components/Phase.md) | :heavy_check_mark: | Phase of the asset storage | ready | -| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task updating the storage. | 0.5 | -| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the last storage changed failed. | Failed to update storage | +| `progress` | *Optional\* | :heavy_minus_sign: | Current progress of the task updating the storage. | 0.5 | +| `errorMessage` | *Optional\* | :heavy_minus_sign: | Error message if the last storage changed failed. | Failed to update storage | | `tasks` | [Tasks](../../models/components/Tasks.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Stream.md b/docs/models/components/Stream.md index 551ba2a..02f554a 100644 --- a/docs/models/components/Stream.md +++ b/docs/models/components/Stream.md @@ -5,36 +5,36 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `id` | *Optional\* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | | `name` | *String* | :heavy_check_mark: | N/A | test_stream | -| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | -| `creatorId` | [Optional](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | -| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | -| `lastSeen` | *Optional* | :heavy_minus_sign: | N/A | 1587667174725 | -| `sourceSegments` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedSegments` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `sourceSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | -| `transcodedSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | -| `sourceBytes` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedBytes` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `ingestRate` | *Optional* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | -| `outgoingRate` | *Optional* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | -| `isActive` | *Optional* | :heavy_minus_sign: | If currently active | true | -| `isHealthy` | *JsonNullable* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | -| `issues` | List<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | -| `createdByTokenName` | *Optional* | :heavy_minus_sign: | Name of the token used to create this object | abc-123-xyz-456 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | -| `parentId` | *Optional* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `streamKey` | *Optional* | :heavy_minus_sign: | Used to form RTMP ingest URL | hgebdhhigq | -| `pull` | [Optional](../../models/components/StreamPull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to transcode the stream into. If not specified, a default
set of profiles will be used with 240p, 360p, 480p and 720p
resolutions. Keep in mind that the source rendition is always kept.
| | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | -| `recordingSpec` | [Optional](../../models/components/StreamRecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | -| `multistream` | [Optional](../../models/components/StreamMultistream.md) | :heavy_minus_sign: | N/A | | -| `suspended` | *Optional* | :heavy_minus_sign: | If currently suspended | | -| `lastTerminatedAt` | *JsonNullable* | :heavy_minus_sign: | Timestamp (in milliseconds) when the stream was last terminated | 1713281212993 | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | we7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `renditions` | [Optional](../../models/components/Renditions.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| ~~`kind`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | +| `creatorId` | [Optional\](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | +| `userTags` | Map\ | :heavy_minus_sign: | User input tags associated with the stream | | +| `lastSeen` | *Optional\* | :heavy_minus_sign: | N/A | 1587667174725 | +| `sourceSegments` | *Optional\* | :heavy_minus_sign: | N/A | 1 | +| `transcodedSegments` | *Optional\* | :heavy_minus_sign: | N/A | 2 | +| `sourceSegmentsDuration` | *Optional\* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | +| `transcodedSegmentsDuration` | *Optional\* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | +| `sourceBytes` | *Optional\* | :heavy_minus_sign: | N/A | 1 | +| `transcodedBytes` | *Optional\* | :heavy_minus_sign: | N/A | 2 | +| `ingestRate` | *Optional\* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | +| `outgoingRate` | *Optional\* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | +| `isActive` | *Optional\* | :heavy_minus_sign: | If currently active | true | +| `isHealthy` | *JsonNullable\* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | +| `issues` | List\<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | +| `createdByTokenName` | *Optional\* | :heavy_minus_sign: | Name of the token used to create this object | abc-123-xyz-456 | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | +| `parentId` | *Optional\* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `streamKey` | *Optional\* | :heavy_minus_sign: | Used to form RTMP ingest URL | hgebdhhigq | +| `pull` | [Optional\](../../models/components/StreamPull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | +| `playbackPolicy` | [JsonNullable\](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `profiles` | List\<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to transcode the stream into. If not specified, a default
set of profiles will be used with 240p, 360p, 480p and 720p
resolutions. Keep in mind that the source rendition is always kept.
| | +| `projectId` | *Optional\* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `record` | *Optional\* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | +| `recordingSpec` | [Optional\](../../models/components/StreamRecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | +| `multistream` | [Optional\](../../models/components/StreamMultistream.md) | :heavy_minus_sign: | N/A | | +| `suspended` | *Optional\* | :heavy_minus_sign: | If currently suspended | | +| `lastTerminatedAt` | *JsonNullable\* | :heavy_minus_sign: | Timestamp (in milliseconds) when the stream was last terminated | 1713281212993 | +| ~~`userId`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | we7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `renditions` | [Optional\](../../models/components/Renditions.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/StreamMultistream.md b/docs/models/components/StreamMultistream.md index 2297063..c50af01 100644 --- a/docs/models/components/StreamMultistream.md +++ b/docs/models/components/StreamMultistream.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `targets` | List<[TargetOutput](../../models/components/TargetOutput.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file +| `targets` | List\<[TargetOutput](../../models/components/TargetOutput.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file diff --git a/docs/models/components/StreamPatchPayload.md b/docs/models/components/StreamPatchPayload.md index cad701a..4866385 100644 --- a/docs/models/components/StreamPatchPayload.md +++ b/docs/models/components/StreamPatchPayload.md @@ -5,11 +5,12 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | -| `suspended` | *Optional* | :heavy_minus_sign: | If currently suspended | | -| `multistream` | [Optional](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | -| `recordingSpec` | [Optional](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | N/A | | -| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | \ No newline at end of file +| `creatorId` | [Optional\](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `record` | *Optional\* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | +| `suspended` | *Optional\* | :heavy_minus_sign: | If currently suspended | | +| `multistream` | [Optional\](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | +| `playbackPolicy` | [JsonNullable\](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `profiles` | List\<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | +| `recordingSpec` | [Optional\](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | N/A | | +| `userTags` | Map\ | :heavy_minus_sign: | User input tags associated with the stream | | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | test_stream | \ No newline at end of file diff --git a/docs/models/components/StreamPull.md b/docs/models/components/StreamPull.md index 9952d19..3bd2c22 100644 --- a/docs/models/components/StreamPull.md +++ b/docs/models/components/StreamPull.md @@ -10,6 +10,6 @@ stream will not have a streamKey. | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `source` | *String* | :heavy_check_mark: | URL from which to pull from. | https://myservice.com/live/stream.flv | -| `headers` | Map | :heavy_minus_sign: | Headers to be sent with the request to the pull source. | {
"Authorization": "Bearer 123"
} | -| `isMobile` | [Optional](../../models/components/StreamIsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | -| `location` | [Optional](../../models/components/StreamLocation.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file +| `headers` | Map\ | :heavy_minus_sign: | Headers to be sent with the request to the pull source. | {
"Authorization": "Bearer 123"
} | +| `isMobile` | [Optional\](../../models/components/StreamIsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | +| `location` | [Optional\](../../models/components/StreamLocation.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file diff --git a/docs/models/components/StreamRecordingSpec.md b/docs/models/components/StreamRecordingSpec.md index e5a93a3..3e20c3f 100644 --- a/docs/models/components/StreamRecordingSpec.md +++ b/docs/models/components/StreamRecordingSpec.md @@ -9,4 +9,4 @@ Configuration for recording the stream. This can only be set if | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | Profiles to process the recording of this stream into. If not
specified, default profiles will be derived based on the stream
input. Keep in mind that the source rendition is always kept.
| \ No newline at end of file +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | Profiles to process the recording of this stream into. If not
specified, default profiles will be derived based on the stream
input. Keep in mind that the source rendition is always kept.
| \ 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..56bbcdb --- /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/TargetAddPayload.md b/docs/models/components/TargetAddPayload.md index 9ff315e..34f436f 100644 --- a/docs/models/components/TargetAddPayload.md +++ b/docs/models/components/TargetAddPayload.md @@ -6,6 +6,6 @@ | 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/TargetAddPayloadSpec.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 +| `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/TargetAddPayloadSpec.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/TargetAddPayloadSpec.md b/docs/models/components/TargetAddPayloadSpec.md index f1dc43f..8838441 100644 --- a/docs/models/components/TargetAddPayloadSpec.md +++ b/docs/models/components/TargetAddPayloadSpec.md @@ -10,5 +10,5 @@ stream. | Field | Type | Required | Description | Example | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | My target | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | My target | | `url` | *String* | :heavy_check_mark: | Livepeer-compatible multistream target URL (RTMP(S) or SRT) | rtmps://live.my-service.tv/channel/secretKey | \ No newline at end of file diff --git a/docs/models/components/TargetOutput.md b/docs/models/components/TargetOutput.md index 8e1d0f3..c903992 100644 --- a/docs/models/components/TargetOutput.md +++ b/docs/models/components/TargetOutput.md @@ -6,5 +6,5 @@ | 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 | \ No newline at end of file +| `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 | \ No newline at end of file diff --git a/docs/models/components/TargetSpec.md b/docs/models/components/TargetSpec.md index db1cc7c..0831845 100644 --- a/docs/models/components/TargetSpec.md +++ b/docs/models/components/TargetSpec.md @@ -10,5 +10,5 @@ stream. | Field | Type | Required | Description | Example | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | My target | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | My target | | `url` | *String* | :heavy_check_mark: | Livepeer-compatible multistream target URL (RTMP(S) or SRT) | rtmps://live.my-service.tv/channel/secretKey | \ No newline at end of file diff --git a/docs/models/components/Task.md b/docs/models/components/Task.md index 31a0363..0d04c66 100644 --- a/docs/models/components/Task.md +++ b/docs/models/components/Task.md @@ -5,13 +5,14 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | Task ID | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `type` | [Optional](../../models/components/TaskType.md) | :heavy_minus_sign: | Type of the task | upload | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which task was created | 1587667174725 | -| `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 | -| `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 | | -| `output` | [Optional](../../models/components/Output.md) | :heavy_minus_sign: | Output of the task | | \ No newline at end of file +| `id` | *Optional\* | :heavy_minus_sign: | Task ID | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `type` | [Optional\](../../models/components/TaskType.md) | :heavy_minus_sign: | Type of the task | upload | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which task was created | 1587667174725 | +| `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 | | +| `output` | [Optional\](../../models/components/Output.md) | :heavy_minus_sign: | Output of the task | | \ No newline at end of file diff --git a/docs/models/components/TaskExportData.md b/docs/models/components/TaskExportData.md index 10eca19..c64b9dc 100644 --- a/docs/models/components/TaskExportData.md +++ b/docs/models/components/TaskExportData.md @@ -5,9 +5,9 @@ Parameters for the export-data task ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `content` | [Content](../../models/components/Content.md) | :heavy_check_mark: | File content to store into IPFS | {
"data": "Hello, World!"
} | -| `ipfs` | [Optional](../../models/components/IpfsExportParams.md) | :heavy_minus_sign: | N/A | | -| `type` | *Optional* | :heavy_minus_sign: | Optional type of content | text/plain | -| `id` | *Optional* | :heavy_minus_sign: | Optional ID of the content | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `content` | [Content](../../models/components/Content.md) | :heavy_check_mark: | File content to store into IPFS | {
"data": "Hello, World!"
} | +| `ipfs` | [Optional\](../../models/components/IpfsExportParams.md) | :heavy_minus_sign: | N/A | | +| `type` | *Optional\* | :heavy_minus_sign: | Optional type of content | text/plain | +| `id` | *Optional\* | :heavy_minus_sign: | Optional ID of the content | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file diff --git a/docs/models/components/TaskHls.md b/docs/models/components/TaskHls.md index b212d1b..c1bc8e0 100644 --- a/docs/models/components/TaskHls.md +++ b/docs/models/components/TaskHls.md @@ -7,4 +7,4 @@ HLS output format | Field | Type | Required | Description | Example | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `path` | *Optional* | :heavy_minus_sign: | Path for the HLS output | /samplevideo/hls | \ No newline at end of file +| `path` | *Optional\* | :heavy_minus_sign: | Path for the HLS output | /samplevideo/hls | \ No newline at end of file diff --git a/docs/models/components/TaskInput.md b/docs/models/components/TaskInput.md index ebf4798..7736bba 100644 --- a/docs/models/components/TaskInput.md +++ b/docs/models/components/TaskInput.md @@ -7,4 +7,4 @@ Input video file to transcode | Field | Type | Required | Description | Example | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `url` | *Optional* | :heavy_minus_sign: | URL of a video to transcode, accepts object-store format
"s3+https"
| https://cdn.livepeer.com/ABC123/filename.mp4 | \ No newline at end of file +| `url` | *Optional\* | :heavy_minus_sign: | URL of a video to transcode, accepts object-store format
"s3+https"
| https://cdn.livepeer.com/ABC123/filename.mp4 | \ No newline at end of file diff --git a/docs/models/components/TaskIpfs.md b/docs/models/components/TaskIpfs.md index c0b6888..4413f89 100644 --- a/docs/models/components/TaskIpfs.md +++ b/docs/models/components/TaskIpfs.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `videoFileCid` | *String* | :heavy_check_mark: | IPFS CID of the exported video file | Qmabc123xyz341 | -| `videoFileUrl` | *Optional* | :heavy_minus_sign: | URL for the file with the IPFS protocol | ipfs://Qmabc123xyz341 | -| `videoFileGatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | -| `nftMetadataCid` | *Optional* | :heavy_minus_sign: | IPFS CID of the default metadata exported for the video | Qmabc123xyz341 | -| `nftMetadataUrl` | *Optional* | :heavy_minus_sign: | URL for the metadata file with the IPFS protocol | ipfs://Qmabc123xyz341 | -| `nftMetadataGatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access metadata file via HTTP through an IPFS
gateway
| https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | \ No newline at end of file +| `videoFileUrl` | *Optional\* | :heavy_minus_sign: | URL for the file with the IPFS protocol | ipfs://Qmabc123xyz341 | +| `videoFileGatewayUrl` | *Optional\* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | +| `nftMetadataCid` | *Optional\* | :heavy_minus_sign: | IPFS CID of the default metadata exported for the video | Qmabc123xyz341 | +| `nftMetadataUrl` | *Optional\* | :heavy_minus_sign: | URL for the metadata file with the IPFS protocol | ipfs://Qmabc123xyz341 | +| `nftMetadataGatewayUrl` | *Optional\* | :heavy_minus_sign: | URL to access metadata file via HTTP through an IPFS
gateway
| https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | \ No newline at end of file diff --git a/docs/models/components/TaskMp4.md b/docs/models/components/TaskMp4.md index 33ffa16..c71e250 100644 --- a/docs/models/components/TaskMp4.md +++ b/docs/models/components/TaskMp4.md @@ -7,4 +7,4 @@ MP4 output format | Field | Type | Required | Description | Example | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `path` | *Optional* | :heavy_minus_sign: | Path for the MP4 output | /samplevideo/mp4 | \ No newline at end of file +| `path` | *Optional\* | :heavy_minus_sign: | Path for the MP4 output | /samplevideo/mp4 | \ No newline at end of file diff --git a/docs/models/components/TaskOutputs.md b/docs/models/components/TaskOutputs.md index d18f177..7c97b8a 100644 --- a/docs/models/components/TaskOutputs.md +++ b/docs/models/components/TaskOutputs.md @@ -5,7 +5,7 @@ Output formats ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `hls` | [Optional](../../models/components/TaskHls.md) | :heavy_minus_sign: | HLS output format | -| `mp4` | [Optional](../../models/components/TaskMp4.md) | :heavy_minus_sign: | MP4 output format | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `hls` | [Optional\](../../models/components/TaskHls.md) | :heavy_minus_sign: | HLS output format | +| `mp4` | [Optional\](../../models/components/TaskMp4.md) | :heavy_minus_sign: | MP4 output format | \ No newline at end of file diff --git a/docs/models/components/TaskStatus.md b/docs/models/components/TaskStatus.md index 4993beb..f60a5e5 100644 --- a/docs/models/components/TaskStatus.md +++ b/docs/models/components/TaskStatus.md @@ -9,6 +9,6 @@ Status of the task | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | | `phase` | [TaskPhase](../../models/components/TaskPhase.md) | :heavy_check_mark: | Phase of the task | pending | | `updatedAt` | *double* | :heavy_check_mark: | Timestamp (in milliseconds) at which task was updated | 1587667174725 | -| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task in a 0-1 ratio | 0.5 | -| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the task failed | Failed to upload file | -| `retries` | *Optional* | :heavy_minus_sign: | Number of retries done on the task | 3 | \ No newline at end of file +| `progress` | *Optional\* | :heavy_minus_sign: | Current progress of the task in a 0-1 ratio | 0.5 | +| `errorMessage` | *Optional\* | :heavy_minus_sign: | Error message if the task failed | Failed to upload file | +| `retries` | *Optional\* | :heavy_minus_sign: | Number of retries done on the task | 3 | \ No newline at end of file diff --git a/docs/models/components/TaskStorage.md b/docs/models/components/TaskStorage.md index 236ea08..2f8dc64 100644 --- a/docs/models/components/TaskStorage.md +++ b/docs/models/components/TaskStorage.md @@ -7,4 +7,4 @@ Storage for the output files | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `url` | *Optional* | :heavy_minus_sign: | URL of the output storage, accepts object-store format
"s3+https"
| s3+https://accessKeyId:secretAccessKey@s3Endpoint/bucket | \ No newline at end of file +| `url` | *Optional\* | :heavy_minus_sign: | URL of the output storage, accepts object-store format
"s3+https"
| s3+https://accessKeyId:secretAccessKey@s3Endpoint/bucket | \ No newline at end of file diff --git a/docs/models/components/TaskUpload.md b/docs/models/components/TaskUpload.md new file mode 100644 index 0000000..eb35075 --- /dev/null +++ b/docs/models/components/TaskUpload.md @@ -0,0 +1,11 @@ +# TaskUpload + +Output of the upload task + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `assetSpec` | [Optional\](../../models/components/Asset.md) | :heavy_minus_sign: | N/A | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Tasks.md b/docs/models/components/Tasks.md index 2109aa9..18b5723 100644 --- a/docs/models/components/Tasks.md +++ b/docs/models/components/Tasks.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `pending` | *Optional* | :heavy_minus_sign: | ID of any currently running task that is exporting this
asset to IPFS.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `last` | *Optional* | :heavy_minus_sign: | ID of the last task to run successfully, that created
the currently saved data.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `failed` | *Optional* | :heavy_minus_sign: | ID of the last task to fail execution. | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file +| `pending` | *Optional\* | :heavy_minus_sign: | ID of any currently running task that is exporting this
asset to IPFS.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `last` | *Optional\* | :heavy_minus_sign: | ID of the last task to run successfully, that created
the currently saved data.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `failed` | *Optional\* | :heavy_minus_sign: | ID of the last task to fail execution. | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file diff --git a/docs/models/components/Tracks.md b/docs/models/components/Tracks.md index 6b6c0f5..cf8828b 100644 --- a/docs/models/components/Tracks.md +++ b/docs/models/components/Tracks.md @@ -7,13 +7,13 @@ | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `type` | [AssetVideoSpecType](../../models/components/AssetVideoSpecType.md) | :heavy_check_mark: | type of track | video | | `codec` | *String* | :heavy_check_mark: | Codec of the track | aac | -| `startTime` | *Optional* | :heavy_minus_sign: | Start time of the track in seconds | 23.8238 | -| `duration` | *Optional* | :heavy_minus_sign: | Duration of the track in seconds | 23.8238 | -| `bitrate` | *Optional* | :heavy_minus_sign: | Bitrate of the track in bits per second | 1000000 | -| `width` | *Optional* | :heavy_minus_sign: | Width of the track - only for video tracks | 1920 | -| `height` | *Optional* | :heavy_minus_sign: | Height of the track - only for video tracks | 1080 | -| `pixelFormat` | *Optional* | :heavy_minus_sign: | Pixel format of the track - only for video tracks | yuv420p | -| `fps` | *Optional* | :heavy_minus_sign: | Frame rate of the track - only for video tracks | 30 | -| `channels` | *Optional* | :heavy_minus_sign: | Amount of audio channels in the track | 2 | -| `sampleRate` | *Optional* | :heavy_minus_sign: | Sample rate of the track in samples per second - only for
audio tracks
| 44100 | -| `bitDepth` | *Optional* | :heavy_minus_sign: | Bit depth of the track - only for audio tracks | 16 | \ No newline at end of file +| `startTime` | *Optional\* | :heavy_minus_sign: | Start time of the track in seconds | 23.8238 | +| `duration` | *Optional\* | :heavy_minus_sign: | Duration of the track in seconds | 23.8238 | +| `bitrate` | *Optional\* | :heavy_minus_sign: | Bitrate of the track in bits per second | 1000000 | +| `width` | *Optional\* | :heavy_minus_sign: | Width of the track - only for video tracks | 1920 | +| `height` | *Optional\* | :heavy_minus_sign: | Height of the track - only for video tracks | 1080 | +| `pixelFormat` | *Optional\* | :heavy_minus_sign: | Pixel format of the track - only for video tracks | yuv420p | +| `fps` | *Optional\* | :heavy_minus_sign: | Frame rate of the track - only for video tracks | 30 | +| `channels` | *Optional\* | :heavy_minus_sign: | Amount of audio channels in the track | 2 | +| `sampleRate` | *Optional\* | :heavy_minus_sign: | Sample rate of the track in samples per second - only for
audio tracks
| 44100 | +| `bitDepth` | *Optional\* | :heavy_minus_sign: | Bit depth of the track - only for audio tracks | 16 | \ No newline at end of file diff --git a/docs/models/components/TranscodeFile.md b/docs/models/components/TranscodeFile.md index 64a0792..9e7c8f6 100644 --- a/docs/models/components/TranscodeFile.md +++ b/docs/models/components/TranscodeFile.md @@ -5,12 +5,12 @@ Parameters for the transcode-file task ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `input` | [Optional](../../models/components/TaskInput.md) | :heavy_minus_sign: | Input video file to transcode | | -| `storage` | [Optional](../../models/components/TaskStorage.md) | :heavy_minus_sign: | Storage for the output files | | -| `outputs` | [Optional](../../models/components/TaskOutputs.md) | :heavy_minus_sign: | Output formats | | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should
be
| 10 | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | false | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `input` | [Optional\](../../models/components/TaskInput.md) | :heavy_minus_sign: | Input video file to transcode | | +| `storage` | [Optional\](../../models/components/TaskStorage.md) | :heavy_minus_sign: | Storage for the output files | | +| `outputs` | [Optional\](../../models/components/TaskOutputs.md) | :heavy_minus_sign: | Output formats | | +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional\* | :heavy_minus_sign: | How many seconds the duration of each output segment should
be
| 10 | +| `creatorId` | [Optional\](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional\* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | false | \ No newline at end of file diff --git a/docs/models/components/TranscodePayload.md b/docs/models/components/TranscodePayload.md index 3618ac8..9f2d685 100644 --- a/docs/models/components/TranscodePayload.md +++ b/docs/models/components/TranscodePayload.md @@ -8,7 +8,7 @@ | `input` | [Input](../../models/components/Input.md) | :heavy_check_mark: | N/A | | `storage` | [TranscodePayloadStorage](../../models/components/TranscodePayloadStorage.md) | :heavy_check_mark: | N/A | | `outputs` | [Outputs](../../models/components/Outputs.md) | :heavy_check_mark: | Output formats | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | \ No newline at end of file +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | +| `targetSegmentSizeSecs` | *Optional\* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | +| `creatorId` | [Optional\](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | +| `c2pa` | *Optional\* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | \ No newline at end of file diff --git a/docs/models/components/TranscodeProfile.md b/docs/models/components/TranscodeProfile.md index bff35f6..71a416a 100644 --- a/docs/models/components/TranscodeProfile.md +++ b/docs/models/components/TranscodeProfile.md @@ -7,13 +7,13 @@ Transcode API profile | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1280 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | 720p | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 720 | +| `width` | *Optional\* | :heavy_minus_sign: | N/A | 1280 | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | 720p | +| `height` | *Optional\* | :heavy_minus_sign: | N/A | 720 | | `bitrate` | *long* | :heavy_check_mark: | N/A | 3000000 | -| `quality` | *Optional* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | -| `fps` | *Optional* | :heavy_minus_sign: | N/A | 30 | -| `fpsDen` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `gop` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `profile` | [Optional](../../models/components/TranscodeProfileProfile.md) | :heavy_minus_sign: | N/A | H264Baseline | -| `encoder` | [Optional](../../models/components/TranscodeProfileEncoder.md) | :heavy_minus_sign: | N/A | H.264 | \ No newline at end of file +| `quality` | *Optional\* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | +| `fps` | *Optional\* | :heavy_minus_sign: | N/A | 30 | +| `fpsDen` | *Optional\* | :heavy_minus_sign: | N/A | 1 | +| `gop` | *Optional\* | :heavy_minus_sign: | N/A | 2 | +| `profile` | [Optional\](../../models/components/TranscodeProfileProfile.md) | :heavy_minus_sign: | N/A | H264Baseline | +| `encoder` | [Optional\](../../models/components/TranscodeProfileEncoder.md) | :heavy_minus_sign: | N/A | H.264 | \ No newline at end of file diff --git a/docs/models/components/Upload.md b/docs/models/components/Upload.md index c63ad6d..2391bd5 100644 --- a/docs/models/components/Upload.md +++ b/docs/models/components/Upload.md @@ -5,10 +5,10 @@ Parameters for the upload task ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `url` | *Optional* | :heavy_minus_sign: | URL of the asset to "upload" | https://cdn.livepeer.com/ABC123/filename.mp4 | -| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | true | -| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | 6 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `url` | *Optional\* | :heavy_minus_sign: | URL of the asset to "upload" | https://cdn.livepeer.com/ABC123/filename.mp4 | +| `encryption` | [Optional\](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional\* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | true | +| `profiles` | List\<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional\* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | 6 | \ No newline at end of file diff --git a/docs/models/components/UsageMetric.md b/docs/models/components/UsageMetric.md index ceec678..9b6b5d5 100644 --- a/docs/models/components/UsageMetric.md +++ b/docs/models/components/UsageMetric.md @@ -8,8 +8,8 @@ An individual metric about usage of a user. | Field | Type | Required | Description | Example | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `userID` | *Optional* | :heavy_minus_sign: | The user ID associated with the metric | 1bde4o2i6xycudoy | -| `creatorID` | *Optional* | :heavy_minus_sign: | The creator ID associated with the metric | john@doe.com | -| `deliveryUsageMins` | *Optional* | :heavy_minus_sign: | Total minutes of delivery usage. | 100 | -| `totalUsageMins` | *Optional* | :heavy_minus_sign: | Total transcoded minutes. | 100 | -| `storageUsageMins` | *Optional* | :heavy_minus_sign: | Total minutes of storage usage. | 100 | \ No newline at end of file +| `userID` | *Optional\* | :heavy_minus_sign: | The user ID associated with the metric | 1bde4o2i6xycudoy | +| `creatorID` | *Optional\* | :heavy_minus_sign: | The creator ID associated with the metric | john@doe.com | +| `deliveryUsageMins` | *Optional\* | :heavy_minus_sign: | Total minutes of delivery usage. | 100 | +| `totalUsageMins` | *Optional\* | :heavy_minus_sign: | Total transcoded minutes. | 100 | +| `storageUsageMins` | *Optional\* | :heavy_minus_sign: | Total minutes of storage usage. | 100 | \ No newline at end of file diff --git a/docs/models/components/VideoSpec.md b/docs/models/components/VideoSpec.md index e5ce1e9..808f405 100644 --- a/docs/models/components/VideoSpec.md +++ b/docs/models/components/VideoSpec.md @@ -7,7 +7,7 @@ Video metadata | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `format` | *Optional* | :heavy_minus_sign: | Format of the asset | mp4 | -| `duration` | *Optional* | :heavy_minus_sign: | Duration of the asset in seconds (float) | 23.8328 | -| `bitrate` | *Optional* | :heavy_minus_sign: | Bitrate of the video in bits per second | 1000000 | -| `tracks` | List<[Tracks](../../models/components/Tracks.md)> | :heavy_minus_sign: | List of tracks associated with the asset when the format
contemplates them (e.g. mp4)
| | \ No newline at end of file +| `format` | *Optional\* | :heavy_minus_sign: | Format of the asset | mp4 | +| `duration` | *Optional\* | :heavy_minus_sign: | Duration of the asset in seconds (float) | 23.8328 | +| `bitrate` | *Optional\* | :heavy_minus_sign: | Bitrate of the video in bits per second | 1000000 | +| `tracks` | List\<[Tracks](../../models/components/Tracks.md)> | :heavy_minus_sign: | List of tracks associated with the asset when the format
contemplates them (e.g. mp4)
| | \ No newline at end of file diff --git a/docs/models/components/ViewershipMetric.md b/docs/models/components/ViewershipMetric.md index 8719a5c..4783ee3 100644 --- a/docs/models/components/ViewershipMetric.md +++ b/docs/models/components/ViewershipMetric.md @@ -9,25 +9,25 @@ An individual metric about viewership of a stream/asset. Necessarily, at least | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | -| `creatorId` | *Optional* | :heavy_minus_sign: | The ID of the creator associated with the metric. | john@doe.com | -| `viewerId` | *Optional* | :heavy_minus_sign: | The ID of the viewer associated with the metric. | 1bde4o2i6xycudoy | -| `dStorageUrl` | *Optional* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | -| `timestamp` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) when the metric was recorded. If the
query contains a time step, this timestamp will point to the
beginning of the time step period.
| 1587667174725 | -| `device` | *Optional* | :heavy_minus_sign: | The device used by the viewer. | iPhone | -| `deviceType` | *Optional* | :heavy_minus_sign: | The type of the device used by the viewer. | mobile | -| `cpu` | *Optional* | :heavy_minus_sign: | The CPU used by the viewer's device. | ARM | -| `os` | *Optional* | :heavy_minus_sign: | The operating system used by the viewer. | iOS | -| `browser` | *Optional* | :heavy_minus_sign: | The browser used by the viewer. | Safari | -| `browserEngine` | *Optional* | :heavy_minus_sign: | The browser engine used by the viewer's browser. | WebKit | -| `continent` | *Optional* | :heavy_minus_sign: | The continent where the viewer is located. | North America | -| `country` | *Optional* | :heavy_minus_sign: | The country where the viewer is located. | United States | -| `subdivision` | *Optional* | :heavy_minus_sign: | The subdivision (e.g., state or province) where the viewer is
located.
| California | -| `timezone` | *Optional* | :heavy_minus_sign: | The timezone where the viewer is located. | America/Los_Angeles | -| `geohash` | *Optional* | :heavy_minus_sign: | Geographic encoding of the viewers location. Accurate to 3 digits. | 123 | +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | +| `creatorId` | *Optional\* | :heavy_minus_sign: | The ID of the creator associated with the metric. | john@doe.com | +| `viewerId` | *Optional\* | :heavy_minus_sign: | The ID of the viewer associated with the metric. | 1bde4o2i6xycudoy | +| `dStorageUrl` | *Optional\* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | +| `timestamp` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) when the metric was recorded. If the
query contains a time step, this timestamp will point to the
beginning of the time step period.
| 1587667174725 | +| `device` | *Optional\* | :heavy_minus_sign: | The device used by the viewer. | iPhone | +| `deviceType` | *Optional\* | :heavy_minus_sign: | The type of the device used by the viewer. | mobile | +| `cpu` | *Optional\* | :heavy_minus_sign: | The CPU used by the viewer's device. | ARM | +| `os` | *Optional\* | :heavy_minus_sign: | The operating system used by the viewer. | iOS | +| `browser` | *Optional\* | :heavy_minus_sign: | The browser used by the viewer. | Safari | +| `browserEngine` | *Optional\* | :heavy_minus_sign: | The browser engine used by the viewer's browser. | WebKit | +| `continent` | *Optional\* | :heavy_minus_sign: | The continent where the viewer is located. | North America | +| `country` | *Optional\* | :heavy_minus_sign: | The country where the viewer is located. | United States | +| `subdivision` | *Optional\* | :heavy_minus_sign: | The subdivision (e.g., state or province) where the viewer is
located.
| California | +| `timezone` | *Optional\* | :heavy_minus_sign: | The timezone where the viewer is located. | America/Los_Angeles | +| `geohash` | *Optional\* | :heavy_minus_sign: | Geographic encoding of the viewers location. Accurate to 3 digits. | 123 | | `viewCount` | *long* | :heavy_check_mark: | The number of views for the stream/asset. | 100 | | `playtimeMins` | *double* | :heavy_check_mark: | The total playtime in minutes for the stream/asset. | 10 | -| `ttffMs` | *Optional* | :heavy_minus_sign: | The time-to-first-frame (TTFF) in milliseconds. | 100 | -| `rebufferRatio` | *Optional* | :heavy_minus_sign: | The rebuffering ratio for the asset. | 0.1 | -| `errorRate` | *Optional* | :heavy_minus_sign: | The error rate for the stream/asset. | 0.1 | -| `exitsBeforeStart` | *Optional* | :heavy_minus_sign: | The percentage of sessions that existed before the asset started
playing.
| 0.5 | \ No newline at end of file +| `ttffMs` | *Optional\* | :heavy_minus_sign: | The time-to-first-frame (TTFF) in milliseconds. | 100 | +| `rebufferRatio` | *Optional\* | :heavy_minus_sign: | The rebuffering ratio for the asset. | 0.1 | +| `errorRate` | *Optional\* | :heavy_minus_sign: | The error rate for the stream/asset. | 0.1 | +| `exitsBeforeStart` | *Optional\* | :heavy_minus_sign: | The percentage of sessions that existed before the asset started
playing.
| 0.5 | \ No newline at end of file diff --git a/docs/models/components/Webhook.md b/docs/models/components/Webhook.md index f51664e..830bf56 100644 --- a/docs/models/components/Webhook.md +++ b/docs/models/components/Webhook.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `id` | *Optional\* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | | `name` | *String* | :heavy_check_mark: | N/A | test_webhook | -| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | webhook | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | -| `events` | List<[Events](../../models/components/Events.md)> | :heavy_minus_sign: | N/A | [
"stream.started",
"stream.idle"
] | +| ~~`kind`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | webhook | +| ~~`userId`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | +| `projectId` | *Optional\* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | +| `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 | -| `streamId` | *Optional* | :heavy_minus_sign: | streamId of the stream on which the webhook is applied | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `status` | [Optional](../../models/components/Status.md) | :heavy_minus_sign: | status of webhook | | \ No newline at end of file +| `streamId` | *Optional\* | :heavy_minus_sign: | streamId of the stream on which the webhook is applied | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `status` | [Optional\](../../models/components/Status.md) | :heavy_minus_sign: | status of webhook | | \ No newline at end of file diff --git a/docs/models/components/WebhookInput.md b/docs/models/components/WebhookInput.md new file mode 100644 index 0000000..3c95345 --- /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/components/WebhookLog.md b/docs/models/components/WebhookLog.md index 354a889..922a6b9 100644 --- a/docs/models/components/WebhookLog.md +++ b/docs/models/components/WebhookLog.md @@ -7,9 +7,9 @@ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | | `id` | *String* | :heavy_check_mark: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | | `webhookId` | *String* | :heavy_check_mark: | ID of the webhook this request was made for | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `event` | *Optional* | :heavy_minus_sign: | The event type that triggered the webhook request | stream.started | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which webhook request object was
created
| 1587667174725 | -| `duration` | *Optional* | :heavy_minus_sign: | The time taken (in seconds) to make the webhook request | 0.5 | -| `success` | *Optional* | :heavy_minus_sign: | Whether the webhook request was successful | true | -| `request` | [Optional](../../models/components/Request.md) | :heavy_minus_sign: | N/A | | -| `response` | [Optional](../../models/components/Response.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `event` | *Optional\* | :heavy_minus_sign: | The event type that triggered the webhook request | stream.started | +| `createdAt` | *Optional\* | :heavy_minus_sign: | Timestamp (in milliseconds) at which webhook request object was
created
| 1587667174725 | +| `duration` | *Optional\* | :heavy_minus_sign: | The time taken (in seconds) to make the webhook request | 0.5 | +| `success` | *Optional\* | :heavy_minus_sign: | Whether the webhook request was successful | true | +| `request` | [Optional\](../../models/components/Request.md) | :heavy_minus_sign: | N/A | | +| `response` | [Optional\](../../models/components/Response.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/errors/Error.md b/docs/models/errors/Error.md index 25b31cc..a2ba4c3 100644 --- a/docs/models/errors/Error.md +++ b/docs/models/errors/Error.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `errors` | List<*String*> | :heavy_minus_sign: | N/A | \ No newline at end of file +| `errors` | List\<*String*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/AddMultistreamTargetResponse.md b/docs/models/operations/AddMultistreamTargetResponse.md index 3da8246..6271b4e 100644 --- a/docs/models/operations/AddMultistreamTargetResponse.md +++ b/docs/models/operations/AddMultistreamTargetResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..2cffcd4 100644 --- a/docs/models/operations/CreateClipResponse.md +++ b/docs/models/operations/CreateClipResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | [Optional](../../models/operations/CreateClipData.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | [Optional\](../../models/operations/CreateClipData.md) | :heavy_minus_sign: | Success | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateClipTask.md b/docs/models/operations/CreateClipTask.md index dc493a0..5d710cd 100644 --- a/docs/models/operations/CreateClipTask.md +++ b/docs/models/operations/CreateClipTask.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 34d7618e-fd42-4798-acf5-19504616a11e | \ No newline at end of file +| `id` | *Optional\* | :heavy_minus_sign: | N/A | 34d7618e-fd42-4798-acf5-19504616a11e | \ No newline at end of file diff --git a/docs/models/operations/CreateMultistreamTargetResponse.md b/docs/models/operations/CreateMultistreamTargetResponse.md index 28ec03b..15b9fff 100644 --- a/docs/models/operations/CreateMultistreamTargetResponse.md +++ b/docs/models/operations/CreateMultistreamTargetResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `multistreamTarget` | [Optional\](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | +| `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..6c5aa02 100644 --- a/docs/models/operations/CreateRoomResponse.md +++ b/docs/models/operations/CreateRoomResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `createRoomResponse` | [Optional](../../models/components/CreateRoomResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `createRoomResponse` | [Optional\](../../models/components/CreateRoomResponse.md) | :heavy_minus_sign: | Success | +| `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..25f535a 100644 --- a/docs/models/operations/CreateRoomUserResponse.md +++ b/docs/models/operations/CreateRoomUserResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `roomUserResponse` | [Optional](../../models/components/RoomUserResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `roomUserResponse` | [Optional\](../../models/components/RoomUserResponse.md) | :heavy_minus_sign: | Success | +| `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..50511d2 100644 --- a/docs/models/operations/CreateSigningKeyResponse.md +++ b/docs/models/operations/CreateSigningKeyResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `signingKey` | [Optional\](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | +| `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..afff8fd 100644 --- a/docs/models/operations/CreateStreamResponse.md +++ b/docs/models/operations/CreateStreamResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `stream` | [Optional\](../../models/components/Stream.md) | :heavy_minus_sign: | Success | +| `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..6bbfefe 100644 --- a/docs/models/operations/CreateWebhookResponse.md +++ b/docs/models/operations/CreateWebhookResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `webhook` | [Optional\](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `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..dd30653 100644 --- a/docs/models/operations/DeleteAssetResponse.md +++ b/docs/models/operations/DeleteAssetResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..34ac1e8 100644 --- a/docs/models/operations/DeleteMultistreamTargetResponse.md +++ b/docs/models/operations/DeleteMultistreamTargetResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..2df4cb4 100644 --- a/docs/models/operations/DeleteRoomResponse.md +++ b/docs/models/operations/DeleteRoomResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..f3c5c31 100644 --- a/docs/models/operations/DeleteRoomUserResponse.md +++ b/docs/models/operations/DeleteRoomUserResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..d6c9d6a 100644 --- a/docs/models/operations/DeleteSigningKeyResponse.md +++ b/docs/models/operations/DeleteSigningKeyResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..132fd90 100644 --- a/docs/models/operations/DeleteStreamResponse.md +++ b/docs/models/operations/DeleteStreamResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..00c9caa 100644 --- a/docs/models/operations/DeleteWebhookResponse.md +++ b/docs/models/operations/DeleteWebhookResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `webhook` | [Optional\](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `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..b271571 100644 --- a/docs/models/operations/GetAssetResponse.md +++ b/docs/models/operations/GetAssetResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `asset` | [Optional\](../../models/components/Asset.md) | :heavy_minus_sign: | Success | +| `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..385aff0 100644 --- a/docs/models/operations/GetAssetsResponse.md +++ b/docs/models/operations/GetAssetsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | +| `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..4131afa 100644 --- a/docs/models/operations/GetClipsResponse.md +++ b/docs/models/operations/GetClipsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetCreatorViewershipMetricsRequest.md b/docs/models/operations/GetCreatorViewershipMetricsRequest.md index d148962..6ce8646 100644 --- a/docs/models/operations/GetCreatorViewershipMetricsRequest.md +++ b/docs/models/operations/GetCreatorViewershipMetricsRequest.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `from` | [Optional](../../models/operations/QueryParamFrom.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | -| `to` | [Optional](../../models/operations/QueryParamTo.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | -| `timeStep` | [Optional](../../models/operations/QueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | -| `assetId` | *Optional* | :heavy_minus_sign: | The asset ID to filter metrics for | -| `streamId` | *Optional* | :heavy_minus_sign: | The stream ID to filter metrics for | -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | -| `breakdownBy` | List<[GetCreatorViewershipMetricsQueryParamBreakdownBy](../../models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `from` | [Optional\](../../models/operations/QueryParamFrom.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | +| `to` | [Optional\](../../models/operations/QueryParamTo.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | +| `timeStep` | [Optional\](../../models/operations/QueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | +| `assetId` | *Optional\* | :heavy_minus_sign: | The asset ID to filter metrics for | +| `streamId` | *Optional\* | :heavy_minus_sign: | The stream ID to filter metrics for | +| `creatorId` | *Optional\* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List\<[GetCreatorViewershipMetricsQueryParamBreakdownBy](../../models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file diff --git a/docs/models/operations/GetCreatorViewershipMetricsResponse.md b/docs/models/operations/GetCreatorViewershipMetricsResponse.md index df05bb2..3dbbde7 100644 --- a/docs/models/operations/GetCreatorViewershipMetricsResponse.md +++ b/docs/models/operations/GetCreatorViewershipMetricsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | +| `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..23dd0f2 100644 --- a/docs/models/operations/GetMultistreamTargetResponse.md +++ b/docs/models/operations/GetMultistreamTargetResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `multistreamTarget` | [Optional\](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | +| `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..6cb3fc3 100644 --- a/docs/models/operations/GetMultistreamTargetsResponse.md +++ b/docs/models/operations/GetMultistreamTargetsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[MultistreamTarget](../../models/components/MultistreamTarget.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[MultistreamTarget](../../models/components/MultistreamTarget.md)> | :heavy_minus_sign: | Success | +| `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..27b7b90 100644 --- a/docs/models/operations/GetPlaybackInfoResponse.md +++ b/docs/models/operations/GetPlaybackInfoResponse.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Playback not found | \ No newline at end of file diff --git a/docs/models/operations/GetPublicViewershipMetricsData.md b/docs/models/operations/GetPublicViewershipMetricsData.md index f231c25..9b9522c 100644 --- a/docs/models/operations/GetPublicViewershipMetricsData.md +++ b/docs/models/operations/GetPublicViewershipMetricsData.md @@ -9,7 +9,7 @@ asset. Either playbackId or dStorageUrl will be set. | Field | Type | Required | Description | Example | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | -| `dStorageUrl` | *Optional* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | -| `viewCount` | *Optional* | :heavy_minus_sign: | The number of views for the stream/asset. | 100 | -| `playtimeMins` | *Optional* | :heavy_minus_sign: | The total playtime in minutes for the stream/asset. | 10 | \ No newline at end of file +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | +| `dStorageUrl` | *Optional\* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | +| `viewCount` | *Optional\* | :heavy_minus_sign: | The number of views for the stream/asset. | 100 | +| `playtimeMins` | *Optional\* | :heavy_minus_sign: | The total playtime in minutes for the stream/asset. | 10 | \ No newline at end of file diff --git a/docs/models/operations/GetPublicViewershipMetricsResponse.md b/docs/models/operations/GetPublicViewershipMetricsResponse.md index 3872ebb..a86285f 100644 --- a/docs/models/operations/GetPublicViewershipMetricsResponse.md +++ b/docs/models/operations/GetPublicViewershipMetricsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | [Optional\](../../models/operations/GetPublicViewershipMetricsData.md) | :heavy_minus_sign: | A single Metric object with the viewCount and playtimeMins metrics. | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRealtimeViewershipNowRequest.md b/docs/models/operations/GetRealtimeViewershipNowRequest.md index 4d9ba21..9504688 100644 --- a/docs/models/operations/GetRealtimeViewershipNowRequest.md +++ b/docs/models/operations/GetRealtimeViewershipNowRequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | -| `breakdownBy` | List<[BreakdownBy](../../models/operations/BreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| +| `creatorId` | *Optional\* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List\<[BreakdownBy](../../models/operations/BreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file diff --git a/docs/models/operations/GetRealtimeViewershipNowResponse.md b/docs/models/operations/GetRealtimeViewershipNowResponse.md index 8e89968..8d2e595 100644 --- a/docs/models/operations/GetRealtimeViewershipNowResponse.md +++ b/docs/models/operations/GetRealtimeViewershipNowResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[RealtimeViewershipMetric](../../models/components/RealtimeViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRecordedSessionsRequest.md b/docs/models/operations/GetRecordedSessionsRequest.md index e7b927e..a8efe11 100644 --- a/docs/models/operations/GetRecordedSessionsRequest.md +++ b/docs/models/operations/GetRecordedSessionsRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | | `parentId` | *String* | :heavy_check_mark: | ID of the parent stream | | -| `record` | [Optional](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | \ No newline at end of file +| `record` | [Optional\](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | \ No newline at end of file diff --git a/docs/models/operations/GetRecordedSessionsResponse.md b/docs/models/operations/GetRecordedSessionsResponse.md index cce0752..961d8a3 100644 --- a/docs/models/operations/GetRecordedSessionsResponse.md +++ b/docs/models/operations/GetRecordedSessionsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | +| `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..ac84f9b 100644 --- a/docs/models/operations/GetRoomResponse.md +++ b/docs/models/operations/GetRoomResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `room` | [Optional](../../models/components/Room.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `room` | [Optional\](../../models/components/Room.md) | :heavy_minus_sign: | Success | +| `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..cb7096f 100644 --- a/docs/models/operations/GetRoomUserResponse.md +++ b/docs/models/operations/GetRoomUserResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `getRoomUserResponse` | [Optional](../../models/components/GetRoomUserResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `getRoomUserResponse` | [Optional\](../../models/components/GetRoomUserResponse.md) | :heavy_minus_sign: | Success | +| `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..970294b 100644 --- a/docs/models/operations/GetSessionClipsResponse.md +++ b/docs/models/operations/GetSessionClipsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | +| `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..f5aa092 100644 --- a/docs/models/operations/GetSessionResponse.md +++ b/docs/models/operations/GetSessionResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `session` | [Optional](../../models/components/Session.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `session` | [Optional\](../../models/components/Session.md) | :heavy_minus_sign: | Success | +| `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..6250bf1 100644 --- a/docs/models/operations/GetSessionsResponse.md +++ b/docs/models/operations/GetSessionsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | +| `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..357613f 100644 --- a/docs/models/operations/GetSigningKeyResponse.md +++ b/docs/models/operations/GetSigningKeyResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `signingKey` | [Optional\](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | +| `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..c435326 100644 --- a/docs/models/operations/GetSigningKeysResponse.md +++ b/docs/models/operations/GetSigningKeysResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[SigningKey](../../models/components/SigningKey.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[SigningKey](../../models/components/SigningKey.md)> | :heavy_minus_sign: | Success | +| `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..4851cf5 100644 --- a/docs/models/operations/GetStreamResponse.md +++ b/docs/models/operations/GetStreamResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `stream` | [Optional\](../../models/components/Stream.md) | :heavy_minus_sign: | Success | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetStreamsRequest.md b/docs/models/operations/GetStreamsRequest.md index bbd99d7..1718ff6 100644 --- a/docs/models/operations/GetStreamsRequest.md +++ b/docs/models/operations/GetStreamsRequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `streamsonly` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `streamsonly` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetStreamsResponse.md b/docs/models/operations/GetStreamsResponse.md index 1ea0010..277b1e8 100644 --- a/docs/models/operations/GetStreamsResponse.md +++ b/docs/models/operations/GetStreamsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Stream](../../models/components/Stream.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Stream](../../models/components/Stream.md)> | :heavy_minus_sign: | Success | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetTaskResponse.md b/docs/models/operations/GetTaskResponse.md index 3a27830..3b0a095 100644 --- a/docs/models/operations/GetTaskResponse.md +++ b/docs/models/operations/GetTaskResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `task` | [Optional](../../models/components/Task.md) | :heavy_minus_sign: | Success | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `task` | [Optional\](../../models/components/Task.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/docs/models/operations/GetTasksResponse.md b/docs/models/operations/GetTasksResponse.md index 72f6c33..64ea7ff 100644 --- a/docs/models/operations/GetTasksResponse.md +++ b/docs/models/operations/GetTasksResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Task](../../models/components/Task.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Task](../../models/components/Task.md)> | :heavy_minus_sign: | Success | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetUsageMetricsRequest.md b/docs/models/operations/GetUsageMetricsRequest.md index 5ca81b3..47a999b 100644 --- a/docs/models/operations/GetUsageMetricsRequest.md +++ b/docs/models/operations/GetUsageMetricsRequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `from` | *Optional* | :heavy_minus_sign: | Start millis timestamp for the query range (inclusive)
| -| `to` | *Optional* | :heavy_minus_sign: | End millis timestamp for the query range (exclusive)
| -| `timeStep` | [Optional](../../models/operations/GetUsageMetricsQueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by
| -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results
| -| `breakdownBy` | List<[GetUsageMetricsQueryParamBreakdownBy](../../models/operations/GetUsageMetricsQueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Currently the
only supported breakdown is by `creatorId`.
| \ No newline at end of file +| `from` | *Optional\* | :heavy_minus_sign: | Start millis timestamp for the query range (inclusive)
| +| `to` | *Optional\* | :heavy_minus_sign: | End millis timestamp for the query range (exclusive)
| +| `timeStep` | [Optional\](../../models/operations/GetUsageMetricsQueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by
| +| `creatorId` | *Optional\* | :heavy_minus_sign: | The creator ID to filter the query results
| +| `breakdownBy` | List\<[GetUsageMetricsQueryParamBreakdownBy](../../models/operations/GetUsageMetricsQueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Currently the
only supported breakdown is by `creatorId`.
| \ No newline at end of file diff --git a/docs/models/operations/GetUsageMetricsResponse.md b/docs/models/operations/GetUsageMetricsResponse.md index b31e631..137c161 100644 --- a/docs/models/operations/GetUsageMetricsResponse.md +++ b/docs/models/operations/GetUsageMetricsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `usageMetric` | [Optional\](../../models/components/UsageMetric.md) | :heavy_minus_sign: | A Usage Metric object | +| `error` | [Optional\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetViewershipMetricsRequest.md b/docs/models/operations/GetViewershipMetricsRequest.md index efda874..d57b4bb 100644 --- a/docs/models/operations/GetViewershipMetricsRequest.md +++ b/docs/models/operations/GetViewershipMetricsRequest.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| -| `from` | [Optional](../../models/operations/From.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | -| `to` | [Optional](../../models/operations/To.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | -| `timeStep` | [Optional](../../models/operations/TimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | -| `assetId` | *Optional* | :heavy_minus_sign: | The asset ID to filter metrics for | -| `streamId` | *Optional* | :heavy_minus_sign: | The stream ID to filter metrics for | -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | -| `breakdownBy` | List<[QueryParamBreakdownBy](../../models/operations/QueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| +| `from` | [Optional\](../../models/operations/From.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | +| `to` | [Optional\](../../models/operations/To.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | +| `timeStep` | [Optional\](../../models/operations/TimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | +| `assetId` | *Optional\* | :heavy_minus_sign: | The asset ID to filter metrics for | +| `streamId` | *Optional\* | :heavy_minus_sign: | The stream ID to filter metrics for | +| `creatorId` | *Optional\* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List\<[QueryParamBreakdownBy](../../models/operations/QueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file diff --git a/docs/models/operations/GetViewershipMetricsResponse.md b/docs/models/operations/GetViewershipMetricsResponse.md index 762ae90..5dd3135 100644 --- a/docs/models/operations/GetViewershipMetricsResponse.md +++ b/docs/models/operations/GetViewershipMetricsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | +| `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..856145c 100644 --- a/docs/models/operations/GetWebhookLogResponse.md +++ b/docs/models/operations/GetWebhookLogResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `webhookLog` | [Optional\](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | +| `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..8f6af4a 100644 --- a/docs/models/operations/GetWebhookLogsResponse.md +++ b/docs/models/operations/GetWebhookLogsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[WebhookLog](../../models/components/WebhookLog.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[WebhookLog](../../models/components/WebhookLog.md)> | :heavy_minus_sign: | Success | +| `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..723ab1e 100644 --- a/docs/models/operations/GetWebhookResponse.md +++ b/docs/models/operations/GetWebhookResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `webhook` | [Optional\](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `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..c2c9d76 100644 --- a/docs/models/operations/GetWebhooksResponse.md +++ b/docs/models/operations/GetWebhooksResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | List<[Webhook](../../models/components/Webhook.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | List\<[Webhook](../../models/components/Webhook.md)> | :heavy_minus_sign: | Success | +| `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..6753ac2 100644 --- a/docs/models/operations/RemoveMultistreamTargetResponse.md +++ b/docs/models/operations/RemoveMultistreamTargetResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..64c4e79 100644 --- a/docs/models/operations/RequestUploadResponse.md +++ b/docs/models/operations/RequestUploadResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `data` | [Optional](../../models/operations/RequestUploadData.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `data` | [Optional\](../../models/operations/RequestUploadData.md) | :heavy_minus_sign: | Success | +| `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..44087da 100644 --- a/docs/models/operations/ResendWebhookResponse.md +++ b/docs/models/operations/ResendWebhookResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `webhookLog` | [Optional\](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | +| `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..4ad8aea 100644 --- a/docs/models/operations/StartPullStreamResponse.md +++ b/docs/models/operations/StartPullStreamResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..45cb8dd 100644 --- a/docs/models/operations/StartRoomEgressResponse.md +++ b/docs/models/operations/StartRoomEgressResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..6250259 100644 --- a/docs/models/operations/StopRoomEgressResponse.md +++ b/docs/models/operations/StopRoomEgressResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..2da59c1 100644 --- a/docs/models/operations/TerminateStreamResponse.md +++ b/docs/models/operations/TerminateStreamResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..71cdfcf 100644 --- a/docs/models/operations/TranscodeVideoResponse.md +++ b/docs/models/operations/TranscodeVideoResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `task` | [Optional](../../models/components/Task.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `task` | [Optional\](../../models/components/Task.md) | :heavy_minus_sign: | Success | +| `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..7a21b62 100644 --- a/docs/models/operations/UpdateAssetResponse.md +++ b/docs/models/operations/UpdateAssetResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `asset` | [Optional\](../../models/components/Asset.md) | :heavy_minus_sign: | Success | +| `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..a33bab1 100644 --- a/docs/models/operations/UpdateMultistreamTargetResponse.md +++ b/docs/models/operations/UpdateMultistreamTargetResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..6dc0f72 100644 --- a/docs/models/operations/UpdateRoomUserResponse.md +++ b/docs/models/operations/UpdateRoomUserResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../models/components/Error.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateSigningKeyRequestBody.md b/docs/models/operations/UpdateSigningKeyRequestBody.md index f183b8d..9732af3 100644 --- a/docs/models/operations/UpdateSigningKeyRequestBody.md +++ b/docs/models/operations/UpdateSigningKeyRequestBody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `disabled` | *Optional* | :heavy_minus_sign: | N/A | -| `name` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `disabled` | *Optional\* | :heavy_minus_sign: | N/A | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateSigningKeyResponse.md b/docs/models/operations/UpdateSigningKeyResponse.md index 815fe3a..192ce97 100644 --- a/docs/models/operations/UpdateSigningKeyResponse.md +++ b/docs/models/operations/UpdateSigningKeyResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..854dd27 100644 --- a/docs/models/operations/UpdateStreamResponse.md +++ b/docs/models/operations/UpdateStreamResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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\](../../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..3aef67f 100644 --- a/docs/models/operations/UpdateWebhookResponse.md +++ b/docs/models/operations/UpdateWebhookResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `webhook` | [Optional\](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `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..d24648f 100644 --- a/docs/models/operations/UploadAssetResponse.md +++ b/docs/models/operations/UploadAssetResponse.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `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 +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `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 | +| `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\](../../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..0e9f6d4 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 } - } } ``` @@ -64,9 +55,9 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | -| `breakdownBy` | List<[BreakdownBy](../../models/operations/BreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| +| `playbackId` | *Optional\* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| +| `creatorId` | *Optional\* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List\<[BreakdownBy](../../models/operations/BreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| ### 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..88d7aad 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 } - } } ``` @@ -227,7 +188,7 @@ public class Application { | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | | `parentId` | *String* | :heavy_check_mark: | ID of the parent stream | | -| `record` | [Optional](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | +| `record` | [Optional\](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | ### 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..0ae19de 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,41 +167,32 @@ 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 } - } } ``` ### Parameters -| Parameter | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `streamsonly` | *Optional* | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `streamsonly` | *Optional\* | :heavy_minus_sign: | N/A | ### 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() @@ -368,18 +337,11 @@ public class Application { .encoder(TranscodeProfileEncoder.H264) .build())) .build()) + .name("test_stream") .build()) .call(); - // handle response - } catch (SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - + // handle response } } ``` @@ -397,10 +359,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 +378,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 +409,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 +432,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 +463,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 +485,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 +516,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 +532,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 +550,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 +573,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 +588,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 +621,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 +638,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 +661,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 +679,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 +694,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 +727,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..43535b7 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.461.4"; + 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/Output.java b/src/main/java/studio/livepeer/livepeer/models/components/Output.java index 170848e..a51d933 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Output.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Output.java @@ -10,11 +10,9 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Map; import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; @@ -30,7 +28,7 @@ public class Output { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("upload") - private Optional> upload; + private Optional upload; /** * Output of the export task @@ -48,7 +46,7 @@ public class Output { @JsonCreator public Output( - @JsonProperty("upload") Optional> upload, + @JsonProperty("upload") Optional upload, @JsonProperty("export") Optional export, @JsonProperty("exportData") Optional exportData) { Utils.checkNotNull(upload, "upload"); @@ -68,8 +66,8 @@ public Output() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> upload() { - return (Optional>) upload; + public Optional upload() { + return (Optional) upload; } /** @@ -97,7 +95,7 @@ public final static Builder builder() { /** * Output of the upload task */ - public Output withUpload(Map upload) { + public Output withUpload(TaskUpload upload) { Utils.checkNotNull(upload, "upload"); this.upload = Optional.ofNullable(upload); return this; @@ -106,7 +104,7 @@ public Output withUpload(Map upload) { /** * Output of the upload task */ - public Output withUpload(Optional> upload) { + public Output withUpload(Optional upload) { Utils.checkNotNull(upload, "upload"); this.upload = upload; return this; @@ -181,7 +179,7 @@ public String toString() { public final static class Builder { - private Optional> upload = Optional.empty(); + private Optional upload = Optional.empty(); private Optional export = Optional.empty(); @@ -194,7 +192,7 @@ private Builder() { /** * Output of the upload task */ - public Builder upload(Map upload) { + public Builder upload(TaskUpload upload) { Utils.checkNotNull(upload, "upload"); this.upload = Optional.ofNullable(upload); return this; @@ -203,7 +201,7 @@ public Builder upload(Map upload) { /** * Output of the upload task */ - public Builder upload(Optional> upload) { + public Builder upload(Optional upload) { Utils.checkNotNull(upload, "upload"); this.upload = upload; return this; 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/StreamPatchPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java index ea3da9f..de65e03 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java @@ -70,6 +70,10 @@ public class StreamPatchPayload { @JsonProperty("userTags") private Optional> userTags; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + @JsonCreator public StreamPatchPayload( @JsonProperty("creatorId") Optional creatorId, @@ -79,7 +83,8 @@ public StreamPatchPayload( @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, @JsonProperty("profiles") JsonNullable> profiles, @JsonProperty("recordingSpec") Optional recordingSpec, - @JsonProperty("userTags") Optional> userTags) { + @JsonProperty("userTags") Optional> userTags, + @JsonProperty("name") Optional name) { Utils.checkNotNull(creatorId, "creatorId"); Utils.checkNotNull(record, "record"); Utils.checkNotNull(suspended, "suspended"); @@ -88,6 +93,7 @@ public StreamPatchPayload( Utils.checkNotNull(profiles, "profiles"); Utils.checkNotNull(recordingSpec, "recordingSpec"); Utils.checkNotNull(userTags, "userTags"); + Utils.checkNotNull(name, "name"); this.creatorId = creatorId; this.record = record; this.suspended = suspended; @@ -96,10 +102,11 @@ public StreamPatchPayload( this.profiles = profiles; this.recordingSpec = recordingSpec; this.userTags = userTags; + this.name = name; } public StreamPatchPayload() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty()); } @SuppressWarnings("unchecked") @@ -162,6 +169,11 @@ public Optional> userTags() { return (Optional>) userTags; } + @JsonIgnore + public Optional name() { + return name; + } + public final static Builder builder() { return new Builder(); } @@ -289,6 +301,18 @@ public StreamPatchPayload withUserTags(Optional> this.userTags = userTags; return this; } + + public StreamPatchPayload withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public StreamPatchPayload withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -307,7 +331,8 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && Objects.deepEquals(this.profiles, other.profiles) && Objects.deepEquals(this.recordingSpec, other.recordingSpec) && - Objects.deepEquals(this.userTags, other.userTags); + Objects.deepEquals(this.userTags, other.userTags) && + Objects.deepEquals(this.name, other.name); } @Override @@ -320,7 +345,8 @@ public int hashCode() { playbackPolicy, profiles, recordingSpec, - userTags); + userTags, + name); } @Override @@ -333,7 +359,8 @@ public String toString() { "playbackPolicy", playbackPolicy, "profiles", profiles, "recordingSpec", recordingSpec, - "userTags", userTags); + "userTags", userTags, + "name", name); } public final static class Builder { @@ -352,7 +379,9 @@ public final static class Builder { private Optional recordingSpec = Optional.empty(); - private Optional> userTags = Optional.empty(); + private Optional> userTags = Optional.empty(); + + private Optional name = Optional.empty(); private Builder() { // force use of static builder() method @@ -481,6 +510,18 @@ public Builder userTags(Optional> userTags) { this.userTags = userTags; return this; } + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } public StreamPatchPayload build() { return new StreamPatchPayload( @@ -491,7 +532,8 @@ public StreamPatchPayload build() { playbackPolicy, profiles, recordingSpec, - userTags); + userTags, + name); } } } 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/TaskUpload.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskUpload.java new file mode 100644 index 0000000..7d7b2e1 --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskUpload.java @@ -0,0 +1,164 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.components; + + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +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.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import studio.livepeer.livepeer.utils.Utils; + +/** + * TaskUpload - Output of the upload task + */ + +public class TaskUpload { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("assetSpec") + private Optional assetSpec; + + @JsonIgnore + private Map additionalProperties; + + @JsonCreator + public TaskUpload( + @JsonProperty("assetSpec") Optional assetSpec) { + Utils.checkNotNull(assetSpec, "assetSpec"); + this.assetSpec = assetSpec; + this.additionalProperties = new HashMap<>(); + } + + public TaskUpload() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional assetSpec() { + return (Optional) assetSpec; + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + public final static Builder builder() { + return new Builder(); + } + + public TaskUpload withAssetSpec(Asset assetSpec) { + Utils.checkNotNull(assetSpec, "assetSpec"); + this.assetSpec = Optional.ofNullable(assetSpec); + return this; + } + + public TaskUpload withAssetSpec(Optional assetSpec) { + Utils.checkNotNull(assetSpec, "assetSpec"); + this.assetSpec = assetSpec; + return this; + } + + @JsonAnySetter + public TaskUpload withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + + public TaskUpload withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaskUpload other = (TaskUpload) o; + return + Objects.deepEquals(this.assetSpec, other.assetSpec) && + Objects.deepEquals(this.additionalProperties, other.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + assetSpec, + additionalProperties); + } + + @Override + public String toString() { + return Utils.toString(TaskUpload.class, + "assetSpec", assetSpec, + "additionalProperties", additionalProperties); + } + + public final static class Builder { + + private Optional assetSpec = Optional.empty(); + + private Map additionalProperties = new HashMap<>(); + + private Builder() { + // force use of static builder() method + } + + public Builder assetSpec(Asset assetSpec) { + Utils.checkNotNull(assetSpec, "assetSpec"); + this.assetSpec = Optional.ofNullable(assetSpec); + return this; + } + + public Builder assetSpec(Optional assetSpec) { + Utils.checkNotNull(assetSpec, "assetSpec"); + this.assetSpec = assetSpec; + return this; + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public TaskUpload build() { + return new TaskUpload( + assetSpec) + .withAdditionalProperties(additionalProperties); + } + } +} + 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/errors/Error.java b/src/main/java/studio/livepeer/livepeer/models/errors/Error.java index 2e60a81..3d94bdd 100644 --- a/src/main/java/studio/livepeer/livepeer/models/errors/Error.java +++ b/src/main/java/studio/livepeer/livepeer/models/errors/Error.java @@ -16,6 +16,7 @@ import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; +@SuppressWarnings("serial") public class Error extends RuntimeException { @JsonInclude(Include.NON_ABSENT) 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/EventStream.java b/src/main/java/studio/livepeer/livepeer/utils/EventStream.java index dd68b0e..9d6b44c 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/EventStream.java +++ b/src/main/java/studio/livepeer/livepeer/utils/EventStream.java @@ -33,12 +33,14 @@ public final class EventStream implements AutoCloseable { private final EventStreamReader reader; private final TypeReference typeReference; private final ObjectMapper mapper; + private final Optional terminalMessage; // Internal use only - public EventStream(InputStream in, TypeReference typeReference, ObjectMapper mapper) { + public EventStream(InputStream in, TypeReference typeReference, ObjectMapper mapper, Optional terminalMessage) { this.reader = new EventStreamReader(in); this.typeReference = typeReference; this.mapper = mapper; + this.terminalMessage = terminalMessage; } /** @@ -50,6 +52,7 @@ public EventStream(InputStream in, TypeReference typeReference, ObjectMapper */ public Optional next() throws IOException { return reader.readMessage() // + .filter(x -> !terminalMessage.isPresent() || !terminalMessage.get().equals(x.data())) // .map(x -> Utils.asType(x, mapper, typeReference)); } @@ -124,3 +127,4 @@ public void close() throws Exception { } } + diff --git a/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java b/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java index fbb8a4f..de55244 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java +++ b/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java @@ -4,6 +4,7 @@ package studio.livepeer.livepeer.utils; +import java.net.URI; import java.net.URISyntaxException; import java.net.http.HttpRequest; import java.net.http.HttpRequest.BodyPublisher; @@ -15,15 +16,15 @@ import java.util.Map; import java.util.Optional; -import org.apache.http.NameValuePair; -import org.apache.http.client.utils.URIBuilder; -import org.apache.http.message.BasicNameValuePair; - public class HTTPRequest { + private static final String FRAGMENT_SEGMENT_START = "#"; + private static final String QUERY_NAME_VALUE_DELIMITER = "="; + private static final String QUERY_PARAMETER_DELIMITER = "&"; + private static final String QUERY_SEGMENT_START = "?"; private final String baseURL; private final String method; - private final List queryParams = new ArrayList<>(); + private final List queryParams = new ArrayList<>(); private final Map> headers = new HashMap<>(); private Optional body = Optional.empty(); // mutable @@ -54,21 +55,21 @@ public HTTPRequest addHeaders(Map> map) { return this; } - public HTTPRequest addQueryParam(String name, String value) { - addQueryParam(new BasicNameValuePair(name, value)); + public HTTPRequest addQueryParam(QueryParameter param) { + this.queryParams.add(param); return this; } - - public HTTPRequest addQueryParam(NameValuePair param) { - this.queryParams.add(param); + + public HTTPRequest addQueryParam(String key, String value, boolean allowReserved) { + this.queryParams.add(QueryParameter.of(key, value, allowReserved)); return this; } - public HTTPRequest addQueryParams(Collection params) { + public HTTPRequest addQueryParams(Collection params) { params.forEach(p -> addQueryParam(p)); return this; } - + public HttpRequest build() { HttpRequest.Builder requestBuilder = HttpRequest.newBuilder(); @@ -81,14 +82,49 @@ public HttpRequest build() { } requestBuilder.method(method, bodyPublisher); try { - URIBuilder b = new URIBuilder(this.baseURL); - queryParams.forEach(pair -> b.addParameter(pair.getName(), pair.getValue())); - requestBuilder.uri(b.build()); + requestBuilder.uri(new URI(buildUrl(baseURL, queryParams))); } catch (URISyntaxException e) { throw new RuntimeException(e); } headers.forEach((k, list) -> list.forEach(v -> requestBuilder.header(k, v))); return requestBuilder.build(); } - + + // VisibleForTesting + public static String buildUrl(String baseURL, Collection queryParams) { + if (queryParams.isEmpty()) { + return baseURL; + } else { + final String base; + final String fragment; + int i = baseURL.indexOf(FRAGMENT_SEGMENT_START); + if (i == -1) { + base = baseURL; + fragment = ""; + } else { + base = baseURL.substring(0, i); + fragment = baseURL.substring(i); + } + StringBuilder b = new StringBuilder(base); + if (!base.contains(QUERY_SEGMENT_START)) { + b.append(QUERY_SEGMENT_START); + } else { + b.append(QUERY_PARAMETER_DELIMITER); + } + boolean first = true; + for (QueryParameter p : queryParams) { + if (!first) { + b.append(QUERY_PARAMETER_DELIMITER); + } + first = false; + // don't allow reserved characters to be unencoded in key (??) + b.append(Utf8UrlEncoder.DEFAULT.encode(p.name())); + b.append(QUERY_NAME_VALUE_DELIMITER); + b.append(Utf8UrlEncoder.allowReserved(p.allowReserved()).encode(p.value())); + } + b.append(fragment); + return b.toString(); + } + } + } \ No newline at end of file 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/PathParamsMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java index 909a1a7..2316928 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java @@ -8,15 +8,17 @@ class PathParamsMetadata { + // these fields set via reflection + String style = "simple"; boolean explode; String name; String serialization; + boolean allowReserved; private PathParamsMetadata() { } - // pathParam:style=simple,explode=false,name=apiID static PathParamsMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { return Metadata.parse("pathParam", new PathParamsMetadata(), field); } diff --git a/src/main/java/studio/livepeer/livepeer/utils/QueryParameter.java b/src/main/java/studio/livepeer/livepeer/utils/QueryParameter.java new file mode 100644 index 0000000..886d535 --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/utils/QueryParameter.java @@ -0,0 +1,62 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.utils; + +import java.util.Objects; + +// internal class, not for public use +// TODO move to internal package +public final class QueryParameter { + + private final String name; + private final String value; + private final boolean allowReserved; + + private QueryParameter(String name, String value, boolean allowReserved) { + this.name = name; + this.value = value; + this.allowReserved = allowReserved; + } + + public static QueryParameter of(String name, String value, boolean allowReserved) { + return new QueryParameter(name, value, allowReserved); + } + + public String name() { + return name; + } + + public String value() { + return value; + } + + public boolean allowReserved() { + return allowReserved; + } + + @Override + public String toString() { + return "QueryParameter [name=" + name + ", value=" + value + ", allowReserved=" + allowReserved + "]"; + } + + @Override + public int hashCode() { + return Objects.hash(allowReserved, name, value); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + QueryParameter other = (QueryParameter) obj; + return allowReserved == other.allowReserved && Objects.equals(name, other.name) + && Objects.equals(value, other.value); + } + +} diff --git a/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java b/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java index 0f617bc..ae76fae 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java +++ b/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java @@ -11,16 +11,13 @@ import java.util.Map; import java.util.stream.Collectors; -import org.apache.http.NameValuePair; -import org.apache.http.message.BasicNameValuePair; - import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; public class QueryParameters { - public static List parseQueryParams(Class type, T queryParams, + public static List parseQueryParams(Class type, T queryParams, Map>> globals) throws Exception { - List allParams = new ArrayList<>(); + List allParams = new ArrayList<>(); Field[] fields = type.getDeclaredFields(); @@ -45,22 +42,24 @@ public static List parseQueryParams(Class t } if (queryParamsMetadata.serialization != null && !queryParamsMetadata.serialization.isBlank()) { - List params = parseSerializedParams(queryParamsMetadata, value); + List params = parseSerializedParams(queryParamsMetadata, value); allParams.addAll(params); } else { switch (queryParamsMetadata.style) { case "form": - List formParams = parseDelimitedParams(queryParamsMetadata, value, ","); + List formParams = parseDelimitedParams(queryParamsMetadata, value, ","); allParams.addAll(formParams); break; case "deepObject": - List deepObjectParams = parseDeepObjectParams(queryParamsMetadata, value); + List deepObjectParams = parseDeepObjectParams(queryParamsMetadata, value); allParams.addAll(deepObjectParams); break; case "pipeDelimited": - List pipeDelimitedParams = parseDelimitedParams(queryParamsMetadata, value, "|"); + List pipeDelimitedParams = parseDelimitedParams(queryParamsMetadata, value, "|"); allParams.addAll(pipeDelimitedParams); break; + default: + break; } } } @@ -68,25 +67,24 @@ public static List parseQueryParams(Class t return allParams; } - private static List parseSerializedParams(QueryParamsMetadata queryParamsMetadata, Object value) + private static List parseSerializedParams(QueryParamsMetadata queryParamsMetadata, Object value) throws JsonProcessingException { - List params = new ArrayList<>(); - + 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)); + params.add(QueryParameter.of(queryParamsMetadata.name, json, queryParamsMetadata.allowReserved)); + break; + default: break; } - return params; } - private static List parseDelimitedParams(QueryParamsMetadata queryParamsMetadata, Object value, String delimiter) + private static List parseDelimitedParams(QueryParamsMetadata queryParamsMetadata, Object value, String delimiter) throws IllegalArgumentException, IllegalAccessException { - List params = new ArrayList<>(); + List params = new ArrayList<>(); switch (Types.getType(value.getClass())) { case ARRAY: { @@ -106,7 +104,7 @@ private static List parseDelimitedParams(QueryParamsMetadata quer values.add(String.join(delimiter, items)); } - params.addAll(values.stream().map(v -> new BasicNameValuePair(queryParamsMetadata.name, v)) + params.addAll(values.stream().map(v -> QueryParameter.of(queryParamsMetadata.name, v, queryParamsMetadata.allowReserved)) .collect(Collectors.toList())); break; } @@ -120,20 +118,20 @@ private static List parseDelimitedParams(QueryParamsMetadata quer String val = Utils.valToString(entry.getValue()); if (queryParamsMetadata.explode) { - params.add(new BasicNameValuePair(key, val)); + params.add(QueryParameter.of(key, val, queryParamsMetadata.allowReserved)); } else { items.add(String.format("%s%s%s", key, delimiter, val)); } } if (items.size() > 0) { - params.add(new BasicNameValuePair(queryParamsMetadata.name, String.join(delimiter, items))); + params.add(QueryParameter.of(queryParamsMetadata.name, String.join(delimiter, items), queryParamsMetadata.allowReserved)); } break; } case OBJECT: { if (!Utils.allowIntrospection(value.getClass())) { - params.add(new BasicNameValuePair(queryParamsMetadata.name, Utils.valToString(value))); + params.add(QueryParameter.of(queryParamsMetadata.name, Utils.valToString(value), queryParamsMetadata.allowReserved)); break; } Field[] fields = value.getClass().getDeclaredFields(); @@ -154,29 +152,29 @@ private static List parseDelimitedParams(QueryParamsMetadata quer } if (queryParamsMetadata.explode) { - params.add(new BasicNameValuePair(metadata.name, Utils.valToString(val))); + params.add(QueryParameter.of(metadata.name, Utils.valToString(val), metadata.allowReserved)); } else { items.add(String.format("%s%s%s", metadata.name, delimiter, Utils.valToString(val))); } } if (items.size() > 0) { - params.add(new BasicNameValuePair(queryParamsMetadata.name, String.join(delimiter, items))); + params.add(QueryParameter.of(queryParamsMetadata.name, String.join(delimiter, items), queryParamsMetadata.allowReserved)); } break; } default: - params.add(new BasicNameValuePair(queryParamsMetadata.name, Utils.valToString(value))); + params.add(QueryParameter.of(queryParamsMetadata.name, Utils.valToString(value), queryParamsMetadata.allowReserved)); break; } return params; } - private static List parseDeepObjectParams(QueryParamsMetadata queryParamsMetadata, Object value) + private static List parseDeepObjectParams(QueryParamsMetadata queryParamsMetadata, Object value) throws Exception { - List params = new ArrayList<>(); + List params = new ArrayList<>(); switch (Types.getType(value.getClass())) { case MAP: { @@ -188,12 +186,12 @@ private static List parseDeepObjectParams(QueryParamsMetadata que if (val instanceof List || val.getClass().isArray()) { for (Object v : Utils.toList(val)) { - params.add(new BasicNameValuePair(String.format("%s[%s]", queryParamsMetadata.name, key), - Utils.valToString(v))); + params.add(QueryParameter.of(String.format("%s[%s]", queryParamsMetadata.name, key), + Utils.valToString(v), queryParamsMetadata.allowReserved)); } } else { - params.add(new BasicNameValuePair(String.format("%s[%s]", queryParamsMetadata.name, key), - Utils.valToString(val))); + params.add(QueryParameter.of(String.format("%s[%s]", queryParamsMetadata.name, key), + Utils.valToString(val), queryParamsMetadata.allowReserved)); } } @@ -220,14 +218,14 @@ private static List parseDeepObjectParams(QueryParamsMetadata que if (val instanceof List || val.getClass().isArray()) { for (Object v : Utils.toList(val)) { - params.add(new BasicNameValuePair( + params.add(QueryParameter.of( String.format("%s[%s]", queryParamsMetadata.name, metadata.name), - Utils.valToString(v))); + Utils.valToString(v), metadata.allowReserved)); } } else { params.add( - new BasicNameValuePair(String.format("%s[%s]", queryParamsMetadata.name, metadata.name), - Utils.valToString(val))); + QueryParameter.of(String.format("%s[%s]", queryParamsMetadata.name, metadata.name), + Utils.valToString(val), metadata.allowReserved)); } } diff --git a/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java index 43c33f9..53ede7f 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java @@ -8,12 +8,14 @@ class QueryParamsMetadata { + // these parameters set via reflection + String style = "form"; boolean explode = true; String name; String serialization; + boolean allowReserved; - // queryParam:style=simple,explode=false,name=apiID static QueryParamsMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { return Metadata.parse("queryParam", new QueryParamsMetadata(), field); } diff --git a/src/main/java/studio/livepeer/livepeer/utils/Security.java b/src/main/java/studio/livepeer/livepeer/utils/Security.java index d0e314d..05321b1 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 { @@ -107,7 +108,7 @@ private static void parseSecuritySchemeValue(HTTPRequest request, SecurityMetada break; case "query": request.addQueryParam( - securityMetadata.name, Utils.valToString(value)); + securityMetadata.name, Utils.valToString(value), false); break; case "cookie": request.addHeader("Cookie", @@ -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/Utf8UrlEncoder.java b/src/main/java/studio/livepeer/livepeer/utils/Utf8UrlEncoder.java new file mode 100644 index 0000000..680a797 --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/utils/Utf8UrlEncoder.java @@ -0,0 +1,117 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.utils; + +import java.io.CharArrayWriter; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.util.BitSet; +import java.util.Objects; + +// Internal use only +// TODO move to an internal package +public final class Utf8UrlEncoder { + + private static final BitSet DO_NOT_ENCODE_CHARS = createDoNotEncodeChars(); + private static final int CASE_DIFF = ('a' - 'A'); + + private final BitSet safeChars; + + public static final Utf8UrlEncoder ALLOW_RESERVED = new Utf8UrlEncoder(":/?#[]@!$&'()*+,;="); + public static final Utf8UrlEncoder DEFAULT = new Utf8UrlEncoder(""); + + public static Utf8UrlEncoder allowReserved(boolean allowReserved) { + return allowReserved ? ALLOW_RESERVED : DEFAULT; + } + + private Utf8UrlEncoder(String safeCharacters) { + Objects.requireNonNull(safeCharacters, "safeCharacters"); + int max = -1; + for (int i = 0; i < safeCharacters.length(); i++) { + char ch = safeCharacters.charAt(i); + max = Math.max(ch, max); + } + BitSet safeChars = new BitSet(max + 1); + for (int i = 0; i < safeCharacters.length(); i++) { + char ch = safeCharacters.charAt(i); + safeChars.set(ch); + } + this.safeChars = safeChars; + } + + public String encode(String s) { + return encode(s, StandardCharsets.UTF_8); + } + + private String encode(String s, Charset charset) { + boolean changed = false; + StringBuilder out = new StringBuilder(s.length()); + CharArrayWriter writer = new CharArrayWriter(); + + for (int i = 0; i < s.length();) { + int c = (int) s.charAt(i); + if (DO_NOT_ENCODE_CHARS.get(c) || safeChars.get(c)) { + out.append((char) c); + i++; + } else { + // convert to external encoding before hex conversion + do { + writer.write(c); + if (c >= 0xD800 && c <= 0xDBFF) { + if ((i + 1) < s.length()) { + int d = (int) s.charAt(i + 1); + if (d >= 0xDC00 && d <= 0xDFFF) { + writer.write(d); + i++; + } + } + } + i++; + } while (i < s.length() && !DO_NOT_ENCODE_CHARS.get((c = (int) s.charAt(i)))); + + writer.flush(); + String str = new String(writer.toCharArray()); + byte[] ba = str.getBytes(charset); + for (int j = 0; j < ba.length; j++) { + out.append('%'); + char ch = Character.forDigit((ba[j] >> 4) & 0xF, 16); + // converting to use uppercase letter as part of + // the hex value if ch is a letter. + if (Character.isLetter(ch)) { + ch -= CASE_DIFF; + } + out.append(ch); + ch = Character.forDigit(ba[j] & 0xF, 16); + if (Character.isLetter(ch)) { + ch -= CASE_DIFF; + } + out.append(ch); + } + writer.reset(); + changed = true; + } + } + + return (changed ? out.toString() : s); + } + + private static BitSet createDoNotEncodeChars() { + BitSet b = new BitSet(256); + for (int i = 'a'; i <= 'z'; i++) { + b.set(i); + } + for (int i = 'A'; i <= 'Z'; i++) { + b.set(i); + } + for (int i = '0'; i <= '9'; i++) { + b.set(i); + } + b.set('-'); + b.set('_'); + b.set('.'); + b.set('*'); + return b; + } +} diff --git a/src/main/java/studio/livepeer/livepeer/utils/Utils.java b/src/main/java/studio/livepeer/livepeer/utils/Utils.java index a0a07ad..f0fd206 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Utils.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Utils.java @@ -4,9 +4,11 @@ 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; @@ -19,21 +21,26 @@ 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 +51,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 +143,9 @@ 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)) + .map(v -> pathEncode(v, pathParamsMetadata.allowReserved)) .collect(Collectors.toList()))); break; case MAP: @@ -149,17 +157,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", pathEncode(valToString(e.getKey()), false), + pathEncode(valToString(e.getValue()), false)); } else { - return String.format("%s,%s", Utils.valToString(e.getKey()), - Utils.valToString(e.getValue())); + return String.format("%s,%s", pathEncode(valToString(e.getKey()), false), + pathEncode(valToString(e.getValue()), false)); } }).collect(Collectors.toList()))); break; case OBJECT: if (!allowIntrospection(value.getClass())) { - pathParams.put(pathParamsMetadata.name, Utils.valToString(value)); + pathParams.put(pathParamsMetadata.name, pathEncode(valToString(value), pathParamsMetadata.allowReserved)); break; } List values = new ArrayList<>(); @@ -180,17 +188,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))); + pathEncode(valToString(val), valuePathParamsMetadata.allowReserved))); } else { values.add(String.format("%s,%s", valuePathParamsMetadata.name, - Utils.valToString(val))); + pathEncode(valToString(val), valuePathParamsMetadata.allowReserved))); } } pathParams.put(pathParamsMetadata.name, String.join(",", values)); break; default: - pathParams.put(pathParamsMetadata.name, Utils.valToString(value)); + pathParams.put(pathParamsMetadata.name, pathEncode(valToString(value), pathParamsMetadata.allowReserved)); break; } } @@ -199,6 +207,10 @@ public static String generateURL(Class type, String baseURL, String path, return baseURL + templateUrl(path, pathParams); } + + private static String pathEncode(String s, boolean allowReserved) { + return Utf8UrlEncoder.allowReserved(allowReserved).encode(s); + } public static boolean contentTypeMatches(String contentType, String pattern) { if (contentType == null || contentType.isBlank()) { @@ -249,7 +261,7 @@ public static SerializedBody serializeRequestBody(Object request, String request return RequestBody.serialize(request, requestField, serializationMethod, nullable); } - public static List getQueryParams(Class type, Optional params, + public static List getQueryParams(Class type, Optional params, Map>> globals) throws Exception { if (params.isEmpty()) { return Collections.emptyList(); @@ -258,7 +270,7 @@ public static List getQueryParams(Class typ } } - public static List getQueryParams(Class type, JsonNullable params, + public static List getQueryParams(Class type, JsonNullable params, Map>> globals) throws Exception { if (!params.isPresent() || params.get() == null) { return Collections.emptyList(); @@ -267,7 +279,7 @@ public static List getQueryParams(Class typ } } - public static List getQueryParams(Class type, T params, + public static List getQueryParams(Class type, T params, Map>> globals) throws Exception { return QueryParameters.parseQueryParams(type, params, globals); } @@ -275,6 +287,8 @@ public static List getQueryParams(Class typ public static HTTPRequest configureSecurity(HTTPRequest request, Object security) throws Exception { return Security.configureSecurity(request, security); } + + private static final String DOLLAR_MARKER = "D9qPtyhOYzkHGu3c"; public static String templateUrl(String url, Map params) { StringBuilder sb = new StringBuilder(); @@ -287,12 +301,16 @@ 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); + // note that we replace $ characters in values with a marker + // and then replace the markers at the end with the $ characters + // because the presence of dollar signs can stuff up the next + // regex find + m.appendReplacement(sb, value.replace("$", DOLLAR_MARKER)); } } m.appendTail(sb); - return sb.toString(); + return sb.toString().replace(DOLLAR_MARKER, "$"); } public static Map> getHeadersFromMetadata(Object headers, Map>> globals) throws Exception { @@ -344,10 +362,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 +388,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 +415,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 +433,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 +443,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 +481,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, pathEncode(json, pathParamsMetadata.allowReserved)); + break; + default: break; } - return params; } @@ -961,7 +977,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 +1066,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; + } + + public static void setSseSentinel(Object o, String value) { + if (o == null || value.isBlank()) { + return; + } else { + try { + Field field = o.getClass().getDeclaredField("_eventSentinel"); + field.setAccessible(true); + field.set(o, Optional.of(value)); + } catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) { + // ignore + } + } + } + }