@neta-art/cohub 2.14.1 → 3.0.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.
@@ -1,4 +1,23 @@
1
+ import { g as BoardPlaybackSnapshot, m as BoardOperation } from "./board.js";
1
2
  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
+ };
20
+ //#endregion
2
21
  //#region ../protocol/dist/core/content.d.ts
3
22
  type ContentBlockMeta = Record<string, unknown>;
4
23
  type ContentBlock = {
@@ -45,24 +64,6 @@ type ContentBlock = {
45
64
  _meta?: ContentBlockMeta;
46
65
  };
47
66
  //#endregion
48
- //#region ../protocol/dist/billing.d.ts
49
- /**
50
- * Standard billing payload attached under the `billing` key of any response
51
- * or realtime event that involves a billing gate. Present on 402 error bodies
52
- * (blocked / not entitled), on success responses carrying a soft debt warning,
53
- * and on realtime error events. `conversion` always drives the shared upgrade
54
- * UI; balance fields appear only for balance-based gates.
55
- *
56
- * `conversion` is intentionally `unknown` here to keep the protocol layer free
57
- * of a billing dependency — clients validate it against `BillingConversionIntent`.
58
- */
59
- type BillingPayload = {
60
- conversion: unknown;
61
- status?: "blocked" | "allowed_with_debt";
62
- netUsd?: number;
63
- hardNegativeLimitUsd?: number;
64
- };
65
- //#endregion
66
67
  //#region ../protocol/dist/core/usage.d.ts
67
68
  type Usage = {
68
69
  input?: number;
@@ -79,6 +80,81 @@ type Usage = {
79
80
  } | null;
80
81
  };
81
82
  //#endregion
83
+ //#region ../protocol/dist/model/completion.d.ts
84
+ type CompletionMessageRole = "user" | "assistant" | "system";
85
+ /** Raw completion message. Reuses session ContentBlock content shape. */
86
+ type CompletionMessage = {
87
+ role: CompletionMessageRole;
88
+ content: ContentBlock[];
89
+ };
90
+ /**
91
+ * Unified thinking level across completions, session prompts, and model config.
92
+ * `off` disables reasoning; `minimal`–`high` use provider defaults;
93
+ * `xhigh`/`max` are opt-in and require an explicit `thinkingLevelMap` entry.
94
+ */
95
+ type ModelThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
96
+ /** @deprecated Use {@link ModelThinkingLevel} — kept for SDK compatibility. */
97
+ type CompletionThinkingLevel = ModelThinkingLevel;
98
+ type CreateSpaceCompletionInput = {
99
+ /** Optional provider. Defaults to the first available model provider. */
100
+ provider?: string | null;
101
+ /** Optional model id. Defaults to the first available model. */
102
+ model?: string | null;
103
+ /**
104
+ * Optional space-relative markdown/text path used as system prompt.
105
+ * Omitted/null/empty → empty system prompt.
106
+ */
107
+ systemPromptPath?: string | null;
108
+ /** Full conversation history controlled by the caller. */
109
+ messages: CompletionMessage[];
110
+ temperature?: number | null;
111
+ maxTokens?: number | null;
112
+ thinkingLevel?: CompletionThinkingLevel | null;
113
+ /** When true, respond with SSE. Default false (JSON). */
114
+ stream?: boolean | null;
115
+ };
116
+ type CompletionUsage = Usage;
117
+ type CompletionAssistantMessage = {
118
+ role: "assistant";
119
+ content: ContentBlock[];
120
+ stopReason: "stop" | "length" | "error" | "aborted";
121
+ errorMessage?: string | null;
122
+ };
123
+ type SpaceCompletionResult = {
124
+ completionId: string;
125
+ provider: string;
126
+ model: string;
127
+ systemPromptPath: string | null;
128
+ message: CompletionAssistantMessage;
129
+ usage: CompletionUsage | null;
130
+ };
131
+ type SpaceCompletionStreamEvent = {
132
+ type: "meta";
133
+ completionId: string;
134
+ provider: string;
135
+ model: string;
136
+ systemPromptPath: string | null;
137
+ } | {
138
+ type: "delta";
139
+ text: string;
140
+ } | {
141
+ type: "thinking_delta";
142
+ text: string;
143
+ } | {
144
+ type: "usage";
145
+ usage: CompletionUsage;
146
+ } | {
147
+ type: "done";
148
+ completionId: string;
149
+ message: CompletionAssistantMessage;
150
+ usage: CompletionUsage | null;
151
+ } | {
152
+ type: "error";
153
+ code: string;
154
+ message: string;
155
+ completionId?: string | null;
156
+ };
157
+ //#endregion
82
158
  //#region ../protocol/dist/model/turn.d.ts
83
159
  type SessionTurnStatus = "queued" | "running" | "abort_requested" | "completed" | "failed" | "interrupted" | "merged" | "cancelled";
84
160
  type SessionTurnIntent = "steer" | "followup" | "compact";
@@ -157,6 +233,8 @@ type SessionTurnRecord = {
157
233
  intermediateIndex: SessionTurnIntermediateIndex | null;
158
234
  intermediateSummary: SessionTurnIntermediateSummary | null;
159
235
  meta: Record<string, unknown> | null;
236
+ /** Effective thinking level used for this turn (derived from meta.effectiveThinkingLevel). */
237
+ thinkingLevel?: ModelThinkingLevel | null;
160
238
  authorProfile?: SessionTurnAuthorProfile | null;
161
239
  startedAt: string | null;
162
240
  completedAt: string | null;
@@ -269,6 +347,8 @@ type SpaceFsChange = {
269
347
  };
270
348
  type SpaceFsChangedPayload = {
271
349
  source: "sandbox-inotify" | "api-fs" | "bootstrap" | "sandbox-watch-started";
350
+ /** Client-generated id used to identify an API write echoed over realtime. */
351
+ mutationId?: string;
272
352
  seq?: number;
273
353
  resync?: boolean;
274
354
  changes: SpaceFsChange[];
@@ -531,7 +611,7 @@ type SessionTurnLifecycleEvent = {
531
611
  at: string;
532
612
  };
533
613
  };
534
- type RealtimeTurnRecord = Partial<Pick<SessionTurnRecord, "id" | "sessionId" | "sequence" | "status" | "intent" | "userUuid" | "authorProfile" | "userContent" | "userText" | "assistantContent" | "assistantText" | "provider" | "model" | "stopReason" | "errorMessage" | "finalUsage" | "totalUsage" | "summary" | "intermediateIndex" | "intermediateSummary" | "meta" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | "updatedAt">>;
614
+ type RealtimeTurnRecord = Partial<Pick<SessionTurnRecord, "id" | "sessionId" | "sequence" | "status" | "intent" | "userUuid" | "authorProfile" | "userContent" | "userText" | "assistantContent" | "assistantText" | "provider" | "model" | "stopReason" | "errorMessage" | "finalUsage" | "totalUsage" | "summary" | "intermediateIndex" | "intermediateSummary" | "meta" | "thinkingLevel" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | "updatedAt">>;
535
615
  type RealtimeMessageRecord = Pick<MessageRecord, "id" | "sessionId" | "role" | "content" | "text" | "sequence" | "provider" | "model" | "stopReason" | "errorMessage" | "usage" | "meta" | "startedAt" | "completedAt" | "durationMs" | "createdAt">;
536
616
  type SessionTurnCreatedEvent = {
537
617
  id: string;
@@ -652,49 +732,31 @@ type SpacePresenceUpdatedEvent = {
652
732
  sessionId?: string | null;
653
733
  payload: SpacePresenceSnapshot$1;
654
734
  };
655
- type CanvasTransactionAppliedEvent = {
735
+ type BoardTransactionAppliedEvent = {
656
736
  id: string;
657
737
  timestamp: number;
658
738
  domain: "space";
659
- type: "canvas.tx.applied";
739
+ type: "board.transaction.applied";
660
740
  requestId?: string | null;
661
741
  spaceId: string;
662
742
  sessionId?: string | null;
663
743
  payload: {
664
- documentId: string;
744
+ boardId: string;
665
745
  actorId: string;
666
746
  txId: string;
667
747
  version: number;
668
- ops: Array<Record<string, unknown>>;
748
+ operations: BoardOperation[];
669
749
  };
670
750
  };
671
- type CanvasTransactionAckEvent = {
751
+ type BoardPlaybackChangedEvent = {
672
752
  id: string;
673
753
  timestamp: number;
674
754
  domain: "space";
675
- type: "canvas.tx.ack";
755
+ type: "board.playback.changed";
676
756
  requestId?: string | null;
677
757
  spaceId: string;
678
758
  sessionId?: string | null;
679
- payload: {
680
- documentId: string;
681
- txId: string;
682
- version: number;
683
- };
684
- };
685
- type CanvasTransactionErrorEvent = {
686
- id: string;
687
- timestamp: number;
688
- domain: "space";
689
- type: "canvas.tx.error";
690
- requestId?: string | null;
691
- spaceId?: string | null;
692
- sessionId?: string | null;
693
- payload: {
694
- documentId?: string | null;
695
- txId?: string | null;
696
- message: string;
697
- };
759
+ payload: BoardPlaybackSnapshot;
698
760
  };
699
761
  type RealtimeTaskRecord = {
700
762
  id: string;
@@ -745,10 +807,11 @@ type LabelAssignmentsUpdatedEvent = {
745
807
  domain: "label";
746
808
  type: "label.assignments.updated";
747
809
  requestId?: string | null;
748
- spaceId: string;
810
+ /** Space room target; null for user-scoped label events (delivered to user room). */
811
+ spaceId: string | null;
749
812
  sessionId?: string | null;
750
813
  payload: {
751
- resourceType: "session" | "checkpoint" | "file";
814
+ resourceType: "session" | "checkpoint" | "file" | "space";
752
815
  resourceRef: string;
753
816
  labels: unknown[];
754
817
  assignments: unknown[];
@@ -756,66 +819,7 @@ type LabelAssignmentsUpdatedEvent = {
756
819
  affectedLabelIds: string[];
757
820
  };
758
821
  };
759
- type RealtimeServerEvent = SystemReadyEvent | SystemAuthOkEvent | SystemRequestErrorEvent | SystemPongEvent | SystemAckOkEvent | SystemSubscribeOkEvent | SystemSubscribeErrorEvent | SessionCreatedEvent | SessionUpdatedEvent | SessionRequestAcceptedEvent | SessionRequestErrorEvent | SessionTurnCreatedEvent | SessionTurnPatchEvent | SessionTurnErrorEvent | SessionTurnLifecycleEvent | SessionTurnUpdatedEvent | SessionTurnFinalizedEvent | SessionTurnNotifyEvent | SessionMessagePersistedEvent | SpaceFsChangedEvent | SpacePortsChangedEvent | SpacePresenceUpdatedEvent | CanvasTransactionAppliedEvent | CanvasTransactionAckEvent | CanvasTransactionErrorEvent | TaskCreatedEvent | TaskUpdatedEvent | LabelAssignmentsUpdatedEvent;
760
- //#endregion
761
- //#region ../protocol/dist/gateway/types.d.ts
762
- type ChannelModelConfig = {
763
- provider: string;
764
- id: string;
765
- };
766
- type BaseChannelConfig = {
767
- model?: ChannelModelConfig | null;
768
- };
769
- type DiscordChannelConfig = BaseChannelConfig & {
770
- inbound?: {
771
- requireMentionInGuild?: boolean;
772
- };
773
- outbound?: {
774
- showThinking?: boolean;
775
- showToolCalls?: boolean;
776
- };
777
- };
778
- type FeishuChannelConfig = BaseChannelConfig & {
779
- brand?: "feishu" | "lark";
780
- inbound?: {
781
- requireMentionInGroup?: boolean;
782
- };
783
- outbound?: {
784
- renderMode?: "card" | "post";
785
- showThinking?: boolean;
786
- showToolCalls?: boolean;
787
- };
788
- };
789
- type WeChatChannelConfig = BaseChannelConfig & {
790
- outbound?: {
791
- showIntermediateStatus?: boolean;
792
- };
793
- };
794
- type QQChannelConfig = BaseChannelConfig & {
795
- inbound?: {
796
- requireMentionInGroup?: boolean;
797
- };
798
- outbound?: {
799
- markdownSupport?: boolean;
800
- };
801
- };
802
- type ChannelConfig = DiscordChannelConfig | FeishuChannelConfig | WeChatChannelConfig | QQChannelConfig | (BaseChannelConfig & Record<string, unknown>);
803
- /** Runtime connection health for a bound gateway channel (space_channel id). */
804
- type ChannelRuntimeState = "unbound" | "connecting" | "ready" | "degraded" | "error" | "stopped";
805
- type ChannelHealthReasonCode = "invalid_credentials" | "auth_failed" | "network" | "permission" | "provider_error" | "unknown";
806
- type ChannelHealth = {
807
- state: ChannelRuntimeState;
808
- reasonCode?: ChannelHealthReasonCode | null;
809
- message?: string | null;
810
- detail?: string | null;
811
- lastReadyAt?: string | null;
812
- lastErrorAt?: string | null;
813
- lastInboundAt?: string | null;
814
- lastOutboundAt?: string | null;
815
- nodeId?: string | null;
816
- updatedAt: string;
817
- meta?: Record<string, string> | null;
818
- };
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;
819
823
  //#endregion
820
824
  //#region ../../node_modules/.pnpm/@neta-art+generation@0.1.16/node_modules/@neta-art/generation/dist/builtins-DQq2dSq-.d.ts
821
825
  //#region src/types.d.ts
@@ -995,6 +999,66 @@ declare function assertGenerationRequestAllowedByPolicy(input: {
995
999
  }): void;
996
1000
  declare function filterGenerationDeclarationsByPolicy<T extends PublicDeclaration>(declarations: T[], policy: GenerationPolicy | null): T[];
997
1001
  //#endregion
1002
+ //#region ../protocol/dist/gateway/types.d.ts
1003
+ type ChannelModelConfig = {
1004
+ provider: string;
1005
+ id: string;
1006
+ thinkingLevel?: ModelThinkingLevel | null;
1007
+ };
1008
+ type BaseChannelConfig = {
1009
+ model?: ChannelModelConfig | null;
1010
+ };
1011
+ type DiscordChannelConfig = BaseChannelConfig & {
1012
+ inbound?: {
1013
+ requireMentionInGuild?: boolean;
1014
+ };
1015
+ outbound?: {
1016
+ showThinking?: boolean;
1017
+ showToolCalls?: boolean;
1018
+ };
1019
+ };
1020
+ type FeishuChannelConfig = BaseChannelConfig & {
1021
+ brand?: "feishu" | "lark";
1022
+ inbound?: {
1023
+ requireMentionInGroup?: boolean;
1024
+ };
1025
+ outbound?: {
1026
+ renderMode?: "card" | "post";
1027
+ showThinking?: boolean;
1028
+ showToolCalls?: boolean;
1029
+ };
1030
+ };
1031
+ type WeChatChannelConfig = BaseChannelConfig & {
1032
+ outbound?: {
1033
+ showIntermediateStatus?: boolean;
1034
+ };
1035
+ };
1036
+ type QQChannelConfig = BaseChannelConfig & {
1037
+ inbound?: {
1038
+ requireMentionInGroup?: boolean;
1039
+ };
1040
+ outbound?: {
1041
+ markdownSupport?: boolean;
1042
+ };
1043
+ };
1044
+ type ChannelConfig = DiscordChannelConfig | FeishuChannelConfig | WeChatChannelConfig | QQChannelConfig | (BaseChannelConfig & Record<string, unknown>);
1045
+ /** Runtime connection health for a bound gateway channel (space_channel id). */
1046
+ type ChannelRuntimeState = "unbound" | "connecting" | "ready" | "degraded" | "error" | "stopped";
1047
+ type ChannelHealthReasonCode = "invalid_credentials" | "auth_failed" | "network" | "permission" | "provider_error" | "unknown";
1048
+ type ChannelHealth = {
1049
+ state: ChannelRuntimeState;
1050
+ reasonCode?: ChannelHealthReasonCode | null;
1051
+ message?: string | null;
1052
+ detail?: string | null;
1053
+ lastReadyAt?: string | null;
1054
+ lastErrorAt?: string | null;
1055
+ lastInboundAt?: string | null;
1056
+ lastOutboundAt?: string | null;
1057
+ nodeId?: string | null;
1058
+ updatedAt: string;
1059
+ meta?: Record<string, string> | null;
1060
+ };
1061
+ //#endregion
998
1062
  //#region src/types.d.ts
999
1063
  type ApiError = {
1000
1064
  message: string;
@@ -1439,6 +1503,11 @@ type SpaceFsWriteFileInput = {
1439
1503
  path: string;
1440
1504
  content: string;
1441
1505
  encoding: SpaceFsEncoding;
1506
+ expected?: {
1507
+ mtimeMs: number;
1508
+ size: number;
1509
+ };
1510
+ mutationId?: string;
1442
1511
  };
1443
1512
  type SpaceFsMoveInput = {
1444
1513
  fromPath: string;
@@ -1586,6 +1655,8 @@ type SpaceRecord = {
1586
1655
  access?: SpaceAccess;
1587
1656
  accessLevel?: "minimal";
1588
1657
  ownerProfile?: Pick<UserProfile, "userUuid" | "username" | "displayName" | "avatarUrl"> | null;
1658
+ /** Whether the viewer has pinned this space (only present in list responses). */
1659
+ isPinned?: boolean;
1589
1660
  };
1590
1661
  type SpaceBootstrapSource = {
1591
1662
  type: "blank";
@@ -1635,63 +1706,6 @@ type SpaceConfigUpdateResponse = {
1635
1706
  message?: string;
1636
1707
  };
1637
1708
  };
1638
- type CanvasDocumentRecord = {
1639
- id: string;
1640
- spaceId: string;
1641
- filePath: string;
1642
- title: string;
1643
- version: number;
1644
- meta?: Record<string, unknown> | null;
1645
- createdAt: string | null;
1646
- updatedAt: string | null;
1647
- deletedAt?: string | null;
1648
- };
1649
- type CanvasNodeRecord = {
1650
- documentId: string;
1651
- nodeId: string;
1652
- type: string;
1653
- parentId?: string | null;
1654
- orderKey?: string | null;
1655
- x: number;
1656
- y: number;
1657
- width: number;
1658
- height: number;
1659
- rotation: number;
1660
- refKind?: string | null;
1661
- refPath?: string | null;
1662
- refUrl?: string | null;
1663
- view: Record<string, unknown>;
1664
- style: Record<string, unknown>;
1665
- animation: Record<string, unknown>;
1666
- data: Record<string, unknown>;
1667
- version: number;
1668
- createdAt: string | null;
1669
- updatedAt: string | null;
1670
- deletedAt?: string | null;
1671
- };
1672
- type CanvasNodeInput = Omit<CanvasNodeRecord, "documentId" | "version" | "createdAt" | "updatedAt" | "deletedAt">;
1673
- type CanvasSemanticOp = {
1674
- opId?: string;
1675
- type: "node.create" | "node.patch" | "node.delete";
1676
- payload: Record<string, unknown>;
1677
- inverse?: Record<string, unknown>;
1678
- };
1679
- type CanvasTransactionInput = {
1680
- txId: string;
1681
- baseVersion?: number | null;
1682
- clientId?: string | null;
1683
- undoGroupId?: string | null;
1684
- ops: CanvasSemanticOp[];
1685
- };
1686
- type CanvasCreateInput = {
1687
- path: string;
1688
- title?: string;
1689
- nodes?: CanvasNodeInput[];
1690
- };
1691
- type CanvasBootstrapResponse = {
1692
- document: CanvasDocumentRecord;
1693
- nodes: CanvasNodeRecord[];
1694
- };
1695
1709
  type SpaceCreateResponse = {
1696
1710
  space: SpaceRecord;
1697
1711
  taskRunId: string;
@@ -1907,6 +1921,8 @@ type CreateSpacePromptInput = {
1907
1921
  content: ContentBlock[];
1908
1922
  model?: string | null;
1909
1923
  provider?: string | null;
1924
+ /** Optional thinking level override for this turn. Omit to inherit session default. */
1925
+ thinkingLevel?: ModelThinkingLevel | null;
1910
1926
  clientMessageId?: string | null;
1911
1927
  generationPolicy?: GenerationPolicy | null;
1912
1928
  intent?: "followup" | "steer" | "compact" | null;
@@ -1954,6 +1970,7 @@ type SendMessageCronJobPayload = CronJobPayload & {
1954
1970
  title?: string;
1955
1971
  model?: string;
1956
1972
  provider?: string;
1973
+ thinkingLevel?: ModelThinkingLevel | null;
1957
1974
  labelIds?: string[];
1958
1975
  };
1959
1976
  type CronJobUpdatePatch<TPayload extends CronJobPayload = CronJobPayload> = {
@@ -2098,7 +2115,7 @@ type SpaceMember = {
2098
2115
  };
2099
2116
  type LabelScopeType = "space" | "user" | "org";
2100
2117
  type LabelSource = "user" | "system";
2101
- type LabelResourceType = "session" | "checkpoint" | "file";
2118
+ type LabelResourceType = "session" | "checkpoint" | "file" | "space";
2102
2119
  type LabelRecord = {
2103
2120
  id: string;
2104
2121
  scopeType: LabelScopeType;
@@ -2130,6 +2147,9 @@ type LabelAssignmentRecord = {
2130
2147
  meta: Record<string, unknown> | null;
2131
2148
  createdAt: string | null;
2132
2149
  updatedAt: string | null;
2150
+ /** Label metadata joined in user-scope assignment responses. */
2151
+ labelSystemKey?: string | null;
2152
+ labelName?: string;
2133
2153
  };
2134
2154
  type LabelAssignmentListItem = LabelAssignmentRecord & {
2135
2155
  href: string;
@@ -2200,7 +2220,6 @@ type ExploreSpaceItem = {
2200
2220
  category: string | null;
2201
2221
  tags: string[];
2202
2222
  saveCount: number;
2203
- pinCount: number;
2204
2223
  forkCount: number;
2205
2224
  updatedAt: string | null;
2206
2225
  accessLabel: "public" | "sign-in-required" | "unknown";
@@ -2520,16 +2539,6 @@ declare class WebsocketClient {
2520
2539
  private log;
2521
2540
  connect(): Promise<void>;
2522
2541
  disconnect(code?: number, reason?: string): Promise<void>;
2523
- sendCanvasTransaction(input: {
2524
- spaceId: string;
2525
- documentId: string;
2526
- txId: string;
2527
- ops: Array<Record<string, unknown>>;
2528
- baseVersion?: number | null;
2529
- clientId?: string | null;
2530
- undoGroupId?: string | null;
2531
- requestId?: string;
2532
- }): Promise<void>;
2533
2542
  updatePresence(input: {
2534
2543
  spaceId: string;
2535
2544
  meta?: Record<string, unknown> | null;
@@ -2543,6 +2552,7 @@ declare class WebsocketClient {
2543
2552
  requestId?: string;
2544
2553
  model?: string;
2545
2554
  provider?: string;
2555
+ thinkingLevel?: ModelThinkingLevel;
2546
2556
  }): Promise<void>;
2547
2557
  retainRooms(rooms: readonly string[]): () => void;
2548
2558
  subscribeRooms(rooms: readonly string[]): () => void;
@@ -2571,4 +2581,4 @@ declare class WebsocketClient {
2571
2581
  }
2572
2582
  declare const createWebsocketClient: (options?: WebsocketClientOptions) => WebsocketClient;
2573
2583
  //#endregion
2574
- export { CheckpointDiffSummary as $, SpaceFsPreparingFile as $n, ChannelConfig as $r, ReferenceKind as $t, BillingProductDisplay as A, SpaceCommerceBuyerProfile as An, SpaceUsageSummary as Ar, LabelItemsSessionFork as At, CanvasDocumentRecord as B, SpaceConfigUpdateResponse as Bn, GenerationPolicy as Br, Permission as Bt, BillingCreditStatus as C, SkillCatalogResponse as Cn, SpaceRole as Cr, JsonObject as Ct, BillingPluginStatus as D, SpaceChannelBindingInput as Dn, SpaceSessionsResponse as Dr, LabelAssignmentPageInfo as Dt, BillingPaymentStatus as E, SpaceBootstrapSource as En, SpaceSandboxProvider as Er, LabelAssignmentListItem as Et, BillingSubscriptionHistoryList as F, SpaceCommerceProductBenefitBinding as Fn, UserSessionListItem as Fr, LabelSource as Ft, Channel as G, SpaceFsCompleteUploadResponse as Gn, filterGenerationDeclarationsByPolicy as Gr, PublicUserPageResponse as Gt, CanvasNodeRecord as H, SpaceDefaultResponse as Hn, assertGenerationRequestAllowedByPolicy as Hr, PromptTemplateCatalogEntry as Ht, BillingSubscriptionHistoryStatus as I, SpaceCommerceProductCreditBenefit as In, UserSessionSpaceSummary as Ir, MeResponse as It, CheckpointDiffFileResponse as J, SpaceFsEncoding as Jn, normalizeGenerationPolicy as Jr, PublicUserWorkItem as Jt, CheckpointDiffDelivery as K, SpaceFsCreateUploadInput as Kn, findGenerationModelPolicy as Kr, PublicUserProfile as Kt, BillingSubscriptionSummary as L, SpaceConfig as Ln, UserSessionsResponse as Lr, ModelCatalogEntry as Lt, BillingProductPricing as M, SpaceCommerceFeatureBenefit as Mn, TaskRunRecord as Mr, LabelRecord as Mt, BillingRedemptionResult as N, SpaceCommerceOrder as Nn, UserProfile as Nr, LabelResourceType as Nt, BillingProductBillingInterval as O, SpaceCheckpointDetailResponse as On, SpaceUsageHourlyStat as Or, LabelAssignmentRecord as Ot, BillingResponsePayload as P, SpaceCommerceProduct as Pn, UserRulesResponse as Pr, LabelScopeType as Pt, CheckpointDiffStatus as Q, SpaceFsMoveInput as Qn, GenerationResult as Qr, ReferenceDirection as Qt, CanvasBootstrapResponse as R, SpaceConfigInput as Rn, GenerationModelPolicy as Rr, PatchResourceLabelsInput as Rt, BillingCreditGrantStatus as S, SkillCatalogEntry as Sn, SpaceRecord as Sr, InvitationDetail as St, BillingHistoryPagination as T, SpaceAccessPolicy as Tn, SpaceSandboxConfig as Tr, JsonValue as Tt, CanvasSemanticOp as U, SpaceEnvInput as Un, decodeGenerationPolicy as Ur, PromptTemplateCatalogResponse as Ut, CanvasNodeInput as V, SpaceCreateResponse as Vn, GenerationPolicyError as Vr, PromptAccessMode as Vt, CanvasTransactionInput as W, SpaceFsCompleteUploadInput as Wn, encodeGenerationPolicy as Wr, PublicReferral as Wt, CheckpointDiffPatchLine as X, SpaceFsFileKind as Xn, GenerationContentBlock as Xr, ReferenceAggregateGroupBy as Xt, CheckpointDiffPatchKind as Y, SpaceFsEntry as Yn, parseGenerationPolicyFromEnv as Yr, ReferenceAggregateGroup as Yt, CheckpointDiffStats as Z, SpaceFsFileResponse as Zn, GenerationModelDeclaration as Zr, ReferenceAggregateResponse as Zt, BillingCatalogProduct as _, BillingPayload as _i, SessionTurnResponse as _n, SpacePendingDiffFileResponse as _r, GenerationUsageHourlyStat as _t, WebsocketClientOptions as a, ChannelEnvelope as ai, ReferralListItem as an, SpaceFsUploadEntry as ar, CreateSpaceModInput as at, BillingConversionIntent as b, SessionTurnWindowResponse as bn, SpacePresenceUser as br, GlobalSearchResult as bt, createWebsocketClient as c, RealtimeServerEvent as ci, ResourceLabelsResponse as cn, SpaceFsUploadPlanEntryInput as cr, CreateSpaceSessionInput as ct, BatchUserProfilesResponse as d, MessageRecord as di, SessionBindingRecord as dn, SpaceFsWriteFileInput as dr, CronJobUpdatePatch as dt, ChannelHealth as ei, ReferenceQueryResponse as en, SpaceFsReadFilesError as er, CheckpointRecord as et, BillingBalanceActivity as f, SessionForkRecord as fi, SessionMessageResponse as fn, SpaceInvitation as fr, CursorPageInfo as ft, BillingCatalog as g, Usage as gi, SessionTurnIndexResponse as gn, SpaceModListItem as gr, GenerationUsageBlock as gt, BillingBalanceActivityStatus as h, SessionTurnRecord as hi, SessionRecord as hn, SpaceMeta as hr, ExploreSpacesResponse as ht, WebsocketClientEvents as i, FeishuChannelConfig as ii, ReferralDashboard as in, SpaceFsUploadDestination as ir, CreateSpaceInput as it, BillingProductKind as j, SpaceCommerceCreditsBenefit as jn, TaskRunDetailResponse as jr, LabelListItem as jt, BillingProductCreditBenefit as k, SpaceCommerceBenefit as kn, SpaceUsageResponse as kr, LabelItemsResponse as kt, AcceptInvitationResponse as l, SessionTurnPatchEvent as li, SandboxSpecId as ln, SpaceFsUploadProgress as lr, CronJobPayload as lt, BillingBalanceActivityList as m, SessionTurnIndexItem as mi, SessionMessagesResponse as mn, SpaceMember as mr, ExploreSpaceItem as mt, WebSocketLike as n, ChannelRuntimeState as ni, ReferenceRecord as nn, SpaceFsReadFilesResponse as nr, CreateInvitationInput as nt, WebsocketClientState as o, LabelAssignmentsUpdatedEvent as oi, ReferralReward as on, SpaceFsUploadError as or, CreateSpacePromptInput as ot, BillingBalanceActivityKind as p, SessionTurnSegmentRecord as pi, SessionMessagesPaginatedResponse as pn, SpaceListItem as pr, ExploreSection as pt, CheckpointDiffFile as q, SpaceFsCreateUploadResponse as qn, getAllowedGenerationModelIds as qr, PublicUserSpaceItem as qt, WebsocketClient as r, DiscordChannelConfig as ri, ReferenceResourceType as rn, SpaceFsTreeResponse as rr, CreateInvitationResponse as rt, WebsocketEventPayload as s, RealtimePatchOperation as si, ReferralStatus as sn, SpaceFsUploadPlanEntry as sr, CreateSpacePromptResponse as st, WebSocketConstructor as t, ChannelHealthReasonCode as ti, ReferenceQueryableType as tn, SpaceFsReadFilesInput as tr, ClaimReferralResponse as tt, ApiError as u, SpacePublicEndpoints as ui, SendMessageCronJobPayload as un, SpaceFsUploadResponse as ur, CronJobRecord as ut, BillingCheckoutActionState as v, ContentBlock as vi, SessionTurnSignedUrlsResponse as vn, SpacePendingDiffSummary as vr, GenerationUsageSummary as vt, BillingCreditUnit as w, SpaceAccess as wn, SpaceSandboxAutoDestroyPolicy as wr, JsonPrimitive as wt, BillingCreditExpiryGroup as x, SessionTurnsPaginatedResponse as xn, SpacePublicProfile as xr, GlobalSearchType as xt, BillingCheckoutResult as y, SessionTurnStreamSnapshotResponse as yn, SpacePresenceSnapshot as yr, GlobalSearchResponse as yt, CanvasCreateInput as z, SpaceConfigResponse as zn, GenerationParameterConstraint as zr, PatchResourceLabelsResponse as zt };
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 };
@@ -298,22 +298,6 @@ var WebsocketClient = class {
298
298
  state.pending = false;
299
299
  }
300
300
  }
301
- async sendCanvasTransaction(input) {
302
- await this.ensureOpen();
303
- this.send({
304
- type: "canvas.tx",
305
- requestId: input.requestId,
306
- payload: {
307
- spaceId: input.spaceId,
308
- documentId: input.documentId,
309
- txId: input.txId,
310
- baseVersion: input.baseVersion ?? null,
311
- clientId: input.clientId ?? null,
312
- undoGroupId: input.undoGroupId ?? null,
313
- ops: input.ops
314
- }
315
- });
316
- }
317
301
  async updatePresence(input) {
318
302
  await this.ensureOpen();
319
303
  this.send({
@@ -336,7 +320,8 @@ var WebsocketClient = class {
336
320
  content: input.content,
337
321
  clientMessageId: input.clientMessageId,
338
322
  model: input.model,
339
- provider: input.provider
323
+ provider: input.provider,
324
+ thinkingLevel: input.thinkingLevel
340
325
  }
341
326
  });
342
327
  }
package/dist/http.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import { $t as CreateSpaceCompletionInput, At as HttpError, Jt as CompletionAssistantMessage, Ot as CohubClientOptions, Qt as CompletionUsage, Xt as CompletionMessageRole, Yt as CompletionMessage, Zt as CompletionThinkingLevel, an as GenerationUsageBilling, en as SpaceCompletionResult, in as GenerationTaskResult, jt as HttpTransport, kt as Fetch, n as createHttpClient, nn as CreateGenerationTaskRequest, on as ListGenerationModelsResponse, rn as CreateGenerationTaskResponse, sn as PublicGenerationDeclaration, t as CohubHttpClient, tn as SpaceCompletionStreamEvent } from "./chunks/http.js";
2
- import { $ as CheckpointDiffSummary, $n as SpaceFsPreparingFile, $r as ChannelConfig, $t as ReferenceKind, A as BillingProductDisplay, An as SpaceCommerceBuyerProfile, Ar as SpaceUsageSummary, At as LabelItemsSessionFork, B as CanvasDocumentRecord, Bn as SpaceConfigUpdateResponse, Br as GenerationPolicy, Bt as Permission, C as BillingCreditStatus, Cn as SkillCatalogResponse, Cr as SpaceRole, Ct as JsonObject, D as BillingPluginStatus, Dn as SpaceChannelBindingInput, Dr as SpaceSessionsResponse, Dt as LabelAssignmentPageInfo, E as BillingPaymentStatus, En as SpaceBootstrapSource, Er as SpaceSandboxProvider, Et as LabelAssignmentListItem, F as BillingSubscriptionHistoryList, Fn as SpaceCommerceProductBenefitBinding, Fr as UserSessionListItem, Ft as LabelSource, G as Channel, Gn as SpaceFsCompleteUploadResponse, Gt as PublicUserPageResponse, H as CanvasNodeRecord, Hn as SpaceDefaultResponse, Ht as PromptTemplateCatalogEntry, I as BillingSubscriptionHistoryStatus, In as SpaceCommerceProductCreditBenefit, Ir as UserSessionSpaceSummary, It as MeResponse, J as CheckpointDiffFileResponse, Jn as SpaceFsEncoding, Jt as PublicUserWorkItem, K as CheckpointDiffDelivery, Kn as SpaceFsCreateUploadInput, Kt as PublicUserProfile, L as BillingSubscriptionSummary, Ln as SpaceConfig, Lr as UserSessionsResponse, Lt as ModelCatalogEntry, M as BillingProductPricing, Mn as SpaceCommerceFeatureBenefit, Mr as TaskRunRecord, Mt as LabelRecord, N as BillingRedemptionResult, Nn as SpaceCommerceOrder, Nr as UserProfile, Nt as LabelResourceType, O as BillingProductBillingInterval, On as SpaceCheckpointDetailResponse, Or as SpaceUsageHourlyStat, Ot as LabelAssignmentRecord, P as BillingResponsePayload, Pn as SpaceCommerceProduct, Pr as UserRulesResponse, Pt as LabelScopeType, Q as CheckpointDiffStatus, Qn as SpaceFsMoveInput, Qr as GenerationResult, Qt as ReferenceDirection, R as CanvasBootstrapResponse, Rn as SpaceConfigInput, Rt as PatchResourceLabelsInput, S as BillingCreditGrantStatus, Sn as SkillCatalogEntry, Sr as SpaceRecord, St as InvitationDetail, T as BillingHistoryPagination, Tn as SpaceAccessPolicy, Tr as SpaceSandboxConfig, Tt as JsonValue, U as CanvasSemanticOp, Un as SpaceEnvInput, Ut as PromptTemplateCatalogResponse, V as CanvasNodeInput, Vn as SpaceCreateResponse, Vt as PromptAccessMode, W as CanvasTransactionInput, Wn as SpaceFsCompleteUploadInput, Wt as PublicReferral, X as CheckpointDiffPatchLine, Xn as SpaceFsFileKind, Xr as GenerationContentBlock, Xt as ReferenceAggregateGroupBy, Y as CheckpointDiffPatchKind, Yn as SpaceFsEntry, Yt as ReferenceAggregateGroup, Z as CheckpointDiffStats, Zn as SpaceFsFileResponse, Zt as ReferenceAggregateResponse, _ as BillingCatalogProduct, _n as SessionTurnResponse, _r as SpacePendingDiffFileResponse, _t as GenerationUsageHourlyStat, an as ReferralListItem, ar as SpaceFsUploadEntry, at as CreateSpaceModInput, b as BillingConversionIntent, bn as SessionTurnWindowResponse, br as SpacePresenceUser, bt as GlobalSearchResult, cn as ResourceLabelsResponse, cr as SpaceFsUploadPlanEntryInput, ct as CreateSpaceSessionInput, d as BatchUserProfilesResponse, di as MessageRecord, dn as SessionBindingRecord, dr as SpaceFsWriteFileInput, dt as CronJobUpdatePatch, ei as ChannelHealth, en as ReferenceQueryResponse, er as SpaceFsReadFilesError, et as CheckpointRecord, f as BillingBalanceActivity, fi as SessionForkRecord, fn as SessionMessageResponse, fr as SpaceInvitation, ft as CursorPageInfo, g as BillingCatalog, gn as SessionTurnIndexResponse, gr as SpaceModListItem, gt as GenerationUsageBlock, h as BillingBalanceActivityStatus, hi as SessionTurnRecord, hn as SessionRecord, hr as SpaceMeta, ht as ExploreSpacesResponse, ii as FeishuChannelConfig, in as ReferralDashboard, ir as SpaceFsUploadDestination, it as CreateSpaceInput, j as BillingProductKind, jn as SpaceCommerceCreditsBenefit, jr as TaskRunDetailResponse, jt as LabelListItem, k as BillingProductCreditBenefit, kn as SpaceCommerceBenefit, kr as SpaceUsageResponse, kt as LabelItemsResponse, l as AcceptInvitationResponse, ln as SandboxSpecId, lr as SpaceFsUploadProgress, lt as CronJobPayload, m as BillingBalanceActivityList, mi as SessionTurnIndexItem, mn as SessionMessagesResponse, mr as SpaceMember, mt as ExploreSpaceItem, ni as ChannelRuntimeState, nn as ReferenceRecord, nr as SpaceFsReadFilesResponse, nt as CreateInvitationInput, on as ReferralReward, or as SpaceFsUploadError, ot as CreateSpacePromptInput, p as BillingBalanceActivityKind, pi as SessionTurnSegmentRecord, pn as SessionMessagesPaginatedResponse, pr as SpaceListItem, pt as ExploreSection, q as CheckpointDiffFile, qn as SpaceFsCreateUploadResponse, qt as PublicUserSpaceItem, ri as DiscordChannelConfig, rn as ReferenceResourceType, rr as SpaceFsTreeResponse, rt as CreateInvitationResponse, sn as ReferralStatus, sr as SpaceFsUploadPlanEntry, st as CreateSpacePromptResponse, ti as ChannelHealthReasonCode, tn as ReferenceQueryableType, tr as SpaceFsReadFilesInput, tt as ClaimReferralResponse, u as ApiError, un as SendMessageCronJobPayload, ur as SpaceFsUploadResponse, ut as CronJobRecord, v as BillingCheckoutActionState, vi as ContentBlock, vn as SessionTurnSignedUrlsResponse, vr as SpacePendingDiffSummary, vt as GenerationUsageSummary, w as BillingCreditUnit, wn as SpaceAccess, wr as SpaceSandboxAutoDestroyPolicy, wt as JsonPrimitive, x as BillingCreditExpiryGroup, xn as SessionTurnsPaginatedResponse, xr as SpacePublicProfile, xt as GlobalSearchType, y as BillingCheckoutResult, yn as SessionTurnStreamSnapshotResponse, yr as SpacePresenceSnapshot, yt as GlobalSearchResponse, z as CanvasCreateInput, zn as SpaceConfigResponse, zt as PatchResourceLabelsResponse } from "./chunks/websocket.js";
3
- export { AcceptInvitationResponse, ApiError, BatchUserProfilesResponse, BillingBalanceActivity, BillingBalanceActivityKind, BillingBalanceActivityList, BillingBalanceActivityStatus, BillingCatalog, BillingCatalogProduct, BillingCheckoutActionState, BillingCheckoutResult, BillingConversionIntent, BillingCreditExpiryGroup, BillingCreditGrantStatus, BillingCreditStatus, BillingCreditUnit, BillingHistoryPagination, BillingPaymentStatus, BillingPluginStatus, BillingProductBillingInterval, BillingProductCreditBenefit, BillingProductDisplay, BillingProductKind, BillingProductPricing, BillingRedemptionResult, BillingResponsePayload, BillingSubscriptionHistoryList, BillingSubscriptionHistoryStatus, BillingSubscriptionSummary, CanvasBootstrapResponse, CanvasCreateInput, CanvasDocumentRecord, CanvasNodeInput, CanvasNodeRecord, CanvasSemanticOp, CanvasTransactionInput, Channel, type ChannelConfig, type ChannelHealth, type ChannelHealthReasonCode, type ChannelRuntimeState, CheckpointDiffDelivery, CheckpointDiffFile, CheckpointDiffFileResponse, CheckpointDiffPatchKind, CheckpointDiffPatchLine, CheckpointDiffStats, CheckpointDiffStatus, CheckpointDiffSummary, CheckpointRecord, ClaimReferralResponse, type CohubClientOptions, CohubHttpClient, type CompletionAssistantMessage, type CompletionMessage, type CompletionMessageRole, type CompletionThinkingLevel, type CompletionUsage, type ContentBlock, type CreateGenerationTaskRequest, type CreateGenerationTaskResponse, CreateInvitationInput, CreateInvitationResponse, type CreateSpaceCompletionInput, CreateSpaceInput, CreateSpaceModInput, CreateSpacePromptInput, CreateSpacePromptResponse, CreateSpaceSessionInput, CronJobPayload, CronJobRecord, CronJobUpdatePatch, CursorPageInfo, type DiscordChannelConfig, ExploreSection, ExploreSpaceItem, ExploreSpacesResponse, type FeishuChannelConfig, type Fetch, type GenerationContentBlock, type GenerationPolicy, type GenerationResult, type GenerationTaskResult, type GenerationUsageBilling, GenerationUsageBlock, GenerationUsageHourlyStat, GenerationUsageSummary, GlobalSearchResponse, GlobalSearchResult, GlobalSearchType, HttpError, HttpTransport, InvitationDetail, JsonObject, JsonPrimitive, JsonValue, LabelAssignmentListItem, LabelAssignmentPageInfo, LabelAssignmentRecord, LabelItemsResponse, LabelItemsSessionFork, LabelListItem, LabelRecord, LabelResourceType, LabelScopeType, LabelSource, type ListGenerationModelsResponse, MeResponse, type MessageRecord, ModelCatalogEntry, PatchResourceLabelsInput, PatchResourceLabelsResponse, Permission, PromptAccessMode, PromptTemplateCatalogEntry, PromptTemplateCatalogResponse, type PublicGenerationDeclaration, PublicReferral, PublicUserPageResponse, PublicUserProfile, PublicUserSpaceItem, PublicUserWorkItem, ReferenceAggregateGroup, ReferenceAggregateGroupBy, ReferenceAggregateResponse, ReferenceDirection, ReferenceKind, ReferenceQueryResponse, ReferenceQueryableType, ReferenceRecord, ReferenceResourceType, ReferralDashboard, ReferralListItem, ReferralReward, ReferralStatus, ResourceLabelsResponse, SandboxSpecId, SendMessageCronJobPayload, SessionBindingRecord, type SessionForkRecord, SessionMessageResponse, SessionMessagesPaginatedResponse, SessionMessagesResponse, SessionRecord, type SessionTurnIndexItem, SessionTurnIndexResponse, type SessionTurnRecord, SessionTurnResponse, type SessionTurnSegmentRecord, SessionTurnSignedUrlsResponse, SessionTurnStreamSnapshotResponse, SessionTurnWindowResponse, SessionTurnsPaginatedResponse, SkillCatalogEntry, SkillCatalogResponse, SpaceAccess, SpaceAccessPolicy, SpaceBootstrapSource, SpaceChannelBindingInput, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, SpaceFsCompleteUploadInput, SpaceFsCompleteUploadResponse, SpaceFsCreateUploadInput, SpaceFsCreateUploadResponse, SpaceFsEncoding, SpaceFsEntry, SpaceFsFileKind, SpaceFsFileResponse, SpaceFsMoveInput, SpaceFsPreparingFile, SpaceFsReadFilesError, SpaceFsReadFilesInput, SpaceFsReadFilesResponse, SpaceFsTreeResponse, SpaceFsUploadDestination, SpaceFsUploadEntry, SpaceFsUploadError, SpaceFsUploadPlanEntry, SpaceFsUploadPlanEntryInput, SpaceFsUploadProgress, SpaceFsUploadResponse, SpaceFsWriteFileInput, SpaceInvitation, SpaceListItem, SpaceMember, SpaceMeta, SpaceModListItem, SpacePendingDiffFileResponse, SpacePendingDiffSummary, SpacePresenceSnapshot, SpacePresenceUser, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, TaskRunDetailResponse, TaskRunRecord, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, createHttpClient };
1
+ import { C as BoardRenderCost, S as BoardCapability, _ as BoardRecord, a as BoardCreateInput, b as BoardTransaction, c as BoardEffect, d as BoardManifest, f as BoardNodeInput, g as BoardPlaybackSnapshot, h as BoardPlaybackCommand, i as BoardClip, l as BoardInspectInput, m as BoardOperation, n as BoardBootstrap, o as BoardDeleteReason, p as BoardNodeRecord, r as BoardCapabilities, s as BoardDiagnostic, t as BoardAssetRef, u as BoardKeyframe, v as BoardSequence, x as BoardValidationResult, y as BoardTarget } from "./chunks/board.js";
2
+ import { $ as CreateSpacePromptInput, $n as SpaceFsUploadError, $t as ReferralReward, A as BillingProductDisplay, An as SpaceConfig, Ar as UserSessionsResponse, At as ModelCatalogEntry, B as CheckpointDiffFile, Bn as SpaceFsCreateUploadResponse, Bt as PublicUserSpaceItem, C as BillingCreditStatus, Cn as SpaceCommerceBuyerProfile, Cr as SpaceUsageSummary, Ct as LabelItemsSessionFork, D as BillingPluginStatus, Dn as SpaceCommerceProduct, Dr as UserRulesResponse, Dt as LabelScopeType, E as BillingPaymentStatus, En as SpaceCommerceOrder, Er as UserProfile, Et as LabelResourceType, F as BillingSubscriptionHistoryList, Fn as SpaceDefaultResponse, Fr as DiscordChannelConfig, Ft as PromptTemplateCatalogEntry, G as CheckpointDiffStatus, Gn as SpaceFsMoveInput, Gt as ReferenceDirection, H as CheckpointDiffPatchKind, Hn as SpaceFsEntry, Ht as ReferenceAggregateGroup, I as BillingSubscriptionHistoryStatus, In as SpaceEnvInput, Ir as FeishuChannelConfig, It as PromptTemplateCatalogResponse, J as ClaimReferralResponse, Jn as SpaceFsReadFilesInput, Jt as ReferenceQueryableType, K as CheckpointDiffSummary, Kn as SpaceFsPreparingFile, Kt as ReferenceKind, L as BillingSubscriptionSummary, Ln as SpaceFsCompleteUploadInput, Lt as PublicReferral, M as BillingProductPricing, Mn as SpaceConfigResponse, Mr as ChannelHealth, Mt as PatchResourceLabelsResponse, N as BillingRedemptionResult, Nn as SpaceConfigUpdateResponse, Nr as ChannelHealthReasonCode, Nt as Permission, O as BillingProductBillingInterval, On as SpaceCommerceProductBenefitBinding, Or as UserSessionListItem, Ot as LabelSource, P as BillingResponsePayload, Pn as SpaceCreateResponse, Pr as ChannelRuntimeState, Pt as PromptAccessMode, Q as CreateSpaceModInput, Qn as SpaceFsUploadEntry, Qt as ReferralListItem, R as Channel, Rn as SpaceFsCompleteUploadResponse, Rt as PublicUserPageResponse, S as BillingCreditGrantStatus, Sn as SpaceCommerceBenefit, Sr as SpaceUsageResponse, St as LabelItemsResponse, T as BillingHistoryPagination, Tn as SpaceCommerceFeatureBenefit, Tr as TaskRunRecord, Tt as LabelRecord, U as CheckpointDiffPatchLine, Un as SpaceFsFileKind, Ut as ReferenceAggregateGroupBy, V as CheckpointDiffFileResponse, Vn as SpaceFsEncoding, Vt as PublicUserWorkItem, W as CheckpointDiffStats, Wn as SpaceFsFileResponse, Wt as ReferenceAggregateResponse, X as CreateInvitationResponse, Xn as SpaceFsTreeResponse, Xt as ReferenceResourceType, Y as CreateInvitationInput, Yn as SpaceFsReadFilesResponse, Yr as GenerationContentBlock, Yt as ReferenceRecord, Z as CreateSpaceInput, Zn as SpaceFsUploadDestination, Zr as GenerationResult, Zt as ReferralDashboard, _ as BillingCatalogProduct, _i as ModelThinkingLevel, _n as SpaceAccess, _r as SpaceSandboxAutoDestroyPolicy, _t as JsonPrimitive, an as SessionMessageResponse, ar as SpaceInvitation, at as CursorPageInfo, b as BillingConversionIntent, bn as SpaceChannelBindingInput, br as SpaceSessionsResponse, bt as LabelAssignmentPageInfo, ci as SessionTurnSegmentRecord, cn as SessionRecord, cr as SpaceMeta, ct as ExploreSpacesResponse, d as BatchUserProfilesResponse, di as CompletionAssistantMessage, dn as SessionTurnSignedUrlsResponse, dr as SpacePendingDiffSummary, dt as GenerationUsageSummary, en as ReferralStatus, er as SpaceFsUploadPlanEntry, et as CreateSpacePromptResponse, f as BillingBalanceActivity, fi as CompletionMessage, fn as SessionTurnStreamSnapshotResponse, fr as SpacePresenceSnapshot, ft as GlobalSearchResponse, g as BillingCatalog, gi as CreateSpaceCompletionInput, gn as SkillCatalogResponse, gr as SpaceRole, gt as JsonObject, h as BillingBalanceActivityStatus, hi as CompletionUsage, hn as SkillCatalogEntry, hr as SpaceRecord, ht as InvitationDetail, in as SessionBindingRecord, ir as SpaceFsWriteFileInput, it as CronJobUpdatePatch, j as BillingProductKind, jn as SpaceConfigInput, jr as ChannelConfig, jt as PatchResourceLabelsInput, k as BillingProductCreditBenefit, kn as SpaceCommerceProductCreditBenefit, kr as UserSessionSpaceSummary, kt as MeResponse, l as AcceptInvitationResponse, li as SessionTurnIndexItem, ln as SessionTurnIndexResponse, lr as SpaceModListItem, lt as GenerationUsageBlock, m as BillingBalanceActivityList, mi as CompletionThinkingLevel, mn as SessionTurnsPaginatedResponse, mr as SpacePublicProfile, mt as GlobalSearchType, nn as SandboxSpecId, nr as SpaceFsUploadProgress, nt as CronJobPayload, oi as MessageRecord, on as SessionMessagesPaginatedResponse, or as SpaceListItem, ot as ExploreSection, p as BillingBalanceActivityKind, pi as CompletionMessageRole, pn as SessionTurnWindowResponse, pr as SpacePresenceUser, pt as GlobalSearchResult, q as CheckpointRecord, qn as SpaceFsReadFilesError, qt as ReferenceQueryResponse, rn as SendMessageCronJobPayload, rr as SpaceFsUploadResponse, rt as CronJobRecord, si as SessionForkRecord, sn as SessionMessagesResponse, sr as SpaceMember, st as ExploreSpaceItem, tn as ResourceLabelsResponse, tr as SpaceFsUploadPlanEntryInput, tt as CreateSpaceSessionInput, u as ApiError, ui as SessionTurnRecord, un as SessionTurnResponse, ur as SpacePendingDiffFileResponse, ut as GenerationUsageHourlyStat, v as BillingCheckoutActionState, vi as SpaceCompletionResult, vn as SpaceAccessPolicy, vr as SpaceSandboxConfig, vt as JsonValue, w as BillingCreditUnit, wn as SpaceCommerceCreditsBenefit, wr as TaskRunDetailResponse, wt as LabelListItem, x as BillingCreditExpiryGroup, xi as ContentBlock, xn as SpaceCheckpointDetailResponse, xr as SpaceUsageHourlyStat, xt as LabelAssignmentRecord, y as BillingCheckoutResult, yi as SpaceCompletionStreamEvent, yn as SpaceBootstrapSource, yr as SpaceSandboxProvider, yt as LabelAssignmentListItem, z as CheckpointDiffDelivery, zn as SpaceFsCreateUploadInput, zr as GenerationPolicy, zt as PublicUserProfile } from "./chunks/websocket.js";
3
+ import { Ft as Fetch, It as HttpError, Lt as HttpTransport, Pt as CohubClientOptions, Sn as ModelStatusResponse, _n as GenerationTaskResult, bn as PublicGenerationDeclaration, gn as CreateGenerationTaskResponse, hn as CreateGenerationTaskRequest, mn as SpaceStartupResponse, n as createHttpClient, t as CohubHttpClient, vn as GenerationUsageBilling, xn as ModelStatusEntry, yn as ListGenerationModelsResponse } from "./chunks/http.js";
4
+ export { AcceptInvitationResponse, ApiError, BatchUserProfilesResponse, BillingBalanceActivity, BillingBalanceActivityKind, BillingBalanceActivityList, BillingBalanceActivityStatus, BillingCatalog, BillingCatalogProduct, BillingCheckoutActionState, BillingCheckoutResult, BillingConversionIntent, BillingCreditExpiryGroup, BillingCreditGrantStatus, BillingCreditStatus, BillingCreditUnit, BillingHistoryPagination, BillingPaymentStatus, BillingPluginStatus, BillingProductBillingInterval, BillingProductCreditBenefit, BillingProductDisplay, BillingProductKind, BillingProductPricing, BillingRedemptionResult, BillingResponsePayload, BillingSubscriptionHistoryList, BillingSubscriptionHistoryStatus, BillingSubscriptionSummary, type BoardAssetRef, type BoardBootstrap, type BoardCapabilities, type BoardCapability, type BoardClip, type BoardCreateInput, type BoardDeleteReason, type BoardDiagnostic, type BoardEffect, type BoardInspectInput, type BoardKeyframe, type BoardManifest, type BoardNodeInput, type BoardNodeRecord, type BoardOperation, type BoardPlaybackCommand, type BoardPlaybackSnapshot, type BoardRecord, type BoardRenderCost, type BoardSequence, type BoardTarget, type BoardTransaction, type BoardValidationResult, Channel, type ChannelConfig, type ChannelHealth, type ChannelHealthReasonCode, type ChannelRuntimeState, CheckpointDiffDelivery, CheckpointDiffFile, CheckpointDiffFileResponse, CheckpointDiffPatchKind, CheckpointDiffPatchLine, CheckpointDiffStats, CheckpointDiffStatus, CheckpointDiffSummary, CheckpointRecord, ClaimReferralResponse, type CohubClientOptions, CohubHttpClient, type CompletionAssistantMessage, type CompletionMessage, type CompletionMessageRole, type CompletionThinkingLevel, type CompletionUsage, type ContentBlock, type CreateGenerationTaskRequest, type CreateGenerationTaskResponse, CreateInvitationInput, CreateInvitationResponse, type CreateSpaceCompletionInput, CreateSpaceInput, CreateSpaceModInput, CreateSpacePromptInput, CreateSpacePromptResponse, CreateSpaceSessionInput, CronJobPayload, CronJobRecord, CronJobUpdatePatch, CursorPageInfo, type DiscordChannelConfig, ExploreSection, ExploreSpaceItem, ExploreSpacesResponse, type FeishuChannelConfig, type Fetch, type GenerationContentBlock, type GenerationPolicy, type GenerationResult, type GenerationTaskResult, type GenerationUsageBilling, GenerationUsageBlock, GenerationUsageHourlyStat, GenerationUsageSummary, GlobalSearchResponse, GlobalSearchResult, GlobalSearchType, HttpError, HttpTransport, InvitationDetail, JsonObject, JsonPrimitive, JsonValue, LabelAssignmentListItem, LabelAssignmentPageInfo, LabelAssignmentRecord, LabelItemsResponse, LabelItemsSessionFork, LabelListItem, LabelRecord, LabelResourceType, LabelScopeType, LabelSource, type ListGenerationModelsResponse, MeResponse, type MessageRecord, ModelCatalogEntry, type ModelStatusEntry, type ModelStatusResponse, type ModelThinkingLevel, PatchResourceLabelsInput, PatchResourceLabelsResponse, Permission, PromptAccessMode, PromptTemplateCatalogEntry, PromptTemplateCatalogResponse, type PublicGenerationDeclaration, PublicReferral, PublicUserPageResponse, PublicUserProfile, PublicUserSpaceItem, PublicUserWorkItem, ReferenceAggregateGroup, ReferenceAggregateGroupBy, ReferenceAggregateResponse, ReferenceDirection, ReferenceKind, ReferenceQueryResponse, ReferenceQueryableType, ReferenceRecord, ReferenceResourceType, ReferralDashboard, ReferralListItem, ReferralReward, ReferralStatus, ResourceLabelsResponse, SandboxSpecId, SendMessageCronJobPayload, SessionBindingRecord, type SessionForkRecord, SessionMessageResponse, SessionMessagesPaginatedResponse, SessionMessagesResponse, SessionRecord, type SessionTurnIndexItem, SessionTurnIndexResponse, type SessionTurnRecord, SessionTurnResponse, type SessionTurnSegmentRecord, SessionTurnSignedUrlsResponse, SessionTurnStreamSnapshotResponse, SessionTurnWindowResponse, SessionTurnsPaginatedResponse, SkillCatalogEntry, SkillCatalogResponse, SpaceAccess, SpaceAccessPolicy, SpaceBootstrapSource, SpaceChannelBindingInput, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, SpaceFsCompleteUploadInput, SpaceFsCompleteUploadResponse, SpaceFsCreateUploadInput, SpaceFsCreateUploadResponse, SpaceFsEncoding, SpaceFsEntry, SpaceFsFileKind, SpaceFsFileResponse, SpaceFsMoveInput, SpaceFsPreparingFile, SpaceFsReadFilesError, SpaceFsReadFilesInput, SpaceFsReadFilesResponse, SpaceFsTreeResponse, SpaceFsUploadDestination, SpaceFsUploadEntry, SpaceFsUploadError, SpaceFsUploadPlanEntry, SpaceFsUploadPlanEntryInput, SpaceFsUploadProgress, SpaceFsUploadResponse, SpaceFsWriteFileInput, SpaceInvitation, SpaceListItem, SpaceMember, SpaceMeta, SpaceModListItem, SpacePendingDiffFileResponse, SpacePendingDiffSummary, SpacePresenceSnapshot, SpacePresenceUser, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, type SpaceStartupResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, TaskRunDetailResponse, TaskRunRecord, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, createHttpClient };