@opencode/schema 0.0.0-dev-19656 → 0.0.0-dev-19658
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/event-manifest.d.ts +4 -4
- package/dist/session-event.d.ts +12 -12
- package/dist/session-event.js +3 -3
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -823,7 +823,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
823
823
|
};
|
|
824
824
|
readonly created: Schema.Finite;
|
|
825
825
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
826
|
-
readonly type: Schema.Literal<"session.permissions
|
|
826
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
827
827
|
readonly durable: Schema.Struct<{
|
|
828
828
|
readonly aggregateID: Schema.String;
|
|
829
829
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -860,7 +860,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
860
860
|
};
|
|
861
861
|
}>;
|
|
862
862
|
}> & {
|
|
863
|
-
type: "session.permissions
|
|
863
|
+
type: "session.permissions";
|
|
864
864
|
durability: "durable";
|
|
865
865
|
durable: {
|
|
866
866
|
readonly version: number;
|
|
@@ -7005,7 +7005,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7005
7005
|
};
|
|
7006
7006
|
readonly created: Schema.Finite;
|
|
7007
7007
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7008
|
-
readonly type: Schema.Literal<"session.permissions
|
|
7008
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
7009
7009
|
readonly durable: Schema.Struct<{
|
|
7010
7010
|
readonly aggregateID: Schema.String;
|
|
7011
7011
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -7042,7 +7042,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7042
7042
|
};
|
|
7043
7043
|
}>;
|
|
7044
7044
|
}> & {
|
|
7045
|
-
type: "session.permissions
|
|
7045
|
+
type: "session.permissions";
|
|
7046
7046
|
durability: "durable";
|
|
7047
7047
|
durable: {
|
|
7048
7048
|
readonly version: number;
|
package/dist/session-event.d.ts
CHANGED
|
@@ -602,13 +602,13 @@ export declare const Renamed: Schema.Struct<{
|
|
|
602
602
|
}>;
|
|
603
603
|
};
|
|
604
604
|
export type Renamed = typeof Renamed.Type;
|
|
605
|
-
export declare const
|
|
605
|
+
export declare const Permissions: Schema.Struct<{
|
|
606
606
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
607
607
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
608
608
|
};
|
|
609
609
|
readonly created: Schema.Finite;
|
|
610
610
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
611
|
-
readonly type: Schema.Literal<"session.permissions
|
|
611
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
612
612
|
readonly durable: Schema.Struct<{
|
|
613
613
|
readonly aggregateID: Schema.String;
|
|
614
614
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -645,7 +645,7 @@ export declare const PermissionsUpdated: Schema.Struct<{
|
|
|
645
645
|
};
|
|
646
646
|
}>;
|
|
647
647
|
}> & {
|
|
648
|
-
type: "session.permissions
|
|
648
|
+
type: "session.permissions";
|
|
649
649
|
durability: "durable";
|
|
650
650
|
durable: {
|
|
651
651
|
readonly version: number;
|
|
@@ -663,7 +663,7 @@ export declare const PermissionsUpdated: Schema.Struct<{
|
|
|
663
663
|
};
|
|
664
664
|
}>;
|
|
665
665
|
};
|
|
666
|
-
export type
|
|
666
|
+
export type Permissions = typeof Permissions.Type;
|
|
667
667
|
export declare const Viewed: Schema.Struct<{
|
|
668
668
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
669
669
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -5079,7 +5079,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5079
5079
|
};
|
|
5080
5080
|
readonly created: Schema.Finite;
|
|
5081
5081
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5082
|
-
readonly type: Schema.Literal<"session.permissions
|
|
5082
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
5083
5083
|
readonly durable: Schema.Struct<{
|
|
5084
5084
|
readonly aggregateID: Schema.String;
|
|
5085
5085
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -5116,7 +5116,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5116
5116
|
};
|
|
5117
5117
|
}>;
|
|
5118
5118
|
}> & {
|
|
5119
|
-
type: "session.permissions
|
|
5119
|
+
type: "session.permissions";
|
|
5120
5120
|
durability: "durable";
|
|
5121
5121
|
durable: {
|
|
5122
5122
|
readonly version: number;
|
|
@@ -9152,7 +9152,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9152
9152
|
};
|
|
9153
9153
|
readonly created: Schema.Finite;
|
|
9154
9154
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9155
|
-
readonly type: Schema.Literal<"session.permissions
|
|
9155
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
9156
9156
|
readonly durable: Schema.Struct<{
|
|
9157
9157
|
readonly aggregateID: Schema.String;
|
|
9158
9158
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -9189,7 +9189,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9189
9189
|
};
|
|
9190
9190
|
}>;
|
|
9191
9191
|
}> & {
|
|
9192
|
-
type: "session.permissions
|
|
9192
|
+
type: "session.permissions";
|
|
9193
9193
|
durability: "durable";
|
|
9194
9194
|
durable: {
|
|
9195
9195
|
readonly version: number;
|
|
@@ -13510,7 +13510,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13510
13510
|
};
|
|
13511
13511
|
readonly created: Schema.Finite;
|
|
13512
13512
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13513
|
-
readonly type: Schema.Literal<"session.permissions
|
|
13513
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
13514
13514
|
readonly durable: Schema.Struct<{
|
|
13515
13515
|
readonly aggregateID: Schema.String;
|
|
13516
13516
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -13547,7 +13547,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13547
13547
|
};
|
|
13548
13548
|
}>;
|
|
13549
13549
|
}> & {
|
|
13550
|
-
type: "session.permissions
|
|
13550
|
+
type: "session.permissions";
|
|
13551
13551
|
durability: "durable";
|
|
13552
13552
|
durable: {
|
|
13553
13553
|
readonly version: number;
|
|
@@ -17542,7 +17542,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
17542
17542
|
};
|
|
17543
17543
|
readonly created: Schema.Finite;
|
|
17544
17544
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
17545
|
-
readonly type: Schema.Literal<"session.permissions
|
|
17545
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
17546
17546
|
readonly durable: Schema.Struct<{
|
|
17547
17547
|
readonly aggregateID: Schema.String;
|
|
17548
17548
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -17579,7 +17579,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
17579
17579
|
};
|
|
17580
17580
|
}>;
|
|
17581
17581
|
}> & {
|
|
17582
|
-
type: "session.permissions
|
|
17582
|
+
type: "session.permissions";
|
|
17583
17583
|
durability: "durable";
|
|
17584
17584
|
durable: {
|
|
17585
17585
|
readonly version: number;
|
package/dist/session-event.js
CHANGED
|
@@ -95,8 +95,8 @@ export const Renamed = Event.durable({
|
|
|
95
95
|
title: Schema.String,
|
|
96
96
|
},
|
|
97
97
|
});
|
|
98
|
-
export const
|
|
99
|
-
type: "session.permissions
|
|
98
|
+
export const Permissions = Event.durable({
|
|
99
|
+
type: "session.permissions",
|
|
100
100
|
...options,
|
|
101
101
|
schema: {
|
|
102
102
|
...Base,
|
|
@@ -547,7 +547,7 @@ export var RevertEvent;
|
|
|
547
547
|
schema: { ...Base, to: SessionMessage.ID },
|
|
548
548
|
});
|
|
549
549
|
})(RevertEvent || (RevertEvent = {}));
|
|
550
|
-
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed,
|
|
550
|
+
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, Permissions, Viewed, UsageUpdated, Deleted, Forked, InboxDelivered, InboxEnqueued, InboxCancelled, InboxDeliveryChanged, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Streamed, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
|
|
551
551
|
// Internal and replay-only events are excluded from the public manifest.
|
|
552
552
|
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded, MessageContentUpdated);
|
|
553
553
|
export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
|