@opencode/schema 0.0.0-dev-19596 → 0.0.0-dev-19598

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.
@@ -147,7 +147,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
147
147
  };
148
148
  readonly created: Schema.Finite;
149
149
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
150
- readonly type: Schema.Literal<"catalog.updated">;
150
+ readonly type: Schema.Literal<"provider.updated">;
151
151
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
152
152
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
153
153
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
@@ -169,7 +169,39 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
169
169
  }>>, never, never>;
170
170
  readonly data: Schema.Struct<{}>;
171
171
  }> & {
172
- type: "catalog.updated";
172
+ type: "provider.updated";
173
+ durability: "ephemeral";
174
+ durable: undefined;
175
+ data: Schema.Struct<{}>;
176
+ }, Schema.Struct<{
177
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
178
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
179
+ };
180
+ readonly created: Schema.Finite;
181
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
182
+ readonly type: Schema.Literal<"model.updated">;
183
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
184
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
185
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
186
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
187
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
188
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
189
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
190
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
191
+ }>, never, never>;
192
+ }>>>, Schema.optionalKey<Schema.Struct<{
193
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
194
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
195
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
196
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
197
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
198
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
199
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
200
+ }>, never, never>;
201
+ }>>, never, never>;
202
+ readonly data: Schema.Struct<{}>;
203
+ }> & {
204
+ type: "model.updated";
173
205
  durability: "ephemeral";
174
206
  durable: undefined;
175
207
  data: Schema.Struct<{}>;
@@ -6297,7 +6329,39 @@ export declare const Definitions: readonly [Schema.Struct<{
6297
6329
  };
6298
6330
  readonly created: Schema.Finite;
6299
6331
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6300
- readonly type: Schema.Literal<"catalog.updated">;
6332
+ readonly type: Schema.Literal<"provider.updated">;
6333
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6334
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6335
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6336
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6337
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6338
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6339
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6340
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6341
+ }>, never, never>;
6342
+ }>>>, Schema.optionalKey<Schema.Struct<{
6343
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6344
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6345
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6346
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6347
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6348
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6349
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6350
+ }>, never, never>;
6351
+ }>>, never, never>;
6352
+ readonly data: Schema.Struct<{}>;
6353
+ }> & {
6354
+ type: "provider.updated";
6355
+ durability: "ephemeral";
6356
+ durable: undefined;
6357
+ data: Schema.Struct<{}>;
6358
+ }, Schema.Struct<{
6359
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6360
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6361
+ };
6362
+ readonly created: Schema.Finite;
6363
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6364
+ readonly type: Schema.Literal<"model.updated">;
6301
6365
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6302
6366
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6303
6367
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
@@ -6319,7 +6383,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6319
6383
  }>>, never, never>;
6320
6384
  readonly data: Schema.Struct<{}>;
6321
6385
  }> & {
6322
- type: "catalog.updated";
6386
+ type: "model.updated";
6323
6387
  durability: "ephemeral";
6324
6388
  durable: undefined;
6325
6389
  data: Schema.Struct<{}>;
@@ -1,7 +1,6 @@
1
1
  export * as EventManifest from "./event-manifest.js";
2
2
  import { Schema } from "effect";
3
3
  import { Agent } from "./agent.js";
4
- import { Catalog } from "./catalog.js";
5
4
  import { Command } from "./command.js";
6
5
  import { Config } from "./config.js";
7
6
  import { Credential } from "./credential.js";
@@ -15,11 +14,13 @@ import { Integration } from "./integration.js";
15
14
  import { LegacyEventV1 } from "./legacy-event.js";
16
15
  import { LspEvent } from "./lsp-event.js";
17
16
  import { McpEvent } from "./mcp-event.js";
17
+ import { Model } from "./model.js";
18
18
  import { ModelsDev } from "./models-dev.js";
19
19
  import { Permission } from "./permission.js";
20
20
  import { PersistentPty } from "./persistent-pty.js";
21
21
  import { Plugin } from "./plugin.js";
22
22
  import { Project } from "./project.js";
23
+ import { Provider } from "./provider.js";
23
24
  import { Worktree } from "./worktree.js";
24
25
  import { Pty } from "./pty.js";
25
26
  import { Reference } from "./reference.js";
@@ -35,7 +36,7 @@ import { WorkspaceEvent } from "./workspace-event.js";
35
36
  import { WorktreeEvent } from "./worktree-event.js";
36
37
  import { WebSearch } from "./websearch.js";
37
38
  const coreDefinitions = Event.inventory(...SessionEvent.Definitions);
38
- const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Credential.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
39
+ const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Credential.Event.Definitions, ...Integration.Event.Definitions, ...Provider.Event.Definitions, ...Model.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
39
40
  const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...Project.Event.Definitions, ...Worktree.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...PersistentPty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions, ...WebSearch.Event.Definitions);
40
41
  export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions,
41
42
  // Current events the TUI consumes from the public stream.
package/dist/model.d.ts CHANGED
@@ -3,6 +3,74 @@ import { Schema } from "effect";
3
3
  import { Provider } from "./provider.js";
4
4
  export declare const ID: Schema.brand<Schema.String, "Model.ID">;
5
5
  export type ID = typeof ID.Type;
6
+ export declare const Event: {
7
+ Updated: Schema.Struct<{
8
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
9
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
10
+ };
11
+ readonly created: Schema.Finite;
12
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
13
+ readonly type: Schema.Literal<"model.updated">;
14
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
16
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
17
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
18
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
19
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
20
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
21
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
22
+ }>, never, never>;
23
+ }>>>, Schema.optionalKey<Schema.Struct<{
24
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
25
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
26
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
27
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
28
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
29
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
30
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
31
+ }>, never, never>;
32
+ }>>, never, never>;
33
+ readonly data: Schema.Struct<{}>;
34
+ }> & {
35
+ type: "model.updated";
36
+ durability: "ephemeral";
37
+ durable: undefined;
38
+ data: Schema.Struct<{}>;
39
+ };
40
+ Definitions: readonly [Schema.Struct<{
41
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
42
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
43
+ };
44
+ readonly created: Schema.Finite;
45
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
46
+ readonly type: Schema.Literal<"model.updated">;
47
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
48
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
49
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
50
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
51
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
52
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
53
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
54
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
55
+ }>, never, never>;
56
+ }>>>, Schema.optionalKey<Schema.Struct<{
57
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
58
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
59
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
60
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
61
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
62
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
63
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
64
+ }>, never, never>;
65
+ }>>, never, never>;
66
+ readonly data: Schema.Struct<{}>;
67
+ }> & {
68
+ type: "model.updated";
69
+ durability: "ephemeral";
70
+ durable: undefined;
71
+ data: Schema.Struct<{}>;
72
+ }];
73
+ };
6
74
  export declare const VariantID: Schema.brand<Schema.String, "Model.VariantID">;
7
75
  export type VariantID = typeof VariantID.Type;
8
76
  export declare const Ref: Schema.Struct<{
package/dist/model.js CHANGED
@@ -3,7 +3,10 @@ import { Schema } from "effect";
3
3
  import { optional, statics } from "./schema.js";
4
4
  import { Provider } from "./provider.js";
5
5
  import { Money } from "./money.js";
6
+ import { ephemeral, inventory } from "./event.js";
6
7
  export const ID = Schema.String.pipe(Schema.brand("Model.ID"));
8
+ const Updated = ephemeral({ type: "model.updated", schema: {} });
9
+ export const Event = { Updated, Definitions: inventory(Updated) };
7
10
  export const VariantID = Schema.String.pipe(Schema.brand("Model.VariantID"));
8
11
  export const Ref = Schema.Struct({
9
12
  id: ID,
@@ -14,6 +14,74 @@ export declare const ID: Schema.brand<Schema.String, "Provider.ID"> & {
14
14
  gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
15
15
  };
16
16
  export type ID = typeof ID.Type;
17
+ export declare const Event: {
18
+ Updated: Schema.Struct<{
19
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
20
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
21
+ };
22
+ readonly created: Schema.Finite;
23
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
24
+ readonly type: Schema.Literal<"provider.updated">;
25
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
26
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
27
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
28
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
29
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
30
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
31
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
32
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
33
+ }>, never, never>;
34
+ }>>>, Schema.optionalKey<Schema.Struct<{
35
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
36
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
37
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
38
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
39
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
40
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
41
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
42
+ }>, never, never>;
43
+ }>>, never, never>;
44
+ readonly data: Schema.Struct<{}>;
45
+ }> & {
46
+ type: "provider.updated";
47
+ durability: "ephemeral";
48
+ durable: undefined;
49
+ data: Schema.Struct<{}>;
50
+ };
51
+ Definitions: readonly [Schema.Struct<{
52
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
53
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
54
+ };
55
+ readonly created: Schema.Finite;
56
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
57
+ readonly type: Schema.Literal<"provider.updated">;
58
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
59
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
60
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
61
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
62
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
63
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
64
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
65
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
66
+ }>, never, never>;
67
+ }>>>, Schema.optionalKey<Schema.Struct<{
68
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
69
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
70
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
71
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
72
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
73
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
74
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
75
+ }>, never, never>;
76
+ }>>, never, never>;
77
+ readonly data: Schema.Struct<{}>;
78
+ }> & {
79
+ type: "provider.updated";
80
+ durability: "ephemeral";
81
+ durable: undefined;
82
+ data: Schema.Struct<{}>;
83
+ }];
84
+ };
17
85
  export declare const Package: Schema.String;
18
86
  export type Package = typeof Package.Type;
19
87
  export declare const Activation: Schema.Literals<readonly ["auto", "enabled", "disabled"]>;
package/dist/provider.js CHANGED
@@ -2,6 +2,7 @@ export * as Provider from "./provider.js";
2
2
  import { Effect, Schema } from "effect";
3
3
  import { Integration } from "./integration.js";
4
4
  import { optional, PositiveInt, statics } from "./schema.js";
5
+ import { ephemeral, inventory } from "./event.js";
5
6
  export const ID = Schema.String.pipe(Schema.brand("Provider.ID"), statics((schema) => ({
6
7
  opencode: schema.make("opencode"),
7
8
  anthropic: schema.make("anthropic"),
@@ -15,6 +16,8 @@ export const ID = Schema.String.pipe(Schema.brand("Provider.ID"), statics((schem
15
16
  mistral: schema.make("mistral"),
16
17
  gitlab: schema.make("gitlab"),
17
18
  })));
19
+ const Updated = ephemeral({ type: "provider.updated", schema: {} });
20
+ export const Event = { Updated, Definitions: inventory(Updated) };
18
21
  export const Package = Schema.String;
19
22
  export const Activation = Schema.Literals(["auto", "enabled", "disabled"]);
20
23
  export const Compaction = Schema.Union([
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-19596",
4
+ "version": "0.0.0-dev-19598",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
package/dist/catalog.d.ts DELETED
@@ -1,69 +0,0 @@
1
- export * as Catalog from "./catalog.js";
2
- export declare const Event: {
3
- Updated: import("effect/Schema").Struct<{
4
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
5
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
6
- };
7
- readonly created: import("effect/Schema").Finite;
8
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
9
- readonly type: import("effect/Schema").Literal<"catalog.updated">;
10
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
11
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
12
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
13
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
14
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
15
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
16
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
18
- }>, never, never>;
19
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
20
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
21
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
22
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
23
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
24
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
25
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
26
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
27
- }>, never, never>;
28
- }>>, never, never>;
29
- readonly data: import("effect/Schema").Struct<{}>;
30
- }> & {
31
- type: "catalog.updated";
32
- durability: "ephemeral";
33
- durable: undefined;
34
- data: import("effect/Schema").Struct<{}>;
35
- };
36
- Definitions: readonly [import("effect/Schema").Struct<{
37
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
38
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
39
- };
40
- readonly created: import("effect/Schema").Finite;
41
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
42
- readonly type: import("effect/Schema").Literal<"catalog.updated">;
43
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
44
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
45
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
46
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
47
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
48
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
49
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
50
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
51
- }>, never, never>;
52
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
53
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
54
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
55
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
56
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
57
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
58
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
59
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
60
- }>, never, never>;
61
- }>>, never, never>;
62
- readonly data: import("effect/Schema").Struct<{}>;
63
- }> & {
64
- type: "catalog.updated";
65
- durability: "ephemeral";
66
- durable: undefined;
67
- data: import("effect/Schema").Struct<{}>;
68
- }];
69
- };
package/dist/catalog.js DELETED
@@ -1,4 +0,0 @@
1
- export * as Catalog from "./catalog.js";
2
- import { ephemeral, inventory } from "./event.js";
3
- const Updated = ephemeral({ type: "catalog.updated", schema: {} });
4
- export const Event = { Updated, Definitions: inventory(Updated) };