@party-stack/ontology-server 0.14.0 → 0.15.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/operations.d.ts +2 -1
- package/lib/operations.d.ts.map +1 -1
- package/lib/operations.js +7 -10
- package/lib/operations.js.map +1 -1
- package/lib/rpc.d.ts +32 -1
- package/lib/rpc.d.ts.map +1 -1
- package/package.json +4 -4
package/lib/operations.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const OntologyOperationRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"ApplyActi
|
|
|
30
30
|
readonly now: string;
|
|
31
31
|
readonly seed: string;
|
|
32
32
|
} | undefined;
|
|
33
|
+
readonly timeoutMs?: number | undefined;
|
|
33
34
|
}, string, never, never>, Schema.Struct<{
|
|
34
35
|
readonly operationId: Schema.String;
|
|
35
36
|
readonly outcome: Schema.Literal<"committed">;
|
|
@@ -77,8 +78,8 @@ export declare const OntologyOperationRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"ApplyActi
|
|
|
77
78
|
readonly now: string;
|
|
78
79
|
readonly seed: string;
|
|
79
80
|
} | undefined;
|
|
81
|
+
readonly timeoutMs?: number | undefined;
|
|
80
82
|
} | undefined;
|
|
81
|
-
readonly allowUnknownOutcome?: boolean | undefined;
|
|
82
83
|
}, string, never, never>, Schema.Void, typeof BackendError, never, never> | Rpc.Rpc<"CreateAttachment", Schema.Struct<{
|
|
83
84
|
readonly size: Schema.optional<Schema.Int>;
|
|
84
85
|
readonly type: Schema.String;
|
package/lib/operations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","names":["_$__attachmentTransfers_js0.AttachmentUpload","_$__attachmentTransfers_js0.AttachmentValue"],"sources":["../src/operations.ts"],"mappings":";;;;;;;;;;;;;cAyEM,UAAQ,OAAA;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","names":["_$__attachmentTransfers_js0.A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgMvC,OAAA,OAAA,iCAAA,MAAA"}
|
package/lib/operations.js
CHANGED
|
@@ -138,8 +138,7 @@ const HelperRpcs = RpcGroup.make(Rpc.make("Query", {
|
|
|
138
138
|
"edit"
|
|
139
139
|
]),
|
|
140
140
|
id: Schema.NonEmptyString,
|
|
141
|
-
invocation: Schema.optional(ActionRequestSchema)
|
|
142
|
-
allowUnknownOutcome: Schema.optional(Schema.Boolean)
|
|
141
|
+
invocation: Schema.optional(ActionRequestSchema)
|
|
143
142
|
})),
|
|
144
143
|
error: BackendError
|
|
145
144
|
}), Rpc.make("ReplicaStatus", {
|
|
@@ -372,8 +371,8 @@ const ontologyOperationHandlers = (options, authorize = options.authorize) => {
|
|
|
372
371
|
if (request.operation === "edit") {
|
|
373
372
|
if (!request.invocation || request.invocation.id !== request.id) return yield* missing("edit invocation");
|
|
374
373
|
yield* outbox.edit(request.id, request.invocation);
|
|
375
|
-
} else if (request.operation === "remove") yield* outbox.remove(request.id
|
|
376
|
-
else yield* outbox.retry(request.id
|
|
374
|
+
} else if (request.operation === "remove") yield* outbox.remove(request.id);
|
|
375
|
+
else yield* outbox.retry(request.id);
|
|
377
376
|
}),
|
|
378
377
|
ReplicaStatus: (_, context) => Stream.unwrap(Effect.gen(function* () {
|
|
379
378
|
yield* Effect.annotateCurrentSpan("activity", "subscription");
|
|
@@ -540,15 +539,13 @@ const makeOntologyOperationsClient = Effect.fnUntraced(function* (client) {
|
|
|
540
539
|
}).pipe(Effect.mapError(failure)),
|
|
541
540
|
attachments,
|
|
542
541
|
outbox: {
|
|
543
|
-
remove: (id
|
|
542
|
+
remove: (id) => client.ControlOutbox({
|
|
544
543
|
operation: "remove",
|
|
545
|
-
id
|
|
546
|
-
allowUnknownOutcome: settings?.allowUnknownOutcome
|
|
544
|
+
id
|
|
547
545
|
}).pipe(Effect.mapError(failure)),
|
|
548
|
-
retry: (id
|
|
546
|
+
retry: (id) => client.ControlOutbox({
|
|
549
547
|
operation: "retry",
|
|
550
|
-
id
|
|
551
|
-
allowUnknownOutcome: settings?.allowUnknownOutcome
|
|
548
|
+
id
|
|
552
549
|
}).pipe(Effect.mapError(failure)),
|
|
553
550
|
edit: (id, invocation) => client.ControlOutbox({
|
|
554
551
|
operation: "edit",
|
package/lib/operations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","names":[],"sources":["../src/operations.ts"],"sourcesContent":["import {\n BackendError,\n classifyBackendFailure,\n BackendSnapshotSchema,\n BackendChangePageSchema,\n ValidationReportSchema,\n ActionReceiptSchema,\n EncryptedValueSchema,\n DecryptedValueSchema,\n encryptedPropertyCodec,\n} from \"@party-stack/ontology-backend\";\nimport {\n ActionRequestSchema,\n ObjectSubsetCodec,\n protocolValueCodec,\n} from \"@party-stack/ontology-backend/protocol\";\nimport { ReplicaStatusSchema, makeReplicaMonitor } from \"@party-stack/ontology-replica\";\nimport { QueryDocumentSchema } from \"@party-stack/ontology-spec/effect\";\nimport { getTargetValueType } from \"@party-stack/ontology-spec/utils\";\nimport { withObjectSources } from \"@party-stack/ontology-storage\";\nimport {\n attachmentByteSource,\n byteChunks,\n collectByteBlob,\n scopedByteSource,\n type ByteSource,\n} from \"@party-stack/ontology-storage/blobs\";\nimport { Effect, Exit, Option, Queue, Schema, Sink, Stream, Fiber, Scope, Layer } from \"effect\";\nimport { Rpc, RpcGroup, RpcClient } from \"effect/rpc\";\nimport {\n Attachment,\n Target,\n AttachmentTransferRpcs,\n attachmentTransferHandlers,\n splitAttachmentChunk,\n} from \"./attachmentTransfers.js\";\nimport { projectValidationReport, type ErrorProjectionOptions } from \"./errorProjection.js\";\nimport type { AttachmentTransferPolicy } from \"./attachmentTransfers.js\";\nimport type { ReplicaService } from \"@party-stack/ontology-replica\";\nimport type { AttachmentCreateOptions } from \"@party-stack/ontology-replica\";\nimport type { ObjectSubset } from \"@party-stack/ontology-spec/query\";\nimport type { attachment } from \"@party-stack/ontology-spec/values\";\nimport type { ByteInput, ReadableByteInput } from \"@party-stack/ontology-storage/blobs\";\nimport type { TraceStore, TraceRecord } from \"@party-stack/runtime/tracing\";\nimport type { Headers } from \"effect/http/Headers\";\nconst Validation = ValidationReportSchema;\nconst Trace = Schema.Struct({\n id: Schema.String,\n traceId: Schema.String,\n parentId: Schema.optional(Schema.String),\n name: Schema.String,\n startedAt: Schema.Number,\n durationMs: Schema.Number,\n outcome: Schema.Literals([\"running\", \"success\", \"failure\", \"interrupted\"]),\n error: Schema.optional(\n Schema.Struct({ kind: Schema.Literals([\"Error\", \"Defect\"]), message: Schema.String })\n ),\n events: Schema.optional(\n Schema.Array(\n Schema.Struct({\n name: Schema.String,\n at: Schema.Number,\n attributes: Schema.Record(\n Schema.String,\n Schema.Union([Schema.String, Schema.Number, Schema.Boolean])\n ),\n })\n )\n ),\n eventCount: Schema.optional(Schema.Number),\n attributes: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Number, Schema.Boolean])),\n});\nconst Parameters = Schema.Record(Schema.String, Schema.Unknown);\nconst Metadata = Schema.Struct({\n size: Schema.optional(Schema.Number),\n type: Schema.optional(Schema.String),\n name: Schema.optional(Schema.String),\n dimensions: Schema.optional(Schema.Struct({ width: Schema.Number, height: Schema.Number })),\n});\n\n/** Explicit helper operations alongside replica transfer. These do not bypass row replication. */\nconst HelperRpcs = RpcGroup.make(\n Rpc.make(\"Query\", {\n payload: protocolValueCodec(\n Schema.Struct({ document: QueryDocumentSchema, inputs: Schema.optional(Parameters) })\n ),\n success: protocolValueCodec(Parameters),\n error: BackendError,\n }),\n Rpc.make(\"LoadSubset\", {\n payload: ObjectSubsetCodec,\n success: protocolValueCodec(BackendSnapshotSchema),\n error: BackendError,\n }),\n Rpc.make(\"WatchChanges\", { success: Schema.Literal(\"invalidate\"), error: BackendError, stream: true }),\n Rpc.make(\"WatchSubset\", {\n payload: ObjectSubsetCodec,\n success: Schema.Literals([\"reset\", \"invalidate\"]),\n error: BackendError,\n stream: true,\n }),\n Rpc.make(\"PullChanges\", {\n payload: Schema.Struct({\n cursor: Schema.optional(Schema.String),\n limit: Schema.optional(Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 10_000 }))),\n }),\n success: protocolValueCodec(BackendChangePageSchema),\n error: BackendError,\n }),\n Rpc.make(\"ApplyAction\", {\n payload: protocolValueCodec(ActionRequestSchema),\n success: ActionReceiptSchema,\n error: BackendError,\n }),\n Rpc.make(\"Decrypt\", {\n payload: Schema.Struct({ value: EncryptedValueSchema, cache: Schema.optional(Schema.Boolean) }),\n success: protocolValueCodec(DecryptedValueSchema),\n error: BackendError,\n }),\n Rpc.make(\"QueryFunction\", {\n payload: protocolValueCodec(Schema.Struct({ name: Schema.NonEmptyString, parameters: Parameters })),\n success: protocolValueCodec(Schema.Unknown),\n error: BackendError,\n }),\n Rpc.make(\"ResolveActionParameters\", {\n payload: protocolValueCodec(Schema.Struct({ name: Schema.NonEmptyString, parameters: Parameters })),\n success: protocolValueCodec(Parameters),\n error: BackendError,\n }),\n Rpc.make(\"ValidateAction\", {\n payload: protocolValueCodec(\n Schema.Struct({\n name: Schema.NonEmptyString,\n parameters: Parameters,\n knownParameters: Schema.optional(Schema.Array(Schema.String)),\n })\n ),\n success: protocolValueCodec(Validation),\n error: BackendError,\n }),\n Rpc.make(\"AttachmentMetadata\", {\n payload: Schema.Struct({\n attachment: Attachment,\n select: Schema.optional(Schema.Array(Schema.Literals([\"size\", \"type\", \"name\", \"dimensions\"]))),\n }),\n success: Metadata,\n error: BackendError,\n }),\n Rpc.make(\"ControlOutbox\", {\n payload: protocolValueCodec(\n Schema.Struct({\n operation: Schema.Literals([\"remove\", \"retry\", \"edit\"]),\n id: Schema.NonEmptyString,\n invocation: Schema.optional(ActionRequestSchema),\n allowUnknownOutcome: Schema.optional(Schema.Boolean),\n })\n ),\n error: BackendError,\n }),\n Rpc.make(\"ReplicaStatus\", {\n success: protocolValueCodec(ReplicaStatusSchema),\n error: BackendError,\n stream: true,\n }),\n Rpc.make(\"Traces\", { success: Schema.Array(Trace), error: BackendError, stream: true }),\n Rpc.make(\"DeleteLocalData\", { error: BackendError }),\n Rpc.make(\"ReleaseOwner\", { error: BackendError })\n);\nexport const OntologyOperationRpcs = HelperRpcs.merge(AttachmentTransferRpcs);\nexport type OntologyOperationRequest =\n | {\n readonly operation: \"Query\";\n readonly document: import(\"@party-stack/ontology-spec\").QueryDocument;\n readonly inputs?: Record<string, unknown>;\n }\n | { readonly operation: \"WatchChanges\" }\n | { readonly operation: \"PullChanges\"; readonly cursor?: string; readonly limit?: number }\n | {\n readonly operation: \"LoadSubset\" | \"WatchSubset\";\n readonly subset: ObjectSubset;\n }\n | {\n readonly operation: \"ApplyAction\";\n readonly invocation: import(\"@party-stack/ontology-backend\").ActionRequest;\n }\n | {\n readonly operation: \"Decrypt\";\n readonly value: import(\"@party-stack/ontology-spec/values\").Encrypted;\n readonly cache?: boolean;\n }\n | {\n readonly operation: \"QueryFunction\" | \"ValidateAction\" | \"ResolveActionParameters\";\n readonly name: string;\n readonly parameters: Record<string, unknown>;\n readonly knownParameters?: readonly string[];\n }\n | {\n readonly operation: \"CreateAttachment\";\n readonly id?: string;\n readonly target?: Schema.Schema.Type<typeof Target>;\n readonly type: string;\n readonly size?: number;\n }\n | {\n readonly operation: \"ReadAttachment\" | \"AttachmentMetadata\";\n readonly attachment: Schema.Schema.Type<typeof Attachment>;\n readonly select?: readonly string[];\n }\n | {\n readonly operation: \"ControlOutbox\";\n readonly id: string;\n readonly command: \"remove\" | \"retry\" | \"edit\";\n readonly invocation?: Schema.Schema.Type<typeof ActionRequestSchema>;\n }\n /** Reads and writes of the endpoint's system ontology (the `system` resource): its replica's\n * downloads and status. */\n | { readonly operation: \"System\" }\n | { readonly operation: \"ReplicaStatus\" | \"Traces\" | \"DeleteLocalData\" | \"ReleaseOwner\" };\n\nconst failure = (cause: unknown) => classifyBackendFailure(\"ontology.operations\", cause);\nconst decryptFailure = (cause: unknown) =>\n new BackendError({\n operation: \"decrypt\",\n kind: cause instanceof BackendError ? cause.kind : \"Unavailable\",\n retryable: cause instanceof BackendError ? cause.retryable : true,\n message: \"Decryption failed.\",\n });\nconst missing = (name: string) =>\n new BackendError({\n operation: name,\n kind: \"NotImplemented\",\n message: `Ontology operation ${name} is unavailable.`,\n retryable: false,\n });\n\nexport type OntologyOperationOptions<R = never> = ErrorProjectionOptions & {\n readonly attachmentTransfers?: AttachmentTransferPolicy<R>;\n readonly replica?: ReplicaService;\n readonly traces?: TraceStore;\n readonly backend?: import(\"@party-stack/ontology-backend\").OntologyBackendService;\n readonly ready?: Effect.Effect<void, BackendError, R>;\n readonly deleteLocalData?: Effect.Effect<void, BackendError, R>;\n readonly releaseOwner?: Effect.Effect<void, BackendError, R>;\n readonly authorize: (\n request: OntologyOperationRequest,\n headers: Headers\n ) => Effect.Effect<void, BackendError, R>;\n};\n\n/** Shared storage/application operation; transports supply framing and authorization. */\nexport const ontologyAttachmentHandlers = <R>(\n options: OntologyOperationOptions<R>,\n authorize: OntologyOperationOptions<R>[\"authorize\"] = options.authorize\n) => ({\n create: (\n request: import(\"./attachmentTransfers.js\").AttachmentUpload,\n blob: import(\"@party-stack/ontology-storage/blobs\").ByteInput\n ) =>\n Effect.gen(function* () {\n yield* options.ready ?? Effect.void;\n if (options.backend) {\n if (!options.backend.attachments?.stage) return yield* missing(\"CreateAttachment\");\n const ir = options.ir ?? options.replica?.ir;\n const type =\n request.target && ir\n ? yield* Effect.try({\n try: () => getTargetValueType(ir, request.target!),\n catch: () =>\n new BackendError({\n operation: \"attachment.stage\",\n kind: \"InvalidRequest\",\n message: \"Invalid attachment target.\",\n retryable: false,\n }),\n })\n : undefined;\n if (type && type.kind !== \"attachment\")\n return yield* new BackendError({\n operation: \"attachment.stage\",\n kind: \"InvalidRequest\",\n message: \"Target is not an attachment.\",\n retryable: false,\n });\n return yield* options.backend.attachments.stage(\n { id: request.id ?? crypto.randomUUID(), type: request.type },\n blob,\n { target: type?.kind === \"attachment\" ? type.value : undefined }\n );\n }\n if (!options.replica) return yield* missing(\"CreateAttachment\");\n const created = yield* options.replica.attachments.create(blob, request);\n if (created.isMaterialized) yield* created.isMaterialized;\n return created.attachment;\n }),\n read: (attachment: import(\"./attachmentTransfers.js\").AttachmentValue, headers: Headers) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ReadAttachment\", attachment }, headers);\n yield* options.ready ?? Effect.void;\n if (options.backend) {\n if (!options.backend.attachments?.read) return yield* missing(\"ReadAttachment\");\n return yield* options.backend.attachments.read(attachment);\n }\n if (!options.replica) return yield* missing(\"ReadAttachment\");\n return yield* options.replica.attachments.source(attachment);\n }),\n});\n\nexport const ontologyOperationHandlers = <R>(\n options: OntologyOperationOptions<R>,\n authorize: OntologyOperationOptions<R>[\"authorize\"] = options.authorize\n) => {\n return HelperRpcs.toLayer({\n Query: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"Query\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"Query\");\n return yield* options.backend.query(request.document, { inputs: request.inputs });\n }),\n LoadSubset: (subset, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"LoadSubset\", subset }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"LoadSubset\");\n const snapshot = yield* options.backend.loadSubset(subset);\n const ir = options.ir ?? options.replica?.ir;\n const objectType = ir?.objectTypes.find(\n (type) => type.name === subset.from.source.objectType\n );\n return !ir || !objectType\n ? snapshot\n : {\n ...snapshot,\n rows: snapshot.rows.map((row) => ({\n ...row,\n value: withObjectSources({ ir, objectType, object: row.value, key: row.key }),\n })),\n };\n }),\n WatchChanges: (_, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* authorize({ operation: \"WatchChanges\" }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend?.changes?.watch) return yield* missing(\"WatchChanges\");\n return Stream.concat(\n Stream.make(\"invalidate\" as const),\n (yield* options.backend.changes.watch).pipe(Stream.map(() => \"invalidate\" as const))\n );\n })\n ),\n WatchSubset: (subset, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* authorize({ operation: \"WatchSubset\", subset }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"WatchSubset\");\n const watched = options.backend.watchSubset?.(subset);\n const interval = options.backend.refresh?.(subset)?.pollIntervalMs ?? false;\n if (!watched && interval !== false && (!Number.isFinite(interval) || interval < 100))\n return yield* new BackendError({\n operation: \"WatchSubset\",\n kind: \"InvalidConfiguration\",\n retryable: false,\n message: \"Invalid subset poll interval.\",\n });\n if (!watched && interval === false) return yield* missing(\"WatchSubset\");\n const changes = watched ? yield* watched : Stream.tick(interval as number);\n // Opening a watch is a repair boundary, not an observed change.\n // A replica with another maintained covering watch can reuse its proof.\n return Stream.concat(\n Stream.make(\"reset\" as const),\n changes.pipe(\n Stream.map((event) =>\n event === \"reset\" ? (\"reset\" as const) : (\"invalidate\" as const)\n )\n )\n );\n })\n ),\n PullChanges: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"PullChanges\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend?.changes) return yield* missing(\"PullChanges\");\n return yield* options.backend.changes.pull(request);\n }),\n ApplyAction: (invocation, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ApplyAction\", invocation }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"ApplyAction\");\n return yield* options.backend.applyAction(invocation);\n }),\n Decrypt: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"Decrypt\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n if (options.backend) {\n if (!options.backend.encrypted) return yield* missing(\"Decrypt\");\n const result = yield* options.backend.encrypted.decrypt(request.value);\n if (result.ciphertext !== undefined && result.ciphertext !== request.value.ciphertext)\n return yield* new BackendError({\n operation: \"decrypt\",\n kind: \"Conflict\",\n message: \"The encrypted value changed.\",\n retryable: false,\n });\n return result;\n }\n if (!options.replica) return yield* missing(\"Decrypt\");\n const result = yield* options.replica.decrypt(request.value, { cache: request.cache });\n return {\n ...result,\n value: encryptedPropertyCodec(options.replica.ir, request.value).encode(result.value),\n };\n }).pipe(Effect.mapError(decryptFailure)),\n ResolveActionParameters: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ResolveActionParameters\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n // Describe advertises resolution for either implementation. A managed\n // replica resolves from its IR when the provider has no resolver.\n if (options.backend?.resolveActionParameters)\n return yield* options.backend.resolveActionParameters(request.name, request.parameters);\n if (!options.replica) return yield* missing(\"ResolveActionParameters\");\n return yield* options.replica.actions.resolveParameters(request.name, request.parameters);\n }),\n QueryFunction: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"QueryFunction\", ...request }, context.headers);\n if (options.backend) {\n yield* options.ready ?? Effect.void;\n if (!options.backend.queryFunction) return yield* missing(request.name);\n return yield* options.backend.queryFunction(request.name, request.parameters);\n }\n return yield* missing(request.name);\n }),\n ValidateAction: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ValidateAction\", ...request }, context.headers);\n if (options.backend?.validateAction)\n return yield* options.backend\n .validateAction(request.name, request.parameters, {\n knownParameters: request.knownParameters,\n })\n .pipe(Effect.map((report) => projectValidationReport(report, options, request.name)));\n const report = options.replica\n ? yield* options.replica.actions.validate(request.name, request.parameters, {\n knownParameters: request.knownParameters,\n })\n : { certain: false as const };\n return projectValidationReport(report, options, request.name);\n }),\n AttachmentMetadata: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"AttachmentMetadata\", ...request }, context.headers);\n if (options.backend) {\n yield* options.ready ?? Effect.void;\n if (!options.backend.attachments?.metadata) return yield* missing(\"AttachmentMetadata\");\n return yield* options.backend.attachments.metadata(request.attachment, {\n select: request.select,\n });\n }\n if (!options.replica) return yield* missing(\"AttachmentMetadata\");\n return yield* options.replica.attachments\n .metadata(request.attachment, { select: request.select })\n .pipe(\n Effect.map(({ name, dimensions, ...rest }) => ({\n ...rest,\n name: name ?? undefined,\n dimensions: dimensions ?? undefined,\n }))\n );\n }),\n ControlOutbox: (request, context) =>\n Effect.gen(function* () {\n yield* authorize(\n {\n operation: \"ControlOutbox\",\n id: request.id,\n command: request.operation,\n invocation: request.invocation,\n },\n context.headers\n );\n const outbox = options.replica?.outbox;\n if (!outbox) return yield* missing(\"ControlOutbox\");\n if (request.operation === \"edit\") {\n if (!request.invocation || request.invocation.id !== request.id)\n return yield* missing(\"edit invocation\");\n yield* outbox.edit(request.id, request.invocation);\n } else if (request.operation === \"remove\")\n yield* outbox.remove(request.id, { allowUnknownOutcome: request.allowUnknownOutcome });\n else yield* outbox.retry(request.id, { allowUnknownOutcome: request.allowUnknownOutcome });\n }),\n ReplicaStatus: (_, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* Effect.annotateCurrentSpan(\"activity\", \"subscription\");\n yield* authorize({ operation: \"ReplicaStatus\" }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.replica) return yield* missing(\"ReplicaStatus\");\n return options.replica.status.changes;\n })\n ),\n Traces: (_, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* Effect.annotateCurrentSpan(\"activity\", \"subscription\");\n yield* authorize({ operation: \"Traces\" }, context.headers);\n yield* options.ready ?? Effect.void;\n const traces = options.traces;\n if (!traces) return Stream.succeed([]);\n return Stream.callback<readonly Schema.Schema.Type<typeof Trace>[]>(\n (queue) =>\n Effect.acquireRelease(\n Effect.sync(() => {\n const send = (record?: TraceRecord) =>\n Queue.offerUnsafe(queue, record ? [record] : traces.getSnapshot());\n const unsubscribe = traces.subscribe(send);\n send();\n return unsubscribe;\n }),\n (unsubscribe) => Effect.sync(unsubscribe)\n ),\n { bufferSize: 500, strategy: \"sliding\" }\n );\n })\n ),\n DeleteLocalData: (_, context) =>\n authorize({ operation: \"DeleteLocalData\" }, context.headers).pipe(\n Effect.andThen(options.deleteLocalData ?? Effect.fail(missing(\"DeleteLocalData\")))\n ),\n ReleaseOwner: (_, context) =>\n authorize({ operation: \"ReleaseOwner\" }, context.headers).pipe(\n Effect.andThen(options.releaseOwner ?? Effect.fail(missing(\"ReleaseOwner\")))\n ),\n }).pipe(\n Layer.merge(\n attachmentTransferHandlers({\n ...options.attachmentTransfers,\n authorizeUpload: (request, headers) =>\n authorize(\n {\n operation: \"CreateAttachment\",\n id: request.id,\n target: request.target,\n type: request.type,\n size: request.size,\n },\n headers\n ),\n ...ontologyAttachmentHandlers(options, authorize),\n })\n )\n );\n};\n\ntype OperationsRpcClient = Effect.Success<\n ReturnType<typeof RpcClient.make<RpcGroup.Rpcs<typeof OntologyOperationRpcs>>>\n>;\nexport interface ProtocolAttachments {\n readonly create: (\n input: ByteInput | ReadableByteInput,\n options?: AttachmentCreateOptions\n ) => Effect.Effect<{ readonly attachment: attachment }, BackendError>;\n readonly source: (attachment: attachment) => Effect.Effect<ByteSource, BackendError, Scope.Scope>;\n readonly blob: (attachment: attachment) => Effect.Effect<Blob, BackendError>;\n readonly metadata: (\n attachment: attachment,\n options?: { readonly select?: readonly (\"size\" | \"type\" | \"name\" | \"dimensions\")[] }\n ) => Effect.Effect<Schema.Schema.Type<typeof Metadata>, BackendError>;\n}\nexport interface OntologyOperationsClient {\n readonly query: (\n document: import(\"@party-stack/ontology-spec\").QueryDocument,\n inputs?: Record<string, unknown>\n ) => Effect.Effect<Record<string, unknown>, BackendError>;\n /** Portable plaintext; the view decodes it against its ontology definition. Cache policy runs at the owner. */\n readonly decrypt: (\n value: import(\"@party-stack/ontology-spec/values\").Encrypted,\n options?: { cache?: boolean }\n ) => Effect.Effect<unknown, BackendError>;\n readonly queryFunction: (\n name: string,\n parameters: Record<string, unknown>\n ) => Effect.Effect<unknown, BackendError>;\n readonly resolveActionParameters: (\n name: string,\n parameters: Record<string, unknown>\n ) => Effect.Effect<Record<string, unknown>, BackendError>;\n readonly validate: (\n name: string,\n parameters: Record<string, unknown>,\n knownParameters?: readonly string[]\n ) => Effect.Effect<import(\"@party-stack/ontology-backend\").ValidationReport, BackendError>;\n readonly attachments: ProtocolAttachments;\n readonly outbox: Pick<\n import(\"@party-stack/ontology-replica\").ReplicaService[\"outbox\"],\n \"remove\" | \"retry\" | \"edit\"\n >;\n readonly traces: TraceStore;\n readonly replicaMonitor: import(\"@party-stack/ontology-replica\").ReplicaMonitor;\n readonly deleteLocalData: Effect.Effect<void, BackendError>;\n readonly releaseOwner: Effect.Effect<void, BackendError>;\n}\n\nexport const makeOntologyOperationsClient = Effect.fnUntraced(function* (\n client: OperationsRpcClient\n): Effect.fn.Return<OntologyOperationsClient, never, Scope.Scope> {\n const replicaMonitor = yield* makeReplicaMonitor(client.ReplicaStatus().pipe(Stream.mapError(failure)));\n const scope = yield* Effect.scope;\n const context = yield* Effect.context<never>();\n const listeners = new Set<() => void>();\n let spans: readonly TraceRecord[] = [];\n let watcher: Fiber.Fiber<void> | undefined;\n const notify = () => {\n for (const listener of listeners) {\n try {\n listener();\n } catch {\n /* Observers do not own the transport. */\n }\n }\n };\n const watch = Stream.runForEach(client.Traces(), (snapshot) =>\n Effect.sync(() => {\n for (const record of snapshot) {\n const index = spans.findIndex(\n (previous) => previous.id === record.id && previous.traceId === record.traceId\n );\n spans =\n index < 0\n ? [...spans.slice(-499), record]\n : spans.map((previous, at) => (at === index ? record : previous));\n }\n notify();\n })\n ).pipe(Effect.catch(() => Effect.void));\n const traces = {\n getSnapshot: () => spans,\n subscribe: (listener: () => void) => {\n listeners.add(listener);\n if (!watcher) watcher = Effect.runSyncWith(context)(Effect.forkIn(watch, scope));\n return () => {\n listeners.delete(listener);\n if (!listeners.size && watcher) {\n Effect.runFork(Fiber.interrupt(watcher));\n watcher = undefined;\n }\n };\n },\n clear: () => {\n spans = [];\n notify();\n },\n };\n yield* Effect.addFinalizer(() => (watcher ? Fiber.interrupt(watcher).pipe(Effect.asVoid) : Effect.void));\n const attachments: ProtocolAttachments = {\n create: (input, opts) =>\n Effect.gen(function* () {\n const blob = attachmentByteSource(input);\n const attachment = yield* Effect.gen(function* () {\n let result: Schema.Schema.Type<typeof Attachment> | undefined;\n yield* Stream.runForEach(\n client.CreateAttachment({\n size: blob.size,\n type: blob.type,\n name: blob.name,\n ...opts,\n }),\n (event) =>\n Effect.gen(function* () {\n if (event.kind === \"complete\") {\n result = event.attachment;\n return;\n }\n let sequence = 0;\n yield* Stream.runForEach(\n byteChunks(blob).pipe(Stream.mapError(failure)),\n (chunk) =>\n Effect.forEach(\n splitAttachmentChunk(chunk),\n (bytes) =>\n client.WriteAttachmentChunk({\n uploadId: event.uploadId,\n sequence: sequence++,\n bytes,\n end: false,\n }),\n { discard: true }\n )\n );\n yield* client.WriteAttachmentChunk({\n uploadId: event.uploadId,\n sequence,\n bytes: new Uint8Array(0),\n end: true,\n });\n })\n );\n if (!result) return yield* missing(\"completed attachment transfer\");\n return result;\n });\n return { attachment };\n }).pipe(Effect.mapError(failure)),\n source: (attachment) =>\n scopedByteSource(\n Effect.gen(function* () {\n const readScope = yield* Scope.fork(yield* Effect.scope);\n return yield* Effect.gen(function* () {\n // Read the stream's own header. A separate metadata request can\n // otherwise download the whole body to derive unknown size/name.\n const [header, tail] = yield* Scope.provide(\n Stream.peel(\n client.ReadAttachment(attachment),\n Sink.head<Stream.Success<ReturnType<OperationsRpcClient[\"ReadAttachment\"]>>>()\n ),\n readScope\n );\n if (Option.isNone(header) || header.value.kind !== \"metadata\")\n return yield* failure(new Error(\"Missing attachment metadata.\"));\n const { kind: _kind, ...metadata } = header.value;\n let consumed = false;\n return {\n ...metadata,\n stream: Stream.suspend(() => {\n if (consumed)\n return Stream.unwrap(\n attachments\n .source(attachment)\n .pipe(Effect.map((source) => source.stream))\n );\n consumed = true;\n let received = 0;\n return Stream.concat(\n tail.pipe(\n Stream.mapEffect((event) =>\n Effect.gen(function* () {\n if (event.kind !== \"bytes\")\n return yield* failure(\n new Error(\"Duplicate attachment metadata.\")\n );\n received += event.bytes.length;\n if (metadata.size !== undefined && received > metadata.size)\n return yield* failure(\n new Error(\"Attachment exceeds its declared size.\")\n );\n return event.bytes;\n })\n )\n ),\n Stream.fromEffect(\n Effect.gen(function* () {\n if (metadata.size !== undefined && received !== metadata.size)\n return yield* failure(\n new Error(\"Incomplete attachment download.\")\n );\n })\n ).pipe(Stream.drain)\n ).pipe(Stream.ensuring(Scope.close(readScope, Exit.void)));\n }),\n };\n }).pipe(Effect.onError(() => Scope.close(readScope, Exit.void)));\n }),\n scope\n ).pipe(Effect.mapError(failure)),\n blob: (attachment) =>\n Effect.scoped(\n attachments.source(attachment).pipe(Effect.flatMap(collectByteBlob), Effect.mapError(failure))\n ),\n metadata: (attachment, opts) =>\n client.AttachmentMetadata({ attachment, select: opts?.select }).pipe(Effect.mapError(failure)),\n };\n return {\n query: (document, inputs) => client.Query({ document, inputs }).pipe(Effect.mapError(failure)),\n decrypt: (value, settings) =>\n client.Decrypt({ value, cache: settings?.cache }).pipe(\n Effect.map((result) => result.value),\n Effect.mapError(decryptFailure)\n ),\n deleteLocalData: client.DeleteLocalData().pipe(Effect.mapError(failure)),\n releaseOwner: client.ReleaseOwner(undefined, { discard: true }).pipe(Effect.mapError(failure)),\n queryFunction: (name, parameters) =>\n client.QueryFunction({ name, parameters }).pipe(Effect.mapError(failure)),\n resolveActionParameters: (name, parameters) =>\n client.ResolveActionParameters({ name, parameters }).pipe(Effect.mapError(failure)),\n validate: (name, parameters, knownParameters) =>\n client.ValidateAction({ name, parameters, knownParameters }).pipe(Effect.mapError(failure)),\n attachments,\n outbox: {\n remove: (id, settings) =>\n client\n .ControlOutbox({\n operation: \"remove\",\n id,\n allowUnknownOutcome: settings?.allowUnknownOutcome,\n })\n .pipe(Effect.mapError(failure)),\n retry: (id, settings) =>\n client\n .ControlOutbox({\n operation: \"retry\",\n id,\n allowUnknownOutcome: settings?.allowUnknownOutcome,\n })\n .pipe(Effect.mapError(failure)),\n edit: (id, invocation) =>\n client.ControlOutbox({ operation: \"edit\", id, invocation }).pipe(Effect.mapError(failure)),\n },\n traces,\n replicaMonitor,\n };\n});\n"],"mappings":";;;;;;;;;;;;AA6CA,MAAM,aAAa;AACnB,MAAM,QAAQ,OAAO,OAAO;CACxB,IAAI,OAAO;CACX,SAAS,OAAO;CAChB,UAAU,OAAO,SAAS,OAAO,MAAM;CACvC,MAAM,OAAO;CACb,WAAW,OAAO;CAClB,YAAY,OAAO;CACnB,SAAS,OAAO,SAAS;EAAC;EAAW;EAAW;EAAW;CAAa,CAAC;CACzE,OAAO,OAAO,SACV,OAAO,OAAO;EAAE,MAAM,OAAO,SAAS,CAAC,SAAS,QAAQ,CAAC;EAAG,SAAS,OAAO;CAAO,CAAC,CACxF;CACA,QAAQ,OAAO,SACX,OAAO,MACH,OAAO,OAAO;EACV,MAAM,OAAO;EACb,IAAI,OAAO;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BAA0B,MAAM,eAC5B,OAAO,wBAAwB;GAAE;GAAM;EAAW,CAAC,CAAC,CAAC,KAAK,OAAO,SAAS,OAAO,CAAC;EACtF,WAAW,MAAM,YAAY,oBACzB,OAAO,eAAe;GAAE;GAAM;GAAY;EAAgB,CAAC,CAAC,CAAC,KAAK,OAAO,SAAS,OAAO,CAAC;EAC9F;EACA,QAAQ;GACJ,SAAS,IAAI,aACT,OACK,cAAc;IACX,WAAW;IACX;IACA,qBAAqB,UAAU;GACnC,CAAC,CAAC,CACD,KAAK,OAAO,SAAS,OAAO,CAAC;GACtC,QAAQ,IAAI,aACR,OACK,cAAc;IACX,WAAW;IACX;IACA,qBAAqB,UAAU;GACnC,CAAC,CAAC,CACD,KAAK,OAAO,SAAS,OAAO,CAAC;GACtC,OAAO,IAAI,eACP,OAAO,cAAc;IAAE,WAAW;IAAQ;IAAI;GAAW,CAAC,CAAC,CAAC,KAAK,OAAO,SAAS,OAAO,CAAC;EACjG;EACA;EACA;CACJ;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"operations.js","names":[],"sources":["../src/operations.ts"],"sourcesContent":["import {\n BackendError,\n classifyBackendFailure,\n BackendSnapshotSchema,\n BackendChangePageSchema,\n ValidationReportSchema,\n ActionReceiptSchema,\n EncryptedValueSchema,\n DecryptedValueSchema,\n encryptedPropertyCodec,\n} from \"@party-stack/ontology-backend\";\nimport {\n ActionRequestSchema,\n ObjectSubsetCodec,\n protocolValueCodec,\n} from \"@party-stack/ontology-backend/protocol\";\nimport { ReplicaStatusSchema, makeReplicaMonitor } from \"@party-stack/ontology-replica\";\nimport { QueryDocumentSchema } from \"@party-stack/ontology-spec/effect\";\nimport { getTargetValueType } from \"@party-stack/ontology-spec/utils\";\nimport { withObjectSources } from \"@party-stack/ontology-storage\";\nimport {\n attachmentByteSource,\n byteChunks,\n collectByteBlob,\n scopedByteSource,\n type ByteSource,\n} from \"@party-stack/ontology-storage/blobs\";\nimport { Effect, Exit, Option, Queue, Schema, Sink, Stream, Fiber, Scope, Layer } from \"effect\";\nimport { Rpc, RpcGroup, RpcClient } from \"effect/rpc\";\nimport {\n Attachment,\n Target,\n AttachmentTransferRpcs,\n attachmentTransferHandlers,\n splitAttachmentChunk,\n} from \"./attachmentTransfers.js\";\nimport { projectValidationReport, type ErrorProjectionOptions } from \"./errorProjection.js\";\nimport type { AttachmentTransferPolicy } from \"./attachmentTransfers.js\";\nimport type { ReplicaService } from \"@party-stack/ontology-replica\";\nimport type { AttachmentCreateOptions } from \"@party-stack/ontology-replica\";\nimport type { ObjectSubset } from \"@party-stack/ontology-spec/query\";\nimport type { attachment } from \"@party-stack/ontology-spec/values\";\nimport type { ByteInput, ReadableByteInput } from \"@party-stack/ontology-storage/blobs\";\nimport type { TraceStore, TraceRecord } from \"@party-stack/runtime/tracing\";\nimport type { Headers } from \"effect/http/Headers\";\nconst Validation = ValidationReportSchema;\nconst Trace = Schema.Struct({\n id: Schema.String,\n traceId: Schema.String,\n parentId: Schema.optional(Schema.String),\n name: Schema.String,\n startedAt: Schema.Number,\n durationMs: Schema.Number,\n outcome: Schema.Literals([\"running\", \"success\", \"failure\", \"interrupted\"]),\n error: Schema.optional(\n Schema.Struct({ kind: Schema.Literals([\"Error\", \"Defect\"]), message: Schema.String })\n ),\n events: Schema.optional(\n Schema.Array(\n Schema.Struct({\n name: Schema.String,\n at: Schema.Number,\n attributes: Schema.Record(\n Schema.String,\n Schema.Union([Schema.String, Schema.Number, Schema.Boolean])\n ),\n })\n )\n ),\n eventCount: Schema.optional(Schema.Number),\n attributes: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Number, Schema.Boolean])),\n});\nconst Parameters = Schema.Record(Schema.String, Schema.Unknown);\nconst Metadata = Schema.Struct({\n size: Schema.optional(Schema.Number),\n type: Schema.optional(Schema.String),\n name: Schema.optional(Schema.String),\n dimensions: Schema.optional(Schema.Struct({ width: Schema.Number, height: Schema.Number })),\n});\n\n/** Explicit helper operations alongside replica transfer. These do not bypass row replication. */\nconst HelperRpcs = RpcGroup.make(\n Rpc.make(\"Query\", {\n payload: protocolValueCodec(\n Schema.Struct({ document: QueryDocumentSchema, inputs: Schema.optional(Parameters) })\n ),\n success: protocolValueCodec(Parameters),\n error: BackendError,\n }),\n Rpc.make(\"LoadSubset\", {\n payload: ObjectSubsetCodec,\n success: protocolValueCodec(BackendSnapshotSchema),\n error: BackendError,\n }),\n Rpc.make(\"WatchChanges\", { success: Schema.Literal(\"invalidate\"), error: BackendError, stream: true }),\n Rpc.make(\"WatchSubset\", {\n payload: ObjectSubsetCodec,\n success: Schema.Literals([\"reset\", \"invalidate\"]),\n error: BackendError,\n stream: true,\n }),\n Rpc.make(\"PullChanges\", {\n payload: Schema.Struct({\n cursor: Schema.optional(Schema.String),\n limit: Schema.optional(Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 10_000 }))),\n }),\n success: protocolValueCodec(BackendChangePageSchema),\n error: BackendError,\n }),\n Rpc.make(\"ApplyAction\", {\n payload: protocolValueCodec(ActionRequestSchema),\n success: ActionReceiptSchema,\n error: BackendError,\n }),\n Rpc.make(\"Decrypt\", {\n payload: Schema.Struct({ value: EncryptedValueSchema, cache: Schema.optional(Schema.Boolean) }),\n success: protocolValueCodec(DecryptedValueSchema),\n error: BackendError,\n }),\n Rpc.make(\"QueryFunction\", {\n payload: protocolValueCodec(Schema.Struct({ name: Schema.NonEmptyString, parameters: Parameters })),\n success: protocolValueCodec(Schema.Unknown),\n error: BackendError,\n }),\n Rpc.make(\"ResolveActionParameters\", {\n payload: protocolValueCodec(Schema.Struct({ name: Schema.NonEmptyString, parameters: Parameters })),\n success: protocolValueCodec(Parameters),\n error: BackendError,\n }),\n Rpc.make(\"ValidateAction\", {\n payload: protocolValueCodec(\n Schema.Struct({\n name: Schema.NonEmptyString,\n parameters: Parameters,\n knownParameters: Schema.optional(Schema.Array(Schema.String)),\n })\n ),\n success: protocolValueCodec(Validation),\n error: BackendError,\n }),\n Rpc.make(\"AttachmentMetadata\", {\n payload: Schema.Struct({\n attachment: Attachment,\n select: Schema.optional(Schema.Array(Schema.Literals([\"size\", \"type\", \"name\", \"dimensions\"]))),\n }),\n success: Metadata,\n error: BackendError,\n }),\n Rpc.make(\"ControlOutbox\", {\n payload: protocolValueCodec(\n Schema.Struct({\n operation: Schema.Literals([\"remove\", \"retry\", \"edit\"]),\n id: Schema.NonEmptyString,\n invocation: Schema.optional(ActionRequestSchema),\n })\n ),\n error: BackendError,\n }),\n Rpc.make(\"ReplicaStatus\", {\n success: protocolValueCodec(ReplicaStatusSchema),\n error: BackendError,\n stream: true,\n }),\n Rpc.make(\"Traces\", { success: Schema.Array(Trace), error: BackendError, stream: true }),\n Rpc.make(\"DeleteLocalData\", { error: BackendError }),\n Rpc.make(\"ReleaseOwner\", { error: BackendError })\n);\nexport const OntologyOperationRpcs = HelperRpcs.merge(AttachmentTransferRpcs);\nexport type OntologyOperationRequest =\n | {\n readonly operation: \"Query\";\n readonly document: import(\"@party-stack/ontology-spec\").QueryDocument;\n readonly inputs?: Record<string, unknown>;\n }\n | { readonly operation: \"WatchChanges\" }\n | { readonly operation: \"PullChanges\"; readonly cursor?: string; readonly limit?: number }\n | {\n readonly operation: \"LoadSubset\" | \"WatchSubset\";\n readonly subset: ObjectSubset;\n }\n | {\n readonly operation: \"ApplyAction\";\n readonly invocation: import(\"@party-stack/ontology-backend\").ActionRequest;\n }\n | {\n readonly operation: \"Decrypt\";\n readonly value: import(\"@party-stack/ontology-spec/values\").Encrypted;\n readonly cache?: boolean;\n }\n | {\n readonly operation: \"QueryFunction\" | \"ValidateAction\" | \"ResolveActionParameters\";\n readonly name: string;\n readonly parameters: Record<string, unknown>;\n readonly knownParameters?: readonly string[];\n }\n | {\n readonly operation: \"CreateAttachment\";\n readonly id?: string;\n readonly target?: Schema.Schema.Type<typeof Target>;\n readonly type: string;\n readonly size?: number;\n }\n | {\n readonly operation: \"ReadAttachment\" | \"AttachmentMetadata\";\n readonly attachment: Schema.Schema.Type<typeof Attachment>;\n readonly select?: readonly string[];\n }\n | {\n readonly operation: \"ControlOutbox\";\n readonly id: string;\n readonly command: \"remove\" | \"retry\" | \"edit\";\n readonly invocation?: Schema.Schema.Type<typeof ActionRequestSchema>;\n }\n /** Reads and writes of the endpoint's system ontology (the `system` resource): its replica's\n * downloads and status. */\n | { readonly operation: \"System\" }\n | { readonly operation: \"ReplicaStatus\" | \"Traces\" | \"DeleteLocalData\" | \"ReleaseOwner\" };\n\nconst failure = (cause: unknown) => classifyBackendFailure(\"ontology.operations\", cause);\nconst decryptFailure = (cause: unknown) =>\n new BackendError({\n operation: \"decrypt\",\n kind: cause instanceof BackendError ? cause.kind : \"Unavailable\",\n retryable: cause instanceof BackendError ? cause.retryable : true,\n message: \"Decryption failed.\",\n });\nconst missing = (name: string) =>\n new BackendError({\n operation: name,\n kind: \"NotImplemented\",\n message: `Ontology operation ${name} is unavailable.`,\n retryable: false,\n });\n\nexport type OntologyOperationOptions<R = never> = ErrorProjectionOptions & {\n readonly attachmentTransfers?: AttachmentTransferPolicy<R>;\n readonly replica?: ReplicaService;\n readonly traces?: TraceStore;\n readonly backend?: import(\"@party-stack/ontology-backend\").OntologyBackendService;\n readonly ready?: Effect.Effect<void, BackendError, R>;\n readonly deleteLocalData?: Effect.Effect<void, BackendError, R>;\n readonly releaseOwner?: Effect.Effect<void, BackendError, R>;\n readonly authorize: (\n request: OntologyOperationRequest,\n headers: Headers\n ) => Effect.Effect<void, BackendError, R>;\n};\n\n/** Shared storage/application operation; transports supply framing and authorization. */\nexport const ontologyAttachmentHandlers = <R>(\n options: OntologyOperationOptions<R>,\n authorize: OntologyOperationOptions<R>[\"authorize\"] = options.authorize\n) => ({\n create: (\n request: import(\"./attachmentTransfers.js\").AttachmentUpload,\n blob: import(\"@party-stack/ontology-storage/blobs\").ByteInput\n ) =>\n Effect.gen(function* () {\n yield* options.ready ?? Effect.void;\n if (options.backend) {\n if (!options.backend.attachments?.stage) return yield* missing(\"CreateAttachment\");\n const ir = options.ir ?? options.replica?.ir;\n const type =\n request.target && ir\n ? yield* Effect.try({\n try: () => getTargetValueType(ir, request.target!),\n catch: () =>\n new BackendError({\n operation: \"attachment.stage\",\n kind: \"InvalidRequest\",\n message: \"Invalid attachment target.\",\n retryable: false,\n }),\n })\n : undefined;\n if (type && type.kind !== \"attachment\")\n return yield* new BackendError({\n operation: \"attachment.stage\",\n kind: \"InvalidRequest\",\n message: \"Target is not an attachment.\",\n retryable: false,\n });\n return yield* options.backend.attachments.stage(\n { id: request.id ?? crypto.randomUUID(), type: request.type },\n blob,\n { target: type?.kind === \"attachment\" ? type.value : undefined }\n );\n }\n if (!options.replica) return yield* missing(\"CreateAttachment\");\n const created = yield* options.replica.attachments.create(blob, request);\n if (created.isMaterialized) yield* created.isMaterialized;\n return created.attachment;\n }),\n read: (attachment: import(\"./attachmentTransfers.js\").AttachmentValue, headers: Headers) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ReadAttachment\", attachment }, headers);\n yield* options.ready ?? Effect.void;\n if (options.backend) {\n if (!options.backend.attachments?.read) return yield* missing(\"ReadAttachment\");\n return yield* options.backend.attachments.read(attachment);\n }\n if (!options.replica) return yield* missing(\"ReadAttachment\");\n return yield* options.replica.attachments.source(attachment);\n }),\n});\n\nexport const ontologyOperationHandlers = <R>(\n options: OntologyOperationOptions<R>,\n authorize: OntologyOperationOptions<R>[\"authorize\"] = options.authorize\n) => {\n return HelperRpcs.toLayer({\n Query: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"Query\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"Query\");\n return yield* options.backend.query(request.document, { inputs: request.inputs });\n }),\n LoadSubset: (subset, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"LoadSubset\", subset }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"LoadSubset\");\n const snapshot = yield* options.backend.loadSubset(subset);\n const ir = options.ir ?? options.replica?.ir;\n const objectType = ir?.objectTypes.find(\n (type) => type.name === subset.from.source.objectType\n );\n return !ir || !objectType\n ? snapshot\n : {\n ...snapshot,\n rows: snapshot.rows.map((row) => ({\n ...row,\n value: withObjectSources({ ir, objectType, object: row.value, key: row.key }),\n })),\n };\n }),\n WatchChanges: (_, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* authorize({ operation: \"WatchChanges\" }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend?.changes?.watch) return yield* missing(\"WatchChanges\");\n return Stream.concat(\n Stream.make(\"invalidate\" as const),\n (yield* options.backend.changes.watch).pipe(Stream.map(() => \"invalidate\" as const))\n );\n })\n ),\n WatchSubset: (subset, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* authorize({ operation: \"WatchSubset\", subset }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"WatchSubset\");\n const watched = options.backend.watchSubset?.(subset);\n const interval = options.backend.refresh?.(subset)?.pollIntervalMs ?? false;\n if (!watched && interval !== false && (!Number.isFinite(interval) || interval < 100))\n return yield* new BackendError({\n operation: \"WatchSubset\",\n kind: \"InvalidConfiguration\",\n retryable: false,\n message: \"Invalid subset poll interval.\",\n });\n if (!watched && interval === false) return yield* missing(\"WatchSubset\");\n const changes = watched ? yield* watched : Stream.tick(interval as number);\n // Opening a watch is a repair boundary, not an observed change.\n // A replica with another maintained covering watch can reuse its proof.\n return Stream.concat(\n Stream.make(\"reset\" as const),\n changes.pipe(\n Stream.map((event) =>\n event === \"reset\" ? (\"reset\" as const) : (\"invalidate\" as const)\n )\n )\n );\n })\n ),\n PullChanges: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"PullChanges\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend?.changes) return yield* missing(\"PullChanges\");\n return yield* options.backend.changes.pull(request);\n }),\n ApplyAction: (invocation, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ApplyAction\", invocation }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.backend) return yield* missing(\"ApplyAction\");\n return yield* options.backend.applyAction(invocation);\n }),\n Decrypt: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"Decrypt\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n if (options.backend) {\n if (!options.backend.encrypted) return yield* missing(\"Decrypt\");\n const result = yield* options.backend.encrypted.decrypt(request.value);\n if (result.ciphertext !== undefined && result.ciphertext !== request.value.ciphertext)\n return yield* new BackendError({\n operation: \"decrypt\",\n kind: \"Conflict\",\n message: \"The encrypted value changed.\",\n retryable: false,\n });\n return result;\n }\n if (!options.replica) return yield* missing(\"Decrypt\");\n const result = yield* options.replica.decrypt(request.value, { cache: request.cache });\n return {\n ...result,\n value: encryptedPropertyCodec(options.replica.ir, request.value).encode(result.value),\n };\n }).pipe(Effect.mapError(decryptFailure)),\n ResolveActionParameters: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ResolveActionParameters\", ...request }, context.headers);\n yield* options.ready ?? Effect.void;\n // Describe advertises resolution for either implementation. A managed\n // replica resolves from its IR when the provider has no resolver.\n if (options.backend?.resolveActionParameters)\n return yield* options.backend.resolveActionParameters(request.name, request.parameters);\n if (!options.replica) return yield* missing(\"ResolveActionParameters\");\n return yield* options.replica.actions.resolveParameters(request.name, request.parameters);\n }),\n QueryFunction: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"QueryFunction\", ...request }, context.headers);\n if (options.backend) {\n yield* options.ready ?? Effect.void;\n if (!options.backend.queryFunction) return yield* missing(request.name);\n return yield* options.backend.queryFunction(request.name, request.parameters);\n }\n return yield* missing(request.name);\n }),\n ValidateAction: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"ValidateAction\", ...request }, context.headers);\n if (options.backend?.validateAction)\n return yield* options.backend\n .validateAction(request.name, request.parameters, {\n knownParameters: request.knownParameters,\n })\n .pipe(Effect.map((report) => projectValidationReport(report, options, request.name)));\n const report = options.replica\n ? yield* options.replica.actions.validate(request.name, request.parameters, {\n knownParameters: request.knownParameters,\n })\n : { certain: false as const };\n return projectValidationReport(report, options, request.name);\n }),\n AttachmentMetadata: (request, context) =>\n Effect.gen(function* () {\n yield* authorize({ operation: \"AttachmentMetadata\", ...request }, context.headers);\n if (options.backend) {\n yield* options.ready ?? Effect.void;\n if (!options.backend.attachments?.metadata) return yield* missing(\"AttachmentMetadata\");\n return yield* options.backend.attachments.metadata(request.attachment, {\n select: request.select,\n });\n }\n if (!options.replica) return yield* missing(\"AttachmentMetadata\");\n return yield* options.replica.attachments\n .metadata(request.attachment, { select: request.select })\n .pipe(\n Effect.map(({ name, dimensions, ...rest }) => ({\n ...rest,\n name: name ?? undefined,\n dimensions: dimensions ?? undefined,\n }))\n );\n }),\n ControlOutbox: (request, context) =>\n Effect.gen(function* () {\n yield* authorize(\n {\n operation: \"ControlOutbox\",\n id: request.id,\n command: request.operation,\n invocation: request.invocation,\n },\n context.headers\n );\n const outbox = options.replica?.outbox;\n if (!outbox) return yield* missing(\"ControlOutbox\");\n if (request.operation === \"edit\") {\n if (!request.invocation || request.invocation.id !== request.id)\n return yield* missing(\"edit invocation\");\n yield* outbox.edit(request.id, request.invocation);\n } else if (request.operation === \"remove\") yield* outbox.remove(request.id);\n else yield* outbox.retry(request.id);\n }),\n ReplicaStatus: (_, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* Effect.annotateCurrentSpan(\"activity\", \"subscription\");\n yield* authorize({ operation: \"ReplicaStatus\" }, context.headers);\n yield* options.ready ?? Effect.void;\n if (!options.replica) return yield* missing(\"ReplicaStatus\");\n return options.replica.status.changes;\n })\n ),\n Traces: (_, context) =>\n Stream.unwrap(\n Effect.gen(function* () {\n yield* Effect.annotateCurrentSpan(\"activity\", \"subscription\");\n yield* authorize({ operation: \"Traces\" }, context.headers);\n yield* options.ready ?? Effect.void;\n const traces = options.traces;\n if (!traces) return Stream.succeed([]);\n return Stream.callback<readonly Schema.Schema.Type<typeof Trace>[]>(\n (queue) =>\n Effect.acquireRelease(\n Effect.sync(() => {\n const send = (record?: TraceRecord) =>\n Queue.offerUnsafe(queue, record ? [record] : traces.getSnapshot());\n const unsubscribe = traces.subscribe(send);\n send();\n return unsubscribe;\n }),\n (unsubscribe) => Effect.sync(unsubscribe)\n ),\n { bufferSize: 500, strategy: \"sliding\" }\n );\n })\n ),\n DeleteLocalData: (_, context) =>\n authorize({ operation: \"DeleteLocalData\" }, context.headers).pipe(\n Effect.andThen(options.deleteLocalData ?? Effect.fail(missing(\"DeleteLocalData\")))\n ),\n ReleaseOwner: (_, context) =>\n authorize({ operation: \"ReleaseOwner\" }, context.headers).pipe(\n Effect.andThen(options.releaseOwner ?? Effect.fail(missing(\"ReleaseOwner\")))\n ),\n }).pipe(\n Layer.merge(\n attachmentTransferHandlers({\n ...options.attachmentTransfers,\n authorizeUpload: (request, headers) =>\n authorize(\n {\n operation: \"CreateAttachment\",\n id: request.id,\n target: request.target,\n type: request.type,\n size: request.size,\n },\n headers\n ),\n ...ontologyAttachmentHandlers(options, authorize),\n })\n )\n );\n};\n\ntype OperationsRpcClient = Effect.Success<\n ReturnType<typeof RpcClient.make<RpcGroup.Rpcs<typeof OntologyOperationRpcs>>>\n>;\nexport interface ProtocolAttachments {\n readonly create: (\n input: ByteInput | ReadableByteInput,\n options?: AttachmentCreateOptions\n ) => Effect.Effect<{ readonly attachment: attachment }, BackendError>;\n readonly source: (attachment: attachment) => Effect.Effect<ByteSource, BackendError, Scope.Scope>;\n readonly blob: (attachment: attachment) => Effect.Effect<Blob, BackendError>;\n readonly metadata: (\n attachment: attachment,\n options?: { readonly select?: readonly (\"size\" | \"type\" | \"name\" | \"dimensions\")[] }\n ) => Effect.Effect<Schema.Schema.Type<typeof Metadata>, BackendError>;\n}\nexport interface OntologyOperationsClient {\n readonly query: (\n document: import(\"@party-stack/ontology-spec\").QueryDocument,\n inputs?: Record<string, unknown>\n ) => Effect.Effect<Record<string, unknown>, BackendError>;\n /** Portable plaintext; the view decodes it against its ontology definition. Cache policy runs at the owner. */\n readonly decrypt: (\n value: import(\"@party-stack/ontology-spec/values\").Encrypted,\n options?: { cache?: boolean }\n ) => Effect.Effect<unknown, BackendError>;\n readonly queryFunction: (\n name: string,\n parameters: Record<string, unknown>\n ) => Effect.Effect<unknown, BackendError>;\n readonly resolveActionParameters: (\n name: string,\n parameters: Record<string, unknown>\n ) => Effect.Effect<Record<string, unknown>, BackendError>;\n readonly validate: (\n name: string,\n parameters: Record<string, unknown>,\n knownParameters?: readonly string[]\n ) => Effect.Effect<import(\"@party-stack/ontology-backend\").ValidationReport, BackendError>;\n readonly attachments: ProtocolAttachments;\n readonly outbox: Pick<\n import(\"@party-stack/ontology-replica\").ReplicaService[\"outbox\"],\n \"remove\" | \"retry\" | \"edit\"\n >;\n readonly traces: TraceStore;\n readonly replicaMonitor: import(\"@party-stack/ontology-replica\").ReplicaMonitor;\n readonly deleteLocalData: Effect.Effect<void, BackendError>;\n readonly releaseOwner: Effect.Effect<void, BackendError>;\n}\n\nexport const makeOntologyOperationsClient = Effect.fnUntraced(function* (\n client: OperationsRpcClient\n): Effect.fn.Return<OntologyOperationsClient, never, Scope.Scope> {\n const replicaMonitor = yield* makeReplicaMonitor(client.ReplicaStatus().pipe(Stream.mapError(failure)));\n const scope = yield* Effect.scope;\n const context = yield* Effect.context<never>();\n const listeners = new Set<() => void>();\n let spans: readonly TraceRecord[] = [];\n let watcher: Fiber.Fiber<void> | undefined;\n const notify = () => {\n for (const listener of listeners) {\n try {\n listener();\n } catch {\n /* Observers do not own the transport. */\n }\n }\n };\n const watch = Stream.runForEach(client.Traces(), (snapshot) =>\n Effect.sync(() => {\n for (const record of snapshot) {\n const index = spans.findIndex(\n (previous) => previous.id === record.id && previous.traceId === record.traceId\n );\n spans =\n index < 0\n ? [...spans.slice(-499), record]\n : spans.map((previous, at) => (at === index ? record : previous));\n }\n notify();\n })\n ).pipe(Effect.catch(() => Effect.void));\n const traces = {\n getSnapshot: () => spans,\n subscribe: (listener: () => void) => {\n listeners.add(listener);\n if (!watcher) watcher = Effect.runSyncWith(context)(Effect.forkIn(watch, scope));\n return () => {\n listeners.delete(listener);\n if (!listeners.size && watcher) {\n Effect.runFork(Fiber.interrupt(watcher));\n watcher = undefined;\n }\n };\n },\n clear: () => {\n spans = [];\n notify();\n },\n };\n yield* Effect.addFinalizer(() => (watcher ? Fiber.interrupt(watcher).pipe(Effect.asVoid) : Effect.void));\n const attachments: ProtocolAttachments = {\n create: (input, opts) =>\n Effect.gen(function* () {\n const blob = attachmentByteSource(input);\n const attachment = yield* Effect.gen(function* () {\n let result: Schema.Schema.Type<typeof Attachment> | undefined;\n yield* Stream.runForEach(\n client.CreateAttachment({\n size: blob.size,\n type: blob.type,\n name: blob.name,\n ...opts,\n }),\n (event) =>\n Effect.gen(function* () {\n if (event.kind === \"complete\") {\n result = event.attachment;\n return;\n }\n let sequence = 0;\n yield* Stream.runForEach(\n byteChunks(blob).pipe(Stream.mapError(failure)),\n (chunk) =>\n Effect.forEach(\n splitAttachmentChunk(chunk),\n (bytes) =>\n client.WriteAttachmentChunk({\n uploadId: event.uploadId,\n sequence: sequence++,\n bytes,\n end: false,\n }),\n { discard: true }\n )\n );\n yield* client.WriteAttachmentChunk({\n uploadId: event.uploadId,\n sequence,\n bytes: new Uint8Array(0),\n end: true,\n });\n })\n );\n if (!result) return yield* missing(\"completed attachment transfer\");\n return result;\n });\n return { attachment };\n }).pipe(Effect.mapError(failure)),\n source: (attachment) =>\n scopedByteSource(\n Effect.gen(function* () {\n const readScope = yield* Scope.fork(yield* Effect.scope);\n return yield* Effect.gen(function* () {\n // Read the stream's own header. A separate metadata request can\n // otherwise download the whole body to derive unknown size/name.\n const [header, tail] = yield* Scope.provide(\n Stream.peel(\n client.ReadAttachment(attachment),\n Sink.head<Stream.Success<ReturnType<OperationsRpcClient[\"ReadAttachment\"]>>>()\n ),\n readScope\n );\n if (Option.isNone(header) || header.value.kind !== \"metadata\")\n return yield* failure(new Error(\"Missing attachment metadata.\"));\n const { kind: _kind, ...metadata } = header.value;\n let consumed = false;\n return {\n ...metadata,\n stream: Stream.suspend(() => {\n if (consumed)\n return Stream.unwrap(\n attachments\n .source(attachment)\n .pipe(Effect.map((source) => source.stream))\n );\n consumed = true;\n let received = 0;\n return Stream.concat(\n tail.pipe(\n Stream.mapEffect((event) =>\n Effect.gen(function* () {\n if (event.kind !== \"bytes\")\n return yield* failure(\n new Error(\"Duplicate attachment metadata.\")\n );\n received += event.bytes.length;\n if (metadata.size !== undefined && received > metadata.size)\n return yield* failure(\n new Error(\"Attachment exceeds its declared size.\")\n );\n return event.bytes;\n })\n )\n ),\n Stream.fromEffect(\n Effect.gen(function* () {\n if (metadata.size !== undefined && received !== metadata.size)\n return yield* failure(\n new Error(\"Incomplete attachment download.\")\n );\n })\n ).pipe(Stream.drain)\n ).pipe(Stream.ensuring(Scope.close(readScope, Exit.void)));\n }),\n };\n }).pipe(Effect.onError(() => Scope.close(readScope, Exit.void)));\n }),\n scope\n ).pipe(Effect.mapError(failure)),\n blob: (attachment) =>\n Effect.scoped(\n attachments.source(attachment).pipe(Effect.flatMap(collectByteBlob), Effect.mapError(failure))\n ),\n metadata: (attachment, opts) =>\n client.AttachmentMetadata({ attachment, select: opts?.select }).pipe(Effect.mapError(failure)),\n };\n return {\n query: (document, inputs) => client.Query({ document, inputs }).pipe(Effect.mapError(failure)),\n decrypt: (value, settings) =>\n client.Decrypt({ value, cache: settings?.cache }).pipe(\n Effect.map((result) => result.value),\n Effect.mapError(decryptFailure)\n ),\n deleteLocalData: client.DeleteLocalData().pipe(Effect.mapError(failure)),\n releaseOwner: client.ReleaseOwner(undefined, { discard: true }).pipe(Effect.mapError(failure)),\n queryFunction: (name, parameters) =>\n client.QueryFunction({ name, parameters }).pipe(Effect.mapError(failure)),\n resolveActionParameters: (name, parameters) =>\n client.ResolveActionParameters({ name, parameters }).pipe(Effect.mapError(failure)),\n validate: (name, parameters, knownParameters) =>\n client.ValidateAction({ name, parameters, knownParameters }).pipe(Effect.mapError(failure)),\n attachments,\n outbox: {\n remove: (id) => client.ControlOutbox({ operation: \"remove\", id }).pipe(Effect.mapError(failure)),\n retry: (id) => client.ControlOutbox({ operation: \"retry\", id }).pipe(Effect.mapError(failure)),\n edit: (id, invocation) =>\n client.ControlOutbox({ operation: \"edit\", id, invocation }).pipe(Effect.mapError(failure)),\n },\n traces,\n replicaMonitor,\n };\n});\n"],"mappings":";;;;;;;;;;;;AA6CA,MAAM,aAAa;AACnB,MAAM,QAAQ,OAAO,OAAO;CACxB,IAAI,OAAO;CACX,SAAS,OAAO;CAChB,UAAU,OAAO,SAAS,OAAO,MAAM;CACvC,MAAM,OAAO;CACb,WAAW,OAAO;CAClB,YAAY,OAAO;CACnB,SAAS,OAAO,SAAS;EAAC;EAAW;EAAW;EAAW;CAAa,CAAC;CACzE,OAAO,OAAO,SACV,OAAO,OAAO;EAAE,MAAM,OAAO,SAAS,CAAC,SAAS,QAAQ,CAAC;EAAG,SAAS,OAAO;CAAO,CAAC,CACxF;CACA,QAAQ,OAAO,SACX,OAAO,MACH,OAAO,OAAO;EACV,MAAM,OAAO;EACb,IAAI,OAAO;EACX,YAAY,OAAO,OACf,OAAO,QACP,OAAO,MAAM;GAAC,OAAO;GAAQ,OAAO;GAAQ,OAAO;EAAO,CAAC,CAC/D;CACJ,CAAC,CACL,CACJ;CACA,YAAY,OAAO,SAAS,OAAO,MAAM;CACzC,YAAY,OAAO,OAAO,OAAO,QAAQ,OAAO,MAAM;EAAC,OAAO;EAAQ,OAAO;EAAQ,OAAO;CAAO,CAAC,CAAC;AACzG,CAAC;AACD,MAAM,aAAa,OAAO,OAAO,OAAO,QAAQ,OAAO,OAAO;AAC9D,MAAM,WAAW,OAAO,OAAO;CAC3B,MAAM,OAAO,SAAS,OAAO,MAAM;CACnC,MAAM,OAAO,SAAS,OAAO,MAAM;CACnC,MAAM,OAAO,SAAS,OAAO,MAAM;CACnC,YAAY,OAAO,SAAS,OAAO,OAAO;EAAE,OAAO,O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,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
55
55
|
readonly now: string;
|
|
56
56
|
readonly seed: string;
|
|
57
57
|
} | undefined;
|
|
58
|
+
readonly timeoutMs?: number | undefined;
|
|
58
59
|
}, string, never, never>, Schema.Struct<{
|
|
59
60
|
readonly operationId: Schema.String;
|
|
60
61
|
readonly outcome: Schema.Literal<"committed">;
|
|
@@ -119,8 +120,8 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
119
120
|
readonly now: string;
|
|
120
121
|
readonly seed: string;
|
|
121
122
|
} | undefined;
|
|
123
|
+
readonly timeoutMs?: number | undefined;
|
|
122
124
|
} | undefined;
|
|
123
|
-
readonly allowUnknownOutcome?: boolean | undefined;
|
|
124
125
|
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Submit", Schema.Codec<{
|
|
125
126
|
readonly session: {
|
|
126
127
|
readonly client: {
|
|
@@ -141,6 +142,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
141
142
|
readonly now: string;
|
|
142
143
|
readonly seed: string;
|
|
143
144
|
} | undefined;
|
|
145
|
+
readonly timeoutMs?: number | undefined;
|
|
144
146
|
};
|
|
145
147
|
readonly optimistic: boolean;
|
|
146
148
|
readonly stagedAttachments?: readonly string[] | undefined;
|
|
@@ -194,6 +196,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
194
196
|
readonly now: string;
|
|
195
197
|
readonly seed: string;
|
|
196
198
|
} | undefined;
|
|
199
|
+
readonly timeoutMs?: number | undefined;
|
|
197
200
|
};
|
|
198
201
|
readonly requestIdentity: string;
|
|
199
202
|
readonly createdAt: number;
|
|
@@ -201,6 +204,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
201
204
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
202
205
|
readonly optimistic: boolean;
|
|
203
206
|
readonly attempts: number;
|
|
207
|
+
readonly blockedBy?: string | true | undefined;
|
|
204
208
|
readonly retryFromAttempt?: number | undefined;
|
|
205
209
|
readonly nextAttemptAt?: number | undefined;
|
|
206
210
|
readonly failureMessage?: string | undefined;
|
|
@@ -252,6 +256,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
252
256
|
readonly now: string;
|
|
253
257
|
readonly seed: string;
|
|
254
258
|
} | undefined;
|
|
259
|
+
readonly timeoutMs?: number | undefined;
|
|
255
260
|
};
|
|
256
261
|
readonly requestIdentity: string;
|
|
257
262
|
readonly createdAt: number;
|
|
@@ -259,6 +264,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
259
264
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
260
265
|
readonly optimistic: boolean;
|
|
261
266
|
readonly attempts: number;
|
|
267
|
+
readonly blockedBy?: string | true | undefined;
|
|
262
268
|
readonly retryFromAttempt?: number | undefined;
|
|
263
269
|
readonly nextAttemptAt?: number | undefined;
|
|
264
270
|
readonly failureMessage?: string | undefined;
|
|
@@ -345,6 +351,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
345
351
|
readonly now: string;
|
|
346
352
|
readonly seed: string;
|
|
347
353
|
} | undefined;
|
|
354
|
+
readonly timeoutMs?: number | undefined;
|
|
348
355
|
};
|
|
349
356
|
readonly optimistic: boolean;
|
|
350
357
|
readonly stagedAttachments?: readonly string[] | undefined;
|
|
@@ -515,6 +522,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
515
522
|
readonly now: string;
|
|
516
523
|
readonly seed: string;
|
|
517
524
|
} | undefined;
|
|
525
|
+
readonly timeoutMs?: number | undefined;
|
|
518
526
|
};
|
|
519
527
|
readonly requestIdentity: string;
|
|
520
528
|
readonly createdAt: number;
|
|
@@ -522,6 +530,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
522
530
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
523
531
|
readonly optimistic: boolean;
|
|
524
532
|
readonly attempts: number;
|
|
533
|
+
readonly blockedBy?: string | true | undefined;
|
|
525
534
|
readonly retryFromAttempt?: number | undefined;
|
|
526
535
|
readonly nextAttemptAt?: number | undefined;
|
|
527
536
|
readonly failureMessage?: string | undefined;
|
|
@@ -672,6 +681,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
672
681
|
readonly now: string;
|
|
673
682
|
readonly seed: string;
|
|
674
683
|
} | undefined;
|
|
684
|
+
readonly timeoutMs?: number | undefined;
|
|
675
685
|
};
|
|
676
686
|
readonly requestIdentity: string;
|
|
677
687
|
readonly createdAt: number;
|
|
@@ -679,6 +689,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
679
689
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
680
690
|
readonly optimistic: boolean;
|
|
681
691
|
readonly attempts: number;
|
|
692
|
+
readonly blockedBy?: string | true | undefined;
|
|
682
693
|
readonly retryFromAttempt?: number | undefined;
|
|
683
694
|
readonly nextAttemptAt?: number | undefined;
|
|
684
695
|
readonly failureMessage?: string | undefined;
|
|
@@ -871,6 +882,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
871
882
|
readonly now: string;
|
|
872
883
|
readonly seed: string;
|
|
873
884
|
} | undefined;
|
|
885
|
+
readonly timeoutMs?: number | undefined;
|
|
874
886
|
};
|
|
875
887
|
readonly requestIdentity: string;
|
|
876
888
|
readonly createdAt: number;
|
|
@@ -878,6 +890,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
878
890
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
879
891
|
readonly optimistic: boolean;
|
|
880
892
|
readonly attempts: number;
|
|
893
|
+
readonly blockedBy?: string | true | undefined;
|
|
881
894
|
readonly retryFromAttempt?: number | undefined;
|
|
882
895
|
readonly nextAttemptAt?: number | undefined;
|
|
883
896
|
readonly failureMessage?: string | undefined;
|
|
@@ -929,6 +942,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
929
942
|
readonly now: string;
|
|
930
943
|
readonly seed: string;
|
|
931
944
|
} | undefined;
|
|
945
|
+
readonly timeoutMs?: number | undefined;
|
|
932
946
|
};
|
|
933
947
|
readonly requestIdentity: string;
|
|
934
948
|
readonly createdAt: number;
|
|
@@ -936,6 +950,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
936
950
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
937
951
|
readonly optimistic: boolean;
|
|
938
952
|
readonly attempts: number;
|
|
953
|
+
readonly blockedBy?: string | true | undefined;
|
|
939
954
|
readonly retryFromAttempt?: number | undefined;
|
|
940
955
|
readonly nextAttemptAt?: number | undefined;
|
|
941
956
|
readonly failureMessage?: string | undefined;
|
|
@@ -1561,6 +1576,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1561
1576
|
readonly now: string;
|
|
1562
1577
|
readonly seed: string;
|
|
1563
1578
|
} | undefined;
|
|
1579
|
+
readonly timeoutMs?: number | undefined;
|
|
1564
1580
|
};
|
|
1565
1581
|
readonly requestIdentity: string;
|
|
1566
1582
|
readonly createdAt: number;
|
|
@@ -1568,6 +1584,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1568
1584
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
1569
1585
|
readonly optimistic: boolean;
|
|
1570
1586
|
readonly attempts: number;
|
|
1587
|
+
readonly blockedBy?: string | true | undefined;
|
|
1571
1588
|
readonly retryFromAttempt?: number | undefined;
|
|
1572
1589
|
readonly nextAttemptAt?: number | undefined;
|
|
1573
1590
|
readonly failureMessage?: string | undefined;
|
|
@@ -1619,6 +1636,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1619
1636
|
readonly now: string;
|
|
1620
1637
|
readonly seed: string;
|
|
1621
1638
|
} | undefined;
|
|
1639
|
+
readonly timeoutMs?: number | undefined;
|
|
1622
1640
|
};
|
|
1623
1641
|
readonly requestIdentity: string;
|
|
1624
1642
|
readonly createdAt: number;
|
|
@@ -1626,6 +1644,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1626
1644
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
1627
1645
|
readonly optimistic: boolean;
|
|
1628
1646
|
readonly attempts: number;
|
|
1647
|
+
readonly blockedBy?: string | true | undefined;
|
|
1629
1648
|
readonly retryFromAttempt?: number | undefined;
|
|
1630
1649
|
readonly nextAttemptAt?: number | undefined;
|
|
1631
1650
|
readonly failureMessage?: string | undefined;
|
|
@@ -2088,6 +2107,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2088
2107
|
readonly now: string;
|
|
2089
2108
|
readonly seed: string;
|
|
2090
2109
|
} | undefined;
|
|
2110
|
+
readonly timeoutMs?: number | undefined;
|
|
2091
2111
|
};
|
|
2092
2112
|
readonly requestIdentity: string;
|
|
2093
2113
|
readonly createdAt: number;
|
|
@@ -2095,6 +2115,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2095
2115
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2096
2116
|
readonly optimistic: boolean;
|
|
2097
2117
|
readonly attempts: number;
|
|
2118
|
+
readonly blockedBy?: string | true | undefined;
|
|
2098
2119
|
readonly retryFromAttempt?: number | undefined;
|
|
2099
2120
|
readonly nextAttemptAt?: number | undefined;
|
|
2100
2121
|
readonly failureMessage?: string | undefined;
|
|
@@ -2146,6 +2167,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2146
2167
|
readonly now: string;
|
|
2147
2168
|
readonly seed: string;
|
|
2148
2169
|
} | undefined;
|
|
2170
|
+
readonly timeoutMs?: number | undefined;
|
|
2149
2171
|
};
|
|
2150
2172
|
readonly requestIdentity: string;
|
|
2151
2173
|
readonly createdAt: number;
|
|
@@ -2153,6 +2175,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2153
2175
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2154
2176
|
readonly optimistic: boolean;
|
|
2155
2177
|
readonly attempts: number;
|
|
2178
|
+
readonly blockedBy?: string | true | undefined;
|
|
2156
2179
|
readonly retryFromAttempt?: number | undefined;
|
|
2157
2180
|
readonly nextAttemptAt?: number | undefined;
|
|
2158
2181
|
readonly failureMessage?: string | undefined;
|
|
@@ -2272,6 +2295,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2272
2295
|
readonly now: string;
|
|
2273
2296
|
readonly seed: string;
|
|
2274
2297
|
} | undefined;
|
|
2298
|
+
readonly timeoutMs?: number | undefined;
|
|
2275
2299
|
};
|
|
2276
2300
|
readonly requestIdentity: string;
|
|
2277
2301
|
readonly createdAt: number;
|
|
@@ -2279,6 +2303,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2279
2303
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2280
2304
|
readonly optimistic: boolean;
|
|
2281
2305
|
readonly attempts: number;
|
|
2306
|
+
readonly blockedBy?: string | true | undefined;
|
|
2282
2307
|
readonly retryFromAttempt?: number | undefined;
|
|
2283
2308
|
readonly nextAttemptAt?: number | undefined;
|
|
2284
2309
|
readonly failureMessage?: string | undefined;
|
|
@@ -2405,6 +2430,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2405
2430
|
readonly now: string;
|
|
2406
2431
|
readonly seed: string;
|
|
2407
2432
|
} | undefined;
|
|
2433
|
+
readonly timeoutMs?: number | undefined;
|
|
2408
2434
|
};
|
|
2409
2435
|
readonly requestIdentity: string;
|
|
2410
2436
|
readonly createdAt: number;
|
|
@@ -2412,6 +2438,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2412
2438
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2413
2439
|
readonly optimistic: boolean;
|
|
2414
2440
|
readonly attempts: number;
|
|
2441
|
+
readonly blockedBy?: string | true | undefined;
|
|
2415
2442
|
readonly retryFromAttempt?: number | undefined;
|
|
2416
2443
|
readonly nextAttemptAt?: number | undefined;
|
|
2417
2444
|
readonly failureMessage?: string | undefined;
|
|
@@ -2558,6 +2585,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2558
2585
|
readonly now: string;
|
|
2559
2586
|
readonly seed: string;
|
|
2560
2587
|
} | undefined;
|
|
2588
|
+
readonly timeoutMs?: number | undefined;
|
|
2561
2589
|
};
|
|
2562
2590
|
readonly requestIdentity: string;
|
|
2563
2591
|
readonly createdAt: number;
|
|
@@ -2565,6 +2593,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2565
2593
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2566
2594
|
readonly optimistic: boolean;
|
|
2567
2595
|
readonly attempts: number;
|
|
2596
|
+
readonly blockedBy?: string | true | undefined;
|
|
2568
2597
|
readonly retryFromAttempt?: number | undefined;
|
|
2569
2598
|
readonly nextAttemptAt?: number | undefined;
|
|
2570
2599
|
readonly failureMessage?: string | undefined;
|
|
@@ -2691,6 +2720,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2691
2720
|
readonly now: string;
|
|
2692
2721
|
readonly seed: string;
|
|
2693
2722
|
} | undefined;
|
|
2723
|
+
readonly timeoutMs?: number | undefined;
|
|
2694
2724
|
};
|
|
2695
2725
|
readonly requestIdentity: string;
|
|
2696
2726
|
readonly createdAt: number;
|
|
@@ -2698,6 +2728,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2698
2728
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2699
2729
|
readonly optimistic: boolean;
|
|
2700
2730
|
readonly attempts: number;
|
|
2731
|
+
readonly blockedBy?: string | true | undefined;
|
|
2701
2732
|
readonly retryFromAttempt?: number | undefined;
|
|
2702
2733
|
readonly nextAttemptAt?: number | undefined;
|
|
2703
2734
|
readonly failureMessage?: string | undefined;
|
package/lib/rpc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","names":["OntologyDescription"],"sources":["../src/rpc.ts"],"mappings":";;;;;;;;;;;;;;cAsEM,kBAAgB,OAAA;qBA0DT,cAAY,SAAA,SAAA,IAAA,kBAAA,OAAA,iDAAA,qCAAA,OAAA
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","names":["OntologyDescription"],"sources":["../src/rpc.ts"],"mappings":";;;;;;;;;;;;;;cAsEM,kBAAgB,OAAA;qBA0DT,cAAY,SAAA,SAAA,IAAA,kBAAA,OAAA,iDAAA,qCAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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a,cAAc;;;;qBA+W9B,sBAAuB,GAAC,SAAW,yBAAyB,OAAE,MAAA,MAAA,IAAA,oBAAA,IAAA,yBAAA,IAAA,yBAAA,IAAA,yBAAA,IAAA,gCAAA,IAAA,qBAAA,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,0BAAA,IAAA,2BAAA,IAAA,qCAAA,IAAA,oBAAA,IAAA,gCAAA,IAAA,4BAAA,IAAA,oBAAA,IAAA,wBAAA,IAAA,4BAAA,IAAA,0BAAA,IAAA,yBAAA,IAAA,kCAAA,gCAAA,QAAA,QAAA,WAAA,MAAA,SAAA,QAAA,QAAA,QAAA,WAAA,MAAA,QAAA,MAAA;YA0H/D;YAcA,oBAAoB,OAAO,QACnC,kBAAkB,UAAU,KAAK,SAAS,YAAY;;qBA+E7C,+BAAgC,GAAG,GAAC,QACrC,gBAAc,MAChB,OAAO,OAAO,GAAG,cAAc,OAAE,OAAA,OAAA,GAAA,iWAAA;;qBAoQ9B,6BAA0B,QAVvB,mBAAiB,UACf,0BACT,OAAO,OAAO,gBAAgB,cAAc,MAAM;;;;;;qBAc9C,oCAAiC,QAhB9B,mBAAiB,UACf,0BACT,OAAO,OAAO,gBAAgB,cAAc,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@party-stack/ontology-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib"
|
|
6
6
|
],
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"effect": "^4.0.5",
|
|
40
|
-
"@party-stack/ontology-backend": "0.
|
|
41
|
-
"@party-stack/ontology-replica": "0.
|
|
40
|
+
"@party-stack/ontology-backend": "0.8.0",
|
|
41
|
+
"@party-stack/ontology-replica": "0.8.0",
|
|
42
42
|
"@party-stack/ontology-spec": "0.5.1",
|
|
43
43
|
"@party-stack/ontology-storage": "0.4.1",
|
|
44
44
|
"@party-stack/runtime": "0.7.0"
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.2.0",
|
|
52
52
|
"vite-plus": "1.2.0",
|
|
53
53
|
"@party-stack/build-config": "0.2.0",
|
|
54
|
-
"@party-stack/connect": "0.4.
|
|
54
|
+
"@party-stack/connect": "0.4.4"
|
|
55
55
|
}
|
|
56
56
|
}
|