New:Socket for Asana Is Now Available.Learn more
Get Started

@opencode-ai/schema

Package Overview
Dependencies
Maintainers
2
Versions
1470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/schema - npm Package Compare versions

Comparing version
0.0.0-next-14984
to
0.0.0-next-14986
+0
-31
dist/event-log.d.ts

@@ -15,32 +15,1 @@ export * as EventLog from "./event-log.js";

}
/**
* A payload-free doorbell: the aggregate's log advanced to at least `seq`.
* Hints are a latency optimization only; no consumer may derive correctness
* from receiving one. Correctness always comes from a durable log read plus
* the consumer's own checkpoint.
*/
export declare const Hint: Schema.Struct<{
readonly type: Schema.Literal<"log.hint">;
readonly aggregateID: Schema.String;
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
}>;
export interface Hint extends Schema.Schema.Type<typeof Hint> {
}
/**
* Hints may have been lost. Treat every aggregate as potentially dirty and
* recover via bounded sweep plus durable log reads. Also emitted first on
* every (re)subscribe, since hints during disconnection were never buffered.
*/
export declare const SweepRequired: Schema.Struct<{
readonly type: Schema.Literal<"log.sweep_required">;
}>;
export interface SweepRequired extends Schema.Schema.Type<typeof SweepRequired> {
}
export declare const Change: Schema.Union<readonly [Schema.Struct<{
readonly type: Schema.Literal<"log.hint">;
readonly aggregateID: Schema.String;
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
}>, Schema.Struct<{
readonly type: Schema.Literal<"log.sweep_required">;
}>]>;
export type Change = typeof Change.Type;

@@ -18,27 +18,1 @@ export * as EventLog from "./event-log.js";

});
/**
* A payload-free doorbell: the aggregate's log advanced to at least `seq`.
* Hints are a latency optimization only; no consumer may derive correctness
* from receiving one. Correctness always comes from a durable log read plus
* the consumer's own checkpoint.
*/
export const Hint = Schema.Struct({
type: Schema.Literal("log.hint"),
aggregateID: Schema.String,
seq: Event.Seq,
}).annotate({
identifier: "EventLog.Hint",
description: "Payload-free change hint: the aggregate's durable log advanced to at least seq. Hints coalesce under backpressure (latest per aggregate) and are never a delivery guarantee.",
});
/**
* Hints may have been lost. Treat every aggregate as potentially dirty and
* recover via bounded sweep plus durable log reads. Also emitted first on
* every (re)subscribe, since hints during disconnection were never buffered.
*/
export const SweepRequired = Schema.Struct({
type: Schema.Literal("log.sweep_required"),
}).annotate({
identifier: "EventLog.SweepRequired",
description: "Hints may have been lost; treat every aggregate as potentially dirty and recover via bounded sweep plus durable log reads. Emitted first on every (re)subscribe.",
});
export const Change = Schema.Union([Hint, SweepRequired]).annotate({ identifier: "EventLog.Change" });
+1
-1

@@ -11,3 +11,3 @@ export * as Event from "./event.js";

* Position in one aggregate's durable log. Values originate from the durable
* event envelope, synced markers, change hints, and snapshot watermarks;
* event envelope and synced markers;
* `after` cursors accept only values that came from those sources.

@@ -14,0 +14,0 @@ */

@@ -10,3 +10,3 @@ export * as Event from "./event.js";

* Position in one aggregate's durable log. Values originate from the durable
* event envelope, synced markers, change hints, and snapshot watermarks;
* event envelope and synced markers;
* `after` cursors accept only values that came from those sources.

@@ -13,0 +13,0 @@ */

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/schema",
"version": "0.0.0-next-14984",
"version": "0.0.0-next-14986",
"type": "module",

@@ -6,0 +6,0 @@ "license": "MIT",