@smithery/api 0.18.0 → 0.20.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 +31 -0
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +4 -8
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +4 -8
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js +0 -4
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +1 -5
- package/resources/beta/connect/connect.mjs.map +1 -1
- package/resources/beta/connect/connections.d.mts +8 -96
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +8 -96
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/connections.js +0 -72
- package/resources/beta/connect/connections.js.map +1 -1
- package/resources/beta/connect/connections.mjs +0 -72
- package/resources/beta/connect/connections.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +2 -3
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +2 -3
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js +1 -3
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs +0 -1
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/connect/rpc.d.mts +1 -42
- package/resources/beta/connect/rpc.d.mts.map +1 -1
- package/resources/beta/connect/rpc.d.ts +1 -42
- package/resources/beta/connect/rpc.d.ts.map +1 -1
- package/resources/beta/connect/rpc.js +0 -24
- package/resources/beta/connect/rpc.js.map +1 -1
- package/resources/beta/connect/rpc.mjs +0 -24
- package/resources/beta/connect/rpc.mjs.map +1 -1
- package/resources/beta/tools.d.mts +0 -10
- package/resources/beta/tools.d.mts.map +1 -1
- package/resources/beta/tools.d.ts +0 -10
- package/resources/beta/tools.d.ts.map +1 -1
- package/resources/beta/tools.js +0 -10
- package/resources/beta/tools.js.map +1 -1
- package/resources/beta/tools.mjs +0 -10
- package/resources/beta/tools.mjs.map +1 -1
- package/src/resources/beta/connect/connect.ts +3 -32
- package/src/resources/beta/connect/connections.ts +11 -136
- package/src/resources/beta/connect/index.ts +1 -11
- package/src/resources/beta/connect/rpc.ts +2 -60
- package/src/resources/beta/tools.ts +0 -10
- 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
- package/resources/beta/connect/namespaces.d.mts +0 -76
- package/resources/beta/connect/namespaces.d.mts.map +0 -1
- package/resources/beta/connect/namespaces.d.ts +0 -76
- package/resources/beta/connect/namespaces.d.ts.map +0 -1
- package/resources/beta/connect/namespaces.js +0 -61
- package/resources/beta/connect/namespaces.js.map +0 -1
- package/resources/beta/connect/namespaces.mjs +0 -57
- package/resources/beta/connect/namespaces.mjs.map +0 -1
- package/src/resources/beta/connect/namespaces.ts +0 -101
|
@@ -1,35 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
-
import { path } from '../../../internal/utils/path';
|
|
7
4
|
|
|
8
|
-
export class Rpc extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Execute a JSON-RPC call on an MCP connection. Requires service token with rpc
|
|
11
|
-
* scope.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const jsonRpcResponse = await client.beta.connect.rpc.call(
|
|
16
|
-
* 'connectionId',
|
|
17
|
-
* {
|
|
18
|
-
* namespaceId: 'namespaceId',
|
|
19
|
-
* jsonrpc: '2.0',
|
|
20
|
-
* method: 'tools/list',
|
|
21
|
-
* },
|
|
22
|
-
* );
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
call(connectionID: string, params: RpcCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse> {
|
|
26
|
-
const { namespaceId, ...body } = params;
|
|
27
|
-
return this._client.post(path`/connect/namespaces/${namespaceId}/connections/${connectionID}/rpc`, {
|
|
28
|
-
body,
|
|
29
|
-
...options,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
5
|
+
export class Rpc extends APIResource {}
|
|
33
6
|
|
|
34
7
|
export interface JsonRpcRequest {
|
|
35
8
|
jsonrpc: '2.0';
|
|
@@ -55,37 +28,6 @@ export interface JsonRpcResponse {
|
|
|
55
28
|
result?: unknown;
|
|
56
29
|
}
|
|
57
30
|
|
|
58
|
-
export interface RpcCallParams {
|
|
59
|
-
/**
|
|
60
|
-
* Path param
|
|
61
|
-
*/
|
|
62
|
-
namespaceId: string;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Body param
|
|
66
|
-
*/
|
|
67
|
-
jsonrpc: '2.0';
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Body param: MCP method to call
|
|
71
|
-
*/
|
|
72
|
-
method: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Body param
|
|
76
|
-
*/
|
|
77
|
-
id?: string | number;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Body param: Method parameters
|
|
81
|
-
*/
|
|
82
|
-
params?: unknown;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
31
|
export declare namespace Rpc {
|
|
86
|
-
export {
|
|
87
|
-
type JsonRpcRequest as JsonRpcRequest,
|
|
88
|
-
type JsonRpcResponse as JsonRpcResponse,
|
|
89
|
-
type RpcCallParams as RpcCallParams,
|
|
90
|
-
};
|
|
32
|
+
export { type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse };
|
|
91
33
|
}
|
|
@@ -8,16 +8,6 @@ export class Tools extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Get a paginated list of all MCP tools across servers. Use the `q` parameter for
|
|
10
10
|
* semantic search.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* // Automatically fetches more pages as needed.
|
|
15
|
-
* for await (const toolListResponse of client.beta.tools.list(
|
|
16
|
-
* { q: 'x' },
|
|
17
|
-
* )) {
|
|
18
|
-
* // ...
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
11
|
*/
|
|
22
12
|
list(
|
|
23
13
|
query: ToolListParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.20.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.20.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,76 +0,0 @@
|
|
|
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. Name must be URL-friendly (lowercase
|
|
7
|
-
* alphanumeric + hyphens, 3-64 chars). Requires a valid Smithery API key.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const namespace =
|
|
12
|
-
* await client.beta.connect.namespaces.create('name');
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
create(name: string, options?: RequestOptions): APIPromise<Namespace>;
|
|
16
|
-
/**
|
|
17
|
-
* Get details for a namespace. Requires API key and namespace ownership.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const namespace =
|
|
22
|
-
* await client.beta.connect.namespaces.retrieve('name');
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
retrieve(name: string, options?: RequestOptions): APIPromise<Namespace>;
|
|
26
|
-
/**
|
|
27
|
-
* List all namespaces owned by the authenticated user. Requires service token with
|
|
28
|
-
* namespaces:read permission.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const namespaces =
|
|
33
|
-
* await client.beta.connect.namespaces.list();
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Delete a namespace and all its connections. Requires API key and namespace
|
|
39
|
-
* ownership.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const namespace =
|
|
44
|
-
* await client.beta.connect.namespaces.delete('name');
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
delete(name: string, options?: RequestOptions): APIPromise<NamespaceDeleteResponse>;
|
|
48
|
-
}
|
|
49
|
-
export interface Namespace {
|
|
50
|
-
/**
|
|
51
|
-
* ISO 8601 timestamp
|
|
52
|
-
*/
|
|
53
|
-
createdAt: string;
|
|
54
|
-
/**
|
|
55
|
-
* Namespace name (also the unique ID)
|
|
56
|
-
*/
|
|
57
|
-
name: string;
|
|
58
|
-
/**
|
|
59
|
-
* ISO 8601 timestamp
|
|
60
|
-
*/
|
|
61
|
-
updatedAt?: string;
|
|
62
|
-
}
|
|
63
|
-
export interface NamespaceListResponse {
|
|
64
|
-
namespaces: Array<Namespace>;
|
|
65
|
-
/**
|
|
66
|
-
* Cursor for next page, null if no more results
|
|
67
|
-
*/
|
|
68
|
-
nextCursor: string | null;
|
|
69
|
-
}
|
|
70
|
-
export interface NamespaceDeleteResponse {
|
|
71
|
-
success: true;
|
|
72
|
-
}
|
|
73
|
-
export declare namespace Namespaces {
|
|
74
|
-
export { type Namespace as Namespace, type NamespaceListResponse as NamespaceListResponse, type NamespaceDeleteResponse as NamespaceDeleteResponse, };
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=namespaces.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIrE;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIvE;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpF;AAED,MAAM,WAAW,SAAS;IACxB;;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,qBAAqB;IACpC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1,76 +0,0 @@
|
|
|
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. Name must be URL-friendly (lowercase
|
|
7
|
-
* alphanumeric + hyphens, 3-64 chars). Requires a valid Smithery API key.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const namespace =
|
|
12
|
-
* await client.beta.connect.namespaces.create('name');
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
create(name: string, options?: RequestOptions): APIPromise<Namespace>;
|
|
16
|
-
/**
|
|
17
|
-
* Get details for a namespace. Requires API key and namespace ownership.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const namespace =
|
|
22
|
-
* await client.beta.connect.namespaces.retrieve('name');
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
retrieve(name: string, options?: RequestOptions): APIPromise<Namespace>;
|
|
26
|
-
/**
|
|
27
|
-
* List all namespaces owned by the authenticated user. Requires service token with
|
|
28
|
-
* namespaces:read permission.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const namespaces =
|
|
33
|
-
* await client.beta.connect.namespaces.list();
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Delete a namespace and all its connections. Requires API key and namespace
|
|
39
|
-
* ownership.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const namespace =
|
|
44
|
-
* await client.beta.connect.namespaces.delete('name');
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
delete(name: string, options?: RequestOptions): APIPromise<NamespaceDeleteResponse>;
|
|
48
|
-
}
|
|
49
|
-
export interface Namespace {
|
|
50
|
-
/**
|
|
51
|
-
* ISO 8601 timestamp
|
|
52
|
-
*/
|
|
53
|
-
createdAt: string;
|
|
54
|
-
/**
|
|
55
|
-
* Namespace name (also the unique ID)
|
|
56
|
-
*/
|
|
57
|
-
name: string;
|
|
58
|
-
/**
|
|
59
|
-
* ISO 8601 timestamp
|
|
60
|
-
*/
|
|
61
|
-
updatedAt?: string;
|
|
62
|
-
}
|
|
63
|
-
export interface NamespaceListResponse {
|
|
64
|
-
namespaces: Array<Namespace>;
|
|
65
|
-
/**
|
|
66
|
-
* Cursor for next page, null if no more results
|
|
67
|
-
*/
|
|
68
|
-
nextCursor: string | null;
|
|
69
|
-
}
|
|
70
|
-
export interface NamespaceDeleteResponse {
|
|
71
|
-
success: true;
|
|
72
|
-
}
|
|
73
|
-
export declare namespace Namespaces {
|
|
74
|
-
export { type Namespace as Namespace, type NamespaceListResponse as NamespaceListResponse, type NamespaceDeleteResponse as NamespaceDeleteResponse, };
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=namespaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.ts","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;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIrE;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIvE;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpF;AAED,MAAM,WAAW,SAAS;IACxB;;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,qBAAqB;IACpC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1,61 +0,0 @@
|
|
|
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.Namespaces = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
-
class Namespaces extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new Connect namespace. Name must be URL-friendly (lowercase
|
|
10
|
-
* alphanumeric + hyphens, 3-64 chars). Requires a valid Smithery API key.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const namespace =
|
|
15
|
-
* await client.beta.connect.namespaces.create('name');
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
create(name, options) {
|
|
19
|
-
return this._client.put((0, path_1.path) `/connect/namespaces/${name}`, options);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get details for a namespace. Requires API key and namespace ownership.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const namespace =
|
|
27
|
-
* await client.beta.connect.namespaces.retrieve('name');
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
retrieve(name, options) {
|
|
31
|
-
return this._client.get((0, path_1.path) `/connect/namespaces/${name}`, options);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* List all namespaces owned by the authenticated user. Requires service token with
|
|
35
|
-
* namespaces:read permission.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const namespaces =
|
|
40
|
-
* await client.beta.connect.namespaces.list();
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
list(options) {
|
|
44
|
-
return this._client.get('/connect/namespaces', options);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Delete a namespace and all its connections. Requires API key and namespace
|
|
48
|
-
* ownership.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```ts
|
|
52
|
-
* const namespace =
|
|
53
|
-
* await client.beta.connect.namespaces.delete('name');
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
delete(name, options) {
|
|
57
|
-
return this._client.delete((0, path_1.path) `/connect/namespaces/${name}`, options);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.Namespaces = Namespaces;
|
|
61
|
-
//# sourceMappingURL=namespaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAY,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAY,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uBAAuB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAvDD,gCAuDC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
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 Namespaces extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new Connect namespace. Name must be URL-friendly (lowercase
|
|
7
|
-
* alphanumeric + hyphens, 3-64 chars). Requires a valid Smithery API key.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const namespace =
|
|
12
|
-
* await client.beta.connect.namespaces.create('name');
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
create(name, options) {
|
|
16
|
-
return this._client.put(path `/connect/namespaces/${name}`, options);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Get details for a namespace. Requires API key and namespace ownership.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const namespace =
|
|
24
|
-
* await client.beta.connect.namespaces.retrieve('name');
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
retrieve(name, options) {
|
|
28
|
-
return this._client.get(path `/connect/namespaces/${name}`, options);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* List all namespaces owned by the authenticated user. Requires service token with
|
|
32
|
-
* namespaces:read permission.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const namespaces =
|
|
37
|
-
* await client.beta.connect.namespaces.list();
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
list(options) {
|
|
41
|
-
return this._client.get('/connect/namespaces', options);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Delete a namespace and all its connections. Requires API key and namespace
|
|
45
|
-
* ownership.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* const namespace =
|
|
50
|
-
* await client.beta.connect.namespaces.delete('name');
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
delete(name, options) {
|
|
54
|
-
return this._client.delete(path `/connect/namespaces/${name}`, options);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=namespaces.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAY,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAY,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAuB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
-
import { path } from '../../../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
export class Namespaces extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new Connect namespace. Name must be URL-friendly (lowercase
|
|
11
|
-
* alphanumeric + hyphens, 3-64 chars). Requires a valid Smithery API key.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const namespace =
|
|
16
|
-
* await client.beta.connect.namespaces.create('name');
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(name: string, options?: RequestOptions): APIPromise<Namespace> {
|
|
20
|
-
return this._client.put(path`/connect/namespaces/${name}`, options);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Get details for a namespace. Requires API key and namespace ownership.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const namespace =
|
|
29
|
-
* await client.beta.connect.namespaces.retrieve('name');
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
retrieve(name: string, options?: RequestOptions): APIPromise<Namespace> {
|
|
33
|
-
return this._client.get(path`/connect/namespaces/${name}`, options);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* List all namespaces owned by the authenticated user. Requires service token with
|
|
38
|
-
* namespaces:read permission.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const namespaces =
|
|
43
|
-
* await client.beta.connect.namespaces.list();
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
list(options?: RequestOptions): APIPromise<NamespaceListResponse> {
|
|
47
|
-
return this._client.get('/connect/namespaces', options);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Delete a namespace and all its connections. Requires API key and namespace
|
|
52
|
-
* ownership.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const namespace =
|
|
57
|
-
* await client.beta.connect.namespaces.delete('name');
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
delete(name: string, options?: RequestOptions): APIPromise<NamespaceDeleteResponse> {
|
|
61
|
-
return this._client.delete(path`/connect/namespaces/${name}`, options);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface Namespace {
|
|
66
|
-
/**
|
|
67
|
-
* ISO 8601 timestamp
|
|
68
|
-
*/
|
|
69
|
-
createdAt: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Namespace name (also the unique ID)
|
|
73
|
-
*/
|
|
74
|
-
name: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* ISO 8601 timestamp
|
|
78
|
-
*/
|
|
79
|
-
updatedAt?: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface NamespaceListResponse {
|
|
83
|
-
namespaces: Array<Namespace>;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Cursor for next page, null if no more results
|
|
87
|
-
*/
|
|
88
|
-
nextCursor: string | null;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface NamespaceDeleteResponse {
|
|
92
|
-
success: true;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export declare namespace Namespaces {
|
|
96
|
-
export {
|
|
97
|
-
type Namespace as Namespace,
|
|
98
|
-
type NamespaceListResponse as NamespaceListResponse,
|
|
99
|
-
type NamespaceDeleteResponse as NamespaceDeleteResponse,
|
|
100
|
-
};
|
|
101
|
-
}
|