@stream-io/video-client 0.0.1-alpha.7
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/LICENSE +219 -0
- package/README.md +14 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +14663 -0
- package/dist/index.js.map +1 -0
- package/dist/src/Batcher.d.ts +12 -0
- package/dist/src/CallDropScheduler.d.ts +44 -0
- package/dist/src/StreamSfuClient.d.ts +25 -0
- package/dist/src/StreamVideoClient.d.ts +145 -0
- package/dist/src/__tests__/StreamVideoClient.test.d.ts +1 -0
- package/dist/src/config/defaultConfigs.d.ts +2 -0
- package/dist/src/config/types.d.ts +29 -0
- package/dist/src/coordinator/StreamCoordinatorClient.d.ts +19 -0
- package/dist/src/coordinator/connection/base64.d.ts +2 -0
- package/dist/src/coordinator/connection/client.d.ts +174 -0
- package/dist/src/coordinator/connection/connection.d.ts +139 -0
- package/dist/src/coordinator/connection/connection_fallback.d.ts +38 -0
- package/dist/src/coordinator/connection/errors.d.ts +16 -0
- package/dist/src/coordinator/connection/events.d.ts +7 -0
- package/dist/src/coordinator/connection/insights.d.ts +58 -0
- package/dist/src/coordinator/connection/signing.d.ts +30 -0
- package/dist/src/coordinator/connection/token_manager.d.ts +39 -0
- package/dist/src/coordinator/connection/types.d.ts +96 -0
- package/dist/src/coordinator/connection/utils.d.ts +25 -0
- package/dist/src/devices.d.ts +79 -0
- package/dist/src/events/call.d.ts +26 -0
- package/dist/src/events/internal.d.ts +8 -0
- package/dist/src/events/participant.d.ts +21 -0
- package/dist/src/events/speaker.d.ts +10 -0
- package/dist/src/gen/coordinator/index.d.ts +1664 -0
- package/dist/src/gen/google/protobuf/descriptor.d.ts +1650 -0
- package/dist/src/gen/google/protobuf/duration.d.ts +113 -0
- package/dist/src/gen/google/protobuf/struct.d.ts +184 -0
- package/dist/src/gen/google/protobuf/timestamp.d.ts +158 -0
- package/dist/src/gen/video/coordinator/broadcast_v1/broadcast.d.ts +66 -0
- package/dist/src/gen/video/coordinator/call_v1/call.d.ts +254 -0
- package/dist/src/gen/video/coordinator/client_v1_rpc/client_rpc.client.d.ts +351 -0
- package/dist/src/gen/video/coordinator/client_v1_rpc/client_rpc.d.ts +1488 -0
- package/dist/src/gen/video/coordinator/client_v1_rpc/envelopes.d.ts +143 -0
- package/dist/src/gen/video/coordinator/client_v1_rpc/websocket.d.ts +292 -0
- package/dist/src/gen/video/coordinator/edge_v1/edge.d.ts +183 -0
- package/dist/src/gen/video/coordinator/event_v1/event.d.ts +411 -0
- package/dist/src/gen/video/coordinator/geofence_v1/geofence.d.ts +63 -0
- package/dist/src/gen/video/coordinator/member_v1/member.d.ts +59 -0
- package/dist/src/gen/video/coordinator/participant_v1/participant.d.ts +103 -0
- package/dist/src/gen/video/coordinator/push_v1/push.d.ts +240 -0
- package/dist/src/gen/video/coordinator/stat_v1/stat.d.ts +308 -0
- package/dist/src/gen/video/coordinator/user_v1/user.d.ts +112 -0
- package/dist/src/gen/video/coordinator/utils_v1/utils.d.ts +47 -0
- package/dist/src/gen/video/sfu/event/events.d.ts +736 -0
- package/dist/src/gen/video/sfu/models/models.d.ts +460 -0
- package/dist/src/gen/video/sfu/signal_rpc/signal.client.d.ts +89 -0
- package/dist/src/gen/video/sfu/signal_rpc/signal.d.ts +320 -0
- package/dist/src/helpers/browsers.d.ts +8 -0
- package/dist/src/helpers/sound-detector.d.ts +34 -0
- package/dist/src/rpc/createClient.d.ts +10 -0
- package/dist/src/rpc/index.d.ts +2 -0
- package/dist/src/rpc/latency.d.ts +9 -0
- package/dist/src/rtc/Call.d.ts +180 -0
- package/dist/src/rtc/CallMetadata.d.ts +9 -0
- package/dist/src/rtc/Dispatcher.d.ts +9 -0
- package/dist/src/rtc/IceTrickleBuffer.d.ts +11 -0
- package/dist/src/rtc/callEventHandlers.d.ts +5 -0
- package/dist/src/rtc/codecs.d.ts +2 -0
- package/dist/src/rtc/helpers/iceCandidate.d.ts +2 -0
- package/dist/src/rtc/helpers/tracks.d.ts +3 -0
- package/dist/src/rtc/publisher.d.ts +53 -0
- package/dist/src/rtc/signal.d.ts +5 -0
- package/dist/src/rtc/subscriber.d.ts +7 -0
- package/dist/src/rtc/types.d.ts +84 -0
- package/dist/src/rtc/videoLayers.d.ts +17 -0
- package/dist/src/stats/coordinator-stats-reporter.d.ts +10 -0
- package/dist/src/stats/state-store-stats-reporter.d.ts +57 -0
- package/dist/src/stats/types.d.ts +42 -0
- package/dist/src/store/index.d.ts +2 -0
- package/dist/src/store/rxUtils.d.ts +18 -0
- package/dist/src/store/stateStore.d.ts +182 -0
- package/generate-openapi.sh +32 -0
- package/index.ts +30 -0
- package/openapitools.json +7 -0
- package/package.json +54 -0
- package/rollup.config.mjs +48 -0
- package/src/Batcher.ts +43 -0
- package/src/CallDropScheduler.ts +192 -0
- package/src/StreamSfuClient.ts +185 -0
- package/src/StreamVideoClient.ts +487 -0
- package/src/__tests__/StreamVideoClient.test.ts +83 -0
- package/src/config/defaultConfigs.ts +15 -0
- package/src/config/types.ts +30 -0
- package/src/coordinator/StreamCoordinatorClient.ts +111 -0
- package/src/coordinator/connection/base64.ts +80 -0
- package/src/coordinator/connection/client.ts +815 -0
- package/src/coordinator/connection/connection.ts +750 -0
- package/src/coordinator/connection/connection_fallback.ts +239 -0
- package/src/coordinator/connection/errors.ts +70 -0
- package/src/coordinator/connection/events.ts +10 -0
- package/src/coordinator/connection/insights.ts +88 -0
- package/src/coordinator/connection/signing.ts +104 -0
- package/src/coordinator/connection/token_manager.ts +160 -0
- package/src/coordinator/connection/types.ts +120 -0
- package/src/coordinator/connection/utils.ts +148 -0
- package/src/devices.ts +266 -0
- package/src/events/call.ts +166 -0
- package/src/events/internal.ts +47 -0
- package/src/events/participant.ts +97 -0
- package/src/events/speaker.ts +62 -0
- package/src/gen/coordinator/index.ts +1653 -0
- package/src/gen/google/protobuf/descriptor.ts +3466 -0
- package/src/gen/google/protobuf/duration.ts +232 -0
- package/src/gen/google/protobuf/struct.ts +481 -0
- package/src/gen/google/protobuf/timestamp.ts +291 -0
- package/src/gen/video/coordinator/broadcast_v1/broadcast.ts +154 -0
- package/src/gen/video/coordinator/call_v1/call.ts +651 -0
- package/src/gen/video/coordinator/client_v1_rpc/client_rpc.client.ts +463 -0
- package/src/gen/video/coordinator/client_v1_rpc/client_rpc.ts +3819 -0
- package/src/gen/video/coordinator/client_v1_rpc/envelopes.ts +424 -0
- package/src/gen/video/coordinator/client_v1_rpc/websocket.ts +719 -0
- package/src/gen/video/coordinator/edge_v1/edge.ts +532 -0
- package/src/gen/video/coordinator/event_v1/event.ts +1171 -0
- package/src/gen/video/coordinator/geofence_v1/geofence.ts +128 -0
- package/src/gen/video/coordinator/member_v1/member.ts +138 -0
- package/src/gen/video/coordinator/participant_v1/participant.ts +261 -0
- package/src/gen/video/coordinator/push_v1/push.ts +651 -0
- package/src/gen/video/coordinator/stat_v1/stat.ts +656 -0
- package/src/gen/video/coordinator/user_v1/user.ts +277 -0
- package/src/gen/video/coordinator/utils_v1/utils.ts +98 -0
- package/src/gen/video/sfu/event/events.ts +1962 -0
- package/src/gen/video/sfu/models/models.ts +1062 -0
- package/src/gen/video/sfu/signal_rpc/signal.client.ts +108 -0
- package/src/gen/video/sfu/signal_rpc/signal.ts +906 -0
- package/src/helpers/browsers.ts +13 -0
- package/src/helpers/sound-detector.ts +85 -0
- package/src/rpc/createClient.ts +50 -0
- package/src/rpc/index.ts +2 -0
- package/src/rpc/latency.ts +43 -0
- package/src/rtc/Call.ts +585 -0
- package/src/rtc/CallMetadata.ts +24 -0
- package/src/rtc/Dispatcher.ts +46 -0
- package/src/rtc/IceTrickleBuffer.ts +21 -0
- package/src/rtc/callEventHandlers.ts +37 -0
- package/src/rtc/codecs.ts +61 -0
- package/src/rtc/helpers/iceCandidate.ts +16 -0
- package/src/rtc/helpers/tracks.ts +18 -0
- package/src/rtc/publisher.ts +305 -0
- package/src/rtc/signal.ts +34 -0
- package/src/rtc/subscriber.ts +85 -0
- package/src/rtc/types.ts +105 -0
- package/src/rtc/videoLayers.ts +103 -0
- package/src/stats/coordinator-stats-reporter.ts +167 -0
- package/src/stats/state-store-stats-reporter.ts +364 -0
- package/src/stats/types.ts +46 -0
- package/src/store/index.ts +2 -0
- package/src/store/rxUtils.ts +42 -0
- package/src/store/stateStore.ts +341 -0
- package/tsconfig.json +25 -0
- package/typedoc.json +11 -0
- package/vite.config.ts +11 -0
|
@@ -0,0 +1,1171 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @generated by protobuf-ts 2.8.1 with parameter long_type_string,client_generic,server_none,eslint_disable
|
|
3
|
+
// @generated from protobuf file "video/coordinator/event_v1/event.proto" (package "stream.video.coordinator.event_v1", syntax proto3)
|
|
4
|
+
// tslint:disable
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
|
14
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
+
import { CallDetails } from "../call_v1/call";
|
|
16
|
+
import { Call } from "../call_v1/call";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.RecordingStarted
|
|
19
|
+
*/
|
|
20
|
+
export interface RecordingStarted {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
23
|
+
*/
|
|
24
|
+
call?: Call;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
27
|
+
*/
|
|
28
|
+
callDetails?: CallDetails;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.RecordingStopped
|
|
32
|
+
*/
|
|
33
|
+
export interface RecordingStopped {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
36
|
+
*/
|
|
37
|
+
call?: Call;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
40
|
+
*/
|
|
41
|
+
callDetails?: CallDetails;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.UserUpdated
|
|
45
|
+
*/
|
|
46
|
+
export interface UserUpdated {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: string user_id = 1;
|
|
49
|
+
*/
|
|
50
|
+
userId: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.BroadcastStarted
|
|
54
|
+
*/
|
|
55
|
+
export interface BroadcastStarted {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
58
|
+
*/
|
|
59
|
+
call?: Call;
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
62
|
+
*/
|
|
63
|
+
callDetails?: CallDetails;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.BroadcastEnded
|
|
67
|
+
*/
|
|
68
|
+
export interface BroadcastEnded {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
71
|
+
*/
|
|
72
|
+
call?: Call;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
75
|
+
*/
|
|
76
|
+
callDetails?: CallDetails;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallMembersCreated
|
|
80
|
+
*/
|
|
81
|
+
export interface CallMembersCreated {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
84
|
+
*/
|
|
85
|
+
call?: Call;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
88
|
+
*/
|
|
89
|
+
callDetails?: CallDetails;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf field: bool ringing = 3;
|
|
92
|
+
*/
|
|
93
|
+
ringing: boolean;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallMembersUpdated
|
|
97
|
+
*/
|
|
98
|
+
export interface CallMembersUpdated {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
101
|
+
*/
|
|
102
|
+
call?: Call;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
105
|
+
*/
|
|
106
|
+
callDetails?: CallDetails;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallMembersDeleted
|
|
110
|
+
*/
|
|
111
|
+
export interface CallMembersDeleted {
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
114
|
+
*/
|
|
115
|
+
call?: Call;
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
118
|
+
*/
|
|
119
|
+
callDetails?: CallDetails;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallCreated
|
|
123
|
+
*/
|
|
124
|
+
export interface CallCreated {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
127
|
+
*/
|
|
128
|
+
call?: Call;
|
|
129
|
+
/**
|
|
130
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
131
|
+
*/
|
|
132
|
+
callDetails?: CallDetails;
|
|
133
|
+
/**
|
|
134
|
+
* @generated from protobuf field: bool ringing = 3;
|
|
135
|
+
*/
|
|
136
|
+
ringing: boolean;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallUpdated
|
|
140
|
+
*/
|
|
141
|
+
export interface CallUpdated {
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
144
|
+
*/
|
|
145
|
+
call?: Call;
|
|
146
|
+
/**
|
|
147
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
148
|
+
*/
|
|
149
|
+
callDetails?: CallDetails;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallEnded
|
|
153
|
+
*/
|
|
154
|
+
export interface CallEnded {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
157
|
+
*/
|
|
158
|
+
call?: Call;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
161
|
+
*/
|
|
162
|
+
callDetails?: CallDetails;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallDeleted
|
|
166
|
+
*/
|
|
167
|
+
export interface CallDeleted {
|
|
168
|
+
/**
|
|
169
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
170
|
+
*/
|
|
171
|
+
call?: Call;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
174
|
+
*/
|
|
175
|
+
callDetails?: CallDetails;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallAccepted
|
|
179
|
+
*/
|
|
180
|
+
export interface CallAccepted {
|
|
181
|
+
/**
|
|
182
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
183
|
+
*/
|
|
184
|
+
call?: Call;
|
|
185
|
+
/**
|
|
186
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
187
|
+
*/
|
|
188
|
+
callDetails?: CallDetails;
|
|
189
|
+
/**
|
|
190
|
+
* @generated from protobuf field: string sender_user_id = 3;
|
|
191
|
+
*/
|
|
192
|
+
senderUserId: string;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallRejected
|
|
196
|
+
*/
|
|
197
|
+
export interface CallRejected {
|
|
198
|
+
/**
|
|
199
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
200
|
+
*/
|
|
201
|
+
call?: Call;
|
|
202
|
+
/**
|
|
203
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
204
|
+
*/
|
|
205
|
+
callDetails?: CallDetails;
|
|
206
|
+
/**
|
|
207
|
+
* @generated from protobuf field: string sender_user_id = 3;
|
|
208
|
+
*/
|
|
209
|
+
senderUserId: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallCancelled
|
|
213
|
+
*/
|
|
214
|
+
export interface CallCancelled {
|
|
215
|
+
/**
|
|
216
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
217
|
+
*/
|
|
218
|
+
call?: Call;
|
|
219
|
+
/**
|
|
220
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
221
|
+
*/
|
|
222
|
+
callDetails?: CallDetails;
|
|
223
|
+
/**
|
|
224
|
+
* @generated from protobuf field: string sender_user_id = 3;
|
|
225
|
+
*/
|
|
226
|
+
senderUserId: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* A custom event type
|
|
230
|
+
*
|
|
231
|
+
* @generated from protobuf message stream.video.coordinator.event_v1.CallCustom
|
|
232
|
+
*/
|
|
233
|
+
export interface CallCustom {
|
|
234
|
+
/**
|
|
235
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
|
|
236
|
+
*/
|
|
237
|
+
call?: Call;
|
|
238
|
+
/**
|
|
239
|
+
* @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
|
|
240
|
+
*/
|
|
241
|
+
callDetails?: CallDetails;
|
|
242
|
+
/**
|
|
243
|
+
* @generated from protobuf field: string sender_user_id = 3;
|
|
244
|
+
*/
|
|
245
|
+
senderUserId: string;
|
|
246
|
+
/**
|
|
247
|
+
* The type of the event
|
|
248
|
+
*
|
|
249
|
+
* @generated from protobuf field: string type = 4;
|
|
250
|
+
*/
|
|
251
|
+
type: string;
|
|
252
|
+
/**
|
|
253
|
+
* The data in the event
|
|
254
|
+
*
|
|
255
|
+
* @generated from protobuf field: bytes data_json = 5;
|
|
256
|
+
*/
|
|
257
|
+
dataJson: Uint8Array;
|
|
258
|
+
}
|
|
259
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
260
|
+
class RecordingStarted$Type extends MessageType<RecordingStarted> {
|
|
261
|
+
constructor() {
|
|
262
|
+
super("stream.video.coordinator.event_v1.RecordingStarted", [
|
|
263
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
264
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
265
|
+
]);
|
|
266
|
+
}
|
|
267
|
+
create(value?: PartialMessage<RecordingStarted>): RecordingStarted {
|
|
268
|
+
const message = {};
|
|
269
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
270
|
+
if (value !== undefined)
|
|
271
|
+
reflectionMergePartial<RecordingStarted>(this, message, value);
|
|
272
|
+
return message;
|
|
273
|
+
}
|
|
274
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RecordingStarted): RecordingStarted {
|
|
275
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
276
|
+
while (reader.pos < end) {
|
|
277
|
+
let [fieldNo, wireType] = reader.tag();
|
|
278
|
+
switch (fieldNo) {
|
|
279
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
280
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
281
|
+
break;
|
|
282
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
283
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
284
|
+
break;
|
|
285
|
+
default:
|
|
286
|
+
let u = options.readUnknownField;
|
|
287
|
+
if (u === "throw")
|
|
288
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
289
|
+
let d = reader.skip(wireType);
|
|
290
|
+
if (u !== false)
|
|
291
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return message;
|
|
295
|
+
}
|
|
296
|
+
internalBinaryWrite(message: RecordingStarted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
297
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
298
|
+
if (message.call)
|
|
299
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
300
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
301
|
+
if (message.callDetails)
|
|
302
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
303
|
+
let u = options.writeUnknownFields;
|
|
304
|
+
if (u !== false)
|
|
305
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
306
|
+
return writer;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.RecordingStarted
|
|
311
|
+
*/
|
|
312
|
+
export const RecordingStarted = new RecordingStarted$Type();
|
|
313
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
314
|
+
class RecordingStopped$Type extends MessageType<RecordingStopped> {
|
|
315
|
+
constructor() {
|
|
316
|
+
super("stream.video.coordinator.event_v1.RecordingStopped", [
|
|
317
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
318
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
319
|
+
]);
|
|
320
|
+
}
|
|
321
|
+
create(value?: PartialMessage<RecordingStopped>): RecordingStopped {
|
|
322
|
+
const message = {};
|
|
323
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
324
|
+
if (value !== undefined)
|
|
325
|
+
reflectionMergePartial<RecordingStopped>(this, message, value);
|
|
326
|
+
return message;
|
|
327
|
+
}
|
|
328
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RecordingStopped): RecordingStopped {
|
|
329
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
let [fieldNo, wireType] = reader.tag();
|
|
332
|
+
switch (fieldNo) {
|
|
333
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
334
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
335
|
+
break;
|
|
336
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
337
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
let u = options.readUnknownField;
|
|
341
|
+
if (u === "throw")
|
|
342
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
343
|
+
let d = reader.skip(wireType);
|
|
344
|
+
if (u !== false)
|
|
345
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return message;
|
|
349
|
+
}
|
|
350
|
+
internalBinaryWrite(message: RecordingStopped, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
351
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
352
|
+
if (message.call)
|
|
353
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
354
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
355
|
+
if (message.callDetails)
|
|
356
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
357
|
+
let u = options.writeUnknownFields;
|
|
358
|
+
if (u !== false)
|
|
359
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
360
|
+
return writer;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.RecordingStopped
|
|
365
|
+
*/
|
|
366
|
+
export const RecordingStopped = new RecordingStopped$Type();
|
|
367
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
368
|
+
class UserUpdated$Type extends MessageType<UserUpdated> {
|
|
369
|
+
constructor() {
|
|
370
|
+
super("stream.video.coordinator.event_v1.UserUpdated", [
|
|
371
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
372
|
+
]);
|
|
373
|
+
}
|
|
374
|
+
create(value?: PartialMessage<UserUpdated>): UserUpdated {
|
|
375
|
+
const message = { userId: "" };
|
|
376
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
377
|
+
if (value !== undefined)
|
|
378
|
+
reflectionMergePartial<UserUpdated>(this, message, value);
|
|
379
|
+
return message;
|
|
380
|
+
}
|
|
381
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserUpdated): UserUpdated {
|
|
382
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
383
|
+
while (reader.pos < end) {
|
|
384
|
+
let [fieldNo, wireType] = reader.tag();
|
|
385
|
+
switch (fieldNo) {
|
|
386
|
+
case /* string user_id */ 1:
|
|
387
|
+
message.userId = reader.string();
|
|
388
|
+
break;
|
|
389
|
+
default:
|
|
390
|
+
let u = options.readUnknownField;
|
|
391
|
+
if (u === "throw")
|
|
392
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
393
|
+
let d = reader.skip(wireType);
|
|
394
|
+
if (u !== false)
|
|
395
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return message;
|
|
399
|
+
}
|
|
400
|
+
internalBinaryWrite(message: UserUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
401
|
+
/* string user_id = 1; */
|
|
402
|
+
if (message.userId !== "")
|
|
403
|
+
writer.tag(1, WireType.LengthDelimited).string(message.userId);
|
|
404
|
+
let u = options.writeUnknownFields;
|
|
405
|
+
if (u !== false)
|
|
406
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
407
|
+
return writer;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.UserUpdated
|
|
412
|
+
*/
|
|
413
|
+
export const UserUpdated = new UserUpdated$Type();
|
|
414
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
415
|
+
class BroadcastStarted$Type extends MessageType<BroadcastStarted> {
|
|
416
|
+
constructor() {
|
|
417
|
+
super("stream.video.coordinator.event_v1.BroadcastStarted", [
|
|
418
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
419
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
420
|
+
]);
|
|
421
|
+
}
|
|
422
|
+
create(value?: PartialMessage<BroadcastStarted>): BroadcastStarted {
|
|
423
|
+
const message = {};
|
|
424
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
425
|
+
if (value !== undefined)
|
|
426
|
+
reflectionMergePartial<BroadcastStarted>(this, message, value);
|
|
427
|
+
return message;
|
|
428
|
+
}
|
|
429
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastStarted): BroadcastStarted {
|
|
430
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
431
|
+
while (reader.pos < end) {
|
|
432
|
+
let [fieldNo, wireType] = reader.tag();
|
|
433
|
+
switch (fieldNo) {
|
|
434
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
435
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
436
|
+
break;
|
|
437
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
438
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
439
|
+
break;
|
|
440
|
+
default:
|
|
441
|
+
let u = options.readUnknownField;
|
|
442
|
+
if (u === "throw")
|
|
443
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
444
|
+
let d = reader.skip(wireType);
|
|
445
|
+
if (u !== false)
|
|
446
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return message;
|
|
450
|
+
}
|
|
451
|
+
internalBinaryWrite(message: BroadcastStarted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
452
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
453
|
+
if (message.call)
|
|
454
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
455
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
456
|
+
if (message.callDetails)
|
|
457
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
458
|
+
let u = options.writeUnknownFields;
|
|
459
|
+
if (u !== false)
|
|
460
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
461
|
+
return writer;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.BroadcastStarted
|
|
466
|
+
*/
|
|
467
|
+
export const BroadcastStarted = new BroadcastStarted$Type();
|
|
468
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
469
|
+
class BroadcastEnded$Type extends MessageType<BroadcastEnded> {
|
|
470
|
+
constructor() {
|
|
471
|
+
super("stream.video.coordinator.event_v1.BroadcastEnded", [
|
|
472
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
473
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
474
|
+
]);
|
|
475
|
+
}
|
|
476
|
+
create(value?: PartialMessage<BroadcastEnded>): BroadcastEnded {
|
|
477
|
+
const message = {};
|
|
478
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
479
|
+
if (value !== undefined)
|
|
480
|
+
reflectionMergePartial<BroadcastEnded>(this, message, value);
|
|
481
|
+
return message;
|
|
482
|
+
}
|
|
483
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastEnded): BroadcastEnded {
|
|
484
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
485
|
+
while (reader.pos < end) {
|
|
486
|
+
let [fieldNo, wireType] = reader.tag();
|
|
487
|
+
switch (fieldNo) {
|
|
488
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
489
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
490
|
+
break;
|
|
491
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
492
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
493
|
+
break;
|
|
494
|
+
default:
|
|
495
|
+
let u = options.readUnknownField;
|
|
496
|
+
if (u === "throw")
|
|
497
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
498
|
+
let d = reader.skip(wireType);
|
|
499
|
+
if (u !== false)
|
|
500
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return message;
|
|
504
|
+
}
|
|
505
|
+
internalBinaryWrite(message: BroadcastEnded, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
506
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
507
|
+
if (message.call)
|
|
508
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
509
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
510
|
+
if (message.callDetails)
|
|
511
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
512
|
+
let u = options.writeUnknownFields;
|
|
513
|
+
if (u !== false)
|
|
514
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
515
|
+
return writer;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.BroadcastEnded
|
|
520
|
+
*/
|
|
521
|
+
export const BroadcastEnded = new BroadcastEnded$Type();
|
|
522
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
523
|
+
class CallMembersCreated$Type extends MessageType<CallMembersCreated> {
|
|
524
|
+
constructor() {
|
|
525
|
+
super("stream.video.coordinator.event_v1.CallMembersCreated", [
|
|
526
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
527
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } },
|
|
528
|
+
{ no: 3, name: "ringing", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
529
|
+
]);
|
|
530
|
+
}
|
|
531
|
+
create(value?: PartialMessage<CallMembersCreated>): CallMembersCreated {
|
|
532
|
+
const message = { ringing: false };
|
|
533
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
534
|
+
if (value !== undefined)
|
|
535
|
+
reflectionMergePartial<CallMembersCreated>(this, message, value);
|
|
536
|
+
return message;
|
|
537
|
+
}
|
|
538
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallMembersCreated): CallMembersCreated {
|
|
539
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
540
|
+
while (reader.pos < end) {
|
|
541
|
+
let [fieldNo, wireType] = reader.tag();
|
|
542
|
+
switch (fieldNo) {
|
|
543
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
544
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
545
|
+
break;
|
|
546
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
547
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
548
|
+
break;
|
|
549
|
+
case /* bool ringing */ 3:
|
|
550
|
+
message.ringing = reader.bool();
|
|
551
|
+
break;
|
|
552
|
+
default:
|
|
553
|
+
let u = options.readUnknownField;
|
|
554
|
+
if (u === "throw")
|
|
555
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
556
|
+
let d = reader.skip(wireType);
|
|
557
|
+
if (u !== false)
|
|
558
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
return message;
|
|
562
|
+
}
|
|
563
|
+
internalBinaryWrite(message: CallMembersCreated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
564
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
565
|
+
if (message.call)
|
|
566
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
567
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
568
|
+
if (message.callDetails)
|
|
569
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
570
|
+
/* bool ringing = 3; */
|
|
571
|
+
if (message.ringing !== false)
|
|
572
|
+
writer.tag(3, WireType.Varint).bool(message.ringing);
|
|
573
|
+
let u = options.writeUnknownFields;
|
|
574
|
+
if (u !== false)
|
|
575
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
576
|
+
return writer;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallMembersCreated
|
|
581
|
+
*/
|
|
582
|
+
export const CallMembersCreated = new CallMembersCreated$Type();
|
|
583
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
584
|
+
class CallMembersUpdated$Type extends MessageType<CallMembersUpdated> {
|
|
585
|
+
constructor() {
|
|
586
|
+
super("stream.video.coordinator.event_v1.CallMembersUpdated", [
|
|
587
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
588
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
589
|
+
]);
|
|
590
|
+
}
|
|
591
|
+
create(value?: PartialMessage<CallMembersUpdated>): CallMembersUpdated {
|
|
592
|
+
const message = {};
|
|
593
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
594
|
+
if (value !== undefined)
|
|
595
|
+
reflectionMergePartial<CallMembersUpdated>(this, message, value);
|
|
596
|
+
return message;
|
|
597
|
+
}
|
|
598
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallMembersUpdated): CallMembersUpdated {
|
|
599
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
600
|
+
while (reader.pos < end) {
|
|
601
|
+
let [fieldNo, wireType] = reader.tag();
|
|
602
|
+
switch (fieldNo) {
|
|
603
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
604
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
605
|
+
break;
|
|
606
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
607
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
608
|
+
break;
|
|
609
|
+
default:
|
|
610
|
+
let u = options.readUnknownField;
|
|
611
|
+
if (u === "throw")
|
|
612
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
613
|
+
let d = reader.skip(wireType);
|
|
614
|
+
if (u !== false)
|
|
615
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return message;
|
|
619
|
+
}
|
|
620
|
+
internalBinaryWrite(message: CallMembersUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
621
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
622
|
+
if (message.call)
|
|
623
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
624
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
625
|
+
if (message.callDetails)
|
|
626
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
627
|
+
let u = options.writeUnknownFields;
|
|
628
|
+
if (u !== false)
|
|
629
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
630
|
+
return writer;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallMembersUpdated
|
|
635
|
+
*/
|
|
636
|
+
export const CallMembersUpdated = new CallMembersUpdated$Type();
|
|
637
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
638
|
+
class CallMembersDeleted$Type extends MessageType<CallMembersDeleted> {
|
|
639
|
+
constructor() {
|
|
640
|
+
super("stream.video.coordinator.event_v1.CallMembersDeleted", [
|
|
641
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
642
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
643
|
+
]);
|
|
644
|
+
}
|
|
645
|
+
create(value?: PartialMessage<CallMembersDeleted>): CallMembersDeleted {
|
|
646
|
+
const message = {};
|
|
647
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
648
|
+
if (value !== undefined)
|
|
649
|
+
reflectionMergePartial<CallMembersDeleted>(this, message, value);
|
|
650
|
+
return message;
|
|
651
|
+
}
|
|
652
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallMembersDeleted): CallMembersDeleted {
|
|
653
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
654
|
+
while (reader.pos < end) {
|
|
655
|
+
let [fieldNo, wireType] = reader.tag();
|
|
656
|
+
switch (fieldNo) {
|
|
657
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
658
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
659
|
+
break;
|
|
660
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
661
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
662
|
+
break;
|
|
663
|
+
default:
|
|
664
|
+
let u = options.readUnknownField;
|
|
665
|
+
if (u === "throw")
|
|
666
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
667
|
+
let d = reader.skip(wireType);
|
|
668
|
+
if (u !== false)
|
|
669
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return message;
|
|
673
|
+
}
|
|
674
|
+
internalBinaryWrite(message: CallMembersDeleted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
675
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
676
|
+
if (message.call)
|
|
677
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
678
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
679
|
+
if (message.callDetails)
|
|
680
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
681
|
+
let u = options.writeUnknownFields;
|
|
682
|
+
if (u !== false)
|
|
683
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
684
|
+
return writer;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallMembersDeleted
|
|
689
|
+
*/
|
|
690
|
+
export const CallMembersDeleted = new CallMembersDeleted$Type();
|
|
691
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
692
|
+
class CallCreated$Type extends MessageType<CallCreated> {
|
|
693
|
+
constructor() {
|
|
694
|
+
super("stream.video.coordinator.event_v1.CallCreated", [
|
|
695
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
696
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } },
|
|
697
|
+
{ no: 3, name: "ringing", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
698
|
+
]);
|
|
699
|
+
}
|
|
700
|
+
create(value?: PartialMessage<CallCreated>): CallCreated {
|
|
701
|
+
const message = { ringing: false };
|
|
702
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
703
|
+
if (value !== undefined)
|
|
704
|
+
reflectionMergePartial<CallCreated>(this, message, value);
|
|
705
|
+
return message;
|
|
706
|
+
}
|
|
707
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallCreated): CallCreated {
|
|
708
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
709
|
+
while (reader.pos < end) {
|
|
710
|
+
let [fieldNo, wireType] = reader.tag();
|
|
711
|
+
switch (fieldNo) {
|
|
712
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
713
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
714
|
+
break;
|
|
715
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
716
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
717
|
+
break;
|
|
718
|
+
case /* bool ringing */ 3:
|
|
719
|
+
message.ringing = reader.bool();
|
|
720
|
+
break;
|
|
721
|
+
default:
|
|
722
|
+
let u = options.readUnknownField;
|
|
723
|
+
if (u === "throw")
|
|
724
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
725
|
+
let d = reader.skip(wireType);
|
|
726
|
+
if (u !== false)
|
|
727
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
return message;
|
|
731
|
+
}
|
|
732
|
+
internalBinaryWrite(message: CallCreated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
733
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
734
|
+
if (message.call)
|
|
735
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
736
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
737
|
+
if (message.callDetails)
|
|
738
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
739
|
+
/* bool ringing = 3; */
|
|
740
|
+
if (message.ringing !== false)
|
|
741
|
+
writer.tag(3, WireType.Varint).bool(message.ringing);
|
|
742
|
+
let u = options.writeUnknownFields;
|
|
743
|
+
if (u !== false)
|
|
744
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
745
|
+
return writer;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallCreated
|
|
750
|
+
*/
|
|
751
|
+
export const CallCreated = new CallCreated$Type();
|
|
752
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
753
|
+
class CallUpdated$Type extends MessageType<CallUpdated> {
|
|
754
|
+
constructor() {
|
|
755
|
+
super("stream.video.coordinator.event_v1.CallUpdated", [
|
|
756
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
757
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
758
|
+
]);
|
|
759
|
+
}
|
|
760
|
+
create(value?: PartialMessage<CallUpdated>): CallUpdated {
|
|
761
|
+
const message = {};
|
|
762
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
763
|
+
if (value !== undefined)
|
|
764
|
+
reflectionMergePartial<CallUpdated>(this, message, value);
|
|
765
|
+
return message;
|
|
766
|
+
}
|
|
767
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallUpdated): CallUpdated {
|
|
768
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
769
|
+
while (reader.pos < end) {
|
|
770
|
+
let [fieldNo, wireType] = reader.tag();
|
|
771
|
+
switch (fieldNo) {
|
|
772
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
773
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
774
|
+
break;
|
|
775
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
776
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
777
|
+
break;
|
|
778
|
+
default:
|
|
779
|
+
let u = options.readUnknownField;
|
|
780
|
+
if (u === "throw")
|
|
781
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
782
|
+
let d = reader.skip(wireType);
|
|
783
|
+
if (u !== false)
|
|
784
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
return message;
|
|
788
|
+
}
|
|
789
|
+
internalBinaryWrite(message: CallUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
790
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
791
|
+
if (message.call)
|
|
792
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
793
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
794
|
+
if (message.callDetails)
|
|
795
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
796
|
+
let u = options.writeUnknownFields;
|
|
797
|
+
if (u !== false)
|
|
798
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
799
|
+
return writer;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallUpdated
|
|
804
|
+
*/
|
|
805
|
+
export const CallUpdated = new CallUpdated$Type();
|
|
806
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
807
|
+
class CallEnded$Type extends MessageType<CallEnded> {
|
|
808
|
+
constructor() {
|
|
809
|
+
super("stream.video.coordinator.event_v1.CallEnded", [
|
|
810
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
811
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
812
|
+
]);
|
|
813
|
+
}
|
|
814
|
+
create(value?: PartialMessage<CallEnded>): CallEnded {
|
|
815
|
+
const message = {};
|
|
816
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
817
|
+
if (value !== undefined)
|
|
818
|
+
reflectionMergePartial<CallEnded>(this, message, value);
|
|
819
|
+
return message;
|
|
820
|
+
}
|
|
821
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallEnded): CallEnded {
|
|
822
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
823
|
+
while (reader.pos < end) {
|
|
824
|
+
let [fieldNo, wireType] = reader.tag();
|
|
825
|
+
switch (fieldNo) {
|
|
826
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
827
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
828
|
+
break;
|
|
829
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
830
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
831
|
+
break;
|
|
832
|
+
default:
|
|
833
|
+
let u = options.readUnknownField;
|
|
834
|
+
if (u === "throw")
|
|
835
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
836
|
+
let d = reader.skip(wireType);
|
|
837
|
+
if (u !== false)
|
|
838
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return message;
|
|
842
|
+
}
|
|
843
|
+
internalBinaryWrite(message: CallEnded, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
844
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
845
|
+
if (message.call)
|
|
846
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
847
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
848
|
+
if (message.callDetails)
|
|
849
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
850
|
+
let u = options.writeUnknownFields;
|
|
851
|
+
if (u !== false)
|
|
852
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
853
|
+
return writer;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallEnded
|
|
858
|
+
*/
|
|
859
|
+
export const CallEnded = new CallEnded$Type();
|
|
860
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
861
|
+
class CallDeleted$Type extends MessageType<CallDeleted> {
|
|
862
|
+
constructor() {
|
|
863
|
+
super("stream.video.coordinator.event_v1.CallDeleted", [
|
|
864
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
865
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } }
|
|
866
|
+
]);
|
|
867
|
+
}
|
|
868
|
+
create(value?: PartialMessage<CallDeleted>): CallDeleted {
|
|
869
|
+
const message = {};
|
|
870
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
871
|
+
if (value !== undefined)
|
|
872
|
+
reflectionMergePartial<CallDeleted>(this, message, value);
|
|
873
|
+
return message;
|
|
874
|
+
}
|
|
875
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallDeleted): CallDeleted {
|
|
876
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
877
|
+
while (reader.pos < end) {
|
|
878
|
+
let [fieldNo, wireType] = reader.tag();
|
|
879
|
+
switch (fieldNo) {
|
|
880
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
881
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
882
|
+
break;
|
|
883
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
884
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
885
|
+
break;
|
|
886
|
+
default:
|
|
887
|
+
let u = options.readUnknownField;
|
|
888
|
+
if (u === "throw")
|
|
889
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
890
|
+
let d = reader.skip(wireType);
|
|
891
|
+
if (u !== false)
|
|
892
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
return message;
|
|
896
|
+
}
|
|
897
|
+
internalBinaryWrite(message: CallDeleted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
898
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
899
|
+
if (message.call)
|
|
900
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
901
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
902
|
+
if (message.callDetails)
|
|
903
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
904
|
+
let u = options.writeUnknownFields;
|
|
905
|
+
if (u !== false)
|
|
906
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
907
|
+
return writer;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallDeleted
|
|
912
|
+
*/
|
|
913
|
+
export const CallDeleted = new CallDeleted$Type();
|
|
914
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
915
|
+
class CallAccepted$Type extends MessageType<CallAccepted> {
|
|
916
|
+
constructor() {
|
|
917
|
+
super("stream.video.coordinator.event_v1.CallAccepted", [
|
|
918
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
919
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } },
|
|
920
|
+
{ no: 3, name: "sender_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
921
|
+
]);
|
|
922
|
+
}
|
|
923
|
+
create(value?: PartialMessage<CallAccepted>): CallAccepted {
|
|
924
|
+
const message = { senderUserId: "" };
|
|
925
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
926
|
+
if (value !== undefined)
|
|
927
|
+
reflectionMergePartial<CallAccepted>(this, message, value);
|
|
928
|
+
return message;
|
|
929
|
+
}
|
|
930
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallAccepted): CallAccepted {
|
|
931
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
932
|
+
while (reader.pos < end) {
|
|
933
|
+
let [fieldNo, wireType] = reader.tag();
|
|
934
|
+
switch (fieldNo) {
|
|
935
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
936
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
937
|
+
break;
|
|
938
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
939
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
940
|
+
break;
|
|
941
|
+
case /* string sender_user_id */ 3:
|
|
942
|
+
message.senderUserId = reader.string();
|
|
943
|
+
break;
|
|
944
|
+
default:
|
|
945
|
+
let u = options.readUnknownField;
|
|
946
|
+
if (u === "throw")
|
|
947
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
948
|
+
let d = reader.skip(wireType);
|
|
949
|
+
if (u !== false)
|
|
950
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
return message;
|
|
954
|
+
}
|
|
955
|
+
internalBinaryWrite(message: CallAccepted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
956
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
957
|
+
if (message.call)
|
|
958
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
959
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
960
|
+
if (message.callDetails)
|
|
961
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
962
|
+
/* string sender_user_id = 3; */
|
|
963
|
+
if (message.senderUserId !== "")
|
|
964
|
+
writer.tag(3, WireType.LengthDelimited).string(message.senderUserId);
|
|
965
|
+
let u = options.writeUnknownFields;
|
|
966
|
+
if (u !== false)
|
|
967
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
968
|
+
return writer;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallAccepted
|
|
973
|
+
*/
|
|
974
|
+
export const CallAccepted = new CallAccepted$Type();
|
|
975
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
976
|
+
class CallRejected$Type extends MessageType<CallRejected> {
|
|
977
|
+
constructor() {
|
|
978
|
+
super("stream.video.coordinator.event_v1.CallRejected", [
|
|
979
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
980
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } },
|
|
981
|
+
{ no: 3, name: "sender_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
982
|
+
]);
|
|
983
|
+
}
|
|
984
|
+
create(value?: PartialMessage<CallRejected>): CallRejected {
|
|
985
|
+
const message = { senderUserId: "" };
|
|
986
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
987
|
+
if (value !== undefined)
|
|
988
|
+
reflectionMergePartial<CallRejected>(this, message, value);
|
|
989
|
+
return message;
|
|
990
|
+
}
|
|
991
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallRejected): CallRejected {
|
|
992
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
993
|
+
while (reader.pos < end) {
|
|
994
|
+
let [fieldNo, wireType] = reader.tag();
|
|
995
|
+
switch (fieldNo) {
|
|
996
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
997
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
998
|
+
break;
|
|
999
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
1000
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
1001
|
+
break;
|
|
1002
|
+
case /* string sender_user_id */ 3:
|
|
1003
|
+
message.senderUserId = reader.string();
|
|
1004
|
+
break;
|
|
1005
|
+
default:
|
|
1006
|
+
let u = options.readUnknownField;
|
|
1007
|
+
if (u === "throw")
|
|
1008
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1009
|
+
let d = reader.skip(wireType);
|
|
1010
|
+
if (u !== false)
|
|
1011
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
return message;
|
|
1015
|
+
}
|
|
1016
|
+
internalBinaryWrite(message: CallRejected, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1017
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
1018
|
+
if (message.call)
|
|
1019
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1020
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
1021
|
+
if (message.callDetails)
|
|
1022
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1023
|
+
/* string sender_user_id = 3; */
|
|
1024
|
+
if (message.senderUserId !== "")
|
|
1025
|
+
writer.tag(3, WireType.LengthDelimited).string(message.senderUserId);
|
|
1026
|
+
let u = options.writeUnknownFields;
|
|
1027
|
+
if (u !== false)
|
|
1028
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1029
|
+
return writer;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallRejected
|
|
1034
|
+
*/
|
|
1035
|
+
export const CallRejected = new CallRejected$Type();
|
|
1036
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1037
|
+
class CallCancelled$Type extends MessageType<CallCancelled> {
|
|
1038
|
+
constructor() {
|
|
1039
|
+
super("stream.video.coordinator.event_v1.CallCancelled", [
|
|
1040
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
1041
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } },
|
|
1042
|
+
{ no: 3, name: "sender_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
1043
|
+
]);
|
|
1044
|
+
}
|
|
1045
|
+
create(value?: PartialMessage<CallCancelled>): CallCancelled {
|
|
1046
|
+
const message = { senderUserId: "" };
|
|
1047
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1048
|
+
if (value !== undefined)
|
|
1049
|
+
reflectionMergePartial<CallCancelled>(this, message, value);
|
|
1050
|
+
return message;
|
|
1051
|
+
}
|
|
1052
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallCancelled): CallCancelled {
|
|
1053
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1054
|
+
while (reader.pos < end) {
|
|
1055
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1056
|
+
switch (fieldNo) {
|
|
1057
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
1058
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
1059
|
+
break;
|
|
1060
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
1061
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
1062
|
+
break;
|
|
1063
|
+
case /* string sender_user_id */ 3:
|
|
1064
|
+
message.senderUserId = reader.string();
|
|
1065
|
+
break;
|
|
1066
|
+
default:
|
|
1067
|
+
let u = options.readUnknownField;
|
|
1068
|
+
if (u === "throw")
|
|
1069
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1070
|
+
let d = reader.skip(wireType);
|
|
1071
|
+
if (u !== false)
|
|
1072
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
return message;
|
|
1076
|
+
}
|
|
1077
|
+
internalBinaryWrite(message: CallCancelled, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1078
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
1079
|
+
if (message.call)
|
|
1080
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1081
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
1082
|
+
if (message.callDetails)
|
|
1083
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1084
|
+
/* string sender_user_id = 3; */
|
|
1085
|
+
if (message.senderUserId !== "")
|
|
1086
|
+
writer.tag(3, WireType.LengthDelimited).string(message.senderUserId);
|
|
1087
|
+
let u = options.writeUnknownFields;
|
|
1088
|
+
if (u !== false)
|
|
1089
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1090
|
+
return writer;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallCancelled
|
|
1095
|
+
*/
|
|
1096
|
+
export const CallCancelled = new CallCancelled$Type();
|
|
1097
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1098
|
+
class CallCustom$Type extends MessageType<CallCustom> {
|
|
1099
|
+
constructor() {
|
|
1100
|
+
super("stream.video.coordinator.event_v1.CallCustom", [
|
|
1101
|
+
{ no: 1, name: "call", kind: "message", T: () => Call, options: { "validate.rules": { message: { required: true } } } },
|
|
1102
|
+
{ no: 2, name: "call_details", kind: "message", T: () => CallDetails, options: { "validate.rules": { message: { required: true } } } },
|
|
1103
|
+
{ no: 3, name: "sender_user_id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
1104
|
+
{ no: 4, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
1105
|
+
{ no: 5, name: "data_json", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1106
|
+
]);
|
|
1107
|
+
}
|
|
1108
|
+
create(value?: PartialMessage<CallCustom>): CallCustom {
|
|
1109
|
+
const message = { senderUserId: "", type: "", dataJson: new Uint8Array(0) };
|
|
1110
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1111
|
+
if (value !== undefined)
|
|
1112
|
+
reflectionMergePartial<CallCustom>(this, message, value);
|
|
1113
|
+
return message;
|
|
1114
|
+
}
|
|
1115
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallCustom): CallCustom {
|
|
1116
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1117
|
+
while (reader.pos < end) {
|
|
1118
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1119
|
+
switch (fieldNo) {
|
|
1120
|
+
case /* stream.video.coordinator.call_v1.Call call */ 1:
|
|
1121
|
+
message.call = Call.internalBinaryRead(reader, reader.uint32(), options, message.call);
|
|
1122
|
+
break;
|
|
1123
|
+
case /* stream.video.coordinator.call_v1.CallDetails call_details */ 2:
|
|
1124
|
+
message.callDetails = CallDetails.internalBinaryRead(reader, reader.uint32(), options, message.callDetails);
|
|
1125
|
+
break;
|
|
1126
|
+
case /* string sender_user_id */ 3:
|
|
1127
|
+
message.senderUserId = reader.string();
|
|
1128
|
+
break;
|
|
1129
|
+
case /* string type */ 4:
|
|
1130
|
+
message.type = reader.string();
|
|
1131
|
+
break;
|
|
1132
|
+
case /* bytes data_json */ 5:
|
|
1133
|
+
message.dataJson = reader.bytes();
|
|
1134
|
+
break;
|
|
1135
|
+
default:
|
|
1136
|
+
let u = options.readUnknownField;
|
|
1137
|
+
if (u === "throw")
|
|
1138
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1139
|
+
let d = reader.skip(wireType);
|
|
1140
|
+
if (u !== false)
|
|
1141
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
return message;
|
|
1145
|
+
}
|
|
1146
|
+
internalBinaryWrite(message: CallCustom, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1147
|
+
/* stream.video.coordinator.call_v1.Call call = 1; */
|
|
1148
|
+
if (message.call)
|
|
1149
|
+
Call.internalBinaryWrite(message.call, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1150
|
+
/* stream.video.coordinator.call_v1.CallDetails call_details = 2; */
|
|
1151
|
+
if (message.callDetails)
|
|
1152
|
+
CallDetails.internalBinaryWrite(message.callDetails, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1153
|
+
/* string sender_user_id = 3; */
|
|
1154
|
+
if (message.senderUserId !== "")
|
|
1155
|
+
writer.tag(3, WireType.LengthDelimited).string(message.senderUserId);
|
|
1156
|
+
/* string type = 4; */
|
|
1157
|
+
if (message.type !== "")
|
|
1158
|
+
writer.tag(4, WireType.LengthDelimited).string(message.type);
|
|
1159
|
+
/* bytes data_json = 5; */
|
|
1160
|
+
if (message.dataJson.length)
|
|
1161
|
+
writer.tag(5, WireType.LengthDelimited).bytes(message.dataJson);
|
|
1162
|
+
let u = options.writeUnknownFields;
|
|
1163
|
+
if (u !== false)
|
|
1164
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1165
|
+
return writer;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
/**
|
|
1169
|
+
* @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallCustom
|
|
1170
|
+
*/
|
|
1171
|
+
export const CallCustom = new CallCustom$Type();
|