@q9labsai/chalk-client 5.0.1 → 5.2.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 (236) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/README.md +39 -0
  3. package/dist/access/base64-url.d.ts +0 -1
  4. package/dist/access/grant.d.ts +0 -1
  5. package/dist/access/manager.d.ts +0 -1
  6. package/dist/chat-files/http-transport.d.ts +0 -1
  7. package/dist/chat-files/index.d.ts +0 -1
  8. package/dist/chat-files/types.d.ts +3 -1
  9. package/dist/{chunk-IPAN4LUZ.js → chunk-BCO3AZUB.js} +1463 -583
  10. package/dist/{chunk-AVXJ4HQU.js → chunk-D2GXPX2P.js} +298 -47
  11. package/dist/{chunk-CMVO7USN.js → chunk-DHGAKJXP.js} +1 -1
  12. package/dist/{chunk-O2NOZKJP.js → chunk-DWKTGBHR.js} +20 -8
  13. package/dist/{chunk-2HJIJVE2.js → chunk-HO4745TX.js} +591 -5
  14. package/dist/client.d.ts +277 -1
  15. package/dist/collaboration/index.d.ts +0 -1
  16. package/dist/collaboration/types.d.ts +0 -1
  17. package/dist/collaboration/wire.d.ts +0 -1
  18. package/dist/connection/dependencies.d.ts +8 -3
  19. package/dist/connection/diagnostics.d.ts +3 -3
  20. package/dist/connection/index.d.ts +1 -1
  21. package/dist/connection/lifecycle.d.ts +3 -3
  22. package/dist/connection/media-devices.d.ts +0 -1
  23. package/dist/connection/production.d.ts +0 -1
  24. package/dist/connection/types.d.ts +4 -2
  25. package/dist/effect.d.ts +0 -1
  26. package/dist/effect.js +146 -4
  27. package/dist/foreground-deadline.d.ts +0 -1
  28. package/dist/generated/http-api.d.ts +273 -1
  29. package/dist/generated/schemas.d.ts +732 -7
  30. package/dist/generated/sync.d.ts +74 -4
  31. package/dist/generated/whiteboard-v1.d.ts +114 -9
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +21 -15
  34. package/dist/media/camera-uplink.d.ts +0 -1
  35. package/dist/media/capture-error.d.ts +0 -1
  36. package/dist/media/client.d.ts +3 -2
  37. package/dist/media/cloudflare-sfu.d.ts +0 -1
  38. package/dist/media/index.d.ts +0 -1
  39. package/dist/media/index.js +1 -1
  40. package/dist/media/observers.d.ts +0 -1
  41. package/dist/media/plane.d.ts +0 -1
  42. package/dist/media/remote-track-response.d.ts +0 -1
  43. package/dist/media/target.d.ts +0 -1
  44. package/dist/media/tracks.d.ts +0 -1
  45. package/dist/media/transport.d.ts +0 -1
  46. package/dist/media/types.d.ts +0 -1
  47. package/dist/public-invites/client.d.ts +0 -1
  48. package/dist/public-invites/index.d.ts +0 -1
  49. package/dist/public-invites/index.js +2 -2
  50. package/dist/public-invites/types.d.ts +0 -1
  51. package/dist/server/access-refresh.d.ts +0 -1
  52. package/dist/server/{chunk-C4XITY5U.js → chunk-XQOQTCUL.js} +22 -0
  53. package/dist/server/client.d.ts +0 -1
  54. package/dist/server/errors.d.cts +8 -1
  55. package/dist/server/errors.d.ts +8 -2
  56. package/dist/server/index.cjs +31 -7
  57. package/dist/server/index.d.cts +1 -1
  58. package/dist/server/index.d.ts +1 -2
  59. package/dist/server/index.js +10 -7
  60. package/dist/server/server-only.d.ts +0 -1
  61. package/dist/server/server-only.js +1 -1
  62. package/dist/server/transport.d.ts +0 -1
  63. package/dist/server/types.d.ts +0 -1
  64. package/dist/space-client/chat-controller-helpers.d.ts +0 -1
  65. package/dist/space-client/chat-controller.d.ts +0 -1
  66. package/dist/space-client/controller-effects.d.ts +0 -1
  67. package/dist/space-client/core.d.ts +0 -1
  68. package/dist/space-client/effect.d.ts +0 -1
  69. package/dist/space-client/errors.d.ts +4 -2
  70. package/dist/space-client/index.d.ts +1 -2
  71. package/dist/space-client/media-controller.d.ts +3 -2
  72. package/dist/space-client/media-device-selection.d.ts +0 -1
  73. package/dist/space-client/offline-actions-storage.d.ts +0 -1
  74. package/dist/space-client/offline-actions.d.ts +0 -1
  75. package/dist/space-client/participants-controller.d.ts +0 -1
  76. package/dist/space-client/promise-facade.d.ts +0 -1
  77. package/dist/space-client/reactions-controller.d.ts +0 -1
  78. package/dist/space-client/recording-controller.d.ts +0 -1
  79. package/dist/space-client/reload-rejoin.d.ts +1 -2
  80. package/dist/space-client/space-client.d.ts +0 -1
  81. package/dist/space-client/store.d.ts +0 -1
  82. package/dist/space-client/types.d.ts +15 -3
  83. package/dist/space-client/whiteboard-controller.d.ts +0 -1
  84. package/dist/sync/browser.d.ts +0 -1
  85. package/dist/sync/canonical.d.ts +0 -1
  86. package/dist/sync/connect-diagnostics.d.ts +10 -0
  87. package/dist/sync/dial-deadline.d.ts +3 -0
  88. package/dist/sync/errors.d.ts +0 -1
  89. package/dist/sync/index.d.ts +0 -1
  90. package/dist/sync/index.js +1 -1
  91. package/dist/sync/react-native.d.ts +0 -1
  92. package/dist/sync/types.d.ts +1 -1
  93. package/dist/sync/v1-client.d.ts +4 -2
  94. package/dist/sync/v1-codec.d.ts +0 -1
  95. package/dist/sync/v1-collaboration-state.d.ts +1 -1
  96. package/dist/sync/v1-command-scheduler.d.ts +0 -1
  97. package/dist/sync/v1-create.d.ts +0 -1
  98. package/dist/sync/v1-deferred.d.ts +0 -1
  99. package/dist/sync/v1-error.d.ts +0 -1
  100. package/dist/sync/v1-frame-signature.d.ts +0 -1
  101. package/dist/sync/v1-health.d.ts +15 -0
  102. package/dist/sync/v1-live-target-coordinator.d.ts +0 -1
  103. package/dist/sync/v1-persistence.d.ts +0 -1
  104. package/dist/sync/v1-platform-persistence.d.ts +0 -1
  105. package/dist/sync/v1-reducer.d.ts +3 -1
  106. package/dist/sync/v1-types.d.ts +14 -1
  107. package/dist/webhooks/errors.d.ts +0 -1
  108. package/dist/webhooks/generated/event-v1.d.ts +0 -1
  109. package/dist/webhooks/generated/fixtures-v1.d.ts +0 -1
  110. package/dist/webhooks/index.d.ts +0 -1
  111. package/dist/webhooks/processor.d.ts +0 -1
  112. package/dist/webhooks/server-only.d.ts +0 -1
  113. package/dist/webhooks/test.d.ts +0 -1
  114. package/dist/webhooks/types.d.ts +0 -1
  115. package/dist/webhooks/validate.d.ts +0 -1
  116. package/dist/webhooks/verify.d.ts +0 -1
  117. package/dist/whiteboard/file-download-transport.d.ts +0 -1
  118. package/dist/whiteboard/index.d.ts +2 -1
  119. package/dist/whiteboard/types.d.ts +54 -5
  120. package/dist/whiteboard/v1-client.d.ts +5 -2
  121. package/dist/whiteboard/v1-codec.d.ts +5 -2
  122. package/dist/whiteboard/v1-create.d.ts +0 -1
  123. package/dist/whiteboard/v1-multipart.d.ts +1 -2
  124. package/dist/whiteboard/v1-persistence.d.ts +0 -1
  125. package/dist/whiteboard/view-bounds.d.ts +5 -0
  126. package/dist/whiteboard/view-versions.d.ts +9 -0
  127. package/package.json +4 -2
  128. package/dist/access/base64-url.d.ts.map +0 -1
  129. package/dist/access/grant.d.ts.map +0 -1
  130. package/dist/access/grant.test.helpers.d.ts +0 -10
  131. package/dist/access/grant.test.helpers.d.ts.map +0 -1
  132. package/dist/access/manager.d.ts.map +0 -1
  133. package/dist/chat-files/http-transport.d.ts.map +0 -1
  134. package/dist/chat-files/index.d.ts.map +0 -1
  135. package/dist/chat-files/types.d.ts.map +0 -1
  136. package/dist/client.d.ts.map +0 -1
  137. package/dist/collaboration/index.d.ts.map +0 -1
  138. package/dist/collaboration/types.d.ts.map +0 -1
  139. package/dist/collaboration/wire.d.ts.map +0 -1
  140. package/dist/connection/dependencies.d.ts.map +0 -1
  141. package/dist/connection/diagnostics.d.ts.map +0 -1
  142. package/dist/connection/index.d.ts.map +0 -1
  143. package/dist/connection/lifecycle.d.ts.map +0 -1
  144. package/dist/connection/media-devices.d.ts.map +0 -1
  145. package/dist/connection/production.d.ts.map +0 -1
  146. package/dist/connection/types.d.ts.map +0 -1
  147. package/dist/effect.d.ts.map +0 -1
  148. package/dist/foreground-deadline.d.ts.map +0 -1
  149. package/dist/generated/http-api.d.ts.map +0 -1
  150. package/dist/generated/schemas.d.ts.map +0 -1
  151. package/dist/generated/sync.d.ts.map +0 -1
  152. package/dist/generated/whiteboard-v1.d.ts.map +0 -1
  153. package/dist/index.d.ts.map +0 -1
  154. package/dist/media/camera-uplink.d.ts.map +0 -1
  155. package/dist/media/capture-error.d.ts.map +0 -1
  156. package/dist/media/client.d.ts.map +0 -1
  157. package/dist/media/cloudflare-sfu.d.ts.map +0 -1
  158. package/dist/media/index.d.ts.map +0 -1
  159. package/dist/media/observers.d.ts.map +0 -1
  160. package/dist/media/plane.d.ts.map +0 -1
  161. package/dist/media/remote-track-response.d.ts.map +0 -1
  162. package/dist/media/target.d.ts.map +0 -1
  163. package/dist/media/tracks.d.ts.map +0 -1
  164. package/dist/media/transport.d.ts.map +0 -1
  165. package/dist/media/types.d.ts.map +0 -1
  166. package/dist/public-invites/client.d.ts.map +0 -1
  167. package/dist/public-invites/index.d.ts.map +0 -1
  168. package/dist/public-invites/types.d.ts.map +0 -1
  169. package/dist/server/access-refresh.d.ts.map +0 -1
  170. package/dist/server/client.d.ts.map +0 -1
  171. package/dist/server/errors.d.ts.map +0 -1
  172. package/dist/server/index.d.ts.map +0 -1
  173. package/dist/server/server-only.d.ts.map +0 -1
  174. package/dist/server/transport.d.ts.map +0 -1
  175. package/dist/server/types.d.ts.map +0 -1
  176. package/dist/space-client/chat-controller-helpers.d.ts.map +0 -1
  177. package/dist/space-client/chat-controller.d.ts.map +0 -1
  178. package/dist/space-client/controller-effects.d.ts.map +0 -1
  179. package/dist/space-client/core.d.ts.map +0 -1
  180. package/dist/space-client/core.test.helpers.d.ts +0 -15
  181. package/dist/space-client/core.test.helpers.d.ts.map +0 -1
  182. package/dist/space-client/effect.d.ts.map +0 -1
  183. package/dist/space-client/errors.d.ts.map +0 -1
  184. package/dist/space-client/index.d.ts.map +0 -1
  185. package/dist/space-client/media-controller.d.ts.map +0 -1
  186. package/dist/space-client/media-device-selection.d.ts.map +0 -1
  187. package/dist/space-client/offline-actions-storage.d.ts.map +0 -1
  188. package/dist/space-client/offline-actions.d.ts.map +0 -1
  189. package/dist/space-client/participants-controller.d.ts.map +0 -1
  190. package/dist/space-client/promise-facade.d.ts.map +0 -1
  191. package/dist/space-client/reactions-controller.d.ts.map +0 -1
  192. package/dist/space-client/recording-controller.d.ts.map +0 -1
  193. package/dist/space-client/reload-rejoin.d.ts.map +0 -1
  194. package/dist/space-client/space-client.d.ts.map +0 -1
  195. package/dist/space-client/store.d.ts.map +0 -1
  196. package/dist/space-client/terminal.test.helpers.d.ts +0 -136
  197. package/dist/space-client/terminal.test.helpers.d.ts.map +0 -1
  198. package/dist/space-client/types.d.ts.map +0 -1
  199. package/dist/space-client/whiteboard-controller.d.ts.map +0 -1
  200. package/dist/sync/browser.d.ts.map +0 -1
  201. package/dist/sync/canonical.d.ts.map +0 -1
  202. package/dist/sync/errors.d.ts.map +0 -1
  203. package/dist/sync/index.d.ts.map +0 -1
  204. package/dist/sync/react-native.d.ts.map +0 -1
  205. package/dist/sync/types.d.ts.map +0 -1
  206. package/dist/sync/v1-client.d.ts.map +0 -1
  207. package/dist/sync/v1-codec.d.ts.map +0 -1
  208. package/dist/sync/v1-collaboration-state.d.ts.map +0 -1
  209. package/dist/sync/v1-command-scheduler.d.ts.map +0 -1
  210. package/dist/sync/v1-create.d.ts.map +0 -1
  211. package/dist/sync/v1-deferred.d.ts.map +0 -1
  212. package/dist/sync/v1-error.d.ts.map +0 -1
  213. package/dist/sync/v1-frame-signature.d.ts.map +0 -1
  214. package/dist/sync/v1-live-target-coordinator.d.ts.map +0 -1
  215. package/dist/sync/v1-persistence.d.ts.map +0 -1
  216. package/dist/sync/v1-platform-persistence.d.ts.map +0 -1
  217. package/dist/sync/v1-reducer.d.ts.map +0 -1
  218. package/dist/sync/v1-types.d.ts.map +0 -1
  219. package/dist/webhooks/errors.d.ts.map +0 -1
  220. package/dist/webhooks/generated/event-v1.d.ts.map +0 -1
  221. package/dist/webhooks/generated/fixtures-v1.d.ts.map +0 -1
  222. package/dist/webhooks/index.d.ts.map +0 -1
  223. package/dist/webhooks/processor.d.ts.map +0 -1
  224. package/dist/webhooks/server-only.d.ts.map +0 -1
  225. package/dist/webhooks/test.d.ts.map +0 -1
  226. package/dist/webhooks/types.d.ts.map +0 -1
  227. package/dist/webhooks/validate.d.ts.map +0 -1
  228. package/dist/webhooks/verify.d.ts.map +0 -1
  229. package/dist/whiteboard/file-download-transport.d.ts.map +0 -1
  230. package/dist/whiteboard/index.d.ts.map +0 -1
  231. package/dist/whiteboard/types.d.ts.map +0 -1
  232. package/dist/whiteboard/v1-client.d.ts.map +0 -1
  233. package/dist/whiteboard/v1-codec.d.ts.map +0 -1
  234. package/dist/whiteboard/v1-create.d.ts.map +0 -1
  235. package/dist/whiteboard/v1-multipart.d.ts.map +0 -1
  236. package/dist/whiteboard/v1-persistence.d.ts.map +0 -1
@@ -7,6 +7,13 @@ export declare const SyncProtocolMetadata: {
7
7
  readonly value: 1;
8
8
  readonly transport: "websocket-json-text";
9
9
  readonly route: "/v1/sync";
10
+ readonly entryGeneration: {
11
+ readonly queryParameter: "entry_generation";
12
+ readonly newEntry: "new";
13
+ readonly resume: "previous welcome entry_generation";
14
+ readonly confirmation: "monotonic compare-and-set";
15
+ readonly scope: "participant";
16
+ };
10
17
  };
11
18
  readonly directions: {
12
19
  readonly clientToServer: "client-to-server";
@@ -27,7 +34,7 @@ export declare const SyncProtocolMetadata: {
27
34
  };
28
35
  }, {
29
36
  readonly id: "live";
30
- readonly accepts: readonly ["command", "live_target", "directed_request", "delivery_ack", "request_ack", "reaction_send", "chat_send", "chat_page_request", "chat_read_set", "chat_reaction_set", "ping"];
37
+ readonly accepts: readonly ["entered", "command", "live_target", "directed_request", "delivery_ack", "request_ack", "reaction_send", "chat_send", "chat_page_request", "chat_read_set", "chat_reaction_set", "ping"];
31
38
  readonly heartbeat: {
32
39
  readonly intervalMs: 20000;
33
40
  readonly missedDeadlinesBeforeClose: 2;
@@ -269,7 +276,7 @@ export declare const SyncProtocolMetadata: {
269
276
  }, {
270
277
  readonly code: 1008;
271
278
  readonly connection: "closed";
272
- readonly reasons: readonly ["invalid token", "policy violation"];
279
+ readonly reasons: readonly ["invalid token", "policy violation", "entry timeout"];
273
280
  }, {
274
281
  readonly code: 1009;
275
282
  readonly connection: "closed";
@@ -322,7 +329,7 @@ export declare const SyncCloseCodes: readonly [{
322
329
  }, {
323
330
  readonly code: 1008;
324
331
  readonly connection: "closed";
325
- readonly reasons: readonly ["invalid token", "policy violation"];
332
+ readonly reasons: readonly ["invalid token", "policy violation", "entry timeout"];
326
333
  }, {
327
334
  readonly code: 1009;
328
335
  readonly connection: "closed";
@@ -1312,6 +1319,8 @@ export declare const WelcomeSnapshotFrameSchema: Schema.Struct<{
1312
1319
  readonly state_schema_version: Schema.Number;
1313
1320
  readonly state_digest: Schema.String;
1314
1321
  }>;
1322
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1323
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1315
1324
  readonly mode: Schema.Literal<"snapshot">;
1316
1325
  readonly snapshot: Schema.Struct<{
1317
1326
  readonly control_revision: Schema.Number;
@@ -1358,6 +1367,8 @@ export declare const WelcomeReplayFrameSchema: Schema.Struct<{
1358
1367
  readonly state_schema_version: Schema.Number;
1359
1368
  readonly state_digest: Schema.String;
1360
1369
  }>;
1370
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1371
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1361
1372
  readonly mode: Schema.Literal<"replay">;
1362
1373
  }>;
1363
1374
  export declare const WelcomeUpToDateFrameSchema: Schema.Struct<{
@@ -1374,6 +1385,8 @@ export declare const WelcomeUpToDateFrameSchema: Schema.Struct<{
1374
1385
  readonly state_schema_version: Schema.Number;
1375
1386
  readonly state_digest: Schema.String;
1376
1387
  }>;
1388
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1389
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1377
1390
  readonly mode: Schema.Literal<"up_to_date">;
1378
1391
  }>;
1379
1392
  export declare const WelcomeTerminalFrameSchema: Schema.Struct<{
@@ -1390,6 +1403,8 @@ export declare const WelcomeTerminalFrameSchema: Schema.Struct<{
1390
1403
  readonly state_schema_version: Schema.Number;
1391
1404
  readonly state_digest: Schema.String;
1392
1405
  }>;
1406
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1407
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1393
1408
  readonly mode: Schema.Literal<"terminal">;
1394
1409
  readonly reason: Schema.Union<readonly [Schema.Literal<"episode_ended">, Schema.Literal<"participant_inactive">, Schema.Literal<"stale_participant_generation">]>;
1395
1410
  }>;
@@ -1407,6 +1422,8 @@ export declare const ExtendedWelcomeSnapshotFrameSchema: Schema.Struct<{
1407
1422
  readonly state_schema_version: Schema.Number;
1408
1423
  readonly state_digest: Schema.String;
1409
1424
  }>;
1425
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1426
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1410
1427
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1411
1428
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1412
1429
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1466,6 +1483,8 @@ export declare const ExtendedWelcomeReplayFrameSchema: Schema.Struct<{
1466
1483
  readonly state_schema_version: Schema.Number;
1467
1484
  readonly state_digest: Schema.String;
1468
1485
  }>;
1486
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1487
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1469
1488
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1470
1489
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1471
1490
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1495,6 +1514,8 @@ export declare const ExtendedWelcomeUpToDateFrameSchema: Schema.Struct<{
1495
1514
  readonly state_schema_version: Schema.Number;
1496
1515
  readonly state_digest: Schema.String;
1497
1516
  }>;
1517
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1518
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1498
1519
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1499
1520
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1500
1521
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1524,6 +1545,8 @@ export declare const ExtendedWelcomeTerminalFrameSchema: Schema.Struct<{
1524
1545
  readonly state_schema_version: Schema.Number;
1525
1546
  readonly state_digest: Schema.String;
1526
1547
  }>;
1548
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1549
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1527
1550
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1528
1551
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1529
1552
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1554,6 +1577,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1554
1577
  readonly state_schema_version: Schema.Number;
1555
1578
  readonly state_digest: Schema.String;
1556
1579
  }>;
1580
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1581
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1557
1582
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1558
1583
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1559
1584
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1612,6 +1637,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1612
1637
  readonly state_schema_version: Schema.Number;
1613
1638
  readonly state_digest: Schema.String;
1614
1639
  }>;
1640
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1641
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1615
1642
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1616
1643
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1617
1644
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1640,6 +1667,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1640
1667
  readonly state_schema_version: Schema.Number;
1641
1668
  readonly state_digest: Schema.String;
1642
1669
  }>;
1670
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1671
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1643
1672
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1644
1673
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1645
1674
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1668,6 +1697,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1668
1697
  readonly state_schema_version: Schema.Number;
1669
1698
  readonly state_digest: Schema.String;
1670
1699
  }>;
1700
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1701
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1671
1702
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
1672
1703
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
1673
1704
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -1697,6 +1728,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1697
1728
  readonly state_schema_version: Schema.Number;
1698
1729
  readonly state_digest: Schema.String;
1699
1730
  }>;
1731
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1732
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1700
1733
  readonly mode: Schema.Literal<"snapshot">;
1701
1734
  readonly snapshot: Schema.Struct<{
1702
1735
  readonly control_revision: Schema.Number;
@@ -1742,6 +1775,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1742
1775
  readonly state_schema_version: Schema.Number;
1743
1776
  readonly state_digest: Schema.String;
1744
1777
  }>;
1778
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1779
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1745
1780
  readonly mode: Schema.Literal<"replay">;
1746
1781
  }>, Schema.Struct<{
1747
1782
  readonly journey_id: Schema.optional<Schema.String>;
@@ -1757,6 +1792,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1757
1792
  readonly state_schema_version: Schema.Number;
1758
1793
  readonly state_digest: Schema.String;
1759
1794
  }>;
1795
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1796
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1760
1797
  readonly mode: Schema.Literal<"up_to_date">;
1761
1798
  }>, Schema.Struct<{
1762
1799
  readonly journey_id: Schema.optional<Schema.String>;
@@ -1772,6 +1809,8 @@ export declare const WelcomeFrameSchema: Schema.Union<readonly [Schema.Struct<{
1772
1809
  readonly state_schema_version: Schema.Number;
1773
1810
  readonly state_digest: Schema.String;
1774
1811
  }>;
1812
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
1813
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
1775
1814
  readonly mode: Schema.Literal<"terminal">;
1776
1815
  readonly reason: Schema.Union<readonly [Schema.Literal<"episode_ended">, Schema.Literal<"participant_inactive">, Schema.Literal<"stale_participant_generation">]>;
1777
1816
  }>]>;
@@ -2701,6 +2740,15 @@ export declare const ErrorFrameSchema: Schema.Struct<{
2701
2740
  readonly code: Schema.Union<readonly [Schema.Literal<"protocol_error">, Schema.Literal<"invalid_frame">, Schema.Literal<"unsupported_protocol">]>;
2702
2741
  readonly detail: Schema.String;
2703
2742
  }>;
2743
+ export declare const EnteredFrameSchema: Schema.Struct<{
2744
+ readonly type: Schema.Literal<"entered">;
2745
+ }>;
2746
+ export declare const EnteredAckFrameSchema: Schema.Struct<{
2747
+ readonly journey_id: Schema.optional<Schema.String>;
2748
+ readonly traceparent: Schema.optional<Schema.String>;
2749
+ readonly tracestate: Schema.optional<Schema.String>;
2750
+ readonly type: Schema.Literal<"entered_ack">;
2751
+ }>;
2704
2752
  export declare const PingFrameSchema: Schema.Struct<{
2705
2753
  readonly type: Schema.Literal<"ping">;
2706
2754
  }>;
@@ -2922,6 +2970,8 @@ export declare const SyncV1ClientFrameSchema: Schema.decodeTo<Schema.Union<reado
2922
2970
  readonly recovery_id: Schema.String;
2923
2971
  readonly revision: Schema.Number;
2924
2972
  readonly state_digest: Schema.String;
2973
+ }>, Schema.Struct<{
2974
+ readonly type: Schema.Literal<"entered">;
2925
2975
  }>, Schema.Struct<{
2926
2976
  readonly type: Schema.Literal<"ping">;
2927
2977
  }>]>, Schema.Unknown, never, never>;
@@ -2940,6 +2990,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
2940
2990
  readonly state_schema_version: Schema.Number;
2941
2991
  readonly state_digest: Schema.String;
2942
2992
  }>;
2993
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
2994
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
2943
2995
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
2944
2996
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
2945
2997
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -2998,6 +3050,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
2998
3050
  readonly state_schema_version: Schema.Number;
2999
3051
  readonly state_digest: Schema.String;
3000
3052
  }>;
3053
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
3054
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
3001
3055
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
3002
3056
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
3003
3057
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -3026,6 +3080,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
3026
3080
  readonly state_schema_version: Schema.Number;
3027
3081
  readonly state_digest: Schema.String;
3028
3082
  }>;
3083
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
3084
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
3029
3085
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
3030
3086
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
3031
3087
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -3054,6 +3110,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
3054
3110
  readonly state_schema_version: Schema.Number;
3055
3111
  readonly state_digest: Schema.String;
3056
3112
  }>;
3113
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
3114
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
3057
3115
  readonly extensions: Schema.Tuple<readonly [Schema.Struct<{
3058
3116
  readonly name: Schema.Literals<readonly ["collaboration_v1", "collaboration_v2"]>;
3059
3117
  readonly capabilities: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sendReaction">, Schema.Literal<"sendChat">]>>;
@@ -3083,6 +3141,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
3083
3141
  readonly state_schema_version: Schema.Number;
3084
3142
  readonly state_digest: Schema.String;
3085
3143
  }>;
3144
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
3145
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
3086
3146
  readonly mode: Schema.Literal<"snapshot">;
3087
3147
  readonly snapshot: Schema.Struct<{
3088
3148
  readonly control_revision: Schema.Number;
@@ -3128,6 +3188,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
3128
3188
  readonly state_schema_version: Schema.Number;
3129
3189
  readonly state_digest: Schema.String;
3130
3190
  }>;
3191
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
3192
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
3131
3193
  readonly mode: Schema.Literal<"replay">;
3132
3194
  }>, Schema.Struct<{
3133
3195
  readonly journey_id: Schema.optional<Schema.String>;
@@ -3143,6 +3205,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
3143
3205
  readonly state_schema_version: Schema.Number;
3144
3206
  readonly state_digest: Schema.String;
3145
3207
  }>;
3208
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
3209
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
3146
3210
  readonly mode: Schema.Literal<"up_to_date">;
3147
3211
  }>, Schema.Struct<{
3148
3212
  readonly journey_id: Schema.optional<Schema.String>;
@@ -3158,6 +3222,8 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
3158
3222
  readonly state_schema_version: Schema.Number;
3159
3223
  readonly state_digest: Schema.String;
3160
3224
  }>;
3225
+ readonly entry_confirmation: Schema.optionalKey<Schema.Literal<true>>;
3226
+ readonly entry_generation: Schema.optionalKey<Schema.Number>;
3161
3227
  readonly mode: Schema.Literal<"terminal">;
3162
3228
  readonly reason: Schema.Union<readonly [Schema.Literal<"episode_ended">, Schema.Literal<"participant_inactive">, Schema.Literal<"stale_participant_generation">]>;
3163
3229
  }>]>, Schema.Struct<{
@@ -4099,6 +4165,11 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
4099
4165
  readonly type: Schema.Literal<"error">;
4100
4166
  readonly code: Schema.Union<readonly [Schema.Literal<"protocol_error">, Schema.Literal<"invalid_frame">, Schema.Literal<"unsupported_protocol">]>;
4101
4167
  readonly detail: Schema.String;
4168
+ }>, Schema.Struct<{
4169
+ readonly journey_id: Schema.optional<Schema.String>;
4170
+ readonly traceparent: Schema.optional<Schema.String>;
4171
+ readonly tracestate: Schema.optional<Schema.String>;
4172
+ readonly type: Schema.Literal<"entered_ack">;
4102
4173
  }>, Schema.Struct<{
4103
4174
  readonly journey_id: Schema.optional<Schema.String>;
4104
4175
  readonly traceparent: Schema.optional<Schema.String>;
@@ -4107,4 +4178,3 @@ export declare const SyncV1ServerFrameSchema: Schema.decodeTo<Schema.Union<reado
4107
4178
  }>]>, Schema.Unknown, never, never>;
4108
4179
  export type SyncV1ServerFrame = typeof SyncV1ServerFrameSchema.Type;
4109
4180
  export declare function encodeSyncFrame(frame: SyncV1ClientFrame | SyncV1ServerFrame): string;
4110
- //# sourceMappingURL=sync.d.ts.map
@@ -12,6 +12,16 @@ export declare const WhiteboardV1ProtocolMetadata: {
12
12
  readonly name: "presentation_v1";
13
13
  readonly exactFields: readonly ["name"];
14
14
  };
15
+ readonly view: {
16
+ readonly name: "view_v1";
17
+ readonly exactFields: readonly ["name"];
18
+ readonly extendedExactFields: readonly ["name", "origins"];
19
+ readonly ownerExactFields: readonly ["name", "origins", "owner"];
20
+ };
21
+ readonly drawPolicy: {
22
+ readonly name: "draw_policy_v1";
23
+ readonly exactFields: readonly ["name"];
24
+ };
15
25
  };
16
26
  readonly identity: {
17
27
  readonly credential: "participant-access-token";
@@ -19,13 +29,14 @@ export declare const WhiteboardV1ProtocolMetadata: {
19
29
  readonly generationFenced: true;
20
30
  };
21
31
  readonly capabilities: readonly ["drawWhiteboard", "manageWhiteboard"];
32
+ readonly drawPolicies: readonly ["everyone", "hosts", "picked"];
22
33
  readonly phases: readonly [{
23
34
  readonly id: "awaiting_hello";
24
35
  readonly accepts: readonly ["hello", "ping"];
25
36
  readonly deadlineMs: 5000;
26
37
  }, {
27
38
  readonly id: "live";
28
- readonly accepts: readonly ["submit_update", "submit_update_part", "request_snapshot", "snapshot_ack", "clear", "set_draw_permission", "set_presentation", "cursor", "ping"];
39
+ readonly accepts: readonly ["submit_update", "submit_update_part", "request_snapshot", "snapshot_ack", "clear", "set_draw_permission", "set_draw_policy", "set_presentation", "cursor", "view", "ping"];
29
40
  readonly heartbeatIntervalMs: 20000;
30
41
  readonly missedDeadlinesBeforeClose: 2;
31
42
  }];
@@ -54,6 +65,7 @@ export declare const WhiteboardV1ProtocolMetadata: {
54
65
  readonly socketQueueMaxAgeMs: 5000;
55
66
  readonly cursorTtlMs: 10000;
56
67
  readonly cursorRatePerSecond: 60;
68
+ readonly viewPeopleMaxItems: 500;
57
69
  readonly pendingOperationMaxItems: 128;
58
70
  readonly multipartUpdateMaxParts: 128;
59
71
  readonly multipartUpdateMaxItems: 10000;
@@ -62,6 +74,7 @@ export declare const WhiteboardV1ProtocolMetadata: {
62
74
  readonly sceneElementMaxItems: 10000;
63
75
  readonly sceneJsonMaxBytes: 67108864;
64
76
  readonly sceneObjectMaxBytes: 268435456;
77
+ readonly drawAccessMaxGrants: 1024;
65
78
  };
66
79
  readonly cursor: {
67
80
  readonly sceneId: "uuid";
@@ -97,6 +110,9 @@ export declare const WhiteboardV1ProtocolMetadata: {
97
110
  readonly setDrawPermission: {
98
111
  readonly exactFields: readonly ["type", "operation_id", "participant_id", "can_draw"];
99
112
  };
113
+ readonly setDrawPolicy: {
114
+ readonly exactFields: readonly ["type", "operation_id", "policy"];
115
+ };
100
116
  readonly setPresentation: {
101
117
  readonly exactFields: readonly ["type", "operation_id", "presenting"];
102
118
  };
@@ -104,7 +120,18 @@ export declare const WhiteboardV1ProtocolMetadata: {
104
120
  readonly clientExactFields: readonly ["type", "x", "y"];
105
121
  readonly serverExactFields: readonly ["type", "participant_id", "display_name", "x", "y", "occurred_at"];
106
122
  };
123
+ readonly view: {
124
+ readonly maxCoordinate: 1000000;
125
+ readonly maxExtent: 2000000;
126
+ readonly epochField: "origin_epoch";
127
+ readonly inputFields: readonly ["input_id", "move"];
128
+ readonly ownerFields: readonly ["owner_id", "owner_sequence"];
129
+ readonly originFields: readonly ["origin_participant_id", "origin_sequence"];
130
+ readonly clientExactFields: readonly ["type", "x", "y", "width", "height", "bring"];
131
+ readonly serverExactFields: readonly ["type", "participant_id", "display_name", "x", "y", "width", "height", "bring", "occurred_at"];
132
+ };
107
133
  readonly welcome: {
134
+ readonly ownerField: "view_owner_id";
108
135
  readonly exactFields: readonly ["type", "protocol", "participant_id", "participant_generation", "capabilities", "participant_capabilities", "scene_id", "revision", "can_draw"];
109
136
  readonly extendedExactFields: readonly ["type", "protocol", "participant_id", "participant_generation", "capabilities", "participant_capabilities", "scene_id", "revision", "can_draw", "presenting"];
110
137
  };
@@ -123,6 +150,10 @@ export declare const WhiteboardV1ProtocolMetadata: {
123
150
  readonly permissionUpdated: {
124
151
  readonly exactFields: readonly ["type", "participant_id", "can_draw"];
125
152
  };
153
+ readonly drawAccess: {
154
+ readonly exactFields: readonly ["type", "policy", "can_draw", "capabilities", "grants"];
155
+ readonly grantExactFields: readonly ["participant_id", "can_draw"];
156
+ };
126
157
  readonly presentationUpdated: {
127
158
  readonly exactFields: readonly ["type", "scene_id", "revision", "presenting"];
128
159
  };
@@ -133,9 +164,9 @@ export declare const WhiteboardV1ProtocolMetadata: {
133
164
  readonly exactFields: readonly ["type", "correlation_id", "operation", "code", "recoverable", "message"];
134
165
  };
135
166
  };
136
- readonly clientFrames: readonly ["hello", "submit_update", "submit_update_part", "request_snapshot", "snapshot_ack", "clear", "set_draw_permission", "set_presentation", "cursor", "ping"];
137
- readonly serverFrames: readonly ["welcome", "snapshot_page", "update", "update_part", "commit", "cursor", "permission_updated", "presentation_updated", "reset_required", "operation_error", "pong"];
138
- readonly receiptOperations: readonly ["submit_update", "clear", "set_draw_permission", "set_presentation"];
167
+ readonly clientFrames: readonly ["hello", "submit_update", "submit_update_part", "request_snapshot", "snapshot_ack", "clear", "set_draw_permission", "set_draw_policy", "set_presentation", "cursor", "view", "ping"];
168
+ readonly serverFrames: readonly ["welcome", "snapshot_page", "update", "update_part", "commit", "cursor", "view", "permission_updated", "draw_access", "presentation_updated", "reset_required", "operation_error", "view_ack", "pong"];
169
+ readonly receiptOperations: readonly ["submit_update", "clear", "set_draw_permission", "set_draw_policy", "set_presentation"];
139
170
  readonly receiptOutcomes: readonly ["committed", "duplicate"];
140
171
  readonly resetReasons: readonly ["scene_changed", "cursor_expired", "gap"];
141
172
  readonly errorCodes: readonly ["unavailable", "permission_denied", "invalid_payload", "stale_scene", "cursor_reset_required", "rate_limited", "overloaded", "storage_unavailable"];
@@ -195,6 +226,7 @@ export declare const WhiteboardV1ProtocolLimits: {
195
226
  readonly socketQueueMaxAgeMs: 5000;
196
227
  readonly cursorTtlMs: 10000;
197
228
  readonly cursorRatePerSecond: 60;
229
+ readonly viewPeopleMaxItems: 500;
198
230
  readonly pendingOperationMaxItems: 128;
199
231
  readonly multipartUpdateMaxParts: 128;
200
232
  readonly multipartUpdateMaxItems: 10000;
@@ -203,6 +235,7 @@ export declare const WhiteboardV1ProtocolLimits: {
203
235
  readonly sceneElementMaxItems: 10000;
204
236
  readonly sceneJsonMaxBytes: 67108864;
205
237
  readonly sceneObjectMaxBytes: 268435456;
238
+ readonly drawAccessMaxGrants: 1024;
206
239
  };
207
240
  export type WhiteboardV1JsonValue = null | boolean | number | string | readonly WhiteboardV1JsonValue[] | {
208
241
  readonly [key: string]: WhiteboardV1JsonValue;
@@ -226,6 +259,48 @@ export type WhiteboardV1SharedAppState = {
226
259
  export type WhiteboardV1PresentationExtension = {
227
260
  readonly name: "presentation_v1";
228
261
  };
262
+ export type WhiteboardV1ViewExtension = {
263
+ readonly name: "view_v1";
264
+ } | {
265
+ readonly name: "view_v1";
266
+ readonly origins: true;
267
+ } | {
268
+ readonly name: "view_v1";
269
+ readonly origins: true;
270
+ readonly owner: true;
271
+ };
272
+ export type WhiteboardV1DrawPolicyExtension = {
273
+ readonly name: "draw_policy_v1";
274
+ };
275
+ export type WhiteboardV1Extensions = readonly [WhiteboardV1PresentationExtension] | readonly [WhiteboardV1PresentationExtension, WhiteboardV1ViewExtension] | readonly [WhiteboardV1DrawPolicyExtension] | readonly [WhiteboardV1PresentationExtension, WhiteboardV1DrawPolicyExtension] | readonly [WhiteboardV1PresentationExtension, WhiteboardV1ViewExtension, WhiteboardV1DrawPolicyExtension];
276
+ export type WhiteboardV1DrawPolicy = "everyone" | "hosts" | "picked";
277
+ export type WhiteboardV1DrawGrant = {
278
+ readonly participant_id: string;
279
+ readonly can_draw: boolean;
280
+ };
281
+ export type WhiteboardV1ViewOrigin = {
282
+ readonly origin_participant_id: string;
283
+ readonly origin_sequence: number;
284
+ readonly origin_epoch?: string;
285
+ } | {
286
+ readonly origin_participant_id?: never;
287
+ readonly origin_sequence?: never;
288
+ readonly origin_epoch?: never;
289
+ };
290
+ export type WhiteboardV1ViewInput = {
291
+ readonly input_id: string;
292
+ readonly move: boolean;
293
+ } | {
294
+ readonly input_id?: never;
295
+ readonly move?: never;
296
+ };
297
+ export type WhiteboardV1ViewOrder = {
298
+ readonly owner_id: string;
299
+ readonly owner_sequence: number;
300
+ } | {
301
+ readonly owner_id?: never;
302
+ readonly owner_sequence?: never;
303
+ };
229
304
  export type WhiteboardV1ClientFrame = {
230
305
  readonly type: "hello";
231
306
  readonly protocol: "whiteboard-v1";
@@ -236,7 +311,7 @@ export type WhiteboardV1ClientFrame = {
236
311
  readonly protocol: "whiteboard-v1";
237
312
  readonly token: string;
238
313
  readonly cursor: WhiteboardV1Cursor | null;
239
- readonly extensions: readonly [WhiteboardV1PresentationExtension];
314
+ readonly extensions: WhiteboardV1Extensions;
240
315
  } | {
241
316
  readonly type: "submit_update";
242
317
  readonly operation_id: string;
@@ -270,6 +345,10 @@ export type WhiteboardV1ClientFrame = {
270
345
  readonly operation_id: string;
271
346
  readonly participant_id: string;
272
347
  readonly can_draw: boolean;
348
+ } | {
349
+ readonly type: "set_draw_policy";
350
+ readonly operation_id: string;
351
+ readonly policy: WhiteboardV1DrawPolicy;
273
352
  } | {
274
353
  readonly type: "set_presentation";
275
354
  readonly operation_id: string;
@@ -278,7 +357,14 @@ export type WhiteboardV1ClientFrame = {
278
357
  readonly type: "cursor";
279
358
  readonly x: number;
280
359
  readonly y: number;
281
- } | {
360
+ } | ({
361
+ readonly type: "view";
362
+ readonly x: number;
363
+ readonly y: number;
364
+ readonly width: number;
365
+ readonly height: number;
366
+ readonly bring: boolean;
367
+ } & WhiteboardV1ViewOrigin & WhiteboardV1ViewInput) | {
282
368
  readonly type: "ping";
283
369
  };
284
370
  export type WhiteboardV1ServerFrame = {
@@ -302,6 +388,7 @@ export type WhiteboardV1ServerFrame = {
302
388
  readonly revision: string;
303
389
  readonly can_draw: boolean;
304
390
  readonly presenting: boolean;
391
+ readonly view_owner_id?: string;
305
392
  } | {
306
393
  readonly type: "snapshot_page";
307
394
  readonly request_id: string;
@@ -339,10 +426,26 @@ export type WhiteboardV1ServerFrame = {
339
426
  readonly x: number;
340
427
  readonly y: number;
341
428
  readonly occurred_at: string;
342
- } | {
429
+ } | ({
430
+ readonly type: "view";
431
+ readonly participant_id: string;
432
+ readonly display_name: string;
433
+ readonly x: number;
434
+ readonly y: number;
435
+ readonly width: number;
436
+ readonly height: number;
437
+ readonly bring: boolean;
438
+ readonly occurred_at: string;
439
+ } & WhiteboardV1ViewOrigin & WhiteboardV1ViewOrder) | {
343
440
  readonly type: "permission_updated";
344
441
  readonly participant_id: string;
345
442
  readonly can_draw: boolean;
443
+ } | {
444
+ readonly type: "draw_access";
445
+ readonly policy: WhiteboardV1DrawPolicy;
446
+ readonly can_draw: boolean;
447
+ readonly capabilities: readonly ("drawWhiteboard" | "manageWhiteboard")[];
448
+ readonly grants: readonly WhiteboardV1DrawGrant[];
346
449
  } | {
347
450
  readonly type: "presentation_updated";
348
451
  readonly scene_id: string;
@@ -355,10 +458,13 @@ export type WhiteboardV1ServerFrame = {
355
458
  } | {
356
459
  readonly type: "operation_error";
357
460
  readonly correlation_id: string;
358
- readonly operation: "submit_update" | "request_snapshot" | "clear" | "set_draw_permission" | "set_presentation";
461
+ readonly operation: "submit_update" | "request_snapshot" | "clear" | "set_draw_permission" | "set_draw_policy" | "set_presentation";
359
462
  readonly code: "unavailable" | "permission_denied" | "invalid_payload" | "stale_scene" | "cursor_reset_required" | "rate_limited" | "overloaded" | "storage_unavailable";
360
463
  readonly recoverable: boolean;
361
464
  readonly message: string;
465
+ } | {
466
+ readonly type: "view_ack";
467
+ readonly input_id: string;
362
468
  } | {
363
469
  readonly type: "pong";
364
470
  };
@@ -367,4 +473,3 @@ export declare const WhiteboardV1ElementSchema: Schema.compose<Schema.declare<Wh
367
473
  export declare const WhiteboardV1ClientFrameSchema: Schema.compose<Schema.declare<WhiteboardV1ClientFrame, WhiteboardV1ClientFrame>, Schema.Unknown>;
368
474
  export declare const WhiteboardV1ServerFrameSchema: Schema.compose<Schema.declare<WhiteboardV1ServerFrame, WhiteboardV1ServerFrame>, Schema.Unknown>;
369
475
  export declare function encodeWhiteboardV1Frame(frame: WhiteboardV1ClientFrame | WhiteboardV1ServerFrame): string;
370
- //# sourceMappingURL=whiteboard-v1.d.ts.map
package/dist/index.d.ts CHANGED
@@ -5,4 +5,4 @@ export * from "./space-client";
5
5
  export * from "./sync";
6
6
  export * from "./whiteboard";
7
7
  export * from "./public-invites";
8
- //# sourceMappingURL=index.d.ts.map
8
+ export { formatSyncConnectDiagnostic } from "./sync/connect-diagnostics";
package/dist/index.js CHANGED
@@ -5,6 +5,8 @@ import {
5
5
  ChalkChatFileError,
6
6
  ChalkWhiteboardV1Client,
7
7
  ChalkWhiteboardV1Error,
8
+ ChalkWhiteboardViewBounds,
9
+ ChalkWhiteboardViewVersions,
8
10
  InMemoryChalkWhiteboardV1PendingOperationStore,
9
11
  SpaceClientError,
10
12
  createChalkChatFileHttpTransport,
@@ -13,18 +15,7 @@ import {
13
15
  createSpaceClient,
14
16
  decodeWhiteboardV1ServerFrame,
15
17
  encodeWhiteboardV1ClientFrame
16
- } from "./chunk-IPAN4LUZ.js";
17
- import {
18
- createChalkPublicClient,
19
- createChalkPublicInviteClient
20
- } from "./chunk-CMVO7USN.js";
21
- import {
22
- ArrivalInvalidHandleError,
23
- ArrivalUnavailableError,
24
- SpacePublicInviteUnavailableError,
25
- parseParsedAccessGrant,
26
- requireAccessGrant
27
- } from "./chunk-2HJIJVE2.js";
18
+ } from "./chunk-BCO3AZUB.js";
28
19
  import {
29
20
  CloudflareSFUClient,
30
21
  CloudflareSFUError,
@@ -37,7 +28,18 @@ import {
37
28
  requireSFUDescription,
38
29
  validatePublicationSnapshot,
39
30
  waitFor
40
- } from "./chunk-O2NOZKJP.js";
31
+ } from "./chunk-DWKTGBHR.js";
32
+ import {
33
+ createChalkPublicClient,
34
+ createChalkPublicInviteClient
35
+ } from "./chunk-DHGAKJXP.js";
36
+ import {
37
+ ArrivalInvalidHandleError,
38
+ ArrivalUnavailableError,
39
+ SpacePublicInviteUnavailableError,
40
+ parseParsedAccessGrant,
41
+ requireAccessGrant
42
+ } from "./chunk-HO4745TX.js";
41
43
  import {
42
44
  AsyncStorageV1PendingTargetStore,
43
45
  InMemoryV1PendingTargetStore,
@@ -62,10 +64,11 @@ import {
62
64
  decodeV1ClientFrame,
63
65
  decodeV1ServerFrame,
64
66
  encodeV1ClientFrame,
67
+ formatSyncConnectDiagnostic,
65
68
  optimisticV1Control,
66
69
  reactionFromFrame,
67
70
  restoreV1Snapshot
68
- } from "./chunk-AVXJ4HQU.js";
71
+ } from "./chunk-D2GXPX2P.js";
69
72
 
70
73
  // src/space-client/reload-rejoin.ts
71
74
  import { Schema } from "effect";
@@ -109,7 +112,7 @@ async function resumeReloadRejoin(marker, refresh) {
109
112
  }
110
113
  function reloadRejoinAccess(access) {
111
114
  const parsed = parseParsedAccessGrant(access);
112
- return { episodeId: parsed.subject.episodeId, participantId: parsed.subject.participantId, participantGeneration: parsed.subject.participantGeneration, mediaProof: parsed.media.token };
115
+ return { tenantId: parsed.subject.tenantId, episodeId: parsed.subject.episodeId, participantId: parsed.subject.participantId, participantGeneration: parsed.subject.participantGeneration, mediaProof: parsed.media.token };
113
116
  }
114
117
  export {
115
118
  ArrivalInvalidHandleError,
@@ -121,6 +124,8 @@ export {
121
124
  ChalkChatFileError,
122
125
  ChalkWhiteboardV1Client,
123
126
  ChalkWhiteboardV1Error,
127
+ ChalkWhiteboardViewBounds,
128
+ ChalkWhiteboardViewVersions,
124
129
  CloudflareSFUClient,
125
130
  CloudflareSFUError,
126
131
  InMemoryChalkWhiteboardV1PendingOperationStore,
@@ -159,6 +164,7 @@ export {
159
164
  describeMediaCaptureError,
160
165
  encodeV1ClientFrame,
161
166
  encodeWhiteboardV1ClientFrame,
167
+ formatSyncConnectDiagnostic,
162
168
  optimisticV1Control,
163
169
  parseCloudflareSFUPublicationID,
164
170
  publicationKey,
@@ -10,4 +10,3 @@ export declare function cameraUplinkBitrate(stats: Iterable<{
10
10
  readonly selected?: boolean;
11
11
  readonly availableOutgoingBitrate?: number;
12
12
  }>): number | undefined;
13
- //# sourceMappingURL=camera-uplink.d.ts.map
@@ -24,4 +24,3 @@ export declare function describeMediaCaptureError(cause: unknown): {
24
24
  readonly recoverable: true;
25
25
  readonly message: "Media capture failed. Try again or enter with devices off.";
26
26
  };
27
- //# sourceMappingURL=capture-error.d.ts.map