@opencode/protocol 0.0.0-dev-20672 → 0.0.0-dev-20674

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.
@@ -21,6 +21,10 @@ export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credenti
21
21
  readonly key: Schema.String;
22
22
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
23
23
  readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
24
+ }>, Schema.Struct<{
25
+ readonly type: Schema.Literal<"external">;
26
+ readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
27
+ 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
28
  }>]>;
25
29
  }>>;
26
30
  }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.create", "POST", "/api/credential", never, never, Schema.toCodecJson<Schema.Struct<{
@@ -43,6 +47,10 @@ export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credenti
43
47
  readonly key: Schema.String;
44
48
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
45
49
  readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
50
+ }>, Schema.Struct<{
51
+ readonly type: Schema.Literal<"external">;
52
+ readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
53
+ 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
54
  }>]>;
47
55
  readonly activate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
48
56
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -65,6 +73,10 @@ export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credenti
65
73
  readonly key: Schema.String;
66
74
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
67
75
  readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
76
+ }>, Schema.Struct<{
77
+ readonly type: Schema.Literal<"external">;
78
+ readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
79
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
68
80
  }>]>;
69
81
  }>;
70
82
  }>>, Schema.toCodecJson<typeof ConflictError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.update", "PATCH", "/api/credential/:credentialID", Schema.toCodecStringTree<Schema.Struct<{
package/dist/groups/fs.js CHANGED
@@ -33,7 +33,7 @@ export const FileSystemGroup = HttpApiGroup.make("server.fs")
33
33
  .annotateMerge(OpenApi.annotations({
34
34
  identifier: "fs.read",
35
35
  summary: "Read file",
36
- description: "Serve one file relative to the requested location.",
36
+ description: "Stream one file relative to the requested location with ETag, Last-Modified, and single-range HTTP Range support (206 Partial Content, 416 Range Not Satisfiable, and 304 Not Modified; multi-range and malformed Range headers fall back to 200).",
37
37
  })))
38
38
  .add(HttpApiEndpoint.get("fs.list", "/api/fs/list", {
39
39
  query: ListQuery,
@@ -510,7 +510,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
510
510
  create: () => string & import("effect/Brand").Brand<"Credential.ID">;
511
511
  };
512
512
  readonly label: Schema.String;
513
- readonly method: Schema.Literals<readonly ["key", "oauth"]>;
513
+ readonly method: Schema.Literals<readonly ["key", "oauth", "external"]>;
514
514
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
515
515
  readonly status: Schema.Literals<readonly ["needs_auth"]>;
516
516
  readonly message: Schema.String;
@@ -1044,7 +1044,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
1044
1044
  create: () => string & import("effect/Brand").Brand<"Credential.ID">;
1045
1045
  };
1046
1046
  readonly label: Schema.String;
1047
- readonly method: Schema.Literals<readonly ["key", "oauth"]>;
1047
+ readonly method: Schema.Literals<readonly ["key", "oauth", "external"]>;
1048
1048
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1049
1049
  readonly status: Schema.Literals<readonly ["needs_auth"]>;
1050
1050
  readonly message: Schema.String;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/protocol",
4
- "version": "0.0.0-dev-20672",
4
+ "version": "0.0.0-dev-20674",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "typecheck": "tsgo --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@opencode/schema": "0.0.0-dev-20672",
35
+ "@opencode/schema": "0.0.0-dev-20674",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {