@ikonai/sdk 1.0.53 → 1.0.54

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.
@@ -5,7 +5,7 @@ function p(t) {
5
5
  const r = w(t), e = new DataView(r.buffer, r.byteOffset, r.byteLength);
6
6
  if (r.length < 27)
7
7
  throw new Error("Protocol payload too short");
8
- const _ = e.getUint32(0, !0), E = e.getUint32(4, !0), n = e.getUint32(8, !0), s = e.getUint32(12, !0), i = e.getUint32(16, !0), N = e.getUint32(20, !0), f = e.getUint8(24), m = e.getUint8(25), J = e.getUint8(26);
8
+ const _ = e.getUint32(0, !0), E = e.getUint32(4, !0), n = e.getUint32(8, !0), s = e.getUint32(12, !0), i = e.getUint32(16, !0), N = e.getUint32(20, !0), R = e.getUint8(24), m = e.getUint8(25), J = e.getUint8(26);
9
9
  if (27 + N * 4 > r.length)
10
10
  throw new Error("Protocol header exceeds payload length");
11
11
  const H = [];
@@ -19,7 +19,7 @@ function p(t) {
19
19
  trackId: s,
20
20
  sequenceId: i,
21
21
  targetIds: H,
22
- payloadVersion: f,
22
+ payloadVersion: R,
23
23
  payloadType: m,
24
24
  flags: J
25
25
  };
@@ -42,17 +42,17 @@ async function tt(t) {
42
42
  const E = r.readable.getReader(), n = [];
43
43
  let s = 0;
44
44
  for (; ; ) {
45
- const { done: f, value: m } = await E.read();
46
- if (f) break;
45
+ const { done: R, value: m } = await E.read();
46
+ if (R) break;
47
47
  n.push(m), s += m.length;
48
48
  }
49
49
  const i = new Uint8Array(s);
50
50
  let N = 0;
51
- for (let f = 0; f < n.length; f++)
52
- i.set(n[f], N), N += n[f].length;
51
+ for (let R = 0; R < n.length; R++)
52
+ i.set(n[R], N), N += n[R].length;
53
53
  return i;
54
54
  }
55
- var l = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(l || {});
55
+ var S = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(S || {});
56
56
  const rt = 161, et = 162;
57
57
  new TextEncoder();
58
58
  const _t = new TextDecoder("utf-8", { fatal: !0 });
@@ -68,7 +68,7 @@ class P {
68
68
  throw new Error("Teleport payload too short");
69
69
  if (e[0] !== rt || e[e.length - 1] !== et)
70
70
  throw new Error("Teleport object missing markers");
71
- const _ = { offset: 1 }, E = A(e, _, "InvalidLength");
71
+ const _ = { offset: 1 }, E = a(e, _, "InvalidLength");
72
72
  return new P(e, E, _.offset);
73
73
  }
74
74
  next() {
@@ -81,13 +81,13 @@ class P {
81
81
  const e = this.buffer[this.offset++], _ = e >> 4 & 15;
82
82
  if ((e & 15) !== 0)
83
83
  throw new Error("Teleport field flags must be zero");
84
- const E = S(_);
84
+ const E = l(_);
85
85
  let n;
86
86
  if (E >= 0)
87
- a(this.buffer, this.offset, E), n = this.buffer.subarray(this.offset, this.offset + E), this.offset += E;
87
+ A(this.buffer, this.offset, E), n = this.buffer.subarray(this.offset, this.offset + E), this.offset += E;
88
88
  else {
89
- const s = { offset: this.offset }, i = A(this.buffer, s, "InvalidLength");
90
- a(this.buffer, s.offset, i), n = this.buffer.subarray(s.offset, s.offset + i), this.offset = s.offset + i;
89
+ const s = { offset: this.offset }, i = a(this.buffer, s, "InvalidLength");
90
+ A(this.buffer, s.offset, i), n = this.buffer.subarray(s.offset, s.offset + i), this.offset = s.offset + i;
91
91
  }
92
92
  return new Et(r, _, n);
93
93
  }
@@ -182,7 +182,7 @@ class C {
182
182
  }
183
183
  ensureType(r) {
184
184
  if (this.type !== r)
185
- throw new Error(`Teleport value has type ${l[this.type]}, expected ${l[r]}`);
185
+ throw new Error(`Teleport value has type ${S[this.type]}, expected ${S[r]}`);
186
186
  }
187
187
  }
188
188
  class Et extends C {
@@ -206,7 +206,7 @@ class G {
206
206
  if (this.elementType = e >> 4 & 15, (e & 15) !== 0)
207
207
  throw new Error("Array flags must be zero");
208
208
  const _ = { offset: 1 };
209
- this.count = A(r, _, "ArrayMalformed"), this.offset = _.offset;
209
+ this.count = a(r, _, "ArrayMalformed"), this.offset = _.offset;
210
210
  }
211
211
  static create(r) {
212
212
  return new G(w(r));
@@ -230,21 +230,21 @@ class G {
230
230
  case 4:
231
231
  case 6:
232
232
  case 14: {
233
- const r = S(this.elementType);
234
- a(this.payload, this.offset, r);
233
+ const r = l(this.elementType);
234
+ A(this.payload, this.offset, r);
235
235
  const e = this.payload.subarray(this.offset, this.offset + r);
236
236
  return this.offset += r, new L(this.elementType, e);
237
237
  }
238
238
  case 12:
239
239
  case 13: {
240
- const r = { offset: this.offset }, e = A(this.payload, r, "ArrayMalformed");
241
- a(this.payload, r.offset, e);
240
+ const r = { offset: this.offset }, e = a(this.payload, r, "ArrayMalformed");
241
+ A(this.payload, r.offset, e);
242
242
  const _ = this.payload.subarray(r.offset, r.offset + e);
243
243
  return this.offset = r.offset + e, new L(this.elementType, _);
244
244
  }
245
245
  case 11: {
246
- const r = { offset: this.offset }, e = A(this.payload, r, "ArrayMalformed");
247
- a(this.payload, r.offset, e);
246
+ const r = { offset: this.offset }, e = a(this.payload, r, "ArrayMalformed");
247
+ A(this.payload, r.offset, e);
248
248
  const _ = this.payload.subarray(r.offset, r.offset + e);
249
249
  return this.offset = r.offset + e, new L(11, _);
250
250
  }
@@ -257,7 +257,7 @@ class G {
257
257
  return this.offset += r, new L(10, e);
258
258
  }
259
259
  default:
260
- throw new Error(`Unsupported array element type ${l[this.elementType]}`);
260
+ throw new Error(`Unsupported array element type ${S[this.elementType]}`);
261
261
  }
262
262
  }
263
263
  }
@@ -280,7 +280,7 @@ class d {
280
280
  throw new Error("Dictionary key/value flags must be zero");
281
281
  W(this.keyType);
282
282
  const e = { offset: 2 };
283
- this.count = A(r, e, "DictMalformed"), this.offset = e.offset;
283
+ this.count = a(r, e, "DictMalformed"), this.offset = e.offset;
284
284
  }
285
285
  static create(r) {
286
286
  return new d(w(r));
@@ -295,15 +295,15 @@ class d {
295
295
  return this.index++, new nt(r, e);
296
296
  }
297
297
  readKey() {
298
- const r = S(this.keyType);
298
+ const r = l(this.keyType);
299
299
  if (r >= 0) {
300
- a(this.payload, this.offset, r);
300
+ A(this.payload, this.offset, r);
301
301
  const e = this.payload.subarray(this.offset, this.offset + r);
302
302
  return this.offset += r, new C(this.keyType, e);
303
303
  }
304
304
  if (this.keyType === 12 || this.keyType === 13) {
305
- const e = { offset: this.offset }, _ = A(this.payload, e, "DictMalformed");
306
- a(this.payload, e.offset, _);
305
+ const e = { offset: this.offset }, _ = a(this.payload, e, "DictMalformed");
306
+ A(this.payload, e.offset, _);
307
307
  const E = this.payload.subarray(e.offset, e.offset + _);
308
308
  return this.offset = e.offset + _, new C(this.keyType, E);
309
309
  }
@@ -313,14 +313,14 @@ class d {
313
313
  switch (this.valueType) {
314
314
  case 12:
315
315
  case 13: {
316
- const r = { offset: this.offset }, e = A(this.payload, r, "DictMalformed");
317
- a(this.payload, r.offset, e);
316
+ const r = { offset: this.offset }, e = a(this.payload, r, "DictMalformed");
317
+ A(this.payload, r.offset, e);
318
318
  const _ = this.payload.subarray(r.offset, r.offset + e);
319
319
  return this.offset = r.offset + e, new C(this.valueType, _);
320
320
  }
321
321
  case 11: {
322
- const r = { offset: this.offset }, e = A(this.payload, r, "DictMalformed");
323
- a(this.payload, r.offset, e);
322
+ const r = { offset: this.offset }, e = a(this.payload, r, "DictMalformed");
323
+ A(this.payload, r.offset, e);
324
324
  const _ = this.payload.subarray(r.offset, r.offset + e);
325
325
  return this.offset = r.offset + e, new C(11, _);
326
326
  }
@@ -341,13 +341,13 @@ class d {
341
341
  case 6:
342
342
  case 14:
343
343
  case 1: {
344
- const r = S(this.valueType);
345
- a(this.payload, this.offset, r);
344
+ const r = l(this.valueType);
345
+ A(this.payload, this.offset, r);
346
346
  const e = this.payload.subarray(this.offset, this.offset + r);
347
347
  return this.offset += r, new C(this.valueType, e);
348
348
  }
349
349
  default:
350
- throw new Error(`Unsupported dictionary value type ${l[this.valueType]}`);
350
+ throw new Error(`Unsupported dictionary value type ${S[this.valueType]}`);
351
351
  }
352
352
  }
353
353
  }
@@ -426,7 +426,7 @@ class I {
426
426
  return (r >>> 0).toString(16).padStart(e, "0");
427
427
  }
428
428
  }
429
- function A(t, r, e) {
429
+ function a(t, r, e) {
430
430
  if (r.offset >= t.length)
431
431
  throw new Error(e);
432
432
  let _ = 0, E = 0, n = 0;
@@ -445,7 +445,7 @@ function A(t, r, e) {
445
445
  function st(t) {
446
446
  return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
447
447
  }
448
- function S(t) {
448
+ function l(t) {
449
449
  switch (t) {
450
450
  case 3:
451
451
  case 5:
@@ -469,7 +469,7 @@ function W(t) {
469
469
  if (t === 9 || t === 11 || t === 10 || t === 1)
470
470
  throw new Error("Dictionary keys must be primitive Teleport types");
471
471
  }
472
- function a(t, r, e) {
472
+ function A(t, r, e) {
473
473
  if (r < 0 || e < 0 || r + e > t.length)
474
474
  throw new Error("Teleport payload exceeds bounds");
475
475
  }
@@ -482,10 +482,10 @@ function B(t, r) {
482
482
  const e = t[r], _ = e >> 4 & 15;
483
483
  if ((e & 15) !== 0)
484
484
  throw new Error("Array flags must be zero");
485
- const E = { offset: r + 1 }, n = A(t, E, "ArrayMalformed"), s = S(_);
485
+ const E = { offset: r + 1 }, n = a(t, E, "ArrayMalformed"), s = l(_);
486
486
  if (s >= 0) {
487
487
  const N = s * n;
488
- return a(t, E.offset, N), E.offset + N - r;
488
+ return A(t, E.offset, N), E.offset + N - r;
489
489
  }
490
490
  let i = E.offset;
491
491
  for (let N = 0; N < n; N++)
@@ -499,32 +499,32 @@ function b(t, r) {
499
499
  if ((t[r] & 15) !== 0 || (t[r + 1] & 15) !== 0)
500
500
  throw new Error("Dictionary key/value flags must be zero");
501
501
  W(e);
502
- const E = { offset: r + 2 }, n = A(t, E, "DictMalformed");
502
+ const E = { offset: r + 2 }, n = a(t, E, "DictMalformed");
503
503
  let s = E.offset;
504
504
  for (let i = 0; i < n; i++)
505
505
  s = M(e, t, s, "DictMalformed"), s = M(_, t, s, "DictMalformed");
506
506
  return s - r;
507
507
  }
508
508
  function M(t, r, e, _) {
509
- const E = S(t);
509
+ const E = l(t);
510
510
  if (E >= 0)
511
- return a(r, e, E), e + E;
511
+ return A(r, e, E), e + E;
512
512
  switch (t) {
513
513
  case 12:
514
514
  case 13: {
515
- const n = { offset: e }, s = A(r, n, _);
516
- return a(r, n.offset, s), n.offset + s;
515
+ const n = { offset: e }, s = a(r, n, _);
516
+ return A(r, n.offset, s), n.offset + s;
517
517
  }
518
518
  case 11: {
519
- const n = { offset: e }, s = A(r, n, _);
520
- return a(r, n.offset, s), n.offset + s;
519
+ const n = { offset: e }, s = a(r, n, _);
520
+ return A(r, n.offset, s), n.offset + s;
521
521
  }
522
522
  case 9:
523
523
  return e + B(r, e);
524
524
  case 10:
525
525
  return e + b(r, e);
526
526
  default:
527
- throw new Error(`Unsupported Teleport type ${l[t]}`);
527
+ throw new Error(`Unsupported Teleport type ${S[t]}`);
528
528
  }
529
529
  }
530
530
  function x(t) {
@@ -533,33 +533,33 @@ function x(t) {
533
533
  function w(t) {
534
534
  return t instanceof Uint8Array ? t : new Uint8Array(t);
535
535
  }
536
- var h = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(h || {}), c = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(c || {});
537
- const It = 8388611, at = 271275304, At = 2541432218, Tt = 2986785889, Nt = 3105403172, Ct = 3456383222;
538
- function ft(t) {
536
+ var h = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(h || {}), c = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD = 65560] = "CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(c || {});
537
+ const It = 8388611, At = 271275304, at = 2541432218, Tt = 2986785889, Nt = 3105403172, Ct = 3456383222;
538
+ function Rt(t) {
539
539
  const r = {};
540
540
  return X(r), r;
541
541
  }
542
542
  function X(t) {
543
543
  return t.Data = new Uint8Array(0), t.FrameNumber = 0, t.IsKey = !1, t.TimestampInUs = 0n, t.DurationInUs = 0, t;
544
544
  }
545
- function Rt(t, r) {
545
+ function ft(t, r) {
546
546
  const e = P.create(t);
547
547
  return ot(e, r);
548
548
  }
549
549
  function ot(t, r) {
550
- const e = r ?? ft();
550
+ const e = r ?? Rt();
551
551
  return X(e), ut(t, e), e;
552
552
  }
553
553
  function ut(t, r) {
554
554
  let e;
555
555
  for (; (e = t.next()) !== null; )
556
556
  switch (e.fieldId) {
557
- case at: {
557
+ case At: {
558
558
  if (e.isNull) throw new Error();
559
559
  r.TimestampInUs = e.asUInt64();
560
560
  break;
561
561
  }
562
- case At: {
562
+ case at: {
563
563
  if (e.isNull) throw new Error();
564
564
  r.DurationInUs = e.asUInt32();
565
565
  break;
@@ -583,9 +583,9 @@ function ut(t, r) {
583
583
  }
584
584
  async function ht(t, r) {
585
585
  const e = await k(t, It);
586
- return Rt(e, r);
586
+ return ft(e, r);
587
587
  }
588
- const Ut = 8388609, lt = 161083277, St = 164808083, Dt = 1368629611, Lt = 2514959030, ct = 2745379226, yt = 2950031986, Ot = 3282782683, Pt = 3284746250, wt = 4065070594;
588
+ const Ut = 8388609, St = 161083277, lt = 164808083, Dt = 1368629611, Lt = 2514959030, ct = 2745379226, Ot = 2950031986, yt = 3282782683, Pt = 3284746250, wt = 4065070594;
589
589
  function gt(t) {
590
590
  const r = {};
591
591
  return z(r), r;
@@ -605,12 +605,12 @@ function Mt(t, r) {
605
605
  let e;
606
606
  for (; (e = t.next()) !== null; )
607
607
  switch (e.fieldId) {
608
- case lt: {
608
+ case St: {
609
609
  if (e.isNull) throw new Error();
610
610
  r.StreamId = e.asString();
611
611
  break;
612
612
  }
613
- case St: {
613
+ case lt: {
614
614
  if (e.isNull) throw new Error();
615
615
  r.Framerate = e.asFloat64();
616
616
  break;
@@ -633,12 +633,12 @@ function Mt(t, r) {
633
633
  r.CodecDetails = e.asString();
634
634
  break;
635
635
  }
636
- case yt: {
636
+ case Ot: {
637
637
  if (e.isNull) throw new Error();
638
638
  r.Height = e.asInt32();
639
639
  break;
640
640
  }
641
- case Ot: {
641
+ case yt: {
642
642
  if (e.isNull) throw new Error();
643
643
  r.SourceType = e.asString();
644
644
  break;
@@ -660,8 +660,8 @@ async function Vt(t, r) {
660
660
  return mt(e, r);
661
661
  }
662
662
  const Gt = "avc1.42E01E", dt = "vp8", Bt = "vp09.00.10.08", bt = "av01.0.04M.08", Ht = 8, D = (t, r) => self.postMessage(t, r ?? []);
663
- let U = null, O = !0, $ = !1;
664
- const T = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
663
+ let U = null, y = !0, $ = !1;
664
+ const T = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
665
665
  function u(t) {
666
666
  const r = t instanceof Error ? t : new Error(String(t));
667
667
  D({ type: "error", error: { name: r.name, message: r.message, stack: r.stack } });
@@ -709,7 +709,7 @@ function o(t) {
709
709
  }
710
710
  async function Kt(t, r) {
711
711
  try {
712
- if (!O || !t.watched)
712
+ if (!y || !t.watched)
713
713
  return;
714
714
  if (typeof createImageBitmap == "function") {
715
715
  const e = await createImageBitmap(r);
@@ -752,7 +752,7 @@ async function Yt(t, r, e) {
752
752
  function F(t) {
753
753
  return new VideoDecoder({
754
754
  output: (r) => {
755
- if (t.pendingDecodeCount++, !O || !t.watched) {
755
+ if (t.pendingDecodeCount++, !y || !t.watched) {
756
756
  t.pendingDecodeCount--;
757
757
  try {
758
758
  r.close();
@@ -795,7 +795,7 @@ function F(t) {
795
795
  }
796
796
  });
797
797
  }
798
- async function y(t) {
798
+ async function O(t) {
799
799
  if (t.codec == null || $) {
800
800
  t.isReconfiguring = !1;
801
801
  return;
@@ -844,16 +844,16 @@ async function y(t) {
844
844
  }
845
845
  async function xt(t, r) {
846
846
  const e = await Vt(t), _ = e.StreamId, E = g(r.senderId, r.trackId), n = V(_);
847
- n.numericKey = E, n.codec = e.Codec, n.width = e.Width, n.height = e.Height, n.framerate = e.Framerate, R.set(E, _), D({ type: "streamBegin", streamId: _, width: e.Width, height: e.Height, codec: e.Codec }), n.watched ? (n.surface && n.ctx2d && e.Width > 0 && e.Height > 0 && (n.surface.width !== e.Width || n.surface.height !== e.Height) && (n.surface.width = e.Width, n.surface.height = e.Height), y(n)) : n.isReconfiguring = !1;
847
+ n.numericKey = E, n.codec = e.Codec, n.width = e.Width, n.height = e.Height, n.framerate = e.Framerate, f.set(E, _), D({ type: "streamBegin", streamId: _, width: e.Width, height: e.Height, codec: e.Codec }), n.watched ? (n.surface && n.ctx2d && e.Width > 0 && e.Height > 0 && (n.surface.width !== e.Width || n.surface.height !== e.Height) && (n.surface.width = e.Width, n.surface.height = e.Height), O(n)) : n.isReconfiguring = !1;
848
848
  }
849
849
  function vt(t) {
850
- const r = g(t.senderId, t.trackId), e = R.get(r);
850
+ const r = g(t.senderId, t.trackId), e = f.get(r);
851
851
  if (!e)
852
852
  return;
853
853
  D({ type: "streamEnd", streamId: e });
854
854
  const _ = T.get(e);
855
855
  if (!_) {
856
- R.delete(r);
856
+ f.delete(r);
857
857
  return;
858
858
  }
859
859
  if (_.decoder)
@@ -861,7 +861,7 @@ function vt(t) {
861
861
  _.decoder.close();
862
862
  } catch {
863
863
  }
864
- T.delete(e), R.delete(r);
864
+ T.delete(e), f.delete(r);
865
865
  }
866
866
  function q(t) {
867
867
  const r = T.get(t);
@@ -881,11 +881,11 @@ function j(t) {
881
881
  }
882
882
  }
883
883
  async function kt(t, r) {
884
- const e = g(r.senderId, r.trackId), _ = R.get(e);
884
+ const e = g(r.senderId, r.trackId), _ = f.get(e);
885
885
  if (!_)
886
886
  return;
887
887
  const E = T.get(_);
888
- if (!E || !O || !E.watched || E.isReconfiguring || ((!E.decoder || !E.decoderCodec) && y(E), !E.decoder || !E.decoderCodec))
888
+ if (!E || !y || !E.watched || E.isReconfiguring || ((!E.decoder || !E.decoderCodec) && O(E), !E.decoder || !E.decoderCodec))
889
889
  return;
890
890
  const n = await ht(t);
891
891
  if (!(E.isReconfiguring || !E.decoder || !E.decoderCodec) && E.decoder.state !== "closed") {
@@ -913,7 +913,7 @@ async function kt(t, r) {
913
913
  }
914
914
  }
915
915
  function Wt(t) {
916
- const r = g(t.senderId, t.trackId), e = R.get(r);
916
+ const r = g(t.senderId, t.trackId), e = f.get(r);
917
917
  if (!e)
918
918
  return;
919
919
  const _ = T.get(e);
@@ -922,7 +922,7 @@ function Wt(t) {
922
922
  function Xt(t, r) {
923
923
  switch (r.opcode) {
924
924
  case c.VIDEO_STREAM_BEGIN: {
925
- const e = g(r.senderId, r.trackId), _ = R.get(e);
925
+ const e = g(r.senderId, r.trackId), _ = f.get(e);
926
926
  if (_) {
927
927
  const E = T.get(_);
928
928
  E && (E.isReconfiguring = !0);
@@ -956,7 +956,7 @@ function zt() {
956
956
  Q();
957
957
  for (const t of T.values())
958
958
  j(t.streamId);
959
- T.clear(), R.clear();
959
+ T.clear(), f.clear();
960
960
  }
961
961
  self.addEventListener("message", (t) => {
962
962
  const r = t.data;
@@ -972,7 +972,7 @@ self.addEventListener("message", (t) => {
972
972
  } catch (E) {
973
973
  u(E), _.ctx2d = null;
974
974
  }
975
- _.isKeyFrameRequired = !0, y(_), o(e);
975
+ _.isKeyFrameRequired = !0, O(_), o(e);
976
976
  return;
977
977
  }
978
978
  if (r.type === "detachSurface") {
@@ -988,7 +988,7 @@ self.addEventListener("message", (t) => {
988
988
  }
989
989
  if (r.type === "watchStream") {
990
990
  const e = V(r.streamId);
991
- e.watched = !0, e.isKeyFrameRequired = !0, y(e), o(e.streamId);
991
+ e.watched = !0, e.isKeyFrameRequired = !0, O(e), o(e.streamId);
992
992
  return;
993
993
  }
994
994
  if (r.type === "unwatchStream") {
@@ -996,9 +996,9 @@ self.addEventListener("message", (t) => {
996
996
  return;
997
997
  }
998
998
  if (r.type === "setEnabled") {
999
- if (O = r.enabled, O)
999
+ if (y = r.enabled, y)
1000
1000
  for (const e of T.values())
1001
- e.watched && (e.isKeyFrameRequired = !0, y(e), o(e.streamId));
1001
+ e.watched && (e.isKeyFrameRequired = !0, O(e), o(e.streamId));
1002
1002
  return;
1003
1003
  }
1004
1004
  r.type === "dispose" && zt();
@@ -142,6 +142,7 @@ export declare class IkonClient {
142
142
  private _keepaliveLockAbort;
143
143
  private _fullReauthAttempted;
144
144
  private _softReconnectAttempted;
145
+ private _lastFailureWasAuthRejected;
145
146
  private _reauthInProgress;
146
147
  private _disconnectedAt;
147
148
  private _reconnectTimer;
@@ -225,6 +226,13 @@ export declare class IkonClient {
225
226
  * Get the function registry for registering custom functions.
226
227
  */
227
228
  get functionRegistry(): FunctionRegistry;
229
+ /**
230
+ * Invoke a server-registered function by name. Shorthand for
231
+ * <c>client.functionRegistry.call(name, args, options)</c>.
232
+ */
233
+ call<T = unknown>(functionName: string, args?: unknown[], options?: {
234
+ instanceId?: string;
235
+ }): Promise<T>;
228
236
  /**
229
237
  * Get the reactive registry for subscribing to server-side <c>Reactive&lt;T&gt;</c>
230
238
  * values without rendering a Parallax UI tree. Subscriptions ride the same
@@ -25,8 +25,9 @@ export declare function getBackendUrl(backendType?: BackendType): string;
25
25
  * 2. VITE_IKON_BACKEND_URL env var (set by .NET server during local dev)
26
26
  * 3. Cloud environment, not opted out via ?ikon-api=false → same-origin /ikon/api (default)
27
27
  * 4. Local environment (localhost, LAN IPs) → IKON_BACKEND_URL_DEV
28
- * 5. Hostname contains '.dev.' → IKON_BACKEND_URL_DEV
29
- * 6. Default IKON_BACKEND_URL_PROD
28
+ * 5. Platform hostname inference
29
+ * 6. Env discovered by a previous deriveAuthUrl() call on this page
30
+ * 7. Default → IKON_BACKEND_URL_PROD
30
31
  */
31
32
  export declare function deriveBackendUrl(override?: string): string;
32
33
  /**
@@ -35,8 +36,13 @@ export declare function deriveBackendUrl(override?: string): string;
35
36
  * 1. VITE_IKON_BACKEND_TYPE env var (set by .NET server during local dev)
36
37
  * 2. VITE_IKON_BACKEND_URL env var contains '.dev.' → 'development'
37
38
  * 3. Local environment (localhost, LAN IPs) → 'development'
38
- * 4. Hostname contains '.dev.' → 'development'
39
- * 5. Default 'production'
39
+ * 4. Platform hostname inference
40
+ * 5. Env discovered by a previous deriveAuthUrl() call on this page
41
+ * 6. Default → 'production'
42
+ *
43
+ * Stays sync because callers run in React render paths. On a custom hostname
44
+ * the answer is only correct once `deriveAuthUrl()` has primed the env
45
+ * cache; in practice auth runs before the IkonClient is configured.
40
46
  */
41
47
  export declare function deriveBackendType(): BackendType;
42
48
  /**
@@ -45,10 +51,11 @@ export declare function deriveBackendType(): BackendType;
45
51
  * 1. Explicit override (e.g. from config)
46
52
  * 2. VITE_IKON_AUTH_URL env var (set by .NET server during local dev)
47
53
  * 3. Local environment (localhost, LAN IPs) → IKON_AUTH_URL_DEV
48
- * 4. Hostname contains '.dev.'IKON_AUTH_URL_DEV
49
- * 5. DefaultIKON_AUTH_URL_PROD
54
+ * 4. Platform hostname inference (`.dev.`dev; known platform suffix → prod)
55
+ * 5. Custom hostname fetch `<origin>/ikon/api/env` (cached)
56
+ * 6. Default → IKON_AUTH_URL_PROD
50
57
  */
51
- export declare function deriveAuthUrl(override?: string): string;
58
+ export declare function deriveAuthUrl(override?: string): Promise<string>;
52
59
  /**
53
60
  * Parse URL query parameters.
54
61
  */
package/errors/index.d.ts CHANGED
@@ -25,6 +25,16 @@ export declare class TransportError extends ConnectionError {
25
25
  export declare class KeepaliveTimeoutError extends TransportError {
26
26
  constructor(timeoutMs: number);
27
27
  }
28
+ /**
29
+ * Error thrown when a transport completes its handshake but the server immediately
30
+ * closes the connection without sending any message. Treated as an auth-rejection
31
+ * signal (e.g. cached auth ticket expired past its grace window). Callers should
32
+ * skip soft reconnect and trigger a full re-authentication instead of burning
33
+ * more retry attempts that will all rejected the same way.
34
+ */
35
+ export declare class AuthRejectedError extends TransportError {
36
+ constructor(message: string, cause?: Error);
37
+ }
28
38
  /**
29
39
  * Error thrown when maximum reconnection attempts are exhausted.
30
40
  */
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { isConnecting, isConnected, isOffline, isError } from './client/connecti
5
5
  export { ChannelManager, type ChannelManagerConfig, type ChannelManagerState } from './channel/channel-manager';
6
6
  export { Channel, type ChannelConfig, type ChannelState } from './channel/channel';
7
7
  export { EndpointSelector, type ProxyMode } from './client/endpoint-selector';
8
- export { ConnectionError, AuthenticationError, TransportError, KeepaliveTimeoutError, MaxRetriesExceededError, ProvisioningTimeoutError, ChannelNotFoundError, SpaceNotFoundError, NoChannelsError, AccessDeniedError } from './errors';
8
+ export { ConnectionError, AuthenticationError, TransportError, KeepaliveTimeoutError, AuthRejectedError, MaxRetriesExceededError, ProvisioningTimeoutError, ChannelNotFoundError, SpaceNotFoundError, NoChannelsError, AccessDeniedError } from './errors';
9
9
  export { Opcode, EntrypointType, UserType, ClientType, ContextType } from '../../../shared/protocol/src/index.ts';
10
10
  export type { ClientReady, GlobalState, ProtocolMessage, ProtocolMessageHeaders } from '../../../shared/protocol/src/index.ts';
11
11
  export { teleportReadOpcode as readOpcode, teleportReadOpcodeGroup as readOpcodeGroup, asProtocolMessage, readProtocolMessageHeaders } from '../../../shared/protocol/src/index.ts';