@opencode/schema 0.0.0-dev-19613 → 0.0.0-dev-19617
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/session-inbox.d.ts +24 -8
- package/dist/session-inbox.js +1 -1
- package/package.json +1 -1
package/dist/session-inbox.d.ts
CHANGED
|
@@ -474,7 +474,9 @@ export declare const User: Schema.Struct<{
|
|
|
474
474
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
475
475
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
476
476
|
};
|
|
477
|
-
readonly
|
|
477
|
+
readonly time: Schema.Struct<{
|
|
478
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
479
|
+
}>;
|
|
478
480
|
}>;
|
|
479
481
|
export interface Synthetic extends Schema.Schema.Type<typeof Synthetic> {
|
|
480
482
|
}
|
|
@@ -494,7 +496,9 @@ export declare const Synthetic: Schema.Struct<{
|
|
|
494
496
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
495
497
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
496
498
|
};
|
|
497
|
-
readonly
|
|
499
|
+
readonly time: Schema.Struct<{
|
|
500
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
501
|
+
}>;
|
|
498
502
|
}>;
|
|
499
503
|
export interface Compaction extends Schema.Schema.Type<typeof Compaction> {
|
|
500
504
|
}
|
|
@@ -510,7 +514,9 @@ export declare const Compaction: Schema.Struct<{
|
|
|
510
514
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
511
515
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
512
516
|
};
|
|
513
|
-
readonly
|
|
517
|
+
readonly time: Schema.Struct<{
|
|
518
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
519
|
+
}>;
|
|
514
520
|
}>;
|
|
515
521
|
export interface Move extends Schema.Schema.Type<typeof Move> {
|
|
516
522
|
}
|
|
@@ -541,7 +547,9 @@ export declare const Move: Schema.Struct<{
|
|
|
541
547
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
542
548
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
543
549
|
};
|
|
544
|
-
readonly
|
|
550
|
+
readonly time: Schema.Struct<{
|
|
551
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
552
|
+
}>;
|
|
545
553
|
}>;
|
|
546
554
|
export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
547
555
|
readonly type: Schema.tag<"user">;
|
|
@@ -685,7 +693,9 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
685
693
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
686
694
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
687
695
|
};
|
|
688
|
-
readonly
|
|
696
|
+
readonly time: Schema.Struct<{
|
|
697
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
698
|
+
}>;
|
|
689
699
|
}>, Schema.Struct<{
|
|
690
700
|
readonly type: Schema.tag<"synthetic">;
|
|
691
701
|
readonly payload: Schema.Struct<{
|
|
@@ -702,7 +712,9 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
702
712
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
703
713
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
704
714
|
};
|
|
705
|
-
readonly
|
|
715
|
+
readonly time: Schema.Struct<{
|
|
716
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
717
|
+
}>;
|
|
706
718
|
}>, Schema.Struct<{
|
|
707
719
|
readonly type: Schema.tag<"compaction">;
|
|
708
720
|
readonly payload: Schema.Struct<{}>;
|
|
@@ -715,7 +727,9 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
715
727
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
716
728
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
717
729
|
};
|
|
718
|
-
readonly
|
|
730
|
+
readonly time: Schema.Struct<{
|
|
731
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
732
|
+
}>;
|
|
719
733
|
}>, Schema.Struct<{
|
|
720
734
|
readonly type: Schema.tag<"move">;
|
|
721
735
|
readonly payload: Schema.Struct<{
|
|
@@ -743,6 +757,8 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
743
757
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
744
758
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
745
759
|
};
|
|
746
|
-
readonly
|
|
760
|
+
readonly time: Schema.Struct<{
|
|
761
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
762
|
+
}>;
|
|
747
763
|
}>]>;
|
|
748
764
|
export type Info = typeof Info.Type;
|
package/dist/session-inbox.js
CHANGED
|
@@ -34,7 +34,7 @@ export const Item = Schema.Union([UserItem, SyntheticItem, CompactionItem, MoveI
|
|
|
34
34
|
const Enqueued = {
|
|
35
35
|
id: SessionMessage.ID,
|
|
36
36
|
sessionID: SessionID,
|
|
37
|
-
|
|
37
|
+
time: Schema.Struct({ created: DateTimeUtcFromMillis }),
|
|
38
38
|
};
|
|
39
39
|
export const User = Schema.Struct({ ...Enqueued, ...UserItem.fields }).annotate({ identifier: "Session.Inbox.User" });
|
|
40
40
|
export const Synthetic = Schema.Struct({ ...Enqueued, ...SyntheticItem.fields }).annotate({
|