reactor-effect-client 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +7 -2
- package/README.md +103 -141
- package/dist/Coordinator.d.ts +382 -0
- package/dist/Coordinator.d.ts.map +1 -0
- package/dist/Coordinator.js +732 -0
- package/dist/Coordinator.js.map +1 -0
- package/dist/H3.d.ts +159 -0
- package/dist/H3.d.ts.map +1 -0
- package/dist/H3.js +21 -0
- package/dist/H3.js.map +1 -0
- package/dist/H3Source.d.ts +93 -0
- package/dist/H3Source.d.ts.map +1 -0
- package/dist/H3Source.js +401 -0
- package/dist/H3Source.js.map +1 -0
- package/dist/LocalSource.d.ts +68 -0
- package/dist/LocalSource.d.ts.map +1 -0
- package/dist/LocalSource.js +354 -0
- package/dist/LocalSource.js.map +1 -0
- package/dist/Media.d.ts +106 -0
- package/dist/Media.d.ts.map +1 -0
- package/dist/Media.js +16 -0
- package/dist/Media.js.map +1 -0
- package/dist/Peer.d.ts +134 -0
- package/dist/Peer.d.ts.map +1 -0
- package/dist/Peer.js +57 -0
- package/dist/Peer.js.map +1 -0
- package/dist/Playout.d.ts +724 -0
- package/dist/Playout.d.ts.map +1 -0
- package/dist/Playout.js +28 -0
- package/dist/Playout.js.map +1 -0
- package/dist/Reactor.d.ts +135 -0
- package/dist/Reactor.d.ts.map +1 -0
- package/dist/Reactor.js +158 -0
- package/dist/Reactor.js.map +1 -0
- package/dist/ReactorError.d.ts +331 -0
- package/dist/ReactorError.d.ts.map +1 -0
- package/dist/ReactorError.js +316 -0
- package/dist/ReactorError.js.map +1 -0
- package/dist/ReactorTest.d.ts +383 -0
- package/dist/ReactorTest.d.ts.map +1 -0
- package/dist/ReactorTest.js +317 -0
- package/dist/ReactorTest.js.map +1 -0
- package/dist/Session.d.ts +314 -0
- package/dist/Session.d.ts.map +1 -0
- package/dist/Session.js +51 -0
- package/dist/Session.js.map +1 -0
- package/dist/index.d.ts +12 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/internal/correlator.d.ts +46 -0
- package/dist/internal/correlator.d.ts.map +1 -0
- package/dist/internal/correlator.js +150 -0
- package/dist/internal/correlator.js.map +1 -0
- package/dist/internal/deadline.d.ts +24 -0
- package/dist/internal/deadline.d.ts.map +1 -0
- package/dist/internal/deadline.js +44 -0
- package/dist/internal/deadline.js.map +1 -0
- package/dist/{h3/_internal/contracts.d.ts → internal/h3/commands.d.ts} +39 -33
- package/dist/internal/h3/commands.d.ts.map +1 -0
- package/dist/internal/h3/commands.js +128 -0
- package/dist/internal/h3/commands.js.map +1 -0
- package/dist/{h3 → internal/h3}/messages.d.ts +16 -11
- package/dist/internal/h3/messages.d.ts.map +1 -0
- package/dist/{h3 → internal/h3}/messages.js +19 -31
- package/dist/internal/h3/messages.js.map +1 -0
- package/dist/internal/h3/operations.d.ts +145 -0
- package/dist/internal/h3/operations.d.ts.map +1 -0
- package/dist/internal/h3/operations.js +284 -0
- package/dist/internal/h3/operations.js.map +1 -0
- package/dist/{h3 → internal/h3}/profile.d.ts +63 -65
- package/dist/internal/h3/profile.d.ts.map +1 -0
- package/dist/{h3 → internal/h3}/profile.js +39 -39
- package/dist/internal/h3/profile.js.map +1 -0
- package/dist/internal/h3/provider.d.ts +14 -0
- package/dist/internal/h3/provider.d.ts.map +1 -0
- package/dist/internal/h3/provider.js +672 -0
- package/dist/internal/h3/provider.js.map +1 -0
- package/dist/internal/h3/references.d.ts +68 -0
- package/dist/internal/h3/references.d.ts.map +1 -0
- package/dist/internal/h3/references.js +339 -0
- package/dist/internal/h3/references.js.map +1 -0
- package/dist/internal/h3/request.d.ts +56 -0
- package/dist/internal/h3/request.d.ts.map +1 -0
- package/dist/internal/h3/request.js +70 -0
- package/dist/internal/h3/request.js.map +1 -0
- package/dist/internal/h3/state.d.ts +120 -0
- package/dist/internal/h3/state.d.ts.map +1 -0
- package/dist/internal/h3/state.js +270 -0
- package/dist/internal/h3/state.js.map +1 -0
- package/dist/{Submission.d.ts → internal/h3/submission.d.ts} +1 -3
- package/dist/internal/h3/submission.d.ts.map +1 -0
- package/dist/{Submission.js → internal/h3/submission.js} +1 -9
- package/dist/internal/h3/submission.js.map +1 -0
- package/dist/internal/hub.d.ts +32 -0
- package/dist/internal/hub.d.ts.map +1 -0
- package/dist/internal/hub.js +92 -0
- package/dist/internal/hub.js.map +1 -0
- package/dist/internal/playout/errors.d.ts +51 -0
- package/dist/internal/playout/errors.d.ts.map +1 -0
- package/dist/internal/playout/errors.js +40 -0
- package/dist/internal/playout/errors.js.map +1 -0
- package/dist/internal/playout/policy.d.ts +559 -0
- package/dist/internal/playout/policy.d.ts.map +1 -0
- package/dist/internal/playout/policy.js +2338 -0
- package/dist/internal/playout/policy.js.map +1 -0
- package/dist/internal/playout/runtime.d.ts +28 -0
- package/dist/internal/playout/runtime.d.ts.map +1 -0
- package/dist/internal/playout/runtime.js +766 -0
- package/dist/internal/playout/runtime.js.map +1 -0
- package/dist/internal/playout/tag.d.ts +14 -0
- package/dist/internal/playout/tag.d.ts.map +1 -0
- package/dist/internal/playout/tag.js +43 -0
- package/dist/internal/playout/tag.js.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/common_pb.d.ts +55 -0
- package/dist/internal/proto/reactor_wire/v1/common_pb.d.ts.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/common_pb.js +42 -0
- package/dist/internal/proto/reactor_wire/v1/common_pb.js.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/control_pb.d.ts +160 -0
- package/dist/internal/proto/reactor_wire/v1/control_pb.d.ts.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/control_pb.js +21 -0
- package/dist/internal/proto/reactor_wire/v1/control_pb.js.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/data_pb.d.ts +89 -0
- package/dist/internal/proto/reactor_wire/v1/data_pb.d.ts.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/data_pb.js +20 -0
- package/dist/internal/proto/reactor_wire/v1/data_pb.js.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/model_pb.d.ts +85 -0
- package/dist/internal/proto/reactor_wire/v1/model_pb.d.ts.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/model_pb.js +24 -0
- package/dist/internal/proto/reactor_wire/v1/model_pb.js.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/platform_pb.d.ts +190 -0
- package/dist/internal/proto/reactor_wire/v1/platform_pb.d.ts.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/platform_pb.js +54 -0
- package/dist/internal/proto/reactor_wire/v1/platform_pb.js.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/track_pb.d.ts +88 -0
- package/dist/internal/proto/reactor_wire/v1/track_pb.d.ts.map +1 -0
- package/dist/internal/proto/reactor_wire/v1/track_pb.js +33 -0
- package/dist/internal/proto/reactor_wire/v1/track_pb.js.map +1 -0
- package/dist/internal/queue.d.ts +4 -0
- package/dist/internal/queue.d.ts.map +1 -0
- package/dist/{_internal → internal}/queue.js +0 -9
- package/dist/internal/queue.js.map +1 -0
- package/dist/internal/reactorTest/coordinator.d.ts +5 -0
- package/dist/internal/reactorTest/coordinator.d.ts.map +1 -0
- package/dist/internal/reactorTest/coordinator.js +178 -0
- package/dist/internal/reactorTest/coordinator.js.map +1 -0
- package/dist/internal/reactorTest/faults.d.ts +172 -0
- package/dist/internal/reactorTest/faults.d.ts.map +1 -0
- package/dist/internal/reactorTest/faults.js +23 -0
- package/dist/internal/reactorTest/faults.js.map +1 -0
- package/dist/internal/reactorTest/h3.d.ts +431 -0
- package/dist/internal/reactorTest/h3.d.ts.map +1 -0
- package/dist/internal/reactorTest/h3.js +625 -0
- package/dist/internal/reactorTest/h3.js.map +1 -0
- package/dist/internal/reactorTest/media.d.ts +22 -0
- package/dist/internal/reactorTest/media.d.ts.map +1 -0
- package/dist/internal/reactorTest/media.js +34 -0
- package/dist/internal/reactorTest/media.js.map +1 -0
- package/dist/internal/reactorTest/peer.d.ts +318 -0
- package/dist/internal/reactorTest/peer.d.ts.map +1 -0
- package/dist/internal/reactorTest/peer.js +206 -0
- package/dist/internal/reactorTest/peer.js.map +1 -0
- package/dist/internal/reactorTest/playout.d.ts +34 -0
- package/dist/internal/reactorTest/playout.d.ts.map +1 -0
- package/dist/internal/reactorTest/playout.js +340 -0
- package/dist/internal/reactorTest/playout.js.map +1 -0
- package/dist/internal/reactorTest/references.d.ts +25 -0
- package/dist/internal/reactorTest/references.d.ts.map +1 -0
- package/dist/{testing/Png.js → internal/reactorTest/references.js} +50 -12
- package/dist/internal/reactorTest/references.js.map +1 -0
- package/dist/internal/reactorTest/sessions.d.ts +364 -0
- package/dist/internal/reactorTest/sessions.d.ts.map +1 -0
- package/dist/internal/reactorTest/sessions.js +592 -0
- package/dist/internal/reactorTest/sessions.js.map +1 -0
- package/dist/internal/reactorTest/timing.d.ts +13 -0
- package/dist/internal/reactorTest/timing.d.ts.map +1 -0
- package/dist/internal/reactorTest/timing.js +20 -0
- package/dist/internal/reactorTest/timing.js.map +1 -0
- package/dist/internal/recording.d.ts +52 -0
- package/dist/internal/recording.d.ts.map +1 -0
- package/dist/internal/recording.js +141 -0
- package/dist/internal/recording.js.map +1 -0
- package/dist/internal/session/connect.d.ts +34 -0
- package/dist/internal/session/connect.d.ts.map +1 -0
- package/dist/internal/session/connect.js +502 -0
- package/dist/internal/session/connect.js.map +1 -0
- package/dist/internal/session/generation.d.ts +35 -0
- package/dist/internal/session/generation.d.ts.map +1 -0
- package/dist/internal/session/generation.js +185 -0
- package/dist/internal/session/generation.js.map +1 -0
- package/dist/internal/session/ice.d.ts +23 -0
- package/dist/internal/session/ice.d.ts.map +1 -0
- package/dist/internal/session/ice.js +57 -0
- package/dist/internal/session/ice.js.map +1 -0
- package/dist/internal/session/inbound.d.ts +50 -0
- package/dist/internal/session/inbound.d.ts.map +1 -0
- package/dist/internal/session/inbound.js +202 -0
- package/dist/internal/session/inbound.js.map +1 -0
- package/dist/internal/session/model.d.ts +163 -0
- package/dist/internal/session/model.d.ts.map +1 -0
- package/dist/internal/session/model.js +78 -0
- package/dist/internal/session/model.js.map +1 -0
- package/dist/internal/session/requests.d.ts +71 -0
- package/dist/internal/session/requests.d.ts.map +1 -0
- package/dist/internal/session/requests.js +240 -0
- package/dist/internal/session/requests.js.map +1 -0
- package/dist/internal/session/tracks.d.ts +21 -0
- package/dist/internal/session/tracks.d.ts.map +1 -0
- package/dist/internal/session/tracks.js +166 -0
- package/dist/internal/session/tracks.js.map +1 -0
- package/dist/internal/session/upload.d.ts +21 -0
- package/dist/internal/session/upload.d.ts.map +1 -0
- package/dist/internal/session/upload.js +68 -0
- package/dist/internal/session/upload.js.map +1 -0
- package/dist/internal/session.d.ts +66 -0
- package/dist/internal/session.d.ts.map +1 -0
- package/dist/internal/session.js +280 -0
- package/dist/internal/session.js.map +1 -0
- package/dist/{stats.d.ts → internal/stats.d.ts} +30 -16
- package/dist/internal/stats.d.ts.map +1 -0
- package/dist/internal/stats.js +201 -0
- package/dist/internal/stats.js.map +1 -0
- package/dist/internal/token.d.ts +22 -0
- package/dist/internal/token.d.ts.map +1 -0
- package/dist/internal/token.js +65 -0
- package/dist/internal/token.js.map +1 -0
- package/dist/internal/wire.d.ts +37 -0
- package/dist/internal/wire.d.ts.map +1 -0
- package/dist/internal/wire.js +49 -0
- package/dist/internal/wire.js.map +1 -0
- package/notices/bufbuild-protobuf-LICENSE +201 -0
- package/package.json +17 -38
- package/dist/FetchHttp.d.ts +0 -9
- package/dist/FetchHttp.d.ts.map +0 -1
- package/dist/FetchHttp.js +0 -63
- package/dist/FetchHttp.js.map +0 -1
- package/dist/PeerFactory.d.ts +0 -26
- package/dist/PeerFactory.d.ts.map +0 -1
- package/dist/PeerFactory.js +0 -4
- package/dist/PeerFactory.js.map +0 -1
- package/dist/PeerTypes.d.ts +0 -64
- package/dist/PeerTypes.d.ts.map +0 -1
- package/dist/PeerTypes.js +0 -2
- package/dist/PeerTypes.js.map +0 -1
- package/dist/Sequence.d.ts +0 -85
- package/dist/Sequence.d.ts.map +0 -1
- package/dist/Sequence.js +0 -210
- package/dist/Sequence.js.map +0 -1
- package/dist/SessionTypes.d.ts +0 -312
- package/dist/SessionTypes.d.ts.map +0 -1
- package/dist/SessionTypes.js +0 -19
- package/dist/SessionTypes.js.map +0 -1
- package/dist/Submission.d.ts.map +0 -1
- package/dist/Submission.js.map +0 -1
- package/dist/_internal/queue.d.ts +0 -6
- package/dist/_internal/queue.d.ts.map +0 -1
- package/dist/_internal/queue.js.map +0 -1
- package/dist/bytes.d.ts +0 -6
- package/dist/bytes.d.ts.map +0 -1
- package/dist/bytes.js +0 -32
- package/dist/bytes.js.map +0 -1
- package/dist/contract.d.ts +0 -149
- package/dist/contract.d.ts.map +0 -1
- package/dist/contract.js +0 -119
- package/dist/contract.js.map +0 -1
- package/dist/coordinator/_internal/client.d.ts +0 -215
- package/dist/coordinator/_internal/client.d.ts.map +0 -1
- package/dist/coordinator/_internal/client.js +0 -563
- package/dist/coordinator/_internal/client.js.map +0 -1
- package/dist/coordinator/_internal/recording.d.ts +0 -31
- package/dist/coordinator/_internal/recording.d.ts.map +0 -1
- package/dist/coordinator/_internal/recording.js +0 -123
- package/dist/coordinator/_internal/recording.js.map +0 -1
- package/dist/coordinator/_internal/response.d.ts +0 -15
- package/dist/coordinator/_internal/response.d.ts.map +0 -1
- package/dist/coordinator/_internal/response.js +0 -55
- package/dist/coordinator/_internal/response.js.map +0 -1
- package/dist/coordinator/_internal/schemas.d.ts +0 -73
- package/dist/coordinator/_internal/schemas.d.ts.map +0 -1
- package/dist/coordinator/_internal/schemas.js +0 -200
- package/dist/coordinator/_internal/schemas.js.map +0 -1
- package/dist/coordinator/index.d.ts +0 -40
- package/dist/coordinator/index.d.ts.map +0 -1
- package/dist/coordinator/index.js +0 -21
- package/dist/coordinator/index.js.map +0 -1
- package/dist/correlation.d.ts +0 -47
- package/dist/correlation.d.ts.map +0 -1
- package/dist/correlation.js +0 -131
- package/dist/correlation.js.map +0 -1
- package/dist/duration.d.ts +0 -27
- package/dist/duration.d.ts.map +0 -1
- package/dist/duration.js +0 -47
- package/dist/duration.js.map +0 -1
- package/dist/errors.d.ts +0 -1303
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -745
- package/dist/errors.js.map +0 -1
- package/dist/h3/_internal/client.d.ts +0 -9
- package/dist/h3/_internal/client.d.ts.map +0 -1
- package/dist/h3/_internal/client.js +0 -652
- package/dist/h3/_internal/client.js.map +0 -1
- package/dist/h3/_internal/contracts.d.ts.map +0 -1
- package/dist/h3/_internal/contracts.js +0 -123
- package/dist/h3/_internal/contracts.js.map +0 -1
- package/dist/h3/_internal/deployment.d.ts +0 -8
- package/dist/h3/_internal/deployment.d.ts.map +0 -1
- package/dist/h3/_internal/deployment.js +0 -149
- package/dist/h3/_internal/deployment.js.map +0 -1
- package/dist/h3/_internal/evidence.d.ts +0 -17
- package/dist/h3/_internal/evidence.d.ts.map +0 -1
- package/dist/h3/_internal/evidence.js +0 -48
- package/dist/h3/_internal/evidence.js.map +0 -1
- package/dist/h3/_internal/operations.d.ts +0 -58
- package/dist/h3/_internal/operations.d.ts.map +0 -1
- package/dist/h3/_internal/operations.js +0 -268
- package/dist/h3/_internal/operations.js.map +0 -1
- package/dist/h3/_internal/references.d.ts +0 -24
- package/dist/h3/_internal/references.d.ts.map +0 -1
- package/dist/h3/_internal/references.js +0 -309
- package/dist/h3/_internal/references.js.map +0 -1
- package/dist/h3/_internal/request.d.ts +0 -21
- package/dist/h3/_internal/request.d.ts.map +0 -1
- package/dist/h3/_internal/request.js +0 -97
- package/dist/h3/_internal/request.js.map +0 -1
- package/dist/h3/_internal/retained.d.ts +0 -22
- package/dist/h3/_internal/retained.d.ts.map +0 -1
- package/dist/h3/_internal/retained.js +0 -89
- package/dist/h3/_internal/retained.js.map +0 -1
- package/dist/h3/_internal/state.d.ts +0 -44
- package/dist/h3/_internal/state.d.ts.map +0 -1
- package/dist/h3/_internal/state.js +0 -283
- package/dist/h3/_internal/state.js.map +0 -1
- package/dist/h3/index.d.ts +0 -10
- package/dist/h3/index.d.ts.map +0 -1
- package/dist/h3/index.js +0 -7
- package/dist/h3/index.js.map +0 -1
- package/dist/h3/messages.d.ts.map +0 -1
- package/dist/h3/messages.js.map +0 -1
- package/dist/h3/profile.d.ts.map +0 -1
- package/dist/h3/profile.js.map +0 -1
- package/dist/h3/types.d.ts +0 -291
- package/dist/h3/types.d.ts.map +0 -1
- package/dist/h3/types.js +0 -2
- package/dist/h3/types.js.map +0 -1
- package/dist/host.d.ts +0 -26
- package/dist/host.d.ts.map +0 -1
- package/dist/host.js +0 -20
- package/dist/host.js.map +0 -1
- package/dist/json.d.ts +0 -25
- package/dist/json.d.ts.map +0 -1
- package/dist/json.js +0 -143
- package/dist/json.js.map +0 -1
- package/dist/media-stream.d.ts +0 -10
- package/dist/media-stream.d.ts.map +0 -1
- package/dist/media-stream.js +0 -18
- package/dist/media-stream.js.map +0 -1
- package/dist/observation.d.ts +0 -38
- package/dist/observation.d.ts.map +0 -1
- package/dist/observation.js +0 -113
- package/dist/observation.js.map +0 -1
- package/dist/orchestration/elapsed.d.ts +0 -9
- package/dist/orchestration/elapsed.d.ts.map +0 -1
- package/dist/orchestration/elapsed.js +0 -8
- package/dist/orchestration/elapsed.js.map +0 -1
- package/dist/orchestration/h3-source.d.ts +0 -58
- package/dist/orchestration/h3-source.d.ts.map +0 -1
- package/dist/orchestration/h3-source.js +0 -362
- package/dist/orchestration/h3-source.js.map +0 -1
- package/dist/orchestration/index.d.ts +0 -17
- package/dist/orchestration/index.d.ts.map +0 -1
- package/dist/orchestration/index.js +0 -12
- package/dist/orchestration/index.js.map +0 -1
- package/dist/orchestration/media-buffer.d.ts +0 -32
- package/dist/orchestration/media-buffer.d.ts.map +0 -1
- package/dist/orchestration/media-buffer.js +0 -94
- package/dist/orchestration/media-buffer.js.map +0 -1
- package/dist/orchestration/open-h3.d.ts +0 -101
- package/dist/orchestration/open-h3.d.ts.map +0 -1
- package/dist/orchestration/open-h3.js +0 -127
- package/dist/orchestration/open-h3.js.map +0 -1
- package/dist/orchestration/queries.d.ts +0 -10
- package/dist/orchestration/queries.d.ts.map +0 -1
- package/dist/orchestration/queries.js +0 -43
- package/dist/orchestration/queries.js.map +0 -1
- package/dist/orchestration/references.d.ts +0 -18
- package/dist/orchestration/references.d.ts.map +0 -1
- package/dist/orchestration/references.js +0 -79
- package/dist/orchestration/references.js.map +0 -1
- package/dist/orchestration/renewal-state.d.ts +0 -84
- package/dist/orchestration/renewal-state.d.ts.map +0 -1
- package/dist/orchestration/renewal-state.js +0 -95
- package/dist/orchestration/renewal-state.js.map +0 -1
- package/dist/orchestration/renewal.d.ts +0 -103
- package/dist/orchestration/renewal.d.ts.map +0 -1
- package/dist/orchestration/renewal.js +0 -1099
- package/dist/orchestration/renewal.js.map +0 -1
- package/dist/orchestration/request.d.ts +0 -65
- package/dist/orchestration/request.d.ts.map +0 -1
- package/dist/orchestration/request.js +0 -134
- package/dist/orchestration/request.js.map +0 -1
- package/dist/orchestration/retention.d.ts +0 -100
- package/dist/orchestration/retention.d.ts.map +0 -1
- package/dist/orchestration/retention.js +0 -134
- package/dist/orchestration/retention.js.map +0 -1
- package/dist/orchestration/routing.d.ts +0 -21
- package/dist/orchestration/routing.d.ts.map +0 -1
- package/dist/orchestration/routing.js +0 -93
- package/dist/orchestration/routing.js.map +0 -1
- package/dist/orchestration/scheduler-key.d.ts +0 -14
- package/dist/orchestration/scheduler-key.d.ts.map +0 -1
- package/dist/orchestration/scheduler-key.js +0 -62
- package/dist/orchestration/scheduler-key.js.map +0 -1
- package/dist/orchestration/scheduler-policy.d.ts +0 -246
- package/dist/orchestration/scheduler-policy.d.ts.map +0 -1
- package/dist/orchestration/scheduler-policy.js +0 -668
- package/dist/orchestration/scheduler-policy.js.map +0 -1
- package/dist/orchestration/scheduler.d.ts +0 -393
- package/dist/orchestration/scheduler.d.ts.map +0 -1
- package/dist/orchestration/scheduler.js +0 -2621
- package/dist/orchestration/scheduler.js.map +0 -1
- package/dist/orchestration/source-slot.d.ts +0 -124
- package/dist/orchestration/source-slot.d.ts.map +0 -1
- package/dist/orchestration/source-slot.js +0 -348
- package/dist/orchestration/source-slot.js.map +0 -1
- package/dist/orchestration/types.d.ts +0 -1462
- package/dist/orchestration/types.d.ts.map +0 -1
- package/dist/orchestration/types.js +0 -135
- package/dist/orchestration/types.js.map +0 -1
- package/dist/protobuf.d.ts +0 -63
- package/dist/protobuf.d.ts.map +0 -1
- package/dist/protobuf.js +0 -252
- package/dist/protobuf.js.map +0 -1
- package/dist/session/_internal/acquire.d.ts +0 -21
- package/dist/session/_internal/acquire.d.ts.map +0 -1
- package/dist/session/_internal/acquire.js +0 -168
- package/dist/session/_internal/acquire.js.map +0 -1
- package/dist/session/_internal/cleanup.d.ts +0 -19
- package/dist/session/_internal/cleanup.d.ts.map +0 -1
- package/dist/session/_internal/cleanup.js +0 -102
- package/dist/session/_internal/cleanup.js.map +0 -1
- package/dist/session/_internal/lifecycle.d.ts +0 -67
- package/dist/session/_internal/lifecycle.d.ts.map +0 -1
- package/dist/session/_internal/lifecycle.js +0 -142
- package/dist/session/_internal/lifecycle.js.map +0 -1
- package/dist/session/_internal/remote.d.ts +0 -28
- package/dist/session/_internal/remote.d.ts.map +0 -1
- package/dist/session/_internal/remote.js +0 -71
- package/dist/session/_internal/remote.js.map +0 -1
- package/dist/session/_internal/uploads.d.ts +0 -7
- package/dist/session/_internal/uploads.d.ts.map +0 -1
- package/dist/session/_internal/uploads.js +0 -31
- package/dist/session/_internal/uploads.js.map +0 -1
- package/dist/session/commands.d.ts +0 -2
- package/dist/session/commands.d.ts.map +0 -1
- package/dist/session/commands.js +0 -2
- package/dist/session/commands.js.map +0 -1
- package/dist/session/files.d.ts +0 -21
- package/dist/session/files.d.ts.map +0 -1
- package/dist/session/files.js +0 -49
- package/dist/session/files.js.map +0 -1
- package/dist/session/index.d.ts +0 -84
- package/dist/session/index.d.ts.map +0 -1
- package/dist/session/index.js +0 -16
- package/dist/session/index.js.map +0 -1
- package/dist/session/media.d.ts +0 -114
- package/dist/session/media.d.ts.map +0 -1
- package/dist/session/media.js +0 -2
- package/dist/session/media.js.map +0 -1
- package/dist/session/recorder.d.ts +0 -24
- package/dist/session/recorder.d.ts.map +0 -1
- package/dist/session/recorder.js +0 -19
- package/dist/session/recorder.js.map +0 -1
- package/dist/session.d.ts +0 -105
- package/dist/session.d.ts.map +0 -1
- package/dist/session.js +0 -976
- package/dist/session.js.map +0 -1
- package/dist/simulation/_internal/source.d.ts +0 -12
- package/dist/simulation/_internal/source.d.ts.map +0 -1
- package/dist/simulation/_internal/source.js +0 -513
- package/dist/simulation/_internal/source.js.map +0 -1
- package/dist/simulation/index.d.ts +0 -13
- package/dist/simulation/index.d.ts.map +0 -1
- package/dist/simulation/index.js +0 -12
- package/dist/simulation/index.js.map +0 -1
- package/dist/simulation/types.d.ts +0 -39
- package/dist/simulation/types.d.ts.map +0 -1
- package/dist/simulation/types.js +0 -2
- package/dist/simulation/types.js.map +0 -1
- package/dist/stats.d.ts.map +0 -1
- package/dist/stats.js +0 -205
- package/dist/stats.js.map +0 -1
- package/dist/testing/Faults.d.ts +0 -4
- package/dist/testing/Faults.d.ts.map +0 -1
- package/dist/testing/Faults.js +0 -7
- package/dist/testing/Faults.js.map +0 -1
- package/dist/testing/Png.d.ts +0 -3
- package/dist/testing/Png.d.ts.map +0 -1
- package/dist/testing/Png.js.map +0 -1
- package/dist/testing/Wav.d.ts +0 -14
- package/dist/testing/Wav.d.ts.map +0 -1
- package/dist/testing/Wav.js +0 -37
- package/dist/testing/Wav.js.map +0 -1
- package/dist/testing/index.d.ts +0 -5
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js +0 -4
- package/dist/testing/index.js.map +0 -1
- package/dist/wire.d.ts +0 -7
- package/dist/wire.d.ts.map +0 -1
- package/dist/wire.generated.d.ts +0 -305
- package/dist/wire.generated.d.ts.map +0 -1
- package/dist/wire.generated.js +0 -1257
- package/dist/wire.generated.js.map +0 -1
- package/dist/wire.js +0 -5
- package/dist/wire.js.map +0 -1
package/dist/wire.generated.js
DELETED
|
@@ -1,1257 +0,0 @@
|
|
|
1
|
-
// GENERATED by wire/generate.py from canonical wire 1.20260722.6. DO NOT EDIT.
|
|
2
|
-
// Reactor proto definitions: Apache-2.0; google.protobuf definitions: BSD-3-Clause. See NOTICE.
|
|
3
|
-
import { Reader, Writer } from "./protobuf.js";
|
|
4
|
-
export const MessageKind = { MESSAGE_KIND_UNSPECIFIED: 0, MESSAGE_KIND_REQUEST: 1, MESSAGE_KIND_RESPONSE: 2, MESSAGE_KIND_NOTIFICATION: 3 };
|
|
5
|
-
export const Google_NullValue = { NULL_VALUE: 0 };
|
|
6
|
-
export const Error = {
|
|
7
|
-
encode(value, limits) { const w = new Writer(limits); writeError(w, value); return w.finish(); },
|
|
8
|
-
decode(bytes, limits) { return readError(new Reader(bytes, limits)); },
|
|
9
|
-
};
|
|
10
|
-
function writeError(w, value) {
|
|
11
|
-
if (value.code !== "") {
|
|
12
|
-
w.string(1, value.code);
|
|
13
|
-
}
|
|
14
|
-
if (value.message !== "") {
|
|
15
|
-
w.string(2, value.message);
|
|
16
|
-
}
|
|
17
|
-
w.unknown(value);
|
|
18
|
-
}
|
|
19
|
-
function readError(r, base) {
|
|
20
|
-
let code = base?.code ?? "";
|
|
21
|
-
let message = base?.message ?? "";
|
|
22
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
23
|
-
while (!r.done) {
|
|
24
|
-
const f = r.field();
|
|
25
|
-
switch (f.number) {
|
|
26
|
-
case 1: {
|
|
27
|
-
r.expect(f, 2);
|
|
28
|
-
code = r.string();
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
case 2: {
|
|
32
|
-
r.expect(f, 2);
|
|
33
|
-
message = r.string();
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
default:
|
|
37
|
-
_unknown.push(r.unknown(f));
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return { _unknown, code, message };
|
|
42
|
-
}
|
|
43
|
-
export const Google_Struct = {
|
|
44
|
-
encode(value, limits) { const w = new Writer(limits); writeGoogle_Struct(w, value); return w.finish(); },
|
|
45
|
-
decode(bytes, limits) { return readGoogle_Struct(new Reader(bytes, limits)); },
|
|
46
|
-
};
|
|
47
|
-
function writeGoogle_Struct(w, value) {
|
|
48
|
-
for (const [key, item] of value.fields)
|
|
49
|
-
w.message(1, (w) => writeGoogle_Struct_FieldsEntry(w, { key, value: item }));
|
|
50
|
-
w.unknown(value);
|
|
51
|
-
}
|
|
52
|
-
function readGoogle_Struct(r, base) {
|
|
53
|
-
const fields = new Map(base?.fields ?? []);
|
|
54
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
55
|
-
while (!r.done) {
|
|
56
|
-
const f = r.field();
|
|
57
|
-
switch (f.number) {
|
|
58
|
-
case 1: {
|
|
59
|
-
r.expect(f, 2);
|
|
60
|
-
const entry = readGoogle_Struct_FieldsEntry(r.child(), undefined);
|
|
61
|
-
fields.set(entry.key, entry.value ?? Google_Value.decode(new Uint8Array()));
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
default:
|
|
65
|
-
_unknown.push(r.unknown(f));
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return { _unknown, fields };
|
|
70
|
-
}
|
|
71
|
-
export const Google_Struct_FieldsEntry = {
|
|
72
|
-
encode(value, limits) { const w = new Writer(limits); writeGoogle_Struct_FieldsEntry(w, value); return w.finish(); },
|
|
73
|
-
decode(bytes, limits) { return readGoogle_Struct_FieldsEntry(new Reader(bytes, limits)); },
|
|
74
|
-
};
|
|
75
|
-
function writeGoogle_Struct_FieldsEntry(w, value) {
|
|
76
|
-
if (value.key !== "") {
|
|
77
|
-
w.string(1, value.key);
|
|
78
|
-
}
|
|
79
|
-
if (value.value !== undefined) {
|
|
80
|
-
{
|
|
81
|
-
const messageValue = value.value;
|
|
82
|
-
w.message(2, (w) => writeGoogle_Value(w, messageValue));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
w.unknown(value);
|
|
86
|
-
}
|
|
87
|
-
function readGoogle_Struct_FieldsEntry(r, base) {
|
|
88
|
-
let key = base?.key ?? "";
|
|
89
|
-
let value = base?.value;
|
|
90
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
91
|
-
while (!r.done) {
|
|
92
|
-
const f = r.field();
|
|
93
|
-
switch (f.number) {
|
|
94
|
-
case 1: {
|
|
95
|
-
r.expect(f, 2);
|
|
96
|
-
key = r.string();
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
case 2: {
|
|
100
|
-
r.expect(f, 2);
|
|
101
|
-
value = readGoogle_Value(r.child(), value);
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
default:
|
|
105
|
-
_unknown.push(r.unknown(f));
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return { _unknown, key, ...(value === undefined ? {} : { value }) };
|
|
110
|
-
}
|
|
111
|
-
export const Google_Value = {
|
|
112
|
-
encode(value, limits) { const w = new Writer(limits); writeGoogle_Value(w, value); return w.finish(); },
|
|
113
|
-
decode(bytes, limits) { return readGoogle_Value(new Reader(bytes, limits)); },
|
|
114
|
-
};
|
|
115
|
-
function writeGoogle_Value(w, value) {
|
|
116
|
-
if (value.kind?.case === "null_value") {
|
|
117
|
-
w.int32(1, value.kind.value);
|
|
118
|
-
}
|
|
119
|
-
if (value.kind?.case === "number_value") {
|
|
120
|
-
w.double(2, value.kind.value);
|
|
121
|
-
}
|
|
122
|
-
if (value.kind?.case === "string_value") {
|
|
123
|
-
w.string(3, value.kind.value);
|
|
124
|
-
}
|
|
125
|
-
if (value.kind?.case === "bool_value") {
|
|
126
|
-
w.bool(4, value.kind.value);
|
|
127
|
-
}
|
|
128
|
-
if (value.kind?.case === "struct_value") {
|
|
129
|
-
{
|
|
130
|
-
const messageValue = value.kind.value;
|
|
131
|
-
w.message(5, (w) => writeGoogle_Struct(w, messageValue));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
if (value.kind?.case === "list_value") {
|
|
135
|
-
{
|
|
136
|
-
const messageValue = value.kind.value;
|
|
137
|
-
w.message(6, (w) => writeGoogle_ListValue(w, messageValue));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
w.unknown(value);
|
|
141
|
-
}
|
|
142
|
-
function readGoogle_Value(r, base) {
|
|
143
|
-
let kind = base?.kind;
|
|
144
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
145
|
-
while (!r.done) {
|
|
146
|
-
const f = r.field();
|
|
147
|
-
switch (f.number) {
|
|
148
|
-
case 1: {
|
|
149
|
-
r.expect(f, 0);
|
|
150
|
-
kind = { case: "null_value", value: r.int32() };
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
case 2: {
|
|
154
|
-
r.expect(f, 1);
|
|
155
|
-
kind = { case: "number_value", value: r.double() };
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
case 3: {
|
|
159
|
-
r.expect(f, 2);
|
|
160
|
-
kind = { case: "string_value", value: r.string() };
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
case 4: {
|
|
164
|
-
r.expect(f, 0);
|
|
165
|
-
kind = { case: "bool_value", value: r.bool() };
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
case 5: {
|
|
169
|
-
r.expect(f, 2);
|
|
170
|
-
kind = { case: "struct_value", value: readGoogle_Struct(r.child(), kind?.case === "struct_value" ? kind.value : undefined) };
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
case 6: {
|
|
174
|
-
r.expect(f, 2);
|
|
175
|
-
kind = { case: "list_value", value: readGoogle_ListValue(r.child(), kind?.case === "list_value" ? kind.value : undefined) };
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
default:
|
|
179
|
-
_unknown.push(r.unknown(f));
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
return { _unknown, ...(kind === undefined ? {} : { kind }) };
|
|
184
|
-
}
|
|
185
|
-
export const Google_ListValue = {
|
|
186
|
-
encode(value, limits) { const w = new Writer(limits); writeGoogle_ListValue(w, value); return w.finish(); },
|
|
187
|
-
decode(bytes, limits) { return readGoogle_ListValue(new Reader(bytes, limits)); },
|
|
188
|
-
};
|
|
189
|
-
function writeGoogle_ListValue(w, value) {
|
|
190
|
-
for (const item of value.values) {
|
|
191
|
-
{
|
|
192
|
-
const messageValue = item;
|
|
193
|
-
w.message(1, (w) => writeGoogle_Value(w, messageValue));
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
w.unknown(value);
|
|
197
|
-
}
|
|
198
|
-
function readGoogle_ListValue(r, base) {
|
|
199
|
-
const values = [...(base?.values ?? [])];
|
|
200
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
201
|
-
while (!r.done) {
|
|
202
|
-
const f = r.field();
|
|
203
|
-
switch (f.number) {
|
|
204
|
-
case 1: {
|
|
205
|
-
r.expect(f, 2);
|
|
206
|
-
values.push(readGoogle_Value(r.child(), undefined));
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
default:
|
|
210
|
-
_unknown.push(r.unknown(f));
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return { _unknown, values };
|
|
215
|
-
}
|
|
216
|
-
export const Ping = {
|
|
217
|
-
encode(value, limits) { const w = new Writer(limits); writePing(w, value); return w.finish(); },
|
|
218
|
-
decode(bytes, limits) { return readPing(new Reader(bytes, limits)); },
|
|
219
|
-
};
|
|
220
|
-
function writePing(w, value) {
|
|
221
|
-
w.unknown(value);
|
|
222
|
-
}
|
|
223
|
-
function readPing(r, base) {
|
|
224
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
225
|
-
while (!r.done) {
|
|
226
|
-
const f = r.field();
|
|
227
|
-
switch (f.number) {
|
|
228
|
-
default:
|
|
229
|
-
_unknown.push(r.unknown(f));
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return { _unknown };
|
|
234
|
-
}
|
|
235
|
-
export const RequestSchema = {
|
|
236
|
-
encode(value, limits) { const w = new Writer(limits); writeRequestSchema(w, value); return w.finish(); },
|
|
237
|
-
decode(bytes, limits) { return readRequestSchema(new Reader(bytes, limits)); },
|
|
238
|
-
};
|
|
239
|
-
function writeRequestSchema(w, value) {
|
|
240
|
-
w.unknown(value);
|
|
241
|
-
}
|
|
242
|
-
function readRequestSchema(r, base) {
|
|
243
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
244
|
-
while (!r.done) {
|
|
245
|
-
const f = r.field();
|
|
246
|
-
switch (f.number) {
|
|
247
|
-
default:
|
|
248
|
-
_unknown.push(r.unknown(f));
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
return { _unknown };
|
|
253
|
-
}
|
|
254
|
-
export const ModelSchema = {
|
|
255
|
-
encode(value, limits) { const w = new Writer(limits); writeModelSchema(w, value); return w.finish(); },
|
|
256
|
-
decode(bytes, limits) { return readModelSchema(new Reader(bytes, limits)); },
|
|
257
|
-
};
|
|
258
|
-
function writeModelSchema(w, value) {
|
|
259
|
-
if (value.openapi !== undefined) {
|
|
260
|
-
{
|
|
261
|
-
const messageValue = value.openapi;
|
|
262
|
-
w.message(1, (w) => writeGoogle_Struct(w, messageValue));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
w.unknown(value);
|
|
266
|
-
}
|
|
267
|
-
function readModelSchema(r, base) {
|
|
268
|
-
let openapi = base?.openapi;
|
|
269
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
270
|
-
while (!r.done) {
|
|
271
|
-
const f = r.field();
|
|
272
|
-
switch (f.number) {
|
|
273
|
-
case 1: {
|
|
274
|
-
r.expect(f, 2);
|
|
275
|
-
openapi = readGoogle_Struct(r.child(), openapi);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
default:
|
|
279
|
-
_unknown.push(r.unknown(f));
|
|
280
|
-
break;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
return { _unknown, ...(openapi === undefined ? {} : { openapi }) };
|
|
284
|
-
}
|
|
285
|
-
export const FileUploaded = {
|
|
286
|
-
encode(value, limits) { const w = new Writer(limits); writeFileUploaded(w, value); return w.finish(); },
|
|
287
|
-
decode(bytes, limits) { return readFileUploaded(new Reader(bytes, limits)); },
|
|
288
|
-
};
|
|
289
|
-
function writeFileUploaded(w, value) {
|
|
290
|
-
if (value.upload_id !== "") {
|
|
291
|
-
w.string(1, value.upload_id);
|
|
292
|
-
}
|
|
293
|
-
if (value.name !== "") {
|
|
294
|
-
w.string(2, value.name);
|
|
295
|
-
}
|
|
296
|
-
if (value.mime_type !== "") {
|
|
297
|
-
w.string(3, value.mime_type);
|
|
298
|
-
}
|
|
299
|
-
if (value.size !== 0n) {
|
|
300
|
-
w.int64(4, value.size);
|
|
301
|
-
}
|
|
302
|
-
w.unknown(value);
|
|
303
|
-
}
|
|
304
|
-
function readFileUploaded(r, base) {
|
|
305
|
-
let upload_id = base?.upload_id ?? "";
|
|
306
|
-
let name = base?.name ?? "";
|
|
307
|
-
let mime_type = base?.mime_type ?? "";
|
|
308
|
-
let size = base?.size ?? 0n;
|
|
309
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
310
|
-
while (!r.done) {
|
|
311
|
-
const f = r.field();
|
|
312
|
-
switch (f.number) {
|
|
313
|
-
case 1: {
|
|
314
|
-
r.expect(f, 2);
|
|
315
|
-
upload_id = r.string();
|
|
316
|
-
break;
|
|
317
|
-
}
|
|
318
|
-
case 2: {
|
|
319
|
-
r.expect(f, 2);
|
|
320
|
-
name = r.string();
|
|
321
|
-
break;
|
|
322
|
-
}
|
|
323
|
-
case 3: {
|
|
324
|
-
r.expect(f, 2);
|
|
325
|
-
mime_type = r.string();
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
case 4: {
|
|
329
|
-
r.expect(f, 0);
|
|
330
|
-
size = r.int64();
|
|
331
|
-
break;
|
|
332
|
-
}
|
|
333
|
-
default:
|
|
334
|
-
_unknown.push(r.unknown(f));
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
return { _unknown, upload_id, name, mime_type, size };
|
|
339
|
-
}
|
|
340
|
-
export const RequestClip = {
|
|
341
|
-
encode(value, limits) { const w = new Writer(limits); writeRequestClip(w, value); return w.finish(); },
|
|
342
|
-
decode(bytes, limits) { return readRequestClip(new Reader(bytes, limits)); },
|
|
343
|
-
};
|
|
344
|
-
function writeRequestClip(w, value) {
|
|
345
|
-
if (value.duration_seconds !== 0 || Object.is(value.duration_seconds, -0)) {
|
|
346
|
-
w.double(1, value.duration_seconds);
|
|
347
|
-
}
|
|
348
|
-
w.unknown(value);
|
|
349
|
-
}
|
|
350
|
-
function readRequestClip(r, base) {
|
|
351
|
-
let duration_seconds = base?.duration_seconds ?? 0;
|
|
352
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
353
|
-
while (!r.done) {
|
|
354
|
-
const f = r.field();
|
|
355
|
-
switch (f.number) {
|
|
356
|
-
case 1: {
|
|
357
|
-
r.expect(f, 1);
|
|
358
|
-
duration_seconds = r.double();
|
|
359
|
-
break;
|
|
360
|
-
}
|
|
361
|
-
default:
|
|
362
|
-
_unknown.push(r.unknown(f));
|
|
363
|
-
break;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
return { _unknown, duration_seconds };
|
|
367
|
-
}
|
|
368
|
-
export const RequestRecording = {
|
|
369
|
-
encode(value, limits) { const w = new Writer(limits); writeRequestRecording(w, value); return w.finish(); },
|
|
370
|
-
decode(bytes, limits) { return readRequestRecording(new Reader(bytes, limits)); },
|
|
371
|
-
};
|
|
372
|
-
function writeRequestRecording(w, value) {
|
|
373
|
-
w.unknown(value);
|
|
374
|
-
}
|
|
375
|
-
function readRequestRecording(r, base) {
|
|
376
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
377
|
-
while (!r.done) {
|
|
378
|
-
const f = r.field();
|
|
379
|
-
switch (f.number) {
|
|
380
|
-
default:
|
|
381
|
-
_unknown.push(r.unknown(f));
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
return { _unknown };
|
|
386
|
-
}
|
|
387
|
-
export const ClipReady = {
|
|
388
|
-
encode(value, limits) { const w = new Writer(limits); writeClipReady(w, value); return w.finish(); },
|
|
389
|
-
decode(bytes, limits) { return readClipReady(new Reader(bytes, limits)); },
|
|
390
|
-
};
|
|
391
|
-
function writeClipReady(w, value) {
|
|
392
|
-
if (value.session_id !== "") {
|
|
393
|
-
w.string(1, value.session_id);
|
|
394
|
-
}
|
|
395
|
-
if (value.kind !== "") {
|
|
396
|
-
w.string(2, value.kind);
|
|
397
|
-
}
|
|
398
|
-
if (value.start_marker !== 0 || Object.is(value.start_marker, -0)) {
|
|
399
|
-
w.double(3, value.start_marker);
|
|
400
|
-
}
|
|
401
|
-
if (value.end_marker !== 0 || Object.is(value.end_marker, -0)) {
|
|
402
|
-
w.double(4, value.end_marker);
|
|
403
|
-
}
|
|
404
|
-
if (value.now_marker !== 0 || Object.is(value.now_marker, -0)) {
|
|
405
|
-
w.double(5, value.now_marker);
|
|
406
|
-
}
|
|
407
|
-
if (value.predicted_ready_at_ms !== 0n) {
|
|
408
|
-
w.int64(6, value.predicted_ready_at_ms);
|
|
409
|
-
}
|
|
410
|
-
if (value.playlist_url !== "") {
|
|
411
|
-
w.string(7, value.playlist_url);
|
|
412
|
-
}
|
|
413
|
-
w.unknown(value);
|
|
414
|
-
}
|
|
415
|
-
function readClipReady(r, base) {
|
|
416
|
-
let session_id = base?.session_id ?? "";
|
|
417
|
-
let kind = base?.kind ?? "";
|
|
418
|
-
let start_marker = base?.start_marker ?? 0;
|
|
419
|
-
let end_marker = base?.end_marker ?? 0;
|
|
420
|
-
let now_marker = base?.now_marker ?? 0;
|
|
421
|
-
let predicted_ready_at_ms = base?.predicted_ready_at_ms ?? 0n;
|
|
422
|
-
let playlist_url = base?.playlist_url ?? "";
|
|
423
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
424
|
-
while (!r.done) {
|
|
425
|
-
const f = r.field();
|
|
426
|
-
switch (f.number) {
|
|
427
|
-
case 1: {
|
|
428
|
-
r.expect(f, 2);
|
|
429
|
-
session_id = r.string();
|
|
430
|
-
break;
|
|
431
|
-
}
|
|
432
|
-
case 2: {
|
|
433
|
-
r.expect(f, 2);
|
|
434
|
-
kind = r.string();
|
|
435
|
-
break;
|
|
436
|
-
}
|
|
437
|
-
case 3: {
|
|
438
|
-
r.expect(f, 1);
|
|
439
|
-
start_marker = r.double();
|
|
440
|
-
break;
|
|
441
|
-
}
|
|
442
|
-
case 4: {
|
|
443
|
-
r.expect(f, 1);
|
|
444
|
-
end_marker = r.double();
|
|
445
|
-
break;
|
|
446
|
-
}
|
|
447
|
-
case 5: {
|
|
448
|
-
r.expect(f, 1);
|
|
449
|
-
now_marker = r.double();
|
|
450
|
-
break;
|
|
451
|
-
}
|
|
452
|
-
case 6: {
|
|
453
|
-
r.expect(f, 0);
|
|
454
|
-
predicted_ready_at_ms = r.int64();
|
|
455
|
-
break;
|
|
456
|
-
}
|
|
457
|
-
case 7: {
|
|
458
|
-
r.expect(f, 2);
|
|
459
|
-
playlist_url = r.string();
|
|
460
|
-
break;
|
|
461
|
-
}
|
|
462
|
-
default:
|
|
463
|
-
_unknown.push(r.unknown(f));
|
|
464
|
-
break;
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
return { _unknown, session_id, kind, start_marker, end_marker, now_marker, predicted_ready_at_ms, playlist_url };
|
|
468
|
-
}
|
|
469
|
-
export const ClipFailed = {
|
|
470
|
-
encode(value, limits) { const w = new Writer(limits); writeClipFailed(w, value); return w.finish(); },
|
|
471
|
-
decode(bytes, limits) { return readClipFailed(new Reader(bytes, limits)); },
|
|
472
|
-
};
|
|
473
|
-
function writeClipFailed(w, value) {
|
|
474
|
-
if (value.reason !== "") {
|
|
475
|
-
w.string(1, value.reason);
|
|
476
|
-
}
|
|
477
|
-
w.unknown(value);
|
|
478
|
-
}
|
|
479
|
-
function readClipFailed(r, base) {
|
|
480
|
-
let reason = base?.reason ?? "";
|
|
481
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
482
|
-
while (!r.done) {
|
|
483
|
-
const f = r.field();
|
|
484
|
-
switch (f.number) {
|
|
485
|
-
case 1: {
|
|
486
|
-
r.expect(f, 2);
|
|
487
|
-
reason = r.string();
|
|
488
|
-
break;
|
|
489
|
-
}
|
|
490
|
-
default:
|
|
491
|
-
_unknown.push(r.unknown(f));
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
return { _unknown, reason };
|
|
496
|
-
}
|
|
497
|
-
export const Moderation = {
|
|
498
|
-
encode(value, limits) { const w = new Writer(limits); writeModeration(w, value); return w.finish(); },
|
|
499
|
-
decode(bytes, limits) { return readModeration(new Reader(bytes, limits)); },
|
|
500
|
-
};
|
|
501
|
-
function writeModeration(w, value) {
|
|
502
|
-
if (value.action !== "") {
|
|
503
|
-
w.string(1, value.action);
|
|
504
|
-
}
|
|
505
|
-
if (value.input_kind !== "") {
|
|
506
|
-
w.string(2, value.input_kind);
|
|
507
|
-
}
|
|
508
|
-
if (value.command !== "") {
|
|
509
|
-
w.string(3, value.command);
|
|
510
|
-
}
|
|
511
|
-
for (const item of value.categories) {
|
|
512
|
-
w.string(4, item);
|
|
513
|
-
}
|
|
514
|
-
if (value.message !== "") {
|
|
515
|
-
w.string(5, value.message);
|
|
516
|
-
}
|
|
517
|
-
w.unknown(value);
|
|
518
|
-
}
|
|
519
|
-
function readModeration(r, base) {
|
|
520
|
-
let action = base?.action ?? "";
|
|
521
|
-
let input_kind = base?.input_kind ?? "";
|
|
522
|
-
let command = base?.command ?? "";
|
|
523
|
-
const categories = [...(base?.categories ?? [])];
|
|
524
|
-
let message = base?.message ?? "";
|
|
525
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
526
|
-
while (!r.done) {
|
|
527
|
-
const f = r.field();
|
|
528
|
-
switch (f.number) {
|
|
529
|
-
case 1: {
|
|
530
|
-
r.expect(f, 2);
|
|
531
|
-
action = r.string();
|
|
532
|
-
break;
|
|
533
|
-
}
|
|
534
|
-
case 2: {
|
|
535
|
-
r.expect(f, 2);
|
|
536
|
-
input_kind = r.string();
|
|
537
|
-
break;
|
|
538
|
-
}
|
|
539
|
-
case 3: {
|
|
540
|
-
r.expect(f, 2);
|
|
541
|
-
command = r.string();
|
|
542
|
-
break;
|
|
543
|
-
}
|
|
544
|
-
case 4: {
|
|
545
|
-
r.expect(f, 2);
|
|
546
|
-
categories.push(r.string());
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
case 5: {
|
|
550
|
-
r.expect(f, 2);
|
|
551
|
-
message = r.string();
|
|
552
|
-
break;
|
|
553
|
-
}
|
|
554
|
-
default:
|
|
555
|
-
_unknown.push(r.unknown(f));
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
return { _unknown, action, input_kind, command, categories, message };
|
|
560
|
-
}
|
|
561
|
-
export const PublishTrack = {
|
|
562
|
-
encode(value, limits) { const w = new Writer(limits); writePublishTrack(w, value); return w.finish(); },
|
|
563
|
-
decode(bytes, limits) { return readPublishTrack(new Reader(bytes, limits)); },
|
|
564
|
-
};
|
|
565
|
-
function writePublishTrack(w, value) {
|
|
566
|
-
if (value.name !== "") {
|
|
567
|
-
w.string(1, value.name);
|
|
568
|
-
}
|
|
569
|
-
w.unknown(value);
|
|
570
|
-
}
|
|
571
|
-
function readPublishTrack(r, base) {
|
|
572
|
-
let name = base?.name ?? "";
|
|
573
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
574
|
-
while (!r.done) {
|
|
575
|
-
const f = r.field();
|
|
576
|
-
switch (f.number) {
|
|
577
|
-
case 1: {
|
|
578
|
-
r.expect(f, 2);
|
|
579
|
-
name = r.string();
|
|
580
|
-
break;
|
|
581
|
-
}
|
|
582
|
-
default:
|
|
583
|
-
_unknown.push(r.unknown(f));
|
|
584
|
-
break;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
return { _unknown, name };
|
|
588
|
-
}
|
|
589
|
-
export const PauseTrack = {
|
|
590
|
-
encode(value, limits) { const w = new Writer(limits); writePauseTrack(w, value); return w.finish(); },
|
|
591
|
-
decode(bytes, limits) { return readPauseTrack(new Reader(bytes, limits)); },
|
|
592
|
-
};
|
|
593
|
-
function writePauseTrack(w, value) {
|
|
594
|
-
if (value.name !== "") {
|
|
595
|
-
w.string(1, value.name);
|
|
596
|
-
}
|
|
597
|
-
w.unknown(value);
|
|
598
|
-
}
|
|
599
|
-
function readPauseTrack(r, base) {
|
|
600
|
-
let name = base?.name ?? "";
|
|
601
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
602
|
-
while (!r.done) {
|
|
603
|
-
const f = r.field();
|
|
604
|
-
switch (f.number) {
|
|
605
|
-
case 1: {
|
|
606
|
-
r.expect(f, 2);
|
|
607
|
-
name = r.string();
|
|
608
|
-
break;
|
|
609
|
-
}
|
|
610
|
-
default:
|
|
611
|
-
_unknown.push(r.unknown(f));
|
|
612
|
-
break;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
return { _unknown, name };
|
|
616
|
-
}
|
|
617
|
-
export const ResumeTrack = {
|
|
618
|
-
encode(value, limits) { const w = new Writer(limits); writeResumeTrack(w, value); return w.finish(); },
|
|
619
|
-
decode(bytes, limits) { return readResumeTrack(new Reader(bytes, limits)); },
|
|
620
|
-
};
|
|
621
|
-
function writeResumeTrack(w, value) {
|
|
622
|
-
if (value.name !== "") {
|
|
623
|
-
w.string(1, value.name);
|
|
624
|
-
}
|
|
625
|
-
w.unknown(value);
|
|
626
|
-
}
|
|
627
|
-
function readResumeTrack(r, base) {
|
|
628
|
-
let name = base?.name ?? "";
|
|
629
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
630
|
-
while (!r.done) {
|
|
631
|
-
const f = r.field();
|
|
632
|
-
switch (f.number) {
|
|
633
|
-
case 1: {
|
|
634
|
-
r.expect(f, 2);
|
|
635
|
-
name = r.string();
|
|
636
|
-
break;
|
|
637
|
-
}
|
|
638
|
-
default:
|
|
639
|
-
_unknown.push(r.unknown(f));
|
|
640
|
-
break;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
return { _unknown, name };
|
|
644
|
-
}
|
|
645
|
-
export const UnpublishTrack = {
|
|
646
|
-
encode(value, limits) { const w = new Writer(limits); writeUnpublishTrack(w, value); return w.finish(); },
|
|
647
|
-
decode(bytes, limits) { return readUnpublishTrack(new Reader(bytes, limits)); },
|
|
648
|
-
};
|
|
649
|
-
function writeUnpublishTrack(w, value) {
|
|
650
|
-
if (value.name !== "") {
|
|
651
|
-
w.string(1, value.name);
|
|
652
|
-
}
|
|
653
|
-
w.unknown(value);
|
|
654
|
-
}
|
|
655
|
-
function readUnpublishTrack(r, base) {
|
|
656
|
-
let name = base?.name ?? "";
|
|
657
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
658
|
-
while (!r.done) {
|
|
659
|
-
const f = r.field();
|
|
660
|
-
switch (f.number) {
|
|
661
|
-
case 1: {
|
|
662
|
-
r.expect(f, 2);
|
|
663
|
-
name = r.string();
|
|
664
|
-
break;
|
|
665
|
-
}
|
|
666
|
-
default:
|
|
667
|
-
_unknown.push(r.unknown(f));
|
|
668
|
-
break;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
return { _unknown, name };
|
|
672
|
-
}
|
|
673
|
-
export const PublishTrackResponse = {
|
|
674
|
-
encode(value, limits) { const w = new Writer(limits); writePublishTrackResponse(w, value); return w.finish(); },
|
|
675
|
-
decode(bytes, limits) { return readPublishTrackResponse(new Reader(bytes, limits)); },
|
|
676
|
-
};
|
|
677
|
-
function writePublishTrackResponse(w, value) {
|
|
678
|
-
if (value.name !== "") {
|
|
679
|
-
w.string(1, value.name);
|
|
680
|
-
}
|
|
681
|
-
w.unknown(value);
|
|
682
|
-
}
|
|
683
|
-
function readPublishTrackResponse(r, base) {
|
|
684
|
-
let name = base?.name ?? "";
|
|
685
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
686
|
-
while (!r.done) {
|
|
687
|
-
const f = r.field();
|
|
688
|
-
switch (f.number) {
|
|
689
|
-
case 1: {
|
|
690
|
-
r.expect(f, 2);
|
|
691
|
-
name = r.string();
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
default:
|
|
695
|
-
_unknown.push(r.unknown(f));
|
|
696
|
-
break;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
return { _unknown, name };
|
|
700
|
-
}
|
|
701
|
-
export const ControlClientMessage = {
|
|
702
|
-
encode(value, limits) { const w = new Writer(limits); writeControlClientMessage(w, value); return w.finish(); },
|
|
703
|
-
decode(bytes, limits) { return readControlClientMessage(new Reader(bytes, limits)); },
|
|
704
|
-
};
|
|
705
|
-
function writeControlClientMessage(w, value) {
|
|
706
|
-
if (value.request_id !== "") {
|
|
707
|
-
w.string(1, value.request_id);
|
|
708
|
-
}
|
|
709
|
-
if (value.kind !== 0) {
|
|
710
|
-
w.int32(2, value.kind);
|
|
711
|
-
}
|
|
712
|
-
if (value.payload?.case === "ping") {
|
|
713
|
-
{
|
|
714
|
-
const messageValue = value.payload.value;
|
|
715
|
-
w.message(10, (w) => writePing(w, messageValue));
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
if (value.payload?.case === "request_schema") {
|
|
719
|
-
{
|
|
720
|
-
const messageValue = value.payload.value;
|
|
721
|
-
w.message(11, (w) => writeRequestSchema(w, messageValue));
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
if (value.payload?.case === "file_uploaded") {
|
|
725
|
-
{
|
|
726
|
-
const messageValue = value.payload.value;
|
|
727
|
-
w.message(12, (w) => writeFileUploaded(w, messageValue));
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
if (value.payload?.case === "request_clip") {
|
|
731
|
-
{
|
|
732
|
-
const messageValue = value.payload.value;
|
|
733
|
-
w.message(13, (w) => writeRequestClip(w, messageValue));
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
if (value.payload?.case === "request_recording") {
|
|
737
|
-
{
|
|
738
|
-
const messageValue = value.payload.value;
|
|
739
|
-
w.message(14, (w) => writeRequestRecording(w, messageValue));
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
if (value.payload?.case === "publish_track") {
|
|
743
|
-
{
|
|
744
|
-
const messageValue = value.payload.value;
|
|
745
|
-
w.message(15, (w) => writePublishTrack(w, messageValue));
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
if (value.payload?.case === "pause_track") {
|
|
749
|
-
{
|
|
750
|
-
const messageValue = value.payload.value;
|
|
751
|
-
w.message(16, (w) => writePauseTrack(w, messageValue));
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
if (value.payload?.case === "resume_track") {
|
|
755
|
-
{
|
|
756
|
-
const messageValue = value.payload.value;
|
|
757
|
-
w.message(17, (w) => writeResumeTrack(w, messageValue));
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
if (value.payload?.case === "unpublish_track") {
|
|
761
|
-
{
|
|
762
|
-
const messageValue = value.payload.value;
|
|
763
|
-
w.message(18, (w) => writeUnpublishTrack(w, messageValue));
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
if (value.payload?.case === "error") {
|
|
767
|
-
{
|
|
768
|
-
const messageValue = value.payload.value;
|
|
769
|
-
w.message(40, (w) => writeError(w, messageValue));
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
w.unknown(value);
|
|
773
|
-
}
|
|
774
|
-
function readControlClientMessage(r, base) {
|
|
775
|
-
let request_id = base?.request_id ?? "";
|
|
776
|
-
let kind = base?.kind ?? 0;
|
|
777
|
-
let payload = base?.payload;
|
|
778
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
779
|
-
while (!r.done) {
|
|
780
|
-
const f = r.field();
|
|
781
|
-
switch (f.number) {
|
|
782
|
-
case 1: {
|
|
783
|
-
r.expect(f, 2);
|
|
784
|
-
request_id = r.string();
|
|
785
|
-
break;
|
|
786
|
-
}
|
|
787
|
-
case 2: {
|
|
788
|
-
r.expect(f, 0);
|
|
789
|
-
kind = r.int32();
|
|
790
|
-
break;
|
|
791
|
-
}
|
|
792
|
-
case 10: {
|
|
793
|
-
r.expect(f, 2);
|
|
794
|
-
payload = { case: "ping", value: readPing(r.child(), payload?.case === "ping" ? payload.value : undefined) };
|
|
795
|
-
break;
|
|
796
|
-
}
|
|
797
|
-
case 11: {
|
|
798
|
-
r.expect(f, 2);
|
|
799
|
-
payload = { case: "request_schema", value: readRequestSchema(r.child(), payload?.case === "request_schema" ? payload.value : undefined) };
|
|
800
|
-
break;
|
|
801
|
-
}
|
|
802
|
-
case 12: {
|
|
803
|
-
r.expect(f, 2);
|
|
804
|
-
payload = { case: "file_uploaded", value: readFileUploaded(r.child(), payload?.case === "file_uploaded" ? payload.value : undefined) };
|
|
805
|
-
break;
|
|
806
|
-
}
|
|
807
|
-
case 13: {
|
|
808
|
-
r.expect(f, 2);
|
|
809
|
-
payload = { case: "request_clip", value: readRequestClip(r.child(), payload?.case === "request_clip" ? payload.value : undefined) };
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
case 14: {
|
|
813
|
-
r.expect(f, 2);
|
|
814
|
-
payload = { case: "request_recording", value: readRequestRecording(r.child(), payload?.case === "request_recording" ? payload.value : undefined) };
|
|
815
|
-
break;
|
|
816
|
-
}
|
|
817
|
-
case 15: {
|
|
818
|
-
r.expect(f, 2);
|
|
819
|
-
payload = { case: "publish_track", value: readPublishTrack(r.child(), payload?.case === "publish_track" ? payload.value : undefined) };
|
|
820
|
-
break;
|
|
821
|
-
}
|
|
822
|
-
case 16: {
|
|
823
|
-
r.expect(f, 2);
|
|
824
|
-
payload = { case: "pause_track", value: readPauseTrack(r.child(), payload?.case === "pause_track" ? payload.value : undefined) };
|
|
825
|
-
break;
|
|
826
|
-
}
|
|
827
|
-
case 17: {
|
|
828
|
-
r.expect(f, 2);
|
|
829
|
-
payload = { case: "resume_track", value: readResumeTrack(r.child(), payload?.case === "resume_track" ? payload.value : undefined) };
|
|
830
|
-
break;
|
|
831
|
-
}
|
|
832
|
-
case 18: {
|
|
833
|
-
r.expect(f, 2);
|
|
834
|
-
payload = { case: "unpublish_track", value: readUnpublishTrack(r.child(), payload?.case === "unpublish_track" ? payload.value : undefined) };
|
|
835
|
-
break;
|
|
836
|
-
}
|
|
837
|
-
case 40: {
|
|
838
|
-
r.expect(f, 2);
|
|
839
|
-
payload = { case: "error", value: readError(r.child(), payload?.case === "error" ? payload.value : undefined) };
|
|
840
|
-
break;
|
|
841
|
-
}
|
|
842
|
-
default:
|
|
843
|
-
_unknown.push(r.unknown(f));
|
|
844
|
-
break;
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
return { _unknown, request_id, kind, ...(payload === undefined ? {} : { payload }) };
|
|
848
|
-
}
|
|
849
|
-
export const ControlServerMessage = {
|
|
850
|
-
encode(value, limits) { const w = new Writer(limits); writeControlServerMessage(w, value); return w.finish(); },
|
|
851
|
-
decode(bytes, limits) { return readControlServerMessage(new Reader(bytes, limits)); },
|
|
852
|
-
};
|
|
853
|
-
function writeControlServerMessage(w, value) {
|
|
854
|
-
if (value.request_id !== "") {
|
|
855
|
-
w.string(1, value.request_id);
|
|
856
|
-
}
|
|
857
|
-
if (value.kind !== 0) {
|
|
858
|
-
w.int32(2, value.kind);
|
|
859
|
-
}
|
|
860
|
-
if (value.payload?.case === "model_schema") {
|
|
861
|
-
{
|
|
862
|
-
const messageValue = value.payload.value;
|
|
863
|
-
w.message(10, (w) => writeModelSchema(w, messageValue));
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
if (value.payload?.case === "clip_ready") {
|
|
867
|
-
{
|
|
868
|
-
const messageValue = value.payload.value;
|
|
869
|
-
w.message(11, (w) => writeClipReady(w, messageValue));
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
if (value.payload?.case === "clip_failed") {
|
|
873
|
-
{
|
|
874
|
-
const messageValue = value.payload.value;
|
|
875
|
-
w.message(12, (w) => writeClipFailed(w, messageValue));
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
if (value.payload?.case === "moderation") {
|
|
879
|
-
{
|
|
880
|
-
const messageValue = value.payload.value;
|
|
881
|
-
w.message(13, (w) => writeModeration(w, messageValue));
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
if (value.payload?.case === "publish_track") {
|
|
885
|
-
{
|
|
886
|
-
const messageValue = value.payload.value;
|
|
887
|
-
w.message(14, (w) => writePublishTrackResponse(w, messageValue));
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
if (value.payload?.case === "error") {
|
|
891
|
-
{
|
|
892
|
-
const messageValue = value.payload.value;
|
|
893
|
-
w.message(40, (w) => writeError(w, messageValue));
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
w.unknown(value);
|
|
897
|
-
}
|
|
898
|
-
function readControlServerMessage(r, base) {
|
|
899
|
-
let request_id = base?.request_id ?? "";
|
|
900
|
-
let kind = base?.kind ?? 0;
|
|
901
|
-
let payload = base?.payload;
|
|
902
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
903
|
-
while (!r.done) {
|
|
904
|
-
const f = r.field();
|
|
905
|
-
switch (f.number) {
|
|
906
|
-
case 1: {
|
|
907
|
-
r.expect(f, 2);
|
|
908
|
-
request_id = r.string();
|
|
909
|
-
break;
|
|
910
|
-
}
|
|
911
|
-
case 2: {
|
|
912
|
-
r.expect(f, 0);
|
|
913
|
-
kind = r.int32();
|
|
914
|
-
break;
|
|
915
|
-
}
|
|
916
|
-
case 10: {
|
|
917
|
-
r.expect(f, 2);
|
|
918
|
-
payload = { case: "model_schema", value: readModelSchema(r.child(), payload?.case === "model_schema" ? payload.value : undefined) };
|
|
919
|
-
break;
|
|
920
|
-
}
|
|
921
|
-
case 11: {
|
|
922
|
-
r.expect(f, 2);
|
|
923
|
-
payload = { case: "clip_ready", value: readClipReady(r.child(), payload?.case === "clip_ready" ? payload.value : undefined) };
|
|
924
|
-
break;
|
|
925
|
-
}
|
|
926
|
-
case 12: {
|
|
927
|
-
r.expect(f, 2);
|
|
928
|
-
payload = { case: "clip_failed", value: readClipFailed(r.child(), payload?.case === "clip_failed" ? payload.value : undefined) };
|
|
929
|
-
break;
|
|
930
|
-
}
|
|
931
|
-
case 13: {
|
|
932
|
-
r.expect(f, 2);
|
|
933
|
-
payload = { case: "moderation", value: readModeration(r.child(), payload?.case === "moderation" ? payload.value : undefined) };
|
|
934
|
-
break;
|
|
935
|
-
}
|
|
936
|
-
case 14: {
|
|
937
|
-
r.expect(f, 2);
|
|
938
|
-
payload = { case: "publish_track", value: readPublishTrackResponse(r.child(), payload?.case === "publish_track" ? payload.value : undefined) };
|
|
939
|
-
break;
|
|
940
|
-
}
|
|
941
|
-
case 40: {
|
|
942
|
-
r.expect(f, 2);
|
|
943
|
-
payload = { case: "error", value: readError(r.child(), payload?.case === "error" ? payload.value : undefined) };
|
|
944
|
-
break;
|
|
945
|
-
}
|
|
946
|
-
default:
|
|
947
|
-
_unknown.push(r.unknown(f));
|
|
948
|
-
break;
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
return { _unknown, request_id, kind, ...(payload === undefined ? {} : { payload }) };
|
|
952
|
-
}
|
|
953
|
-
export const UploadReference = {
|
|
954
|
-
encode(value, limits) { const w = new Writer(limits); writeUploadReference(w, value); return w.finish(); },
|
|
955
|
-
decode(bytes, limits) { return readUploadReference(new Reader(bytes, limits)); },
|
|
956
|
-
};
|
|
957
|
-
function writeUploadReference(w, value) {
|
|
958
|
-
if (value.upload_id !== "") {
|
|
959
|
-
w.string(1, value.upload_id);
|
|
960
|
-
}
|
|
961
|
-
if (value.name !== "") {
|
|
962
|
-
w.string(2, value.name);
|
|
963
|
-
}
|
|
964
|
-
if (value.mime_type !== "") {
|
|
965
|
-
w.string(3, value.mime_type);
|
|
966
|
-
}
|
|
967
|
-
if (value.size !== 0n) {
|
|
968
|
-
w.int64(4, value.size);
|
|
969
|
-
}
|
|
970
|
-
w.unknown(value);
|
|
971
|
-
}
|
|
972
|
-
function readUploadReference(r, base) {
|
|
973
|
-
let upload_id = base?.upload_id ?? "";
|
|
974
|
-
let name = base?.name ?? "";
|
|
975
|
-
let mime_type = base?.mime_type ?? "";
|
|
976
|
-
let size = base?.size ?? 0n;
|
|
977
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
978
|
-
while (!r.done) {
|
|
979
|
-
const f = r.field();
|
|
980
|
-
switch (f.number) {
|
|
981
|
-
case 1: {
|
|
982
|
-
r.expect(f, 2);
|
|
983
|
-
upload_id = r.string();
|
|
984
|
-
break;
|
|
985
|
-
}
|
|
986
|
-
case 2: {
|
|
987
|
-
r.expect(f, 2);
|
|
988
|
-
name = r.string();
|
|
989
|
-
break;
|
|
990
|
-
}
|
|
991
|
-
case 3: {
|
|
992
|
-
r.expect(f, 2);
|
|
993
|
-
mime_type = r.string();
|
|
994
|
-
break;
|
|
995
|
-
}
|
|
996
|
-
case 4: {
|
|
997
|
-
r.expect(f, 0);
|
|
998
|
-
size = r.int64();
|
|
999
|
-
break;
|
|
1000
|
-
}
|
|
1001
|
-
default:
|
|
1002
|
-
_unknown.push(r.unknown(f));
|
|
1003
|
-
break;
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
return { _unknown, upload_id, name, mime_type, size };
|
|
1007
|
-
}
|
|
1008
|
-
export const Command = {
|
|
1009
|
-
encode(value, limits) { const w = new Writer(limits); writeCommand(w, value); return w.finish(); },
|
|
1010
|
-
decode(bytes, limits) { return readCommand(new Reader(bytes, limits)); },
|
|
1011
|
-
};
|
|
1012
|
-
function writeCommand(w, value) {
|
|
1013
|
-
if (value.type !== "") {
|
|
1014
|
-
w.string(1, value.type);
|
|
1015
|
-
}
|
|
1016
|
-
if (value.data !== undefined) {
|
|
1017
|
-
{
|
|
1018
|
-
const messageValue = value.data;
|
|
1019
|
-
w.message(2, (w) => writeGoogle_Struct(w, messageValue));
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
for (const [key, item] of value.uploads)
|
|
1023
|
-
w.message(3, (w) => writeCommand_UploadsEntry(w, { key, value: item }));
|
|
1024
|
-
w.unknown(value);
|
|
1025
|
-
}
|
|
1026
|
-
function readCommand(r, base) {
|
|
1027
|
-
let type = base?.type ?? "";
|
|
1028
|
-
let data = base?.data;
|
|
1029
|
-
const uploads = new Map(base?.uploads ?? []);
|
|
1030
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
1031
|
-
while (!r.done) {
|
|
1032
|
-
const f = r.field();
|
|
1033
|
-
switch (f.number) {
|
|
1034
|
-
case 1: {
|
|
1035
|
-
r.expect(f, 2);
|
|
1036
|
-
type = r.string();
|
|
1037
|
-
break;
|
|
1038
|
-
}
|
|
1039
|
-
case 2: {
|
|
1040
|
-
r.expect(f, 2);
|
|
1041
|
-
data = readGoogle_Struct(r.child(), data);
|
|
1042
|
-
break;
|
|
1043
|
-
}
|
|
1044
|
-
case 3: {
|
|
1045
|
-
r.expect(f, 2);
|
|
1046
|
-
const entry = readCommand_UploadsEntry(r.child(), undefined);
|
|
1047
|
-
uploads.set(entry.key, entry.value ?? UploadReference.decode(new Uint8Array()));
|
|
1048
|
-
break;
|
|
1049
|
-
}
|
|
1050
|
-
default:
|
|
1051
|
-
_unknown.push(r.unknown(f));
|
|
1052
|
-
break;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
return { _unknown, type, ...(data === undefined ? {} : { data }), uploads };
|
|
1056
|
-
}
|
|
1057
|
-
export const Command_UploadsEntry = {
|
|
1058
|
-
encode(value, limits) { const w = new Writer(limits); writeCommand_UploadsEntry(w, value); return w.finish(); },
|
|
1059
|
-
decode(bytes, limits) { return readCommand_UploadsEntry(new Reader(bytes, limits)); },
|
|
1060
|
-
};
|
|
1061
|
-
function writeCommand_UploadsEntry(w, value) {
|
|
1062
|
-
if (value.key !== "") {
|
|
1063
|
-
w.string(1, value.key);
|
|
1064
|
-
}
|
|
1065
|
-
if (value.value !== undefined) {
|
|
1066
|
-
{
|
|
1067
|
-
const messageValue = value.value;
|
|
1068
|
-
w.message(2, (w) => writeUploadReference(w, messageValue));
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
w.unknown(value);
|
|
1072
|
-
}
|
|
1073
|
-
function readCommand_UploadsEntry(r, base) {
|
|
1074
|
-
let key = base?.key ?? "";
|
|
1075
|
-
let value = base?.value;
|
|
1076
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
1077
|
-
while (!r.done) {
|
|
1078
|
-
const f = r.field();
|
|
1079
|
-
switch (f.number) {
|
|
1080
|
-
case 1: {
|
|
1081
|
-
r.expect(f, 2);
|
|
1082
|
-
key = r.string();
|
|
1083
|
-
break;
|
|
1084
|
-
}
|
|
1085
|
-
case 2: {
|
|
1086
|
-
r.expect(f, 2);
|
|
1087
|
-
value = readUploadReference(r.child(), value);
|
|
1088
|
-
break;
|
|
1089
|
-
}
|
|
1090
|
-
default:
|
|
1091
|
-
_unknown.push(r.unknown(f));
|
|
1092
|
-
break;
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
return { _unknown, key, ...(value === undefined ? {} : { value }) };
|
|
1096
|
-
}
|
|
1097
|
-
export const ModelMessage = {
|
|
1098
|
-
encode(value, limits) { const w = new Writer(limits); writeModelMessage(w, value); return w.finish(); },
|
|
1099
|
-
decode(bytes, limits) { return readModelMessage(new Reader(bytes, limits)); },
|
|
1100
|
-
};
|
|
1101
|
-
function writeModelMessage(w, value) {
|
|
1102
|
-
if (value.type !== "") {
|
|
1103
|
-
w.string(1, value.type);
|
|
1104
|
-
}
|
|
1105
|
-
if (value.data !== undefined) {
|
|
1106
|
-
{
|
|
1107
|
-
const messageValue = value.data;
|
|
1108
|
-
w.message(2, (w) => writeGoogle_Struct(w, messageValue));
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
w.unknown(value);
|
|
1112
|
-
}
|
|
1113
|
-
function readModelMessage(r, base) {
|
|
1114
|
-
let type = base?.type ?? "";
|
|
1115
|
-
let data = base?.data;
|
|
1116
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
1117
|
-
while (!r.done) {
|
|
1118
|
-
const f = r.field();
|
|
1119
|
-
switch (f.number) {
|
|
1120
|
-
case 1: {
|
|
1121
|
-
r.expect(f, 2);
|
|
1122
|
-
type = r.string();
|
|
1123
|
-
break;
|
|
1124
|
-
}
|
|
1125
|
-
case 2: {
|
|
1126
|
-
r.expect(f, 2);
|
|
1127
|
-
data = readGoogle_Struct(r.child(), data);
|
|
1128
|
-
break;
|
|
1129
|
-
}
|
|
1130
|
-
default:
|
|
1131
|
-
_unknown.push(r.unknown(f));
|
|
1132
|
-
break;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
return { _unknown, type, ...(data === undefined ? {} : { data }) };
|
|
1136
|
-
}
|
|
1137
|
-
export const DataClientMessage = {
|
|
1138
|
-
encode(value, limits) { const w = new Writer(limits); writeDataClientMessage(w, value); return w.finish(); },
|
|
1139
|
-
decode(bytes, limits) { return readDataClientMessage(new Reader(bytes, limits)); },
|
|
1140
|
-
};
|
|
1141
|
-
function writeDataClientMessage(w, value) {
|
|
1142
|
-
if (value.request_id !== "") {
|
|
1143
|
-
w.string(1, value.request_id);
|
|
1144
|
-
}
|
|
1145
|
-
if (value.kind !== 0) {
|
|
1146
|
-
w.int32(2, value.kind);
|
|
1147
|
-
}
|
|
1148
|
-
if (value.payload?.case === "command") {
|
|
1149
|
-
{
|
|
1150
|
-
const messageValue = value.payload.value;
|
|
1151
|
-
w.message(10, (w) => writeCommand(w, messageValue));
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
if (value.payload?.case === "error") {
|
|
1155
|
-
{
|
|
1156
|
-
const messageValue = value.payload.value;
|
|
1157
|
-
w.message(40, (w) => writeError(w, messageValue));
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
w.unknown(value);
|
|
1161
|
-
}
|
|
1162
|
-
function readDataClientMessage(r, base) {
|
|
1163
|
-
let request_id = base?.request_id ?? "";
|
|
1164
|
-
let kind = base?.kind ?? 0;
|
|
1165
|
-
let payload = base?.payload;
|
|
1166
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
1167
|
-
while (!r.done) {
|
|
1168
|
-
const f = r.field();
|
|
1169
|
-
switch (f.number) {
|
|
1170
|
-
case 1: {
|
|
1171
|
-
r.expect(f, 2);
|
|
1172
|
-
request_id = r.string();
|
|
1173
|
-
break;
|
|
1174
|
-
}
|
|
1175
|
-
case 2: {
|
|
1176
|
-
r.expect(f, 0);
|
|
1177
|
-
kind = r.int32();
|
|
1178
|
-
break;
|
|
1179
|
-
}
|
|
1180
|
-
case 10: {
|
|
1181
|
-
r.expect(f, 2);
|
|
1182
|
-
payload = { case: "command", value: readCommand(r.child(), payload?.case === "command" ? payload.value : undefined) };
|
|
1183
|
-
break;
|
|
1184
|
-
}
|
|
1185
|
-
case 40: {
|
|
1186
|
-
r.expect(f, 2);
|
|
1187
|
-
payload = { case: "error", value: readError(r.child(), payload?.case === "error" ? payload.value : undefined) };
|
|
1188
|
-
break;
|
|
1189
|
-
}
|
|
1190
|
-
default:
|
|
1191
|
-
_unknown.push(r.unknown(f));
|
|
1192
|
-
break;
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
return { _unknown, request_id, kind, ...(payload === undefined ? {} : { payload }) };
|
|
1196
|
-
}
|
|
1197
|
-
export const DataServerMessage = {
|
|
1198
|
-
encode(value, limits) { const w = new Writer(limits); writeDataServerMessage(w, value); return w.finish(); },
|
|
1199
|
-
decode(bytes, limits) { return readDataServerMessage(new Reader(bytes, limits)); },
|
|
1200
|
-
};
|
|
1201
|
-
function writeDataServerMessage(w, value) {
|
|
1202
|
-
if (value.request_id !== "") {
|
|
1203
|
-
w.string(1, value.request_id);
|
|
1204
|
-
}
|
|
1205
|
-
if (value.kind !== 0) {
|
|
1206
|
-
w.int32(2, value.kind);
|
|
1207
|
-
}
|
|
1208
|
-
if (value.payload?.case === "message") {
|
|
1209
|
-
{
|
|
1210
|
-
const messageValue = value.payload.value;
|
|
1211
|
-
w.message(10, (w) => writeModelMessage(w, messageValue));
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
if (value.payload?.case === "error") {
|
|
1215
|
-
{
|
|
1216
|
-
const messageValue = value.payload.value;
|
|
1217
|
-
w.message(40, (w) => writeError(w, messageValue));
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
w.unknown(value);
|
|
1221
|
-
}
|
|
1222
|
-
function readDataServerMessage(r, base) {
|
|
1223
|
-
let request_id = base?.request_id ?? "";
|
|
1224
|
-
let kind = base?.kind ?? 0;
|
|
1225
|
-
let payload = base?.payload;
|
|
1226
|
-
const _unknown = [...(base?._unknown ?? [])];
|
|
1227
|
-
while (!r.done) {
|
|
1228
|
-
const f = r.field();
|
|
1229
|
-
switch (f.number) {
|
|
1230
|
-
case 1: {
|
|
1231
|
-
r.expect(f, 2);
|
|
1232
|
-
request_id = r.string();
|
|
1233
|
-
break;
|
|
1234
|
-
}
|
|
1235
|
-
case 2: {
|
|
1236
|
-
r.expect(f, 0);
|
|
1237
|
-
kind = r.int32();
|
|
1238
|
-
break;
|
|
1239
|
-
}
|
|
1240
|
-
case 10: {
|
|
1241
|
-
r.expect(f, 2);
|
|
1242
|
-
payload = { case: "message", value: readModelMessage(r.child(), payload?.case === "message" ? payload.value : undefined) };
|
|
1243
|
-
break;
|
|
1244
|
-
}
|
|
1245
|
-
case 40: {
|
|
1246
|
-
r.expect(f, 2);
|
|
1247
|
-
payload = { case: "error", value: readError(r.child(), payload?.case === "error" ? payload.value : undefined) };
|
|
1248
|
-
break;
|
|
1249
|
-
}
|
|
1250
|
-
default:
|
|
1251
|
-
_unknown.push(r.unknown(f));
|
|
1252
|
-
break;
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
return { _unknown, request_id, kind, ...(payload === undefined ? {} : { payload }) };
|
|
1256
|
-
}
|
|
1257
|
-
//# sourceMappingURL=wire.generated.js.map
|