@honeybbq/teamspeak 1.0.0-beta.21 → 1.0.0-beta.23

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 (128) hide show
  1. package/README.md +2 -1
  2. package/dist/client/crypto/identity.d.ts +15 -4
  3. package/dist/client/crypto/identity.d.ts.map +1 -1
  4. package/dist/client/crypto/identity.js +19 -1
  5. package/dist/client/crypto/identity.js.map +1 -1
  6. package/dist/client/crypto/index.d.ts +1 -1
  7. package/dist/client/crypto/index.d.ts.map +1 -1
  8. package/dist/client/crypto/index.js +1 -0
  9. package/dist/client/crypto/index.js.map +1 -1
  10. package/dist/client/discovery/resolver.d.ts +35 -2
  11. package/dist/client/discovery/resolver.d.ts.map +1 -1
  12. package/dist/client/discovery/resolver.js +129 -45
  13. package/dist/client/discovery/resolver.js.map +1 -1
  14. package/dist/client/handshake/license.js +1 -0
  15. package/dist/client/handshake/license.js.map +1 -1
  16. package/dist/client/index.d.ts +8 -5
  17. package/dist/client/index.d.ts.map +1 -1
  18. package/dist/client/index.js +5 -2
  19. package/dist/client/index.js.map +1 -1
  20. package/dist/client/trace.d.ts +4 -1
  21. package/dist/client/trace.d.ts.map +1 -1
  22. package/dist/client/transfer.d.ts +10 -1
  23. package/dist/client/transfer.d.ts.map +1 -1
  24. package/dist/client/transfer.js +10 -0
  25. package/dist/client/transfer.js.map +1 -1
  26. package/dist/client/transport/handler.d.ts.map +1 -1
  27. package/dist/client/transport/handler.js +3 -3
  28. package/dist/client/transport/handler.js.map +1 -1
  29. package/dist/client/transport/packet.d.ts +5 -0
  30. package/dist/client/transport/packet.d.ts.map +1 -1
  31. package/dist/client/transport/packet.js +9 -1
  32. package/dist/client/transport/packet.js.map +1 -1
  33. package/dist/client/types.d.ts +28 -1
  34. package/dist/client/types.d.ts.map +1 -1
  35. package/dist/client/types.js +21 -0
  36. package/dist/client/types.js.map +1 -1
  37. package/dist/client/view.d.ts +24 -8
  38. package/dist/client/view.d.ts.map +1 -1
  39. package/dist/client/view.js +24 -1
  40. package/dist/client/view.js.map +1 -1
  41. package/dist/core/api/channels.d.ts +3 -3
  42. package/dist/core/api/channels.d.ts.map +1 -1
  43. package/dist/core/api/clients.d.ts +13 -1
  44. package/dist/core/api/clients.d.ts.map +1 -1
  45. package/dist/core/api/clients.js +12 -0
  46. package/dist/core/api/clients.js.map +1 -1
  47. package/dist/core/api/command.d.ts +11 -3
  48. package/dist/core/api/command.d.ts.map +1 -1
  49. package/dist/core/api/command.js +8 -2
  50. package/dist/core/api/command.js.map +1 -1
  51. package/dist/core/api/groups.d.ts +2 -1
  52. package/dist/core/api/groups.d.ts.map +1 -1
  53. package/dist/core/api/groups.js.map +1 -1
  54. package/dist/core/api/instance.d.ts +5 -3
  55. package/dist/core/api/instance.d.ts.map +1 -1
  56. package/dist/core/api/instance.js.map +1 -1
  57. package/dist/core/api/server.d.ts +40 -10
  58. package/dist/core/api/server.d.ts.map +1 -1
  59. package/dist/core/api/server.js +2 -2
  60. package/dist/core/api/server.js.map +1 -1
  61. package/dist/core/command-name.d.ts +6 -0
  62. package/dist/core/command-name.d.ts.map +1 -1
  63. package/dist/core/command-name.js +6 -0
  64. package/dist/core/command-name.js.map +1 -1
  65. package/dist/core/enums.d.ts +94 -4
  66. package/dist/core/enums.d.ts.map +1 -1
  67. package/dist/core/enums.js +91 -4
  68. package/dist/core/enums.js.map +1 -1
  69. package/dist/core/index.d.ts +3 -3
  70. package/dist/core/index.d.ts.map +1 -1
  71. package/dist/core/index.js +2 -2
  72. package/dist/core/index.js.map +1 -1
  73. package/dist/core/property-name.d.ts +3 -3
  74. package/dist/core/property-name.d.ts.map +1 -1
  75. package/dist/core/property-name.js +3 -3
  76. package/dist/core/property-name.js.map +1 -1
  77. package/dist/core/types.d.ts +14 -4
  78. package/dist/core/types.d.ts.map +1 -1
  79. package/dist/core/types.js +16 -4
  80. package/dist/core/types.js.map +1 -1
  81. package/dist/query/client.d.ts +55 -1
  82. package/dist/query/client.d.ts.map +1 -1
  83. package/dist/query/client.js +53 -0
  84. package/dist/query/client.js.map +1 -1
  85. package/dist/query/index.d.ts +2 -2
  86. package/dist/query/index.d.ts.map +1 -1
  87. package/dist/query/index.js +1 -1
  88. package/dist/query/index.js.map +1 -1
  89. package/dist/query/options.d.ts +21 -1
  90. package/dist/query/options.d.ts.map +1 -1
  91. package/dist/query/options.js +34 -5
  92. package/dist/query/options.js.map +1 -1
  93. package/dist/stream/index.d.ts +2 -1
  94. package/dist/stream/index.d.ts.map +1 -1
  95. package/dist/stream/index.js +1 -0
  96. package/dist/stream/index.js.map +1 -1
  97. package/dist/stream/types.d.ts +243 -25
  98. package/dist/stream/types.d.ts.map +1 -1
  99. package/dist/stream/types.js +235 -1
  100. package/dist/stream/types.js.map +1 -1
  101. package/package.json +12 -10
  102. package/src/client/crypto/identity.ts +16 -5
  103. package/src/client/crypto/index.ts +1 -1
  104. package/src/client/discovery/resolver.ts +161 -53
  105. package/src/client/handshake/license.ts +1 -0
  106. package/src/client/index.ts +13 -5
  107. package/src/client/trace.ts +4 -1
  108. package/src/client/transfer.ts +11 -1
  109. package/src/client/transport/handler.ts +3 -2
  110. package/src/client/transport/packet.ts +10 -1
  111. package/src/client/types.ts +30 -1
  112. package/src/client/view.ts +24 -9
  113. package/src/core/api/channels.ts +3 -3
  114. package/src/core/api/clients.ts +14 -1
  115. package/src/core/api/command.ts +16 -5
  116. package/src/core/api/groups.ts +2 -1
  117. package/src/core/api/instance.ts +5 -3
  118. package/src/core/api/server.ts +39 -10
  119. package/src/core/command-name.ts +6 -0
  120. package/src/core/enums.ts +111 -4
  121. package/src/core/index.ts +12 -2
  122. package/src/core/property-name.ts +3 -3
  123. package/src/core/types.ts +19 -8
  124. package/src/query/client.ts +68 -6
  125. package/src/query/index.ts +1 -2
  126. package/src/query/options.ts +26 -13
  127. package/src/stream/index.ts +14 -8
  128. package/src/stream/types.ts +321 -27
@@ -33,23 +33,67 @@ export interface StreamsClient extends CommandExecutor {
33
33
  /** The connection ending. */
34
34
  on(event: "disconnected", listener: (event: DisconnectedEvent) => void): Unsubscribe;
35
35
  }
36
+ /** The values of the table below, before freezing. */
37
+ declare const streamSourceValues: {
38
+ /** `0` on the wire: no source named. */
39
+ readonly None: "none";
40
+ /** `1` on the wire: a camera. */
41
+ readonly Camera: "camera";
42
+ /** `2` on the wire: a screen. */
43
+ readonly Screen: "screen";
44
+ /** `3` on the wire: a window. */
45
+ readonly Window: "window";
46
+ /** `4` on the wire. */
47
+ readonly Session: "session";
48
+ };
36
49
  /**
37
50
  * What a stream shows. The server stores any number, so a stream from a client
38
51
  * that sends another value reports it as the number.
39
52
  */
40
- export type StreamSource = "none" | "camera" | "screen" | "window" | "session";
53
+ export declare const StreamSource: typeof streamSourceValues;
54
+ /**
55
+ * One of {@link StreamSource}. May gain members in a minor release: a
56
+ * `switch` over it needs a default case.
57
+ */
58
+ export type StreamSource = (typeof StreamSource)[keyof typeof StreamSource];
59
+ /** The values of the table below, before freezing. */
60
+ declare const streamAccessibilityValues: {
61
+ /** `0` on the wire. */
62
+ readonly None: "none";
63
+ /** `1` on the wire: anyone. What `publish` sends unless told otherwise. */
64
+ readonly Public: "public";
65
+ /** `2` on the wire: the publisher's contacts. */
66
+ readonly Contacts: "contacts";
67
+ /** `3` on the wire. */
68
+ readonly Private: "private";
69
+ };
41
70
  /**
42
71
  * Who a stream says may watch it. Only the publisher enforces it: the server
43
72
  * relays every request. A value outside the four is reported as the number.
44
73
  */
45
- export type StreamAccessibility = "none" | "public" | "contacts" | "private";
74
+ export declare const StreamAccessibility: typeof streamAccessibilityValues;
75
+ /**
76
+ * One of {@link StreamAccessibility}. May gain members in a minor release: a
77
+ * `switch` over it needs a default case.
78
+ */
79
+ export type StreamAccessibility = (typeof StreamAccessibility)[keyof typeof StreamAccessibility];
80
+ /** The values of the table below, before freezing. */
81
+ declare const streamTransportValues: {
82
+ /** From the publisher to each viewer directly. */
83
+ readonly P2P: "p2p";
84
+ };
46
85
  /**
47
86
  * How a stream's media travels: `"p2p"`, from the publisher to each viewer
48
87
  * directly, is the one mode this SDK publishes and watches. A server may
49
88
  * announce a stream in another mode; it is reported as the number, and
50
89
  * `watch` refuses it.
51
90
  */
52
- export type StreamTransport = "p2p";
91
+ export declare const StreamTransport: typeof streamTransportValues;
92
+ /**
93
+ * One of {@link StreamTransport}. May gain members in a minor release: a
94
+ * `switch` over it needs a default case.
95
+ */
96
+ export type StreamTransport = (typeof StreamTransport)[keyof typeof StreamTransport];
53
97
  /**
54
98
  * A stream, as the server describes it.
55
99
  */
@@ -113,12 +157,28 @@ export interface RawSignal {
113
157
  /** The JSON text as it arrived. */
114
158
  readonly json: string;
115
159
  }
160
+ /** The values of the table below, before freezing. */
161
+ declare const peerCloseCauseValues: {
162
+ /** Its own `close()`. */
163
+ readonly Closed: "closed";
164
+ /** The other end leaving. */
165
+ readonly Left: "left";
166
+ /** The stream ending. */
167
+ readonly Stopped: "stopped";
168
+ /** The client's connection ending. */
169
+ readonly Disconnected: "disconnected";
170
+ /** `Streams.dispose()`. */
171
+ readonly Disposed: "disposed";
172
+ };
116
173
  /**
117
- * Why a peer closed: `"closed"` for its own `close()`, `"left"` for the other
118
- * end leaving, `"stopped"` for the stream ending, `"disconnected"` for the
119
- * client's connection ending and `"disposed"` for `Streams.dispose()`.
174
+ * Why a peer closed.
120
175
  */
121
- export type PeerCloseCause = "closed" | "left" | "stopped" | "disconnected" | "disposed";
176
+ export declare const PeerCloseCause: typeof peerCloseCauseValues;
177
+ /**
178
+ * One of {@link PeerCloseCause}. May gain members in a minor release: a
179
+ * `switch` over it needs a default case.
180
+ */
181
+ export type PeerCloseCause = (typeof PeerCloseCause)[keyof typeof PeerCloseCause];
122
182
  /**
123
183
  * A peer closing.
124
184
  */
@@ -145,6 +205,31 @@ export interface PeerEvents {
145
205
  /** The peer closing. */
146
206
  closed: PeerClosed;
147
207
  }
208
+ /** The values of the table below, before freezing. */
209
+ declare const peerEventNameValues: {
210
+ /** A renegotiation offer from the publisher: an SDP. */
211
+ readonly Offer: "offer";
212
+ /** The viewer's SDP answer. */
213
+ readonly Answer: "answer";
214
+ /** An ICE candidate from the other end. */
215
+ readonly Candidate: "candidate";
216
+ /** A signalling message that is none of the above. */
217
+ readonly Signal: "signal";
218
+ /** The peer closing. */
219
+ readonly Closed: "closed";
220
+ };
221
+ /**
222
+ * The names of the events `Peer.on()` takes, as constants.
223
+ * `on(PeerEventName.Offer, ...)` and `on("offer", ...)` are the same call,
224
+ * and both give the listener the same payload type.
225
+ */
226
+ export declare const PeerEventName: typeof peerEventNameValues;
227
+ /**
228
+ * One of {@link PeerEventName}, and so a key of {@link PeerEvents}.
229
+ * May gain members in a minor release: a `switch` over it needs a default
230
+ * case.
231
+ */
232
+ export type PeerEventName = (typeof PeerEventName)[keyof typeof PeerEventName];
148
233
  /**
149
234
  * One end of a stream's signalling with one other client. SDP and ICE are
150
235
  * opaque strings here: any WebRTC stack can be plugged in.
@@ -208,17 +293,46 @@ export interface ViewerIdentity {
208
293
  /** Its nickname, when the client is in view. */
209
294
  readonly nickname: string | undefined;
210
295
  }
296
+ /** The values of the table below, before freezing. */
297
+ declare const joinRequestStateValues: {
298
+ /** Not yet accepted or denied. */
299
+ readonly Pending: "pending";
300
+ /** Accepted. */
301
+ readonly Accepted: "accepted";
302
+ /** Denied. */
303
+ readonly Denied: "denied";
304
+ /** The answer did not reach the server. */
305
+ readonly Failed: "failed";
306
+ /** The viewer left first. */
307
+ readonly Withdrawn: "withdrawn";
308
+ /** The stream stopped. */
309
+ readonly Ended: "ended";
310
+ };
311
+ /**
312
+ * Where a join request stands.
313
+ */
314
+ export declare const JoinRequestState: typeof joinRequestStateValues;
315
+ /**
316
+ * One of {@link JoinRequestState}. May gain members in a minor release: a
317
+ * `switch` over it needs a default case.
318
+ */
319
+ export type JoinRequestState = (typeof JoinRequestState)[keyof typeof JoinRequestState];
320
+ /** The values of the table below, before freezing. */
321
+ declare const joinRequestCloseCauseValues: {
322
+ /** The viewer took it back or left view. */
323
+ readonly Withdrawn: "withdrawn";
324
+ /** The stream ended first. */
325
+ readonly Ended: "ended";
326
+ };
211
327
  /**
212
- * Where a join request stands: `"pending"` until it is accepted or denied,
213
- * `"failed"` when the answer did not reach the server, `"withdrawn"` when the
214
- * viewer left first and `"ended"` when the stream stopped.
328
+ * Why a request stopped waiting for an answer.
215
329
  */
216
- export type JoinRequestState = "pending" | "accepted" | "denied" | "failed" | "withdrawn" | "ended";
330
+ export declare const JoinRequestCloseCause: typeof joinRequestCloseCauseValues;
217
331
  /**
218
- * Why a request stopped waiting for an answer: `"withdrawn"` when the viewer
219
- * took it back or left view, `"ended"` when the stream ended first.
332
+ * One of {@link JoinRequestCloseCause}. May gain members in a minor release: a
333
+ * `switch` over it needs a default case.
220
334
  */
221
- export type JoinRequestCloseCause = "withdrawn" | "ended";
335
+ export type JoinRequestCloseCause = (typeof JoinRequestCloseCause)[keyof typeof JoinRequestCloseCause];
222
336
  /**
223
337
  * A pending join request closing without an answer.
224
338
  */
@@ -239,6 +353,26 @@ export interface JoinRequestEvents {
239
353
  */
240
354
  closed: JoinRequestClosed;
241
355
  }
356
+ /** The values of the table below, before freezing. */
357
+ declare const joinRequestEventNameValues: {
358
+ /**
359
+ * A request nobody had answered closing: the viewer withdrew it or left
360
+ * view, or the stream ended.
361
+ */
362
+ readonly Closed: "closed";
363
+ };
364
+ /**
365
+ * The names of the events `JoinRequest.on()` takes, as constants.
366
+ * `on(JoinRequestEventName.Closed, ...)` and `on("closed", ...)` are the same call,
367
+ * and both give the listener the same payload type.
368
+ */
369
+ export declare const JoinRequestEventName: typeof joinRequestEventNameValues;
370
+ /**
371
+ * One of {@link JoinRequestEventName}, and so a key of {@link JoinRequestEvents}.
372
+ * May gain members in a minor release: a `switch` over it needs a default
373
+ * case.
374
+ */
375
+ export type JoinRequestEventName = (typeof JoinRequestEventName)[keyof typeof JoinRequestEventName];
242
376
  /**
243
377
  * A client asking to watch a stream this client publishes. The server relays
244
378
  * every request, from any channel, and enforces neither `viewerLimit` nor
@@ -273,14 +407,31 @@ export interface JoinRequest {
273
407
  */
274
408
  deny(reason?: string): Promise<void>;
275
409
  }
410
+ /** The values of the table below, before freezing. */
411
+ declare const streamEndCauseValues: {
412
+ /** `stop()`. */
413
+ readonly Stopped: "stopped";
414
+ /** The server's `notifystreamstopped`. */
415
+ readonly Server: "server";
416
+ /**
417
+ * The server said its publisher no longer streams (`client_is_streaming`
418
+ * cleared) and no stop followed within two seconds.
419
+ */
420
+ readonly Gone: "gone";
421
+ /** The client's connection ending. */
422
+ readonly Disconnected: "disconnected";
423
+ /** `Streams.dispose()`. */
424
+ readonly Disposed: "disposed";
425
+ };
426
+ /**
427
+ * Why a published stream ended.
428
+ */
429
+ export declare const StreamEndCause: typeof streamEndCauseValues;
276
430
  /**
277
- * Why a published stream ended: `"stopped"` for `stop()`, `"server"` for the
278
- * server's `notifystreamstopped`, `"gone"` when the server said its publisher
279
- * no longer streams (`client_is_streaming` cleared) and no stop followed within
280
- * two seconds, and
281
- * `"disconnected"` and `"disposed"` as for a peer.
431
+ * One of {@link StreamEndCause}. May gain members in a minor release: a
432
+ * `switch` over it needs a default case.
282
433
  */
283
- export type StreamEndCause = "stopped" | "server" | "gone" | "disconnected" | "disposed";
434
+ export type StreamEndCause = (typeof StreamEndCause)[keyof typeof StreamEndCause];
284
435
  /**
285
436
  * A published stream ending.
286
437
  */
@@ -304,6 +455,25 @@ export interface PublishedStreamEvents {
304
455
  /** The stream ending. */
305
456
  ended: StreamEnded;
306
457
  }
458
+ /** The values of the table below, before freezing. */
459
+ declare const publishedStreamEventNameValues: {
460
+ /** A client asking to watch. */
461
+ readonly Request: "request";
462
+ /** The stream ending. */
463
+ readonly Ended: "ended";
464
+ };
465
+ /**
466
+ * The names of the events `PublishedStream.on()` takes, as constants.
467
+ * `on(PublishedStreamEventName.Request, ...)` and `on("request", ...)` are the same call,
468
+ * and both give the listener the same payload type.
469
+ */
470
+ export declare const PublishedStreamEventName: typeof publishedStreamEventNameValues;
471
+ /**
472
+ * One of {@link PublishedStreamEventName}, and so a key of {@link PublishedStreamEvents}.
473
+ * May gain members in a minor release: a `switch` over it needs a default
474
+ * case.
475
+ */
476
+ export type PublishedStreamEventName = (typeof PublishedStreamEventName)[keyof typeof PublishedStreamEventName];
307
477
  /**
308
478
  * A stream this client publishes.
309
479
  */
@@ -389,7 +559,7 @@ export interface StreamStoppedEvent {
389
559
  * `client_is_streaming` cleared or the publisher came into view not
390
560
  * streaming, without a stop reaching this client.
391
561
  */
392
- readonly cause: "server" | "stopped" | "gone";
562
+ readonly cause: typeof StreamEndCause.Server | typeof StreamEndCause.Stopped | typeof StreamEndCause.Gone;
393
563
  /** The stop reason the server reported; 0 unless the stopper gave one, and for `"gone"`. */
394
564
  readonly reason: number;
395
565
  }
@@ -403,11 +573,20 @@ export interface StreamViewerEvent {
403
573
  /** The viewer. */
404
574
  readonly clientId: ClientID;
405
575
  }
576
+ /** The values of the table below, before freezing. */
577
+ declare const streamWarningCodeValues: {
578
+ /** An SDP offer with no `m=audio` section. */
579
+ readonly OfferWithoutAudio: "offer-without-audio";
580
+ };
406
581
  /**
407
- * Why `Streams` warns: `"offer-without-audio"` for an SDP offer with no
408
- * `m=audio` section.
582
+ * Why `Streams` warns.
409
583
  */
410
- export type StreamWarningCode = "offer-without-audio";
584
+ export declare const StreamWarningCode: typeof streamWarningCodeValues;
585
+ /**
586
+ * One of {@link StreamWarningCode}. May gain members in a minor release: a
587
+ * `switch` over it needs a default case.
588
+ */
589
+ export type StreamWarningCode = (typeof StreamWarningCode)[keyof typeof StreamWarningCode];
411
590
  /**
412
591
  * Something the SDK noticed and did not stop: the offer or message goes out
413
592
  * unchanged.
@@ -426,7 +605,10 @@ export interface StreamWarning {
426
605
  * The events of `Streams`.
427
606
  */
428
607
  export interface StreamsEventMap {
429
- /** A stream becoming known: it started while this client could see it, or discovery found it. */
608
+ /**
609
+ * A stream becoming known: it started while this client could see it, or
610
+ * discovery found it.
611
+ */
430
612
  started: StreamInfo;
431
613
  /** What is known of a stream changing. */
432
614
  updated: StreamInfo;
@@ -444,4 +626,40 @@ export interface StreamsEventMap {
444
626
  */
445
627
  warning: StreamWarning;
446
628
  }
629
+ /** The values of the table below, before freezing. */
630
+ declare const streamsEventNameValues: {
631
+ /**
632
+ * A stream becoming known: it started while this client could see it, or
633
+ * discovery found it.
634
+ */
635
+ readonly Started: "started";
636
+ /** What is known of a stream changing. */
637
+ readonly Updated: "updated";
638
+ /** A stream ending. */
639
+ readonly Stopped: "stopped";
640
+ /** A viewer being accepted into a stream. */
641
+ readonly ViewerJoined: "viewerJoined";
642
+ /** A viewer leaving a stream. */
643
+ readonly ViewerLeft: "viewerLeft";
644
+ /** A failure nobody awaits, such as a discovery request the server refused. */
645
+ readonly Error: "error";
646
+ /**
647
+ * Something the SDK noticed and let through, such as an offer the
648
+ * TeamSpeak 6 client will not answer.
649
+ */
650
+ readonly Warning: "warning";
651
+ };
652
+ /**
653
+ * The names of the events `Streams.on()` takes, as constants.
654
+ * `on(StreamsEventName.Started, ...)` and `on("started", ...)` are the same call,
655
+ * and both give the listener the same payload type.
656
+ */
657
+ export declare const StreamsEventName: typeof streamsEventNameValues;
658
+ /**
659
+ * One of {@link StreamsEventName}, and so a key of {@link StreamsEventMap}.
660
+ * May gain members in a minor release: a `switch` over it needs a default
661
+ * case.
662
+ */
663
+ export type StreamsEventName = (typeof StreamsEventName)[keyof typeof StreamsEventName];
664
+ export {};
447
665
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/stream/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,GAAG,EACH,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAI7B;;;GAGG;AACH,MAAM,WAAW,a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sD;AACtD,QAAA,MAAM,sBAAsB;IAC1B;;;OAGG;aACH,OAAO,EAAE,SAAS;IAClB,0CAA0C;aAC1C,OAAO,EAAE,SAAS;IAClB,uBAAuB;aACvB,OAAO,EAAE,SAAS;IAClB,6CAA6C;aAC7C,YAAY,EAAE,cAAc;IAC5B,iCAAiC;aACjC,UAAU,EAAE,YAAY;IACxB,+EAA+E;aAC/E,KAAK,EAAE,OAAO;IACd;;;OAGG;aACH,OAAO,EAAE,SAAS;CACV,CAAC;AACX;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,sBACiB,CAAC;AACxD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,2 +1,236 @@
1
- export {};
1
+ // ---- Values -----------------------------------------------------------------
2
+ /** The values of the table below, before freezing. */
3
+ const streamSourceValues = {
4
+ /** `0` on the wire: no source named. */
5
+ None: "none",
6
+ /** `1` on the wire: a camera. */
7
+ Camera: "camera",
8
+ /** `2` on the wire: a screen. */
9
+ Screen: "screen",
10
+ /** `3` on the wire: a window. */
11
+ Window: "window",
12
+ /** `4` on the wire. */
13
+ Session: "session",
14
+ };
15
+ /**
16
+ * What a stream shows. The server stores any number, so a stream from a client
17
+ * that sends another value reports it as the number.
18
+ */
19
+ export const StreamSource =
20
+ /* @__PURE__ */ Object.freeze(streamSourceValues);
21
+ /** The values of the table below, before freezing. */
22
+ const streamAccessibilityValues = {
23
+ /** `0` on the wire. */
24
+ None: "none",
25
+ /** `1` on the wire: anyone. What `publish` sends unless told otherwise. */
26
+ Public: "public",
27
+ /** `2` on the wire: the publisher's contacts. */
28
+ Contacts: "contacts",
29
+ /** `3` on the wire. */
30
+ Private: "private",
31
+ };
32
+ /**
33
+ * Who a stream says may watch it. Only the publisher enforces it: the server
34
+ * relays every request. A value outside the four is reported as the number.
35
+ */
36
+ export const StreamAccessibility =
37
+ /* @__PURE__ */ Object.freeze(streamAccessibilityValues);
38
+ /** The values of the table below, before freezing. */
39
+ const streamTransportValues = {
40
+ /** From the publisher to each viewer directly. */
41
+ P2P: "p2p",
42
+ };
43
+ /**
44
+ * How a stream's media travels: `"p2p"`, from the publisher to each viewer
45
+ * directly, is the one mode this SDK publishes and watches. A server may
46
+ * announce a stream in another mode; it is reported as the number, and
47
+ * `watch` refuses it.
48
+ */
49
+ export const StreamTransport =
50
+ /* @__PURE__ */ Object.freeze(streamTransportValues);
51
+ // ---- Peers ------------------------------------------------------------------
52
+ /** The values of the table below, before freezing. */
53
+ const peerCloseCauseValues = {
54
+ /** Its own `close()`. */
55
+ Closed: "closed",
56
+ /** The other end leaving. */
57
+ Left: "left",
58
+ /** The stream ending. */
59
+ Stopped: "stopped",
60
+ /** The client's connection ending. */
61
+ Disconnected: "disconnected",
62
+ /** `Streams.dispose()`. */
63
+ Disposed: "disposed",
64
+ };
65
+ /**
66
+ * Why a peer closed.
67
+ */
68
+ export const PeerCloseCause =
69
+ /* @__PURE__ */ Object.freeze(peerCloseCauseValues);
70
+ /** The values of the table below, before freezing. */
71
+ const peerEventNameValues = {
72
+ /** A renegotiation offer from the publisher: an SDP. */
73
+ Offer: "offer",
74
+ /** The viewer's SDP answer. */
75
+ Answer: "answer",
76
+ /** An ICE candidate from the other end. */
77
+ Candidate: "candidate",
78
+ /** A signalling message that is none of the above. */
79
+ Signal: "signal",
80
+ /** The peer closing. */
81
+ Closed: "closed",
82
+ };
83
+ /**
84
+ * The names of the events `Peer.on()` takes, as constants.
85
+ * `on(PeerEventName.Offer, ...)` and `on("offer", ...)` are the same call,
86
+ * and both give the listener the same payload type.
87
+ */
88
+ export const PeerEventName =
89
+ /* @__PURE__ */ Object.freeze(peerEventNameValues);
90
+ // Each direction fails to compile when `PeerEvents` and `PeerEventName`
91
+ // drift: an event without a name, and a name that is not an event.
92
+ const peerEventNameCoverEvents = true;
93
+ const peerEventNameNamesAreEvents = true;
94
+ void peerEventNameCoverEvents;
95
+ void peerEventNameNamesAreEvents;
96
+ /** The values of the table below, before freezing. */
97
+ const joinRequestStateValues = {
98
+ /** Not yet accepted or denied. */
99
+ Pending: "pending",
100
+ /** Accepted. */
101
+ Accepted: "accepted",
102
+ /** Denied. */
103
+ Denied: "denied",
104
+ /** The answer did not reach the server. */
105
+ Failed: "failed",
106
+ /** The viewer left first. */
107
+ Withdrawn: "withdrawn",
108
+ /** The stream stopped. */
109
+ Ended: "ended",
110
+ };
111
+ /**
112
+ * Where a join request stands.
113
+ */
114
+ export const JoinRequestState =
115
+ /* @__PURE__ */ Object.freeze(joinRequestStateValues);
116
+ /** The values of the table below, before freezing. */
117
+ const joinRequestCloseCauseValues = {
118
+ /** The viewer took it back or left view. */
119
+ Withdrawn: "withdrawn",
120
+ /** The stream ended first. */
121
+ Ended: "ended",
122
+ };
123
+ /**
124
+ * Why a request stopped waiting for an answer.
125
+ */
126
+ export const JoinRequestCloseCause =
127
+ /* @__PURE__ */ Object.freeze(joinRequestCloseCauseValues);
128
+ /** The values of the table below, before freezing. */
129
+ const joinRequestEventNameValues = {
130
+ /**
131
+ * A request nobody had answered closing: the viewer withdrew it or left
132
+ * view, or the stream ended.
133
+ */
134
+ Closed: "closed",
135
+ };
136
+ /**
137
+ * The names of the events `JoinRequest.on()` takes, as constants.
138
+ * `on(JoinRequestEventName.Closed, ...)` and `on("closed", ...)` are the same call,
139
+ * and both give the listener the same payload type.
140
+ */
141
+ export const JoinRequestEventName =
142
+ /* @__PURE__ */ Object.freeze(joinRequestEventNameValues);
143
+ // Each direction fails to compile when `JoinRequestEvents` and `JoinRequestEventName`
144
+ // drift: an event without a name, and a name that is not an event.
145
+ const joinRequestEventNameCoverEvents = true;
146
+ const joinRequestEventNameNamesAreEvents = true;
147
+ void joinRequestEventNameCoverEvents;
148
+ void joinRequestEventNameNamesAreEvents;
149
+ /** The values of the table below, before freezing. */
150
+ const streamEndCauseValues = {
151
+ /** `stop()`. */
152
+ Stopped: "stopped",
153
+ /** The server's `notifystreamstopped`. */
154
+ Server: "server",
155
+ /**
156
+ * The server said its publisher no longer streams (`client_is_streaming`
157
+ * cleared) and no stop followed within two seconds.
158
+ */
159
+ Gone: "gone",
160
+ /** The client's connection ending. */
161
+ Disconnected: "disconnected",
162
+ /** `Streams.dispose()`. */
163
+ Disposed: "disposed",
164
+ };
165
+ /**
166
+ * Why a published stream ended.
167
+ */
168
+ export const StreamEndCause =
169
+ /* @__PURE__ */ Object.freeze(streamEndCauseValues);
170
+ /** The values of the table below, before freezing. */
171
+ const publishedStreamEventNameValues = {
172
+ /** A client asking to watch. */
173
+ Request: "request",
174
+ /** The stream ending. */
175
+ Ended: "ended",
176
+ };
177
+ /**
178
+ * The names of the events `PublishedStream.on()` takes, as constants.
179
+ * `on(PublishedStreamEventName.Request, ...)` and `on("request", ...)` are the same call,
180
+ * and both give the listener the same payload type.
181
+ */
182
+ export const PublishedStreamEventName =
183
+ /* @__PURE__ */ Object.freeze(publishedStreamEventNameValues);
184
+ // Each direction fails to compile when `PublishedStreamEvents` and `PublishedStreamEventName`
185
+ // drift: an event without a name, and a name that is not an event.
186
+ const publishedStreamEventNameCoverEvents = true;
187
+ const publishedStreamEventNameNamesAreEvents = true;
188
+ void publishedStreamEventNameCoverEvents;
189
+ void publishedStreamEventNameNamesAreEvents;
190
+ /** The values of the table below, before freezing. */
191
+ const streamWarningCodeValues = {
192
+ /** An SDP offer with no `m=audio` section. */
193
+ OfferWithoutAudio: "offer-without-audio",
194
+ };
195
+ /**
196
+ * Why `Streams` warns.
197
+ */
198
+ export const StreamWarningCode =
199
+ /* @__PURE__ */ Object.freeze(streamWarningCodeValues);
200
+ /** The values of the table below, before freezing. */
201
+ const streamsEventNameValues = {
202
+ /**
203
+ * A stream becoming known: it started while this client could see it, or
204
+ * discovery found it.
205
+ */
206
+ Started: "started",
207
+ /** What is known of a stream changing. */
208
+ Updated: "updated",
209
+ /** A stream ending. */
210
+ Stopped: "stopped",
211
+ /** A viewer being accepted into a stream. */
212
+ ViewerJoined: "viewerJoined",
213
+ /** A viewer leaving a stream. */
214
+ ViewerLeft: "viewerLeft",
215
+ /** A failure nobody awaits, such as a discovery request the server refused. */
216
+ Error: "error",
217
+ /**
218
+ * Something the SDK noticed and let through, such as an offer the
219
+ * TeamSpeak 6 client will not answer.
220
+ */
221
+ Warning: "warning",
222
+ };
223
+ /**
224
+ * The names of the events `Streams.on()` takes, as constants.
225
+ * `on(StreamsEventName.Started, ...)` and `on("started", ...)` are the same call,
226
+ * and both give the listener the same payload type.
227
+ */
228
+ export const StreamsEventName =
229
+ /* @__PURE__ */ Object.freeze(streamsEventNameValues);
230
+ // Each direction fails to compile when `StreamsEventMap` and `StreamsEventName`
231
+ // drift: an event without a name, and a name that is not an event.
232
+ const streamsEventNameCoverEvents = true;
233
+ const streamsEventNameNamesAreEvents = true;
234
+ void streamsEventNameCoverEvents;
235
+ void streamsEventNameNamesAreEvents;
2
236
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/stream/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/stream/types.ts"],"names":[],"mappings":"AAoDA,gFAAgF;AAEhF,sDAAsD;AACtD,MAAM,kBAAkB,GAAG;IACzB,wCAAwC;IACxC,IAAI,EAAE,MAAM;IACZ,iCAAiC;IACjC,MAAM,EAAE,QAAQ;IAChB,iCAAiC;IACjC,MAAM,EAAE,QAAQ;IAChB,iCAAiC;IACjC,MAAM,EAAE,QAAQ;IAChB,uBAAuB;IACvB,OAAO,EAAE,SAAS;CACV,CAAC;AACX;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY;AACvB,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAOpD,sDAAsD;AACtD,MAAM,yBAAyB,GAAG;IAChC,uBAAuB;IACvB,IAAI,EAAE,MAAM;IACZ,2EAA2E;IAC3E,MAAM,EAAE,QAA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