@party-stack/ontology-server 0.11.7 → 0.12.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/lib/rpc.d.ts CHANGED
@@ -370,7 +370,6 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
370
370
  }[] | undefined;
371
371
  } | undefined;
372
372
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
373
- readonly touchedTypes: readonly string[];
374
373
  readonly submission?: {
375
374
  readonly clientId: string;
376
375
  readonly sequence: number;
@@ -429,7 +428,6 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
429
428
  }[] | undefined;
430
429
  } | undefined;
431
430
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
432
- readonly touchedTypes: readonly string[];
433
431
  readonly submission?: {
434
432
  readonly clientId: string;
435
433
  readonly sequence: number;
@@ -607,6 +605,8 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
607
605
  readonly reason: "collection" | "primary-key" | "query";
608
606
  readonly maintainedBy: "journal" | "poll" | "snapshot" | "watch";
609
607
  readonly pollIntervalMs?: number | undefined;
608
+ readonly stale?: boolean | undefined;
609
+ readonly confirmedAt?: number | undefined;
610
610
  } | undefined;
611
611
  }[];
612
612
  readonly outbox: {
@@ -776,7 +776,6 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
776
776
  }[] | undefined;
777
777
  } | undefined;
778
778
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
779
- readonly touchedTypes: readonly string[];
780
779
  readonly submission?: {
781
780
  readonly clientId: string;
782
781
  readonly sequence: number;
@@ -835,7 +834,6 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
835
834
  }[] | undefined;
836
835
  } | undefined;
837
836
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
838
- readonly touchedTypes: readonly string[];
839
837
  readonly submission?: {
840
838
  readonly clientId: string;
841
839
  readonly sequence: number;
@@ -958,7 +956,6 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
958
956
  }[] | undefined;
959
957
  } | undefined;
960
958
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
961
- readonly touchedTypes: readonly string[];
962
959
  readonly submission?: {
963
960
  readonly clientId: string;
964
961
  readonly sequence: number;
@@ -1116,7 +1113,6 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
1116
1113
  }[] | undefined;
1117
1114
  } | undefined;
1118
1115
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
1119
- readonly touchedTypes: readonly string[];
1120
1116
  readonly submission?: {
1121
1117
  readonly clientId: string;
1122
1118
  readonly sequence: number;
@@ -1189,7 +1185,27 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
1189
1185
  }>>>;
1190
1186
  readonly eventCount: Schema.optional<Schema.Number>;
1191
1187
  readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
1192
- }>>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ValidateAction", Schema.Codec<{
1188
+ }>>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"UpdateView", Schema.Struct<{
1189
+ session: Schema.Struct<{
1190
+ readonly client: Schema.Struct<{
1191
+ readonly sourceId: Schema.NonEmptyString;
1192
+ readonly clientId: Schema.NonEmptyString;
1193
+ readonly resumeKey: Schema.NonEmptyString;
1194
+ }>;
1195
+ readonly connectionId: Schema.NonEmptyString;
1196
+ }>;
1197
+ view: Schema.Codec<{
1198
+ readonly generation: number;
1199
+ readonly selection: {
1200
+ readonly subsets: readonly {
1201
+ readonly objectType: string;
1202
+ readonly query?: import("@party-stack/ontology-storage").Query | undefined;
1203
+ }[];
1204
+ readonly actionIds: readonly string[];
1205
+ readonly inspectActions?: boolean | undefined;
1206
+ };
1207
+ }, string, never, never>;
1208
+ }>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ValidateAction", Schema.Codec<{
1193
1209
  readonly name: string;
1194
1210
  readonly parameters: {
1195
1211
  readonly [x: string]: unknown;
@@ -1633,7 +1649,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
1633
1649
  }[] | undefined;
1634
1650
  } | undefined;
1635
1651
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
1636
- readonly touchedTypes: readonly string[];
1637
1652
  readonly submission?: {
1638
1653
  readonly clientId: string;
1639
1654
  readonly sequence: number;
@@ -1692,7 +1707,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
1692
1707
  }[] | undefined;
1693
1708
  } | undefined;
1694
1709
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
1695
- readonly touchedTypes: readonly string[];
1696
1710
  readonly submission?: {
1697
1711
  readonly clientId: string;
1698
1712
  readonly sequence: number;
@@ -1900,6 +1914,8 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
1900
1914
  readonly reason: "collection" | "primary-key" | "query";
1901
1915
  readonly maintainedBy: "journal" | "poll" | "snapshot" | "watch";
1902
1916
  readonly pollIntervalMs?: number | undefined;
1917
+ readonly stale?: boolean | undefined;
1918
+ readonly confirmedAt?: number | undefined;
1903
1919
  } | undefined;
1904
1920
  }[];
1905
1921
  readonly outbox: {
@@ -2050,6 +2066,8 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2050
2066
  readonly reason: "collection" | "primary-key" | "query";
2051
2067
  readonly maintainedBy: "journal" | "poll" | "snapshot" | "watch";
2052
2068
  readonly pollIntervalMs?: number | undefined;
2069
+ readonly stale?: boolean | undefined;
2070
+ readonly confirmedAt?: number | undefined;
2053
2071
  } | undefined;
2054
2072
  }[];
2055
2073
  readonly outbox: {
@@ -2190,7 +2208,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2190
2208
  }[] | undefined;
2191
2209
  } | undefined;
2192
2210
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
2193
- readonly touchedTypes: readonly string[];
2194
2211
  readonly submission?: {
2195
2212
  readonly clientId: string;
2196
2213
  readonly sequence: number;
@@ -2249,7 +2266,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2249
2266
  }[] | undefined;
2250
2267
  } | undefined;
2251
2268
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
2252
- readonly touchedTypes: readonly string[];
2253
2269
  readonly submission?: {
2254
2270
  readonly clientId: string;
2255
2271
  readonly sequence: number;
@@ -2376,7 +2392,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2376
2392
  }[] | undefined;
2377
2393
  } | undefined;
2378
2394
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
2379
- readonly touchedTypes: readonly string[];
2380
2395
  readonly submission?: {
2381
2396
  readonly clientId: string;
2382
2397
  readonly sequence: number;
@@ -2510,7 +2525,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2510
2525
  }[] | undefined;
2511
2526
  } | undefined;
2512
2527
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
2513
- readonly touchedTypes: readonly string[];
2514
2528
  readonly submission?: {
2515
2529
  readonly clientId: string;
2516
2530
  readonly sequence: number;
@@ -2664,7 +2678,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2664
2678
  }[] | undefined;
2665
2679
  } | undefined;
2666
2680
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
2667
- readonly touchedTypes: readonly string[];
2668
2681
  readonly submission?: {
2669
2682
  readonly clientId: string;
2670
2683
  readonly sequence: number;
@@ -2798,7 +2811,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2798
2811
  }[] | undefined;
2799
2812
  } | undefined;
2800
2813
  readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
2801
- readonly touchedTypes: readonly string[];
2802
2814
  readonly submission?: {
2803
2815
  readonly clientId: string;
2804
2816
  readonly sequence: number;
@@ -2905,6 +2917,21 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
2905
2917
  readonly [x: string]: string | number | boolean;
2906
2918
  };
2907
2919
  }[], BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError, never>;
2920
+ readonly UpdateView: <const AsQueue extends boolean = false, const Discard = false>(input: {
2921
+ readonly session: {
2922
+ readonly client: {
2923
+ readonly sourceId: string;
2924
+ readonly clientId: string;
2925
+ readonly resumeKey: string;
2926
+ };
2927
+ readonly connectionId: string;
2928
+ };
2929
+ readonly view: unknown;
2930
+ }, options?: {
2931
+ readonly headers?: import("effect/http/Headers").Input | undefined;
2932
+ readonly context?: Context.Context<never> | undefined;
2933
+ readonly discard?: Discard | undefined;
2934
+ } | undefined) => Effect.Effect<Discard extends true ? void : void, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError | (Discard extends true ? never : BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">), never>;
2908
2935
  readonly ValidateAction: <const AsQueue extends boolean = false, const Discard = false>(input: unknown, options?: {
2909
2936
  readonly headers?: import("effect/http/Headers").Input | undefined;
2910
2937
  readonly context?: Context.Context<never> | undefined;
@@ -3060,6 +3087,10 @@ export type OntologyRpcRequest = OntologyOperationRequest | {
3060
3087
  readonly operation: "SubscribeState";
3061
3088
  readonly session: ClientSession;
3062
3089
  readonly view: ClientView;
3090
+ } | {
3091
+ readonly operation: "UpdateView";
3092
+ readonly session: ClientSession;
3093
+ readonly view: ClientView;
3063
3094
  } | {
3064
3095
  readonly operation: "AckDelivery";
3065
3096
  readonly kind: "committed" | "speculative";
@@ -3106,7 +3137,7 @@ export interface OntologyRpcServerOptions<R = never> extends ErrorProjectionOpti
3106
3137
  }
3107
3138
  /** Administrative resources use the same ontology RPCs and transport. Access is
3108
3139
  * still gated by the parent endpoint before the resource is acquired. */
3109
- export declare const ontologyRpcHandlers: <R>(options: OntologyRpcServerOptions<R>) => Layer.Layer<Rpc.Handler<"Accept"> | Rpc.Handler<"AckDelivery"> | Rpc.Handler<"Acknowledge"> | Rpc.Handler<"ApplyAction"> | Rpc.Handler<"AttachmentMetadata"> | Rpc.Handler<"Changes"> | Rpc.Handler<"ClearPin"> | Rpc.Handler<"ControlOutbox"> | Rpc.Handler<"CreateAttachment"> | Rpc.Handler<"Decrypt"> | Rpc.Handler<"DeleteLocalData"> | Rpc.Handler<"Demand"> | Rpc.Handler<"Describe"> | Rpc.Handler<"LoadSubset"> | Rpc.Handler<"OpenClient"> | Rpc.Handler<"PullChanges"> | Rpc.Handler<"Query"> | Rpc.Handler<"QueryFunction"> | Rpc.Handler<"Read"> | Rpc.Handler<"ReadAttachment"> | Rpc.Handler<"ReadPin"> | Rpc.Handler<"ReleaseOwner"> | Rpc.Handler<"ReplicaStatus"> | Rpc.Handler<"ResolveActionParameters"> | Rpc.Handler<"SetPin"> | Rpc.Handler<"Submit"> | Rpc.Handler<"SubscribeSelection"> | Rpc.Handler<"SubscribeState"> | Rpc.Handler<"Traces"> | Rpc.Handler<"ValidateAction"> | Rpc.Handler<"WatchChanges"> | Rpc.Handler<"WatchPin"> | Rpc.Handler<"WatchSubset"> | Rpc.Handler<"WriteAttachmentChunk"> | OntologyErrorProjection, never, Exclude<Exclude<R, never>, Scope.Scope> | Exclude<Exclude<Exclude<R, never>, Scope.Scope>, Scope.Scope>>;
3140
+ export declare const ontologyRpcHandlers: <R>(options: OntologyRpcServerOptions<R>) => Layer.Layer<Rpc.Handler<"Accept"> | Rpc.Handler<"AckDelivery"> | Rpc.Handler<"Acknowledge"> | Rpc.Handler<"ApplyAction"> | Rpc.Handler<"AttachmentMetadata"> | Rpc.Handler<"Changes"> | Rpc.Handler<"ClearPin"> | Rpc.Handler<"ControlOutbox"> | Rpc.Handler<"CreateAttachment"> | Rpc.Handler<"Decrypt"> | Rpc.Handler<"DeleteLocalData"> | Rpc.Handler<"Demand"> | Rpc.Handler<"Describe"> | Rpc.Handler<"LoadSubset"> | Rpc.Handler<"OpenClient"> | Rpc.Handler<"PullChanges"> | Rpc.Handler<"Query"> | Rpc.Handler<"QueryFunction"> | Rpc.Handler<"Read"> | Rpc.Handler<"ReadAttachment"> | Rpc.Handler<"ReadPin"> | Rpc.Handler<"ReleaseOwner"> | Rpc.Handler<"ReplicaStatus"> | Rpc.Handler<"ResolveActionParameters"> | Rpc.Handler<"SetPin"> | Rpc.Handler<"Submit"> | Rpc.Handler<"SubscribeSelection"> | Rpc.Handler<"SubscribeState"> | Rpc.Handler<"Traces"> | Rpc.Handler<"UpdateView"> | Rpc.Handler<"ValidateAction"> | Rpc.Handler<"WatchChanges"> | Rpc.Handler<"WatchPin"> | Rpc.Handler<"WatchSubset"> | Rpc.Handler<"WriteAttachmentChunk"> | OntologyErrorProjection, never, Exclude<Exclude<R, never>, Scope.Scope> | Exclude<Exclude<Exclude<R, never>, Scope.Scope>, Scope.Scope>>;
3110
3141
  export type OntologyRpcClient = Effect.Success<ReturnType<typeof RpcClient.make<RpcGroup.Rpcs<typeof OntologyRpcs>>>>;
3111
3142
  /** HTTP byte operations use the same incompatibility notification as typed RPC. */
3112
3143
  export declare const observeOntologyClientFailure: <A, R>(client: OntologyClient, work: Effect.Effect<A, BackendError, R>) => Effect.Effect<A, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">, R>;
package/lib/rpc.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.ts","names":["OntologyDescription"],"sources":["../src/rpc.ts"],"mappings":";;;;;;;;;;;;;;cAmEM,kBAAgB,OAAA;qBAsDT,cAAY,SAAA,SAAA,IAAA,cAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,yBAAA,IAAA,yBAAA,IAAA,yBAAA,IAAA,gCAAA,IAAA,qBAAA,IAAA,sBAAA,IAAA,2BAAA,IAAA,8BAAA,IAAA,qBAAA,IAAA,6BAAA,IAAA,oBAAA,IAAA,sBAAA,IAAA,wBAAA,IAAA,wBAAA,IAAA,yBAAA,IAAA,mBAAA,IAAA,2BAAA,IAAA,kBAAA,IAAA,4BAAA,IAAA,qBAAA,IAAA,0BAAA,IAAA,2BAAA,IAAA,qCAAA,IAAA,oBAAA,IAAA,oBAAA,IAAA,gCAAA,IAAA,4BAAA,IAAA,oBAAA,IAAA,wBAAA,IAAA,4BAAA,IAAA,0BAAA,IAAA,sBAAA,IAAA,yBAAA,IAAA,kCAAA,gCAAA,QAAA,QAAA,WAAA,MAAA,SAAA,QAAA,QAAA,QAAA,WAAA,MAAA,QAAA,MAAA;YA6F/D,oBAAoB,OAAO,QACnC,kBAAkB,UAAU,KAAK,SAAS,YAAY;;qBAiE7C,+BAAgC,GAAG,GAAC,QACrC,gBAAc,MAChB,OAAO,OAAO,GAAG,cAAc,OAAE,OAAA,OAAA,GAAA,iWAAA;;qBAuL9B,6BAA0B,QAVvB,mBAAiB,UACf,0BACT,OAAO,OAAO,gBAAgB,cAAc,MAAM;;;;;;qBAc9C,oCAAiC,QAhB9B,mBAAiB,UACf,0BACT,OAAO,OAAO,gBAAgB,cAAc,MAAM"}
package/lib/rpc.js CHANGED
@@ -45,6 +45,12 @@ const ReplicaRpcs = RpcGroup.make(Rpc.make("Describe", {
45
45
  success: DeliveryFrameCodec,
46
46
  error: BackendError,
47
47
  stream: true
48
+ }), Rpc.make("UpdateView", {
49
+ payload: {
50
+ session: ClientSessionSchema,
51
+ view: ClientViewCodec
52
+ },
53
+ error: BackendError
48
54
  }), Rpc.make("AckDelivery", {
49
55
  payload: {
50
56
  kind: Schema.Literals(["committed", "speculative"]),
@@ -101,6 +107,7 @@ const clientSyncOperations = /* @__PURE__ */ new Set([
101
107
  "SubscribeSelection",
102
108
  "AckDelivery",
103
109
  "SubscribeState",
110
+ "UpdateView",
104
111
  "OpenClient",
105
112
  "Read",
106
113
  "Submit",
@@ -248,6 +255,18 @@ const baseOntologyRpcHandlers = (options) => {
248
255
  } : change)
249
256
  })));
250
257
  })),
258
+ UpdateView: (request, context) => authorize({
259
+ operation: "UpdateView",
260
+ ...request
261
+ }, context.headers).pipe(Effect.andThen(() => {
262
+ if (snapshots || !source.subscribe) return unavailableDelivery();
263
+ return source.updateView ? source.updateView(request.session, request.view) : Effect.fail(new BackendError({
264
+ operation: "UpdateView",
265
+ kind: "ViewReplaced",
266
+ retryable: true,
267
+ message: "This source replaces views by subscribing again."
268
+ }));
269
+ })),
251
270
  AckDelivery: (request, context) => authorize({
252
271
  operation: "AckDelivery",
253
272
  ...request
@@ -558,6 +577,10 @@ const openProtocolClient = Effect.fnUntraced(function* (client, options, accept,
558
577
  kind: "speculative",
559
578
  position
560
579
  }).pipe(Effect.mapError(unavailable)) : void 0,
580
+ updateView: description.stateDelivery ? (session, view) => client.UpdateView({
581
+ session,
582
+ view
583
+ }).pipe(Effect.mapError(unavailable)) : void 0,
561
584
  acknowledge: (session, revision, through, viewGeneration) => client.Acknowledge({
562
585
  session,
563
586
  revision,