@liveblocks/core 2.16.0-toolbars5 → 2.16.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.
- package/dist/index.d.mts +165 -75
- package/dist/index.d.ts +165 -75
- package/dist/index.js +302 -196
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +195 -89
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -5,18 +5,72 @@
|
|
|
5
5
|
declare function detectDupes(pkgName: string, pkgVersion: string | false, // false if not built yet
|
|
6
6
|
pkgFormat: string | false): void;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* This helper type is effectively a no-op, but will force TypeScript to
|
|
10
|
+
* "evaluate" any named helper types in its definition. This can sometimes make
|
|
11
|
+
* API signatures clearer in IDEs.
|
|
12
|
+
*
|
|
13
|
+
* For example, in:
|
|
14
|
+
*
|
|
15
|
+
* type Payload<T> = { data: T };
|
|
16
|
+
*
|
|
17
|
+
* let r1: Payload<string>;
|
|
18
|
+
* let r2: Resolve<Payload<string>>;
|
|
19
|
+
*
|
|
20
|
+
* The inferred type of `r1` is going to be `Payload<string>` which shows up in
|
|
21
|
+
* editor hints, and it may be unclear what's inside if you don't know the
|
|
22
|
+
* definition of `Payload`.
|
|
23
|
+
*
|
|
24
|
+
* The inferred type of `r2` is going to be `{ data: string }`, which may be
|
|
25
|
+
* more helpful.
|
|
26
|
+
*
|
|
27
|
+
* This trick comes from:
|
|
28
|
+
* https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
29
|
+
*/
|
|
30
|
+
type Resolve<T> = T extends (...args: unknown[]) => unknown ? T : {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Relaxes a discriminated union type definition, by explicitly adding
|
|
36
|
+
* properties defined in any other member as 'never'.
|
|
37
|
+
*
|
|
38
|
+
* This makes accessing the members much more relaxed in TypeScript.
|
|
39
|
+
*
|
|
40
|
+
* For example:
|
|
41
|
+
* type MyUnion = Relax<
|
|
42
|
+
* | { foo: string }
|
|
43
|
+
* | { foo: number; bar: string; }
|
|
44
|
+
* | { qux: boolean }
|
|
45
|
+
* >;
|
|
46
|
+
*
|
|
47
|
+
* // With Relax, accessing is much easier:
|
|
48
|
+
* union.foo; // string | number | undefined
|
|
49
|
+
* union.bar; // string | undefined
|
|
50
|
+
* union.qux; // boolean
|
|
51
|
+
* union.whatever; // Error: Property 'whatever' does not exist on type 'MyUnion'
|
|
52
|
+
*
|
|
53
|
+
* // Without Relax, these would all be type errors:
|
|
54
|
+
* union.foo; // Error: Property 'foo' does not exist on type 'MyUnion'
|
|
55
|
+
* union.bar; // Error: Property 'bar' does not exist on type 'MyUnion'
|
|
56
|
+
* union.qux; // Error: Property 'qux' does not exist on type 'MyUnion'
|
|
57
|
+
*/
|
|
58
|
+
type Relax<T> = DistributiveRelax<T, T extends any ? keyof T : never>;
|
|
59
|
+
type DistributiveRelax<T, Ks extends string | number | symbol> = T extends any ? Resolve<{
|
|
60
|
+
[K in keyof T]: T[K];
|
|
61
|
+
} & {
|
|
62
|
+
[K in Exclude<Ks, keyof T>]?: never;
|
|
63
|
+
}> : never;
|
|
64
|
+
|
|
65
|
+
type CustomAuthenticationResult = Relax<{
|
|
9
66
|
token: string;
|
|
10
|
-
error?: never;
|
|
11
67
|
} | {
|
|
12
|
-
token?: never;
|
|
13
68
|
error: "forbidden";
|
|
14
69
|
reason: string;
|
|
15
70
|
} | {
|
|
16
|
-
token?: never;
|
|
17
71
|
error: string;
|
|
18
72
|
reason: string;
|
|
19
|
-
}
|
|
73
|
+
}>;
|
|
20
74
|
|
|
21
75
|
/**
|
|
22
76
|
* Represents an indefinitely deep arbitrary JSON data structure. There are
|
|
@@ -97,9 +151,11 @@ type Observable<T> = {
|
|
|
97
151
|
};
|
|
98
152
|
type EventSource<T> = Observable<T> & {
|
|
99
153
|
/**
|
|
100
|
-
* Notify all subscribers about the event.
|
|
154
|
+
* Notify all subscribers about the event. Will return `false` if there
|
|
155
|
+
* weren't any subscribers at the time the .notify() was called, or `true` if
|
|
156
|
+
* there was at least one subscriber.
|
|
101
157
|
*/
|
|
102
|
-
notify(event: T):
|
|
158
|
+
notify(event: T): boolean;
|
|
103
159
|
/**
|
|
104
160
|
* Returns the number of active subscribers.
|
|
105
161
|
*/
|
|
@@ -246,9 +302,6 @@ type LostConnectionEvent = "lost" | "restored" | "failed";
|
|
|
246
302
|
* any value (except null).
|
|
247
303
|
*/
|
|
248
304
|
type BaseAuthResult = NonNullable<Json>;
|
|
249
|
-
declare class LiveblocksError extends Error {
|
|
250
|
-
code: number;
|
|
251
|
-
}
|
|
252
305
|
type Delegates<T extends BaseAuthResult> = {
|
|
253
306
|
authenticate: () => Promise<T>;
|
|
254
307
|
createSocket: (authValue: T) => IWebSocketInstance;
|
|
@@ -919,22 +972,18 @@ type CommentData = {
|
|
|
919
972
|
editedAt?: Date;
|
|
920
973
|
reactions: CommentReaction[];
|
|
921
974
|
attachments: CommentAttachment[];
|
|
922
|
-
} &
|
|
975
|
+
} & Relax<{
|
|
923
976
|
body: CommentBody;
|
|
924
|
-
deletedAt?: never;
|
|
925
977
|
} | {
|
|
926
|
-
body?: never;
|
|
927
978
|
deletedAt: Date;
|
|
928
|
-
}
|
|
979
|
+
}>;
|
|
929
980
|
type CommentDataPlain = Omit<DateToString<CommentData>, "reactions" | "body"> & {
|
|
930
981
|
reactions: DateToString<CommentReaction>[];
|
|
931
|
-
} &
|
|
982
|
+
} & Relax<{
|
|
932
983
|
body: CommentBody;
|
|
933
|
-
deletedAt?: never;
|
|
934
984
|
} | {
|
|
935
|
-
body?: never;
|
|
936
985
|
deletedAt: string;
|
|
937
|
-
}
|
|
986
|
+
}>;
|
|
938
987
|
type CommentBodyBlockElement = CommentBodyParagraph;
|
|
939
988
|
type CommentBodyInlineElement = CommentBodyText | CommentBodyMention | CommentBodyLink;
|
|
940
989
|
type CommentBodyElement = CommentBodyBlockElement | CommentBodyInlineElement;
|
|
@@ -1006,7 +1055,7 @@ type StringOperators<T> = T | {
|
|
|
1006
1055
|
* - `startsWith` (`^` in query string)
|
|
1007
1056
|
*/
|
|
1008
1057
|
type QueryMetadata<M extends BaseMetadata> = {
|
|
1009
|
-
[K in keyof M]: string extends M[K] ? StringOperators<M[K]> : M[K];
|
|
1058
|
+
[K in keyof M]: (string extends M[K] ? StringOperators<M[K]> : M[K]) | null;
|
|
1010
1059
|
};
|
|
1011
1060
|
|
|
1012
1061
|
declare global {
|
|
@@ -1131,11 +1180,13 @@ type FetchYDocClientMsg = {
|
|
|
1131
1180
|
readonly type: ClientMsgCode.FETCH_YDOC;
|
|
1132
1181
|
readonly vector: string;
|
|
1133
1182
|
readonly guid?: string;
|
|
1183
|
+
readonly v2?: boolean;
|
|
1134
1184
|
};
|
|
1135
1185
|
type UpdateYDocClientMsg = {
|
|
1136
1186
|
readonly type: ClientMsgCode.UPDATE_YDOC;
|
|
1137
1187
|
readonly update: string;
|
|
1138
1188
|
readonly guid?: string;
|
|
1189
|
+
readonly v2?: boolean;
|
|
1139
1190
|
};
|
|
1140
1191
|
|
|
1141
1192
|
type IdTuple<T> = [id: string, value: T];
|
|
@@ -1338,6 +1389,7 @@ type YDocUpdateServerMsg = {
|
|
|
1338
1389
|
readonly isSync: boolean;
|
|
1339
1390
|
readonly stateVector: string | null;
|
|
1340
1391
|
readonly guid?: string;
|
|
1392
|
+
readonly v2?: boolean;
|
|
1341
1393
|
};
|
|
1342
1394
|
/**
|
|
1343
1395
|
* Sent by the WebSocket server and broadcasted to all clients to announce that
|
|
@@ -1469,31 +1521,83 @@ declare namespace DevToolsTreeNode {
|
|
|
1469
1521
|
export type { DevToolsTreeNode_CustomEventTreeNode as CustomEventTreeNode, DevToolsTreeNode_JsonTreeNode as JsonTreeNode, DevToolsTreeNode_LiveTreeNode as LiveTreeNode, DevToolsTreeNode_LsonTreeNode as LsonTreeNode, DevToolsTreeNode_TreeNode as TreeNode, DevToolsTreeNode_UserTreeNode as UserTreeNode };
|
|
1470
1522
|
}
|
|
1471
1523
|
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
* For example, in:
|
|
1478
|
-
*
|
|
1479
|
-
* type Payload<T> = { data: T };
|
|
1480
|
-
*
|
|
1481
|
-
* let r1: Payload<string>;
|
|
1482
|
-
* let r2: Resolve<Payload<string>>;
|
|
1483
|
-
*
|
|
1484
|
-
* The inferred type of `r1` is going to be `Payload<string>` which shows up in
|
|
1485
|
-
* editor hints, and it may be unclear what's inside if you don't know the
|
|
1486
|
-
* definition of `Payload`.
|
|
1487
|
-
*
|
|
1488
|
-
* The inferred type of `r2` is going to be `{ data: string }`, which may be
|
|
1489
|
-
* more helpful.
|
|
1490
|
-
*
|
|
1491
|
-
* This trick comes from:
|
|
1492
|
-
* https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
1493
|
-
*/
|
|
1494
|
-
type Resolve<T> = T extends (...args: unknown[]) => unknown ? T : {
|
|
1495
|
-
[K in keyof T]: T[K];
|
|
1524
|
+
type OptionalKeys<T> = {
|
|
1525
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never;
|
|
1526
|
+
}[keyof T];
|
|
1527
|
+
type MakeOptionalFieldsNullable<T> = {
|
|
1528
|
+
[K in keyof T]: K extends OptionalKeys<T> ? T[K] | null : T[K];
|
|
1496
1529
|
};
|
|
1530
|
+
type Patchable<T> = Partial<MakeOptionalFieldsNullable<T>>;
|
|
1531
|
+
|
|
1532
|
+
type RoomConnectionErrorContext = {
|
|
1533
|
+
type: "ROOM_CONNECTION_ERROR";
|
|
1534
|
+
code: -1 | 4001 | 4005 | 4006 | (number & {});
|
|
1535
|
+
roomId: string;
|
|
1536
|
+
};
|
|
1537
|
+
type CommentsOrNotificationsErrorContext = {
|
|
1538
|
+
type: "CREATE_THREAD_ERROR";
|
|
1539
|
+
roomId: string;
|
|
1540
|
+
threadId: string;
|
|
1541
|
+
commentId: string;
|
|
1542
|
+
body: CommentBody;
|
|
1543
|
+
metadata: BaseMetadata;
|
|
1544
|
+
} | {
|
|
1545
|
+
type: "DELETE_THREAD_ERROR";
|
|
1546
|
+
roomId: string;
|
|
1547
|
+
threadId: string;
|
|
1548
|
+
} | {
|
|
1549
|
+
type: "EDIT_THREAD_METADATA_ERROR";
|
|
1550
|
+
roomId: string;
|
|
1551
|
+
threadId: string;
|
|
1552
|
+
metadata: Patchable<BaseMetadata>;
|
|
1553
|
+
} | {
|
|
1554
|
+
type: "MARK_THREAD_AS_RESOLVED_ERROR" | "MARK_THREAD_AS_UNRESOLVED_ERROR";
|
|
1555
|
+
roomId: string;
|
|
1556
|
+
threadId: string;
|
|
1557
|
+
} | {
|
|
1558
|
+
type: "CREATE_COMMENT_ERROR" | "EDIT_COMMENT_ERROR";
|
|
1559
|
+
roomId: string;
|
|
1560
|
+
threadId: string;
|
|
1561
|
+
commentId: string;
|
|
1562
|
+
body: CommentBody;
|
|
1563
|
+
} | {
|
|
1564
|
+
type: "DELETE_COMMENT_ERROR";
|
|
1565
|
+
roomId: string;
|
|
1566
|
+
threadId: string;
|
|
1567
|
+
commentId: string;
|
|
1568
|
+
} | {
|
|
1569
|
+
type: "ADD_REACTION_ERROR" | "REMOVE_REACTION_ERROR";
|
|
1570
|
+
roomId: string;
|
|
1571
|
+
threadId: string;
|
|
1572
|
+
commentId: string;
|
|
1573
|
+
emoji: string;
|
|
1574
|
+
} | {
|
|
1575
|
+
type: "MARK_INBOX_NOTIFICATION_AS_READ_ERROR";
|
|
1576
|
+
inboxNotificationId: string;
|
|
1577
|
+
roomId?: string;
|
|
1578
|
+
} | {
|
|
1579
|
+
type: "DELETE_INBOX_NOTIFICATION_ERROR";
|
|
1580
|
+
inboxNotificationId: string;
|
|
1581
|
+
} | {
|
|
1582
|
+
type: "MARK_ALL_INBOX_NOTIFICATIONS_AS_READ_ERROR" | "DELETE_ALL_INBOX_NOTIFICATIONS_ERROR";
|
|
1583
|
+
} | {
|
|
1584
|
+
type: "UPDATE_NOTIFICATION_SETTINGS_ERROR";
|
|
1585
|
+
roomId: string;
|
|
1586
|
+
};
|
|
1587
|
+
type LiveblocksErrorContext = Relax<RoomConnectionErrorContext | CommentsOrNotificationsErrorContext>;
|
|
1588
|
+
declare class LiveblocksError extends Error {
|
|
1589
|
+
readonly context: LiveblocksErrorContext;
|
|
1590
|
+
constructor(message: string, context: LiveblocksErrorContext, cause?: Error);
|
|
1591
|
+
/** Convenience accessor for error.context.roomId (if available) */
|
|
1592
|
+
get roomId(): LiveblocksErrorContext["roomId"];
|
|
1593
|
+
/** @deprecated Prefer using `context.code` instead, to enable type narrowing */
|
|
1594
|
+
get code(): LiveblocksErrorContext["code"];
|
|
1595
|
+
/**
|
|
1596
|
+
* Creates a LiveblocksError from a generic error, by attaching Liveblocks
|
|
1597
|
+
* contextual information like room ID, thread ID, etc.
|
|
1598
|
+
*/
|
|
1599
|
+
static from(context: LiveblocksErrorContext, cause?: Error): LiveblocksError;
|
|
1600
|
+
}
|
|
1497
1601
|
|
|
1498
1602
|
/**
|
|
1499
1603
|
* Represents a user connected in a room. Treated as immutable.
|
|
@@ -1527,7 +1631,7 @@ type User<P extends JsonObject = DP, U extends BaseUserMeta = DU> = {
|
|
|
1527
1631
|
readonly canComment: boolean;
|
|
1528
1632
|
};
|
|
1529
1633
|
|
|
1530
|
-
type InternalOthersEvent<P extends JsonObject, U extends BaseUserMeta> = {
|
|
1634
|
+
type InternalOthersEvent<P extends JsonObject, U extends BaseUserMeta> = Relax<{
|
|
1531
1635
|
type: "leave";
|
|
1532
1636
|
user: User<P, U>;
|
|
1533
1637
|
} | {
|
|
@@ -1539,8 +1643,7 @@ type InternalOthersEvent<P extends JsonObject, U extends BaseUserMeta> = {
|
|
|
1539
1643
|
updates: Partial<P>;
|
|
1540
1644
|
} | {
|
|
1541
1645
|
type: "reset";
|
|
1542
|
-
|
|
1543
|
-
};
|
|
1646
|
+
}>;
|
|
1544
1647
|
type OthersEvent<P extends JsonObject = DP, U extends BaseUserMeta = DU> = Resolve<InternalOthersEvent<P, U> & {
|
|
1545
1648
|
others: readonly User<P, U>[];
|
|
1546
1649
|
}>;
|
|
@@ -1549,14 +1652,6 @@ declare enum TextEditorType {
|
|
|
1549
1652
|
TipTap = "tiptap"
|
|
1550
1653
|
}
|
|
1551
1654
|
|
|
1552
|
-
type OptionalKeys<T> = {
|
|
1553
|
-
[K in keyof T]-?: undefined extends T[K] ? K : never;
|
|
1554
|
-
}[keyof T];
|
|
1555
|
-
type MakeOptionalFieldsNullable<T> = {
|
|
1556
|
-
[K in keyof T]: K extends OptionalKeys<T> ? T[K] | null : T[K];
|
|
1557
|
-
};
|
|
1558
|
-
type Patchable<T> = Partial<MakeOptionalFieldsNullable<T>>;
|
|
1559
|
-
|
|
1560
1655
|
type RoomThreadsNotificationSettings = "all" | "replies_and_mentions" | "none";
|
|
1561
1656
|
type RoomNotificationSettings = {
|
|
1562
1657
|
threads: RoomThreadsNotificationSettings;
|
|
@@ -1909,11 +2004,11 @@ type Room<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUs
|
|
|
1909
2004
|
*
|
|
1910
2005
|
* @param {string} data the doc update to send to the server, base64 encoded uint8array
|
|
1911
2006
|
*/
|
|
1912
|
-
updateYDoc(data: string, guid?: string): void;
|
|
2007
|
+
updateYDoc(data: string, guid?: string, isV2?: boolean): void;
|
|
1913
2008
|
/**
|
|
1914
2009
|
* Sends a request for the current document from liveblocks server
|
|
1915
2010
|
*/
|
|
1916
|
-
fetchYDoc(stateVector: string, guid?: string): void;
|
|
2011
|
+
fetchYDoc(stateVector: string, guid?: string, isV2?: boolean): void;
|
|
1917
2012
|
/**
|
|
1918
2013
|
* Broadcasts an event to other users in the room. Event broadcasted to the room can be listened with {@link Room.subscribe}("event").
|
|
1919
2014
|
* @param {any} event the event to broadcast. Should be serializable to JSON
|
|
@@ -1961,7 +2056,6 @@ type Room<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUs
|
|
|
1961
2056
|
readonly self: Observable<User<P, U>>;
|
|
1962
2057
|
readonly myPresence: Observable<P>;
|
|
1963
2058
|
readonly others: Observable<OthersEvent<P, U>>;
|
|
1964
|
-
readonly error: Observable<LiveblocksError>;
|
|
1965
2059
|
/**
|
|
1966
2060
|
* @deprecated Renamed to `storageBatch`. The `storage` event source will
|
|
1967
2061
|
* soon be replaced by another/incompatible API.
|
|
@@ -2745,6 +2839,7 @@ type PrivateClientApi<U extends BaseUserMeta, M extends BaseMetadata> = {
|
|
|
2745
2839
|
readonly httpClient: LiveblocksHttpApi<M>;
|
|
2746
2840
|
as<M2 extends BaseMetadata>(): Client<U, M2>;
|
|
2747
2841
|
createSyncSource(): SyncSource;
|
|
2842
|
+
emitError(context: LiveblocksErrorContext, cause?: Error): void;
|
|
2748
2843
|
};
|
|
2749
2844
|
type NotificationsApi<M extends BaseMetadata> = {
|
|
2750
2845
|
/**
|
|
@@ -2937,11 +3032,9 @@ type Client<U extends BaseUserMeta = DU, M extends BaseMetadata = DM> = {
|
|
|
2937
3032
|
getSyncStatus(): SyncStatus;
|
|
2938
3033
|
/**
|
|
2939
3034
|
* All possible client events, subscribable from a single place.
|
|
2940
|
-
*
|
|
2941
|
-
* @private These event sources are private for now, but will become public
|
|
2942
|
-
* once they're stable.
|
|
2943
3035
|
*/
|
|
2944
3036
|
readonly events: {
|
|
3037
|
+
readonly error: Observable<LiveblocksError>;
|
|
2945
3038
|
readonly syncStatus: Observable<void>;
|
|
2946
3039
|
};
|
|
2947
3040
|
} & NotificationsApi<M>;
|
|
@@ -2977,13 +3070,11 @@ type ClientOptions<U extends BaseUserMeta = DU> = {
|
|
|
2977
3070
|
* the server yet.
|
|
2978
3071
|
*/
|
|
2979
3072
|
preventUnsavedChanges?: boolean;
|
|
2980
|
-
} &
|
|
3073
|
+
} & Relax<{
|
|
2981
3074
|
publicApiKey: string;
|
|
2982
|
-
authEndpoint?: never;
|
|
2983
3075
|
} | {
|
|
2984
|
-
publicApiKey?: never;
|
|
2985
3076
|
authEndpoint: AuthEndpoint;
|
|
2986
|
-
}
|
|
3077
|
+
}>;
|
|
2987
3078
|
/**
|
|
2988
3079
|
* Create a client that will be responsible to communicate with liveblocks servers.
|
|
2989
3080
|
*
|
|
@@ -3214,10 +3305,14 @@ declare function assert(condition: boolean, errmsg: string): asserts condition;
|
|
|
3214
3305
|
declare function nn<T>(value: T, errmsg?: string): NonNullable<T>;
|
|
3215
3306
|
|
|
3216
3307
|
declare class HttpError extends Error {
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3308
|
+
response: Response;
|
|
3309
|
+
details?: JsonObject;
|
|
3310
|
+
private constructor();
|
|
3311
|
+
static fromResponse(response: Response): Promise<HttpError>;
|
|
3312
|
+
/**
|
|
3313
|
+
* Convenience accessor for response.status.
|
|
3314
|
+
*/
|
|
3315
|
+
get status(): number;
|
|
3221
3316
|
}
|
|
3222
3317
|
/**
|
|
3223
3318
|
* Wraps a promise factory. Will create promises until one succeeds. If
|
|
@@ -3357,7 +3452,7 @@ declare const nanoid: (t?: number) => string;
|
|
|
3357
3452
|
* // resolved:true AND metadata["status"]:open AND metadata["priority"]:3 AND metadata["org"]^"liveblocks:"
|
|
3358
3453
|
* ```
|
|
3359
3454
|
*/
|
|
3360
|
-
type SimpleFilterValue = string | number | boolean;
|
|
3455
|
+
type SimpleFilterValue = string | number | boolean | null;
|
|
3361
3456
|
type OperatorFilterValue = {
|
|
3362
3457
|
startsWith: string;
|
|
3363
3458
|
};
|
|
@@ -3592,11 +3687,6 @@ declare class SortedList<T> {
|
|
|
3592
3687
|
* nested objects are ordered.
|
|
3593
3688
|
*/
|
|
3594
3689
|
declare function stringify(value: unknown): string;
|
|
3595
|
-
/**
|
|
3596
|
-
* Like JSON.stringify(), but returns the same value no matter how keys in any
|
|
3597
|
-
* nested objects are ordered.
|
|
3598
|
-
*/
|
|
3599
|
-
declare function unstringify(value: string): unknown;
|
|
3600
3690
|
|
|
3601
3691
|
type QueryParams = Record<string, string | number | null | undefined> | URLSearchParams;
|
|
3602
3692
|
/**
|
|
@@ -3751,4 +3841,4 @@ declare const CommentsApiError: typeof HttpError;
|
|
|
3751
3841
|
/** @deprecated Use HttpError instead. */
|
|
3752
3842
|
declare const NotificationsApiError: typeof HttpError;
|
|
3753
3843
|
|
|
3754
|
-
export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type CommentAttachment, type CommentBody, type CommentBodyBlockElement, type CommentBodyElement, type CommentBodyInlineElement, type CommentBodyLink, type CommentBodyLinkElementArgs, type CommentBodyMention, type CommentBodyMentionElementArgs, type CommentBodyParagraph, type CommentBodyParagraphElementArgs, type CommentBodyText, type CommentBodyTextElementArgs, type CommentData, type CommentDataPlain, type CommentLocalAttachment, type CommentMixedAttachment, type CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LostConnectionEvent, type Lson, type LsonObject, MutableSignal, type NoInfr, type NodeMap, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalPromise, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialUnless, type Patchable, Permission, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type RejectedStorageOpServerMsg, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createThreadId, deprecate, deprecateIf, detectDupes, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, raise, resolveUsersInCommentBody, shallow, stringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson,
|
|
3844
|
+
export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type CommentAttachment, type CommentBody, type CommentBodyBlockElement, type CommentBodyElement, type CommentBodyInlineElement, type CommentBodyLink, type CommentBodyLinkElementArgs, type CommentBodyMention, type CommentBodyMentionElementArgs, type CommentBodyParagraph, type CommentBodyParagraphElementArgs, type CommentBodyText, type CommentBodyTextElementArgs, type CommentData, type CommentDataPlain, type CommentLocalAttachment, type CommentMixedAttachment, type CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MutableSignal, type NoInfr, type NodeMap, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalPromise, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialUnless, type Patchable, Permission, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type RejectedStorageOpServerMsg, type Relax, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createThreadId, deprecate, deprecateIf, detectDupes, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, raise, resolveUsersInCommentBody, shallow, stringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
|