@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
@@ -1,118 +0,0 @@
1
- export * as Provider from "./provider.js";
2
- import { Schema } from "effect";
3
- export declare const ID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
7
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
10
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
14
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15
- };
16
- export type ID = typeof ID.Type;
17
- export interface AISDK extends Schema.Schema.Type<typeof AISDK> {
18
- }
19
- export declare const AISDK: Schema.Struct<{
20
- readonly type: Schema.Literal<"aisdk">;
21
- readonly package: Schema.String;
22
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
23
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
24
- }>;
25
- export interface Native extends Schema.Schema.Type<typeof Native> {
26
- }
27
- export declare const Native: Schema.Struct<{
28
- readonly type: Schema.Literal<"native">;
29
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
30
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
31
- }>;
32
- export declare const Api: Schema.Union<readonly [Schema.Struct<{
33
- readonly type: Schema.Literal<"aisdk">;
34
- readonly package: Schema.String;
35
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
36
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
37
- }>, Schema.Struct<{
38
- readonly type: Schema.Literal<"native">;
39
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
40
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
41
- }>]>;
42
- export type Api = typeof Api.Type;
43
- export declare const Settings: Schema.$Record<Schema.String, Schema.Unknown>;
44
- export type Settings = typeof Settings.Type;
45
- export interface Request extends Schema.Schema.Type<typeof Request> {
46
- }
47
- export declare const Request: Schema.Struct<{
48
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
49
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
50
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
51
- }>;
52
- export interface Info extends Schema.Schema.Type<typeof Info> {
53
- }
54
- export declare const Info: Schema.Struct<{
55
- readonly id: Schema.brand<Schema.String, "ProviderV2.ID"> & {
56
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
57
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
58
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
59
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
60
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
61
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
62
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
63
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
64
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
65
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
66
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
67
- };
68
- readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
69
- readonly name: Schema.String;
70
- readonly disabled: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
71
- readonly api: Schema.Union<readonly [Schema.Struct<{
72
- readonly type: Schema.Literal<"aisdk">;
73
- readonly package: Schema.String;
74
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
75
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
76
- }>, Schema.Struct<{
77
- readonly type: Schema.Literal<"native">;
78
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
79
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
80
- }>]>;
81
- readonly request: Schema.Struct<{
82
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
83
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
84
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
85
- }>;
86
- }> & {
87
- empty: (id: ID) => {
88
- readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
89
- readonly name: string;
90
- readonly api: {
91
- readonly type: "aisdk";
92
- readonly package: string;
93
- readonly url?: string | undefined;
94
- readonly settings?: {
95
- readonly [x: string]: unknown;
96
- } | undefined;
97
- } | {
98
- readonly type: "native";
99
- readonly settings: {
100
- readonly [x: string]: unknown;
101
- };
102
- readonly url?: string | undefined;
103
- };
104
- readonly request: {
105
- readonly settings: {
106
- readonly [x: string]: unknown;
107
- };
108
- readonly headers: {
109
- readonly [x: string]: string;
110
- };
111
- readonly body: {
112
- readonly [x: string]: Schema.Json;
113
- };
114
- };
115
- readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
116
- readonly disabled?: boolean | undefined;
117
- };
118
- };
package/dist/provider.js DELETED
@@ -1,55 +0,0 @@
1
- export * as Provider from "./provider.js";
2
- import { Effect, Schema } from "effect";
3
- import { optional } from "./schema.js";
4
- import { Integration } from "./integration.js";
5
- import { statics } from "./schema.js";
6
- export const ID = Schema.String.pipe(Schema.brand("ProviderV2.ID"), statics((schema) => ({
7
- opencode: schema.make("opencode"),
8
- anthropic: schema.make("anthropic"),
9
- openai: schema.make("openai"),
10
- google: schema.make("google"),
11
- googleVertex: schema.make("google-vertex"),
12
- githubCopilot: schema.make("github-copilot"),
13
- amazonBedrock: schema.make("amazon-bedrock"),
14
- azure: schema.make("azure"),
15
- openrouter: schema.make("openrouter"),
16
- mistral: schema.make("mistral"),
17
- gitlab: schema.make("gitlab"),
18
- })));
19
- export const AISDK = Schema.Struct({
20
- type: Schema.Literal("aisdk"),
21
- package: Schema.String,
22
- url: Schema.String.pipe(optional),
23
- settings: Schema.Record(Schema.String, Schema.Unknown).pipe(optional),
24
- }).annotate({ identifier: "Provider.AISDK" });
25
- export const Native = Schema.Struct({
26
- type: Schema.Literal("native"),
27
- url: Schema.String.pipe(optional),
28
- settings: Schema.Record(Schema.String, Schema.Unknown),
29
- }).annotate({ identifier: "Provider.Native" });
30
- export const Api = Schema.Union([AISDK, Native])
31
- .pipe(Schema.toTaggedUnion("type"))
32
- .annotate({ identifier: "Provider.Api" });
33
- export const Settings = Schema.Record(Schema.String, Schema.Unknown).annotate({ identifier: "Provider.Settings" });
34
- export const Request = Schema.Struct({
35
- settings: Settings.pipe(Schema.withConstructorDefault(Effect.succeed({}))),
36
- headers: Schema.Record(Schema.String, Schema.String),
37
- body: Schema.Record(Schema.String, Schema.Json),
38
- }).annotate({ identifier: "Provider.Request" });
39
- export const Info = Schema.Struct({
40
- id: ID,
41
- integrationID: Integration.ID.pipe(optional),
42
- name: Schema.String,
43
- disabled: Schema.Boolean.pipe(optional),
44
- api: Api,
45
- request: Request,
46
- })
47
- .annotate({ identifier: "ProviderV2.Info" })
48
- .pipe(statics((schema) => ({
49
- empty: (id) => schema.make({
50
- id,
51
- name: id,
52
- api: { type: "native", settings: {} },
53
- request: { settings: {}, headers: {}, body: {} },
54
- }),
55
- })));
@@ -1,8 +0,0 @@
1
- export * as PtyTicket from "./pty-ticket.js";
2
- import { Schema } from "effect";
3
- export declare const ConnectToken: Schema.Struct<{
4
- readonly ticket: Schema.String;
5
- readonly expires_in: Schema.Int;
6
- }>;
7
- export interface ConnectToken extends Schema.Schema.Type<typeof ConnectToken> {
8
- }
@@ -1,7 +0,0 @@
1
- export * as PtyTicket from "./pty-ticket.js";
2
- import { Schema } from "effect";
3
- import { PositiveInt } from "./schema.js";
4
- export const ConnectToken = Schema.Struct({
5
- ticket: Schema.String,
6
- expires_in: PositiveInt,
7
- }).annotate({ identifier: "PtyTicket.ConnectToken" });