@smithery/api 0.14.0 → 0.16.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.
- package/CHANGELOG.md +24 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +4 -0
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +4 -0
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +4 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +4 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/connect/connect.d.mts +18 -0
- package/resources/beta/connect/connect.d.mts.map +1 -0
- package/resources/beta/connect/connect.d.ts +18 -0
- package/resources/beta/connect/connect.d.ts.map +1 -0
- package/resources/beta/connect/connect.js +25 -0
- package/resources/beta/connect/connect.js.map +1 -0
- package/resources/beta/connect/connect.mjs +20 -0
- package/resources/beta/connect/connect.mjs.map +1 -0
- package/resources/beta/connect/connections.d.mts +140 -0
- package/resources/beta/connect/connections.d.mts.map +1 -0
- package/resources/beta/connect/connections.d.ts +140 -0
- package/resources/beta/connect/connections.d.ts.map +1 -0
- package/resources/beta/connect/connections.js +81 -0
- package/resources/beta/connect/connections.js.map +1 -0
- package/resources/beta/connect/connections.mjs +77 -0
- package/resources/beta/connect/connections.mjs.map +1 -0
- package/resources/beta/connect/index.d.mts +5 -0
- package/resources/beta/connect/index.d.mts.map +1 -0
- package/resources/beta/connect/index.d.ts +5 -0
- package/resources/beta/connect/index.d.ts.map +1 -0
- package/resources/beta/connect/index.js +13 -0
- package/resources/beta/connect/index.js.map +1 -0
- package/resources/beta/connect/index.mjs +6 -0
- package/resources/beta/connect/index.mjs.map +1 -0
- package/resources/beta/connect/namespaces.d.mts +79 -0
- package/resources/beta/connect/namespaces.d.mts.map +1 -0
- package/resources/beta/connect/namespaces.d.ts +79 -0
- package/resources/beta/connect/namespaces.d.ts.map +1 -0
- package/resources/beta/connect/namespaces.js +53 -0
- package/resources/beta/connect/namespaces.js.map +1 -0
- package/resources/beta/connect/namespaces.mjs +49 -0
- package/resources/beta/connect/namespaces.mjs.map +1 -0
- package/resources/beta/connect/rpc.d.mts +65 -0
- package/resources/beta/connect/rpc.d.mts.map +1 -0
- package/resources/beta/connect/rpc.d.ts +65 -0
- package/resources/beta/connect/rpc.d.ts.map +1 -0
- package/resources/beta/connect/rpc.js +33 -0
- package/resources/beta/connect/rpc.js.map +1 -0
- package/resources/beta/connect/rpc.mjs +29 -0
- package/resources/beta/connect/rpc.mjs.map +1 -0
- package/resources/beta/connect.d.mts +2 -0
- package/resources/beta/connect.d.mts.map +1 -0
- package/resources/beta/connect.d.ts +2 -0
- package/resources/beta/connect.d.ts.map +1 -0
- package/resources/beta/connect.js +6 -0
- package/resources/beta/connect.js.map +1 -0
- package/resources/beta/connect.mjs +3 -0
- package/resources/beta/connect.mjs.map +1 -0
- package/resources/beta/index.d.mts +1 -0
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -0
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +3 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -0
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/tools.d.mts +10 -0
- package/resources/beta/tools.d.mts.map +1 -1
- package/resources/beta/tools.d.ts +10 -0
- package/resources/beta/tools.d.ts.map +1 -1
- package/resources/beta/tools.js +10 -0
- package/resources/beta/tools.js.map +1 -1
- package/resources/beta/tools.mjs +10 -0
- package/resources/beta/tools.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/servers/secrets.d.mts +3 -4
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +3 -4
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +3 -4
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +3 -4
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/tokens.d.mts +117 -0
- package/resources/tokens.d.mts.map +1 -0
- package/resources/tokens.d.ts +117 -0
- package/resources/tokens.d.ts.map +1 -0
- package/resources/tokens.js +27 -0
- package/resources/tokens.js.map +1 -0
- package/resources/tokens.mjs +23 -0
- package/resources/tokens.mjs.map +1 -0
- package/src/client.ts +10 -0
- package/src/resources/beta/beta.ts +6 -0
- package/src/resources/beta/connect/connect.ts +62 -0
- package/src/resources/beta/connect/connections.ts +193 -0
- package/src/resources/beta/connect/index.ts +21 -0
- package/src/resources/beta/connect/namespaces.ts +103 -0
- package/src/resources/beta/connect/rpc.ts +91 -0
- package/src/resources/beta/connect.ts +3 -0
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/tools.ts +10 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/servers/secrets.ts +3 -4
- package/src/resources/tokens.ts +138 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Connections extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
7
|
+
* ownership.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const connection =
|
|
12
|
+
* await client.beta.connect.connections.create(
|
|
13
|
+
* 'connectionId',
|
|
14
|
+
* {
|
|
15
|
+
* namespaceId: 'namespaceId',
|
|
16
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
17
|
+
* name: 'My MCP Server',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(connectionID: string, params: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
23
|
+
/**
|
|
24
|
+
* Get details for a specific connection. Requires service token with
|
|
25
|
+
* connections:read scope.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const connection =
|
|
30
|
+
* await client.beta.connect.connections.retrieve(
|
|
31
|
+
* 'connectionId',
|
|
32
|
+
* { namespaceId: 'namespaceId' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(connectionID: string, params: ConnectionRetrieveParams, options?: RequestOptions): APIPromise<Connection>;
|
|
37
|
+
/**
|
|
38
|
+
* List all connections in a namespace. Requires service token with
|
|
39
|
+
* connections:read scope.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const connectionsListResponse =
|
|
44
|
+
* await client.beta.connect.connections.list('namespaceId');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(namespaceID: string, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
50
|
+
* namespace ownership.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const connection =
|
|
55
|
+
* await client.beta.connect.connections.delete(
|
|
56
|
+
* 'connectionId',
|
|
57
|
+
* { namespaceId: 'namespaceId' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
delete(connectionID: string, params: ConnectionDeleteParams, options?: RequestOptions): APIPromise<ConnectionDeleteResponse>;
|
|
62
|
+
}
|
|
63
|
+
export interface Connection {
|
|
64
|
+
/**
|
|
65
|
+
* Developer-defined connection ID
|
|
66
|
+
*/
|
|
67
|
+
connectionId: string;
|
|
68
|
+
/**
|
|
69
|
+
* MCP server URL
|
|
70
|
+
*/
|
|
71
|
+
mcpUrl: string;
|
|
72
|
+
metadata: {
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
} | null;
|
|
75
|
+
/**
|
|
76
|
+
* Human-readable name
|
|
77
|
+
*/
|
|
78
|
+
name: string;
|
|
79
|
+
/**
|
|
80
|
+
* ISO 8601 timestamp
|
|
81
|
+
*/
|
|
82
|
+
createdAt?: string;
|
|
83
|
+
iconUrl?: string | null;
|
|
84
|
+
}
|
|
85
|
+
export interface ConnectionsListResponse {
|
|
86
|
+
connections: Array<Connection>;
|
|
87
|
+
/**
|
|
88
|
+
* Cursor for next page, null if no more results
|
|
89
|
+
*/
|
|
90
|
+
nextCursor: string | null;
|
|
91
|
+
}
|
|
92
|
+
export interface CreateConnectionRequest {
|
|
93
|
+
/**
|
|
94
|
+
* URL of the MCP server
|
|
95
|
+
*/
|
|
96
|
+
mcpUrl: string;
|
|
97
|
+
/**
|
|
98
|
+
* Human-readable name
|
|
99
|
+
*/
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Custom metadata for filtering connections
|
|
103
|
+
*/
|
|
104
|
+
metadata?: {
|
|
105
|
+
[key: string]: unknown;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export interface ConnectionDeleteResponse {
|
|
109
|
+
success: true;
|
|
110
|
+
}
|
|
111
|
+
export interface ConnectionCreateParams {
|
|
112
|
+
/**
|
|
113
|
+
* Path param
|
|
114
|
+
*/
|
|
115
|
+
namespaceId: string;
|
|
116
|
+
/**
|
|
117
|
+
* Body param: URL of the MCP server
|
|
118
|
+
*/
|
|
119
|
+
mcpUrl: string;
|
|
120
|
+
/**
|
|
121
|
+
* Body param: Human-readable name
|
|
122
|
+
*/
|
|
123
|
+
name: string;
|
|
124
|
+
/**
|
|
125
|
+
* Body param: Custom metadata for filtering connections
|
|
126
|
+
*/
|
|
127
|
+
metadata?: {
|
|
128
|
+
[key: string]: unknown;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export interface ConnectionRetrieveParams {
|
|
132
|
+
namespaceId: string;
|
|
133
|
+
}
|
|
134
|
+
export interface ConnectionDeleteParams {
|
|
135
|
+
namespaceId: string;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace Connections {
|
|
138
|
+
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionDeleteParams as ConnectionDeleteParams, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=connections.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAQzB;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAKzB;;;;;;;;;OASG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIxF;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAIxC;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Connections extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
7
|
+
* ownership.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const connection =
|
|
12
|
+
* await client.beta.connect.connections.create(
|
|
13
|
+
* 'connectionId',
|
|
14
|
+
* {
|
|
15
|
+
* namespaceId: 'namespaceId',
|
|
16
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
17
|
+
* name: 'My MCP Server',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(connectionID: string, params: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
23
|
+
/**
|
|
24
|
+
* Get details for a specific connection. Requires service token with
|
|
25
|
+
* connections:read scope.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const connection =
|
|
30
|
+
* await client.beta.connect.connections.retrieve(
|
|
31
|
+
* 'connectionId',
|
|
32
|
+
* { namespaceId: 'namespaceId' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(connectionID: string, params: ConnectionRetrieveParams, options?: RequestOptions): APIPromise<Connection>;
|
|
37
|
+
/**
|
|
38
|
+
* List all connections in a namespace. Requires service token with
|
|
39
|
+
* connections:read scope.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const connectionsListResponse =
|
|
44
|
+
* await client.beta.connect.connections.list('namespaceId');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(namespaceID: string, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
50
|
+
* namespace ownership.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const connection =
|
|
55
|
+
* await client.beta.connect.connections.delete(
|
|
56
|
+
* 'connectionId',
|
|
57
|
+
* { namespaceId: 'namespaceId' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
delete(connectionID: string, params: ConnectionDeleteParams, options?: RequestOptions): APIPromise<ConnectionDeleteResponse>;
|
|
62
|
+
}
|
|
63
|
+
export interface Connection {
|
|
64
|
+
/**
|
|
65
|
+
* Developer-defined connection ID
|
|
66
|
+
*/
|
|
67
|
+
connectionId: string;
|
|
68
|
+
/**
|
|
69
|
+
* MCP server URL
|
|
70
|
+
*/
|
|
71
|
+
mcpUrl: string;
|
|
72
|
+
metadata: {
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
} | null;
|
|
75
|
+
/**
|
|
76
|
+
* Human-readable name
|
|
77
|
+
*/
|
|
78
|
+
name: string;
|
|
79
|
+
/**
|
|
80
|
+
* ISO 8601 timestamp
|
|
81
|
+
*/
|
|
82
|
+
createdAt?: string;
|
|
83
|
+
iconUrl?: string | null;
|
|
84
|
+
}
|
|
85
|
+
export interface ConnectionsListResponse {
|
|
86
|
+
connections: Array<Connection>;
|
|
87
|
+
/**
|
|
88
|
+
* Cursor for next page, null if no more results
|
|
89
|
+
*/
|
|
90
|
+
nextCursor: string | null;
|
|
91
|
+
}
|
|
92
|
+
export interface CreateConnectionRequest {
|
|
93
|
+
/**
|
|
94
|
+
* URL of the MCP server
|
|
95
|
+
*/
|
|
96
|
+
mcpUrl: string;
|
|
97
|
+
/**
|
|
98
|
+
* Human-readable name
|
|
99
|
+
*/
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Custom metadata for filtering connections
|
|
103
|
+
*/
|
|
104
|
+
metadata?: {
|
|
105
|
+
[key: string]: unknown;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export interface ConnectionDeleteResponse {
|
|
109
|
+
success: true;
|
|
110
|
+
}
|
|
111
|
+
export interface ConnectionCreateParams {
|
|
112
|
+
/**
|
|
113
|
+
* Path param
|
|
114
|
+
*/
|
|
115
|
+
namespaceId: string;
|
|
116
|
+
/**
|
|
117
|
+
* Body param: URL of the MCP server
|
|
118
|
+
*/
|
|
119
|
+
mcpUrl: string;
|
|
120
|
+
/**
|
|
121
|
+
* Body param: Human-readable name
|
|
122
|
+
*/
|
|
123
|
+
name: string;
|
|
124
|
+
/**
|
|
125
|
+
* Body param: Custom metadata for filtering connections
|
|
126
|
+
*/
|
|
127
|
+
metadata?: {
|
|
128
|
+
[key: string]: unknown;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export interface ConnectionRetrieveParams {
|
|
132
|
+
namespaceId: string;
|
|
133
|
+
}
|
|
134
|
+
export interface ConnectionDeleteParams {
|
|
135
|
+
namespaceId: string;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace Connections {
|
|
138
|
+
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionDeleteParams as ConnectionDeleteParams, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAQzB;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAKzB;;;;;;;;;OASG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIxF;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAIxC;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Connections = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Connections extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
10
|
+
* ownership.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const connection =
|
|
15
|
+
* await client.beta.connect.connections.create(
|
|
16
|
+
* 'connectionId',
|
|
17
|
+
* {
|
|
18
|
+
* namespaceId: 'namespaceId',
|
|
19
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
20
|
+
* name: 'My MCP Server',
|
|
21
|
+
* },
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(connectionID, params, options) {
|
|
26
|
+
const { namespaceId, ...body } = params;
|
|
27
|
+
return this._client.put((0, path_1.path) `/connect/namespaces/${namespaceId}/connections/${connectionID}`, {
|
|
28
|
+
body,
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get details for a specific connection. Requires service token with
|
|
34
|
+
* connections:read scope.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const connection =
|
|
39
|
+
* await client.beta.connect.connections.retrieve(
|
|
40
|
+
* 'connectionId',
|
|
41
|
+
* { namespaceId: 'namespaceId' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
retrieve(connectionID, params, options) {
|
|
46
|
+
const { namespaceId } = params;
|
|
47
|
+
return this._client.get((0, path_1.path) `/connect/namespaces/${namespaceId}/connections/${connectionID}`, options);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List all connections in a namespace. Requires service token with
|
|
51
|
+
* connections:read scope.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const connectionsListResponse =
|
|
56
|
+
* await client.beta.connect.connections.list('namespaceId');
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
list(namespaceID, options) {
|
|
60
|
+
return this._client.get((0, path_1.path) `/connect/namespaces/${namespaceID}/connections`, options);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
64
|
+
* namespace ownership.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const connection =
|
|
69
|
+
* await client.beta.connect.connections.delete(
|
|
70
|
+
* 'connectionId',
|
|
71
|
+
* { namespaceId: 'namespaceId' },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
delete(connectionID, params, options) {
|
|
76
|
+
const { namespaceId } = params;
|
|
77
|
+
return this._client.delete((0, path_1.path) `/connect/namespaces/${namespaceId}/connections/${connectionID}`, options);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Connections = Connections;
|
|
81
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,WAAW,gBAAgB,YAAY,EAAE,EAAE;YAC5F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,WAAW,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,WAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,WAAW,cAAc,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uBAAuB,WAAW,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5G,CAAC;CACF;AAvFD,kCAuFC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
export class Connections extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
7
|
+
* ownership.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const connection =
|
|
12
|
+
* await client.beta.connect.connections.create(
|
|
13
|
+
* 'connectionId',
|
|
14
|
+
* {
|
|
15
|
+
* namespaceId: 'namespaceId',
|
|
16
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
17
|
+
* name: 'My MCP Server',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(connectionID, params, options) {
|
|
23
|
+
const { namespaceId, ...body } = params;
|
|
24
|
+
return this._client.put(path `/connect/namespaces/${namespaceId}/connections/${connectionID}`, {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get details for a specific connection. Requires service token with
|
|
31
|
+
* connections:read scope.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const connection =
|
|
36
|
+
* await client.beta.connect.connections.retrieve(
|
|
37
|
+
* 'connectionId',
|
|
38
|
+
* { namespaceId: 'namespaceId' },
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
retrieve(connectionID, params, options) {
|
|
43
|
+
const { namespaceId } = params;
|
|
44
|
+
return this._client.get(path `/connect/namespaces/${namespaceId}/connections/${connectionID}`, options);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* List all connections in a namespace. Requires service token with
|
|
48
|
+
* connections:read scope.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const connectionsListResponse =
|
|
53
|
+
* await client.beta.connect.connections.list('namespaceId');
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
list(namespaceID, options) {
|
|
57
|
+
return this._client.get(path `/connect/namespaces/${namespaceID}/connections`, options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
61
|
+
* namespace ownership.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const connection =
|
|
66
|
+
* await client.beta.connect.connections.delete(
|
|
67
|
+
* 'connectionId',
|
|
68
|
+
* { namespaceId: 'namespaceId' },
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
delete(connectionID, params, options) {
|
|
73
|
+
const { namespaceId } = params;
|
|
74
|
+
return this._client.delete(path `/connect/namespaces/${namespaceId}/connections/${connectionID}`, options);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=connections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,WAAW,gBAAgB,YAAY,EAAE,EAAE;YAC5F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,WAAW,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,WAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,WAAW,cAAc,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAuB,WAAW,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5G,CAAC;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Connect } from "./connect.mjs";
|
|
2
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionRetrieveParams, type ConnectionDeleteParams, } from "./connections.mjs";
|
|
3
|
+
export { Namespaces, type CreateNamespaceRequest, type Namespace, type NamespaceDeleteResponse, type NamespaceCreateParams, } from "./namespaces.mjs";
|
|
4
|
+
export { Rpc, type JsonRpcRequest, type JsonRpcResponse, type RpcCallParams } from "./rpc.mjs";
|
|
5
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Connect } from "./connect.js";
|
|
2
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionRetrieveParams, type ConnectionDeleteParams, } from "./connections.js";
|
|
3
|
+
export { Namespaces, type CreateNamespaceRequest, type Namespace, type NamespaceDeleteResponse, type NamespaceCreateParams, } from "./namespaces.js";
|
|
4
|
+
export { Rpc, type JsonRpcRequest, type JsonRpcResponse, type RpcCallParams } from "./rpc.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Rpc = exports.Namespaces = exports.Connections = exports.Connect = void 0;
|
|
5
|
+
var connect_1 = require("./connect.js");
|
|
6
|
+
Object.defineProperty(exports, "Connect", { enumerable: true, get: function () { return connect_1.Connect; } });
|
|
7
|
+
var connections_1 = require("./connections.js");
|
|
8
|
+
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
|
|
9
|
+
var namespaces_1 = require("./namespaces.js");
|
|
10
|
+
Object.defineProperty(exports, "Namespaces", { enumerable: true, get: function () { return namespaces_1.Namespaces; } });
|
|
11
|
+
var rpc_1 = require("./rpc.js");
|
|
12
|
+
Object.defineProperty(exports, "Rpc", { enumerable: true, get: function () { return rpc_1.Rpc; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,gCAA2F;AAAlF,0FAAA,GAAG,OAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Connect } from "./connect.mjs";
|
|
3
|
+
export { Connections, } from "./connections.mjs";
|
|
4
|
+
export { Namespaces, } from "./namespaces.mjs";
|
|
5
|
+
export { Rpc } from "./rpc.mjs";
|
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,WAAW,GAQZ;OACM,EACL,UAAU,GAKX;OACM,EAAE,GAAG,EAAiE"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Namespaces extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new Connect namespace. Requires a valid Smithery API key.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const namespace =
|
|
11
|
+
* await client.beta.connect.namespaces.create({
|
|
12
|
+
* name: 'my-namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(body: NamespaceCreateParams, options?: RequestOptions): APIPromise<Namespace>;
|
|
17
|
+
/**
|
|
18
|
+
* Get details for a namespace. Requires API key and namespace ownership.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const namespace =
|
|
23
|
+
* await client.beta.connect.namespaces.retrieve(
|
|
24
|
+
* 'namespaceId',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
retrieve(namespaceID: string, options?: RequestOptions): APIPromise<Namespace>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete a namespace and all its connections. Requires API key and namespace
|
|
31
|
+
* ownership.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const namespace =
|
|
36
|
+
* await client.beta.connect.namespaces.delete(
|
|
37
|
+
* 'namespaceId',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
delete(namespaceID: string, options?: RequestOptions): APIPromise<NamespaceDeleteResponse>;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateNamespaceRequest {
|
|
44
|
+
/**
|
|
45
|
+
* Namespace name (lowercase alphanumeric with hyphens)
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
}
|
|
49
|
+
export interface Namespace {
|
|
50
|
+
/**
|
|
51
|
+
* Unique namespace ID
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* ISO 8601 timestamp
|
|
56
|
+
*/
|
|
57
|
+
createdAt: string;
|
|
58
|
+
/**
|
|
59
|
+
* Namespace name
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* ISO 8601 timestamp
|
|
64
|
+
*/
|
|
65
|
+
updatedAt?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface NamespaceDeleteResponse {
|
|
68
|
+
success: true;
|
|
69
|
+
}
|
|
70
|
+
export interface NamespaceCreateParams {
|
|
71
|
+
/**
|
|
72
|
+
* Namespace name (lowercase alphanumeric with hyphens)
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace Namespaces {
|
|
77
|
+
export { type CreateNamespaceRequest as CreateNamespaceRequest, type Namespace as Namespace, type NamespaceDeleteResponse as NamespaceDeleteResponse, type NamespaceCreateParams as NamespaceCreateParams, };
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=namespaces.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIpF;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAI9E;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAG3F;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Namespaces extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new Connect namespace. Requires a valid Smithery API key.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const namespace =
|
|
11
|
+
* await client.beta.connect.namespaces.create({
|
|
12
|
+
* name: 'my-namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(body: NamespaceCreateParams, options?: RequestOptions): APIPromise<Namespace>;
|
|
17
|
+
/**
|
|
18
|
+
* Get details for a namespace. Requires API key and namespace ownership.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const namespace =
|
|
23
|
+
* await client.beta.connect.namespaces.retrieve(
|
|
24
|
+
* 'namespaceId',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
retrieve(namespaceID: string, options?: RequestOptions): APIPromise<Namespace>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete a namespace and all its connections. Requires API key and namespace
|
|
31
|
+
* ownership.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const namespace =
|
|
36
|
+
* await client.beta.connect.namespaces.delete(
|
|
37
|
+
* 'namespaceId',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
delete(namespaceID: string, options?: RequestOptions): APIPromise<NamespaceDeleteResponse>;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateNamespaceRequest {
|
|
44
|
+
/**
|
|
45
|
+
* Namespace name (lowercase alphanumeric with hyphens)
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
}
|
|
49
|
+
export interface Namespace {
|
|
50
|
+
/**
|
|
51
|
+
* Unique namespace ID
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* ISO 8601 timestamp
|
|
56
|
+
*/
|
|
57
|
+
createdAt: string;
|
|
58
|
+
/**
|
|
59
|
+
* Namespace name
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* ISO 8601 timestamp
|
|
64
|
+
*/
|
|
65
|
+
updatedAt?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface NamespaceDeleteResponse {
|
|
68
|
+
success: true;
|
|
69
|
+
}
|
|
70
|
+
export interface NamespaceCreateParams {
|
|
71
|
+
/**
|
|
72
|
+
* Namespace name (lowercase alphanumeric with hyphens)
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace Namespaces {
|
|
77
|
+
export { type CreateNamespaceRequest as CreateNamespaceRequest, type Namespace as Namespace, type NamespaceDeleteResponse as NamespaceDeleteResponse, type NamespaceCreateParams as NamespaceCreateParams, };
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=namespaces.d.ts.map
|