@opencode-ai/schema 0.0.0-next-14855 → 0.0.0-reserved.0

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.
Files changed (147) hide show
  1. package/README.md +3 -0
  2. package/index.js +1 -0
  3. package/package.json +3 -26
  4. package/dist/agent.d.ts +0 -159
  5. package/dist/agent.js +0 -43
  6. package/dist/catalog.d.ts +0 -69
  7. package/dist/catalog.js +0 -4
  8. package/dist/command.d.ts +0 -112
  9. package/dist/command.js +0 -18
  10. package/dist/config.d.ts +0 -69
  11. package/dist/config.js +0 -7
  12. package/dist/connection.d.ts +0 -28
  13. package/dist/connection.js +0 -15
  14. package/dist/credential.d.ts +0 -36
  15. package/dist/credential.js +0 -23
  16. package/dist/durable-event-manifest.d.ts +0 -2370
  17. package/dist/durable-event-manifest.js +0 -9
  18. package/dist/event-log.d.ts +0 -45
  19. package/dist/event-log.js +0 -43
  20. package/dist/event-manifest.d.ts +0 -15273
  21. package/dist/event-manifest.js +0 -52
  22. package/dist/event.d.ts +0 -142
  23. package/dist/event.js +0 -102
  24. package/dist/file-diff.d.ts +0 -11
  25. package/dist/file-diff.js +0 -10
  26. package/dist/filesystem-v1.d.ts +0 -1
  27. package/dist/filesystem-v1.js +0 -1
  28. package/dist/filesystem.d.ts +0 -118
  29. package/dist/filesystem.js +0 -35
  30. package/dist/form.d.ts +0 -1279
  31. package/dist/form.js +0 -112
  32. package/dist/ide-event.d.ts +0 -76
  33. package/dist/ide-event.js +0 -10
  34. package/dist/identifier.d.ts +0 -3
  35. package/dist/identifier.js +0 -24
  36. package/dist/index.d.ts +0 -32
  37. package/dist/index.js +0 -32
  38. package/dist/installation-event.d.ts +0 -149
  39. package/dist/installation-event.js +0 -16
  40. package/dist/integration-id.d.ts +0 -5
  41. package/dist/integration-id.js +0 -3
  42. package/dist/integration.d.ts +0 -532
  43. package/dist/integration.js +0 -93
  44. package/dist/legacy-event.d.ts +0 -1
  45. package/dist/legacy-event.js +0 -1
  46. package/dist/llm.d.ts +0 -28
  47. package/dist/llm.js +0 -19
  48. package/dist/location.d.ts +0 -36
  49. package/dist/location.js +0 -21
  50. package/dist/lsp-event.d.ts +0 -67
  51. package/dist/lsp-event.js +0 -4
  52. package/dist/mcp-event.d.ts +0 -188
  53. package/dist/mcp-event.js +0 -25
  54. package/dist/mcp.d.ts +0 -39
  55. package/dist/mcp.js +0 -38
  56. package/dist/model.d.ts +0 -213
  57. package/dist/model.js +0 -86
  58. package/dist/models-dev.d.ts +0 -69
  59. package/dist/models-dev.js +0 -7
  60. package/dist/permission-saved.d.ts +0 -18
  61. package/dist/permission-saved.js +0 -12
  62. package/dist/permission-v1.d.ts +0 -1
  63. package/dist/permission-v1.js +0 -1
  64. package/dist/permission.d.ts +0 -306
  65. package/dist/permission.js +0 -45
  66. package/dist/plugin.d.ts +0 -85
  67. package/dist/plugin.js +0 -12
  68. package/dist/project-copy.d.ts +0 -29
  69. package/dist/project-copy.js +0 -21
  70. package/dist/project-directories.d.ts +0 -85
  71. package/dist/project-directories.js +0 -8
  72. package/dist/project-id.d.ts +0 -5
  73. package/dist/project-id.js +0 -3
  74. package/dist/project.d.ts +0 -258
  75. package/dist/project.js +0 -44
  76. package/dist/prompt-input.d.ts +0 -106
  77. package/dist/prompt-input.js +0 -19
  78. package/dist/prompt.d.ts +0 -177
  79. package/dist/prompt.js +0 -43
  80. package/dist/provider.d.ts +0 -118
  81. package/dist/provider.js +0 -55
  82. package/dist/pty-ticket.d.ts +0 -8
  83. package/dist/pty-ticket.js +0 -7
  84. package/dist/pty.d.ts +0 -462
  85. package/dist/pty.js +0 -43
  86. package/dist/question-v1.d.ts +0 -1
  87. package/dist/question-v1.js +0 -1
  88. package/dist/question.d.ts +0 -456
  89. package/dist/question.js +0 -64
  90. package/dist/reference.d.ts +0 -120
  91. package/dist/reference.js +0 -31
  92. package/dist/revert.d.ts +0 -35
  93. package/dist/revert.js +0 -19
  94. package/dist/schema.d.ts +0 -10
  95. package/dist/schema.js +0 -14
  96. package/dist/server-event.d.ts +0 -132
  97. package/dist/server-event.js +0 -5
  98. package/dist/session-compaction-event.d.ts +0 -87
  99. package/dist/session-compaction-event.js +0 -10
  100. package/dist/session-context-entry.d.ts +0 -15
  101. package/dist/session-context-entry.js +0 -15
  102. package/dist/session-delivery.d.ts +0 -4
  103. package/dist/session-delivery.js +0 -3
  104. package/dist/session-event.d.ts +0 -12728
  105. package/dist/session-event.js +0 -423
  106. package/dist/session-id.d.ts +0 -6
  107. package/dist/session-id.js +0 -10
  108. package/dist/session-input.d.ts +0 -146
  109. package/dist/session-input.js +0 -18
  110. package/dist/session-message.d.ts +0 -1390
  111. package/dist/session-message.js +0 -175
  112. package/dist/session-status-event.d.ts +0 -299
  113. package/dist/session-status-event.js +0 -43
  114. package/dist/session-todo.d.ts +0 -117
  115. package/dist/session-todo.js +0 -21
  116. package/dist/session-v1.d.ts +0 -1
  117. package/dist/session-v1.js +0 -1
  118. package/dist/session.d.ts +0 -142
  119. package/dist/session.js +0 -43
  120. package/dist/shell.d.ts +0 -381
  121. package/dist/shell.js +0 -58
  122. package/dist/skill.d.ts +0 -126
  123. package/dist/skill.js +0 -45
  124. package/dist/tui-event.d.ts +0 -307
  125. package/dist/tui-event.js +0 -53
  126. package/dist/v1/filesystem.d.ts +0 -78
  127. package/dist/v1/filesystem.js +0 -8
  128. package/dist/v1/legacy-event.d.ts +0 -108
  129. package/dist/v1/legacy-event.js +0 -15
  130. package/dist/v1/permission.d.ts +0 -316
  131. package/dist/v1/permission.js +0 -41
  132. package/dist/v1/question.d.ts +0 -444
  133. package/dist/v1/question.js +0 -57
  134. package/dist/v1/session.d.ts +0 -7657
  135. package/dist/v1/session.js +0 -535
  136. package/dist/vcs-event.d.ts +0 -76
  137. package/dist/vcs-event.js +0 -11
  138. package/dist/vcs.d.ts +0 -12
  139. package/dist/vcs.js +0 -10
  140. package/dist/workspace-event.d.ts +0 -247
  141. package/dist/workspace-event.js +0 -25
  142. package/dist/workspace-id.d.ts +0 -6
  143. package/dist/workspace-id.js +0 -16
  144. package/dist/workspace.d.ts +0 -9
  145. package/dist/workspace.js +0 -5
  146. package/dist/worktree-event.d.ts +0 -153
  147. package/dist/worktree-event.js +0 -18
package/dist/model.d.ts DELETED
@@ -1,213 +0,0 @@
1
- export * as Model from "./model.js";
2
- import { Schema } from "effect";
3
- import { Provider } from "./provider.js";
4
- export declare const ID: Schema.brand<Schema.String, "ModelV2.ID">;
5
- export type ID = typeof ID.Type;
6
- export declare const VariantID: Schema.brand<Schema.String, "VariantID">;
7
- export type VariantID = typeof VariantID.Type;
8
- export declare const Ref: Schema.Struct<{
9
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
10
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
14
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
17
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
18
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
19
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
21
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
22
- };
23
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
24
- }>;
25
- export interface Ref extends Schema.Schema.Type<typeof Ref> {
26
- }
27
- export declare const Family: Schema.brand<Schema.String, "Family">;
28
- export type Family = typeof Family.Type;
29
- export interface Capabilities extends Schema.Schema.Type<typeof Capabilities> {
30
- }
31
- export declare const Capabilities: Schema.Struct<{
32
- readonly tools: Schema.Boolean;
33
- readonly input: Schema.$Array<Schema.String>;
34
- readonly output: Schema.$Array<Schema.String>;
35
- }>;
36
- export interface Cost extends Schema.Schema.Type<typeof Cost> {
37
- }
38
- export declare const Cost: Schema.Struct<{
39
- readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
40
- readonly type: Schema.Literal<"context">;
41
- readonly size: Schema.Int;
42
- }>>>, Schema.optionalKey<Schema.Struct<{
43
- readonly type: Schema.Literal<"context">;
44
- readonly size: Schema.Int;
45
- }>>, never, never>;
46
- readonly input: Schema.Finite;
47
- readonly output: Schema.Finite;
48
- readonly cache: Schema.Struct<{
49
- readonly read: Schema.Finite;
50
- readonly write: Schema.Finite;
51
- }>;
52
- }>;
53
- export declare const Api: Schema.Union<readonly [Schema.Struct<{
54
- readonly type: Schema.Literal<"aisdk">;
55
- readonly package: Schema.String;
56
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
57
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
58
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
59
- }>, Schema.Struct<{
60
- readonly type: Schema.Literal<"native">;
61
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
62
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
63
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
64
- }>]>;
65
- export type Api = typeof Api.Type;
66
- export interface Info extends Schema.Schema.Type<typeof Info> {
67
- }
68
- export declare const Info: Schema.Struct<{
69
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
70
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
71
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
72
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
73
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
74
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
75
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
76
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
77
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
78
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
79
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
80
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
81
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
82
- };
83
- readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Family">>, never, never>;
84
- readonly name: Schema.String;
85
- readonly api: Schema.Union<readonly [Schema.Struct<{
86
- readonly type: Schema.Literal<"aisdk">;
87
- readonly package: Schema.String;
88
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
89
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
90
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
91
- }>, Schema.Struct<{
92
- readonly type: Schema.Literal<"native">;
93
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
94
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
95
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
96
- }>]>;
97
- readonly capabilities: Schema.Struct<{
98
- readonly tools: Schema.Boolean;
99
- readonly input: Schema.$Array<Schema.String>;
100
- readonly output: Schema.$Array<Schema.String>;
101
- }>;
102
- readonly request: Schema.Struct<{
103
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
104
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
105
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
106
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
107
- }>;
108
- readonly variants: Schema.$Array<Schema.Struct<{
109
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
110
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
111
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
112
- readonly id: Schema.brand<Schema.String, "VariantID">;
113
- }>>;
114
- readonly time: Schema.Struct<{
115
- readonly released: Schema.Finite;
116
- }>;
117
- readonly cost: Schema.$Array<Schema.Struct<{
118
- readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
119
- readonly type: Schema.Literal<"context">;
120
- readonly size: Schema.Int;
121
- }>>>, Schema.optionalKey<Schema.Struct<{
122
- readonly type: Schema.Literal<"context">;
123
- readonly size: Schema.Int;
124
- }>>, never, never>;
125
- readonly input: Schema.Finite;
126
- readonly output: Schema.Finite;
127
- readonly cache: Schema.Struct<{
128
- readonly read: Schema.Finite;
129
- readonly write: Schema.Finite;
130
- }>;
131
- }>>;
132
- readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
133
- readonly enabled: Schema.Boolean;
134
- readonly limit: Schema.Struct<{
135
- readonly context: Schema.Int;
136
- readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
137
- readonly output: Schema.Int;
138
- }>;
139
- }> & {
140
- empty: (providerID: Provider.ID, modelID: ID) => {
141
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
142
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
143
- readonly name: string;
144
- readonly api: {
145
- readonly type: "aisdk";
146
- readonly package: string;
147
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
148
- readonly url?: string | undefined;
149
- readonly settings?: {
150
- readonly [x: string]: unknown;
151
- } | undefined;
152
- } | {
153
- readonly type: "native";
154
- readonly settings: {
155
- readonly [x: string]: unknown;
156
- };
157
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
158
- readonly url?: string | undefined;
159
- };
160
- readonly capabilities: {
161
- readonly tools: boolean;
162
- readonly input: readonly string[];
163
- readonly output: readonly string[];
164
- };
165
- readonly request: {
166
- readonly settings: {
167
- readonly [x: string]: unknown;
168
- };
169
- readonly headers: {
170
- readonly [x: string]: string;
171
- };
172
- readonly body: {
173
- readonly [x: string]: Schema.Json;
174
- };
175
- readonly variant?: string | undefined;
176
- };
177
- readonly variants: readonly {
178
- readonly settings: {
179
- readonly [x: string]: unknown;
180
- };
181
- readonly headers: {
182
- readonly [x: string]: string;
183
- };
184
- readonly body: {
185
- readonly [x: string]: Schema.Json;
186
- };
187
- readonly id: string & import("effect/Brand").Brand<"VariantID">;
188
- }[];
189
- readonly time: {
190
- readonly released: number;
191
- };
192
- readonly cost: readonly {
193
- readonly input: number;
194
- readonly output: number;
195
- readonly cache: {
196
- readonly read: number;
197
- readonly write: number;
198
- };
199
- readonly tier?: {
200
- readonly type: "context";
201
- readonly size: number;
202
- } | undefined;
203
- }[];
204
- readonly status: "alpha" | "beta" | "deprecated" | "active";
205
- readonly enabled: boolean;
206
- readonly limit: {
207
- readonly context: number;
208
- readonly output: number;
209
- readonly input?: number | undefined;
210
- };
211
- readonly family?: (string & import("effect/Brand").Brand<"Family">) | undefined;
212
- };
213
- };
package/dist/model.js DELETED
@@ -1,86 +0,0 @@
1
- export * as Model from "./model.js";
2
- import { Schema } from "effect";
3
- import { optional } from "./schema.js";
4
- import { Provider } from "./provider.js";
5
- import { statics } from "./schema.js";
6
- export const ID = Schema.String.pipe(Schema.brand("ModelV2.ID"));
7
- export const VariantID = Schema.String.pipe(Schema.brand("VariantID"));
8
- export const Ref = Schema.Struct({
9
- id: ID,
10
- providerID: Provider.ID,
11
- variant: VariantID.pipe(optional),
12
- }).annotate({ identifier: "Model.Ref" });
13
- export const Family = Schema.String.pipe(Schema.brand("Family"));
14
- export const Capabilities = Schema.Struct({
15
- tools: Schema.Boolean,
16
- input: Schema.Array(Schema.String),
17
- output: Schema.Array(Schema.String),
18
- }).annotate({ identifier: "Model.Capabilities" });
19
- export const Cost = Schema.Struct({
20
- tier: Schema.Struct({
21
- type: Schema.Literal("context"),
22
- size: Schema.Int,
23
- }).pipe(optional),
24
- input: Schema.Finite,
25
- output: Schema.Finite,
26
- cache: Schema.Struct({
27
- read: Schema.Finite,
28
- write: Schema.Finite,
29
- }),
30
- }).annotate({ identifier: "Model.Cost" });
31
- export const Api = Schema.Union([
32
- Schema.Struct({
33
- id: ID,
34
- ...Provider.AISDK.fields,
35
- }),
36
- Schema.Struct({
37
- id: ID,
38
- ...Provider.Native.fields,
39
- }),
40
- ])
41
- .pipe(Schema.toTaggedUnion("type"))
42
- .annotate({ identifier: "Model.Api" });
43
- export const Info = Schema.Struct({
44
- id: ID,
45
- providerID: Provider.ID,
46
- family: Family.pipe(optional),
47
- name: Schema.String,
48
- api: Api,
49
- capabilities: Capabilities,
50
- request: Schema.Struct({
51
- ...Provider.Request.fields,
52
- variant: Schema.String.pipe(optional),
53
- }),
54
- variants: Schema.Struct({
55
- id: VariantID,
56
- ...Provider.Request.fields,
57
- }).pipe(Schema.Array),
58
- time: Schema.Struct({
59
- released: Schema.Finite,
60
- }),
61
- cost: Schema.Array(Cost),
62
- status: Schema.Literals(["alpha", "beta", "deprecated", "active"]),
63
- enabled: Schema.Boolean,
64
- limit: Schema.Struct({
65
- context: Schema.Int,
66
- input: Schema.Int.pipe(optional),
67
- output: Schema.Int,
68
- }),
69
- })
70
- .annotate({ identifier: "ModelV2.Info" })
71
- .pipe(statics((schema) => ({
72
- empty: (providerID, modelID) => schema.make({
73
- id: modelID,
74
- providerID,
75
- name: modelID,
76
- api: { id: modelID, type: "native", settings: {} },
77
- capabilities: { tools: false, input: [], output: [] },
78
- request: { settings: {}, headers: {}, body: {} },
79
- variants: [],
80
- time: { released: 0 },
81
- cost: [],
82
- status: "active",
83
- enabled: true,
84
- limit: { context: 0, output: 0 },
85
- }),
86
- })));
@@ -1,69 +0,0 @@
1
- export * as ModelsDev from "./models-dev.js";
2
- export declare const Event: {
3
- Refreshed: 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").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
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<"models-dev.refreshed">;
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, "WorkspaceV2.ID"> & {
13
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
16
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
17
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.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, "WorkspaceV2.ID"> & {
22
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
23
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
24
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
25
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
26
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
27
- }>, never, never>;
28
- }>>, never, never>;
29
- readonly data: import("effect/Schema").Struct<{}>;
30
- }> & {
31
- type: "models-dev.refreshed";
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").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
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<"models-dev.refreshed">;
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, "WorkspaceV2.ID"> & {
46
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
47
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
48
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
49
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
50
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.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, "WorkspaceV2.ID"> & {
55
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
56
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
57
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
58
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
59
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
60
- }>, never, never>;
61
- }>>, never, never>;
62
- readonly data: import("effect/Schema").Struct<{}>;
63
- }> & {
64
- type: "models-dev.refreshed";
65
- durability: "ephemeral";
66
- durable: undefined;
67
- data: import("effect/Schema").Struct<{}>;
68
- }];
69
- };
@@ -1,7 +0,0 @@
1
- export * as ModelsDev from "./models-dev.js";
2
- import { ephemeral, inventory } from "./event.js";
3
- const Refreshed = ephemeral({
4
- type: "models-dev.refreshed",
5
- schema: {},
6
- });
7
- export const Event = { Refreshed, Definitions: inventory(Refreshed) };
@@ -1,18 +0,0 @@
1
- export * as PermissionSaved from "./permission-saved.js";
2
- import { Schema } from "effect";
3
- export declare const ID: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
4
- create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
5
- };
6
- export type ID = typeof ID.Type;
7
- export declare const Info: Schema.Struct<{
8
- readonly id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
9
- create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
10
- };
11
- readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
12
- global: string & import("effect/Brand").Brand<"Project.ID">;
13
- };
14
- readonly action: Schema.String;
15
- readonly resource: Schema.String;
16
- }>;
17
- export interface Info extends Schema.Schema.Type<typeof Info> {
18
- }
@@ -1,12 +0,0 @@
1
- export * as PermissionSaved from "./permission-saved.js";
2
- import { Schema } from "effect";
3
- import { ascending } from "./identifier.js";
4
- import { ProjectID } from "./project-id.js";
5
- import { statics } from "./schema.js";
6
- export const ID = Schema.String.pipe(Schema.brand("PermissionSaved.ID"), statics((schema) => ({ create: () => schema.make("psv_" + ascending()) })));
7
- export const Info = Schema.Struct({
8
- id: ID,
9
- projectID: ProjectID,
10
- action: Schema.String,
11
- resource: Schema.String,
12
- }).annotate({ identifier: "PermissionSaved.Info" });
@@ -1 +0,0 @@
1
- export * from "./v1/permission.js";
@@ -1 +0,0 @@
1
- export * from "./v1/permission.js";