@opencode/schema 2.0.12 → 2.0.14

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.
@@ -8,6 +8,8 @@ export declare const CredentialInfo: Schema.Struct<{
8
8
  create: () => string & import("effect/Brand").Brand<"Credential.ID">;
9
9
  };
10
10
  readonly label: Schema.String;
11
+ /** How the credential was obtained: a stored key or an OAuth grant. */
12
+ readonly method: Schema.Literals<readonly ["key", "oauth"]>;
11
13
  }>;
12
14
  export interface EnvInfo extends Schema.Schema.Type<typeof EnvInfo> {
13
15
  }
@@ -21,6 +23,8 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
21
23
  create: () => string & import("effect/Brand").Brand<"Credential.ID">;
22
24
  };
23
25
  readonly label: Schema.String;
26
+ /** How the credential was obtained: a stored key or an OAuth grant. */
27
+ readonly method: Schema.Literals<readonly ["key", "oauth"]>;
24
28
  }>, Schema.Struct<{
25
29
  readonly type: Schema.Literal<"env">;
26
30
  readonly name: Schema.String;
@@ -5,6 +5,8 @@ export const CredentialInfo = Schema.Struct({
5
5
  type: Schema.Literal("credential"),
6
6
  id: Credential.ID,
7
7
  label: Schema.String,
8
+ /** How the credential was obtained: a stored key or an OAuth grant. */
9
+ method: Schema.Literals(["key", "oauth"]),
8
10
  }).annotate({ identifier: "Connection.CredentialInfo" });
9
11
  export const EnvInfo = Schema.Struct({
10
12
  type: Schema.Literal("env"),
@@ -1571,6 +1571,7 @@ export declare const Info: Schema.Struct<{
1571
1571
  create: () => string & import("effect/Brand").Brand<"Credential.ID">;
1572
1572
  };
1573
1573
  readonly label: Schema.String;
1574
+ readonly method: Schema.Literals<readonly ["key", "oauth"]>;
1574
1575
  }>, Schema.Struct<{
1575
1576
  readonly type: Schema.Literal<"env">;
1576
1577
  readonly name: 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/schema",
4
- "version": "2.0.12",
4
+ "version": "2.0.14",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {