@voltro/client 0.84.0 → 0.85.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/CHANGELOG.md +549 -0
- package/THIRD-PARTY-NOTICES.md +1 -57
- package/dist/{authRefresh-C4Ow8HH7.js → authRefresh-DmfSoCca.js} +81 -67
- package/dist/form.d.ts +8 -11
- package/dist/form.js +1 -1
- package/dist/formData-BfpBt7BQ.js +769 -0
- package/dist/index.d.ts +232 -272
- package/dist/index.js +1533 -1098
- package/dist/query.js +1 -1
- package/dist/{queryOnce-CvdopzOj.js → queryOnce-D5Y4V1SB.js} +1 -1
- package/dist/{runRpc-DvHpFZAZ.js → runRpc-Zfz3w709.js} +319 -181
- package/dist/runtime.d.ts +47 -14
- package/dist/runtime.js +10 -13
- package/package.json +3 -5
- package/dist/formData-dGz5aoUR.js +0 -649
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,17 @@ import { clearPairing } from '@voltro/protocol';
|
|
|
3
3
|
import { ClientDescriptor } from '@voltro/protocol';
|
|
4
4
|
import { ClipboardEvent as ClipboardEvent_2 } from 'react';
|
|
5
5
|
import { Context } from 'react';
|
|
6
|
+
import { createRowPatchApplier } from '@voltro/protocol';
|
|
6
7
|
import { DragEvent as DragEvent_2 } from 'react';
|
|
7
8
|
import { Effect } from 'effect';
|
|
8
9
|
import { errorMessage } from '@voltro/protocol';
|
|
9
10
|
import { errorTag } from '@voltro/protocol';
|
|
10
11
|
import { EventDescriptor as EventDescriptor_2 } from '@voltro/protocol';
|
|
11
12
|
import { Fiber } from 'effect';
|
|
13
|
+
import { JsonSchemaDocument } from '@voltro/protocol';
|
|
14
|
+
import { jsonSchemaDocumentOf } from '@voltro/protocol';
|
|
15
|
+
import { jsonSchemaOf } from '@voltro/protocol';
|
|
16
|
+
import { JsonSchemaOptions } from '@voltro/protocol';
|
|
12
17
|
import { ManagedRuntime } from 'effect';
|
|
13
18
|
import { Pairing } from '@voltro/protocol';
|
|
14
19
|
import { PAIRING_HOST } from '@voltro/protocol';
|
|
@@ -17,20 +22,21 @@ import { PAIRING_STORAGE_KEY } from '@voltro/protocol';
|
|
|
17
22
|
import { pairingLink } from '@voltro/protocol';
|
|
18
23
|
import { PairingStorage } from '@voltro/protocol';
|
|
19
24
|
import { parsePairingLink } from '@voltro/protocol';
|
|
20
|
-
import { ParseResult } from 'effect';
|
|
21
25
|
import { ReactElement } from 'react';
|
|
22
26
|
import { ReactNode } from 'react';
|
|
23
27
|
import { readPairing } from '@voltro/protocol';
|
|
24
|
-
import { Rpc } from '
|
|
25
|
-
import { RpcClient } from '
|
|
26
|
-
import { RpcClientError } from '
|
|
27
|
-
import { RpcGroup } from '
|
|
28
|
+
import { Rpc } from 'effect/rpc';
|
|
29
|
+
import { RpcClient } from 'effect/rpc';
|
|
30
|
+
import { RpcClientError } from 'effect/rpc';
|
|
31
|
+
import { RpcGroup } from 'effect/rpc';
|
|
28
32
|
import { Schema } from 'effect';
|
|
29
|
-
import * as Socket from '
|
|
33
|
+
import * as Socket from 'effect/socket/Socket';
|
|
34
|
+
import { StorageAccessPolicy } from '@voltro/protocol';
|
|
30
35
|
import { Stream } from 'effect';
|
|
31
36
|
import { SubscriptionEvent } from '@voltro/protocol';
|
|
32
37
|
import { TargetRelations } from '@voltro/protocol';
|
|
33
38
|
import { UIEvent as UIEvent_2 } from 'react';
|
|
39
|
+
import { WebSocketConstructorOptions } from 'effect/socket/Socket';
|
|
34
40
|
import { WorkflowControlIntent } from '@voltro/protocol';
|
|
35
41
|
import { WorkflowControlReadInput } from '@voltro/protocol';
|
|
36
42
|
import { WorkflowControlResult } from '@voltro/protocol';
|
|
@@ -414,7 +420,7 @@ export declare interface BuildApiRuntimeOptions {
|
|
|
414
420
|
/**
|
|
415
421
|
* The api's rpc group, as the ERASED `RpcGroup.Any`.
|
|
416
422
|
*
|
|
417
|
-
* `RpcGroup` is declared `in out` in
|
|
423
|
+
* `RpcGroup` is declared `in out` in effect/rpc — invariant on purpose — so a
|
|
418
424
|
* CONCRETE group (the `appGroup` codegen emits) is not assignable to
|
|
419
425
|
* `RpcGroup<Rpc.Any>`, and a boundary typed that way rejects the only value
|
|
420
426
|
* anyone ever passes it. This mirrors what `ApiHandle.client` already does:
|
|
@@ -428,7 +434,7 @@ export declare interface BuildApiRuntimeOptions {
|
|
|
428
434
|
/** How to construct a WebSocket. Web wraps `globalThis.WebSocket` with
|
|
429
435
|
* tracking + a connect-timeout; RN passes a plain `globalThis.WebSocket`.
|
|
430
436
|
* Injected so this module touches no environment global directly. */
|
|
431
|
-
readonly webSocketConstructor: (url: string,
|
|
437
|
+
readonly webSocketConstructor: (url: string, options?: Socket.WebSocketConstructorOptions) => globalThis.WebSocket;
|
|
432
438
|
/**
|
|
433
439
|
* Error channel owned by the logical api mount. A reconnect supervisor passes
|
|
434
440
|
* the SAME instance to every transport generation so a failure emitted by the
|
|
@@ -472,6 +478,7 @@ export declare interface BuiltApiRuntime {
|
|
|
472
478
|
}
|
|
473
479
|
|
|
474
480
|
declare interface CacheEntry {
|
|
481
|
+
rowPatchApplier?: ReturnType<typeof createRowPatchApplier>;
|
|
475
482
|
readonly key: string;
|
|
476
483
|
/** First element of the keyArr — the rpc tag (e.g. 'todos.list'). Used
|
|
477
484
|
* by `forTag()` so callers can patch every sub-key for a tag without
|
|
@@ -489,7 +496,7 @@ declare interface CacheEntry {
|
|
|
489
496
|
/** Subscriber re-render callbacks. */
|
|
490
497
|
subscribers: Set<() => void>;
|
|
491
498
|
/** Fiber running the underlying stream. */
|
|
492
|
-
fiber: Fiber.
|
|
499
|
+
fiber: Fiber.Fiber<unknown, unknown> | null;
|
|
493
500
|
/** The last fiber ended because the rpc transport failed. A later socket
|
|
494
501
|
* `open` re-issues active entries with their last-known-good base intact. */
|
|
495
502
|
resumeAfterTransportOpen: boolean;
|
|
@@ -1015,11 +1022,11 @@ export declare interface DataTableState<Row> {
|
|
|
1015
1022
|
export declare const decideAccess: (guards: ReadonlyArray<ManifestGuard> | undefined, subjectScopes: ReadonlyArray<string>) => AccessDecision;
|
|
1016
1023
|
|
|
1017
1024
|
/**
|
|
1018
|
-
* Walk a
|
|
1025
|
+
* Walk a schema failure's issue tree into structured, PATH-PRESERVING issues.
|
|
1019
1026
|
* Every leaf keeps its full path (`address.city`, `entries.0.startsAt`) —
|
|
1020
1027
|
* nothing collapses to the top-level segment.
|
|
1021
1028
|
*/
|
|
1022
|
-
export declare const decodeFieldIssues: (error:
|
|
1029
|
+
export declare const decodeFieldIssues: (error: Schema.SchemaError) => ReadonlyArray<FieldIssue>;
|
|
1023
1030
|
|
|
1024
1031
|
/**
|
|
1025
1032
|
* The descriptor a `*.deepLink.ts` file default-exports. `_tag` marks it for
|
|
@@ -1098,7 +1105,7 @@ export declare interface DefineDeepLinkConfig<Pattern extends string> {
|
|
|
1098
1105
|
export declare const definedStores: () => ReadonlyArray<StoreHandle<never>>;
|
|
1099
1106
|
|
|
1100
1107
|
/** Declare a typed analytics event. */
|
|
1101
|
-
export declare const defineEvent: <const Name extends string, A, I>(name: Name, payload: Schema.
|
|
1108
|
+
export declare const defineEvent: <const Name extends string, A, I>(name: Name, payload: Schema.Codec<A, I>) => EventDescriptor<Name, A>;
|
|
1102
1109
|
|
|
1103
1110
|
/** Fill in the derived capabilities. Adapters are built through this. */
|
|
1104
1111
|
export declare const definePlatform: (input: PlatformAdapterInput) => PlatformAdapter;
|
|
@@ -1274,6 +1281,15 @@ declare interface EntryState<T> {
|
|
|
1274
1281
|
/** Cached optimistic snapshot — invalidated on every state change so
|
|
1275
1282
|
* `getSnapshot` returns a stable reference between mutations. */
|
|
1276
1283
|
cachedSnapshot: CacheSnapshot<T> | null;
|
|
1284
|
+
previewPrefix?: {
|
|
1285
|
+
readonly base: T;
|
|
1286
|
+
readonly count: number;
|
|
1287
|
+
readonly data: T;
|
|
1288
|
+
};
|
|
1289
|
+
previewBase?: {
|
|
1290
|
+
readonly base: T;
|
|
1291
|
+
readonly eligible: boolean;
|
|
1292
|
+
};
|
|
1277
1293
|
}
|
|
1278
1294
|
|
|
1279
1295
|
/** Compares two selector results. Return true to keep the previous value. */
|
|
@@ -1299,7 +1315,7 @@ export declare interface EventDescriptor<Name extends string, A> {
|
|
|
1299
1315
|
* `A` and break a heterogeneous catalog. The decoded type is carried by the
|
|
1300
1316
|
* covariant phantom `_type` below instead, so `EventDescriptor<string,
|
|
1301
1317
|
* unknown>` accepts every typed descriptor AND `track` stays typed. */
|
|
1302
|
-
readonly payload: Schema.
|
|
1318
|
+
readonly payload: Schema.Top;
|
|
1303
1319
|
/** Phantom — never present at runtime; carries the decoded payload type for
|
|
1304
1320
|
* `track`'s compile-time signature. Covariant (optional), so erasure works. */
|
|
1305
1321
|
readonly _type?: A;
|
|
@@ -1428,7 +1444,7 @@ export declare type FilterKind = 'text' | 'select' | 'multi-select' | 'number-ra
|
|
|
1428
1444
|
|
|
1429
1445
|
/** Derive the filter controls from a query's input Schema. Each filterable
|
|
1430
1446
|
* input field → one FilterDescriptor. Pure. */
|
|
1431
|
-
export declare const filtersFromSchema: (schema: Schema.
|
|
1447
|
+
export declare const filtersFromSchema: (schema: Schema.Top) => ReadonlyArray<FilterDescriptor>;
|
|
1432
1448
|
|
|
1433
1449
|
/** DOM id of the JSON script the 422 re-render embeds (survives the
|
|
1434
1450
|
* `interactive:'none'` strip — it is neither `type="module"` nor `src`). */
|
|
@@ -1518,8 +1534,8 @@ export declare interface FormBinding<Input, Output> {
|
|
|
1518
1534
|
*
|
|
1519
1535
|
* `<AutoForm>` mounts one for you.
|
|
1520
1536
|
*/
|
|
1521
|
-
export declare const FormBindingProvider: (props: {
|
|
1522
|
-
readonly binding: FormBinding<
|
|
1537
|
+
export declare const FormBindingProvider: <Input extends Record<string, unknown>, Output>(props: {
|
|
1538
|
+
readonly binding: FormBinding<Input, Output>;
|
|
1523
1539
|
readonly children?: ReactNode;
|
|
1524
1540
|
}) => ReactElement;
|
|
1525
1541
|
|
|
@@ -1542,7 +1558,7 @@ export declare const FormBindingProvider: (props: {
|
|
|
1542
1558
|
* the server rejects undeclared fields, and a hidden bookkeeping field must
|
|
1543
1559
|
* not turn every no-JS submit into a validation error.
|
|
1544
1560
|
*/
|
|
1545
|
-
export declare const formDataToInput: (schema: Schema.
|
|
1561
|
+
export declare const formDataToInput: (schema: Schema.Top, entries: Iterable<FormEntry>) => Record<string, unknown>;
|
|
1546
1562
|
|
|
1547
1563
|
/** One posted entry. File entries must be filtered out by the caller —
|
|
1548
1564
|
* uploads are a declared limit of the no-JS path. */
|
|
@@ -1564,9 +1580,7 @@ export declare const formField: (meta: {
|
|
|
1564
1580
|
* list, for a multi-reference feeding a target's `relations:`). */
|
|
1565
1581
|
readonly reference?: string;
|
|
1566
1582
|
}) => {
|
|
1567
|
-
readonly
|
|
1568
|
-
readonly "x-voltro": typeof meta;
|
|
1569
|
-
};
|
|
1583
|
+
readonly voltroField: typeof meta;
|
|
1570
1584
|
};
|
|
1571
1585
|
|
|
1572
1586
|
/** One field, bound: value + change/blur wiring + gated error + descriptor
|
|
@@ -1858,6 +1872,14 @@ export declare const isUnauthenticated: (error: unknown) => boolean;
|
|
|
1858
1872
|
*/
|
|
1859
1873
|
export declare const isUnresolvedApi: (handle: ApiHandle) => boolean;
|
|
1860
1874
|
|
|
1875
|
+
export { JsonSchemaDocument }
|
|
1876
|
+
|
|
1877
|
+
export { jsonSchemaDocumentOf }
|
|
1878
|
+
|
|
1879
|
+
export { jsonSchemaOf }
|
|
1880
|
+
|
|
1881
|
+
export { JsonSchemaOptions }
|
|
1882
|
+
|
|
1861
1883
|
/** Foreground/background transitions — `AppState` on React Native,
|
|
1862
1884
|
* `visibilitychange` in a browser, window focus in a desktop shell. */
|
|
1863
1885
|
export declare interface LifecycleSource {
|
|
@@ -1906,6 +1928,8 @@ export declare interface LocalQueryOptions<Row> {
|
|
|
1906
1928
|
|
|
1907
1929
|
export declare const makePreloadSeedBag: () => PreloadSeedBag;
|
|
1908
1930
|
|
|
1931
|
+
/* Excluded from this release type: makeProtocolOpenRecovery */
|
|
1932
|
+
|
|
1909
1933
|
export declare const makeStoreSeedBag: () => StoreSeedBag;
|
|
1910
1934
|
|
|
1911
1935
|
/**
|
|
@@ -2154,6 +2178,8 @@ declare interface OptimisticPatch<T = unknown> {
|
|
|
2154
2178
|
/** A successful write stays previewed until a matching post-ACK primary
|
|
2155
2179
|
* snapshot supersedes it. A different write's delta proves nothing. */
|
|
2156
2180
|
confirmed?: boolean;
|
|
2181
|
+
/** Only framework-owned reducers with an unchanged input can reuse a prefix. */
|
|
2182
|
+
readonly canReuse?: (() => boolean) | undefined;
|
|
2157
2183
|
}
|
|
2158
2184
|
|
|
2159
2185
|
/**
|
|
@@ -2281,7 +2307,7 @@ export declare interface PlatformAdapter {
|
|
|
2281
2307
|
readonly platform: PlatformInfo;
|
|
2282
2308
|
readonly capabilities: PlatformCapabilities;
|
|
2283
2309
|
/** The WebSocket the api runtime opens — `buildApiRuntime`'s constructor. */
|
|
2284
|
-
readonly webSocket: (url: string,
|
|
2310
|
+
readonly webSocket: (url: string, options?: Socket.WebSocketConstructorOptions) => WebSocket;
|
|
2285
2311
|
/** Backing store for `defineStore({ persist })`; installed via `setStoreStorage`. */
|
|
2286
2312
|
readonly storage: StoreStorageProvider;
|
|
2287
2313
|
readonly secureStorage: TokenStore;
|
|
@@ -2427,7 +2453,7 @@ export declare interface PreviewState<Input> {
|
|
|
2427
2453
|
|
|
2428
2454
|
/** The value a procedure's `input` schema decodes to on the client. */
|
|
2429
2455
|
export declare type ProcedureInput<D> = D extends {
|
|
2430
|
-
readonly input: infer I extends Schema.
|
|
2456
|
+
readonly input: infer I extends Schema.Top;
|
|
2431
2457
|
} ? Schema.Schema.Type<I> : never;
|
|
2432
2458
|
|
|
2433
2459
|
/**
|
|
@@ -2437,9 +2463,9 @@ export declare type ProcedureInput<D> = D extends {
|
|
|
2437
2463
|
* per-element schema is named differently in its descriptor.
|
|
2438
2464
|
*/
|
|
2439
2465
|
export declare type ProcedureOutput<D> = D extends {
|
|
2440
|
-
readonly output: infer O extends Schema.
|
|
2466
|
+
readonly output: infer O extends Schema.Top;
|
|
2441
2467
|
} ? Schema.Schema.Type<O> : D extends {
|
|
2442
|
-
readonly element: infer E extends Schema.
|
|
2468
|
+
readonly element: infer E extends Schema.Top;
|
|
2443
2469
|
} ? Schema.Schema.Type<E> : never;
|
|
2444
2470
|
|
|
2445
2471
|
/**
|
|
@@ -2841,7 +2867,7 @@ export declare interface ResourceCansResult {
|
|
|
2841
2867
|
* Non-struct schemas (a scalar input) are returned untouched — there is no
|
|
2842
2868
|
* declared key set to restrict against.
|
|
2843
2869
|
*/
|
|
2844
|
-
export declare const restrictToSchema: (schema: Schema.
|
|
2870
|
+
export declare const restrictToSchema: (schema: Schema.Top, input: unknown) => {
|
|
2845
2871
|
readonly input: unknown;
|
|
2846
2872
|
readonly dropped: ReadonlyArray<string>;
|
|
2847
2873
|
};
|
|
@@ -2931,91 +2957,91 @@ export declare const RICH_TEXT_MAX_NODES = 5000;
|
|
|
2931
2957
|
|
|
2932
2958
|
export declare type RichTextBlock = typeof RichTextBlock_2.Type;
|
|
2933
2959
|
|
|
2934
|
-
declare const RichTextBlock_2: Schema.Union<[Schema.Struct<{
|
|
2935
|
-
type: Schema.Literal<
|
|
2936
|
-
content: Schema
|
|
2937
|
-
type: Schema.Literal<
|
|
2938
|
-
text:
|
|
2939
|
-
marks: Schema.optional<Schema
|
|
2960
|
+
declare const RichTextBlock_2: Schema.Union<readonly [Schema.Struct<{
|
|
2961
|
+
readonly type: Schema.Literal<"paragraph">;
|
|
2962
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2963
|
+
readonly type: Schema.Literal<"text">;
|
|
2964
|
+
readonly text: Schema.String;
|
|
2965
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2940
2966
|
}>, Schema.Struct<{
|
|
2941
|
-
type: Schema.Literal<
|
|
2942
|
-
href: Schema.
|
|
2943
|
-
content: Schema
|
|
2944
|
-
type: Schema.Literal<
|
|
2945
|
-
text:
|
|
2946
|
-
marks: Schema.optional<Schema
|
|
2967
|
+
readonly type: Schema.Literal<"link">;
|
|
2968
|
+
readonly href: Schema.String;
|
|
2969
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
2970
|
+
readonly type: Schema.Literal<"text">;
|
|
2971
|
+
readonly text: Schema.String;
|
|
2972
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2947
2973
|
}>>;
|
|
2948
2974
|
}>]>>;
|
|
2949
2975
|
}>, Schema.Struct<{
|
|
2950
|
-
type: Schema.Literal<
|
|
2951
|
-
level: Schema.
|
|
2952
|
-
content: Schema
|
|
2953
|
-
type: Schema.Literal<
|
|
2954
|
-
text:
|
|
2955
|
-
marks: Schema.optional<Schema
|
|
2976
|
+
readonly type: Schema.Literal<"heading">;
|
|
2977
|
+
readonly level: Schema.Literals<readonly [1, 2, 3]>;
|
|
2978
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2979
|
+
readonly type: Schema.Literal<"text">;
|
|
2980
|
+
readonly text: Schema.String;
|
|
2981
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2956
2982
|
}>, Schema.Struct<{
|
|
2957
|
-
type: Schema.Literal<
|
|
2958
|
-
href: Schema.
|
|
2959
|
-
content: Schema
|
|
2960
|
-
type: Schema.Literal<
|
|
2961
|
-
text:
|
|
2962
|
-
marks: Schema.optional<Schema
|
|
2983
|
+
readonly type: Schema.Literal<"link">;
|
|
2984
|
+
readonly href: Schema.String;
|
|
2985
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
2986
|
+
readonly type: Schema.Literal<"text">;
|
|
2987
|
+
readonly text: Schema.String;
|
|
2988
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2963
2989
|
}>>;
|
|
2964
2990
|
}>]>>;
|
|
2965
2991
|
}>, Schema.Struct<{
|
|
2966
|
-
type: Schema.Literal<
|
|
2967
|
-
content: Schema
|
|
2968
|
-
type: Schema.Literal<
|
|
2969
|
-
text:
|
|
2970
|
-
marks: Schema.optional<Schema
|
|
2992
|
+
readonly type: Schema.Literal<"blockquote">;
|
|
2993
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2994
|
+
readonly type: Schema.Literal<"text">;
|
|
2995
|
+
readonly text: Schema.String;
|
|
2996
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2971
2997
|
}>, Schema.Struct<{
|
|
2972
|
-
type: Schema.Literal<
|
|
2973
|
-
href: Schema.
|
|
2974
|
-
content: Schema
|
|
2975
|
-
type: Schema.Literal<
|
|
2976
|
-
text:
|
|
2977
|
-
marks: Schema.optional<Schema
|
|
2998
|
+
readonly type: Schema.Literal<"link">;
|
|
2999
|
+
readonly href: Schema.String;
|
|
3000
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3001
|
+
readonly type: Schema.Literal<"text">;
|
|
3002
|
+
readonly text: Schema.String;
|
|
3003
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2978
3004
|
}>>;
|
|
2979
3005
|
}>]>>;
|
|
2980
3006
|
}>, Schema.Struct<{
|
|
2981
|
-
type: Schema.Literal<
|
|
2982
|
-
content: Schema
|
|
2983
|
-
type: Schema.Literal<
|
|
2984
|
-
content: Schema
|
|
2985
|
-
type: Schema.Literal<
|
|
2986
|
-
text:
|
|
2987
|
-
marks: Schema.optional<Schema
|
|
3007
|
+
readonly type: Schema.Literal<"bulletList">;
|
|
3008
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3009
|
+
readonly type: Schema.Literal<"listItem">;
|
|
3010
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3011
|
+
readonly type: Schema.Literal<"text">;
|
|
3012
|
+
readonly text: Schema.String;
|
|
3013
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2988
3014
|
}>, Schema.Struct<{
|
|
2989
|
-
type: Schema.Literal<
|
|
2990
|
-
href: Schema.
|
|
2991
|
-
content: Schema
|
|
2992
|
-
type: Schema.Literal<
|
|
2993
|
-
text:
|
|
2994
|
-
marks: Schema.optional<Schema
|
|
3015
|
+
readonly type: Schema.Literal<"link">;
|
|
3016
|
+
readonly href: Schema.String;
|
|
3017
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3018
|
+
readonly type: Schema.Literal<"text">;
|
|
3019
|
+
readonly text: Schema.String;
|
|
3020
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
2995
3021
|
}>>;
|
|
2996
3022
|
}>]>>;
|
|
2997
3023
|
}>>;
|
|
2998
3024
|
}>, Schema.Struct<{
|
|
2999
|
-
type: Schema.Literal<
|
|
3000
|
-
content: Schema
|
|
3001
|
-
type: Schema.Literal<
|
|
3002
|
-
content: Schema
|
|
3003
|
-
type: Schema.Literal<
|
|
3004
|
-
text:
|
|
3005
|
-
marks: Schema.optional<Schema
|
|
3025
|
+
readonly type: Schema.Literal<"orderedList">;
|
|
3026
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3027
|
+
readonly type: Schema.Literal<"listItem">;
|
|
3028
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3029
|
+
readonly type: Schema.Literal<"text">;
|
|
3030
|
+
readonly text: Schema.String;
|
|
3031
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3006
3032
|
}>, Schema.Struct<{
|
|
3007
|
-
type: Schema.Literal<
|
|
3008
|
-
href: Schema.
|
|
3009
|
-
content: Schema
|
|
3010
|
-
type: Schema.Literal<
|
|
3011
|
-
text:
|
|
3012
|
-
marks: Schema.optional<Schema
|
|
3033
|
+
readonly type: Schema.Literal<"link">;
|
|
3034
|
+
readonly href: Schema.String;
|
|
3035
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3036
|
+
readonly type: Schema.Literal<"text">;
|
|
3037
|
+
readonly text: Schema.String;
|
|
3038
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3013
3039
|
}>>;
|
|
3014
3040
|
}>]>>;
|
|
3015
3041
|
}>>;
|
|
3016
3042
|
}>, Schema.Struct<{
|
|
3017
|
-
type: Schema.Literal<
|
|
3018
|
-
text:
|
|
3043
|
+
readonly type: Schema.Literal<"codeBlock">;
|
|
3044
|
+
readonly text: Schema.String;
|
|
3019
3045
|
}>]>;
|
|
3020
3046
|
|
|
3021
3047
|
declare type RichTextBlock = typeof RichTextBlock_2.Type;
|
|
@@ -3029,199 +3055,111 @@ declare type RichTextBlock = typeof RichTextBlock_2.Type;
|
|
|
3029
3055
|
* editor with no extra `formField({ widget })` call — and the decode that
|
|
3030
3056
|
* validates the mutation input IS the sanitizing boundary (see the header).
|
|
3031
3057
|
*/
|
|
3032
|
-
export declare const RichTextDocument: Schema.
|
|
3033
|
-
readonly type: "doc"
|
|
3034
|
-
readonly content: readonly
|
|
3035
|
-
readonly type: "paragraph"
|
|
3036
|
-
readonly content: readonly
|
|
3037
|
-
readonly type: "text"
|
|
3038
|
-
readonly text:
|
|
3039
|
-
readonly marks
|
|
3040
|
-
} | {
|
|
3041
|
-
readonly type: "link";
|
|
3042
|
-
readonly content: readonly {
|
|
3043
|
-
readonly type: "text";
|
|
3044
|
-
readonly text: string;
|
|
3045
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3046
|
-
}[];
|
|
3047
|
-
readonly href: string;
|
|
3048
|
-
})[];
|
|
3049
|
-
} | {
|
|
3050
|
-
readonly type: "heading";
|
|
3051
|
-
readonly level: 2 | 1 | 3;
|
|
3052
|
-
readonly content: readonly ({
|
|
3053
|
-
readonly type: "text";
|
|
3054
|
-
readonly text: string;
|
|
3055
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3056
|
-
} | {
|
|
3057
|
-
readonly type: "link";
|
|
3058
|
-
readonly content: readonly {
|
|
3059
|
-
readonly type: "text";
|
|
3060
|
-
readonly text: string;
|
|
3061
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3062
|
-
}[];
|
|
3063
|
-
readonly href: string;
|
|
3064
|
-
})[];
|
|
3065
|
-
} | {
|
|
3066
|
-
readonly type: "blockquote";
|
|
3067
|
-
readonly content: readonly ({
|
|
3068
|
-
readonly type: "text";
|
|
3069
|
-
readonly text: string;
|
|
3070
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3071
|
-
} | {
|
|
3072
|
-
readonly type: "link";
|
|
3073
|
-
readonly content: readonly {
|
|
3074
|
-
readonly type: "text";
|
|
3075
|
-
readonly text: string;
|
|
3076
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3077
|
-
}[];
|
|
3078
|
-
readonly href: string;
|
|
3079
|
-
})[];
|
|
3080
|
-
} | {
|
|
3081
|
-
readonly type: "bulletList";
|
|
3082
|
-
readonly content: readonly {
|
|
3083
|
-
readonly type: "listItem";
|
|
3084
|
-
readonly content: readonly ({
|
|
3085
|
-
readonly type: "text";
|
|
3086
|
-
readonly text: string;
|
|
3087
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3088
|
-
} | {
|
|
3089
|
-
readonly type: "link";
|
|
3090
|
-
readonly content: readonly {
|
|
3091
|
-
readonly type: "text";
|
|
3092
|
-
readonly text: string;
|
|
3093
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3094
|
-
}[];
|
|
3095
|
-
readonly href: string;
|
|
3096
|
-
})[];
|
|
3097
|
-
}[];
|
|
3098
|
-
} | {
|
|
3099
|
-
readonly type: "orderedList";
|
|
3100
|
-
readonly content: readonly {
|
|
3101
|
-
readonly type: "listItem";
|
|
3102
|
-
readonly content: readonly ({
|
|
3103
|
-
readonly type: "text";
|
|
3104
|
-
readonly text: string;
|
|
3105
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3106
|
-
} | {
|
|
3107
|
-
readonly type: "link";
|
|
3108
|
-
readonly content: readonly {
|
|
3109
|
-
readonly type: "text";
|
|
3110
|
-
readonly text: string;
|
|
3111
|
-
readonly marks?: readonly ("code" | "bold" | "strike" | "italic")[] | undefined;
|
|
3112
|
-
}[];
|
|
3113
|
-
readonly href: string;
|
|
3114
|
-
})[];
|
|
3115
|
-
}[];
|
|
3116
|
-
} | {
|
|
3117
|
-
readonly type: "codeBlock";
|
|
3118
|
-
readonly text: string;
|
|
3119
|
-
})[];
|
|
3120
|
-
}, Schema.Struct<{
|
|
3121
|
-
type: Schema.Literal<["doc"]>;
|
|
3122
|
-
content: Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
3123
|
-
type: Schema.Literal<["paragraph"]>;
|
|
3124
|
-
content: Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
3125
|
-
type: Schema.Literal<["text"]>;
|
|
3126
|
-
text: typeof Schema.String;
|
|
3127
|
-
marks: Schema.optional<Schema.Array$<Schema.Literal<["bold", "italic", "code", "strike"]>>>;
|
|
3058
|
+
export declare const RichTextDocument: Schema.Struct<{
|
|
3059
|
+
readonly type: Schema.Literal<"doc">;
|
|
3060
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3061
|
+
readonly type: Schema.Literal<"paragraph">;
|
|
3062
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3063
|
+
readonly type: Schema.Literal<"text">;
|
|
3064
|
+
readonly text: Schema.String;
|
|
3065
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3128
3066
|
}>, Schema.Struct<{
|
|
3129
|
-
type: Schema.Literal<
|
|
3130
|
-
href: Schema.
|
|
3131
|
-
content: Schema
|
|
3132
|
-
type: Schema.Literal<
|
|
3133
|
-
text:
|
|
3134
|
-
marks: Schema.optional<Schema
|
|
3067
|
+
readonly type: Schema.Literal<"link">;
|
|
3068
|
+
readonly href: Schema.String;
|
|
3069
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3070
|
+
readonly type: Schema.Literal<"text">;
|
|
3071
|
+
readonly text: Schema.String;
|
|
3072
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3135
3073
|
}>>;
|
|
3136
3074
|
}>]>>;
|
|
3137
3075
|
}>, Schema.Struct<{
|
|
3138
|
-
type: Schema.Literal<
|
|
3139
|
-
level: Schema.
|
|
3140
|
-
content: Schema
|
|
3141
|
-
type: Schema.Literal<
|
|
3142
|
-
text:
|
|
3143
|
-
marks: Schema.optional<Schema
|
|
3076
|
+
readonly type: Schema.Literal<"heading">;
|
|
3077
|
+
readonly level: Schema.Literals<readonly [1, 2, 3]>;
|
|
3078
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3079
|
+
readonly type: Schema.Literal<"text">;
|
|
3080
|
+
readonly text: Schema.String;
|
|
3081
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3144
3082
|
}>, Schema.Struct<{
|
|
3145
|
-
type: Schema.Literal<
|
|
3146
|
-
href: Schema.
|
|
3147
|
-
content: Schema
|
|
3148
|
-
type: Schema.Literal<
|
|
3149
|
-
text:
|
|
3150
|
-
marks: Schema.optional<Schema
|
|
3083
|
+
readonly type: Schema.Literal<"link">;
|
|
3084
|
+
readonly href: Schema.String;
|
|
3085
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3086
|
+
readonly type: Schema.Literal<"text">;
|
|
3087
|
+
readonly text: Schema.String;
|
|
3088
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3151
3089
|
}>>;
|
|
3152
3090
|
}>]>>;
|
|
3153
3091
|
}>, Schema.Struct<{
|
|
3154
|
-
type: Schema.Literal<
|
|
3155
|
-
content: Schema
|
|
3156
|
-
type: Schema.Literal<
|
|
3157
|
-
text:
|
|
3158
|
-
marks: Schema.optional<Schema
|
|
3092
|
+
readonly type: Schema.Literal<"blockquote">;
|
|
3093
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3094
|
+
readonly type: Schema.Literal<"text">;
|
|
3095
|
+
readonly text: Schema.String;
|
|
3096
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3159
3097
|
}>, Schema.Struct<{
|
|
3160
|
-
type: Schema.Literal<
|
|
3161
|
-
href: Schema.
|
|
3162
|
-
content: Schema
|
|
3163
|
-
type: Schema.Literal<
|
|
3164
|
-
text:
|
|
3165
|
-
marks: Schema.optional<Schema
|
|
3098
|
+
readonly type: Schema.Literal<"link">;
|
|
3099
|
+
readonly href: Schema.String;
|
|
3100
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3101
|
+
readonly type: Schema.Literal<"text">;
|
|
3102
|
+
readonly text: Schema.String;
|
|
3103
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3166
3104
|
}>>;
|
|
3167
3105
|
}>]>>;
|
|
3168
3106
|
}>, Schema.Struct<{
|
|
3169
|
-
type: Schema.Literal<
|
|
3170
|
-
content: Schema
|
|
3171
|
-
type: Schema.Literal<
|
|
3172
|
-
content: Schema
|
|
3173
|
-
type: Schema.Literal<
|
|
3174
|
-
text:
|
|
3175
|
-
marks: Schema.optional<Schema
|
|
3107
|
+
readonly type: Schema.Literal<"bulletList">;
|
|
3108
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3109
|
+
readonly type: Schema.Literal<"listItem">;
|
|
3110
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3111
|
+
readonly type: Schema.Literal<"text">;
|
|
3112
|
+
readonly text: Schema.String;
|
|
3113
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3176
3114
|
}>, Schema.Struct<{
|
|
3177
|
-
type: Schema.Literal<
|
|
3178
|
-
href: Schema.
|
|
3179
|
-
content: Schema
|
|
3180
|
-
type: Schema.Literal<
|
|
3181
|
-
text:
|
|
3182
|
-
marks: Schema.optional<Schema
|
|
3115
|
+
readonly type: Schema.Literal<"link">;
|
|
3116
|
+
readonly href: Schema.String;
|
|
3117
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3118
|
+
readonly type: Schema.Literal<"text">;
|
|
3119
|
+
readonly text: Schema.String;
|
|
3120
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3183
3121
|
}>>;
|
|
3184
3122
|
}>]>>;
|
|
3185
3123
|
}>>;
|
|
3186
3124
|
}>, Schema.Struct<{
|
|
3187
|
-
type: Schema.Literal<
|
|
3188
|
-
content: Schema
|
|
3189
|
-
type: Schema.Literal<
|
|
3190
|
-
content: Schema
|
|
3191
|
-
type: Schema.Literal<
|
|
3192
|
-
text:
|
|
3193
|
-
marks: Schema.optional<Schema
|
|
3125
|
+
readonly type: Schema.Literal<"orderedList">;
|
|
3126
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3127
|
+
readonly type: Schema.Literal<"listItem">;
|
|
3128
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3129
|
+
readonly type: Schema.Literal<"text">;
|
|
3130
|
+
readonly text: Schema.String;
|
|
3131
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3194
3132
|
}>, Schema.Struct<{
|
|
3195
|
-
type: Schema.Literal<
|
|
3196
|
-
href: Schema.
|
|
3197
|
-
content: Schema
|
|
3198
|
-
type: Schema.Literal<
|
|
3199
|
-
text:
|
|
3200
|
-
marks: Schema.optional<Schema
|
|
3133
|
+
readonly type: Schema.Literal<"link">;
|
|
3134
|
+
readonly href: Schema.String;
|
|
3135
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3136
|
+
readonly type: Schema.Literal<"text">;
|
|
3137
|
+
readonly text: Schema.String;
|
|
3138
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3201
3139
|
}>>;
|
|
3202
3140
|
}>]>>;
|
|
3203
3141
|
}>>;
|
|
3204
3142
|
}>, Schema.Struct<{
|
|
3205
|
-
type: Schema.Literal<
|
|
3206
|
-
text:
|
|
3143
|
+
readonly type: Schema.Literal<"codeBlock">;
|
|
3144
|
+
readonly text: Schema.String;
|
|
3207
3145
|
}>]>>;
|
|
3208
|
-
}
|
|
3146
|
+
}>;
|
|
3209
3147
|
|
|
3210
3148
|
export declare type RichTextDocument = typeof RichTextDocument.Type;
|
|
3211
3149
|
|
|
3212
3150
|
export declare type RichTextInline = typeof RichTextInline_2.Type;
|
|
3213
3151
|
|
|
3214
|
-
declare const RichTextInline_2: Schema.Union<[Schema.Struct<{
|
|
3215
|
-
type: Schema.Literal<
|
|
3216
|
-
text:
|
|
3217
|
-
marks: Schema.optional<Schema
|
|
3152
|
+
declare const RichTextInline_2: Schema.Union<readonly [Schema.Struct<{
|
|
3153
|
+
readonly type: Schema.Literal<"text">;
|
|
3154
|
+
readonly text: Schema.String;
|
|
3155
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3218
3156
|
}>, Schema.Struct<{
|
|
3219
|
-
type: Schema.Literal<
|
|
3220
|
-
href: Schema.
|
|
3221
|
-
content: Schema
|
|
3222
|
-
type: Schema.Literal<
|
|
3223
|
-
text:
|
|
3224
|
-
marks: Schema.optional<Schema
|
|
3157
|
+
readonly type: Schema.Literal<"link">;
|
|
3158
|
+
readonly href: Schema.String;
|
|
3159
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3160
|
+
readonly type: Schema.Literal<"text">;
|
|
3161
|
+
readonly text: Schema.String;
|
|
3162
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3225
3163
|
}>>;
|
|
3226
3164
|
}>]>;
|
|
3227
3165
|
|
|
@@ -3230,18 +3168,18 @@ declare type RichTextInline = typeof RichTextInline_2.Type;
|
|
|
3230
3168
|
export declare type RichTextListItem = typeof RichTextListItem_2.Type;
|
|
3231
3169
|
|
|
3232
3170
|
declare const RichTextListItem_2: Schema.Struct<{
|
|
3233
|
-
type: Schema.Literal<
|
|
3234
|
-
content: Schema
|
|
3235
|
-
type: Schema.Literal<
|
|
3236
|
-
text:
|
|
3237
|
-
marks: Schema.optional<Schema
|
|
3171
|
+
readonly type: Schema.Literal<"listItem">;
|
|
3172
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3173
|
+
readonly type: Schema.Literal<"text">;
|
|
3174
|
+
readonly text: Schema.String;
|
|
3175
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3238
3176
|
}>, Schema.Struct<{
|
|
3239
|
-
type: Schema.Literal<
|
|
3240
|
-
href: Schema.
|
|
3241
|
-
content: Schema
|
|
3242
|
-
type: Schema.Literal<
|
|
3243
|
-
text:
|
|
3244
|
-
marks: Schema.optional<Schema
|
|
3177
|
+
readonly type: Schema.Literal<"link">;
|
|
3178
|
+
readonly href: Schema.String;
|
|
3179
|
+
readonly content: Schema.$Array<Schema.Struct<{
|
|
3180
|
+
readonly type: Schema.Literal<"text">;
|
|
3181
|
+
readonly text: Schema.String;
|
|
3182
|
+
readonly marks: Schema.optional<Schema.$Array<Schema.Literals<readonly ["bold", "italic", "code", "strike"]>>>;
|
|
3245
3183
|
}>>;
|
|
3246
3184
|
}>]>>;
|
|
3247
3185
|
}>;
|
|
@@ -3283,7 +3221,7 @@ export declare interface RpcError {
|
|
|
3283
3221
|
* server may have committed before the response disappeared. */
|
|
3284
3222
|
readonly outcome?: RpcCallOutcome;
|
|
3285
3223
|
/** Trace id of the CLIENT call span. When the server accepted the request,
|
|
3286
|
-
*
|
|
3224
|
+
* effect/rpc propagates this same id into its span. A transport failure may
|
|
3287
3225
|
* happen before that, so the id is not proof that server logs exist. Present
|
|
3288
3226
|
* only when a client span was active. */
|
|
3289
3227
|
readonly traceId?: string;
|
|
@@ -3393,14 +3331,14 @@ export declare interface RunSequenceOptions {
|
|
|
3393
3331
|
* its properties (same descriptor shape as `schemaToFields`, reused for
|
|
3394
3332
|
* `<DataTable>` cells). Returns `[]` if the output isn't an array of objects.
|
|
3395
3333
|
*/
|
|
3396
|
-
export declare const schemaToColumns: (schema: Schema.
|
|
3334
|
+
export declare const schemaToColumns: (schema: Schema.Top) => ReadonlyArray<FieldDescriptor>;
|
|
3397
3335
|
|
|
3398
3336
|
/**
|
|
3399
3337
|
* Derive the ordered field list for a `Schema.Struct` input. Returns `[]` for a
|
|
3400
3338
|
* schema with no object properties (a scalar, `Schema.Void`, or anything
|
|
3401
3339
|
* `JSONSchema.make` cannot represent).
|
|
3402
3340
|
*/
|
|
3403
|
-
export declare const schemaToFields: (schema: Schema.
|
|
3341
|
+
export declare const schemaToFields: (schema: Schema.Top) => ReadonlyArray<FieldDescriptor>;
|
|
3404
3342
|
|
|
3405
3343
|
/**
|
|
3406
3344
|
* Seed a subscription's first value for THIS request's hydration. Call it on the
|
|
@@ -3855,10 +3793,18 @@ export declare const subscribeStoreHistory: (listener: Listener) => (() => void)
|
|
|
3855
3793
|
|
|
3856
3794
|
export declare class SubscriptionCache {
|
|
3857
3795
|
private readonly entries;
|
|
3796
|
+
private readonly entriesByTable;
|
|
3797
|
+
private readonly entriesByTag;
|
|
3798
|
+
private readonly entriesByMutation;
|
|
3799
|
+
private readonly patchMemberships;
|
|
3800
|
+
private readonly entryOrder;
|
|
3801
|
+
private orderedMemberships;
|
|
3802
|
+
private nextEntryOrder;
|
|
3858
3803
|
/** Standing optimistic intents, by mutation id — see `autoApply`. */
|
|
3859
3804
|
private readonly intents;
|
|
3860
3805
|
private readonly tableRows;
|
|
3861
3806
|
private readonly anyListeners;
|
|
3807
|
+
private readonly tableListeners;
|
|
3862
3808
|
private readonly refreshing;
|
|
3863
3809
|
/**
|
|
3864
3810
|
* Same-subject runtime replacement. A mutation may settle against the cache
|
|
@@ -4114,6 +4060,16 @@ export declare class SubscriptionCache {
|
|
|
4114
4060
|
private createStub;
|
|
4115
4061
|
private freshState;
|
|
4116
4062
|
private startFiber;
|
|
4063
|
+
private sourceTables;
|
|
4064
|
+
private addIndex;
|
|
4065
|
+
private removeIndex;
|
|
4066
|
+
private orderedEntries;
|
|
4067
|
+
private indexSource;
|
|
4068
|
+
private appendPatch;
|
|
4069
|
+
private replacePatches;
|
|
4070
|
+
private indexPatches;
|
|
4071
|
+
private registerEntry;
|
|
4072
|
+
private unindexEntry;
|
|
4117
4073
|
private invalidate;
|
|
4118
4074
|
/**
|
|
4119
4075
|
* Every row of `table` this cache holds — the client's local replica of the
|
|
@@ -4124,6 +4080,8 @@ export declare class SubscriptionCache {
|
|
|
4124
4080
|
* for `useSyncExternalStore`.
|
|
4125
4081
|
*/
|
|
4126
4082
|
rowsOf(table: string): ReadonlyArray<Readonly<Record<string, unknown>>>;
|
|
4083
|
+
/** Subscribe to cache changes affecting this source table only. */
|
|
4084
|
+
subscribeTable(table: string, listener: () => void): () => void;
|
|
4127
4085
|
/** Call `listener` after any entry changed. Returns the unsubscribe. */
|
|
4128
4086
|
subscribeAny(listener: () => void): () => void;
|
|
4129
4087
|
private getSnapshot;
|
|
@@ -4736,6 +4694,8 @@ export declare interface UploadHandle {
|
|
|
4736
4694
|
export declare interface UploadOptions {
|
|
4737
4695
|
/** `'private'` (default) or `'public'`. Public objects get a cacheable URL. */
|
|
4738
4696
|
readonly visibility?: 'public' | 'private';
|
|
4697
|
+
/** Requested private-file policy. The server must authorize it before issuing a ticket. */
|
|
4698
|
+
readonly access?: StorageAccessPolicy;
|
|
4739
4699
|
/** Fixed logical key (e.g. `avatars/<userId>.png`); else content-addressed. */
|
|
4740
4700
|
readonly key?: string;
|
|
4741
4701
|
/** App metadata stored on the ref (so no parallel `assets` table is needed). */
|
|
@@ -4921,7 +4881,7 @@ export declare const useDerived: <S extends Record<string, unknown>, T>(sources:
|
|
|
4921
4881
|
* at this call site, and the `key` must structurally match the descriptor's key
|
|
4922
4882
|
* schema, so a typo cannot produce a subscription that silently never fires.
|
|
4923
4883
|
*/
|
|
4924
|
-
export declare function useEvent<Name extends string, Key extends Schema.
|
|
4884
|
+
export declare function useEvent<Name extends string, Key extends Schema.Top, Payload extends Schema.Top>(descriptor: EventDescriptor_2<Name, Key, Payload>, key: Schema.Schema.Type<Key> | null, handler: (payload: Schema.Schema.Type<Payload>) => void, options?: UseEventOptions): EventState;
|
|
4925
4885
|
|
|
4926
4886
|
export declare interface UseEventOptions {
|
|
4927
4887
|
/**
|
|
@@ -4970,7 +4930,7 @@ export declare interface UseFormBindingOptions<Input> {
|
|
|
4970
4930
|
* the mounted client descriptor (`descriptors[tag].input`, the capability
|
|
4971
4931
|
* map — innovation/06). Pass it explicitly to override, or when the
|
|
4972
4932
|
* descriptor isn't on the client. */
|
|
4973
|
-
readonly schema?: Schema.
|
|
4933
|
+
readonly schema?: Schema.Top;
|
|
4974
4934
|
/** Initial field values. */
|
|
4975
4935
|
readonly defaults?: Partial<Input>;
|
|
4976
4936
|
/** The failed no-JS POST's payload for THIS form (`useFormFlash` from
|
|
@@ -5244,7 +5204,7 @@ export declare const useResumableAgentStream: <E = unknown>(apiName: string, rpc
|
|
|
5244
5204
|
/** A schema-owned form for actions, parent plans, and local saves. It uses the
|
|
5245
5205
|
* same validation/field engine without connecting to an API or inventing a tag. */
|
|
5246
5206
|
export declare const useSchemaFormBinding: <Input extends Record<string, unknown>, Encoded, Output>(options: Omit<UseFormBindingOptions<Input>, "schema" | "onSubmit"> & {
|
|
5247
|
-
readonly schema: Schema.
|
|
5207
|
+
readonly schema: Schema.Codec<Input, Encoded>;
|
|
5248
5208
|
readonly onSubmit: (input: Input) => Output | Promise<Output>;
|
|
5249
5209
|
}) => FormBinding<Input, Output>;
|
|
5250
5210
|
|
|
@@ -5422,7 +5382,7 @@ export declare const validateEventPayload: (descriptor: EventDescriptor<string,
|
|
|
5422
5382
|
* pass. Client-side validation is non-authoritative UX — the server
|
|
5423
5383
|
* re-validates the same schema on the mutation.
|
|
5424
5384
|
*/
|
|
5425
|
-
export declare const validateFields: (schema: Schema.
|
|
5385
|
+
export declare const validateFields: (schema: Schema.Top, values: unknown, options?: ValidateOptions) => ValidationResult;
|
|
5426
5386
|
|
|
5427
5387
|
export declare interface ValidateOptions {
|
|
5428
5388
|
/** BCP-47-ish tag; only the primary subtag is read. Default: the document's
|
|
@@ -5469,6 +5429,8 @@ export declare const validationStatus: (args: {
|
|
|
5469
5429
|
readonly skipEmpty?: boolean;
|
|
5470
5430
|
}) => AsyncValidationResult;
|
|
5471
5431
|
|
|
5432
|
+
export { WebSocketConstructorOptions }
|
|
5433
|
+
|
|
5472
5434
|
/** The default widget kinds the framework can render from a schema. `'custom'`
|
|
5473
5435
|
* means "no default widget" — the field needs a render-prop (a nested object,
|
|
5474
5436
|
* an array of objects, or a multi-branch union). Mirrors innovation/01's set. */
|
|
@@ -5533,8 +5495,6 @@ export declare type WithOptimistic<T> = T extends ReadonlyArray<infer Element> ?
|
|
|
5533
5495
|
readonly optimistic?: boolean;
|
|
5534
5496
|
} : Element> : T;
|
|
5535
5497
|
|
|
5536
|
-
/* Excluded from this release type: withProtocolOpenRecovery */
|
|
5537
|
-
|
|
5538
5498
|
export declare interface WorkflowClientMessages {
|
|
5539
5499
|
readonly signals?: Readonly<Record<string, unknown>>;
|
|
5540
5500
|
readonly updates?: Readonly<Record<string, {
|