@neta-art/cohub 5.7.0 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -5
- package/dist/board/core/palette.d.ts +3 -2
- package/dist/board/core/shape-types.d.ts +3 -1
- package/dist/board/core/shape-types.js +3 -7
- package/dist/board/core/tool-styles.d.ts +2 -1
- package/dist/board/image-key.js +3 -5
- package/dist/board/index.d.ts +9 -4
- package/dist/board/index.js +7 -3
- package/dist/board/media-playback.d.ts +22 -0
- package/dist/board/media-playback.js +67 -0
- package/dist/board/media.d.ts +7 -0
- package/dist/board/media.js +70 -0
- package/dist/board/nodes.d.ts +113 -0
- package/dist/board/nodes.js +154 -0
- package/dist/board/render/index.d.ts +3 -1
- package/dist/board/render/index.js +4 -2
- package/dist/board/render/media-interaction.d.ts +19 -0
- package/dist/board/render/media-interaction.js +26 -0
- package/dist/board/render/renderers/audio-card-renderer.js +1 -1
- package/dist/board/render/renderers/board-renderer-registry.js +2 -2
- package/dist/board/render/renderers/draw-card-renderer.js +1 -1
- package/dist/board/render/renderers/file-card-renderer.js +1 -1
- package/dist/board/render/renderers/frame-card-renderer.js +1 -1
- package/dist/board/render/renderers/geo-card-renderer.js +1 -1
- package/dist/board/render/renderers/image-card-renderer.js +1 -1
- package/dist/board/render/renderers/task-card-renderer.js +16 -13
- package/dist/board/render/renderers/text-card-renderer.js +1 -1
- package/dist/board/render/renderers/unknown-card-renderer.js +1 -1
- package/dist/board/render/renderers/video-card-renderer.js +1 -1
- package/dist/board/render/video-thumbnail.d.ts +16 -0
- package/dist/board/render/video-thumbnail.js +86 -0
- package/dist/board/task.d.ts +10 -5
- package/dist/board/task.js +159 -103
- package/dist/chunks/environment.d.ts +6 -6
- package/dist/chunks/environment.js +6 -6
- package/dist/chunks/http.d.ts +152 -5
- package/dist/chunks/http.js +1707 -169
- package/dist/chunks/transport.js +24 -4
- package/dist/chunks/websocket.d.ts +144 -2
- package/dist/chunks/websocket.js +1 -1
- package/dist/http.d.ts +3 -3
- package/dist/index.d.ts +273 -4
- package/dist/index.js +275 -741
- package/dist/protocol/dist/board-connection.d.ts +7 -0
- package/dist/protocol/dist/board-connection.js +4 -0
- package/dist/protocol/dist/board-content.d.ts +1 -0
- package/dist/protocol/dist/board-content.js +26 -0
- package/dist/protocol/dist/board-document.d.ts +157 -48
- package/dist/protocol/dist/board-document.js +40 -19
- package/dist/protocol/dist/board-node.d.ts +18 -0
- package/dist/protocol/dist/board-node.js +239 -0
- package/dist/protocol/dist/board-url.d.ts +12 -0
- package/dist/protocol/dist/board-url.js +83 -0
- package/dist/protocol/dist/board.d.ts +5 -0
- package/dist/protocol/dist/identifiers.js +10 -0
- package/dist/protocol/dist/index.d.ts +3 -1
- package/dist/protocol/dist/index.js +7 -1
- package/dist/protocol/dist/provenance.js +2 -0
- package/dist/protocol/dist/ui-command.js +2 -0
- package/dist/protocol/dist/work-promotion-stats.js +11 -0
- package/dist/protocol/dist/work-surface.js +2 -0
- package/dist/protocol/dist/work-view-stats.js +1 -0
- package/docs/work-runtime-guide.md +7 -7
- package/package.json +1 -1
package/dist/chunks/transport.js
CHANGED
|
@@ -51,6 +51,20 @@ const getSessionTurnPatchStreamKey = (input, options = {}) => {
|
|
|
51
51
|
return options.includeSessionFallback ? getNonEmptyString(input.sessionId) : null;
|
|
52
52
|
};
|
|
53
53
|
//#endregion
|
|
54
|
+
//#region ../protocol/dist/identifiers.js
|
|
55
|
+
const UUID_SHAPE_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
56
|
+
const UUID_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}";
|
|
57
|
+
const UUID_OR_SHORT_UUID_PATTERN = `^(?:${UUID_PATTERN}|[0-9a-fA-F]{32})$`;
|
|
58
|
+
const UUID_SHAPE_REGEX = new RegExp(`^${UUID_SHAPE_PATTERN}$`);
|
|
59
|
+
const UUID_REGEX = new RegExp(`^${UUID_PATTERN}$`);
|
|
60
|
+
new RegExp(UUID_OR_SHORT_UUID_PATTERN);
|
|
61
|
+
function isUuidLike(value) {
|
|
62
|
+
return typeof value === "string" && UUID_SHAPE_REGEX.test(value);
|
|
63
|
+
}
|
|
64
|
+
function isUuid(value) {
|
|
65
|
+
return typeof value === "string" && UUID_REGEX.test(value);
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
54
68
|
//#region ../protocol/dist/provenance.js
|
|
55
69
|
/** Request provenance via X-Cohub-Source-* headers. Never used for authorization. */
|
|
56
70
|
const COHUB_SOURCE_HEADER = {
|
|
@@ -59,10 +73,10 @@ const COHUB_SOURCE_HEADER = {
|
|
|
59
73
|
turn: "X-Cohub-Source-Turn",
|
|
60
74
|
toolCall: "X-Cohub-Source-Tool-Call",
|
|
61
75
|
client: "X-Cohub-Source-Client",
|
|
76
|
+
sandboxVersion: "X-Cohub-Source-Sandbox",
|
|
62
77
|
via: "X-Cohub-Source-Via"
|
|
63
78
|
};
|
|
64
|
-
const
|
|
65
|
-
const isRequestSourceUuid = (value) => typeof value === "string" && UUID_RE.test(value);
|
|
79
|
+
const isRequestSourceUuid = (value) => isUuidLike(value);
|
|
66
80
|
const REQUEST_SOURCE_VIA_MAX_LENGTH = 64;
|
|
67
81
|
/** Opaque, url-safe client instance id. */
|
|
68
82
|
const CLIENT_ID_RE = /^[A-Za-z0-9_-]{8,64}$/;
|
|
@@ -94,9 +108,10 @@ const asClientId = (value) => {
|
|
|
94
108
|
const cleaned = asNonEmpty(value);
|
|
95
109
|
return cleaned && isRequestSourceClientId(cleaned) ? cleaned : void 0;
|
|
96
110
|
};
|
|
111
|
+
const asSandboxVersion = (value) => asNonEmpty(value)?.slice(0, 128);
|
|
97
112
|
const isRequestSourceEmpty = (source) => {
|
|
98
113
|
if (!source) return true;
|
|
99
|
-
return !source.spaceId && !source.sessionId && !source.turnId && !source.toolCallId && !source.clientId && !source.via;
|
|
114
|
+
return !source.spaceId && !source.sessionId && !source.turnId && !source.toolCallId && !source.clientId && !source.sandboxVersion && !source.via;
|
|
100
115
|
};
|
|
101
116
|
const hasRequestSourceIdentity = (source) => {
|
|
102
117
|
if (!source) return false;
|
|
@@ -111,6 +126,7 @@ const normalizeRequestSource = (input) => {
|
|
|
111
126
|
const turnId = asUuid(record.turnId);
|
|
112
127
|
const toolCallId = asUuid(record.toolCallId);
|
|
113
128
|
const clientId = asClientId(record.clientId);
|
|
129
|
+
const sandboxVersion = asSandboxVersion(record.sandboxVersion);
|
|
114
130
|
const via = asVia(record.via);
|
|
115
131
|
const source = {
|
|
116
132
|
...spaceId ? { spaceId } : {},
|
|
@@ -118,6 +134,7 @@ const normalizeRequestSource = (input) => {
|
|
|
118
134
|
...turnId ? { turnId } : {},
|
|
119
135
|
...toolCallId ? { toolCallId } : {},
|
|
120
136
|
...clientId ? { clientId } : {},
|
|
137
|
+
...sandboxVersion ? { sandboxVersion } : {},
|
|
121
138
|
...via ? { via } : {}
|
|
122
139
|
};
|
|
123
140
|
return isRequestSourceEmpty(source) ? null : source;
|
|
@@ -128,6 +145,7 @@ const parseRequestSourceFromHeaders = (getHeader) => normalizeRequestSource({
|
|
|
128
145
|
turnId: getHeader(COHUB_SOURCE_HEADER.turn),
|
|
129
146
|
toolCallId: getHeader(COHUB_SOURCE_HEADER.toolCall),
|
|
130
147
|
clientId: getHeader(COHUB_SOURCE_HEADER.client),
|
|
148
|
+
sandboxVersion: getHeader(COHUB_SOURCE_HEADER.sandboxVersion),
|
|
131
149
|
via: getHeader(COHUB_SOURCE_HEADER.via)
|
|
132
150
|
});
|
|
133
151
|
const requestSourceToHeaders = (source) => {
|
|
@@ -139,6 +157,7 @@ const requestSourceToHeaders = (source) => {
|
|
|
139
157
|
if (normalized.turnId) headers[COHUB_SOURCE_HEADER.turn] = normalized.turnId;
|
|
140
158
|
if (normalized.toolCallId) headers[COHUB_SOURCE_HEADER.toolCall] = normalized.toolCallId;
|
|
141
159
|
if (normalized.clientId) headers[COHUB_SOURCE_HEADER.client] = normalized.clientId;
|
|
160
|
+
if (normalized.sandboxVersion) headers[COHUB_SOURCE_HEADER.sandboxVersion] = normalized.sandboxVersion;
|
|
142
161
|
if (normalized.via) headers[COHUB_SOURCE_HEADER.via] = normalized.via;
|
|
143
162
|
return headers;
|
|
144
163
|
};
|
|
@@ -149,6 +168,7 @@ const readRequestSourceFromEnv = (env = {}, defaults) => normalizeRequestSource(
|
|
|
149
168
|
turnId: env.COHUB_TURN_ID,
|
|
150
169
|
toolCallId: env.COHUB_TOOL_CALL_ID,
|
|
151
170
|
clientId: env.COHUB_SOURCE_CLIENT_ID,
|
|
171
|
+
sandboxVersion: asNonEmpty(env.COHUB_SANDBOX_VERSION) ?? env.IMAGE_VERSION,
|
|
152
172
|
via: env.COHUB_SOURCE_VIA ?? defaults?.via
|
|
153
173
|
});
|
|
154
174
|
const resolveRequestSourceChannel = (source, fallback = "public_api") => {
|
|
@@ -432,4 +452,4 @@ var HttpTransport = class {
|
|
|
432
452
|
}
|
|
433
453
|
};
|
|
434
454
|
//#endregion
|
|
435
|
-
export {
|
|
455
|
+
export { isRealtimeDomain as A, WS_BOARD_AWARENESS_CAPABILITY as C, getRealtimeBoardRoom as D, WS_ROOM_SUBSCRIPTION_CAPABILITY as E, getRealtimeSpaceRoom as O, REALTIME_ROOM_MAX_PAYLOAD_BYTES as S, WS_REALTIME_ROOM_CAPABILITY as T, requestSourceToHeaders as _, sanitizeAccessToken as a, REALTIME_DOMAINS as b, REQUEST_SOURCE_VIA_MAX_LENGTH as c, isRequestSourceEmpty as d, isRequestSourceUuid as f, readRequestSourceFromEnv as g, parseRequestSourceFromHeaders as h, matchesUnauthorizedErrorToken as i, normalizeRealtimeRooms as j, getSessionTurnPatchStreamKey as k, hasRequestSourceIdentity as l, normalizeRequestSource as m, HttpTransport as n, COHUB_SOURCE_HEADER as o, mergeRequestSourceIntoMeta as p, joinApiUrl as r, COHUB_SOURCE_HEADER_NAMES as s, HttpError as t, isRequestSourceClientId as u, resolveRequestSourceChannel as v, WS_COMPACT_STREAM_CAPABILITY as w, REALTIME_ROOM_EVENT_NAME_PATTERN as x, isUuid as y };
|
|
@@ -8,6 +8,7 @@ declare const COHUB_SOURCE_HEADER: {
|
|
|
8
8
|
readonly turn: "X-Cohub-Source-Turn";
|
|
9
9
|
readonly toolCall: "X-Cohub-Source-Tool-Call";
|
|
10
10
|
readonly client: "X-Cohub-Source-Client";
|
|
11
|
+
readonly sandboxVersion: "X-Cohub-Source-Sandbox";
|
|
11
12
|
readonly via: "X-Cohub-Source-Via";
|
|
12
13
|
};
|
|
13
14
|
type RequestSourceVia = "cli" | "bash" | "tool" | "api" | "web" | (string & {});
|
|
@@ -24,6 +25,8 @@ type RequestSource = {
|
|
|
24
25
|
* — never an authorization input.
|
|
25
26
|
*/
|
|
26
27
|
clientId?: string;
|
|
28
|
+
/** Untrusted provenance hint derived from the Sandbox runtime environment. */
|
|
29
|
+
sandboxVersion?: string;
|
|
27
30
|
via?: RequestSourceVia;
|
|
28
31
|
};
|
|
29
32
|
declare const isRequestSourceUuid: (value: unknown) => value is string;
|
|
@@ -518,6 +521,7 @@ declare const BoardConnectionSchema: z.ZodObject<{
|
|
|
518
521
|
id: z.ZodString;
|
|
519
522
|
source: z.ZodObject<{
|
|
520
523
|
nodeId: z.ZodString;
|
|
524
|
+
portId: z.ZodOptional<z.ZodString>;
|
|
521
525
|
anchor: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
522
526
|
kind: z.ZodLiteral<"auto">;
|
|
523
527
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -537,6 +541,7 @@ declare const BoardConnectionSchema: z.ZodObject<{
|
|
|
537
541
|
}, z.core.$strip>;
|
|
538
542
|
target: z.ZodObject<{
|
|
539
543
|
nodeId: z.ZodString;
|
|
544
|
+
portId: z.ZodOptional<z.ZodString>;
|
|
540
545
|
anchor: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
541
546
|
kind: z.ZodLiteral<"auto">;
|
|
542
547
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -603,6 +608,7 @@ type BoardConnectionInput = BoardConnection;
|
|
|
603
608
|
declare const BoardConnectionPatchSchema: z.ZodObject<{
|
|
604
609
|
source: z.ZodOptional<z.ZodObject<{
|
|
605
610
|
nodeId: z.ZodString;
|
|
611
|
+
portId: z.ZodOptional<z.ZodString>;
|
|
606
612
|
anchor: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
607
613
|
kind: z.ZodLiteral<"auto">;
|
|
608
614
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -622,6 +628,7 @@ declare const BoardConnectionPatchSchema: z.ZodObject<{
|
|
|
622
628
|
}, z.core.$strip>>;
|
|
623
629
|
target: z.ZodOptional<z.ZodObject<{
|
|
624
630
|
nodeId: z.ZodString;
|
|
631
|
+
portId: z.ZodOptional<z.ZodString>;
|
|
625
632
|
anchor: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
626
633
|
kind: z.ZodLiteral<"auto">;
|
|
627
634
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -671,6 +678,64 @@ declare const BoardConnectionPatchSchema: z.ZodObject<{
|
|
|
671
678
|
}, z.core.$strip>;
|
|
672
679
|
type BoardConnectionPatch = z.infer<typeof BoardConnectionPatchSchema>;
|
|
673
680
|
//#endregion
|
|
681
|
+
//#region ../protocol/dist/board-node.d.ts
|
|
682
|
+
declare const BOARD_COLOR_IDS: readonly ["brand", "neutral", "black", "white", "blue", "green", "amber", "violet", "rose"];
|
|
683
|
+
type BoardColorId = (typeof BOARD_COLOR_IDS)[number];
|
|
684
|
+
declare const BOARD_GEO_KINDS: readonly ["rectangle", "rounded", "ellipse", "diamond", "triangle"];
|
|
685
|
+
type BoardGeoKind = (typeof BOARD_GEO_KINDS)[number];
|
|
686
|
+
declare const BOARD_NATIVE_NODE_TYPES: readonly ["image", "video", "audio", "file", "task", "text", "geo", "draw", "arrow", "frame"];
|
|
687
|
+
type BoardNativeNodeType = (typeof BOARD_NATIVE_NODE_TYPES)[number];
|
|
688
|
+
type BoardNodeValidationDiagnostic = {
|
|
689
|
+
severity: "error";
|
|
690
|
+
code: "INVALID_BOARD_NODE" | "INVALID_BOARD_GEOMETRY";
|
|
691
|
+
message: string;
|
|
692
|
+
path: string;
|
|
693
|
+
expected?: string;
|
|
694
|
+
received?: unknown;
|
|
695
|
+
allowedValues?: readonly string[];
|
|
696
|
+
coordinateSpace?: "frame-local" | "world";
|
|
697
|
+
};
|
|
698
|
+
type BoardJsonSchema = Record<string, unknown>;
|
|
699
|
+
type BoardNodeContract = {
|
|
700
|
+
types: readonly BoardNativeNodeType[];
|
|
701
|
+
colors: readonly BoardColorId[];
|
|
702
|
+
geos: readonly BoardGeoKind[];
|
|
703
|
+
coordinates: {
|
|
704
|
+
frame: "world";
|
|
705
|
+
drawPoints: "frame-local";
|
|
706
|
+
arrowEndpoints: "world";
|
|
707
|
+
};
|
|
708
|
+
references: {
|
|
709
|
+
nodeTypes: readonly ["image", "video", "audio", "file"];
|
|
710
|
+
kind: "space_file";
|
|
711
|
+
pathField: "refPath";
|
|
712
|
+
};
|
|
713
|
+
schemas: {
|
|
714
|
+
envelope: BoardJsonSchema;
|
|
715
|
+
data: Record<BoardNativeNodeType, BoardJsonSchema>;
|
|
716
|
+
view: Record<BoardNativeNodeType, BoardJsonSchema>;
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
type BoardNodeLike = {
|
|
720
|
+
nodeId?: unknown;
|
|
721
|
+
type: unknown;
|
|
722
|
+
parentId?: unknown;
|
|
723
|
+
orderKey?: unknown;
|
|
724
|
+
x: number;
|
|
725
|
+
y: number;
|
|
726
|
+
width: number;
|
|
727
|
+
height: number;
|
|
728
|
+
rotation?: unknown;
|
|
729
|
+
refKind?: unknown;
|
|
730
|
+
refPath?: unknown;
|
|
731
|
+
refUrl?: unknown;
|
|
732
|
+
view?: unknown;
|
|
733
|
+
style?: unknown;
|
|
734
|
+
data?: unknown;
|
|
735
|
+
};
|
|
736
|
+
declare const BOARD_NODE_CONTRACT: BoardNodeContract;
|
|
737
|
+
declare function validateBoardNodeInput(node: BoardNodeLike, path?: string): BoardNodeValidationDiagnostic[];
|
|
738
|
+
//#endregion
|
|
674
739
|
//#region ../protocol/dist/board.d.ts
|
|
675
740
|
declare const BOARD_SNAPSHOT_KIND: "cohub.board.snapshot";
|
|
676
741
|
declare const BOARD_PROTOCOL_VERSION: 1;
|
|
@@ -960,6 +1025,7 @@ declare const BoardCreateInputSchema: z.ZodObject<{
|
|
|
960
1025
|
id: z.ZodString;
|
|
961
1026
|
source: z.ZodObject<{
|
|
962
1027
|
nodeId: z.ZodString;
|
|
1028
|
+
portId: z.ZodOptional<z.ZodString>;
|
|
963
1029
|
anchor: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
964
1030
|
kind: z.ZodLiteral<"auto">;
|
|
965
1031
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -979,6 +1045,7 @@ declare const BoardCreateInputSchema: z.ZodObject<{
|
|
|
979
1045
|
}, z.core.$strip>;
|
|
980
1046
|
target: z.ZodObject<{
|
|
981
1047
|
nodeId: z.ZodString;
|
|
1048
|
+
portId: z.ZodOptional<z.ZodString>;
|
|
982
1049
|
anchor: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
983
1050
|
kind: z.ZodLiteral<"auto">;
|
|
984
1051
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1146,6 +1213,10 @@ type BoardDiagnostic = {
|
|
|
1146
1213
|
message: string;
|
|
1147
1214
|
path?: string;
|
|
1148
1215
|
adaptation?: Record<string, unknown>;
|
|
1216
|
+
expected?: string;
|
|
1217
|
+
received?: unknown;
|
|
1218
|
+
allowedValues?: readonly string[];
|
|
1219
|
+
coordinateSpace?: "frame-local" | "world";
|
|
1149
1220
|
};
|
|
1150
1221
|
type BoardValidationResult = {
|
|
1151
1222
|
valid: boolean;
|
|
@@ -1156,6 +1227,7 @@ type BoardCapabilities = {
|
|
|
1156
1227
|
protocolVersion: 1;
|
|
1157
1228
|
capabilities: BoardCapability[];
|
|
1158
1229
|
limits: BoardRenderCost;
|
|
1230
|
+
nodes: BoardNodeContract;
|
|
1159
1231
|
};
|
|
1160
1232
|
/** Persisted on `boards.metadata.playback`: how a Board plays when opened. */
|
|
1161
1233
|
declare const BoardPlaybackPolicySchema: z.ZodObject<{
|
|
@@ -2660,6 +2732,26 @@ type BillingProductPricing = {
|
|
|
2660
2732
|
discountLabel: string | null;
|
|
2661
2733
|
discountRate: number | null;
|
|
2662
2734
|
};
|
|
2735
|
+
type BillingDiscountPricing = {
|
|
2736
|
+
amountMinor: number;
|
|
2737
|
+
amountUsd: number;
|
|
2738
|
+
discountAmountMinor: number;
|
|
2739
|
+
discountAmountUsd: number;
|
|
2740
|
+
paidAmountMinor: number;
|
|
2741
|
+
paidAmountUsd: number;
|
|
2742
|
+
currency: string;
|
|
2743
|
+
};
|
|
2744
|
+
type BillingDiscountOfferRef = {
|
|
2745
|
+
key: string;
|
|
2746
|
+
revision: string;
|
|
2747
|
+
};
|
|
2748
|
+
type BillingDiscountOffer = {
|
|
2749
|
+
ref: BillingDiscountOfferRef;
|
|
2750
|
+
name: string;
|
|
2751
|
+
duration: "once" | "forever";
|
|
2752
|
+
endsAt: string | null;
|
|
2753
|
+
pricing: BillingDiscountPricing;
|
|
2754
|
+
};
|
|
2663
2755
|
type BillingProductDisplay = {
|
|
2664
2756
|
description: string | null;
|
|
2665
2757
|
benefits: string[];
|
|
@@ -2693,6 +2785,7 @@ type BillingCatalogProduct = {
|
|
|
2693
2785
|
kind: BillingProductKind;
|
|
2694
2786
|
interval: BillingProductBillingInterval;
|
|
2695
2787
|
pricing: BillingProductPricing;
|
|
2788
|
+
offer: BillingDiscountOffer | null;
|
|
2696
2789
|
display: BillingProductDisplay;
|
|
2697
2790
|
isDefaultPlan: boolean;
|
|
2698
2791
|
};
|
|
@@ -2867,6 +2960,18 @@ type BillingCheckoutResult = {
|
|
|
2867
2960
|
subscriptionId: string | null;
|
|
2868
2961
|
reused: boolean;
|
|
2869
2962
|
};
|
|
2963
|
+
type BillingPromotionCodePreview = {
|
|
2964
|
+
userId: string;
|
|
2965
|
+
productKey: string;
|
|
2966
|
+
promotionCode: string;
|
|
2967
|
+
eligible: boolean;
|
|
2968
|
+
reasonCode: string | null;
|
|
2969
|
+
message: string | null;
|
|
2970
|
+
name: string | null;
|
|
2971
|
+
duration: "once" | "forever" | null;
|
|
2972
|
+
endsAt: string | null;
|
|
2973
|
+
pricing: BillingDiscountPricing | null;
|
|
2974
|
+
};
|
|
2870
2975
|
type BillingRedemptionResult = {
|
|
2871
2976
|
userId: string;
|
|
2872
2977
|
billing: BillingPluginStatus;
|
|
@@ -3779,10 +3884,47 @@ type GenerationUsageBlock = {
|
|
|
3779
3884
|
type SpaceUsageResponse = {
|
|
3780
3885
|
hourly: SpaceUsageHourlyStat[];
|
|
3781
3886
|
summary: SpaceUsageSummary;
|
|
3782
|
-
/**
|
|
3887
|
+
/** Generation rollups (image / video / music). Optional for older servers. */
|
|
3783
3888
|
generation?: GenerationUsageBlock;
|
|
3784
3889
|
days: number;
|
|
3785
3890
|
};
|
|
3891
|
+
type UserActivityQuery = {
|
|
3892
|
+
days?: number;
|
|
3893
|
+
from?: string | Date;
|
|
3894
|
+
to?: string | Date;
|
|
3895
|
+
};
|
|
3896
|
+
type UserActivityRange = {
|
|
3897
|
+
from: string;
|
|
3898
|
+
to: string;
|
|
3899
|
+
};
|
|
3900
|
+
type UserActivityRankings = {
|
|
3901
|
+
llmModels: Array<{
|
|
3902
|
+
provider: string;
|
|
3903
|
+
model: string;
|
|
3904
|
+
totalTokens: number;
|
|
3905
|
+
requestCount: number;
|
|
3906
|
+
costTotal: number;
|
|
3907
|
+
}>;
|
|
3908
|
+
generationModels: Array<{
|
|
3909
|
+
provider: string;
|
|
3910
|
+
model: string;
|
|
3911
|
+
requestCount: number;
|
|
3912
|
+
costTotal: number;
|
|
3913
|
+
}>;
|
|
3914
|
+
works: Array<{
|
|
3915
|
+
workId: string;
|
|
3916
|
+
spaceId: string;
|
|
3917
|
+
spaceName: string;
|
|
3918
|
+
slug: string;
|
|
3919
|
+
title: string;
|
|
3920
|
+
status: "published" | "disabled";
|
|
3921
|
+
viewCount: number;
|
|
3922
|
+
}>;
|
|
3923
|
+
};
|
|
3924
|
+
type UserActivityResponse = SpaceUsageResponse & {
|
|
3925
|
+
range: UserActivityRange;
|
|
3926
|
+
rankings: UserActivityRankings;
|
|
3927
|
+
};
|
|
3786
3928
|
type ReferralStatus = "pending" | "qualified" | "rewarded";
|
|
3787
3929
|
type ReferralReward = {
|
|
3788
3930
|
inviterUsd: number;
|
|
@@ -4099,4 +4241,4 @@ declare class WebsocketClient {
|
|
|
4099
4241
|
}
|
|
4100
4242
|
declare const createWebsocketClient: (options?: WebsocketClientOptions) => WebsocketClient;
|
|
4101
4243
|
//#endregion
|
|
4102
|
-
export {
|
|
4244
|
+
export { CreateInvitationInput as $, CompletionThinkingLevel as $a, UiSurfaceRequest as $i, SpaceFsPreparingFile as $n, GenerationModelPolicy as $r, ReferralListItem as $t, BillingPluginStatus as A, BOARD_NATIVE_NODE_TYPES as Aa, BoardAwarenessStateUpdate as Ai, SpaceCommerceFeatureBenefit as An, SpaceTurnAuthorFilter as Ar, MeResponse as At, BillingSubscriptionHistoryStatus as B, BoardConnectionRecord as Ba, UI_COMMAND_MAX_TIMEOUT_MS as Bi, SpaceDefaultResponse as Bn, UserActivityRankings as Br, PublicUserProfile as Bt, BillingCreditStatus as C, BoardSequence as Ca, RealtimeServerEvent as Ci, SpaceBootstrapStage as Cn, SpacePublicProfile as Cr, LabelItemsResponse as Ct, BillingDiscountPricing as D, parseBoardPlaybackPolicy as Da, WorkVersionPublishedEvent as Di, SpaceCommerceBenefit as Dn, SpaceSandboxConfig as Dr, LabelResourceType as Dt, BillingDiscountOfferRef as E, BoardValidationResult as Ea, SessionTurnPatchEvent as Ei, SpaceCheckpointDetailResponse as En, SpaceSandboxAutoDestroyPolicy as Er, LabelRecord as Et, BillingProductPricing as F, BoardNodeContract as Fa, WorkArtifactManifestFile as Fi, SpaceConfig as Fn, SpaceUsageSummary as Fr, PromptAccessMode as Ft, CheckpointDiffFileResponse as G, SessionForkRecord as Ga, UI_COMMAND_VERSION as Gi, SpaceFsCreateUploadInput as Gn, UserSessionSpaceSummary as Gr, ReferenceAggregateResponse as Gt, Channel as H, BoardRenderCost as Ha, UI_COMMAND_PENDING_TTL_SECONDS as Hi, SpaceFsCompleteUploadInput as Hn, UserProfile as Hr, PublicUserWorkItem as Ht, BillingPromotionCodePreview as I, BoardNodeValidationDiagnostic as Ia, WorkBoardArtifactManifest as Ii, SpaceConfigInput as In, TaskRunDetailResponse as Ir, PromptTemplateCatalogEntry as It, CheckpointDiffStats as J, SessionTurnRecord as Ja, UiCommandError as Ji, SpaceFsEncoding as Jn, ChannelHealth as Jr, ReferenceQueryResponse as Jt, CheckpointDiffPatchKind as K, SessionTurnSegmentRecord as Ka, UiCommand as Ki, SpaceFsCreateUploadResponse as Kn, UserSessionsResponse as Kr, ReferenceDirection as Kt, BillingRedemptionResult as L, validateBoardNodeInput as La, WorkBoardAsset as Li, SpaceConfigResponse as Ln, TaskRunRecord as Lr, PromptTemplateCatalogResponse as Lt, BillingProductCreditBenefit as M, BoardColorId as Ma, WorkArtifactDescriptor as Mi, SpaceCommerceProduct as Mn, SpaceTurnsResponse as Mr, PatchResourceLabelsInput as Mt, BillingProductDisplay as N, BoardGeoKind as Na, WorkArtifactDownloadDescriptor as Ni, SpaceCommerceProductBenefitBinding as Nn, SpaceUsageHourlyStat as Nr, PatchResourceLabelsResponse as Nt, BillingHistoryPagination as O, BOARD_COLOR_IDS as Oa, BoardAwarenessGesture as Oi, SpaceCommerceBuyerProfile as On, SpaceSandboxProvider as Or, LabelScopeType as Ot, BillingProductKind as P, BoardNativeNodeType as Pa, WorkArtifactManifest as Pi, SpaceCommerceProductCreditBenefit as Pn, SpaceUsageResponse as Pr, Permission as Pt, ClaimReferralResponse as Q, CompletionMessageRole as Qa, UiPreviewTarget as Qi, SpaceFsMoveInput as Qn, FeishuChannelConfig as Qr, ReferralDashboard as Qt, BillingResponsePayload as R, BoardConnection as Ra, WorkContentKind as Ri, SpaceConfigUpdateResponse as Rn, UserActivityQuery as Rr, PublicReferral as Rt, BillingCreditGrantStatus as S, BoardRecord as Sa, RealtimeRoomMember as Si, SpaceBootstrapSource as Sn, resolveRequestSourceChannel as So, SpacePresenceUser as Sr, LabelAssignmentRecord as St, BillingDiscountOffer as T, BoardTransaction as Ta, RealtimeWorkVersionRecord as Ti, SpaceChannelBindingInput as Tn, SpaceRole as Tr, LabelListItem as Tt, CheckpointDiffDelivery as U, SpacePublicEndpoints as Ua, UI_COMMAND_SETTLEMENT_GRACE_SECONDS as Ui, SpaceFsCompleteUploadResponse as Un, UserRulesResponse as Ur, ReferenceAggregateGroup as Ut, BillingSubscriptionSummary as V, BoardCapability as Va, UI_COMMAND_PAYLOAD_MAX_BYTES as Vi, SpaceEnvInput as Vn, UserActivityResponse as Vr, PublicUserSpaceItem as Vt, CheckpointDiffFile as W, MessageRecord as Wa, UI_COMMAND_TERMINAL_TTL_SECONDS as Wi, SpaceFsCreateDirectoryInput as Wn, UserSessionListItem as Wr, ReferenceAggregateGroupBy as Wt, CheckpointDiffSummary as X, CompletionAssistantMessage as Xa, UiCommandStatus as Xi, SpaceFsFileKind as Xn, ChannelRuntimeState as Xr, ReferenceRecord as Xt, CheckpointDiffStatus as Y, SpaceTurnsResponse$1 as Ya, UiCommandRecord as Yi, SpaceFsEntry as Yn, ChannelHealthReasonCode as Yr, ReferenceQueryableType as Yt, CheckpointRecord as Z, CompletionMessage as Za, UiPreviewShowCommand as Zi, SpaceFsFileResponse as Zn, DiscordChannelConfig as Zr, ReferenceResourceType as Zt, BillingCatalogProduct as _, BoardOperation as _a, ChannelEnvelope as _i, SkillCatalogResponse as _n, mergeRequestSourceIntoMeta as _o, SpaceMeta as _r, JsonObject as _t, WebsocketClientOptions as a, BoardBootstrap as aa, encodeGenerationPolicy as ai, SessionBindingRecord as an, Usage as ao, SpaceFsUploadEntry as ar, CreateSpaceSessionInput as at, BillingConversionIntent as b, BoardPlaybackPolicySchema as ba, RealtimeRoomDescriptor as bi, SpaceAccessPolicy as bn, readRequestSourceFromEnv as bo, SpacePendingDiffSummary as br, LabelAssignmentListItem as bt, createWebsocketClient as c, BoardCreateInput as ca, getAllowedGenerationModelIds as ci, SessionMessagesResponse as cn, COHUB_SOURCE_HEADER as co, SpaceFsUploadPlanEntryInput as cr, CronJobUpdatePatch as ct, BatchUserProfilesResponse as d, BoardEffect as da, GenerationContentBlock as di, SessionTurnResponse as dn, RequestSource as do, SpaceFsWriteFileInput as dr, GenerationUsageHourlyStat as dt, UiWorkPreviewTarget as ea, GenerationParameterConstraint as ei, ReferralReward as en, CompletionUsage as eo, SpaceFsReadFilesError as er, CreateInvitationResponse as et, BillingBalanceActivity as f, BoardInspectInput as fa, GenerationModelDeclaration as fi, SessionTurnSignedUrlsResponse as fn, RequestSourceVia as fo, SpaceInvitation as fr, GenerationUsageSummary as ft, BillingCatalog as g, BoardNodeRecord as ga, BoardTransactionAppliedEvent as gi, SkillCatalogEntry as gn, isRequestSourceUuid as go, SpaceMember as gr, InvitationDetail as gt, BillingBalanceActivityStatus as h, BoardNodeInput as ha, BoardPlaybackChangedEvent as hi, SessionTurnsPaginatedResponse as hn, isRequestSourceEmpty as ho, SpaceListItem as hr, GlobalSearchType as ht, WebsocketClientEvents as i, BoardAssetRef as ia, decodeGenerationPolicy as ii, SendMessageCronJobPayload as in, SpaceCompletionStreamEvent as io, SpaceFsUploadDestination as ir, CreateSpacePromptResponse as it, BillingProductBillingInterval as j, BOARD_NODE_CONTRACT as ja, BoardAwarenessUpdate as ji, SpaceCommerceOrder as jn, SpaceTurnListItem as jr, ModelCatalogEntry as jt, BillingPaymentStatus as k, BOARD_GEO_KINDS as ka, BoardAwarenessNodePreview as ki, SpaceCommerceCreditsBenefit as kn, SpaceSessionsResponse as kr, LabelSource as kt, AcceptInvitationResponse as l, BoardDeleteReason as la, normalizeGenerationPolicy as li, SessionRecord as ln, COHUB_SOURCE_HEADER_NAMES as lo, SpaceFsUploadProgress as lr, CursorPageInfo as lt, BillingBalanceActivityList as m, BoardManifest as ma, BoardAwarenessUpdatedEvent as mi, SessionTurnWindowResponse as mn, isRequestSourceClientId as mo, SpaceInvitationLocation as mr, GlobalSearchResult as mt, WebSocketLike as n, isUiSurfaceMethod as na, GenerationPolicyError as ni, ResourceLabelsResponse as nn, ModelThinkingLevel as no, SpaceFsReadFilesResponse as nr, CreateSpaceModInput as nt, WebsocketClientState as o, BoardCapabilities as oa, filterGenerationDeclarationsByPolicy as oi, SessionMessageResponse as on, BillingPayload as oo, SpaceFsUploadError as or, CronJobPayload as ot, BillingBalanceActivityKind as p, BoardKeyframe as pa, GenerationResult as pi, SessionTurnStreamSnapshotResponse as pn, hasRequestSourceIdentity as po, SpaceInvitationListResponse as pr, GlobalSearchResponse as pt, CheckpointDiffPatchLine as q, SessionTurnIndexItem as qa, UiCommandDispatchedPayload as qi, SpaceFsDeleteNodeInput as qn, ChannelConfig as qr, ReferenceKind as qt, WebsocketClient as r, parseUiCommand as ra, assertGenerationRequestAllowedByPolicy as ri, SandboxSpecId as rn, SpaceCompletionResult as ro, SpaceFsTreeResponse as rr, CreateSpacePromptInput as rt, WebsocketEventPayload as s, BoardClip as sa, findGenerationModelPolicy as si, SessionMessagesPaginatedResponse as sn, ContentBlock as so, SpaceFsUploadPlanEntry as sr, CronJobRecord as st, WebSocketConstructor as t, isTerminalUiCommandStatus as ta, GenerationPolicy as ti, ReferralStatus as tn, CreateSpaceCompletionInput as to, SpaceFsReadFilesInput as tr, CreateSpaceInput as tt, ApiError as u, BoardDiagnostic as ua, parseGenerationPolicyFromEnv as ui, SessionTurnIndexResponse as un, REQUEST_SOURCE_VIA_MAX_LENGTH as uo, SpaceFsUploadResponse as ur, GenerationUsageBlock as ut, BillingCheckoutActionState as v, BoardPlaybackCommand as va, LabelAssignmentsUpdatedEvent as vi, SkillCatalogSource as vn, normalizeRequestSource as vo, SpaceModListItem as vr, JsonPrimitive as vt, BillingCreditUnit as w, BoardTarget as wa, RealtimeWorkRecord as wi, SpaceBootstrapStatus as wn, SpaceRecord as wr, LabelItemsSessionFork as wt, BillingCreditExpiryGroup as x, BoardPlaybackSnapshot as xa, RealtimeRoomEvent as xi, SpaceBootstrapMeta as xn, requestSourceToHeaders as xo, SpacePresenceSnapshot as xr, LabelAssignmentPageInfo as xt, BillingCheckoutResult as y, BoardPlaybackPolicy as ya, RealtimePatchOperation as yi, SpaceAccess as yn, parseRequestSourceFromHeaders as yo, SpacePendingDiffFileResponse as yr, JsonValue as yt, BillingSubscriptionHistoryList as z, BoardConnectionDirection as za, UI_COMMAND_DEFAULT_TIMEOUT_MS as zi, SpaceCreateResponse as zn, UserActivityRange as zr, PublicUserPageResponse as zt };
|
package/dist/chunks/websocket.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as isRealtimeDomain, C as WS_BOARD_AWARENESS_CAPABILITY, E as WS_ROOM_SUBSCRIPTION_CAPABILITY, O as getRealtimeSpaceRoom, T as WS_REALTIME_ROOM_CAPABILITY, j as normalizeRealtimeRooms, k as getSessionTurnPatchStreamKey, t as HttpError, w as WS_COMPACT_STREAM_CAPABILITY } from "./transport.js";
|
|
2
2
|
import { c as resolveWebsocketUrl } from "./environment.js";
|
|
3
3
|
//#region src/http-error.ts
|
|
4
4
|
/** Shared HTTP error code for every plan entitlement gate (402). */
|
package/dist/http.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
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, 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 BoardPlaybackPolicy, 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, 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, SkillCatalogSource, SpaceAccess, SpaceAccessPolicy, SpaceBootstrapMeta, SpaceBootstrapSource, SpaceBootstrapStage, SpaceBootstrapStatus, SpaceChannelBindingInput, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, SpaceFsCompleteUploadInput, SpaceFsCompleteUploadResponse, SpaceFsCreateDirectoryInput, SpaceFsCreateUploadInput, SpaceFsCreateUploadResponse, SpaceFsDeleteNodeInput, SpaceFsEncoding, SpaceFsEntry, SpaceFsFileKind, SpaceFsFileResponse, SpaceFsMoveInput, SpaceFsPreparingFile, SpaceFsReadFilesError, SpaceFsReadFilesInput, SpaceFsReadFilesResponse, SpaceFsTreeResponse, SpaceFsUploadDestination, SpaceFsUploadEntry, SpaceFsUploadError, SpaceFsUploadPlanEntry, SpaceFsUploadPlanEntryInput, SpaceFsUploadProgress, SpaceFsUploadResponse, SpaceFsWriteFileInput, SpaceInvitation, SpaceInvitationListResponse, SpaceInvitationLocation, SpaceListItem, SpaceMember, SpaceMeta, SpaceModListItem, SpacePendingDiffFileResponse, SpacePendingDiffSummary, SpacePresenceSnapshot, SpacePresenceUser, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, type SpaceStartupResponse, SpaceTurnAuthorFilter, SpaceTurnListItem, SpaceTurnsResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, TaskRunDetailResponse, TaskRunRecord, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, createHttpClient };
|
|
1
|
+
import { $ as CreateInvitationInput, $a as CompletionThinkingLevel, $n as SpaceFsPreparingFile, $t as ReferralListItem, A as BillingPluginStatus, An as SpaceCommerceFeatureBenefit, Ar as SpaceTurnAuthorFilter, At as MeResponse, B as BillingSubscriptionHistoryStatus, Bn as SpaceDefaultResponse, Br as UserActivityRankings, Bt as PublicUserProfile, C as BillingCreditStatus, Ca as BoardSequence, Cn as SpaceBootstrapStage, Cr as SpacePublicProfile, Ct as LabelItemsResponse, D as BillingDiscountPricing, Dn as SpaceCommerceBenefit, Dr as SpaceSandboxConfig, Dt as LabelResourceType, E as BillingDiscountOfferRef, Ea as BoardValidationResult, En as SpaceCheckpointDetailResponse, Er as SpaceSandboxAutoDestroyPolicy, Et as LabelRecord, F as BillingProductPricing, Fn as SpaceConfig, Fr as SpaceUsageSummary, Ft as PromptAccessMode, G as CheckpointDiffFileResponse, Ga as SessionForkRecord, Gn as SpaceFsCreateUploadInput, Gr as UserSessionSpaceSummary, Gt as ReferenceAggregateResponse, H as Channel, Ha as BoardRenderCost, Hn as SpaceFsCompleteUploadInput, Hr as UserProfile, Ht as PublicUserWorkItem, I as BillingPromotionCodePreview, In as SpaceConfigInput, Ir as TaskRunDetailResponse, It as PromptTemplateCatalogEntry, J as CheckpointDiffStats, Ja as SessionTurnRecord, Jn as SpaceFsEncoding, Jr as ChannelHealth, Jt as ReferenceQueryResponse, K as CheckpointDiffPatchKind, Ka as SessionTurnSegmentRecord, Kn as SpaceFsCreateUploadResponse, Kr as UserSessionsResponse, Kt as ReferenceDirection, L as BillingRedemptionResult, Ln as SpaceConfigResponse, Lr as TaskRunRecord, Lt as PromptTemplateCatalogResponse, M as BillingProductCreditBenefit, Mn as SpaceCommerceProduct, Mr as SpaceTurnsResponse, Mt as PatchResourceLabelsInput, N as BillingProductDisplay, Nn as SpaceCommerceProductBenefitBinding, Nr as SpaceUsageHourlyStat, Nt as PatchResourceLabelsResponse, O as BillingHistoryPagination, On as SpaceCommerceBuyerProfile, Or as SpaceSandboxProvider, Ot as LabelScopeType, P as BillingProductKind, Pn as SpaceCommerceProductCreditBenefit, Pr as SpaceUsageResponse, Pt as Permission, Q as ClaimReferralResponse, Qa as CompletionMessageRole, Qn as SpaceFsMoveInput, Qr as FeishuChannelConfig, Qt as ReferralDashboard, R as BillingResponsePayload, Rn as SpaceConfigUpdateResponse, Rr as UserActivityQuery, Rt as PublicReferral, S as BillingCreditGrantStatus, Sa as BoardRecord, Sn as SpaceBootstrapSource, Sr as SpacePresenceUser, St as LabelAssignmentRecord, T as BillingDiscountOffer, Ta as BoardTransaction, Tn as SpaceChannelBindingInput, Tr as SpaceRole, Tt as LabelListItem, U as CheckpointDiffDelivery, Un as SpaceFsCompleteUploadResponse, Ur as UserRulesResponse, Ut as ReferenceAggregateGroup, V as BillingSubscriptionSummary, Va as BoardCapability, Vn as SpaceEnvInput, Vr as UserActivityResponse, Vt as PublicUserSpaceItem, W as CheckpointDiffFile, Wa as MessageRecord, Wn as SpaceFsCreateDirectoryInput, Wr as UserSessionListItem, Wt as ReferenceAggregateGroupBy, X as CheckpointDiffSummary, Xa as CompletionAssistantMessage, Xn as SpaceFsFileKind, Xr as ChannelRuntimeState, Xt as ReferenceRecord, Y as CheckpointDiffStatus, Yn as SpaceFsEntry, Yr as ChannelHealthReasonCode, Yt as ReferenceQueryableType, Z as CheckpointRecord, Za as CompletionMessage, Zn as SpaceFsFileResponse, Zr as DiscordChannelConfig, Zt as ReferenceResourceType, _ as BillingCatalogProduct, _a as BoardOperation, _n as SkillCatalogResponse, _r as SpaceMeta, _t as JsonObject, aa as BoardBootstrap, an as SessionBindingRecord, ar as SpaceFsUploadEntry, at as CreateSpaceSessionInput, b as BillingConversionIntent, bn as SpaceAccessPolicy, br as SpacePendingDiffSummary, bt as LabelAssignmentListItem, ca as BoardCreateInput, cn as SessionMessagesResponse, cr as SpaceFsUploadPlanEntryInput, ct as CronJobUpdatePatch, d as BatchUserProfilesResponse, da as BoardEffect, di as GenerationContentBlock, dn as SessionTurnResponse, dr as SpaceFsWriteFileInput, dt as GenerationUsageHourlyStat, en as ReferralReward, eo as CompletionUsage, er as SpaceFsReadFilesError, et as CreateInvitationResponse, f as BillingBalanceActivity, fa as BoardInspectInput, fn as SessionTurnSignedUrlsResponse, fr as SpaceInvitation, ft as GenerationUsageSummary, g as BillingCatalog, ga as BoardNodeRecord, gn as SkillCatalogEntry, gr as SpaceMember, gt as InvitationDetail, h as BillingBalanceActivityStatus, ha as BoardNodeInput, hn as SessionTurnsPaginatedResponse, hr as SpaceListItem, ht as GlobalSearchType, ia as BoardAssetRef, in as SendMessageCronJobPayload, io as SpaceCompletionStreamEvent, ir as SpaceFsUploadDestination, it as CreateSpacePromptResponse, j as BillingProductBillingInterval, jn as SpaceCommerceOrder, jr as SpaceTurnListItem, jt as ModelCatalogEntry, k as BillingPaymentStatus, kn as SpaceCommerceCreditsBenefit, kr as SpaceSessionsResponse, kt as LabelSource, l as AcceptInvitationResponse, la as BoardDeleteReason, ln as SessionRecord, lr as SpaceFsUploadProgress, lt as CursorPageInfo, m as BillingBalanceActivityList, ma as BoardManifest, mn as SessionTurnWindowResponse, mr as SpaceInvitationLocation, mt as GlobalSearchResult, nn as ResourceLabelsResponse, no as ModelThinkingLevel, nr as SpaceFsReadFilesResponse, nt as CreateSpaceModInput, oa as BoardCapabilities, on as SessionMessageResponse, or as SpaceFsUploadError, ot as CronJobPayload, p as BillingBalanceActivityKind, pa as BoardKeyframe, pi as GenerationResult, pn as SessionTurnStreamSnapshotResponse, pr as SpaceInvitationListResponse, pt as GlobalSearchResponse, q as CheckpointDiffPatchLine, qa as SessionTurnIndexItem, qn as SpaceFsDeleteNodeInput, qr as ChannelConfig, qt as ReferenceKind, rn as SandboxSpecId, ro as SpaceCompletionResult, rr as SpaceFsTreeResponse, rt as CreateSpacePromptInput, sa as BoardClip, sn as SessionMessagesPaginatedResponse, so as ContentBlock, sr as SpaceFsUploadPlanEntry, st as CronJobRecord, ti as GenerationPolicy, tn as ReferralStatus, to as CreateSpaceCompletionInput, tr as SpaceFsReadFilesInput, tt as CreateSpaceInput, u as ApiError, ua as BoardDiagnostic, un as SessionTurnIndexResponse, ur as SpaceFsUploadResponse, ut as GenerationUsageBlock, v as BillingCheckoutActionState, va as BoardPlaybackCommand, vn as SkillCatalogSource, vr as SpaceModListItem, vt as JsonPrimitive, w as BillingCreditUnit, wa as BoardTarget, wn as SpaceBootstrapStatus, wr as SpaceRecord, wt as LabelItemsSessionFork, x as BillingCreditExpiryGroup, xa as BoardPlaybackSnapshot, xn as SpaceBootstrapMeta, xr as SpacePresenceSnapshot, xt as LabelAssignmentPageInfo, y as BillingCheckoutResult, ya as BoardPlaybackPolicy, yn as SpaceAccess, yr as SpacePendingDiffFileResponse, yt as JsonValue, z as BillingSubscriptionHistoryList, zn as SpaceCreateResponse, zr as UserActivityRange, zt as PublicUserPageResponse } from "./chunks/websocket.js";
|
|
2
|
+
import { Bn as ModelStatusResponse, Fn as GenerationTaskResult, In as GenerationUsageBilling, Ln as ListGenerationModelsResponse, Mn as SpaceStartupResponse, Nn as CreateGenerationTaskRequest, Pn as CreateGenerationTaskResponse, Rn as PublicGenerationDeclaration, in as HttpError, n as createHttpClient, nn as CohubClientOptions, on as HttpTransport, rn as Fetch, t as CohubHttpClient, zn as ModelStatusEntry } from "./chunks/http.js";
|
|
3
|
+
export { AcceptInvitationResponse, ApiError, BatchUserProfilesResponse, BillingBalanceActivity, BillingBalanceActivityKind, BillingBalanceActivityList, BillingBalanceActivityStatus, BillingCatalog, BillingCatalogProduct, BillingCheckoutActionState, BillingCheckoutResult, BillingConversionIntent, BillingCreditExpiryGroup, BillingCreditGrantStatus, BillingCreditStatus, BillingCreditUnit, BillingDiscountOffer, BillingDiscountOfferRef, BillingDiscountPricing, BillingHistoryPagination, BillingPaymentStatus, BillingPluginStatus, BillingProductBillingInterval, BillingProductCreditBenefit, BillingProductDisplay, BillingProductKind, BillingProductPricing, BillingPromotionCodePreview, 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 BoardPlaybackPolicy, 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, 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, SkillCatalogSource, SpaceAccess, SpaceAccessPolicy, SpaceBootstrapMeta, SpaceBootstrapSource, SpaceBootstrapStage, SpaceBootstrapStatus, SpaceChannelBindingInput, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, SpaceFsCompleteUploadInput, SpaceFsCompleteUploadResponse, SpaceFsCreateDirectoryInput, SpaceFsCreateUploadInput, SpaceFsCreateUploadResponse, SpaceFsDeleteNodeInput, SpaceFsEncoding, SpaceFsEntry, SpaceFsFileKind, SpaceFsFileResponse, SpaceFsMoveInput, SpaceFsPreparingFile, SpaceFsReadFilesError, SpaceFsReadFilesInput, SpaceFsReadFilesResponse, SpaceFsTreeResponse, SpaceFsUploadDestination, SpaceFsUploadEntry, SpaceFsUploadError, SpaceFsUploadPlanEntry, SpaceFsUploadPlanEntryInput, SpaceFsUploadProgress, SpaceFsUploadResponse, SpaceFsWriteFileInput, SpaceInvitation, SpaceInvitationListResponse, SpaceInvitationLocation, SpaceListItem, SpaceMember, SpaceMeta, SpaceModListItem, SpacePendingDiffFileResponse, SpacePendingDiffSummary, SpacePresenceSnapshot, SpacePresenceUser, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, type SpaceStartupResponse, SpaceTurnAuthorFilter, SpaceTurnListItem, SpaceTurnsResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, TaskRunDetailResponse, TaskRunRecord, UserActivityQuery, UserActivityRange, UserActivityRankings, UserActivityResponse, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, createHttpClient };
|