@opencode/schema 0.0.0-dev-19447 → 0.0.0-dev-19449
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 +156 -0
- package/dist/session-event.d.ts +392 -0
- package/dist/session-event.js +11 -1
- package/dist/session-transfer.d.ts +9 -0
- package/dist/session.d.ts +10 -0
- package/dist/session.js +3 -0
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -307,6 +307,15 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
307
307
|
};
|
|
308
308
|
}>, never, never>;
|
|
309
309
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
310
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
311
|
+
readonly action: Schema.String;
|
|
312
|
+
readonly resource: Schema.String;
|
|
313
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
314
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
315
|
+
readonly action: Schema.String;
|
|
316
|
+
readonly resource: Schema.String;
|
|
317
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
318
|
+
}>>>, never, never>;
|
|
310
319
|
readonly version: Schema.String;
|
|
311
320
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
312
321
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -391,6 +400,15 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
391
400
|
};
|
|
392
401
|
}>, never, never>;
|
|
393
402
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
403
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
404
|
+
readonly action: Schema.String;
|
|
405
|
+
readonly resource: Schema.String;
|
|
406
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
407
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
408
|
+
readonly action: Schema.String;
|
|
409
|
+
readonly resource: Schema.String;
|
|
410
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
411
|
+
}>>>, never, never>;
|
|
394
412
|
readonly version: Schema.String;
|
|
395
413
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
396
414
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -767,6 +785,66 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
767
785
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
768
786
|
};
|
|
769
787
|
}>;
|
|
788
|
+
}, Schema.Struct<{
|
|
789
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
790
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
791
|
+
};
|
|
792
|
+
readonly created: Schema.Finite;
|
|
793
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
794
|
+
readonly type: Schema.Literal<"session.permissions.updated">;
|
|
795
|
+
readonly durable: Schema.Struct<{
|
|
796
|
+
readonly aggregateID: Schema.String;
|
|
797
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
798
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
799
|
+
}>;
|
|
800
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
801
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
802
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
803
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
804
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
805
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
806
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
807
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
808
|
+
}>, never, never>;
|
|
809
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
810
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
811
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
812
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
813
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
814
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
815
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
816
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
817
|
+
}>, never, never>;
|
|
818
|
+
}>>, never, never>;
|
|
819
|
+
readonly data: Schema.Struct<{
|
|
820
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
821
|
+
readonly action: Schema.String;
|
|
822
|
+
readonly resource: Schema.String;
|
|
823
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
824
|
+
}>>;
|
|
825
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
826
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
827
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
828
|
+
};
|
|
829
|
+
}>;
|
|
830
|
+
}> & {
|
|
831
|
+
type: "session.permissions.updated";
|
|
832
|
+
durability: "durable";
|
|
833
|
+
durable: {
|
|
834
|
+
readonly version: number;
|
|
835
|
+
readonly aggregate: string;
|
|
836
|
+
};
|
|
837
|
+
data: Schema.Struct<{
|
|
838
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
839
|
+
readonly action: Schema.String;
|
|
840
|
+
readonly resource: Schema.String;
|
|
841
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
842
|
+
}>>;
|
|
843
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
844
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
845
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
846
|
+
};
|
|
847
|
+
}>;
|
|
770
848
|
}, Schema.Struct<{
|
|
771
849
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
772
850
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -6381,6 +6459,15 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6381
6459
|
};
|
|
6382
6460
|
}>, never, never>;
|
|
6383
6461
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
6462
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
6463
|
+
readonly action: Schema.String;
|
|
6464
|
+
readonly resource: Schema.String;
|
|
6465
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
6466
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6467
|
+
readonly action: Schema.String;
|
|
6468
|
+
readonly resource: Schema.String;
|
|
6469
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
6470
|
+
}>>>, never, never>;
|
|
6384
6471
|
readonly version: Schema.String;
|
|
6385
6472
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6386
6473
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -6465,6 +6552,15 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6465
6552
|
};
|
|
6466
6553
|
}>, never, never>;
|
|
6467
6554
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
6555
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
6556
|
+
readonly action: Schema.String;
|
|
6557
|
+
readonly resource: Schema.String;
|
|
6558
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
6559
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6560
|
+
readonly action: Schema.String;
|
|
6561
|
+
readonly resource: Schema.String;
|
|
6562
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
6563
|
+
}>>>, never, never>;
|
|
6468
6564
|
readonly version: Schema.String;
|
|
6469
6565
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6470
6566
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -6841,6 +6937,66 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6841
6937
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6842
6938
|
};
|
|
6843
6939
|
}>;
|
|
6940
|
+
}, Schema.Struct<{
|
|
6941
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6942
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6943
|
+
};
|
|
6944
|
+
readonly created: Schema.Finite;
|
|
6945
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6946
|
+
readonly type: Schema.Literal<"session.permissions.updated">;
|
|
6947
|
+
readonly durable: Schema.Struct<{
|
|
6948
|
+
readonly aggregateID: Schema.String;
|
|
6949
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6950
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
6951
|
+
}>;
|
|
6952
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6953
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
6954
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6955
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6956
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6957
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6958
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6959
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6960
|
+
}>, never, never>;
|
|
6961
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6962
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
6963
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6964
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6965
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6966
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6967
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6968
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6969
|
+
}>, never, never>;
|
|
6970
|
+
}>>, never, never>;
|
|
6971
|
+
readonly data: Schema.Struct<{
|
|
6972
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
6973
|
+
readonly action: Schema.String;
|
|
6974
|
+
readonly resource: Schema.String;
|
|
6975
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
6976
|
+
}>>;
|
|
6977
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6978
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6979
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6980
|
+
};
|
|
6981
|
+
}>;
|
|
6982
|
+
}> & {
|
|
6983
|
+
type: "session.permissions.updated";
|
|
6984
|
+
durability: "durable";
|
|
6985
|
+
durable: {
|
|
6986
|
+
readonly version: number;
|
|
6987
|
+
readonly aggregate: string;
|
|
6988
|
+
};
|
|
6989
|
+
data: Schema.Struct<{
|
|
6990
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
6991
|
+
readonly action: Schema.String;
|
|
6992
|
+
readonly resource: Schema.String;
|
|
6993
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
6994
|
+
}>>;
|
|
6995
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6996
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6997
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6998
|
+
};
|
|
6999
|
+
}>;
|
|
6844
7000
|
}, Schema.Struct<{
|
|
6845
7001
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6846
7002
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.d.ts
CHANGED
|
@@ -113,6 +113,15 @@ export declare const Created: Schema.Struct<{
|
|
|
113
113
|
}>, never, never>;
|
|
114
114
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
115
115
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
116
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
117
|
+
readonly action: Schema.String;
|
|
118
|
+
readonly resource: Schema.String;
|
|
119
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
120
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
121
|
+
readonly action: Schema.String;
|
|
122
|
+
readonly resource: Schema.String;
|
|
123
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
124
|
+
}>>>, never, never>;
|
|
116
125
|
readonly version: Schema.String;
|
|
117
126
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
118
127
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -198,6 +207,15 @@ export declare const Created: Schema.Struct<{
|
|
|
198
207
|
}>, never, never>;
|
|
199
208
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
200
209
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
210
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
211
|
+
readonly action: Schema.String;
|
|
212
|
+
readonly resource: Schema.String;
|
|
213
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
214
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
215
|
+
readonly action: Schema.String;
|
|
216
|
+
readonly resource: Schema.String;
|
|
217
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
218
|
+
}>>>, never, never>;
|
|
201
219
|
readonly version: Schema.String;
|
|
202
220
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
203
221
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -584,6 +602,68 @@ export declare const Renamed: Schema.Struct<{
|
|
|
584
602
|
}>;
|
|
585
603
|
};
|
|
586
604
|
export type Renamed = typeof Renamed.Type;
|
|
605
|
+
export declare const PermissionsUpdated: Schema.Struct<{
|
|
606
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
607
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
608
|
+
};
|
|
609
|
+
readonly created: Schema.Finite;
|
|
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.updated">;
|
|
612
|
+
readonly durable: Schema.Struct<{
|
|
613
|
+
readonly aggregateID: Schema.String;
|
|
614
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
615
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
616
|
+
}>;
|
|
617
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
618
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
619
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
620
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
621
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
622
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
623
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
624
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
625
|
+
}>, never, never>;
|
|
626
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
627
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
628
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
629
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
630
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
631
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
632
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
633
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
634
|
+
}>, never, never>;
|
|
635
|
+
}>>, never, never>;
|
|
636
|
+
readonly data: Schema.Struct<{
|
|
637
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
638
|
+
readonly action: Schema.String;
|
|
639
|
+
readonly resource: Schema.String;
|
|
640
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
641
|
+
}>>;
|
|
642
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
643
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
644
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
645
|
+
};
|
|
646
|
+
}>;
|
|
647
|
+
}> & {
|
|
648
|
+
type: "session.permissions.updated";
|
|
649
|
+
durability: "durable";
|
|
650
|
+
durable: {
|
|
651
|
+
readonly version: number;
|
|
652
|
+
readonly aggregate: string;
|
|
653
|
+
};
|
|
654
|
+
data: Schema.Struct<{
|
|
655
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
656
|
+
readonly action: Schema.String;
|
|
657
|
+
readonly resource: Schema.String;
|
|
658
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
659
|
+
}>>;
|
|
660
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
661
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
662
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
663
|
+
};
|
|
664
|
+
}>;
|
|
665
|
+
};
|
|
666
|
+
export type PermissionsUpdated = typeof PermissionsUpdated.Type;
|
|
587
667
|
export declare const Viewed: Schema.Struct<{
|
|
588
668
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
589
669
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -4514,6 +4594,15 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4514
4594
|
}>, never, never>;
|
|
4515
4595
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
4516
4596
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
4597
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
4598
|
+
readonly action: Schema.String;
|
|
4599
|
+
readonly resource: Schema.String;
|
|
4600
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
4601
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4602
|
+
readonly action: Schema.String;
|
|
4603
|
+
readonly resource: Schema.String;
|
|
4604
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
4605
|
+
}>>>, never, never>;
|
|
4517
4606
|
readonly version: Schema.String;
|
|
4518
4607
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4519
4608
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4599,6 +4688,15 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4599
4688
|
}>, never, never>;
|
|
4600
4689
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
4601
4690
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
4691
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
4692
|
+
readonly action: Schema.String;
|
|
4693
|
+
readonly resource: Schema.String;
|
|
4694
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
4695
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4696
|
+
readonly action: Schema.String;
|
|
4697
|
+
readonly resource: Schema.String;
|
|
4698
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
4699
|
+
}>>>, never, never>;
|
|
4602
4700
|
readonly version: Schema.String;
|
|
4603
4701
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4604
4702
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4975,6 +5073,66 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4975
5073
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4976
5074
|
};
|
|
4977
5075
|
}>;
|
|
5076
|
+
}, Schema.Struct<{
|
|
5077
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5078
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5079
|
+
};
|
|
5080
|
+
readonly created: Schema.Finite;
|
|
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.updated">;
|
|
5083
|
+
readonly durable: Schema.Struct<{
|
|
5084
|
+
readonly aggregateID: Schema.String;
|
|
5085
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5086
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
5087
|
+
}>;
|
|
5088
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5089
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5090
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5091
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5092
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5093
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5094
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5095
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5096
|
+
}>, never, never>;
|
|
5097
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5098
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5099
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5100
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5101
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5102
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5103
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5104
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5105
|
+
}>, never, never>;
|
|
5106
|
+
}>>, never, never>;
|
|
5107
|
+
readonly data: Schema.Struct<{
|
|
5108
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
5109
|
+
readonly action: Schema.String;
|
|
5110
|
+
readonly resource: Schema.String;
|
|
5111
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
5112
|
+
}>>;
|
|
5113
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5114
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5115
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5116
|
+
};
|
|
5117
|
+
}>;
|
|
5118
|
+
}> & {
|
|
5119
|
+
type: "session.permissions.updated";
|
|
5120
|
+
durability: "durable";
|
|
5121
|
+
durable: {
|
|
5122
|
+
readonly version: number;
|
|
5123
|
+
readonly aggregate: string;
|
|
5124
|
+
};
|
|
5125
|
+
data: Schema.Struct<{
|
|
5126
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
5127
|
+
readonly action: Schema.String;
|
|
5128
|
+
readonly resource: Schema.String;
|
|
5129
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
5130
|
+
}>>;
|
|
5131
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5132
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5133
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5134
|
+
};
|
|
5135
|
+
}>;
|
|
4978
5136
|
}, Schema.Struct<{
|
|
4979
5137
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4980
5138
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -8509,6 +8667,15 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8509
8667
|
}>, never, never>;
|
|
8510
8668
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
8511
8669
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
8670
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
8671
|
+
readonly action: Schema.String;
|
|
8672
|
+
readonly resource: Schema.String;
|
|
8673
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
8674
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8675
|
+
readonly action: Schema.String;
|
|
8676
|
+
readonly resource: Schema.String;
|
|
8677
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
8678
|
+
}>>>, never, never>;
|
|
8512
8679
|
readonly version: Schema.String;
|
|
8513
8680
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8514
8681
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8594,6 +8761,15 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8594
8761
|
}>, never, never>;
|
|
8595
8762
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
8596
8763
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
8764
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
8765
|
+
readonly action: Schema.String;
|
|
8766
|
+
readonly resource: Schema.String;
|
|
8767
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
8768
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8769
|
+
readonly action: Schema.String;
|
|
8770
|
+
readonly resource: Schema.String;
|
|
8771
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
8772
|
+
}>>>, never, never>;
|
|
8597
8773
|
readonly version: Schema.String;
|
|
8598
8774
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8599
8775
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8970,6 +9146,66 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8970
9146
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8971
9147
|
};
|
|
8972
9148
|
}>;
|
|
9149
|
+
}) | (Schema.Struct<{
|
|
9150
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9151
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
9152
|
+
};
|
|
9153
|
+
readonly created: Schema.Finite;
|
|
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.updated">;
|
|
9156
|
+
readonly durable: Schema.Struct<{
|
|
9157
|
+
readonly aggregateID: Schema.String;
|
|
9158
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
9159
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
9160
|
+
}>;
|
|
9161
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9162
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9163
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9164
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9165
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9166
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9167
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9168
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9169
|
+
}>, never, never>;
|
|
9170
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9171
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9172
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9173
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9174
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9175
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9176
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9177
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9178
|
+
}>, never, never>;
|
|
9179
|
+
}>>, never, never>;
|
|
9180
|
+
readonly data: Schema.Struct<{
|
|
9181
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
9182
|
+
readonly action: Schema.String;
|
|
9183
|
+
readonly resource: Schema.String;
|
|
9184
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
9185
|
+
}>>;
|
|
9186
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9187
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9188
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
9189
|
+
};
|
|
9190
|
+
}>;
|
|
9191
|
+
}> & {
|
|
9192
|
+
type: "session.permissions.updated";
|
|
9193
|
+
durability: "durable";
|
|
9194
|
+
durable: {
|
|
9195
|
+
readonly version: number;
|
|
9196
|
+
readonly aggregate: string;
|
|
9197
|
+
};
|
|
9198
|
+
data: Schema.Struct<{
|
|
9199
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
9200
|
+
readonly action: Schema.String;
|
|
9201
|
+
readonly resource: Schema.String;
|
|
9202
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
9203
|
+
}>>;
|
|
9204
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9205
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9206
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
9207
|
+
};
|
|
9208
|
+
}>;
|
|
8973
9209
|
}) | (Schema.Struct<{
|
|
8974
9210
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8975
9211
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -12789,6 +13025,15 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
12789
13025
|
}>, never, never>;
|
|
12790
13026
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
12791
13027
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
13028
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
13029
|
+
readonly action: Schema.String;
|
|
13030
|
+
readonly resource: Schema.String;
|
|
13031
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
13032
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
13033
|
+
readonly action: Schema.String;
|
|
13034
|
+
readonly resource: Schema.String;
|
|
13035
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
13036
|
+
}>>>, never, never>;
|
|
12792
13037
|
readonly version: Schema.String;
|
|
12793
13038
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12794
13039
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12874,6 +13119,15 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
12874
13119
|
}>, never, never>;
|
|
12875
13120
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
12876
13121
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
13122
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
13123
|
+
readonly action: Schema.String;
|
|
13124
|
+
readonly resource: Schema.String;
|
|
13125
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
13126
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
13127
|
+
readonly action: Schema.String;
|
|
13128
|
+
readonly resource: Schema.String;
|
|
13129
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
13130
|
+
}>>>, never, never>;
|
|
12877
13131
|
readonly version: Schema.String;
|
|
12878
13132
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12879
13133
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -13250,6 +13504,66 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13250
13504
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13251
13505
|
};
|
|
13252
13506
|
}>;
|
|
13507
|
+
}) | (Schema.Struct<{
|
|
13508
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13509
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
13510
|
+
};
|
|
13511
|
+
readonly created: Schema.Finite;
|
|
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.updated">;
|
|
13514
|
+
readonly durable: Schema.Struct<{
|
|
13515
|
+
readonly aggregateID: Schema.String;
|
|
13516
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
13517
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
13518
|
+
}>;
|
|
13519
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
13520
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13521
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13522
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13523
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13524
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13525
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13526
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13527
|
+
}>, never, never>;
|
|
13528
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
13529
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13530
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13531
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13532
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13533
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13534
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13535
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13536
|
+
}>, never, never>;
|
|
13537
|
+
}>>, never, never>;
|
|
13538
|
+
readonly data: Schema.Struct<{
|
|
13539
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
13540
|
+
readonly action: Schema.String;
|
|
13541
|
+
readonly resource: Schema.String;
|
|
13542
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
13543
|
+
}>>;
|
|
13544
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13545
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
13546
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13547
|
+
};
|
|
13548
|
+
}>;
|
|
13549
|
+
}> & {
|
|
13550
|
+
type: "session.permissions.updated";
|
|
13551
|
+
durability: "durable";
|
|
13552
|
+
durable: {
|
|
13553
|
+
readonly version: number;
|
|
13554
|
+
readonly aggregate: string;
|
|
13555
|
+
};
|
|
13556
|
+
data: Schema.Struct<{
|
|
13557
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
13558
|
+
readonly action: Schema.String;
|
|
13559
|
+
readonly resource: Schema.String;
|
|
13560
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
13561
|
+
}>>;
|
|
13562
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13563
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
13564
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13565
|
+
};
|
|
13566
|
+
}>;
|
|
13253
13567
|
}) | (Schema.Struct<{
|
|
13254
13568
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13255
13569
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -16743,6 +17057,15 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16743
17057
|
}>, never, never>;
|
|
16744
17058
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
16745
17059
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
17060
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
17061
|
+
readonly action: Schema.String;
|
|
17062
|
+
readonly resource: Schema.String;
|
|
17063
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
17064
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
17065
|
+
readonly action: Schema.String;
|
|
17066
|
+
readonly resource: Schema.String;
|
|
17067
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
17068
|
+
}>>>, never, never>;
|
|
16746
17069
|
readonly version: Schema.String;
|
|
16747
17070
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
16748
17071
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -16828,6 +17151,15 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16828
17151
|
}>, never, never>;
|
|
16829
17152
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
16830
17153
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
17154
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
17155
|
+
readonly action: Schema.String;
|
|
17156
|
+
readonly resource: Schema.String;
|
|
17157
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
17158
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
17159
|
+
readonly action: Schema.String;
|
|
17160
|
+
readonly resource: Schema.String;
|
|
17161
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
17162
|
+
}>>>, never, never>;
|
|
16831
17163
|
readonly version: Schema.String;
|
|
16832
17164
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
16833
17165
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -17204,6 +17536,66 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
17204
17536
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17205
17537
|
};
|
|
17206
17538
|
}>;
|
|
17539
|
+
}) | (Schema.Struct<{
|
|
17540
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
17541
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
17542
|
+
};
|
|
17543
|
+
readonly created: Schema.Finite;
|
|
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.updated">;
|
|
17546
|
+
readonly durable: Schema.Struct<{
|
|
17547
|
+
readonly aggregateID: Schema.String;
|
|
17548
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
17549
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
17550
|
+
}>;
|
|
17551
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
17552
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17553
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17554
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17555
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17556
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17557
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17558
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17559
|
+
}>, never, never>;
|
|
17560
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
17561
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17562
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17563
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17564
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17565
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17566
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17567
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17568
|
+
}>, never, never>;
|
|
17569
|
+
}>>, never, never>;
|
|
17570
|
+
readonly data: Schema.Struct<{
|
|
17571
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
17572
|
+
readonly action: Schema.String;
|
|
17573
|
+
readonly resource: Schema.String;
|
|
17574
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
17575
|
+
}>>;
|
|
17576
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
17577
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17578
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17579
|
+
};
|
|
17580
|
+
}>;
|
|
17581
|
+
}> & {
|
|
17582
|
+
type: "session.permissions.updated";
|
|
17583
|
+
durability: "durable";
|
|
17584
|
+
durable: {
|
|
17585
|
+
readonly version: number;
|
|
17586
|
+
readonly aggregate: string;
|
|
17587
|
+
};
|
|
17588
|
+
data: Schema.Struct<{
|
|
17589
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
17590
|
+
readonly action: Schema.String;
|
|
17591
|
+
readonly resource: Schema.String;
|
|
17592
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
17593
|
+
}>>;
|
|
17594
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
17595
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17596
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17597
|
+
};
|
|
17598
|
+
}>;
|
|
17207
17599
|
}) | (Schema.Struct<{
|
|
17208
17600
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
17209
17601
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.js
CHANGED
|
@@ -24,6 +24,7 @@ import { TokenUsage } from "./token-usage.js";
|
|
|
24
24
|
import { SessionInbox } from "./session-inbox.js";
|
|
25
25
|
import { Project } from "./project.js";
|
|
26
26
|
import { SessionFork } from "./session-fork.js";
|
|
27
|
+
import { Permission } from "./permission.js";
|
|
27
28
|
export { FileAttachment };
|
|
28
29
|
export const Source = Schema.Struct({
|
|
29
30
|
start: NonNegativeInt,
|
|
@@ -56,6 +57,7 @@ export const Created = Event.durable({
|
|
|
56
57
|
model: Model.Ref.pipe(optional),
|
|
57
58
|
/** Host-supplied annotations resolved at creation, including any inherited from a parent. */
|
|
58
59
|
metadata: SessionMetadata.pipe(optional),
|
|
60
|
+
permissions: Permission.Ruleset.pipe(optional),
|
|
59
61
|
version: Schema.String,
|
|
60
62
|
},
|
|
61
63
|
});
|
|
@@ -93,6 +95,14 @@ export const Renamed = Event.durable({
|
|
|
93
95
|
title: Schema.String,
|
|
94
96
|
},
|
|
95
97
|
});
|
|
98
|
+
export const PermissionsUpdated = Event.durable({
|
|
99
|
+
type: "session.permissions.updated",
|
|
100
|
+
...options,
|
|
101
|
+
schema: {
|
|
102
|
+
...Base,
|
|
103
|
+
permissions: Permission.Ruleset,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
96
106
|
export const Viewed = Event.durable({
|
|
97
107
|
type: "session.viewed",
|
|
98
108
|
...options,
|
|
@@ -537,7 +547,7 @@ export var RevertEvent;
|
|
|
537
547
|
schema: { ...Base, to: SessionMessage.ID },
|
|
538
548
|
});
|
|
539
549
|
})(RevertEvent || (RevertEvent = {}));
|
|
540
|
-
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, 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);
|
|
550
|
+
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, PermissionsUpdated, 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);
|
|
541
551
|
// Internal and replay-only events are excluded from the public manifest.
|
|
542
552
|
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded, MessageContentUpdated);
|
|
543
553
|
export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
|
|
@@ -134,6 +134,15 @@ export declare const Data: Schema.Struct<{
|
|
|
134
134
|
}>;
|
|
135
135
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
136
136
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
137
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
138
|
+
readonly action: Schema.String;
|
|
139
|
+
readonly resource: Schema.String;
|
|
140
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
141
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
142
|
+
readonly action: Schema.String;
|
|
143
|
+
readonly resource: Schema.String;
|
|
144
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
145
|
+
}>>>, never, never>;
|
|
137
146
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
138
147
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
139
148
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/session.d.ts
CHANGED
|
@@ -172,6 +172,16 @@ export declare const Info: Schema.Struct<{
|
|
|
172
172
|
}>;
|
|
173
173
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
174
174
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
175
|
+
/** Evaluated after the agent's rules; the last matching rule wins. */
|
|
176
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
177
|
+
readonly action: Schema.String;
|
|
178
|
+
readonly resource: Schema.String;
|
|
179
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
180
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
181
|
+
readonly action: Schema.String;
|
|
182
|
+
readonly resource: Schema.String;
|
|
183
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
184
|
+
}>>>, never, never>;
|
|
175
185
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
176
186
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
177
187
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/session.js
CHANGED
|
@@ -9,6 +9,7 @@ import { SessionEvent } from "./session-event.js";
|
|
|
9
9
|
import { SessionID } from "./session-id.js";
|
|
10
10
|
import { SessionMetadata } from "./session-metadata.js";
|
|
11
11
|
import { Money } from "./money.js";
|
|
12
|
+
import { Permission } from "./permission.js";
|
|
12
13
|
import { TokenUsage } from "./token-usage.js";
|
|
13
14
|
import { Revert } from "./session-revert.js";
|
|
14
15
|
import { SessionFork } from "./session-fork.js";
|
|
@@ -43,6 +44,8 @@ export const Info = Schema.Struct({
|
|
|
43
44
|
location: Location.Ref,
|
|
44
45
|
subpath: RelativePath.pipe(optional),
|
|
45
46
|
metadata: Metadata.pipe(optional),
|
|
47
|
+
/** Evaluated after the agent's rules; the last matching rule wins. */
|
|
48
|
+
permissions: Permission.Ruleset.pipe(optional),
|
|
46
49
|
revert: Revert.pipe(optional),
|
|
47
50
|
}).annotate({ identifier: "Session.Info" });
|
|
48
51
|
export const ListAnchor = Schema.Struct({
|