@opencode-ai/protocol 0.0.0-next-14854 → 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 (63) hide show
  1. package/README.md +3 -0
  2. package/index.js +1 -0
  3. package/package.json +3 -23
  4. package/dist/api.d.ts +0 -49
  5. package/dist/api.js +0 -65
  6. package/dist/client.d.ts +0 -75
  7. package/dist/client.js +0 -61
  8. package/dist/errors.d.ts +0 -127
  9. package/dist/errors.js +0 -99
  10. package/dist/groups/agent.d.ts +0 -95
  11. package/dist/groups/agent.js +0 -15
  12. package/dist/groups/command.d.ts +0 -51
  13. package/dist/groups/command.js +0 -20
  14. package/dist/groups/credential.d.ts +0 -23
  15. package/dist/groups/credential.js +0 -28
  16. package/dist/groups/event.d.ts +0 -17224
  17. package/dist/groups/event.js +0 -49
  18. package/dist/groups/form.d.ts +0 -789
  19. package/dist/groups/form.js +0 -99
  20. package/dist/groups/fs.d.ts +0 -35
  21. package/dist/groups/fs.js +0 -51
  22. package/dist/groups/generate.d.ts +0 -32
  23. package/dist/groups/generate.js +0 -27
  24. package/dist/groups/health.d.ts +0 -5
  25. package/dist/groups/health.js +0 -9
  26. package/dist/groups/integration.d.ts +0 -105
  27. package/dist/groups/integration.js +0 -98
  28. package/dist/groups/location.d.ts +0 -16
  29. package/dist/groups/location.js +0 -32
  30. package/dist/groups/mcp.d.ts +0 -30
  31. package/dist/groups/mcp.js +0 -17
  32. package/dist/groups/message.d.ts +0 -446
  33. package/dist/groups/message.js +0 -42
  34. package/dist/groups/model.d.ts +0 -312
  35. package/dist/groups/model.js +0 -33
  36. package/dist/groups/permission.d.ts +0 -153
  37. package/dist/groups/permission.js +0 -99
  38. package/dist/groups/plugin.d.ts +0 -14
  39. package/dist/groups/plugin.js +0 -20
  40. package/dist/groups/project-copy.d.ts +0 -49
  41. package/dist/groups/project-copy.js +0 -44
  42. package/dist/groups/project.d.ts +0 -24
  43. package/dist/groups/project.js +0 -30
  44. package/dist/groups/provider.d.ts +0 -164
  45. package/dist/groups/provider.js +0 -34
  46. package/dist/groups/pty.d.ts +0 -145
  47. package/dist/groups/pty.js +0 -111
  48. package/dist/groups/question.d.ts +0 -92
  49. package/dist/groups/question.js +0 -56
  50. package/dist/groups/reference.d.ts +0 -13
  51. package/dist/groups/reference.js +0 -20
  52. package/dist/groups/session.d.ts +0 -5457
  53. package/dist/groups/session.js +0 -423
  54. package/dist/groups/shell.d.ts +0 -120
  55. package/dist/groups/shell.js +0 -65
  56. package/dist/groups/skill.d.ts +0 -19
  57. package/dist/groups/skill.js +0 -20
  58. package/dist/groups/vcs.d.ts +0 -33
  59. package/dist/groups/vcs.js +0 -37
  60. package/dist/middleware/authorization.d.ts +0 -13
  61. package/dist/middleware/authorization.js +0 -6
  62. package/dist/middleware/schema-error.d.ts +0 -13
  63. package/dist/middleware/schema-error.js +0 -4
@@ -1,51 +0,0 @@
1
- import { Location } from "@opencode-ai/schema/location";
2
- import { Schema } from "effect";
3
- import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
4
- export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", HttpApiEndpoint.HttpApiEndpoint<"command.list", "GET", "/api/command", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
5
- readonly location: Schema.optional<Schema.Struct<{
6
- readonly directory: Schema.optional<Schema.String>;
7
- readonly workspace: Schema.optional<Schema.String>;
8
- }>>;
9
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
10
- readonly location: typeof Location.Info;
11
- readonly data: Schema.$Array<Schema.Struct<{
12
- readonly name: Schema.String;
13
- readonly template: Schema.String;
14
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15
- readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
16
- readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
17
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
18
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
19
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
21
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
22
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
23
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
24
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
25
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
26
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
27
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
28
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
29
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
30
- };
31
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
32
- }>>>, Schema.optionalKey<Schema.Struct<{
33
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
34
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
35
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
36
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
37
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
38
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
39
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
40
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
41
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
42
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
43
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
44
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
45
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
46
- };
47
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
48
- }>>, never, never>;
49
- readonly subtask: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
50
- }>>;
51
- }>>, HttpApiEndpoint.Json<never>, never, never>, false>;
@@ -1,20 +0,0 @@
1
- import { Command } from "@opencode-ai/schema/command";
2
- import { Location } from "@opencode-ai/schema/location";
3
- import { Schema } from "effect";
4
- import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
5
- import { LocationQuery, locationQueryOpenApi } from "./location.js";
6
- export const CommandGroup = HttpApiGroup.make("server.command")
7
- .add(HttpApiEndpoint.get("command.list", "/api/command", {
8
- query: LocationQuery,
9
- success: Location.response(Schema.Array(Command.Info)),
10
- })
11
- .annotateMerge(locationQueryOpenApi)
12
- .annotateMerge(OpenApi.annotations({
13
- identifier: "v2.command.list",
14
- summary: "List commands",
15
- description: "Retrieve currently registered commands.",
16
- })))
17
- .annotateMerge(OpenApi.annotations({
18
- title: "commands",
19
- description: "Experimental command routes.",
20
- }));
@@ -1,23 +0,0 @@
1
- import { Schema } from "effect";
2
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
3
- export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credential", HttpApiEndpoint.HttpApiEndpoint<"credential.update", "PATCH", "/api/credential/:credentialID", HttpApiEndpoint.StringTree<Schema.Struct<{
4
- credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
5
- create: () => string & import("effect/Brand").Brand<"Credential.ID">;
6
- };
7
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
8
- readonly location: Schema.optional<Schema.Struct<{
9
- readonly directory: Schema.optional<Schema.String>;
10
- readonly workspace: Schema.optional<Schema.String>;
11
- }>>;
12
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
13
- readonly label: Schema.String;
14
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.remove", "DELETE", "/api/credential/:credentialID", HttpApiEndpoint.StringTree<Schema.Struct<{
15
- credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
16
- create: () => string & import("effect/Brand").Brand<"Credential.ID">;
17
- };
18
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
19
- readonly location: Schema.optional<Schema.Struct<{
20
- readonly directory: Schema.optional<Schema.String>;
21
- readonly workspace: Schema.optional<Schema.String>;
22
- }>>;
23
- }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never>, false>;
@@ -1,28 +0,0 @@
1
- import { Credential } from "@opencode-ai/schema/credential";
2
- import { Schema } from "effect";
3
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
4
- import { LocationQuery, locationQueryOpenApi } from "./location.js";
5
- export const CredentialGroup = HttpApiGroup.make("server.credential")
6
- .add(HttpApiEndpoint.patch("credential.update", "/api/credential/:credentialID", {
7
- params: { credentialID: Credential.ID },
8
- query: LocationQuery,
9
- payload: Schema.Struct({ label: Schema.String }),
10
- success: HttpApiSchema.NoContent,
11
- })
12
- .annotateMerge(locationQueryOpenApi)
13
- .annotateMerge(OpenApi.annotations({
14
- identifier: "v2.credential.update",
15
- summary: "Update credential",
16
- description: "Update a stored credential label.",
17
- })))
18
- .add(HttpApiEndpoint.delete("credential.remove", "/api/credential/:credentialID", {
19
- params: { credentialID: Credential.ID },
20
- query: LocationQuery,
21
- success: HttpApiSchema.NoContent,
22
- })
23
- .annotateMerge(locationQueryOpenApi)
24
- .annotateMerge(OpenApi.annotations({
25
- identifier: "v2.credential.remove",
26
- summary: "Remove credential",
27
- description: "Remove a stored integration credential.",
28
- })));