@liveblocks/core 2.9.3-experimental1 → 2.10.1-react19
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 +194 -50
- package/dist/index.d.ts +194 -50
- package/dist/index.js +667 -578
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +606 -517
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -936,6 +936,7 @@ declare function makeEventSource<T>(): EventSource<T>;
|
|
|
936
936
|
declare type BatchStore<O, I> = Observable<void> & {
|
|
937
937
|
get: (input: I) => Promise<void>;
|
|
938
938
|
getState: (input: I) => AsyncResult<O> | undefined;
|
|
939
|
+
invalidate: (inputs?: I[]) => void;
|
|
939
940
|
};
|
|
940
941
|
|
|
941
942
|
/**
|
|
@@ -1445,6 +1446,16 @@ declare type RejectedStorageOpServerMsg = {
|
|
|
1445
1446
|
readonly reason: string;
|
|
1446
1447
|
};
|
|
1447
1448
|
|
|
1449
|
+
declare type HistoryVersion = {
|
|
1450
|
+
type: "historyVersion";
|
|
1451
|
+
kind: "yjs";
|
|
1452
|
+
createdAt: Date;
|
|
1453
|
+
id: string;
|
|
1454
|
+
authors: {
|
|
1455
|
+
id: string;
|
|
1456
|
+
}[];
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1448
1459
|
declare type JsonTreeNode = {
|
|
1449
1460
|
readonly type: "Json";
|
|
1450
1461
|
readonly id: string;
|
|
@@ -1813,10 +1824,18 @@ declare type GetThreadsOptions<M extends BaseMetadata> = {
|
|
|
1813
1824
|
};
|
|
1814
1825
|
declare type GetThreadsSinceOptions = {
|
|
1815
1826
|
since: Date;
|
|
1827
|
+
signal?: AbortSignal;
|
|
1816
1828
|
};
|
|
1817
1829
|
declare type UploadAttachmentOptions = {
|
|
1818
1830
|
signal?: AbortSignal;
|
|
1819
1831
|
};
|
|
1832
|
+
declare type ListTextVersionsSinceOptions = {
|
|
1833
|
+
since: Date;
|
|
1834
|
+
signal?: AbortSignal;
|
|
1835
|
+
};
|
|
1836
|
+
declare type GetNotificationSettingsOptions = {
|
|
1837
|
+
signal?: AbortSignal;
|
|
1838
|
+
};
|
|
1820
1839
|
/**
|
|
1821
1840
|
* @private Widest-possible Room type, matching _any_ Room instance. Note that
|
|
1822
1841
|
* this type is different from `Room`-without-type-arguments. That represents
|
|
@@ -2222,7 +2241,7 @@ declare type Room<P extends JsonObject = DP, S extends LsonObject = DS, U extend
|
|
|
2222
2241
|
* @example
|
|
2223
2242
|
* const settings = await room.getNotificationSettings();
|
|
2224
2243
|
*/
|
|
2225
|
-
getNotificationSettings(): Promise<RoomNotificationSettings>;
|
|
2244
|
+
getNotificationSettings(options?: GetNotificationSettingsOptions): Promise<RoomNotificationSettings>;
|
|
2226
2245
|
/**
|
|
2227
2246
|
* Updates the user's notification settings for the current room.
|
|
2228
2247
|
*
|
|
@@ -2258,12 +2277,19 @@ declare type PrivateRoomApi = {
|
|
|
2258
2277
|
onProviderUpdate: Observable<void>;
|
|
2259
2278
|
getSelf_forDevTools(): UserTreeNode | null;
|
|
2260
2279
|
getOthers_forDevTools(): readonly UserTreeNode[];
|
|
2261
|
-
reportTextEditor(editor: "lexical", rootKey: string): void
|
|
2262
|
-
createTextMention(userId: string, mentionId: string): Promise<
|
|
2263
|
-
deleteTextMention(mentionId: string): Promise<
|
|
2264
|
-
listTextVersions(): Promise<
|
|
2280
|
+
reportTextEditor(editor: "lexical", rootKey: string): Promise<void>;
|
|
2281
|
+
createTextMention(userId: string, mentionId: string): Promise<void>;
|
|
2282
|
+
deleteTextMention(mentionId: string): Promise<void>;
|
|
2283
|
+
listTextVersions(): Promise<{
|
|
2284
|
+
versions: HistoryVersion[];
|
|
2285
|
+
requestedAt: Date;
|
|
2286
|
+
}>;
|
|
2287
|
+
listTextVersionsSince(options: ListTextVersionsSinceOptions): Promise<{
|
|
2288
|
+
versions: HistoryVersion[];
|
|
2289
|
+
requestedAt: Date;
|
|
2290
|
+
}>;
|
|
2265
2291
|
getTextVersion(versionId: string): Promise<Response>;
|
|
2266
|
-
createTextVersion(): Promise<
|
|
2292
|
+
createTextVersion(): Promise<void>;
|
|
2267
2293
|
simulate: {
|
|
2268
2294
|
explicitClose(event: IWebSocketCloseEvent): void;
|
|
2269
2295
|
rawSend(data: string): void;
|
|
@@ -2301,12 +2327,25 @@ declare type PartialUnless<C, T> = Record<string, never> extends C ? Partial<T>
|
|
|
2301
2327
|
declare type OptionalTupleUnless<C, T extends any[]> = Record<string, never> extends C ? OptionalTuple<T> : [
|
|
2302
2328
|
C
|
|
2303
2329
|
] extends [never] ? OptionalTuple<T> : T;
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2330
|
+
|
|
2331
|
+
declare type GetInboxNotificationsOptions = {
|
|
2332
|
+
cursor?: string;
|
|
2333
|
+
};
|
|
2334
|
+
declare type GetInboxNotificationsSinceOptions = {
|
|
2335
|
+
since: Date;
|
|
2336
|
+
signal?: AbortSignal;
|
|
2337
|
+
};
|
|
2338
|
+
declare type GetUserThreadsOptions<M extends BaseMetadata> = {
|
|
2339
|
+
cursor?: string;
|
|
2340
|
+
query?: {
|
|
2341
|
+
resolved?: boolean;
|
|
2342
|
+
metadata?: Partial<QueryMetadata<M>>;
|
|
2343
|
+
};
|
|
2344
|
+
};
|
|
2345
|
+
declare type GetUserThreadsSinceOptions = {
|
|
2346
|
+
since: Date;
|
|
2347
|
+
signal?: AbortSignal;
|
|
2348
|
+
};
|
|
2310
2349
|
|
|
2311
2350
|
declare type OptionalPromise<T> = T | Promise<T>;
|
|
2312
2351
|
|
|
@@ -2371,19 +2410,18 @@ declare type EnterOptions<P extends JsonObject = DP, S extends LsonObject = DS>
|
|
|
2371
2410
|
*/
|
|
2372
2411
|
declare type PrivateClientApi<U extends BaseUserMeta, M extends BaseMetadata> = {
|
|
2373
2412
|
readonly currentUserIdStore: Store<string | null>;
|
|
2413
|
+
readonly mentionSuggestionsCache: Map<string, string[]>;
|
|
2374
2414
|
readonly resolveMentionSuggestions: ClientOptions<U>["resolveMentionSuggestions"];
|
|
2375
2415
|
readonly usersStore: BatchStore<U["info"] | undefined, string>;
|
|
2376
2416
|
readonly roomsInfoStore: BatchStore<DRI | undefined, string>;
|
|
2377
2417
|
readonly getRoomIds: () => string[];
|
|
2378
|
-
readonly getUserThreads_experimental: (options:
|
|
2418
|
+
readonly getUserThreads_experimental: (options: GetUserThreadsOptions<M>) => Promise<{
|
|
2379
2419
|
threads: ThreadData<M>[];
|
|
2380
2420
|
inboxNotifications: InboxNotificationData[];
|
|
2381
2421
|
nextCursor: string | null;
|
|
2382
2422
|
requestedAt: Date;
|
|
2383
2423
|
}>;
|
|
2384
|
-
readonly getUserThreadsSince_experimental: (options: {
|
|
2385
|
-
since: Date;
|
|
2386
|
-
} & GetThreadsOptions<M>) => Promise<{
|
|
2424
|
+
readonly getUserThreadsSince_experimental: (options: GetUserThreadsSinceOptions) => Promise<{
|
|
2387
2425
|
inboxNotifications: {
|
|
2388
2426
|
updated: InboxNotificationData[];
|
|
2389
2427
|
deleted: InboxNotificationDeleteInfo[];
|
|
@@ -2394,6 +2432,7 @@ declare type PrivateClientApi<U extends BaseUserMeta, M extends BaseMetadata> =
|
|
|
2394
2432
|
};
|
|
2395
2433
|
requestedAt: Date;
|
|
2396
2434
|
}>;
|
|
2435
|
+
as<M2 extends BaseMetadata>(): Client<U, M2>;
|
|
2397
2436
|
};
|
|
2398
2437
|
declare type NotificationsApi<M extends BaseMetadata> = {
|
|
2399
2438
|
/**
|
|
@@ -2413,9 +2452,7 @@ declare type NotificationsApi<M extends BaseMetadata> = {
|
|
|
2413
2452
|
* const data = await client.getInboxNotifications(); // Fetch initial page (of 20 inbox notifications)
|
|
2414
2453
|
* const data = await client.getInboxNotifications({ cursor: nextCursor }); // Fetch next page (= next 20 inbox notifications)
|
|
2415
2454
|
*/
|
|
2416
|
-
getInboxNotifications(options?: {
|
|
2417
|
-
cursor?: string;
|
|
2418
|
-
}): Promise<{
|
|
2455
|
+
getInboxNotifications(options?: GetInboxNotificationsOptions): Promise<{
|
|
2419
2456
|
inboxNotifications: InboxNotificationData[];
|
|
2420
2457
|
threads: ThreadData<M>[];
|
|
2421
2458
|
nextCursor: string | null;
|
|
@@ -2440,7 +2477,7 @@ declare type NotificationsApi<M extends BaseMetadata> = {
|
|
|
2440
2477
|
* requestedAt,
|
|
2441
2478
|
* } = await client.getInboxNotificationsSince({ since: result.requestedAt }});
|
|
2442
2479
|
*/
|
|
2443
|
-
getInboxNotificationsSince(
|
|
2480
|
+
getInboxNotificationsSince(options: GetInboxNotificationsSinceOptions): Promise<{
|
|
2444
2481
|
inboxNotifications: {
|
|
2445
2482
|
updated: InboxNotificationData[];
|
|
2446
2483
|
deleted: InboxNotificationDeleteInfo[];
|
|
@@ -2500,17 +2537,17 @@ declare type Client<U extends BaseUserMeta = DU, M extends BaseMetadata = DM> =
|
|
|
2500
2537
|
*
|
|
2501
2538
|
* @param roomId The id of the room
|
|
2502
2539
|
*/
|
|
2503
|
-
getRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE,
|
|
2540
|
+
getRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE, M2 extends BaseMetadata = M>(roomId: string): Room<P, S, U, E, M2> | null;
|
|
2504
2541
|
/**
|
|
2505
2542
|
* Enter a room.
|
|
2506
2543
|
* @param roomId The id of the room
|
|
2507
2544
|
* @param options Optional. You can provide initializers for the Presence or Storage when entering the Room.
|
|
2508
2545
|
* @returns The room and a leave function. Call the returned leave() function when you no longer need the room.
|
|
2509
2546
|
*/
|
|
2510
|
-
enterRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE,
|
|
2547
|
+
enterRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE, M2 extends BaseMetadata = M>(roomId: string, ...args: OptionalTupleUnless<P & S, [
|
|
2511
2548
|
options: EnterOptions<NoInfr<P>, NoInfr<S>>
|
|
2512
2549
|
]>): {
|
|
2513
|
-
room: Room<P, S, U, E,
|
|
2550
|
+
room: Room<P, S, U, E, M2>;
|
|
2514
2551
|
leave: () => void;
|
|
2515
2552
|
};
|
|
2516
2553
|
/**
|
|
@@ -2520,6 +2557,43 @@ declare type Client<U extends BaseUserMeta = DU, M extends BaseMetadata = DM> =
|
|
|
2520
2557
|
* Call this whenever you log out a user in your application.
|
|
2521
2558
|
*/
|
|
2522
2559
|
logout(): void;
|
|
2560
|
+
/**
|
|
2561
|
+
* Advanced APIs related to the resolvers.
|
|
2562
|
+
*/
|
|
2563
|
+
resolvers: {
|
|
2564
|
+
/**
|
|
2565
|
+
* Invalidate some or all users that were previously cached by `resolveUsers`.
|
|
2566
|
+
*
|
|
2567
|
+
* @example
|
|
2568
|
+
* // Invalidate all users
|
|
2569
|
+
* client.resolvers.invalidateUsers();
|
|
2570
|
+
*
|
|
2571
|
+
* @example
|
|
2572
|
+
* // Invalidate specific users
|
|
2573
|
+
* client.resolvers.invalidateUsers(["user-1", "user-2"]);
|
|
2574
|
+
*/
|
|
2575
|
+
invalidateUsers(userIds?: string[]): void;
|
|
2576
|
+
/**
|
|
2577
|
+
* Invalidate some or all rooms info that were previously cached by `resolveRoomsInfo`.
|
|
2578
|
+
*
|
|
2579
|
+
* @example
|
|
2580
|
+
* // Invalidate all rooms
|
|
2581
|
+
* client.resolvers.invalidateRoomsInfo();
|
|
2582
|
+
*
|
|
2583
|
+
* @example
|
|
2584
|
+
* // Invalidate specific rooms
|
|
2585
|
+
* client.resolvers.invalidateRoomsInfo(["room-1", "room-2"]);
|
|
2586
|
+
*/
|
|
2587
|
+
invalidateRoomsInfo(roomIds?: string[]): void;
|
|
2588
|
+
/**
|
|
2589
|
+
* Invalidate all mention suggestions cached by `resolveMentionSuggestions`.
|
|
2590
|
+
*
|
|
2591
|
+
* @example
|
|
2592
|
+
* // Invalidate all mention suggestions
|
|
2593
|
+
* client.resolvers.invalidateMentionSuggestions();
|
|
2594
|
+
*/
|
|
2595
|
+
invalidateMentionSuggestions(): void;
|
|
2596
|
+
};
|
|
2523
2597
|
/**
|
|
2524
2598
|
* @private
|
|
2525
2599
|
*
|
|
@@ -2586,12 +2660,6 @@ declare type ClientOptions<U extends BaseUserMeta = DU> = {
|
|
|
2586
2660
|
* });
|
|
2587
2661
|
*/
|
|
2588
2662
|
declare function createClient<U extends BaseUserMeta = DU>(options: ClientOptions<U>): Client<U>;
|
|
2589
|
-
declare class NotificationsApiError extends Error {
|
|
2590
|
-
message: string;
|
|
2591
|
-
status: number;
|
|
2592
|
-
details?: JsonObject | undefined;
|
|
2593
|
-
constructor(message: string, status: number, details?: JsonObject | undefined);
|
|
2594
|
-
}
|
|
2595
2663
|
|
|
2596
2664
|
declare type CommentBodyParagraphElementArgs = {
|
|
2597
2665
|
/**
|
|
@@ -2767,6 +2835,12 @@ declare function assert(condition: boolean, errmsg: string): asserts condition;
|
|
|
2767
2835
|
*/
|
|
2768
2836
|
declare function nn<T>(value: T, errmsg?: string): NonNullable<T>;
|
|
2769
2837
|
|
|
2838
|
+
declare class HttpError extends Error {
|
|
2839
|
+
message: string;
|
|
2840
|
+
status: number;
|
|
2841
|
+
details?: JsonObject | undefined;
|
|
2842
|
+
constructor(message: string, status: number, details?: JsonObject | undefined);
|
|
2843
|
+
}
|
|
2770
2844
|
/**
|
|
2771
2845
|
* Wraps a promise factory. Will create promises until one succeeds. If
|
|
2772
2846
|
* a promise rejects, it will retry calling the factory for at most `maxTries`
|
|
@@ -2779,12 +2853,9 @@ declare function nn<T>(value: T, errmsg?: string): NonNullable<T>;
|
|
|
2779
2853
|
* @param promiseFn The promise factory to execute
|
|
2780
2854
|
* @param maxTries The number of total tries (must be >=1)
|
|
2781
2855
|
* @param backoff An array of timings to inject between each promise attempt
|
|
2782
|
-
* @param
|
|
2856
|
+
* @param shouldStopRetrying An optional function to not auto-retry on certain errors
|
|
2783
2857
|
*/
|
|
2784
|
-
declare function autoRetry<T>(promiseFn: () => Promise<T>, maxTries: number, backoff: number[],
|
|
2785
|
-
declare class StopRetrying extends Error {
|
|
2786
|
-
constructor(reason: string);
|
|
2787
|
-
}
|
|
2858
|
+
declare function autoRetry<T>(promiseFn: () => Promise<T>, maxTries: number, backoff: number[], shouldStopRetrying?: (err: any) => boolean): Promise<T>;
|
|
2788
2859
|
|
|
2789
2860
|
declare function chunk<T>(array: T[], size: number): T[][];
|
|
2790
2861
|
|
|
@@ -2874,13 +2945,55 @@ declare function objectToQuery(obj: {
|
|
|
2874
2945
|
|
|
2875
2946
|
declare type Poller = {
|
|
2876
2947
|
/**
|
|
2877
|
-
*
|
|
2878
|
-
*
|
|
2879
|
-
|
|
2948
|
+
* Increments the subscriber count for this poller. If it becomes > 0, the
|
|
2949
|
+
* poller will be enabled.
|
|
2950
|
+
*/
|
|
2951
|
+
inc(): void;
|
|
2952
|
+
/**
|
|
2953
|
+
* Decrements the subscriber count for this poller. If it becomes = 0, the
|
|
2954
|
+
* poller will be disabled.
|
|
2955
|
+
*/
|
|
2956
|
+
dec(): void;
|
|
2957
|
+
/**
|
|
2958
|
+
* Polls immediately only if it has been more than `maxStaleTimeMs` milliseconds since
|
|
2959
|
+
* the last poll and no poll is currently in progress. After polling, schedules
|
|
2960
|
+
* the next poll at the regular interval.
|
|
2880
2961
|
*/
|
|
2881
|
-
|
|
2962
|
+
pollNowIfStale(): void;
|
|
2882
2963
|
};
|
|
2883
|
-
|
|
2964
|
+
/**
|
|
2965
|
+
* Makes a poller that will call `await callback()` at the desired interval (in
|
|
2966
|
+
* millis).
|
|
2967
|
+
*
|
|
2968
|
+
* The poller has only three public APIs, all side effects:
|
|
2969
|
+
* - .inc(): void
|
|
2970
|
+
* - .dec(): void
|
|
2971
|
+
* - .pollNowIfStale(): void
|
|
2972
|
+
*
|
|
2973
|
+
* It has the following behaviors/guarantees:
|
|
2974
|
+
* - Performing a "poll" literally means calling the provided callback (and
|
|
2975
|
+
* awaiting it)
|
|
2976
|
+
* - It will only ever start polling if .inc() was called (more often than .dec())
|
|
2977
|
+
* - It will not _immediately_ poll if .inc() is called. The first poll
|
|
2978
|
+
* can be expected no earlier than the specified interval.
|
|
2979
|
+
* - If .dec() is called as many times as .inc(), it stops the poller. This
|
|
2980
|
+
* means that any next poll will get unscheduled. If .dev() is called while
|
|
2981
|
+
* a poll is ongoing, it will still finish that poll, but after that stop
|
|
2982
|
+
* further polling.
|
|
2983
|
+
* - If the document's visibility state changes to hidden (tab is moved to the
|
|
2984
|
+
* background), polling will be paused until the document's made visible again
|
|
2985
|
+
* - If the document becomes visible again, the poller will:
|
|
2986
|
+
* - Still do nothing if the poller isn't enabled
|
|
2987
|
+
* - Still do nothing if the poller is enabled, but the last time a poll
|
|
2988
|
+
* happened recently enough (= less than the maxStaleTimeMs, which defaults
|
|
2989
|
+
* to infinity)
|
|
2990
|
+
* - Trigger a poll right away otherwise. If an existing poll was already
|
|
2991
|
+
* scheduled, think of it as if this future poll is "earlied" and just
|
|
2992
|
+
* happening right now instead
|
|
2993
|
+
*/
|
|
2994
|
+
declare function makePoller(callback: (signal: AbortSignal) => Promise<void> | void, intervalMs: number, options?: {
|
|
2995
|
+
maxStaleTimeMs?: number;
|
|
2996
|
+
}): Poller;
|
|
2884
2997
|
|
|
2885
2998
|
declare const brand: unique symbol;
|
|
2886
2999
|
declare type Brand<T, TBrand extends string> = T & {
|
|
@@ -3012,6 +3125,42 @@ declare function asPos(str: string): Pos;
|
|
|
3012
3125
|
*/
|
|
3013
3126
|
declare function shallow(a: unknown, b: unknown): boolean;
|
|
3014
3127
|
|
|
3128
|
+
/**
|
|
3129
|
+
* A datastructure to keep elements in ascending order, defined by a key
|
|
3130
|
+
* function, i.e.
|
|
3131
|
+
*
|
|
3132
|
+
* const sorted = SortedList.from([{ id: 1 }, { id: 4 }, { id: 4 }, { id: 9 }], x => x.id)
|
|
3133
|
+
* sorted.add({ id: 5 })
|
|
3134
|
+
* sorted.remove({ id: 4 })
|
|
3135
|
+
*
|
|
3136
|
+
* Array.from(sorted)
|
|
3137
|
+
* [{ id: 1 }, { id: 4 }, { id: 4 }, { id: 5 }, { id: 9 }])
|
|
3138
|
+
*/
|
|
3139
|
+
declare class SortedList<T> {
|
|
3140
|
+
private _data;
|
|
3141
|
+
private _lt;
|
|
3142
|
+
private constructor();
|
|
3143
|
+
static from<T>(arr: T[], lt: (a: T, b: T) => boolean): SortedList<T>;
|
|
3144
|
+
static fromAlreadySorted<T>(alreadySorted: T[], lt: (a: T, b: T) => boolean): SortedList<T>;
|
|
3145
|
+
/**
|
|
3146
|
+
* Clones the sorted list to a new instance.
|
|
3147
|
+
*/
|
|
3148
|
+
clone(): SortedList<T>;
|
|
3149
|
+
/**
|
|
3150
|
+
* Adds a new item to the sorted list, such that it remains sorted.
|
|
3151
|
+
*/
|
|
3152
|
+
add(value: T): void;
|
|
3153
|
+
/**
|
|
3154
|
+
* Removes the given value from the sorted list, if it exists. The given
|
|
3155
|
+
* value must be `===` to one of the list items. Only the first entry will be
|
|
3156
|
+
* removed if the element exists in the sorted list multiple times.
|
|
3157
|
+
*/
|
|
3158
|
+
remove(value: T): boolean;
|
|
3159
|
+
get length(): number;
|
|
3160
|
+
filter(predicate: (value: T) => boolean): IterableIterator<T>;
|
|
3161
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3015
3164
|
declare type OmitFirstTupleElement<T extends any[]> = T extends [any, ...infer R] ? R : never;
|
|
3016
3165
|
/**
|
|
3017
3166
|
* Like JSON.stringify(), but returns the same value no matter how the keys in
|
|
@@ -3035,16 +3184,6 @@ declare type URLSafeString = Brand<string, "URLSafeString">;
|
|
|
3035
3184
|
*/
|
|
3036
3185
|
declare function url(strings: TemplateStringsArray, ...values: string[]): URLSafeString;
|
|
3037
3186
|
|
|
3038
|
-
declare type HistoryVersion = {
|
|
3039
|
-
type: "historyVersion";
|
|
3040
|
-
kind: "yjs";
|
|
3041
|
-
createdAt: Date;
|
|
3042
|
-
id: string;
|
|
3043
|
-
authors: {
|
|
3044
|
-
id: string;
|
|
3045
|
-
}[];
|
|
3046
|
-
};
|
|
3047
|
-
|
|
3048
3187
|
/**
|
|
3049
3188
|
* Definition of all messages the Panel can send to the Client.
|
|
3050
3189
|
*/
|
|
@@ -3177,4 +3316,9 @@ declare type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (En
|
|
|
3177
3316
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
3178
3317
|
};
|
|
3179
3318
|
|
|
3180
|
-
|
|
3319
|
+
/** @deprecated Use HttpError instead. */
|
|
3320
|
+
declare const CommentsApiError: typeof HttpError;
|
|
3321
|
+
/** @deprecated Use HttpError instead. */
|
|
3322
|
+
declare const NotificationsApiError: typeof HttpError;
|
|
3323
|
+
|
|
3324
|
+
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, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type GetUserThreadsOptions, type History, type HistoryVersion, HttpError, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, 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, 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, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, 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, SortedList, type Status, type StorageStatus, type StorageUpdate, type Store, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, 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, ackOp, asPos, assert, assertNever, autoRetry, b64decode, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, createCommentId, createInboxNotificationId, createStore, createThreadId, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, raise, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
|