@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.
Files changed (157) hide show
  1. package/LICENSE +219 -0
  2. package/README.md +14 -0
  3. package/dist/index.d.ts +23 -0
  4. package/dist/index.js +14663 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/src/Batcher.d.ts +12 -0
  7. package/dist/src/CallDropScheduler.d.ts +44 -0
  8. package/dist/src/StreamSfuClient.d.ts +25 -0
  9. package/dist/src/StreamVideoClient.d.ts +145 -0
  10. package/dist/src/__tests__/StreamVideoClient.test.d.ts +1 -0
  11. package/dist/src/config/defaultConfigs.d.ts +2 -0
  12. package/dist/src/config/types.d.ts +29 -0
  13. package/dist/src/coordinator/StreamCoordinatorClient.d.ts +19 -0
  14. package/dist/src/coordinator/connection/base64.d.ts +2 -0
  15. package/dist/src/coordinator/connection/client.d.ts +174 -0
  16. package/dist/src/coordinator/connection/connection.d.ts +139 -0
  17. package/dist/src/coordinator/connection/connection_fallback.d.ts +38 -0
  18. package/dist/src/coordinator/connection/errors.d.ts +16 -0
  19. package/dist/src/coordinator/connection/events.d.ts +7 -0
  20. package/dist/src/coordinator/connection/insights.d.ts +58 -0
  21. package/dist/src/coordinator/connection/signing.d.ts +30 -0
  22. package/dist/src/coordinator/connection/token_manager.d.ts +39 -0
  23. package/dist/src/coordinator/connection/types.d.ts +96 -0
  24. package/dist/src/coordinator/connection/utils.d.ts +25 -0
  25. package/dist/src/devices.d.ts +79 -0
  26. package/dist/src/events/call.d.ts +26 -0
  27. package/dist/src/events/internal.d.ts +8 -0
  28. package/dist/src/events/participant.d.ts +21 -0
  29. package/dist/src/events/speaker.d.ts +10 -0
  30. package/dist/src/gen/coordinator/index.d.ts +1664 -0
  31. package/dist/src/gen/google/protobuf/descriptor.d.ts +1650 -0
  32. package/dist/src/gen/google/protobuf/duration.d.ts +113 -0
  33. package/dist/src/gen/google/protobuf/struct.d.ts +184 -0
  34. package/dist/src/gen/google/protobuf/timestamp.d.ts +158 -0
  35. package/dist/src/gen/video/coordinator/broadcast_v1/broadcast.d.ts +66 -0
  36. package/dist/src/gen/video/coordinator/call_v1/call.d.ts +254 -0
  37. package/dist/src/gen/video/coordinator/client_v1_rpc/client_rpc.client.d.ts +351 -0
  38. package/dist/src/gen/video/coordinator/client_v1_rpc/client_rpc.d.ts +1488 -0
  39. package/dist/src/gen/video/coordinator/client_v1_rpc/envelopes.d.ts +143 -0
  40. package/dist/src/gen/video/coordinator/client_v1_rpc/websocket.d.ts +292 -0
  41. package/dist/src/gen/video/coordinator/edge_v1/edge.d.ts +183 -0
  42. package/dist/src/gen/video/coordinator/event_v1/event.d.ts +411 -0
  43. package/dist/src/gen/video/coordinator/geofence_v1/geofence.d.ts +63 -0
  44. package/dist/src/gen/video/coordinator/member_v1/member.d.ts +59 -0
  45. package/dist/src/gen/video/coordinator/participant_v1/participant.d.ts +103 -0
  46. package/dist/src/gen/video/coordinator/push_v1/push.d.ts +240 -0
  47. package/dist/src/gen/video/coordinator/stat_v1/stat.d.ts +308 -0
  48. package/dist/src/gen/video/coordinator/user_v1/user.d.ts +112 -0
  49. package/dist/src/gen/video/coordinator/utils_v1/utils.d.ts +47 -0
  50. package/dist/src/gen/video/sfu/event/events.d.ts +736 -0
  51. package/dist/src/gen/video/sfu/models/models.d.ts +460 -0
  52. package/dist/src/gen/video/sfu/signal_rpc/signal.client.d.ts +89 -0
  53. package/dist/src/gen/video/sfu/signal_rpc/signal.d.ts +320 -0
  54. package/dist/src/helpers/browsers.d.ts +8 -0
  55. package/dist/src/helpers/sound-detector.d.ts +34 -0
  56. package/dist/src/rpc/createClient.d.ts +10 -0
  57. package/dist/src/rpc/index.d.ts +2 -0
  58. package/dist/src/rpc/latency.d.ts +9 -0
  59. package/dist/src/rtc/Call.d.ts +180 -0
  60. package/dist/src/rtc/CallMetadata.d.ts +9 -0
  61. package/dist/src/rtc/Dispatcher.d.ts +9 -0
  62. package/dist/src/rtc/IceTrickleBuffer.d.ts +11 -0
  63. package/dist/src/rtc/callEventHandlers.d.ts +5 -0
  64. package/dist/src/rtc/codecs.d.ts +2 -0
  65. package/dist/src/rtc/helpers/iceCandidate.d.ts +2 -0
  66. package/dist/src/rtc/helpers/tracks.d.ts +3 -0
  67. package/dist/src/rtc/publisher.d.ts +53 -0
  68. package/dist/src/rtc/signal.d.ts +5 -0
  69. package/dist/src/rtc/subscriber.d.ts +7 -0
  70. package/dist/src/rtc/types.d.ts +84 -0
  71. package/dist/src/rtc/videoLayers.d.ts +17 -0
  72. package/dist/src/stats/coordinator-stats-reporter.d.ts +10 -0
  73. package/dist/src/stats/state-store-stats-reporter.d.ts +57 -0
  74. package/dist/src/stats/types.d.ts +42 -0
  75. package/dist/src/store/index.d.ts +2 -0
  76. package/dist/src/store/rxUtils.d.ts +18 -0
  77. package/dist/src/store/stateStore.d.ts +182 -0
  78. package/generate-openapi.sh +32 -0
  79. package/index.ts +30 -0
  80. package/openapitools.json +7 -0
  81. package/package.json +54 -0
  82. package/rollup.config.mjs +48 -0
  83. package/src/Batcher.ts +43 -0
  84. package/src/CallDropScheduler.ts +192 -0
  85. package/src/StreamSfuClient.ts +185 -0
  86. package/src/StreamVideoClient.ts +487 -0
  87. package/src/__tests__/StreamVideoClient.test.ts +83 -0
  88. package/src/config/defaultConfigs.ts +15 -0
  89. package/src/config/types.ts +30 -0
  90. package/src/coordinator/StreamCoordinatorClient.ts +111 -0
  91. package/src/coordinator/connection/base64.ts +80 -0
  92. package/src/coordinator/connection/client.ts +815 -0
  93. package/src/coordinator/connection/connection.ts +750 -0
  94. package/src/coordinator/connection/connection_fallback.ts +239 -0
  95. package/src/coordinator/connection/errors.ts +70 -0
  96. package/src/coordinator/connection/events.ts +10 -0
  97. package/src/coordinator/connection/insights.ts +88 -0
  98. package/src/coordinator/connection/signing.ts +104 -0
  99. package/src/coordinator/connection/token_manager.ts +160 -0
  100. package/src/coordinator/connection/types.ts +120 -0
  101. package/src/coordinator/connection/utils.ts +148 -0
  102. package/src/devices.ts +266 -0
  103. package/src/events/call.ts +166 -0
  104. package/src/events/internal.ts +47 -0
  105. package/src/events/participant.ts +97 -0
  106. package/src/events/speaker.ts +62 -0
  107. package/src/gen/coordinator/index.ts +1653 -0
  108. package/src/gen/google/protobuf/descriptor.ts +3466 -0
  109. package/src/gen/google/protobuf/duration.ts +232 -0
  110. package/src/gen/google/protobuf/struct.ts +481 -0
  111. package/src/gen/google/protobuf/timestamp.ts +291 -0
  112. package/src/gen/video/coordinator/broadcast_v1/broadcast.ts +154 -0
  113. package/src/gen/video/coordinator/call_v1/call.ts +651 -0
  114. package/src/gen/video/coordinator/client_v1_rpc/client_rpc.client.ts +463 -0
  115. package/src/gen/video/coordinator/client_v1_rpc/client_rpc.ts +3819 -0
  116. package/src/gen/video/coordinator/client_v1_rpc/envelopes.ts +424 -0
  117. package/src/gen/video/coordinator/client_v1_rpc/websocket.ts +719 -0
  118. package/src/gen/video/coordinator/edge_v1/edge.ts +532 -0
  119. package/src/gen/video/coordinator/event_v1/event.ts +1171 -0
  120. package/src/gen/video/coordinator/geofence_v1/geofence.ts +128 -0
  121. package/src/gen/video/coordinator/member_v1/member.ts +138 -0
  122. package/src/gen/video/coordinator/participant_v1/participant.ts +261 -0
  123. package/src/gen/video/coordinator/push_v1/push.ts +651 -0
  124. package/src/gen/video/coordinator/stat_v1/stat.ts +656 -0
  125. package/src/gen/video/coordinator/user_v1/user.ts +277 -0
  126. package/src/gen/video/coordinator/utils_v1/utils.ts +98 -0
  127. package/src/gen/video/sfu/event/events.ts +1962 -0
  128. package/src/gen/video/sfu/models/models.ts +1062 -0
  129. package/src/gen/video/sfu/signal_rpc/signal.client.ts +108 -0
  130. package/src/gen/video/sfu/signal_rpc/signal.ts +906 -0
  131. package/src/helpers/browsers.ts +13 -0
  132. package/src/helpers/sound-detector.ts +85 -0
  133. package/src/rpc/createClient.ts +50 -0
  134. package/src/rpc/index.ts +2 -0
  135. package/src/rpc/latency.ts +43 -0
  136. package/src/rtc/Call.ts +585 -0
  137. package/src/rtc/CallMetadata.ts +24 -0
  138. package/src/rtc/Dispatcher.ts +46 -0
  139. package/src/rtc/IceTrickleBuffer.ts +21 -0
  140. package/src/rtc/callEventHandlers.ts +37 -0
  141. package/src/rtc/codecs.ts +61 -0
  142. package/src/rtc/helpers/iceCandidate.ts +16 -0
  143. package/src/rtc/helpers/tracks.ts +18 -0
  144. package/src/rtc/publisher.ts +305 -0
  145. package/src/rtc/signal.ts +34 -0
  146. package/src/rtc/subscriber.ts +85 -0
  147. package/src/rtc/types.ts +105 -0
  148. package/src/rtc/videoLayers.ts +103 -0
  149. package/src/stats/coordinator-stats-reporter.ts +167 -0
  150. package/src/stats/state-store-stats-reporter.ts +364 -0
  151. package/src/stats/types.ts +46 -0
  152. package/src/store/index.ts +2 -0
  153. package/src/store/rxUtils.ts +42 -0
  154. package/src/store/stateStore.ts +341 -0
  155. package/tsconfig.json +25 -0
  156. package/typedoc.json +11 -0
  157. package/vite.config.ts +11 -0
@@ -0,0 +1,411 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ import { CallDetails } from "../call_v1/call";
8
+ import { Call } from "../call_v1/call";
9
+ /**
10
+ * @generated from protobuf message stream.video.coordinator.event_v1.RecordingStarted
11
+ */
12
+ export interface RecordingStarted {
13
+ /**
14
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
15
+ */
16
+ call?: Call;
17
+ /**
18
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
19
+ */
20
+ callDetails?: CallDetails;
21
+ }
22
+ /**
23
+ * @generated from protobuf message stream.video.coordinator.event_v1.RecordingStopped
24
+ */
25
+ export interface RecordingStopped {
26
+ /**
27
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
28
+ */
29
+ call?: Call;
30
+ /**
31
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
32
+ */
33
+ callDetails?: CallDetails;
34
+ }
35
+ /**
36
+ * @generated from protobuf message stream.video.coordinator.event_v1.UserUpdated
37
+ */
38
+ export interface UserUpdated {
39
+ /**
40
+ * @generated from protobuf field: string user_id = 1;
41
+ */
42
+ userId: string;
43
+ }
44
+ /**
45
+ * @generated from protobuf message stream.video.coordinator.event_v1.BroadcastStarted
46
+ */
47
+ export interface BroadcastStarted {
48
+ /**
49
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
50
+ */
51
+ call?: Call;
52
+ /**
53
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
54
+ */
55
+ callDetails?: CallDetails;
56
+ }
57
+ /**
58
+ * @generated from protobuf message stream.video.coordinator.event_v1.BroadcastEnded
59
+ */
60
+ export interface BroadcastEnded {
61
+ /**
62
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
63
+ */
64
+ call?: Call;
65
+ /**
66
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
67
+ */
68
+ callDetails?: CallDetails;
69
+ }
70
+ /**
71
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallMembersCreated
72
+ */
73
+ export interface CallMembersCreated {
74
+ /**
75
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
76
+ */
77
+ call?: Call;
78
+ /**
79
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
80
+ */
81
+ callDetails?: CallDetails;
82
+ /**
83
+ * @generated from protobuf field: bool ringing = 3;
84
+ */
85
+ ringing: boolean;
86
+ }
87
+ /**
88
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallMembersUpdated
89
+ */
90
+ export interface CallMembersUpdated {
91
+ /**
92
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
93
+ */
94
+ call?: Call;
95
+ /**
96
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
97
+ */
98
+ callDetails?: CallDetails;
99
+ }
100
+ /**
101
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallMembersDeleted
102
+ */
103
+ export interface CallMembersDeleted {
104
+ /**
105
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
106
+ */
107
+ call?: Call;
108
+ /**
109
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
110
+ */
111
+ callDetails?: CallDetails;
112
+ }
113
+ /**
114
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallCreated
115
+ */
116
+ export interface CallCreated {
117
+ /**
118
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
119
+ */
120
+ call?: Call;
121
+ /**
122
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
123
+ */
124
+ callDetails?: CallDetails;
125
+ /**
126
+ * @generated from protobuf field: bool ringing = 3;
127
+ */
128
+ ringing: boolean;
129
+ }
130
+ /**
131
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallUpdated
132
+ */
133
+ export interface CallUpdated {
134
+ /**
135
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
136
+ */
137
+ call?: Call;
138
+ /**
139
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
140
+ */
141
+ callDetails?: CallDetails;
142
+ }
143
+ /**
144
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallEnded
145
+ */
146
+ export interface CallEnded {
147
+ /**
148
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
149
+ */
150
+ call?: Call;
151
+ /**
152
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
153
+ */
154
+ callDetails?: CallDetails;
155
+ }
156
+ /**
157
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallDeleted
158
+ */
159
+ export interface CallDeleted {
160
+ /**
161
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
162
+ */
163
+ call?: Call;
164
+ /**
165
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
166
+ */
167
+ callDetails?: CallDetails;
168
+ }
169
+ /**
170
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallAccepted
171
+ */
172
+ export interface CallAccepted {
173
+ /**
174
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
175
+ */
176
+ call?: Call;
177
+ /**
178
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
179
+ */
180
+ callDetails?: CallDetails;
181
+ /**
182
+ * @generated from protobuf field: string sender_user_id = 3;
183
+ */
184
+ senderUserId: string;
185
+ }
186
+ /**
187
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallRejected
188
+ */
189
+ export interface CallRejected {
190
+ /**
191
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
192
+ */
193
+ call?: Call;
194
+ /**
195
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
196
+ */
197
+ callDetails?: CallDetails;
198
+ /**
199
+ * @generated from protobuf field: string sender_user_id = 3;
200
+ */
201
+ senderUserId: string;
202
+ }
203
+ /**
204
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallCancelled
205
+ */
206
+ export interface CallCancelled {
207
+ /**
208
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
209
+ */
210
+ call?: Call;
211
+ /**
212
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
213
+ */
214
+ callDetails?: CallDetails;
215
+ /**
216
+ * @generated from protobuf field: string sender_user_id = 3;
217
+ */
218
+ senderUserId: string;
219
+ }
220
+ /**
221
+ * A custom event type
222
+ *
223
+ * @generated from protobuf message stream.video.coordinator.event_v1.CallCustom
224
+ */
225
+ export interface CallCustom {
226
+ /**
227
+ * @generated from protobuf field: stream.video.coordinator.call_v1.Call call = 1;
228
+ */
229
+ call?: Call;
230
+ /**
231
+ * @generated from protobuf field: stream.video.coordinator.call_v1.CallDetails call_details = 2;
232
+ */
233
+ callDetails?: CallDetails;
234
+ /**
235
+ * @generated from protobuf field: string sender_user_id = 3;
236
+ */
237
+ senderUserId: string;
238
+ /**
239
+ * The type of the event
240
+ *
241
+ * @generated from protobuf field: string type = 4;
242
+ */
243
+ type: string;
244
+ /**
245
+ * The data in the event
246
+ *
247
+ * @generated from protobuf field: bytes data_json = 5;
248
+ */
249
+ dataJson: Uint8Array;
250
+ }
251
+ declare class RecordingStarted$Type extends MessageType<RecordingStarted> {
252
+ constructor();
253
+ create(value?: PartialMessage<RecordingStarted>): RecordingStarted;
254
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RecordingStarted): RecordingStarted;
255
+ internalBinaryWrite(message: RecordingStarted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
256
+ }
257
+ /**
258
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.RecordingStarted
259
+ */
260
+ export declare const RecordingStarted: RecordingStarted$Type;
261
+ declare class RecordingStopped$Type extends MessageType<RecordingStopped> {
262
+ constructor();
263
+ create(value?: PartialMessage<RecordingStopped>): RecordingStopped;
264
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RecordingStopped): RecordingStopped;
265
+ internalBinaryWrite(message: RecordingStopped, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
266
+ }
267
+ /**
268
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.RecordingStopped
269
+ */
270
+ export declare const RecordingStopped: RecordingStopped$Type;
271
+ declare class UserUpdated$Type extends MessageType<UserUpdated> {
272
+ constructor();
273
+ create(value?: PartialMessage<UserUpdated>): UserUpdated;
274
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserUpdated): UserUpdated;
275
+ internalBinaryWrite(message: UserUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
276
+ }
277
+ /**
278
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.UserUpdated
279
+ */
280
+ export declare const UserUpdated: UserUpdated$Type;
281
+ declare class BroadcastStarted$Type extends MessageType<BroadcastStarted> {
282
+ constructor();
283
+ create(value?: PartialMessage<BroadcastStarted>): BroadcastStarted;
284
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastStarted): BroadcastStarted;
285
+ internalBinaryWrite(message: BroadcastStarted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
286
+ }
287
+ /**
288
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.BroadcastStarted
289
+ */
290
+ export declare const BroadcastStarted: BroadcastStarted$Type;
291
+ declare class BroadcastEnded$Type extends MessageType<BroadcastEnded> {
292
+ constructor();
293
+ create(value?: PartialMessage<BroadcastEnded>): BroadcastEnded;
294
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastEnded): BroadcastEnded;
295
+ internalBinaryWrite(message: BroadcastEnded, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
296
+ }
297
+ /**
298
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.BroadcastEnded
299
+ */
300
+ export declare const BroadcastEnded: BroadcastEnded$Type;
301
+ declare class CallMembersCreated$Type extends MessageType<CallMembersCreated> {
302
+ constructor();
303
+ create(value?: PartialMessage<CallMembersCreated>): CallMembersCreated;
304
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallMembersCreated): CallMembersCreated;
305
+ internalBinaryWrite(message: CallMembersCreated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
306
+ }
307
+ /**
308
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallMembersCreated
309
+ */
310
+ export declare const CallMembersCreated: CallMembersCreated$Type;
311
+ declare class CallMembersUpdated$Type extends MessageType<CallMembersUpdated> {
312
+ constructor();
313
+ create(value?: PartialMessage<CallMembersUpdated>): CallMembersUpdated;
314
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallMembersUpdated): CallMembersUpdated;
315
+ internalBinaryWrite(message: CallMembersUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
316
+ }
317
+ /**
318
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallMembersUpdated
319
+ */
320
+ export declare const CallMembersUpdated: CallMembersUpdated$Type;
321
+ declare class CallMembersDeleted$Type extends MessageType<CallMembersDeleted> {
322
+ constructor();
323
+ create(value?: PartialMessage<CallMembersDeleted>): CallMembersDeleted;
324
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallMembersDeleted): CallMembersDeleted;
325
+ internalBinaryWrite(message: CallMembersDeleted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
326
+ }
327
+ /**
328
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallMembersDeleted
329
+ */
330
+ export declare const CallMembersDeleted: CallMembersDeleted$Type;
331
+ declare class CallCreated$Type extends MessageType<CallCreated> {
332
+ constructor();
333
+ create(value?: PartialMessage<CallCreated>): CallCreated;
334
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallCreated): CallCreated;
335
+ internalBinaryWrite(message: CallCreated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
336
+ }
337
+ /**
338
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallCreated
339
+ */
340
+ export declare const CallCreated: CallCreated$Type;
341
+ declare class CallUpdated$Type extends MessageType<CallUpdated> {
342
+ constructor();
343
+ create(value?: PartialMessage<CallUpdated>): CallUpdated;
344
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallUpdated): CallUpdated;
345
+ internalBinaryWrite(message: CallUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
346
+ }
347
+ /**
348
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallUpdated
349
+ */
350
+ export declare const CallUpdated: CallUpdated$Type;
351
+ declare class CallEnded$Type extends MessageType<CallEnded> {
352
+ constructor();
353
+ create(value?: PartialMessage<CallEnded>): CallEnded;
354
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallEnded): CallEnded;
355
+ internalBinaryWrite(message: CallEnded, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
356
+ }
357
+ /**
358
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallEnded
359
+ */
360
+ export declare const CallEnded: CallEnded$Type;
361
+ declare class CallDeleted$Type extends MessageType<CallDeleted> {
362
+ constructor();
363
+ create(value?: PartialMessage<CallDeleted>): CallDeleted;
364
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallDeleted): CallDeleted;
365
+ internalBinaryWrite(message: CallDeleted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
366
+ }
367
+ /**
368
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallDeleted
369
+ */
370
+ export declare const CallDeleted: CallDeleted$Type;
371
+ declare class CallAccepted$Type extends MessageType<CallAccepted> {
372
+ constructor();
373
+ create(value?: PartialMessage<CallAccepted>): CallAccepted;
374
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallAccepted): CallAccepted;
375
+ internalBinaryWrite(message: CallAccepted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
376
+ }
377
+ /**
378
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallAccepted
379
+ */
380
+ export declare const CallAccepted: CallAccepted$Type;
381
+ declare class CallRejected$Type extends MessageType<CallRejected> {
382
+ constructor();
383
+ create(value?: PartialMessage<CallRejected>): CallRejected;
384
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallRejected): CallRejected;
385
+ internalBinaryWrite(message: CallRejected, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
386
+ }
387
+ /**
388
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallRejected
389
+ */
390
+ export declare const CallRejected: CallRejected$Type;
391
+ declare class CallCancelled$Type extends MessageType<CallCancelled> {
392
+ constructor();
393
+ create(value?: PartialMessage<CallCancelled>): CallCancelled;
394
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallCancelled): CallCancelled;
395
+ internalBinaryWrite(message: CallCancelled, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
396
+ }
397
+ /**
398
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallCancelled
399
+ */
400
+ export declare const CallCancelled: CallCancelled$Type;
401
+ declare class CallCustom$Type extends MessageType<CallCustom> {
402
+ constructor();
403
+ create(value?: PartialMessage<CallCustom>): CallCustom;
404
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CallCustom): CallCustom;
405
+ internalBinaryWrite(message: CallCustom, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
406
+ }
407
+ /**
408
+ * @generated MessageType for protobuf message stream.video.coordinator.event_v1.CallCustom
409
+ */
410
+ export declare const CallCustom: CallCustom$Type;
411
+ export {};
@@ -0,0 +1,63 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ /**
8
+ * @generated from protobuf message stream.video.coordinator.geofence_v1.Geofence
9
+ */
10
+ export interface Geofence {
11
+ /**
12
+ * Unique name of the geofence.
13
+ *
14
+ * @generated from protobuf field: string name = 1;
15
+ */
16
+ name: string;
17
+ /**
18
+ * Type of the geofence, to included or to exclude the countries.
19
+ *
20
+ * @generated from protobuf field: stream.video.coordinator.geofence_v1.GeofenceType type = 2;
21
+ */
22
+ type: GeofenceType;
23
+ /**
24
+ * Alpha-2 country codes to be included or excluded.
25
+ *
26
+ * @generated from protobuf field: repeated string country_codes = 3;
27
+ */
28
+ countryCodes: string[];
29
+ /**
30
+ * Description of the geofence.
31
+ *
32
+ * @generated from protobuf field: string description = 4;
33
+ */
34
+ description: string;
35
+ }
36
+ /**
37
+ * @generated from protobuf enum stream.video.coordinator.geofence_v1.GeofenceType
38
+ */
39
+ export declare enum GeofenceType {
40
+ /**
41
+ * @generated from protobuf enum value: GEOFENCE_TYPE_UNSPECIFIED = 0;
42
+ */
43
+ UNSPECIFIED = 0,
44
+ /**
45
+ * @generated from protobuf enum value: GEOFENCE_TYPE_INCLUSION = 1;
46
+ */
47
+ INCLUSION = 1,
48
+ /**
49
+ * @generated from protobuf enum value: GEOFENCE_TYPE_EXCLUSION = 2;
50
+ */
51
+ EXCLUSION = 2
52
+ }
53
+ declare class Geofence$Type extends MessageType<Geofence> {
54
+ constructor();
55
+ create(value?: PartialMessage<Geofence>): Geofence;
56
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Geofence): Geofence;
57
+ internalBinaryWrite(message: Geofence, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
58
+ }
59
+ /**
60
+ * @generated MessageType for protobuf message stream.video.coordinator.geofence_v1.Geofence
61
+ */
62
+ export declare const Geofence: Geofence$Type;
63
+ export {};
@@ -0,0 +1,59 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ import { Timestamp } from "../../../google/protobuf/timestamp";
8
+ /**
9
+ * @generated from protobuf message stream.video.coordinator.member_v1.Member
10
+ */
11
+ export interface Member {
12
+ /**
13
+ * The CID of the Call this member belongs to
14
+ *
15
+ * @generated from protobuf field: string call_cid = 1;
16
+ */
17
+ callCid: string;
18
+ /**
19
+ * The user ID of the member
20
+ *
21
+ * @generated from protobuf field: string user_id = 2;
22
+ */
23
+ userId: string;
24
+ /**
25
+ * The role of the member in this call
26
+ *
27
+ * @generated from protobuf field: string role = 3;
28
+ */
29
+ role: string;
30
+ /**
31
+ * Custom data for the member
32
+ *
33
+ * @generated from protobuf field: bytes custom_json = 4;
34
+ */
35
+ customJson: Uint8Array;
36
+ /**
37
+ * Created at timestamp
38
+ *
39
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 5;
40
+ */
41
+ createdAt?: Timestamp;
42
+ /**
43
+ * Updated at timestamp
44
+ *
45
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 6;
46
+ */
47
+ updatedAt?: Timestamp;
48
+ }
49
+ declare class Member$Type extends MessageType<Member> {
50
+ constructor();
51
+ create(value?: PartialMessage<Member>): Member;
52
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Member): Member;
53
+ internalBinaryWrite(message: Member, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
54
+ }
55
+ /**
56
+ * @generated MessageType for protobuf message stream.video.coordinator.member_v1.Member
57
+ */
58
+ export declare const Member: Member$Type;
59
+ export {};
@@ -0,0 +1,103 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ import { Timestamp } from "../../../google/protobuf/timestamp";
8
+ import { User } from "../user_v1/user";
9
+ /**
10
+ * those who are online in the call
11
+ *
12
+ * @generated from protobuf message stream.video.coordinator.participant_v1.Participant
13
+ */
14
+ export interface Participant {
15
+ /**
16
+ * @generated from protobuf field: stream.video.coordinator.user_v1.User user = 1;
17
+ */
18
+ user?: User;
19
+ /**
20
+ * @generated from protobuf field: string role = 2;
21
+ */
22
+ role: string;
23
+ /**
24
+ * @generated from protobuf field: bool online = 3;
25
+ */
26
+ online: boolean;
27
+ /**
28
+ * @generated from protobuf field: bytes custom_json = 4;
29
+ */
30
+ customJson: Uint8Array;
31
+ /**
32
+ * @generated from protobuf field: bool video = 5;
33
+ */
34
+ video: boolean;
35
+ /**
36
+ * @generated from protobuf field: bool audio = 6;
37
+ */
38
+ audio: boolean;
39
+ /**
40
+ * Call creation date.
41
+ *
42
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 7;
43
+ */
44
+ createdAt?: Timestamp;
45
+ /**
46
+ * Call last update date.
47
+ *
48
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 8;
49
+ */
50
+ updatedAt?: Timestamp;
51
+ }
52
+ /**
53
+ * @generated from protobuf message stream.video.coordinator.participant_v1.ParticipantRequest
54
+ */
55
+ export interface ParticipantRequest {
56
+ /**
57
+ * @generated from protobuf field: string user_id = 1;
58
+ */
59
+ userId: string;
60
+ /**
61
+ * @generated from protobuf field: string role = 2;
62
+ */
63
+ role: string;
64
+ /**
65
+ * Call custom data
66
+ *
67
+ * @generated from protobuf field: bytes custom_json = 3;
68
+ */
69
+ customJson: Uint8Array;
70
+ /**
71
+ * Call creation date.
72
+ *
73
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 4;
74
+ */
75
+ createdAt?: Timestamp;
76
+ /**
77
+ * Call last update date.
78
+ *
79
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 5;
80
+ */
81
+ updatedAt?: Timestamp;
82
+ }
83
+ declare class Participant$Type extends MessageType<Participant> {
84
+ constructor();
85
+ create(value?: PartialMessage<Participant>): Participant;
86
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Participant): Participant;
87
+ internalBinaryWrite(message: Participant, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
88
+ }
89
+ /**
90
+ * @generated MessageType for protobuf message stream.video.coordinator.participant_v1.Participant
91
+ */
92
+ export declare const Participant: Participant$Type;
93
+ declare class ParticipantRequest$Type extends MessageType<ParticipantRequest> {
94
+ constructor();
95
+ create(value?: PartialMessage<ParticipantRequest>): ParticipantRequest;
96
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParticipantRequest): ParticipantRequest;
97
+ internalBinaryWrite(message: ParticipantRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
98
+ }
99
+ /**
100
+ * @generated MessageType for protobuf message stream.video.coordinator.participant_v1.ParticipantRequest
101
+ */
102
+ export declare const ParticipantRequest: ParticipantRequest$Type;
103
+ export {};