@ikonai/sdk 1.0.58 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{audio-playback-worker-DQyx1JwZ.js → audio-playback-worker-DDytpSb8.js} +147 -147
- package/assets/{protocol-worker-BuKXaXdD.js → protocol-worker-HqYf8zdj.js} +161 -161
- package/assets/{video-capture-worker-CmIFJfiB.js → video-capture-worker-CzxOnQmS.js} +96 -96
- package/assets/{video-playback-worker-DVJEnC1l.js → video-playback-worker-DPsTlza0.js} +44 -44
- package/client/ikon-client-config.d.ts +3 -9
- package/client/ikon-client.d.ts +16 -0
- package/connection/urls.d.ts +7 -0
- package/errors/index.d.ts +17 -0
- package/functions/function-registry.d.ts +2 -1
- package/index.d.ts +6 -3
- package/index.js +3279 -2762
- package/package.json +1 -1
- package/storage.d.ts +1 -1
- package/utils/abort-signal.d.ts +20 -0
- package/utils/browser-support.d.ts +26 -0
- package/utils/query-params.d.ts +16 -0
- package/utils/uuid.d.ts +12 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
const
|
|
1
|
+
const J = {
|
|
2
2
|
Compressed: 8
|
|
3
3
|
};
|
|
4
4
|
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), R = e.getUint8(24), m = e.getUint8(25),
|
|
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), Z = e.getUint8(26);
|
|
9
9
|
if (27 + N * 4 > r.length)
|
|
10
10
|
throw new Error("Protocol header exceeds payload length");
|
|
11
|
-
const
|
|
11
|
+
const b = [];
|
|
12
12
|
let K = 27;
|
|
13
13
|
for (let Y = 0; Y < N; Y++)
|
|
14
|
-
|
|
14
|
+
b.push(e.getUint32(K, !0)), K += 4;
|
|
15
15
|
return {
|
|
16
16
|
length: _,
|
|
17
17
|
opcode: E,
|
|
18
18
|
senderId: n,
|
|
19
19
|
trackId: s,
|
|
20
20
|
sequenceId: i,
|
|
21
|
-
targetIds:
|
|
21
|
+
targetIds: b,
|
|
22
22
|
payloadVersion: R,
|
|
23
23
|
payloadType: m,
|
|
24
|
-
flags:
|
|
24
|
+
flags: Z
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
async function k(t, r, e) {
|
|
@@ -32,7 +32,7 @@ async function k(t, r, e) {
|
|
|
32
32
|
throw new Error(`Unexpected payload type ${E.payloadType}`);
|
|
33
33
|
const n = 27 + E.targetIds.length * 4;
|
|
34
34
|
let s = _.subarray(n, E.length);
|
|
35
|
-
return (E.flags &
|
|
35
|
+
return (E.flags & J.Compressed) !== 0 && (s = await tt(s)), s;
|
|
36
36
|
}
|
|
37
37
|
async function tt(t) {
|
|
38
38
|
if (typeof DecompressionStream > "u")
|
|
@@ -172,7 +172,7 @@ class C {
|
|
|
172
172
|
return this.ensureType(
|
|
173
173
|
9
|
|
174
174
|
/* Array */
|
|
175
|
-
),
|
|
175
|
+
), V.create(this.payload);
|
|
176
176
|
}
|
|
177
177
|
asDictionary() {
|
|
178
178
|
return this.ensureType(
|
|
@@ -193,7 +193,7 @@ class Et extends C {
|
|
|
193
193
|
return this.type === 1;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
class
|
|
196
|
+
class V {
|
|
197
197
|
payload;
|
|
198
198
|
elementType;
|
|
199
199
|
count;
|
|
@@ -209,7 +209,7 @@ class G {
|
|
|
209
209
|
this.count = a(r, _, "ArrayMalformed"), this.offset = _.offset;
|
|
210
210
|
}
|
|
211
211
|
static create(r) {
|
|
212
|
-
return new
|
|
212
|
+
return new V(w(r));
|
|
213
213
|
}
|
|
214
214
|
next() {
|
|
215
215
|
if (this.index >= this.count) {
|
|
@@ -233,35 +233,35 @@ class G {
|
|
|
233
233
|
const r = l(this.elementType);
|
|
234
234
|
A(this.payload, this.offset, r);
|
|
235
235
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
236
|
-
return this.offset += r, new
|
|
236
|
+
return this.offset += r, new D(this.elementType, e);
|
|
237
237
|
}
|
|
238
238
|
case 12:
|
|
239
239
|
case 13: {
|
|
240
240
|
const r = { offset: this.offset }, e = a(this.payload, r, "ArrayMalformed");
|
|
241
241
|
A(this.payload, r.offset, e);
|
|
242
242
|
const _ = this.payload.subarray(r.offset, r.offset + e);
|
|
243
|
-
return this.offset = r.offset + e, new
|
|
243
|
+
return this.offset = r.offset + e, new D(this.elementType, _);
|
|
244
244
|
}
|
|
245
245
|
case 11: {
|
|
246
246
|
const r = { offset: this.offset }, e = a(this.payload, r, "ArrayMalformed");
|
|
247
247
|
A(this.payload, r.offset, e);
|
|
248
248
|
const _ = this.payload.subarray(r.offset, r.offset + e);
|
|
249
|
-
return this.offset = r.offset + e, new
|
|
249
|
+
return this.offset = r.offset + e, new D(11, _);
|
|
250
250
|
}
|
|
251
251
|
case 9: {
|
|
252
252
|
const r = B(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
253
|
-
return this.offset += r, new
|
|
253
|
+
return this.offset += r, new D(9, e);
|
|
254
254
|
}
|
|
255
255
|
case 10: {
|
|
256
|
-
const r =
|
|
257
|
-
return this.offset += r, new
|
|
256
|
+
const r = H(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
257
|
+
return this.offset += r, new D(10, e);
|
|
258
258
|
}
|
|
259
259
|
default:
|
|
260
260
|
throw new Error(`Unsupported array element type ${S[this.elementType]}`);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
class
|
|
264
|
+
class D extends C {
|
|
265
265
|
constructor(r, e) {
|
|
266
266
|
super(r, e);
|
|
267
267
|
}
|
|
@@ -329,7 +329,7 @@ class d {
|
|
|
329
329
|
return this.offset += r, new C(9, e);
|
|
330
330
|
}
|
|
331
331
|
case 10: {
|
|
332
|
-
const r =
|
|
332
|
+
const r = H(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
333
333
|
return this.offset += r, new C(10, e);
|
|
334
334
|
}
|
|
335
335
|
case 3:
|
|
@@ -489,10 +489,10 @@ function B(t, r) {
|
|
|
489
489
|
}
|
|
490
490
|
let i = E.offset;
|
|
491
491
|
for (let N = 0; N < n; N++)
|
|
492
|
-
i =
|
|
492
|
+
i = G(_, t, i, "ArrayMalformed");
|
|
493
493
|
return i - r;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function H(t, r) {
|
|
496
496
|
if (r + 2 > t.length)
|
|
497
497
|
throw new Error("Dictionary payload too short");
|
|
498
498
|
const e = t[r] >> 4 & 15, _ = t[r + 1] >> 4 & 15;
|
|
@@ -502,10 +502,10 @@ function b(t, r) {
|
|
|
502
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
|
-
s =
|
|
505
|
+
s = G(e, t, s, "DictMalformed"), s = G(_, t, s, "DictMalformed");
|
|
506
506
|
return s - r;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function G(t, r, e, _) {
|
|
509
509
|
const E = l(t);
|
|
510
510
|
if (E >= 0)
|
|
511
511
|
return A(r, e, E), e + E;
|
|
@@ -522,7 +522,7 @@ function M(t, r, e, _) {
|
|
|
522
522
|
case 9:
|
|
523
523
|
return e + B(r, e);
|
|
524
524
|
case 10:
|
|
525
|
-
return e +
|
|
525
|
+
return e + H(r, e);
|
|
526
526
|
default:
|
|
527
527
|
throw new Error(`Unsupported Teleport type ${S[t]}`);
|
|
528
528
|
}
|
|
@@ -533,7 +533,7 @@ 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_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 || {});
|
|
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_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", 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.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", 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.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", 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
537
|
const It = 8388611, At = 271275304, at = 2541432218, Tt = 2986785889, Nt = 3105403172, Ct = 3456383222;
|
|
538
538
|
function Rt(t) {
|
|
539
539
|
const r = {};
|
|
@@ -585,7 +585,7 @@ async function ht(t, r) {
|
|
|
585
585
|
const e = await k(t, It);
|
|
586
586
|
return ft(e, r);
|
|
587
587
|
}
|
|
588
|
-
const Ut = 8388609, St = 161083277, lt = 164808083,
|
|
588
|
+
const Ut = 8388609, St = 161083277, lt = 164808083, Lt = 1368629611, Dt = 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;
|
|
@@ -599,9 +599,9 @@ function mt(t, r) {
|
|
|
599
599
|
}
|
|
600
600
|
function Ft(t, r) {
|
|
601
601
|
const e = r ?? gt();
|
|
602
|
-
return z(e),
|
|
602
|
+
return z(e), Gt(t, e), e;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Gt(t, r) {
|
|
605
605
|
let e;
|
|
606
606
|
for (; (e = t.next()) !== null; )
|
|
607
607
|
switch (e.fieldId) {
|
|
@@ -615,12 +615,12 @@ function Mt(t, r) {
|
|
|
615
615
|
r.Framerate = e.asFloat64();
|
|
616
616
|
break;
|
|
617
617
|
}
|
|
618
|
-
case
|
|
618
|
+
case Lt: {
|
|
619
619
|
if (e.isNull) throw new Error();
|
|
620
620
|
r.Description = e.asString();
|
|
621
621
|
break;
|
|
622
622
|
}
|
|
623
|
-
case
|
|
623
|
+
case Dt: {
|
|
624
624
|
if (e.isNull) {
|
|
625
625
|
r.CorrelationId = void 0;
|
|
626
626
|
break;
|
|
@@ -655,21 +655,21 @@ function Mt(t, r) {
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
async function
|
|
658
|
+
async function Mt(t, r) {
|
|
659
659
|
const e = await k(t, Ut);
|
|
660
660
|
return mt(e, r);
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Vt = "avc1.42E01E", dt = "vp8", Bt = "vp09.00.10.08", Ht = "av01.0.04M.08", bt = 8, L = (t, r) => self.postMessage(t, r ?? []);
|
|
663
663
|
let U = null, y = !0, $ = !1;
|
|
664
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
|
+
L({ type: "error", error: { name: r.name, message: r.message, stack: r.stack } });
|
|
668
668
|
}
|
|
669
669
|
function g(t, r) {
|
|
670
670
|
return t << 16 | r & 65535;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function M(t) {
|
|
673
673
|
const r = T.get(t);
|
|
674
674
|
if (r)
|
|
675
675
|
return r;
|
|
@@ -694,10 +694,10 @@ function V(t) {
|
|
|
694
694
|
return T.set(t, e), e;
|
|
695
695
|
}
|
|
696
696
|
function v(t) {
|
|
697
|
-
if (t === h.H264) return
|
|
697
|
+
if (t === h.H264) return Vt;
|
|
698
698
|
if (t === h.Vp8) return dt;
|
|
699
699
|
if (t === h.Vp9) return Bt;
|
|
700
|
-
if (t === h.Av1) return
|
|
700
|
+
if (t === h.Av1) return Ht;
|
|
701
701
|
throw new Error(`Unknown codec: ${t}`);
|
|
702
702
|
}
|
|
703
703
|
function o(t) {
|
|
@@ -705,7 +705,7 @@ function o(t) {
|
|
|
705
705
|
if (!r || r.numericKey === 0)
|
|
706
706
|
return;
|
|
707
707
|
const e = r.numericKey >> 16 & 65535, _ = r.numericKey & 65535;
|
|
708
|
-
|
|
708
|
+
L({ type: "requestIdr", streamId: t, senderId: e, trackId: _ });
|
|
709
709
|
}
|
|
710
710
|
async function Kt(t, r) {
|
|
711
711
|
try {
|
|
@@ -713,7 +713,7 @@ async function Kt(t, r) {
|
|
|
713
713
|
return;
|
|
714
714
|
if (typeof createImageBitmap == "function") {
|
|
715
715
|
const e = await createImageBitmap(r);
|
|
716
|
-
|
|
716
|
+
L({ type: "frame", streamId: t.streamId, width: t.width, height: t.height, bitmap: e }, [e]);
|
|
717
717
|
}
|
|
718
718
|
} catch (e) {
|
|
719
719
|
u(e);
|
|
@@ -760,7 +760,7 @@ function F(t) {
|
|
|
760
760
|
}
|
|
761
761
|
return;
|
|
762
762
|
}
|
|
763
|
-
if (t.pendingDecodeCount >
|
|
763
|
+
if (t.pendingDecodeCount > bt) {
|
|
764
764
|
t.pendingDecodeCount--;
|
|
765
765
|
try {
|
|
766
766
|
r.close();
|
|
@@ -833,7 +833,7 @@ async function O(t) {
|
|
|
833
833
|
try {
|
|
834
834
|
t.decoder.configure(E.config), t.isKeyFrameRequired = !0, o(t.streamId);
|
|
835
835
|
const s = E.isHardwareAccelerated ? "hardware" : "software", i = t.framerate > 0 ? `@${Math.round(t.framerate)}fps` : "";
|
|
836
|
-
|
|
836
|
+
L({ type: "debug", message: `Decoder configured: codec=${r}, ${t.width}x${t.height}${i}, hw=${s}` });
|
|
837
837
|
} catch (s) {
|
|
838
838
|
u(s);
|
|
839
839
|
}
|
|
@@ -843,14 +843,14 @@ async function O(t) {
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
async function xt(t, r) {
|
|
846
|
-
const e = await
|
|
847
|
-
n.numericKey = E, n.codec = e.Codec, n.width = e.Width, n.height = e.Height, n.framerate = e.Framerate, f.set(E, _),
|
|
846
|
+
const e = await Mt(t), _ = e.StreamId, E = g(r.senderId, r.trackId), n = M(_);
|
|
847
|
+
n.numericKey = E, n.codec = e.Codec, n.width = e.Width, n.height = e.Height, n.framerate = e.Framerate, f.set(E, _), L({ 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
850
|
const r = g(t.senderId, t.trackId), e = f.get(r);
|
|
851
851
|
if (!e)
|
|
852
852
|
return;
|
|
853
|
-
|
|
853
|
+
L({ type: "streamEnd", streamId: e });
|
|
854
854
|
const _ = T.get(e);
|
|
855
855
|
if (!_) {
|
|
856
856
|
f.delete(r);
|
|
@@ -965,7 +965,7 @@ self.addEventListener("message", (t) => {
|
|
|
965
965
|
return;
|
|
966
966
|
}
|
|
967
967
|
if (r.type === "attachSurface") {
|
|
968
|
-
const e = r.streamId, _ =
|
|
968
|
+
const e = r.streamId, _ = M(e);
|
|
969
969
|
_.watched = !0, _.surface = r.canvas;
|
|
970
970
|
try {
|
|
971
971
|
_.ctx2d = _.surface.getContext("2d", { alpha: !1, desynchronized: !0 });
|
|
@@ -987,7 +987,7 @@ self.addEventListener("message", (t) => {
|
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
989
|
if (r.type === "watchStream") {
|
|
990
|
-
const e =
|
|
990
|
+
const e = M(r.streamId);
|
|
991
991
|
e.watched = !0, e.isKeyFrameRequired = !0, O(e), o(e.streamId);
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
@@ -180,12 +180,6 @@ export interface TimeoutConfig {
|
|
|
180
180
|
* Default: 180000 (3 minutes)
|
|
181
181
|
*/
|
|
182
182
|
connectionTimeoutMs?: number;
|
|
183
|
-
/**
|
|
184
|
-
* Keepalive timeout in milliseconds.
|
|
185
|
-
* If no keepalive is received within this time, the connection is considered dead.
|
|
186
|
-
* Default: 15000 (15 seconds)
|
|
187
|
-
*/
|
|
188
|
-
keepaliveTimeoutMs?: number;
|
|
189
183
|
/**
|
|
190
184
|
* Fixed delay between reconnection attempts in milliseconds.
|
|
191
185
|
* The first attempt is immediate; subsequent attempts wait this duration.
|
|
@@ -200,8 +194,8 @@ export interface TimeoutConfig {
|
|
|
200
194
|
/**
|
|
201
195
|
* Timeout in ms for server ACK of a user action call.
|
|
202
196
|
* If the server does not acknowledge an action call within this window, the SDK
|
|
203
|
-
* assumes the connection is dead and triggers reconnection. Kept well under
|
|
204
|
-
*
|
|
197
|
+
* assumes the connection is dead and triggers reconnection. Kept well under the
|
|
198
|
+
* server-communicated keepalive watchdog so we detect network-down faster.
|
|
205
199
|
* Default: 5000 (5 seconds)
|
|
206
200
|
*/
|
|
207
201
|
actionAckTimeoutMs?: number;
|
|
@@ -366,7 +360,7 @@ export interface IkonClientConfig {
|
|
|
366
360
|
}
|
|
367
361
|
export declare const DEFAULT_SLOW_CONNECTION_THRESHOLD_MS = 5000;
|
|
368
362
|
export declare const DEFAULT_CONNECTION_TIMEOUT_MS = 180000;
|
|
369
|
-
export declare const
|
|
363
|
+
export declare const PROTOCOL_WORKER_CONNECT_TIMEOUT_MS = 30000;
|
|
370
364
|
export declare const DEFAULT_RECONNECT_BACKOFF_MS = 2000;
|
|
371
365
|
export declare const DEFAULT_MAX_RECONNECT_ATTEMPTS = 2;
|
|
372
366
|
export declare const DEFAULT_ACTION_ACK_TIMEOUT_MS = 5000;
|
package/client/ikon-client.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export declare class IkonClient {
|
|
|
117
117
|
private readonly actionAckTimeoutMs;
|
|
118
118
|
private readonly _pendingActionAcks;
|
|
119
119
|
private readonly endpointSelector;
|
|
120
|
+
private _isUnloading;
|
|
120
121
|
private boundBeforeUnload;
|
|
121
122
|
private boundPageHide;
|
|
122
123
|
private boundVisibilityChange;
|
|
@@ -328,6 +329,7 @@ export declare class IkonClient {
|
|
|
328
329
|
* Handle incoming protocol message from channel manager.
|
|
329
330
|
*/
|
|
330
331
|
private handleProtocolMessage;
|
|
332
|
+
private buildLifecycleMessageFromEvent;
|
|
331
333
|
private handleDataChannelMessage;
|
|
332
334
|
/**
|
|
333
335
|
* Notify config callback and message subscribers.
|
|
@@ -366,6 +368,7 @@ export declare class IkonClient {
|
|
|
366
368
|
private removeWebRtcAudioUnlockHandler;
|
|
367
369
|
private connectProtocolOnMainThread;
|
|
368
370
|
private disconnectProtocol;
|
|
371
|
+
private getServerKeepaliveTimeoutMs;
|
|
369
372
|
private computeOrderedEndpointTypes;
|
|
370
373
|
private updateWorkerInterestMask;
|
|
371
374
|
/**
|
|
@@ -396,6 +399,19 @@ export declare class IkonClient {
|
|
|
396
399
|
* Clean up browser lifecycle event handlers.
|
|
397
400
|
*/
|
|
398
401
|
private cleanupLifecycleHandlers;
|
|
402
|
+
/**
|
|
403
|
+
* Send an in-band "I'm leaving" signal over the live channel. Best-effort: reliable on a
|
|
404
|
+
* programmatic disconnect, but on page unload the async worker send usually doesn't flush —
|
|
405
|
+
* use {@link sendDisconnectBeacon} for that case.
|
|
406
|
+
*/
|
|
407
|
+
private sendDisconnectSignal;
|
|
408
|
+
/**
|
|
409
|
+
* Fire a navigator.sendBeacon to the server's /disconnect endpoint so an intentional leave is
|
|
410
|
+
* delivered even during page unload (when an in-band protocol send would be dropped). The body
|
|
411
|
+
* is the cached auth-ticket bytes, which authenticate the request server-side, so a caller can
|
|
412
|
+
* only disconnect its own session.
|
|
413
|
+
*/
|
|
414
|
+
private sendDisconnectBeacon;
|
|
399
415
|
/**
|
|
400
416
|
* Handle page beforeunload event.
|
|
401
417
|
* Close connection cleanly to avoid orphaned connections on the server.
|
package/connection/urls.d.ts
CHANGED
|
@@ -13,6 +13,13 @@ export declare const IKON_AUTH_URL_DEV = "https://auth.dev.ikonai.com";
|
|
|
13
13
|
* @deprecated Use deriveAuthUrl() instead
|
|
14
14
|
*/
|
|
15
15
|
export declare const IKON_AUTH_BASE_URL = "https://auth.ikonai.com";
|
|
16
|
+
/**
|
|
17
|
+
* Same-origin auth base (`<origin>/ikon/auth`) for deployed cloud apps. Used as the automatic
|
|
18
|
+
* fallback when the cross-origin auth host is unreachable (e.g. an old device that doesn't trust
|
|
19
|
+
* its TLS cert), and — when `?ikon-auth=same` is set — as the primary auth URL. Returns null off
|
|
20
|
+
* cloud / non-browser. Requires the app LB to route `/ikon/auth/* → auth backend`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getSameOriginAuthUrl(): string | null;
|
|
16
23
|
/**
|
|
17
24
|
* Get backend URL from BackendType.
|
|
18
25
|
* Defaults to same-origin /ikon/api on deployed apps; honors ?ikon-api=false to opt out.
|
package/errors/index.d.ts
CHANGED
|
@@ -73,3 +73,20 @@ export declare class AccessDeniedError extends AuthenticationError {
|
|
|
73
73
|
readonly reason: string;
|
|
74
74
|
constructor(message: string, reason: string);
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Error thrown when the server is at capacity and rejects the connection (HTTP 429).
|
|
78
|
+
* The instance has reached its maximum client limit. This is terminal — the SDK must not
|
|
79
|
+
* retry, since retrying would not free a slot and would only add load.
|
|
80
|
+
*/
|
|
81
|
+
export declare class ServerFullError extends AuthenticationError {
|
|
82
|
+
constructor(message: string);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Error thrown when the browser is missing runtime features the SDK requires (e.g. a smart-TV
|
|
86
|
+
* browser too old to run the app). Terminal — the SDK must not retry; the user needs a newer
|
|
87
|
+
* browser. The missing feature names are exposed for diagnostics.
|
|
88
|
+
*/
|
|
89
|
+
export declare class BrowserNotSupportedError extends ConnectionError {
|
|
90
|
+
readonly missingFeatures: string[];
|
|
91
|
+
constructor(missingFeatures: string[]);
|
|
92
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage, ActionFunctionRegister, GlobalState } from '../../../../shared/protocol/src/index.ts';
|
|
1
|
+
import { ProtocolMessage, ActionFunctionRegister, GlobalState, ClientInitialization } from '../../../../shared/protocol/src/index.ts';
|
|
2
2
|
import { FunctionCallError, FunctionDefinition, FunctionHandler, NormalizedFunction } from './types';
|
|
3
3
|
export interface RemoteFunction {
|
|
4
4
|
id: string;
|
|
@@ -93,6 +93,7 @@ export declare class FunctionRegistry {
|
|
|
93
93
|
* Sync remote functions from GlobalState.
|
|
94
94
|
*/
|
|
95
95
|
syncFromGlobalState(globalState: GlobalState, ownSessionId: number): void;
|
|
96
|
+
registerFromClientInitialization(clientInitialization: ClientInitialization, ownSessionId: number): void;
|
|
96
97
|
private hasRemoteFunctionById;
|
|
97
98
|
private registerRemoteFunction;
|
|
98
99
|
private removeStaleRemoteFunctions;
|
package/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export { isConnecting, isConnected, isOffline, isError } from './client/connecti
|
|
|
6
6
|
export { ChannelManager, type ChannelManagerConfig, type ChannelManagerState } from './channel/channel-manager';
|
|
7
7
|
export { Channel, type ChannelConfig, type ChannelState } from './channel/channel';
|
|
8
8
|
export { EndpointSelector, type ProxyMode } from './client/endpoint-selector';
|
|
9
|
-
export { ConnectionError, AuthenticationError, TransportError, KeepaliveTimeoutError, AuthRejectedError, MaxRetriesExceededError, ProvisioningTimeoutError, ChannelNotFoundError, SpaceNotFoundError, NoChannelsError, AccessDeniedError } from './errors';
|
|
9
|
+
export { ConnectionError, AuthenticationError, TransportError, KeepaliveTimeoutError, AuthRejectedError, MaxRetriesExceededError, ProvisioningTimeoutError, ChannelNotFoundError, SpaceNotFoundError, NoChannelsError, AccessDeniedError, ServerFullError, BrowserNotSupportedError } from './errors';
|
|
10
|
+
export { checkBrowserSupport, type BrowserSupportResult } from './utils/browser-support';
|
|
10
11
|
export { Opcode, EntrypointType, UserType, ClientType, ContextType } from '../../../shared/protocol/src/index.ts';
|
|
11
12
|
export type { ClientReady, GlobalState, ProtocolMessage, ProtocolMessageHeaders } from '../../../shared/protocol/src/index.ts';
|
|
12
13
|
export { teleportReadOpcode as readOpcode, teleportReadOpcodeGroup as readOpcodeGroup, asProtocolMessage, readProtocolMessageHeaders } from '../../../shared/protocol/src/index.ts';
|
|
@@ -14,8 +15,10 @@ export { isWebTransportSupported } from './transport/web-transport-transport';
|
|
|
14
15
|
export { setLogLevel, setLogSink, getLogLevel, getLogSink, createLogger, LogLevel, subscribeToLogEvents } from './utils/logger';
|
|
15
16
|
export type { LogEntry, LogSink, Logger, LogEventListener, LogEventSubscriptionOptions } from './utils/logger';
|
|
16
17
|
export { initializeDebugMode, isDebugModeEnabled } from './utils/debug-mode';
|
|
18
|
+
export { randomUuid } from './utils/uuid';
|
|
19
|
+
export { abortSignalTimeout, abortSignalAny } from './utils/abort-signal';
|
|
17
20
|
export { initializeInspectMode, isInspectModeEnabled, enableInspectMode } from './utils/inspect-mode';
|
|
18
|
-
export { getLangParam, getProxyParam, getWebSocketParam, getWebTransportParam, getDebugParam, getServerUrlParam, getAudioParam, getVideoParam, getWebRtcParam, getInspectParam, getRetryParam, setSdkUrlParam, IKON_PARAM_PROXY, IKON_PARAM_WEBSOCKET, IKON_PARAM_WEBTRANSPORT, IKON_PARAM_DEBUG, IKON_PARAM_LANG, IKON_PARAM_SERVER_URL, IKON_PARAM_GIT_SOURCE, IKON_PARAM_GIT_BRANCH, IKON_PARAM_AUDIO, IKON_PARAM_VIDEO, IKON_PARAM_WEBRTC, IKON_PARAM_INSPECT, IKON_PARAM_RETRY } from './utils/query-params';
|
|
21
|
+
export { getLangParam, getProxyParam, getWebSocketParam, getWebTransportParam, getDebugParam, getServerUrlParam, getAudioParam, getVideoParam, getWebRtcParam, getInspectParam, getDebugOverlayParam, getAuthSameOriginParam, getRetryParam, setSdkUrlParam, IKON_PARAM_PROXY, IKON_PARAM_WEBSOCKET, IKON_PARAM_WEBTRANSPORT, IKON_PARAM_DEBUG, IKON_PARAM_LANG, IKON_PARAM_SERVER_URL, IKON_PARAM_GIT_SOURCE, IKON_PARAM_GIT_BRANCH, IKON_PARAM_AUDIO, IKON_PARAM_VIDEO, IKON_PARAM_WEBRTC, IKON_PARAM_INSPECT, IKON_PARAM_DEBUG_OVERLAY, IKON_PARAM_AUTH, IKON_PARAM_RETRY } from './utils/query-params';
|
|
19
22
|
export { getOpcodeName } from './utils/opcode-names';
|
|
20
23
|
export { initializeLogSink, setSendLogsCallback, getBufferedLogs, takeBufferedLogs, flushLogs, clearLogBuffer, getLogBufferSize } from './utils/log-sink';
|
|
21
24
|
export type { LogSinkConfig } from './utils/log-sink';
|
|
@@ -25,7 +28,7 @@ export { withResultData } from './functions';
|
|
|
25
28
|
export type { ValueDescriptor, NormalizedValueDescriptor, PrimitiveValueKind, FunctionParameterDefinition, FunctionDefinition, FunctionHandler, FunctionResultWithData } from './functions';
|
|
26
29
|
export { loginErrorInterceptor, reprovisionAfterLogin, consumeLoginHandoff, getLoginPromptState, clearLoginPrompt, subscribe as subscribeLoginPrompt, consumeLoginPendingCall } from './login';
|
|
27
30
|
export type { LoginPromptState, LoginPendingCall } from './login';
|
|
28
|
-
export { IKON_AUTH_BASE_URL, IKON_AUTH_URL_PROD, IKON_AUTH_URL_DEV, IKON_BACKEND_URL_PROD, IKON_BACKEND_URL_DEV, deriveAuthUrl, deriveBackendUrl, deriveBackendType, parseUrlParams, clearSessionParamsFromUrl, isCloudEnvironment, type UrlParams } from './connection/urls';
|
|
31
|
+
export { IKON_AUTH_BASE_URL, IKON_AUTH_URL_PROD, IKON_AUTH_URL_DEV, IKON_BACKEND_URL_PROD, IKON_BACKEND_URL_DEV, deriveAuthUrl, getSameOriginAuthUrl, deriveBackendUrl, deriveBackendType, parseUrlParams, clearSessionParamsFromUrl, isCloudEnvironment, type UrlParams } from './connection/urls';
|
|
29
32
|
export { getOrCreateDeviceId, clearDeviceId, extractUserIdFromToken } from './storage';
|
|
30
33
|
export { IkonMedia, IkonAudioPlayback, IkonVideoPlayback, isSharedArrayBufferSupported, isAudioWorkletSupported, IkonMediaCapture, IkonVideoCapture, IkonAudioCapture, IkonImageCapture, isMobileBrowserLikely } from './media';
|
|
31
34
|
export type { IkonMediaConfig, IkonAudioPlaybackConfig, IkonVideoPlaybackConfig, IkonVideoCaptureHandle, IkonVideoCaptureRequest, IkonVideoCaptureOptions, VideoCaptureSource, IkonAudioCaptureHandle, IkonAudioCaptureRequest, IkonAudioCaptureOptions, IkonImageCaptureRequest, IkonImageCaptureResult, IkonNativeCameraCaptureRequest, IkonNativeCameraFacing } from './media';
|