@neta-art/cohub 3.0.0 → 3.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 (96) hide show
  1. package/README.md +33 -2
  2. package/dist/{board.d.ts → board/animation.d.ts} +4 -2
  3. package/dist/{chunks/board.js → board/animation.js} +5 -44
  4. package/dist/board/codec.d.ts +25 -0
  5. package/dist/board/codec.js +252 -0
  6. package/dist/board/core/bindings.d.ts +45 -0
  7. package/dist/board/core/bindings.js +162 -0
  8. package/dist/board/core/draw-geometry.d.ts +31 -0
  9. package/dist/board/core/draw-geometry.js +183 -0
  10. package/dist/board/core/export-assets.d.ts +14 -0
  11. package/dist/board/core/export-assets.js +22 -0
  12. package/dist/board/core/export-plan.d.ts +84 -0
  13. package/dist/board/core/export-plan.js +128 -0
  14. package/dist/board/core/file-preview.d.ts +176 -0
  15. package/dist/board/core/file-preview.js +271 -0
  16. package/dist/board/core/palette.d.ts +42 -0
  17. package/dist/board/core/palette.js +138 -0
  18. package/dist/board/core/shape-definition.d.ts +35 -0
  19. package/dist/board/core/shape-definition.js +64 -0
  20. package/dist/board/core/shape-types.d.ts +144 -0
  21. package/dist/board/core/shape-types.js +27 -0
  22. package/dist/board/core/text-metrics.d.ts +18 -0
  23. package/dist/board/core/text-metrics.js +43 -0
  24. package/dist/board/export/index.d.ts +56 -0
  25. package/dist/board/export/index.js +86 -0
  26. package/dist/board/export/scene.d.ts +35 -0
  27. package/dist/board/export/scene.js +69 -0
  28. package/dist/board/geometry.d.ts +131 -0
  29. package/dist/board/geometry.js +468 -0
  30. package/dist/board/headless/index.d.ts +69 -0
  31. package/dist/board/headless/index.js +150 -0
  32. package/dist/board/image-key.d.ts +19 -0
  33. package/dist/board/image-key.js +34 -0
  34. package/dist/board/index.d.ts +16 -0
  35. package/dist/board/index.js +16 -0
  36. package/dist/board/render/index.d.ts +6 -0
  37. package/dist/board/render/index.js +6 -0
  38. package/dist/board/render/palette.d.ts +5 -0
  39. package/dist/board/render/palette.js +30 -0
  40. package/dist/board/render/renderers/arrow-card-renderer.d.ts +5 -0
  41. package/dist/board/render/renderers/arrow-card-renderer.js +157 -0
  42. package/dist/board/render/renderers/base-card-renderer.d.ts +46 -0
  43. package/dist/board/render/renderers/base-card-renderer.js +153 -0
  44. package/dist/board/render/renderers/board-renderer-registry.d.ts +85 -0
  45. package/dist/board/render/renderers/board-renderer-registry.js +43 -0
  46. package/dist/board/render/renderers/draw-card-renderer.d.ts +5 -0
  47. package/dist/board/render/renderers/draw-card-renderer.js +82 -0
  48. package/dist/board/render/renderers/far-plate.d.ts +39 -0
  49. package/dist/board/render/renderers/far-plate.js +92 -0
  50. package/dist/board/render/renderers/file-card-renderer.d.ts +33 -0
  51. package/dist/board/render/renderers/file-card-renderer.js +371 -0
  52. package/dist/board/render/renderers/frame-card-renderer.d.ts +5 -0
  53. package/dist/board/render/renderers/frame-card-renderer.js +99 -0
  54. package/dist/board/render/renderers/geo-card-renderer.d.ts +5 -0
  55. package/dist/board/render/renderers/geo-card-renderer.js +128 -0
  56. package/dist/board/render/renderers/image-card-renderer.d.ts +8 -0
  57. package/dist/board/render/renderers/image-card-renderer.js +138 -0
  58. package/dist/board/render/renderers/note-card-renderer.d.ts +5 -0
  59. package/dist/board/render/renderers/note-card-renderer.js +112 -0
  60. package/dist/board/render/renderers/text-card-renderer.d.ts +7 -0
  61. package/dist/board/render/renderers/text-card-renderer.js +94 -0
  62. package/dist/board/render/renderers/unknown-card-renderer.d.ts +5 -0
  63. package/dist/board/render/renderers/unknown-card-renderer.js +102 -0
  64. package/dist/board/render/renderers/video-card-renderer.d.ts +7 -0
  65. package/dist/board/render/renderers/video-card-renderer.js +146 -0
  66. package/dist/board/render/text-measurement.d.ts +30 -0
  67. package/dist/board/render/text-measurement.js +57 -0
  68. package/dist/board/render/text-resolution.d.ts +16 -0
  69. package/dist/board/render/text-resolution.js +43 -0
  70. package/dist/board/render/themes/board-theme-registry.d.ts +20 -0
  71. package/dist/board/render/themes/board-theme-registry.js +13 -0
  72. package/dist/board/render/themes/clean-theme.d.ts +5 -0
  73. package/dist/board/render/themes/clean-theme.js +102 -0
  74. package/dist/chunks/http.d.ts +10 -40
  75. package/dist/chunks/http.js +26 -4
  76. package/dist/chunks/transport.js +4 -2
  77. package/dist/chunks/websocket.d.ts +832 -21
  78. package/dist/chunks/websocket.js +19 -2
  79. package/dist/http.d.ts +2 -3
  80. package/dist/index.d.ts +100 -5
  81. package/dist/index.js +391 -1
  82. package/dist/protocol/dist/board-constants.d.ts +23 -0
  83. package/dist/protocol/dist/board-constants.js +60 -0
  84. package/dist/protocol/dist/board-document.d.ts +1124 -0
  85. package/dist/protocol/dist/board-document.js +331 -0
  86. package/dist/protocol/dist/board.d.ts +186 -0
  87. package/dist/protocol/dist/board.js +207 -0
  88. package/dist/protocol/dist/index.d.ts +5 -0
  89. package/dist/protocol/dist/index.js +5 -0
  90. package/dist/protocol/dist/provenance.js +12 -0
  91. package/dist/protocol/dist/realtime/board-awareness.d.ts +1 -0
  92. package/dist/protocol/dist/realtime/board-awareness.js +117 -0
  93. package/dist/protocol/dist/realtime/types.d.ts +2 -0
  94. package/package.json +39 -4
  95. package/dist/board.js +0 -2
  96. package/dist/chunks/board.d.ts +0 -2589
@@ -1,22 +1,39 @@
1
- import { g as BoardPlaybackSnapshot, m as BoardOperation } from "./board.js";
2
1
  import { n as CohubEnvironment } from "./environment.js";
3
- //#region ../protocol/dist/billing.d.ts
4
- /**
5
- * Standard billing payload attached under the `billing` key of any response
6
- * or realtime event that involves a billing gate. Present on 402 error bodies
7
- * (blocked / not entitled), on success responses carrying a soft debt warning,
8
- * and on realtime error events. `conversion` always drives the shared upgrade
9
- * UI; balance fields appear only for balance-based gates.
10
- *
11
- * `conversion` is intentionally `unknown` here to keep the protocol layer free
12
- * of a billing dependency — clients validate it against `BillingConversionIntent`.
13
- */
14
- type BillingPayload = {
15
- conversion: unknown;
16
- status?: "blocked" | "allowed_with_debt";
17
- netUsd?: number;
18
- hardNegativeLimitUsd?: number;
19
- };
2
+ import { z } from "zod";
3
+ //#region ../protocol/dist/provenance.d.ts
4
+ /** Request provenance via X-Cohub-Source-* headers. Never used for authorization. */
5
+ declare const COHUB_SOURCE_HEADER: {
6
+ readonly space: "X-Cohub-Source-Space";
7
+ readonly session: "X-Cohub-Source-Session";
8
+ readonly turn: "X-Cohub-Source-Turn";
9
+ readonly toolCall: "X-Cohub-Source-Tool-Call";
10
+ readonly via: "X-Cohub-Source-Via";
11
+ };
12
+ type RequestSourceVia = "cli" | "bash" | "tool" | "api" | "web" | (string & {});
13
+ /** Caller context: via (channel) and optional identity fields. */
14
+ type RequestSource = {
15
+ spaceId?: string;
16
+ sessionId?: string;
17
+ turnId?: string;
18
+ toolCallId?: string;
19
+ via?: RequestSourceVia;
20
+ };
21
+ declare const isRequestSourceUuid: (value: unknown) => value is string;
22
+ declare const REQUEST_SOURCE_VIA_MAX_LENGTH = 64;
23
+ declare const isRequestSourceEmpty: (source: RequestSource | null | undefined) => boolean;
24
+ declare const hasRequestSourceIdentity: (source: RequestSource | null | undefined) => boolean;
25
+ /** Drop invalid UUIDs; via-only is valid. */
26
+ declare const normalizeRequestSource: (input: unknown) => RequestSource | null;
27
+ declare const parseRequestSourceFromHeaders: (getHeader: (name: string) => string | null | undefined) => RequestSource | null;
28
+ declare const requestSourceToHeaders: (source: RequestSource | null | undefined) => Record<string, string>;
29
+ /** Read COHUB_* env into a RequestSource. */
30
+ declare const readRequestSourceFromEnv: (env?: Record<string, string | undefined>, defaults?: {
31
+ via?: RequestSourceVia;
32
+ }) => RequestSource | null;
33
+ declare const resolveRequestSourceChannel: (source: RequestSource | null | undefined, fallback?: string) => string;
34
+ /** Put identity under meta.source; strip body source. Via-only is skipped. */
35
+ declare const mergeRequestSourceIntoMeta: (meta: Record<string, unknown> | null | undefined, headerSource: RequestSource | null | undefined) => Record<string, unknown> | null;
36
+ declare const COHUB_SOURCE_HEADER_NAMES: readonly string[];
20
37
  //#endregion
21
38
  //#region ../protocol/dist/core/content.d.ts
22
39
  type ContentBlockMeta = Record<string, unknown>;
@@ -64,6 +81,24 @@ type ContentBlock = {
64
81
  _meta?: ContentBlockMeta;
65
82
  };
66
83
  //#endregion
84
+ //#region ../protocol/dist/billing.d.ts
85
+ /**
86
+ * Standard billing payload attached under the `billing` key of any response
87
+ * or realtime event that involves a billing gate. Present on 402 error bodies
88
+ * (blocked / not entitled), on success responses carrying a soft debt warning,
89
+ * and on realtime error events. `conversion` always drives the shared upgrade
90
+ * UI; balance fields appear only for balance-based gates.
91
+ *
92
+ * `conversion` is intentionally `unknown` here to keep the protocol layer free
93
+ * of a billing dependency — clients validate it against `BillingConversionIntent`.
94
+ */
95
+ type BillingPayload = {
96
+ conversion: unknown;
97
+ status?: "blocked" | "allowed_with_debt";
98
+ netUsd?: number;
99
+ hardNegativeLimitUsd?: number;
100
+ };
101
+ //#endregion
67
102
  //#region ../protocol/dist/core/usage.d.ts
68
103
  type Usage = {
69
104
  input?: number;
@@ -377,8 +412,756 @@ type SpacePublicEndpoint = {
377
412
  };
378
413
  type SpacePublicEndpoints = Record<string, SpacePublicEndpoint>;
379
414
  //#endregion
415
+ //#region ../protocol/dist/board-constants.d.ts
416
+ type BoardRenderCost = {
417
+ particles: number;
418
+ vertices: number;
419
+ dynamicVertices: number;
420
+ drawCalls: number;
421
+ filterPasses: number;
422
+ renderTexturePixels: number;
423
+ textureBytes: number;
424
+ bufferBytes: number;
425
+ simulationSteps: number;
426
+ };
427
+ type BoardCapability = {
428
+ kind: "preset" | "clip" | "effect" | "shader";
429
+ id: string;
430
+ version: number;
431
+ digest?: string;
432
+ renderers?: Array<"webgpu" | "webgl">;
433
+ fallbackId?: string;
434
+ schema?: Record<string, unknown>;
435
+ };
436
+ //#endregion
437
+ //#region ../protocol/dist/board.d.ts
438
+ declare const BoardManifestSchema: z.ZodObject<{
439
+ kind: z.ZodLiteral<"cohub.board.manifest">;
440
+ version: z.ZodLiteral<1>;
441
+ boardId: z.ZodString;
442
+ title: z.ZodString;
443
+ }, z.core.$strip>;
444
+ type BoardManifest = z.infer<typeof BoardManifestSchema>;
445
+ declare const BoardTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
446
+ type: z.ZodLiteral<"node">;
447
+ nodeId: z.ZodString;
448
+ }, z.core.$strip>, z.ZodObject<{
449
+ type: z.ZodLiteral<"effect">;
450
+ effectId: z.ZodString;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ type: z.ZodLiteral<"board">;
453
+ }, z.core.$strip>, z.ZodObject<{
454
+ type: z.ZodLiteral<"camera">;
455
+ }, z.core.$strip>], "type">;
456
+ declare const BoardAssetRefSchema: z.ZodObject<{
457
+ type: z.ZodEnum<{
458
+ extension: "extension";
459
+ "space-file": "space-file";
460
+ }>;
461
+ ref: z.ZodString;
462
+ digest: z.ZodOptional<z.ZodString>;
463
+ }, z.core.$strip>;
464
+ declare const BoardKeyframeSchema: z.ZodObject<{
465
+ at: z.ZodNumber;
466
+ value: z.ZodUnknown;
467
+ easing: z.ZodOptional<z.ZodString>;
468
+ }, z.core.$strip>;
469
+ declare const BoardClipSchema: z.ZodObject<{
470
+ id: z.ZodString;
471
+ sequenceId: z.ZodString;
472
+ kind: z.ZodString;
473
+ kindVersion: z.ZodNumber;
474
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
475
+ type: z.ZodLiteral<"node">;
476
+ nodeId: z.ZodString;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ type: z.ZodLiteral<"effect">;
479
+ effectId: z.ZodString;
480
+ }, z.core.$strip>, z.ZodObject<{
481
+ type: z.ZodLiteral<"board">;
482
+ }, z.core.$strip>, z.ZodObject<{
483
+ type: z.ZodLiteral<"camera">;
484
+ }, z.core.$strip>], "type">;
485
+ start: z.ZodNumber;
486
+ duration: z.ZodNumber;
487
+ layer: z.ZodDefault<z.ZodEnum<{
488
+ behind: "behind";
489
+ content: "content";
490
+ front: "front";
491
+ screen: "screen";
492
+ }>>;
493
+ fill: z.ZodDefault<z.ZodEnum<{
494
+ backwards: "backwards";
495
+ both: "both";
496
+ forwards: "forwards";
497
+ none: "none";
498
+ }>>;
499
+ easing: z.ZodDefault<z.ZodString>;
500
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
501
+ keyframes: z.ZodDefault<z.ZodArray<z.ZodObject<{
502
+ at: z.ZodNumber;
503
+ value: z.ZodUnknown;
504
+ easing: z.ZodOptional<z.ZodString>;
505
+ }, z.core.$strip>>>;
506
+ assetRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
507
+ type: z.ZodEnum<{
508
+ extension: "extension";
509
+ "space-file": "space-file";
510
+ }>;
511
+ ref: z.ZodString;
512
+ digest: z.ZodOptional<z.ZodString>;
513
+ }, z.core.$strip>>>;
514
+ seed: z.ZodString;
515
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
516
+ }, z.core.$strip>;
517
+ declare const BoardEffectSchema: z.ZodObject<{
518
+ id: z.ZodString;
519
+ boardId: z.ZodString;
520
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
521
+ type: z.ZodLiteral<"node">;
522
+ nodeId: z.ZodString;
523
+ }, z.core.$strip>, z.ZodObject<{
524
+ type: z.ZodLiteral<"board">;
525
+ }, z.core.$strip>], "type">;
526
+ kind: z.ZodString;
527
+ kindVersion: z.ZodNumber;
528
+ enabled: z.ZodDefault<z.ZodBoolean>;
529
+ lifecycle: z.ZodEnum<{
530
+ manual: "manual";
531
+ persistent: "persistent";
532
+ "when-visible": "when-visible";
533
+ }>;
534
+ timeOrigin: z.ZodEnum<{
535
+ activation: "activation";
536
+ board: "board";
537
+ visible: "visible";
538
+ }>;
539
+ layer: z.ZodDefault<z.ZodEnum<{
540
+ behind: "behind";
541
+ front: "front";
542
+ screen: "screen";
543
+ }>>;
544
+ seed: z.ZodString;
545
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
546
+ assetRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
547
+ type: z.ZodEnum<{
548
+ extension: "extension";
549
+ "space-file": "space-file";
550
+ }>;
551
+ ref: z.ZodString;
552
+ digest: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strip>>>;
554
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
555
+ revision: z.ZodNumber;
556
+ }, z.core.$strip>;
557
+ declare const BoardSequenceSchema: z.ZodObject<{
558
+ id: z.ZodString;
559
+ boardId: z.ZodString;
560
+ name: z.ZodString;
561
+ duration: z.ZodNumber;
562
+ seed: z.ZodString;
563
+ restPose: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
564
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
565
+ revision: z.ZodNumber;
566
+ }, z.core.$strip>;
567
+ type BoardTarget = z.infer<typeof BoardTargetSchema>;
568
+ type BoardAssetRef = z.infer<typeof BoardAssetRefSchema>;
569
+ type BoardKeyframe = z.infer<typeof BoardKeyframeSchema>;
570
+ type BoardClip = z.infer<typeof BoardClipSchema>;
571
+ type BoardEffect = z.infer<typeof BoardEffectSchema>;
572
+ type BoardSequence = z.infer<typeof BoardSequenceSchema>;
573
+ type BoardRecord = {
574
+ id: string;
575
+ spaceId: string;
576
+ title: string;
577
+ version: number;
578
+ metadata: Record<string, unknown>;
579
+ createdAt: string | null;
580
+ updatedAt: string | null;
581
+ };
582
+ type BoardNodeRecord = {
583
+ boardId: string;
584
+ nodeId: string;
585
+ type: string;
586
+ parentId: string | null;
587
+ orderKey: string | null;
588
+ x: number;
589
+ y: number;
590
+ width: number;
591
+ height: number;
592
+ rotation: number;
593
+ refKind: string | null;
594
+ refPath: string | null;
595
+ refUrl: string | null;
596
+ view: Record<string, unknown>;
597
+ style: Record<string, unknown>;
598
+ data: Record<string, unknown>;
599
+ version: number;
600
+ createdAt: string | null;
601
+ updatedAt: string | null;
602
+ };
603
+ type BoardNodeInput = Omit<BoardNodeRecord, "boardId" | "version" | "createdAt" | "updatedAt">;
604
+ declare const BOARD_DELETE_REASONS: readonly ["user-delete", "orphan-cleanup", "layout-replace", "placeholder-cascade"];
605
+ type BoardDeleteReason = (typeof BOARD_DELETE_REASONS)[number] | (string & {});
606
+ type BoardOperationBase = {
607
+ opId?: string;
608
+ /** Optional local undo hint. Servers recompute authoritative inverse data. */
609
+ inverse?: Record<string, unknown>;
610
+ };
611
+ type BoardOperation = (BoardOperationBase & {
612
+ type: "board.patch";
613
+ payload: {
614
+ patch: {
615
+ title?: string;
616
+ metadata?: Record<string, unknown>;
617
+ };
618
+ };
619
+ }) | (BoardOperationBase & {
620
+ type: "node.create";
621
+ payload: {
622
+ node: BoardNodeInput;
623
+ };
624
+ }) | (BoardOperationBase & {
625
+ type: "node.patch";
626
+ payload: {
627
+ nodeId: string;
628
+ patch: Partial<BoardNodeInput>;
629
+ };
630
+ }) | (BoardOperationBase & {
631
+ type: "node.delete";
632
+ payload: {
633
+ nodeId: string;
634
+ reason?: BoardDeleteReason;
635
+ };
636
+ }) | (BoardOperationBase & {
637
+ type: "effect.upsert";
638
+ payload: {
639
+ effect: Omit<BoardEffect, "boardId" | "revision">;
640
+ };
641
+ }) | (BoardOperationBase & {
642
+ type: "effect.delete";
643
+ payload: {
644
+ effectId: string;
645
+ };
646
+ }) | (BoardOperationBase & {
647
+ type: "sequence.upsert";
648
+ payload: {
649
+ sequence: Omit<BoardSequence, "boardId" | "revision">;
650
+ clips: Array<Omit<BoardClip, "sequenceId">>;
651
+ };
652
+ }) | (BoardOperationBase & {
653
+ type: "sequence.delete";
654
+ payload: {
655
+ sequenceId: string;
656
+ };
657
+ });
658
+ type BoardTransaction = {
659
+ txId: string;
660
+ boardId: string;
661
+ baseVersion: number;
662
+ clientId?: string | null;
663
+ undoGroupId?: string | null;
664
+ operations: BoardOperation[];
665
+ };
666
+ type BoardBootstrap = {
667
+ board: BoardRecord;
668
+ nodes: BoardNodeRecord[];
669
+ effects: BoardEffect[];
670
+ sequences: BoardSequence[];
671
+ clips: BoardClip[];
672
+ playback: BoardPlaybackSnapshot | null;
673
+ };
674
+ declare const BoardCreateInputSchema: z.ZodObject<{
675
+ path: z.ZodString;
676
+ title: z.ZodOptional<z.ZodString>;
677
+ nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
678
+ nodeId: z.ZodString;
679
+ type: z.ZodString;
680
+ parentId: z.ZodNullable<z.ZodString>;
681
+ orderKey: z.ZodNullable<z.ZodString>;
682
+ x: z.ZodNumber;
683
+ y: z.ZodNumber;
684
+ width: z.ZodNumber;
685
+ height: z.ZodNumber;
686
+ rotation: z.ZodNumber;
687
+ refKind: z.ZodNullable<z.ZodString>;
688
+ refPath: z.ZodNullable<z.ZodString>;
689
+ refUrl: z.ZodNullable<z.ZodString>;
690
+ view: z.ZodRecord<z.ZodString, z.ZodUnknown>;
691
+ style: z.ZodRecord<z.ZodString, z.ZodUnknown>;
692
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
693
+ }, z.core.$strip>>>;
694
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
695
+ id: z.ZodString;
696
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
697
+ type: z.ZodLiteral<"node">;
698
+ nodeId: z.ZodString;
699
+ }, z.core.$strip>, z.ZodObject<{
700
+ type: z.ZodLiteral<"board">;
701
+ }, z.core.$strip>], "type">;
702
+ kind: z.ZodString;
703
+ kindVersion: z.ZodNumber;
704
+ enabled: z.ZodDefault<z.ZodBoolean>;
705
+ lifecycle: z.ZodEnum<{
706
+ manual: "manual";
707
+ persistent: "persistent";
708
+ "when-visible": "when-visible";
709
+ }>;
710
+ timeOrigin: z.ZodEnum<{
711
+ activation: "activation";
712
+ board: "board";
713
+ visible: "visible";
714
+ }>;
715
+ layer: z.ZodDefault<z.ZodEnum<{
716
+ behind: "behind";
717
+ front: "front";
718
+ screen: "screen";
719
+ }>>;
720
+ seed: z.ZodString;
721
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
722
+ assetRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
723
+ type: z.ZodEnum<{
724
+ extension: "extension";
725
+ "space-file": "space-file";
726
+ }>;
727
+ ref: z.ZodString;
728
+ digest: z.ZodOptional<z.ZodString>;
729
+ }, z.core.$strip>>>;
730
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
731
+ }, z.core.$strip>>>;
732
+ sequences: z.ZodOptional<z.ZodArray<z.ZodObject<{
733
+ sequence: z.ZodObject<{
734
+ id: z.ZodString;
735
+ name: z.ZodString;
736
+ duration: z.ZodNumber;
737
+ seed: z.ZodString;
738
+ restPose: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
739
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
740
+ }, z.core.$strip>;
741
+ clips: z.ZodArray<z.ZodObject<{
742
+ id: z.ZodString;
743
+ kind: z.ZodString;
744
+ kindVersion: z.ZodNumber;
745
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
746
+ type: z.ZodLiteral<"node">;
747
+ nodeId: z.ZodString;
748
+ }, z.core.$strip>, z.ZodObject<{
749
+ type: z.ZodLiteral<"effect">;
750
+ effectId: z.ZodString;
751
+ }, z.core.$strip>, z.ZodObject<{
752
+ type: z.ZodLiteral<"board">;
753
+ }, z.core.$strip>, z.ZodObject<{
754
+ type: z.ZodLiteral<"camera">;
755
+ }, z.core.$strip>], "type">;
756
+ start: z.ZodNumber;
757
+ duration: z.ZodNumber;
758
+ layer: z.ZodDefault<z.ZodEnum<{
759
+ behind: "behind";
760
+ content: "content";
761
+ front: "front";
762
+ screen: "screen";
763
+ }>>;
764
+ fill: z.ZodDefault<z.ZodEnum<{
765
+ backwards: "backwards";
766
+ both: "both";
767
+ forwards: "forwards";
768
+ none: "none";
769
+ }>>;
770
+ easing: z.ZodDefault<z.ZodString>;
771
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
772
+ keyframes: z.ZodDefault<z.ZodArray<z.ZodObject<{
773
+ at: z.ZodNumber;
774
+ value: z.ZodUnknown;
775
+ easing: z.ZodOptional<z.ZodString>;
776
+ }, z.core.$strip>>>;
777
+ assetRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
778
+ type: z.ZodEnum<{
779
+ extension: "extension";
780
+ "space-file": "space-file";
781
+ }>;
782
+ ref: z.ZodString;
783
+ digest: z.ZodOptional<z.ZodString>;
784
+ }, z.core.$strip>>>;
785
+ seed: z.ZodString;
786
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
787
+ }, z.core.$strip>>;
788
+ }, z.core.$strip>>>;
789
+ }, z.core.$strip>;
790
+ type BoardCreateInput = z.infer<typeof BoardCreateInputSchema>;
791
+ declare const BoardInspectInputSchema: z.ZodObject<{
792
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
793
+ clips: "clips";
794
+ effects: "effects";
795
+ nodes: "nodes";
796
+ playback: "playback";
797
+ sequences: "sequences";
798
+ }>>>;
799
+ viewport: z.ZodOptional<z.ZodObject<{
800
+ x: z.ZodNumber;
801
+ y: z.ZodNumber;
802
+ width: z.ZodNumber;
803
+ height: z.ZodNumber;
804
+ }, z.core.$strip>>;
805
+ }, z.core.$strip>;
806
+ type BoardInspectInput = z.infer<typeof BoardInspectInputSchema>;
807
+ type BoardDiagnostic = {
808
+ severity: "info" | "warning" | "error";
809
+ code: string;
810
+ message: string;
811
+ path?: string;
812
+ adaptation?: Record<string, unknown>;
813
+ };
814
+ type BoardValidationResult = {
815
+ valid: boolean;
816
+ diagnostics: BoardDiagnostic[];
817
+ peakCost: BoardRenderCost;
818
+ };
819
+ type BoardCapabilities = {
820
+ protocolVersion: 1;
821
+ capabilities: BoardCapability[];
822
+ limits: BoardRenderCost;
823
+ };
824
+ type BoardPlaybackStatus = "playing" | "paused" | "stopped";
825
+ type BoardPlaybackSnapshot = {
826
+ boardId: string;
827
+ playbackId: string;
828
+ sequenceId: string;
829
+ sequenceRevision: number;
830
+ playbackRevision: number;
831
+ status: BoardPlaybackStatus;
832
+ position: number;
833
+ effectiveAt: number;
834
+ timeScale: number;
835
+ seed: string;
836
+ };
837
+ declare const BoardPlaybackCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
838
+ commandId: z.ZodString;
839
+ type: z.ZodLiteral<"play">;
840
+ sequenceId: z.ZodString;
841
+ position: z.ZodOptional<z.ZodNumber>;
842
+ timeScale: z.ZodOptional<z.ZodNumber>;
843
+ shared: z.ZodOptional<z.ZodBoolean>;
844
+ seed: z.ZodOptional<z.ZodString>;
845
+ }, z.core.$strip>, z.ZodObject<{
846
+ commandId: z.ZodString;
847
+ type: z.ZodLiteral<"pause">;
848
+ playbackId: z.ZodString;
849
+ }, z.core.$strip>, z.ZodObject<{
850
+ commandId: z.ZodString;
851
+ type: z.ZodLiteral<"seek">;
852
+ playbackId: z.ZodString;
853
+ position: z.ZodNumber;
854
+ }, z.core.$strip>, z.ZodObject<{
855
+ commandId: z.ZodString;
856
+ type: z.ZodLiteral<"stop">;
857
+ playbackId: z.ZodString;
858
+ }, z.core.$strip>], "type">;
859
+ type BoardPlaybackCommand = z.infer<typeof BoardPlaybackCommandSchema>;
860
+ //#endregion
861
+ //#region ../protocol/dist/realtime/board-awareness.d.ts
862
+ declare const BoardAwarenessNodePreviewSchema: z.ZodObject<{
863
+ nodeId: z.ZodString;
864
+ frame: z.ZodObject<{
865
+ x: z.ZodNumber;
866
+ y: z.ZodNumber;
867
+ width: z.ZodNumber;
868
+ height: z.ZodNumber;
869
+ rotation: z.ZodNumber;
870
+ }, z.core.$strip>;
871
+ arrow: z.ZodOptional<z.ZodObject<{
872
+ start: z.ZodUnion<readonly [z.ZodObject<{
873
+ kind: z.ZodLiteral<"point">;
874
+ x: z.ZodNumber;
875
+ y: z.ZodNumber;
876
+ }, z.core.$strip>, z.ZodObject<{
877
+ kind: z.ZodLiteral<"binding">;
878
+ target: z.ZodString;
879
+ nx: z.ZodNumber;
880
+ ny: z.ZodNumber;
881
+ precise: z.ZodBoolean;
882
+ }, z.core.$strip>]>;
883
+ end: z.ZodUnion<readonly [z.ZodObject<{
884
+ kind: z.ZodLiteral<"point">;
885
+ x: z.ZodNumber;
886
+ y: z.ZodNumber;
887
+ }, z.core.$strip>, z.ZodObject<{
888
+ kind: z.ZodLiteral<"binding">;
889
+ target: z.ZodString;
890
+ nx: z.ZodNumber;
891
+ ny: z.ZodNumber;
892
+ precise: z.ZodBoolean;
893
+ }, z.core.$strip>]>;
894
+ bend: z.ZodNumber;
895
+ }, z.core.$strip>>;
896
+ }, z.core.$strip>;
897
+ declare const BoardAwarenessStateUpdateSchema: z.ZodObject<{
898
+ type: z.ZodLiteral<"state">;
899
+ client: z.ZodOptional<z.ZodObject<{
900
+ formFactor: z.ZodEnum<{
901
+ desktop: "desktop";
902
+ mobile: "mobile";
903
+ }>;
904
+ }, z.core.$strip>>;
905
+ cursor: z.ZodNullable<z.ZodObject<{
906
+ x: z.ZodNumber;
907
+ y: z.ZodNumber;
908
+ pointerType: z.ZodEnum<{
909
+ mouse: "mouse";
910
+ pen: "pen";
911
+ touch: "touch";
912
+ }>;
913
+ }, z.core.$strip>>;
914
+ tool: z.ZodString;
915
+ selection: z.ZodObject<{
916
+ ids: z.ZodArray<z.ZodString>;
917
+ count: z.ZodNumber;
918
+ bounds: z.ZodNullable<z.ZodObject<{
919
+ x: z.ZodNumber;
920
+ y: z.ZodNumber;
921
+ width: z.ZodNumber;
922
+ height: z.ZodNumber;
923
+ rotation: z.ZodNumber;
924
+ }, z.core.$strip>>;
925
+ }, z.core.$strip>;
926
+ editingId: z.ZodNullable<z.ZodString>;
927
+ }, z.core.$strip>;
928
+ declare const BoardAwarenessGestureSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
929
+ kind: z.ZodLiteral<"draw">;
930
+ id: z.ZodString;
931
+ nodeId: z.ZodString;
932
+ color: z.ZodString;
933
+ size: z.ZodNumber;
934
+ from: z.ZodNumber;
935
+ points: z.ZodArray<z.ZodObject<{
936
+ x: z.ZodNumber;
937
+ y: z.ZodNumber;
938
+ p: z.ZodNumber;
939
+ }, z.core.$strip>>;
940
+ }, z.core.$strip>, z.ZodObject<{
941
+ kind: z.ZodLiteral<"arrow">;
942
+ id: z.ZodString;
943
+ nodeId: z.ZodString;
944
+ start: z.ZodObject<{
945
+ x: z.ZodNumber;
946
+ y: z.ZodNumber;
947
+ }, z.core.$strip>;
948
+ current: z.ZodObject<{
949
+ x: z.ZodNumber;
950
+ y: z.ZodNumber;
951
+ }, z.core.$strip>;
952
+ color: z.ZodString;
953
+ }, z.core.$strip>, z.ZodObject<{
954
+ kind: z.ZodLiteral<"box">;
955
+ id: z.ZodString;
956
+ nodeId: z.ZodString;
957
+ shape: z.ZodEnum<{
958
+ frame: "frame";
959
+ geo: "geo";
960
+ }>;
961
+ start: z.ZodObject<{
962
+ x: z.ZodNumber;
963
+ y: z.ZodNumber;
964
+ }, z.core.$strip>;
965
+ current: z.ZodObject<{
966
+ x: z.ZodNumber;
967
+ y: z.ZodNumber;
968
+ }, z.core.$strip>;
969
+ color: z.ZodString;
970
+ geo: z.ZodString;
971
+ }, z.core.$strip>, z.ZodObject<{
972
+ kind: z.ZodLiteral<"transform">;
973
+ id: z.ZodString;
974
+ mode: z.ZodEnum<{
975
+ arrow: "arrow";
976
+ resize: "resize";
977
+ rotate: "rotate";
978
+ translate: "translate";
979
+ }>;
980
+ nodes: z.ZodArray<z.ZodObject<{
981
+ nodeId: z.ZodString;
982
+ frame: z.ZodObject<{
983
+ x: z.ZodNumber;
984
+ y: z.ZodNumber;
985
+ width: z.ZodNumber;
986
+ height: z.ZodNumber;
987
+ rotation: z.ZodNumber;
988
+ }, z.core.$strip>;
989
+ arrow: z.ZodOptional<z.ZodObject<{
990
+ start: z.ZodUnion<readonly [z.ZodObject<{
991
+ kind: z.ZodLiteral<"point">;
992
+ x: z.ZodNumber;
993
+ y: z.ZodNumber;
994
+ }, z.core.$strip>, z.ZodObject<{
995
+ kind: z.ZodLiteral<"binding">;
996
+ target: z.ZodString;
997
+ nx: z.ZodNumber;
998
+ ny: z.ZodNumber;
999
+ precise: z.ZodBoolean;
1000
+ }, z.core.$strip>]>;
1001
+ end: z.ZodUnion<readonly [z.ZodObject<{
1002
+ kind: z.ZodLiteral<"point">;
1003
+ x: z.ZodNumber;
1004
+ y: z.ZodNumber;
1005
+ }, z.core.$strip>, z.ZodObject<{
1006
+ kind: z.ZodLiteral<"binding">;
1007
+ target: z.ZodString;
1008
+ nx: z.ZodNumber;
1009
+ ny: z.ZodNumber;
1010
+ precise: z.ZodBoolean;
1011
+ }, z.core.$strip>]>;
1012
+ bend: z.ZodNumber;
1013
+ }, z.core.$strip>>;
1014
+ }, z.core.$strip>>;
1015
+ bounds: z.ZodNullable<z.ZodObject<{
1016
+ x: z.ZodNumber;
1017
+ y: z.ZodNumber;
1018
+ width: z.ZodNumber;
1019
+ height: z.ZodNumber;
1020
+ rotation: z.ZodNumber;
1021
+ }, z.core.$strip>>;
1022
+ }, z.core.$strip>], "kind">;
1023
+ declare const BoardAwarenessUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1024
+ type: z.ZodLiteral<"state">;
1025
+ client: z.ZodOptional<z.ZodObject<{
1026
+ formFactor: z.ZodEnum<{
1027
+ desktop: "desktop";
1028
+ mobile: "mobile";
1029
+ }>;
1030
+ }, z.core.$strip>>;
1031
+ cursor: z.ZodNullable<z.ZodObject<{
1032
+ x: z.ZodNumber;
1033
+ y: z.ZodNumber;
1034
+ pointerType: z.ZodEnum<{
1035
+ mouse: "mouse";
1036
+ pen: "pen";
1037
+ touch: "touch";
1038
+ }>;
1039
+ }, z.core.$strip>>;
1040
+ tool: z.ZodString;
1041
+ selection: z.ZodObject<{
1042
+ ids: z.ZodArray<z.ZodString>;
1043
+ count: z.ZodNumber;
1044
+ bounds: z.ZodNullable<z.ZodObject<{
1045
+ x: z.ZodNumber;
1046
+ y: z.ZodNumber;
1047
+ width: z.ZodNumber;
1048
+ height: z.ZodNumber;
1049
+ rotation: z.ZodNumber;
1050
+ }, z.core.$strip>>;
1051
+ }, z.core.$strip>;
1052
+ editingId: z.ZodNullable<z.ZodString>;
1053
+ }, z.core.$strip>, z.ZodObject<{
1054
+ type: z.ZodLiteral<"gesture">;
1055
+ gesture: z.ZodDiscriminatedUnion<[z.ZodObject<{
1056
+ kind: z.ZodLiteral<"draw">;
1057
+ id: z.ZodString;
1058
+ nodeId: z.ZodString;
1059
+ color: z.ZodString;
1060
+ size: z.ZodNumber;
1061
+ from: z.ZodNumber;
1062
+ points: z.ZodArray<z.ZodObject<{
1063
+ x: z.ZodNumber;
1064
+ y: z.ZodNumber;
1065
+ p: z.ZodNumber;
1066
+ }, z.core.$strip>>;
1067
+ }, z.core.$strip>, z.ZodObject<{
1068
+ kind: z.ZodLiteral<"arrow">;
1069
+ id: z.ZodString;
1070
+ nodeId: z.ZodString;
1071
+ start: z.ZodObject<{
1072
+ x: z.ZodNumber;
1073
+ y: z.ZodNumber;
1074
+ }, z.core.$strip>;
1075
+ current: z.ZodObject<{
1076
+ x: z.ZodNumber;
1077
+ y: z.ZodNumber;
1078
+ }, z.core.$strip>;
1079
+ color: z.ZodString;
1080
+ }, z.core.$strip>, z.ZodObject<{
1081
+ kind: z.ZodLiteral<"box">;
1082
+ id: z.ZodString;
1083
+ nodeId: z.ZodString;
1084
+ shape: z.ZodEnum<{
1085
+ frame: "frame";
1086
+ geo: "geo";
1087
+ }>;
1088
+ start: z.ZodObject<{
1089
+ x: z.ZodNumber;
1090
+ y: z.ZodNumber;
1091
+ }, z.core.$strip>;
1092
+ current: z.ZodObject<{
1093
+ x: z.ZodNumber;
1094
+ y: z.ZodNumber;
1095
+ }, z.core.$strip>;
1096
+ color: z.ZodString;
1097
+ geo: z.ZodString;
1098
+ }, z.core.$strip>, z.ZodObject<{
1099
+ kind: z.ZodLiteral<"transform">;
1100
+ id: z.ZodString;
1101
+ mode: z.ZodEnum<{
1102
+ arrow: "arrow";
1103
+ resize: "resize";
1104
+ rotate: "rotate";
1105
+ translate: "translate";
1106
+ }>;
1107
+ nodes: z.ZodArray<z.ZodObject<{
1108
+ nodeId: z.ZodString;
1109
+ frame: z.ZodObject<{
1110
+ x: z.ZodNumber;
1111
+ y: z.ZodNumber;
1112
+ width: z.ZodNumber;
1113
+ height: z.ZodNumber;
1114
+ rotation: z.ZodNumber;
1115
+ }, z.core.$strip>;
1116
+ arrow: z.ZodOptional<z.ZodObject<{
1117
+ start: z.ZodUnion<readonly [z.ZodObject<{
1118
+ kind: z.ZodLiteral<"point">;
1119
+ x: z.ZodNumber;
1120
+ y: z.ZodNumber;
1121
+ }, z.core.$strip>, z.ZodObject<{
1122
+ kind: z.ZodLiteral<"binding">;
1123
+ target: z.ZodString;
1124
+ nx: z.ZodNumber;
1125
+ ny: z.ZodNumber;
1126
+ precise: z.ZodBoolean;
1127
+ }, z.core.$strip>]>;
1128
+ end: z.ZodUnion<readonly [z.ZodObject<{
1129
+ kind: z.ZodLiteral<"point">;
1130
+ x: z.ZodNumber;
1131
+ y: z.ZodNumber;
1132
+ }, z.core.$strip>, z.ZodObject<{
1133
+ kind: z.ZodLiteral<"binding">;
1134
+ target: z.ZodString;
1135
+ nx: z.ZodNumber;
1136
+ ny: z.ZodNumber;
1137
+ precise: z.ZodBoolean;
1138
+ }, z.core.$strip>]>;
1139
+ bend: z.ZodNumber;
1140
+ }, z.core.$strip>>;
1141
+ }, z.core.$strip>>;
1142
+ bounds: z.ZodNullable<z.ZodObject<{
1143
+ x: z.ZodNumber;
1144
+ y: z.ZodNumber;
1145
+ width: z.ZodNumber;
1146
+ height: z.ZodNumber;
1147
+ rotation: z.ZodNumber;
1148
+ }, z.core.$strip>>;
1149
+ }, z.core.$strip>], "kind">;
1150
+ }, z.core.$strip>, z.ZodObject<{
1151
+ type: z.ZodLiteral<"gesture.end">;
1152
+ gestureId: z.ZodString;
1153
+ resultingNodeIds: z.ZodArray<z.ZodString>;
1154
+ }, z.core.$strip>, z.ZodObject<{
1155
+ type: z.ZodLiteral<"gesture.cancel">;
1156
+ gestureId: z.ZodString;
1157
+ }, z.core.$strip>], "type">;
1158
+ type BoardAwarenessNodePreview = z.infer<typeof BoardAwarenessNodePreviewSchema>;
1159
+ type BoardAwarenessStateUpdate = z.infer<typeof BoardAwarenessStateUpdateSchema>;
1160
+ type BoardAwarenessGesture = z.infer<typeof BoardAwarenessGestureSchema>;
1161
+ type BoardAwarenessUpdate = z.infer<typeof BoardAwarenessUpdateSchema>;
1162
+ //#endregion
380
1163
  //#region ../protocol/dist/realtime/types.d.ts
381
- type RealtimeRoom = `space:${string}` | `user:${string}`;
1164
+ type RealtimeRoom = `space:${string}` | `user:${string}` | `board:${string}`;
382
1165
  type RealtimeEnvelope = {
383
1166
  id: string;
384
1167
  timestamp: number;
@@ -746,6 +1529,27 @@ type BoardTransactionAppliedEvent = {
746
1529
  txId: string;
747
1530
  version: number;
748
1531
  operations: BoardOperation[];
1532
+ metadata?: Record<string, unknown> & {
1533
+ source?: RequestSource;
1534
+ };
1535
+ };
1536
+ };
1537
+ type BoardAwarenessUpdatedEvent = {
1538
+ id: string;
1539
+ timestamp: number;
1540
+ domain: "space";
1541
+ type: "board.awareness.updated";
1542
+ requestId?: string | null;
1543
+ spaceId: string;
1544
+ sessionId?: string | null;
1545
+ rooms?: RealtimeRoom[];
1546
+ payload: {
1547
+ boardId: string;
1548
+ connectionId: string;
1549
+ actorId: string;
1550
+ actorName: string;
1551
+ seq: number;
1552
+ update: BoardAwarenessUpdate;
749
1553
  };
750
1554
  };
751
1555
  type BoardPlaybackChangedEvent = {
@@ -819,7 +1623,7 @@ type LabelAssignmentsUpdatedEvent = {
819
1623
  affectedLabelIds: string[];
820
1624
  };
821
1625
  };
822
- type RealtimeServerEvent = SystemReadyEvent | SystemAuthOkEvent | SystemRequestErrorEvent | SystemPongEvent | SystemAckOkEvent | SystemSubscribeOkEvent | SystemSubscribeErrorEvent | SessionCreatedEvent | SessionUpdatedEvent | SessionRequestAcceptedEvent | SessionRequestErrorEvent | SessionTurnCreatedEvent | SessionTurnPatchEvent | SessionTurnErrorEvent | SessionTurnLifecycleEvent | SessionTurnUpdatedEvent | SessionTurnFinalizedEvent | SessionTurnNotifyEvent | SessionMessagePersistedEvent | SpaceFsChangedEvent | SpacePortsChangedEvent | SpacePresenceUpdatedEvent | BoardTransactionAppliedEvent | BoardPlaybackChangedEvent | TaskCreatedEvent | TaskUpdatedEvent | LabelAssignmentsUpdatedEvent;
1626
+ type RealtimeServerEvent = SystemReadyEvent | SystemAuthOkEvent | SystemRequestErrorEvent | SystemPongEvent | SystemAckOkEvent | SystemSubscribeOkEvent | SystemSubscribeErrorEvent | SessionCreatedEvent | SessionUpdatedEvent | SessionRequestAcceptedEvent | SessionRequestErrorEvent | SessionTurnCreatedEvent | SessionTurnPatchEvent | SessionTurnErrorEvent | SessionTurnLifecycleEvent | SessionTurnUpdatedEvent | SessionTurnFinalizedEvent | SessionTurnNotifyEvent | SessionMessagePersistedEvent | SpaceFsChangedEvent | SpacePortsChangedEvent | SpacePresenceUpdatedEvent | BoardTransactionAppliedEvent | BoardAwarenessUpdatedEvent | BoardPlaybackChangedEvent | TaskCreatedEvent | TaskUpdatedEvent | LabelAssignmentsUpdatedEvent;
823
1627
  //#endregion
824
1628
  //#region ../../node_modules/.pnpm/@neta-art+generation@0.1.16/node_modules/@neta-art/generation/dist/builtins-DQq2dSq-.d.ts
825
1629
  //#region src/types.d.ts
@@ -2544,6 +3348,13 @@ declare class WebsocketClient {
2544
3348
  meta?: Record<string, unknown> | null;
2545
3349
  requestId?: string;
2546
3350
  }): Promise<void>;
3351
+ updateBoardAwareness(input: {
3352
+ spaceId: string;
3353
+ boardId: string;
3354
+ seq: number;
3355
+ update: BoardAwarenessUpdate;
3356
+ requestId?: string;
3357
+ }): Promise<void>;
2547
3358
  sendMessage(input: {
2548
3359
  spaceId: string;
2549
3360
  sessionId: string;
@@ -2581,4 +3392,4 @@ declare class WebsocketClient {
2581
3392
  }
2582
3393
  declare const createWebsocketClient: (options?: WebsocketClientOptions) => WebsocketClient;
2583
3394
  //#endregion
2584
- export { CreateSpacePromptInput as $, SpaceFsUploadError as $n, BoardTransactionAppliedEvent as $r, ReferralReward as $t, BillingProductDisplay as A, SpaceConfig as An, UserSessionsResponse as Ar, ModelCatalogEntry as At, CheckpointDiffFile as B, SpaceFsCreateUploadResponse as Bn, GenerationPolicyError as Br, PublicUserSpaceItem as Bt, BillingCreditStatus as C, SpaceCommerceBuyerProfile as Cn, SpaceUsageSummary as Cr, LabelItemsSessionFork as Ct, BillingPluginStatus as D, SpaceCommerceProduct as Dn, UserRulesResponse as Dr, LabelScopeType as Dt, BillingPaymentStatus as E, SpaceCommerceOrder as En, UserProfile as Er, LabelResourceType as Et, BillingSubscriptionHistoryList as F, SpaceDefaultResponse as Fn, DiscordChannelConfig as Fr, PromptTemplateCatalogEntry as Ft, CheckpointDiffStatus as G, SpaceFsMoveInput as Gn, findGenerationModelPolicy as Gr, ReferenceDirection as Gt, CheckpointDiffPatchKind as H, SpaceFsEntry as Hn, decodeGenerationPolicy as Hr, ReferenceAggregateGroup as Ht, BillingSubscriptionHistoryStatus as I, SpaceEnvInput as In, FeishuChannelConfig as Ir, PromptTemplateCatalogResponse as It, ClaimReferralResponse as J, SpaceFsReadFilesInput as Jn, parseGenerationPolicyFromEnv as Jr, ReferenceQueryableType as Jt, CheckpointDiffSummary as K, SpaceFsPreparingFile as Kn, getAllowedGenerationModelIds as Kr, ReferenceKind as Kt, BillingSubscriptionSummary as L, SpaceFsCompleteUploadInput as Ln, GenerationModelPolicy as Lr, PublicReferral as Lt, BillingProductPricing as M, SpaceConfigResponse as Mn, ChannelHealth as Mr, PatchResourceLabelsResponse as Mt, BillingRedemptionResult as N, SpaceConfigUpdateResponse as Nn, ChannelHealthReasonCode as Nr, Permission as Nt, BillingProductBillingInterval as O, SpaceCommerceProductBenefitBinding as On, UserSessionListItem as Or, LabelSource as Ot, BillingResponsePayload as P, SpaceCreateResponse as Pn, ChannelRuntimeState as Pr, PromptAccessMode as Pt, CreateSpaceModInput as Q, SpaceFsUploadEntry as Qn, BoardPlaybackChangedEvent as Qr, ReferralListItem as Qt, Channel as R, SpaceFsCompleteUploadResponse as Rn, GenerationParameterConstraint as Rr, PublicUserPageResponse as Rt, BillingCreditGrantStatus as S, BillingPayload as Si, SpaceCommerceBenefit as Sn, SpaceUsageResponse as Sr, LabelItemsResponse as St, BillingHistoryPagination as T, SpaceCommerceFeatureBenefit as Tn, TaskRunRecord as Tr, LabelRecord as Tt, CheckpointDiffPatchLine as U, SpaceFsFileKind as Un, encodeGenerationPolicy as Ur, ReferenceAggregateGroupBy as Ut, CheckpointDiffFileResponse as V, SpaceFsEncoding as Vn, assertGenerationRequestAllowedByPolicy as Vr, PublicUserWorkItem as Vt, CheckpointDiffStats as W, SpaceFsFileResponse as Wn, filterGenerationDeclarationsByPolicy as Wr, ReferenceAggregateResponse as Wt, CreateInvitationResponse as X, SpaceFsTreeResponse as Xn, GenerationModelDeclaration as Xr, ReferenceResourceType as Xt, CreateInvitationInput as Y, SpaceFsReadFilesResponse as Yn, GenerationContentBlock as Yr, ReferenceRecord as Yt, CreateSpaceInput as Z, SpaceFsUploadDestination as Zn, GenerationResult as Zr, ReferralDashboard as Zt, BillingCatalogProduct as _, ModelThinkingLevel as _i, SpaceAccess as _n, SpaceSandboxAutoDestroyPolicy as _r, JsonPrimitive as _t, WebsocketClientOptions as a, SpacePublicEndpoints as ai, SessionMessageResponse as an, SpaceInvitation as ar, CursorPageInfo as at, BillingConversionIntent as b, Usage as bi, SpaceChannelBindingInput as bn, SpaceSessionsResponse as br, LabelAssignmentPageInfo as bt, createWebsocketClient as c, SessionTurnSegmentRecord as ci, SessionRecord as cn, SpaceMeta as cr, ExploreSpacesResponse as ct, BatchUserProfilesResponse as d, CompletionAssistantMessage as di, SessionTurnSignedUrlsResponse as dn, SpacePendingDiffSummary as dr, GenerationUsageSummary as dt, ChannelEnvelope as ei, ReferralStatus as en, SpaceFsUploadPlanEntry as er, CreateSpacePromptResponse as et, BillingBalanceActivity as f, CompletionMessage as fi, SessionTurnStreamSnapshotResponse as fn, SpacePresenceSnapshot as fr, GlobalSearchResponse as ft, BillingCatalog as g, CreateSpaceCompletionInput as gi, SkillCatalogResponse as gn, SpaceRole as gr, JsonObject as gt, BillingBalanceActivityStatus as h, CompletionUsage as hi, SkillCatalogEntry as hn, SpaceRecord as hr, InvitationDetail as ht, WebsocketClientEvents as i, SessionTurnPatchEvent as ii, SessionBindingRecord as in, SpaceFsWriteFileInput as ir, CronJobUpdatePatch as it, BillingProductKind as j, SpaceConfigInput as jn, ChannelConfig as jr, PatchResourceLabelsInput as jt, BillingProductCreditBenefit as k, SpaceCommerceProductCreditBenefit as kn, UserSessionSpaceSummary as kr, MeResponse as kt, AcceptInvitationResponse as l, SessionTurnIndexItem as li, SessionTurnIndexResponse as ln, SpaceModListItem as lr, GenerationUsageBlock as lt, BillingBalanceActivityList as m, CompletionThinkingLevel as mi, SessionTurnsPaginatedResponse as mn, SpacePublicProfile as mr, GlobalSearchType as mt, WebSocketLike as n, RealtimePatchOperation as ni, SandboxSpecId as nn, SpaceFsUploadProgress as nr, CronJobPayload as nt, WebsocketClientState as o, MessageRecord as oi, SessionMessagesPaginatedResponse as on, SpaceListItem as or, ExploreSection as ot, BillingBalanceActivityKind as p, CompletionMessageRole as pi, SessionTurnWindowResponse as pn, SpacePresenceUser as pr, GlobalSearchResult as pt, CheckpointRecord as q, SpaceFsReadFilesError as qn, normalizeGenerationPolicy as qr, ReferenceQueryResponse as qt, WebsocketClient as r, RealtimeServerEvent as ri, SendMessageCronJobPayload as rn, SpaceFsUploadResponse as rr, CronJobRecord as rt, WebsocketEventPayload as s, SessionForkRecord as si, SessionMessagesResponse as sn, SpaceMember as sr, ExploreSpaceItem as st, WebSocketConstructor as t, LabelAssignmentsUpdatedEvent as ti, ResourceLabelsResponse as tn, SpaceFsUploadPlanEntryInput as tr, CreateSpaceSessionInput as tt, ApiError as u, SessionTurnRecord as ui, SessionTurnResponse as un, SpacePendingDiffFileResponse as ur, GenerationUsageHourlyStat as ut, BillingCheckoutActionState as v, SpaceCompletionResult as vi, SpaceAccessPolicy as vn, SpaceSandboxConfig as vr, JsonValue as vt, BillingCreditUnit as w, SpaceCommerceCreditsBenefit as wn, TaskRunDetailResponse as wr, LabelListItem as wt, BillingCreditExpiryGroup as x, ContentBlock as xi, SpaceCheckpointDetailResponse as xn, SpaceUsageHourlyStat as xr, LabelAssignmentRecord as xt, BillingCheckoutResult as y, SpaceCompletionStreamEvent as yi, SpaceBootstrapSource as yn, SpaceSandboxProvider as yr, LabelAssignmentListItem as yt, CheckpointDiffDelivery as z, SpaceFsCreateUploadInput as zn, GenerationPolicy as zr, PublicUserProfile as zt };
3395
+ export { CreateSpacePromptInput as $, REQUEST_SOURCE_VIA_MAX_LENGTH as $i, SpaceFsUploadError as $n, BoardPlaybackChangedEvent as $r, ReferralReward as $t, BillingProductDisplay as A, BoardValidationResult as Ai, SpaceConfig as An, UserSessionsResponse as Ar, ModelCatalogEntry as At, CheckpointDiffFile as B, CompletionMessage as Bi, SpaceFsCreateUploadResponse as Bn, GenerationPolicyError as Br, PublicUserSpaceItem as Bt, BillingCreditStatus as C, BoardOperation as Ci, SpaceCommerceBuyerProfile as Cn, SpaceUsageSummary as Cr, LabelItemsSessionFork as Ct, BillingPluginStatus as D, BoardSequence as Di, SpaceCommerceProduct as Dn, UserRulesResponse as Dr, LabelScopeType as Dt, BillingPaymentStatus as E, BoardRecord as Ei, SpaceCommerceOrder as En, UserProfile as Er, LabelResourceType as Et, BillingSubscriptionHistoryList as F, SessionForkRecord as Fi, SpaceDefaultResponse as Fn, DiscordChannelConfig as Fr, PromptTemplateCatalogEntry as Ft, CheckpointDiffStatus as G, ModelThinkingLevel as Gi, SpaceFsMoveInput as Gn, findGenerationModelPolicy as Gr, ReferenceDirection as Gt, CheckpointDiffPatchKind as H, CompletionThinkingLevel as Hi, SpaceFsEntry as Hn, decodeGenerationPolicy as Hr, ReferenceAggregateGroup as Ht, BillingSubscriptionHistoryStatus as I, SessionTurnSegmentRecord as Ii, SpaceEnvInput as In, FeishuChannelConfig as Ir, PromptTemplateCatalogResponse as It, ClaimReferralResponse as J, Usage as Ji, SpaceFsReadFilesInput as Jn, parseGenerationPolicyFromEnv as Jr, ReferenceQueryableType as Jt, CheckpointDiffSummary as K, SpaceCompletionResult as Ki, SpaceFsPreparingFile as Kn, getAllowedGenerationModelIds as Kr, ReferenceKind as Kt, BillingSubscriptionSummary as L, SessionTurnIndexItem as Li, SpaceFsCompleteUploadInput as Ln, GenerationModelPolicy as Lr, PublicReferral as Lt, BillingProductPricing as M, BoardRenderCost as Mi, SpaceConfigResponse as Mn, ChannelHealth as Mr, PatchResourceLabelsResponse as Mt, BillingRedemptionResult as N, SpacePublicEndpoints as Ni, SpaceConfigUpdateResponse as Nn, ChannelHealthReasonCode as Nr, Permission as Nt, BillingProductBillingInterval as O, BoardTarget as Oi, SpaceCommerceProductBenefitBinding as On, UserSessionListItem as Or, LabelSource as Ot, BillingResponsePayload as P, MessageRecord as Pi, SpaceCreateResponse as Pn, ChannelRuntimeState as Pr, PromptAccessMode as Pt, CreateSpaceModInput as Q, COHUB_SOURCE_HEADER_NAMES as Qi, SpaceFsUploadEntry as Qn, BoardAwarenessUpdatedEvent as Qr, ReferralListItem as Qt, Channel as R, SessionTurnRecord as Ri, SpaceFsCompleteUploadResponse as Rn, GenerationParameterConstraint as Rr, PublicUserPageResponse as Rt, BillingCreditGrantStatus as S, BoardNodeRecord as Si, SpaceCommerceBenefit as Sn, SpaceUsageResponse as Sr, LabelItemsResponse as St, BillingHistoryPagination as T, BoardPlaybackSnapshot as Ti, SpaceCommerceFeatureBenefit as Tn, TaskRunRecord as Tr, LabelRecord as Tt, CheckpointDiffPatchLine as U, CompletionUsage as Ui, SpaceFsFileKind as Un, encodeGenerationPolicy as Ur, ReferenceAggregateGroupBy as Ut, CheckpointDiffFileResponse as V, CompletionMessageRole as Vi, SpaceFsEncoding as Vn, assertGenerationRequestAllowedByPolicy as Vr, PublicUserWorkItem as Vt, CheckpointDiffStats as W, CreateSpaceCompletionInput as Wi, SpaceFsFileResponse as Wn, filterGenerationDeclarationsByPolicy as Wr, ReferenceAggregateResponse as Wt, CreateInvitationResponse as X, ContentBlock as Xi, SpaceFsTreeResponse as Xn, GenerationModelDeclaration as Xr, ReferenceResourceType as Xt, CreateInvitationInput as Y, BillingPayload as Yi, SpaceFsReadFilesResponse as Yn, GenerationContentBlock as Yr, ReferenceRecord as Yt, CreateSpaceInput as Z, COHUB_SOURCE_HEADER as Zi, SpaceFsUploadDestination as Zn, GenerationResult as Zr, ReferralDashboard as Zt, BillingCatalogProduct as _, BoardEffect as _i, SpaceAccess as _n, SpaceSandboxAutoDestroyPolicy as _r, JsonPrimitive as _t, WebsocketClientOptions as a, mergeRequestSourceIntoMeta as aa, SessionTurnPatchEvent as ai, SessionMessageResponse as an, SpaceInvitation as ar, CursorPageInfo as at, BillingConversionIntent as b, BoardManifest as bi, SpaceChannelBindingInput as bn, SpaceSessionsResponse as br, LabelAssignmentPageInfo as bt, createWebsocketClient as c, readRequestSourceFromEnv as ca, BoardAwarenessStateUpdate as ci, SessionRecord as cn, SpaceMeta as cr, ExploreSpacesResponse as ct, BatchUserProfilesResponse as d, BoardBootstrap as di, SessionTurnSignedUrlsResponse as dn, SpacePendingDiffSummary as dr, GenerationUsageSummary as dt, RequestSource as ea, BoardTransactionAppliedEvent as ei, ReferralStatus as en, SpaceFsUploadPlanEntry as er, CreateSpacePromptResponse as et, BillingBalanceActivity as f, BoardCapabilities as fi, SessionTurnStreamSnapshotResponse as fn, SpacePresenceSnapshot as fr, GlobalSearchResponse as ft, BillingCatalog as g, BoardDiagnostic as gi, SkillCatalogResponse as gn, SpaceRole as gr, JsonObject as gt, BillingBalanceActivityStatus as h, BoardDeleteReason as hi, SkillCatalogEntry as hn, SpaceRecord as hr, InvitationDetail as ht, WebsocketClientEvents as i, isRequestSourceUuid as ia, RealtimeServerEvent as ii, SessionBindingRecord as in, SpaceFsWriteFileInput as ir, CronJobUpdatePatch as it, BillingProductKind as j, BoardCapability as ji, SpaceConfigInput as jn, ChannelConfig as jr, PatchResourceLabelsInput as jt, BillingProductCreditBenefit as k, BoardTransaction as ki, SpaceCommerceProductCreditBenefit as kn, UserSessionSpaceSummary as kr, MeResponse as kt, AcceptInvitationResponse as l, requestSourceToHeaders as la, BoardAwarenessUpdate as li, SessionTurnIndexResponse as ln, SpaceModListItem as lr, GenerationUsageBlock as lt, BillingBalanceActivityList as m, BoardCreateInput as mi, SessionTurnsPaginatedResponse as mn, SpacePublicProfile as mr, GlobalSearchType as mt, WebSocketLike as n, hasRequestSourceIdentity as na, LabelAssignmentsUpdatedEvent as ni, SandboxSpecId as nn, SpaceFsUploadProgress as nr, CronJobPayload as nt, WebsocketClientState as o, normalizeRequestSource as oa, BoardAwarenessGesture as oi, SessionMessagesPaginatedResponse as on, SpaceListItem as or, ExploreSection as ot, BillingBalanceActivityKind as p, BoardClip as pi, SessionTurnWindowResponse as pn, SpacePresenceUser as pr, GlobalSearchResult as pt, CheckpointRecord as q, SpaceCompletionStreamEvent as qi, SpaceFsReadFilesError as qn, normalizeGenerationPolicy as qr, ReferenceQueryResponse as qt, WebsocketClient as r, isRequestSourceEmpty as ra, RealtimePatchOperation as ri, SendMessageCronJobPayload as rn, SpaceFsUploadResponse as rr, CronJobRecord as rt, WebsocketEventPayload as s, parseRequestSourceFromHeaders as sa, BoardAwarenessNodePreview as si, SessionMessagesResponse as sn, SpaceMember as sr, ExploreSpaceItem as st, WebSocketConstructor as t, RequestSourceVia as ta, ChannelEnvelope as ti, ResourceLabelsResponse as tn, SpaceFsUploadPlanEntryInput as tr, CreateSpaceSessionInput as tt, ApiError as u, resolveRequestSourceChannel as ua, BoardAssetRef as ui, SessionTurnResponse as un, SpacePendingDiffFileResponse as ur, GenerationUsageHourlyStat as ut, BillingCheckoutActionState as v, BoardInspectInput as vi, SpaceAccessPolicy as vn, SpaceSandboxConfig as vr, JsonValue as vt, BillingCreditUnit as w, BoardPlaybackCommand as wi, SpaceCommerceCreditsBenefit as wn, TaskRunDetailResponse as wr, LabelListItem as wt, BillingCreditExpiryGroup as x, BoardNodeInput as xi, SpaceCheckpointDetailResponse as xn, SpaceUsageHourlyStat as xr, LabelAssignmentRecord as xt, BillingCheckoutResult as y, BoardKeyframe as yi, SpaceBootstrapSource as yn, SpaceSandboxProvider as yr, LabelAssignmentListItem as yt, CheckpointDiffDelivery as z, CompletionAssistantMessage as zi, SpaceFsCreateUploadInput as zn, GenerationPolicy as zr, PublicUserProfile as zt };