@ikonai/sdk 1.8.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/app-messaging.d.ts +13 -2
  2. package/app-messaging.d.ts.map +1 -0
  3. package/assets/audio-playback-worker-BA5LbdyM.js +1 -0
  4. package/assets/protocol-worker-Byc-OmNW.js +3 -0
  5. package/assets/video-capture-worker-DRYxkwR0.js +1 -0
  6. package/assets/video-playback-worker-v179IJ-C.js +1 -0
  7. package/assets/viseme-worker-CmvzHAbf.js +1 -0
  8. package/audio-constants-0i9B4zLJ.js +4 -0
  9. package/backend/account-functions.d.ts +22 -0
  10. package/backend/account-functions.d.ts.map +1 -0
  11. package/backend/user-account.d.ts +58 -0
  12. package/backend/user-account.d.ts.map +1 -0
  13. package/capabilities-ljRyAKpA.js +248 -0
  14. package/capture/capture-functions.d.ts +34 -0
  15. package/capture/capture-functions.d.ts.map +1 -0
  16. package/capture/view-capture.d.ts +35 -0
  17. package/capture/view-capture.d.ts.map +1 -0
  18. package/channel/channel-manager.d.ts +3 -2
  19. package/channel/channel-manager.d.ts.map +1 -0
  20. package/channel/channel.d.ts +6 -2
  21. package/channel/channel.d.ts.map +1 -0
  22. package/channel/index.d.ts +1 -0
  23. package/channel/index.d.ts.map +1 -0
  24. package/channel-manager-ehgy3BJp.js +878 -0
  25. package/client/connection-state.d.ts +1 -0
  26. package/client/connection-state.d.ts.map +1 -0
  27. package/client/endpoint-selector.d.ts +2 -1
  28. package/client/endpoint-selector.d.ts.map +1 -0
  29. package/client/ikon-client-config.d.ts +14 -1
  30. package/client/ikon-client-config.d.ts.map +1 -0
  31. package/client/ikon-client.d.ts +146 -5
  32. package/client/ikon-client.d.ts.map +1 -0
  33. package/connection/authenticator.d.ts +6 -1
  34. package/connection/authenticator.d.ts.map +1 -0
  35. package/connection/urls.d.ts +1 -0
  36. package/connection/urls.d.ts.map +1 -0
  37. package/consent/consent-api.d.ts +61 -0
  38. package/consent/consent-api.d.ts.map +1 -0
  39. package/dist-BrkppKKs.js +801 -0
  40. package/errors/index.d.ts +11 -0
  41. package/errors/index.d.ts.map +1 -0
  42. package/feedback/feedback-api.d.ts +63 -0
  43. package/feedback/feedback-api.d.ts.map +1 -0
  44. package/functions/browser-functions.d.ts +2 -1
  45. package/functions/browser-functions.d.ts.map +1 -0
  46. package/functions/download-functions.d.ts +20 -0
  47. package/functions/download-functions.d.ts.map +1 -0
  48. package/functions/function-registry.d.ts +2 -1
  49. package/functions/function-registry.d.ts.map +1 -0
  50. package/functions/index.d.ts +2 -0
  51. package/functions/index.d.ts.map +1 -0
  52. package/functions/media-capture-functions.d.ts +1 -0
  53. package/functions/media-capture-functions.d.ts.map +1 -0
  54. package/functions/sound-functions.d.ts +3 -1
  55. package/functions/sound-functions.d.ts.map +1 -0
  56. package/functions/type-conversion.d.ts +1 -0
  57. package/functions/type-conversion.d.ts.map +1 -0
  58. package/functions/types.d.ts +2 -1
  59. package/functions/types.d.ts.map +1 -0
  60. package/ikon-media-BQjL59S_.js +2074 -0
  61. package/ikon-media-capture-BiGydwdg.js +1422 -0
  62. package/index.d.ts +24 -11
  63. package/index.d.ts.map +1 -0
  64. package/index.js +6707 -10749
  65. package/log-type-DewKVFaU.js +832 -0
  66. package/logger-gjegmH6K.js +80 -0
  67. package/login/index.d.ts +1 -0
  68. package/login/index.d.ts.map +1 -0
  69. package/login/login-error-interceptor.d.ts +1 -0
  70. package/login/login-error-interceptor.d.ts.map +1 -0
  71. package/login/login-store.d.ts +1 -0
  72. package/login/login-store.d.ts.map +1 -0
  73. package/login/reprovision.d.ts +1 -0
  74. package/login/reprovision.d.ts.map +1 -0
  75. package/media/audio-constants.d.ts +1 -0
  76. package/media/audio-constants.d.ts.map +1 -0
  77. package/media/capabilities.d.ts +1 -0
  78. package/media/capabilities.d.ts.map +1 -0
  79. package/media/device-detection.d.ts +1 -0
  80. package/media/device-detection.d.ts.map +1 -0
  81. package/media/ikon-audio-capture.d.ts +23 -0
  82. package/media/ikon-audio-capture.d.ts.map +1 -0
  83. package/media/ikon-audio-playback.d.ts +3 -1
  84. package/media/ikon-audio-playback.d.ts.map +1 -0
  85. package/media/ikon-image-capture.d.ts +1 -0
  86. package/media/ikon-image-capture.d.ts.map +1 -0
  87. package/media/ikon-media-capture.d.ts +1 -0
  88. package/media/ikon-media-capture.d.ts.map +1 -0
  89. package/media/ikon-media.d.ts +1 -0
  90. package/media/ikon-media.d.ts.map +1 -0
  91. package/media/ikon-video-capture.d.ts +9 -0
  92. package/media/ikon-video-capture.d.ts.map +1 -0
  93. package/media/ikon-video-playback.d.ts +2 -1
  94. package/media/ikon-video-playback.d.ts.map +1 -0
  95. package/media/index.d.ts +1 -0
  96. package/media/index.d.ts.map +1 -0
  97. package/media/media-permission.d.ts +1 -0
  98. package/media/media-permission.d.ts.map +1 -0
  99. package/media/media-session-helper.d.ts +1 -0
  100. package/media/media-session-helper.d.ts.map +1 -0
  101. package/media/ring-buffer.d.ts +1 -0
  102. package/media/ring-buffer.d.ts.map +1 -0
  103. package/media/video-constants.d.ts +1 -0
  104. package/media/video-constants.d.ts.map +1 -0
  105. package/media/viseme-tracker.d.ts +2 -1
  106. package/media/viseme-tracker.d.ts.map +1 -0
  107. package/media-session-helper-Do-OxyU6.js +51 -0
  108. package/package.json +1 -1
  109. package/reactive/reactive-registry.d.ts +1 -0
  110. package/reactive/reactive-registry.d.ts.map +1 -0
  111. package/sha2-DPTGfEM2.js +261 -0
  112. package/storage.d.ts +2 -1
  113. package/storage.d.ts.map +1 -0
  114. package/transport/http-stream-transport.d.ts +17 -1
  115. package/transport/http-stream-transport.d.ts.map +1 -0
  116. package/transport/keepalive-watchdog.d.ts +32 -0
  117. package/transport/keepalive-watchdog.d.ts.map +1 -0
  118. package/transport/message-framer.d.ts +1 -0
  119. package/transport/message-framer.d.ts.map +1 -0
  120. package/transport/transport-probe.d.ts +2 -1
  121. package/transport/transport-probe.d.ts.map +1 -0
  122. package/transport/transport.d.ts +16 -1
  123. package/transport/transport.d.ts.map +1 -0
  124. package/transport/web-socket-transport.d.ts +4 -1
  125. package/transport/web-socket-transport.d.ts.map +1 -0
  126. package/transport/web-transport-support.d.ts +5 -0
  127. package/transport/web-transport-support.d.ts.map +1 -0
  128. package/transport/web-transport-transport.d.ts +4 -8
  129. package/transport/web-transport-transport.d.ts.map +1 -0
  130. package/upload/file-upload.d.ts +62 -0
  131. package/upload/file-upload.d.ts.map +1 -0
  132. package/utils/abort-signal.d.ts +1 -0
  133. package/utils/abort-signal.d.ts.map +1 -0
  134. package/utils/app-routes.d.ts +1 -0
  135. package/utils/app-routes.d.ts.map +1 -0
  136. package/utils/boot-signal.d.ts +1 -0
  137. package/utils/boot-signal.d.ts.map +1 -0
  138. package/utils/browser-compat.d.ts +1 -0
  139. package/utils/browser-compat.d.ts.map +1 -0
  140. package/utils/browser-support.d.ts +1 -0
  141. package/utils/browser-support.d.ts.map +1 -0
  142. package/utils/client-identity.d.ts +14 -0
  143. package/utils/client-identity.d.ts.map +1 -0
  144. package/utils/connect-timeline.d.ts +1 -0
  145. package/utils/connect-timeline.d.ts.map +1 -0
  146. package/utils/debug-mode.d.ts +1 -0
  147. package/utils/debug-mode.d.ts.map +1 -0
  148. package/utils/deferred.d.ts +1 -0
  149. package/utils/deferred.d.ts.map +1 -0
  150. package/utils/delay.d.ts +1 -0
  151. package/utils/delay.d.ts.map +1 -0
  152. package/utils/embedded-oauth.d.ts +1 -0
  153. package/utils/embedded-oauth.d.ts.map +1 -0
  154. package/utils/external-link.d.ts +1 -0
  155. package/utils/external-link.d.ts.map +1 -0
  156. package/utils/inspect-mode.d.ts +1 -0
  157. package/utils/inspect-mode.d.ts.map +1 -0
  158. package/utils/log-sender.d.ts +1 -0
  159. package/utils/log-sender.d.ts.map +1 -0
  160. package/utils/log-sink.d.ts +1 -0
  161. package/utils/log-sink.d.ts.map +1 -0
  162. package/utils/logger.d.ts +1 -0
  163. package/utils/logger.d.ts.map +1 -0
  164. package/utils/oauth-start-url.d.ts +22 -0
  165. package/utils/oauth-start-url.d.ts.map +1 -0
  166. package/utils/opcode-names.d.ts +1 -0
  167. package/utils/opcode-names.d.ts.map +1 -0
  168. package/utils/parent-log-forward.d.ts +23 -0
  169. package/utils/parent-log-forward.d.ts.map +1 -0
  170. package/utils/pkce.d.ts +1 -0
  171. package/utils/pkce.d.ts.map +1 -0
  172. package/utils/platform.d.ts +1 -0
  173. package/utils/platform.d.ts.map +1 -0
  174. package/utils/query-params.d.ts +21 -0
  175. package/utils/query-params.d.ts.map +1 -0
  176. package/utils/user-gesture.d.ts +1 -0
  177. package/utils/user-gesture.d.ts.map +1 -0
  178. package/utils/uuid.d.ts +1 -0
  179. package/utils/uuid.d.ts.map +1 -0
  180. package/viseme-tracker-CAtczW00.js +183 -0
  181. package/web-transport-support-Cdyk4mQe.js +229 -0
  182. package/webrtc/index.d.ts +1 -0
  183. package/webrtc/index.d.ts.map +1 -0
  184. package/webrtc/webrtc-config.d.ts +1 -0
  185. package/webrtc/webrtc-config.d.ts.map +1 -0
  186. package/webrtc/webrtc-connection.d.ts +10 -0
  187. package/webrtc/webrtc-connection.d.ts.map +1 -0
  188. package/webrtc/webrtc-reachability.d.ts +1 -0
  189. package/webrtc/webrtc-reachability.d.ts.map +1 -0
  190. package/webrtc/webrtc-signaling.d.ts +19 -1
  191. package/webrtc/webrtc-signaling.d.ts.map +1 -0
  192. package/worker/audio-capture-worker.d.ts +1 -0
  193. package/worker/audio-capture-worker.d.ts.map +1 -0
  194. package/worker/audio-playback-worker.d.ts +2 -1
  195. package/worker/audio-playback-worker.d.ts.map +1 -0
  196. package/worker/protocol-worker.d.ts +1 -0
  197. package/worker/protocol-worker.d.ts.map +1 -0
  198. package/worker/video-capture-worker.d.ts +1 -0
  199. package/worker/video-capture-worker.d.ts.map +1 -0
  200. package/worker/video-playback-worker.d.ts +2 -1
  201. package/worker/video-playback-worker.d.ts.map +1 -0
  202. package/worker/viseme-worker.d.ts +2 -1
  203. package/worker/viseme-worker.d.ts.map +1 -0
  204. package/assets/audio-playback-worker-BXZR_9iK.js +0 -1
  205. package/assets/protocol-worker-PNQ9dfGq.js +0 -3
  206. package/assets/video-capture-worker-mvwKyjOn.js +0 -1
  207. package/assets/video-playback-worker-DqNjooZJ.js +0 -1
  208. package/assets/viseme-worker-D0AKWUTO.js +0 -1
  209. package/capabilities-xDnE0vqq.js +0 -105
  210. package/vite.config.d.ts +0 -2
@@ -0,0 +1,248 @@
1
+ import { _ as e, b as t, n, p as r, t as i } from "./log-type-DewKVFaU.js";
2
+ import { n as a } from "./logger-gjegmH6K.js";
3
+ var o = 4194311, s = 112206629, c = 420935914, l = 4086360332, u = 4253308507;
4
+ function d(e) {
5
+ let t = {};
6
+ return f(t), e && Object.assign(t, e), t;
7
+ }
8
+ function f(e) {
9
+ return e.Epoch = 0, e.PlayedSeconds = 0, e.BufferedMs = 0, e.State = n.Unknown, e;
10
+ }
11
+ function p(t) {
12
+ let n = new e(1);
13
+ return m(t, n), n.finish();
14
+ }
15
+ function m(e, t) {
16
+ t.writeFloat32Field(s, e.BufferedMs), t.writeInt32Field(c, e.State), t.writeUInt32Field(l, e.Epoch >>> 0), t.writeFloat64Field(u, e.PlayedSeconds);
17
+ }
18
+ function h(e, n, r) {
19
+ let i = p(e);
20
+ return t(o, i, 1, n, r);
21
+ }
22
+ var ee = 161083277, te = 265814330, ne = 1368629611, re = 2431514951, ie = 2514959030, ae = 2745379226, g = 3282782683, _ = 3284746250, v = 4101844078;
23
+ function y(e) {
24
+ let t = {};
25
+ return b(t), e && Object.assign(t, e), t;
26
+ }
27
+ function b(e) {
28
+ return e.StreamId = "", e.Description = "", e.SourceType = "", e.Codec = i.Unknown, e.CodecDetails = "", e.SampleRate = 0, e.Channels = 0, e.ShapeSets = void 0, e.CorrelationId = void 0, e;
29
+ }
30
+ function x(e, t) {
31
+ let n = t ?? y();
32
+ return b(n), S(e, n), n;
33
+ }
34
+ function S(e, t) {
35
+ let n;
36
+ for (; (n = e.next()) !== null;) switch (n.fieldId) {
37
+ case ee:
38
+ if (n.isNull) throw Error();
39
+ t.StreamId = n.asString();
40
+ break;
41
+ case te:
42
+ if (n.isNull) {
43
+ t.ShapeSets = void 0;
44
+ break;
45
+ }
46
+ t.ShapeSets = C(n.asArray());
47
+ break;
48
+ case ne:
49
+ if (n.isNull) throw Error();
50
+ t.Description = n.asString();
51
+ break;
52
+ case re:
53
+ if (n.isNull) throw Error();
54
+ t.Channels = n.asInt32();
55
+ break;
56
+ case ie:
57
+ if (n.isNull) {
58
+ t.CorrelationId = void 0;
59
+ break;
60
+ }
61
+ t.CorrelationId = n.asString();
62
+ break;
63
+ case ae:
64
+ if (n.isNull) throw Error();
65
+ t.CodecDetails = n.asString();
66
+ break;
67
+ case g:
68
+ if (n.isNull) throw Error();
69
+ t.SourceType = n.asString();
70
+ break;
71
+ case _:
72
+ if (n.isNull) throw Error();
73
+ t.Codec = n.asInt32();
74
+ break;
75
+ case v:
76
+ if (n.isNull) throw Error();
77
+ t.SampleRate = n.asInt32();
78
+ }
79
+ }
80
+ function C(e) {
81
+ let t = [], n;
82
+ for (; (n = e.next()) !== null;) t.push(k(n.asObject()));
83
+ return t;
84
+ }
85
+ var w = 1107713536, T = 1154362099, E = 1185721362;
86
+ function D(e) {
87
+ let t = {};
88
+ return O(t), e && Object.assign(t, e), t;
89
+ }
90
+ function O(e) {
91
+ return e.SetId = 0, e.Name = "", e.ShapeNames = [], e;
92
+ }
93
+ function k(e, t) {
94
+ let n = t ?? D();
95
+ return O(n), A(e, n), n;
96
+ }
97
+ function A(e, t) {
98
+ let n;
99
+ for (; (n = e.next()) !== null;) switch (n.fieldId) {
100
+ case w:
101
+ if (n.isNull) throw Error();
102
+ t.Name = n.asString();
103
+ break;
104
+ case T:
105
+ if (n.isNull) throw Error();
106
+ t.SetId = n.asUInt32();
107
+ break;
108
+ case E:
109
+ if (n.isNull) throw Error();
110
+ t.ShapeNames = j(n.asArray());
111
+ }
112
+ }
113
+ function j(e) {
114
+ let t = [], n;
115
+ for (; (n = e.next()) !== null;) t.push(n.asString());
116
+ return t;
117
+ }
118
+ var M = 4194306;
119
+ function N(e) {
120
+ let t = {};
121
+ return e && Object.assign(t, e), t;
122
+ }
123
+ function P(t) {
124
+ return new e(1).finish();
125
+ }
126
+ function F(e, n, r) {
127
+ let i = P(e);
128
+ return t(M, i, 1, n, r);
129
+ }
130
+ var I = 8388612;
131
+ function L(e) {
132
+ let t = {};
133
+ return e && Object.assign(t, e), t;
134
+ }
135
+ function R(t) {
136
+ return new e(1).finish();
137
+ }
138
+ function z(e, n, r) {
139
+ let i = R(e);
140
+ return t(I, i, 1, n, r);
141
+ }
142
+ var oe = 8388609, B = 161083277, V = 164808083, H = 1368629611, U = 2514959030, W = 2745379226, G = 2950031986, K = 3282782683, q = 3284746250, J = 4065070594;
143
+ function Y(e) {
144
+ let t = {};
145
+ return X(t), e && Object.assign(t, e), t;
146
+ }
147
+ function X(e) {
148
+ return e.StreamId = "", e.Description = "", e.SourceType = "", e.Codec = r.H264, e.CodecDetails = "", e.Width = 0, e.Height = 0, e.Framerate = 30, e.CorrelationId = void 0, e;
149
+ }
150
+ function se(t) {
151
+ let n = new e(6);
152
+ return ce(t, n), n.finish();
153
+ }
154
+ function ce(e, t) {
155
+ t.writeStringField(B, e.StreamId), t.writeFloat64Field(V, e.Framerate), t.writeStringField(H, e.Description);
156
+ let n = e.CorrelationId;
157
+ n != null && t.writeStringField(U, n), t.writeStringField(W, e.CodecDetails), t.writeInt32Field(G, e.Height | 0), t.writeStringField(K, e.SourceType), t.writeInt32Field(q, e.Codec), t.writeInt32Field(J, e.Width | 0);
158
+ }
159
+ function le(e, t) {
160
+ let n = t ?? Y();
161
+ return X(n), ue(e, n), n;
162
+ }
163
+ function ue(e, t) {
164
+ let n;
165
+ for (; (n = e.next()) !== null;) switch (n.fieldId) {
166
+ case B:
167
+ if (n.isNull) throw Error();
168
+ t.StreamId = n.asString();
169
+ break;
170
+ case V:
171
+ if (n.isNull) throw Error();
172
+ t.Framerate = n.asFloat64();
173
+ break;
174
+ case H:
175
+ if (n.isNull) throw Error();
176
+ t.Description = n.asString();
177
+ break;
178
+ case U:
179
+ if (n.isNull) {
180
+ t.CorrelationId = void 0;
181
+ break;
182
+ }
183
+ t.CorrelationId = n.asString();
184
+ break;
185
+ case W:
186
+ if (n.isNull) throw Error();
187
+ t.CodecDetails = n.asString();
188
+ break;
189
+ case G:
190
+ if (n.isNull) throw Error();
191
+ t.Height = n.asInt32();
192
+ break;
193
+ case K:
194
+ if (n.isNull) throw Error();
195
+ t.SourceType = n.asString();
196
+ break;
197
+ case q:
198
+ if (n.isNull) throw Error();
199
+ t.Codec = n.asInt32();
200
+ break;
201
+ case J:
202
+ if (n.isNull) throw Error();
203
+ t.Width = n.asInt32();
204
+ }
205
+ }
206
+ function de(e, n, r) {
207
+ let i = se(e);
208
+ return t(oe, i, 6, n, r);
209
+ }
210
+ var fe = 8388610;
211
+ function pe(e) {
212
+ let t = {};
213
+ return e && Object.assign(t, e), t;
214
+ }
215
+ function me(t) {
216
+ return new e(1).finish();
217
+ }
218
+ function he(e, n, r) {
219
+ let i = me(e);
220
+ return t(fe, i, 1, n, r);
221
+ }
222
+ //#endregion
223
+ //#region src/utils/platform.ts
224
+ var Z = () => {
225
+ if (typeof navigator > "u") return !1;
226
+ let e = navigator.userAgent, t = /iPad|iPhone|iPod/.test(e), n = e.includes("Macintosh") && typeof navigator.maxTouchPoints == "number" && navigator.maxTouchPoints > 1;
227
+ return t || n;
228
+ }, ge = () => {
229
+ if (typeof navigator > "u" || typeof window > "u") return !1;
230
+ let e = navigator.userAgent;
231
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e) || Z();
232
+ }, Q = a("Capabilities"), $ = globalThis;
233
+ function _e() {
234
+ if (typeof SharedArrayBuffer > "u") return Q.debug("SharedArrayBuffer not supported: SharedArrayBuffer is undefined"), !1;
235
+ if (typeof Atomics > "u") return Q.debug("SharedArrayBuffer not supported: Atomics is undefined"), !1;
236
+ if ($.crossOriginIsolated === !1) return Q.debug("SharedArrayBuffer not supported: crossOriginIsolated is false (missing COOP/COEP headers)"), !1;
237
+ try {
238
+ new SharedArrayBuffer(1);
239
+ } catch (e) {
240
+ return Q.debug(`SharedArrayBuffer not supported: construction failed - ${e instanceof Error ? e.message : String(e)}`), !1;
241
+ }
242
+ return !0;
243
+ }
244
+ function ve(e) {
245
+ return typeof AudioWorkletNode == "function" && typeof e.audioWorklet?.addModule == "function";
246
+ }
247
+ //#endregion
248
+ export { F as _, L as a, le as c, he as d, d as f, h as g, x as h, ge as i, z as l, N as m, _e as n, Y as o, y as p, Z as r, pe as s, ve as t, de as u };
@@ -0,0 +1,34 @@
1
+ import { IkonClient } from '../client/ikon-client';
2
+ import { FunctionRegistry } from '../functions/function-registry';
3
+ export declare const CAPTURE_VIEW_FUNCTION_NAME = "ikon.client.captureView";
4
+ export declare const SET_FEEDBACK_FUNCTION_NAME = "ikon.client.setFeedback";
5
+ export declare const SET_FEEDBACK_BUTTON_FUNCTION_NAME = "ikon.client.setFeedbackButton";
6
+ export declare const OPEN_FEEDBACK_FUNCTION_NAME = "ikon.client.openFeedback";
7
+ /** The wire shape the server reads; PascalCase like every structured client-function result. */
8
+ export interface CaptureViewResult {
9
+ Uploaded: boolean;
10
+ UploadId: string;
11
+ LostContent: boolean;
12
+ Reason: string;
13
+ }
14
+ /**
15
+ * The app server's admission decision for this client. It replaces what `/init` said: a local run
16
+ * has no `/init`, and the server is the one that knows which mount it will open the sheet on.
17
+ */
18
+ export declare function setFeedback(client: IkonClient, available: unknown, showButton: unknown): boolean;
19
+ export declare const NO_CAPTURE_REQUESTED_REASON = "No capture was requested from this screen";
20
+ /**
21
+ * Uploads the capture the user's own request for feedback took, and nothing else: the server may
22
+ * ask at any time, and a screenshot is only taken because the user asked to report from this screen.
23
+ * The capture is used once.
24
+ */
25
+ export declare function captureView(client: IkonClient, uploadActionId: unknown): Promise<CaptureViewResult>;
26
+ /** Registers `ikon.client.setFeedback`, which the server may call for any client at any time. */
27
+ export declare function registerFeedbackFunctions(registry: FunctionRegistry, client: IkonClient): () => void;
28
+ /**
29
+ * Registers the functions the client holds only while the feedback overlay is offered:
30
+ * `ikon.client.captureView`, `ikon.client.openFeedback` and `ikon.client.setFeedbackButton`. Their
31
+ * presence is how the app server tells whether this person can be asked for feedback.
32
+ */
33
+ export declare function registerOfferedFeedbackFunctions(registry: FunctionRegistry, client: IkonClient): () => void;
34
+ //# sourceMappingURL=capture-functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture-functions.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk/src/capture/capture-functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AASvE,eAAO,MAAM,0BAA0B,4BAA4B,CAAC;AAEpE,eAAO,MAAM,0BAA0B,4BAA4B,CAAC;AAEpE,eAAO,MAAM,iCAAiC,kCAAkC,CAAC;AAEjF,eAAO,MAAM,2BAA2B,6BAA6B,CAAC;AAItE,gGAAgG;AAChG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAiCD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,OAAO,CAQhG;AAED,eAAO,MAAM,2BAA2B,8CAA8C,CAAC;AAEvF;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAiCzG;AAED,iGAAiG;AACjG,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,CAEpG;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,CAY3G"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Marks an element the view capture leaves out, with everything inside it: the platform overlay,
3
+ * the feedback controls, the branding banner and the debug overlays. A screenshot shows the app.
4
+ */
5
+ export declare const IKON_CAPTURE_EXCLUDE_ATTRIBUTE = "data-ikon-capture-exclude";
6
+ /**
7
+ * Marks an app element the element inspector has outlined. The capture keeps the element and drops
8
+ * the outline, which is the inspector's, not the app's.
9
+ */
10
+ export declare const IKON_INSPECT_OUTLINE_ATTRIBUTE = "data-ikon-inspect-outline";
11
+ export interface ViewCaptureImage {
12
+ png: Blob;
13
+ /** True when some content could not be read and is a placeholder or blank in the image. */
14
+ lostContent: boolean;
15
+ /** What was lost, one entry per cause, for the report. Empty when nothing was. */
16
+ lostReasons: string[];
17
+ }
18
+ /**
19
+ * Captures the view now and keeps the result for the server's `ikon.client.captureView` request
20
+ * that follows a tap, so the screenshot shows what the user was looking at when they tapped.
21
+ */
22
+ export declare function captureViewAtTap(root?: HTMLElement): Promise<ViewCaptureImage>;
23
+ /** The capture a recent tap started, handed out once. */
24
+ export declare function takeTapCapture(): Promise<ViewCaptureImage> | null;
25
+ /**
26
+ * Rasterises the page to a PNG, leaving out every element marked with
27
+ * {@link IKON_CAPTURE_EXCLUDE_ATTRIBUTE}.
28
+ *
29
+ * Canvas (2D and WebGL) and video pixels are copied in one animation frame, after the app has drawn
30
+ * it: a WebGL canvas without `preserveDrawingBuffer` is blank to any later read, and a video's
31
+ * current frame is what the user saw. Content the page may not read — a cross-origin image, canvas
32
+ * or video without CORS, a cross-origin frame — becomes a placeholder and is listed in `lostReasons`.
33
+ */
34
+ export declare function captureViewImage(root?: HTMLElement): Promise<ViewCaptureImage>;
35
+ //# sourceMappingURL=view-capture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-capture.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk/src/capture/view-capture.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,8BAA8B,8BAA8B,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,8BAA8B,CAAC;AA6B1E,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,IAAI,CAAC;IACV,2FAA2F;IAC3F,WAAW,EAAE,OAAO,CAAC;IACrB,kFAAkF;IAClF,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAUD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAI9E;AAED,yDAAyD;AACzD,wBAAgB,cAAc,IAAI,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,CASjE;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,GAAE,WAA2B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAwCnG"}
@@ -1,5 +1,5 @@
1
1
  import { EndpointSelector } from '../client/endpoint-selector';
2
- import { Entrypoint, EntrypointType, ProtocolMessage } from '../../shared/protocol/src/index.ts';
2
+ import { Entrypoint, EntrypointType, ProtocolMessage } from '@ikonai/protocol';
3
3
  import { HttpStreamMode } from '../transport/transport';
4
4
  /**
5
5
  * ChannelManager state.
@@ -132,7 +132,7 @@ export declare class ChannelManager {
132
132
  * Only checks when connected — non-sudden disconnects (SDK-initiated or server
133
133
  * stopping) clear the channels and transition to idle/stopped before this runs.
134
134
  */
135
- checkHealth(): void;
135
+ checkHealth(maxSilenceMs?: number): void;
136
136
  /**
137
137
  * Force every active channel to drop its transport and notify the manager,
138
138
  * kicking off the normal reconnect flow. Used when a higher layer has
@@ -187,3 +187,4 @@ export declare class ChannelManager {
187
187
  private startStabilityTimer;
188
188
  private clearStabilityTimer;
189
189
  }
190
+ //# sourceMappingURL=channel-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel-manager.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk/src/channel/channel-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAAE,KAAK,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,KAAK,eAAe,EAA2B,MAAM,kBAAkB,CAAC;AAKjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,GAAG,SAAS,GAAG,SAAS,CAAC;AAE/G;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,cAAc,EAAE,CAAC;IAExC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,uBAAuB,CAAC,EAAE,cAAc,CAAC;IAEzC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAEvD;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IAEvD;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAErD;;OAEG;IACH,OAAO,CAAC,E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ACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAWtC;;;OAGG;YACW,eAAe;IA2H7B;;OAEG;YACW,kBAAkB;IA6BhC;;OAEG;YACW,cAAc;IA0B5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAc/B,OAAO,CAAC,WAAW;IAUnB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAShC;;;;;;;OAOG;IACH,OAAO,CAAC,kBAAkB;IAgB1B;;;OAGG;YACW,gBAAgB;IA0E9B;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAahB,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,mBAAmB;CAM5B"}
@@ -1,4 +1,4 @@
1
- import { Entrypoint, EntrypointType, ProtocolMessage } from '../../shared/protocol/src/index.ts';
1
+ import { Entrypoint, EntrypointType, ProtocolMessage } from '@ikonai/protocol';
2
2
  import { HttpStreamMode } from '../transport/transport';
3
3
  /**
4
4
  * Channel state.
@@ -108,8 +108,11 @@ export declare class Channel {
108
108
  /**
109
109
  * Check transport health and trigger close if the connection is dead.
110
110
  * Used after tab resume to detect WebSockets closed by the OS while suspended.
111
+ *
112
+ * @param maxSilenceMs - Hold the link to a budget shorter than the promised cadence, for a
113
+ * caller that has independent reason to doubt it. Omitted, the promised cadence stands.
111
114
  */
112
- checkHealth(): void;
115
+ checkHealth(maxSilenceMs?: number): void;
113
116
  /**
114
117
  * Send a protocol message through the channel.
115
118
  */
@@ -135,3 +138,4 @@ export declare class Channel {
135
138
  */
136
139
  private setState;
137
140
  }
141
+ //# sourceMappingURL=channel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk/src/channel/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAqB,KAAK,eA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IAED;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;;;;OAKG;IACH,IAAI,cAAc,IAAI,cAAc,GAAG,IAAI,CAE1C;IAED;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB9B;;OAEG;IACH,UAAU,IAAI,IAAI;IAQlB;;;;;OAKG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQtC;;;;;;OAMG;IACH,WAAW,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;IAwBxC;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAQpC;;OAEG;YACW,gBAAgB;IA2C9B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAqB7B;;OAEG;IACH,OAAO,CAAC,WAAW;IAOnB;;OAEG;IACH,OAAO,CAAC,WAAW;IASnB;;OAEG;IACH,OAAO,CAAC,QAAQ;CAMjB"}
@@ -1,2 +1,3 @@
1
1
  export { Channel, type ChannelConfig, type ChannelState } from './channel';
2
2
  export { ChannelManager, type ChannelManagerConfig, type ChannelManagerState } from './channel-manager';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../sdk/sdk/src/channel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}