@breign/db-schemas 0.1.11 → 0.1.13

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.
@@ -6,6 +6,19 @@ export type Tool = {
6
6
  description?: string;
7
7
  configuration?: Record<string, unknown> & {
8
8
  token?: string;
9
+ oauth2?: {
10
+ clientId: string;
11
+ clientSecret?: string;
12
+ clientName: string;
13
+ public: boolean;
14
+ authorizationServerMetadata?: {
15
+ issuer: string;
16
+ authorization_endpoint: string;
17
+ token_endpoint: string;
18
+ jwk_uri: string;
19
+ registration_endpoint: string;
20
+ };
21
+ };
9
22
  };
10
23
  mcp?: {
11
24
  definition?: {
@@ -18,4 +31,9 @@ export type Tool = {
18
31
  allowedTools?: string[];
19
32
  };
20
33
  manifest?: Record<string, unknown>;
34
+ /**
35
+ * Indicates whether the tool has been set up (e.g., OAuth2 flow completed) or not.
36
+ * If false, the tools cannot be used.
37
+ */
38
+ isSetup?: boolean;
21
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/db-schemas",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/types/tool.ts CHANGED
@@ -4,11 +4,36 @@ export type Tool = {
4
4
  type: string;
5
5
  name: string;
6
6
  description?: string;
7
- configuration?: Record<string, unknown> & { token?: string };
7
+ configuration?: Record<string, unknown> & {
8
+ token?: string;
9
+ oauth2?: {
10
+ clientId: string;
11
+ clientSecret?: string;
12
+ clientName: string;
13
+ public: boolean;
14
+ authorizationServerMetadata?: {
15
+ issuer: string;
16
+ authorization_endpoint: string;
17
+ token_endpoint: string;
18
+ jwk_uri: string;
19
+ registration_endpoint: string;
20
+ },
21
+ };
22
+ };
8
23
  mcp?: {
9
- definition?: { url?: string; transport?: 'http' | 'sse'; authType?: string; retrievedAt?: string };
24
+ definition?: {
25
+ url?: string;
26
+ transport?: 'http' | 'sse';
27
+ authType?: string;
28
+ retrievedAt?: string;
29
+ };
10
30
  introspection?: unknown;
11
31
  allowedTools?: string[];
12
32
  };
13
33
  manifest?: Record<string, unknown>;
34
+ /**
35
+ * Indicates whether the tool has been set up (e.g., OAuth2 flow completed) or not.
36
+ * If false, the tools cannot be used.
37
+ */
38
+ isSetup?: boolean;
14
39
  };