@smithery/api 0.24.0 → 0.26.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 +22 -0
- package/client.d.mts +9 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -7
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +14 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +14 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/lib/mcp-transport.d.mts +20 -15
- package/lib/mcp-transport.d.mts.map +1 -1
- package/lib/mcp-transport.d.ts +20 -15
- package/lib/mcp-transport.d.ts.map +1 -1
- package/lib/mcp-transport.js +39 -19
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +37 -17
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +6 -2
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +6 -2
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js +4 -0
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +4 -0
- package/resources/beta/connect/connect.mjs.map +1 -1
- package/resources/beta/connect/connections.d.mts +38 -24
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +38 -24
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/connections.js +21 -21
- package/resources/beta/connect/connections.js.map +1 -1
- package/resources/beta/connect/connections.mjs +21 -21
- package/resources/beta/connect/connections.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +2 -1
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +2 -1
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js +3 -1
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs +1 -0
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/connect/tools.d.mts +51 -0
- package/resources/beta/connect/tools.d.mts.map +1 -0
- package/resources/beta/connect/tools.d.ts +51 -0
- package/resources/beta/connect/tools.d.ts.map +1 -0
- package/resources/beta/connect/tools.js +26 -0
- package/resources/beta/connect/tools.js.map +1 -0
- package/resources/beta/connect/tools.mjs +22 -0
- package/resources/beta/connect/tools.mjs.map +1 -0
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces.d.mts +11 -16
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +11 -16
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +12 -15
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +12 -15
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +30 -27
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +30 -27
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +7 -7
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +7 -7
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +2 -2
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +2 -2
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +30 -30
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +30 -30
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +6 -6
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +6 -6
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/tokens.d.mts +96 -63
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +96 -63
- package/resources/tokens.d.ts.map +1 -1
- package/resources/tokens.js +1 -4
- package/resources/tokens.js.map +1 -1
- package/resources/tokens.mjs +1 -4
- package/resources/tokens.mjs.map +1 -1
- package/src/client.ts +28 -5
- package/src/core/pagination.ts +47 -0
- package/src/lib/mcp-transport.ts +47 -24
- package/src/resources/beta/connect/connect.ts +14 -2
- package/src/resources/beta/connect/connections.ts +53 -35
- package/src/resources/beta/connect/index.ts +3 -1
- package/src/resources/beta/connect/tools.ts +73 -0
- package/src/resources/index.ts +13 -3
- package/src/resources/namespaces.ts +17 -17
- package/src/resources/servers/deployments.ts +45 -47
- package/src/resources/servers/index.ts +3 -3
- package/src/resources/servers/servers.ts +49 -49
- package/src/resources/tokens.ts +103 -58
- 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,22 @@
|
|
|
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 Tools extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Search indexed tools across all connections in a namespace. Filter by
|
|
7
|
+
* connectionId or server URL. Metadata constraints from service tokens are applied
|
|
8
|
+
* automatically.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const response = await client.beta.connect.tools.search(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* { q: 'x' },
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
search(namespace, query, options) {
|
|
19
|
+
return this._client.get(path `/connect/tools/${namespace}`, { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=tools.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAiB,EACjB,KAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Beta } from "./beta/beta.mjs";
|
|
2
2
|
export { Health, type HealthCheckResponse } from "./health.mjs";
|
|
3
|
-
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type
|
|
4
|
-
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type
|
|
3
|
+
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.mjs";
|
|
4
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.mjs";
|
|
5
5
|
export { Skills, type SkillListResponse, type SkillListParams, type SkillListResponsesSkillsPage, } from "./skills.mjs";
|
|
6
|
-
export { Tokens, type CreateTokenRequest, type CreateTokenResponse, type TokenCreateParams } from "./tokens.mjs";
|
|
6
|
+
export { Tokens, type Action, type Allow, type ConnectionScope, type CreateTokenRequest, type CreateTokenResponse, type ResourceScope, type RpcScope, type TokenCreateParams, } from "./tokens.mjs";
|
|
7
7
|
export { Uplink, type UplinkCreateTokenResponse } from "./uplink.mjs";
|
|
8
8
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Beta } from "./beta/beta.js";
|
|
2
2
|
export { Health, type HealthCheckResponse } from "./health.js";
|
|
3
|
-
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type
|
|
4
|
-
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type
|
|
3
|
+
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.js";
|
|
4
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.js";
|
|
5
5
|
export { Skills, type SkillListResponse, type SkillListParams, type SkillListResponsesSkillsPage, } from "./skills.js";
|
|
6
|
-
export { Tokens, type CreateTokenRequest, type CreateTokenResponse, type TokenCreateParams } from "./tokens.js";
|
|
6
|
+
export { Tokens, type Action, type Allow, type ConnectionScope, type CreateTokenRequest, type CreateTokenResponse, type ResourceScope, type RpcScope, type TokenCreateParams, } from "./tokens.js";
|
|
7
7
|
export { Uplink, type UplinkCreateTokenResponse } from "./uplink.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDAU2B;AATzB,kGAAA,OAAO,OAAA;AAUT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDAU2B;AATzB,kGAAA,OAAO,OAAA;AAUT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,sCAAkE;AAAzD,gGAAA,MAAM,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -4,6 +4,6 @@ export { Health } from "./health.mjs";
|
|
|
4
4
|
export { Namespaces, } from "./namespaces.mjs";
|
|
5
5
|
export { Servers, } from "./servers/servers.mjs";
|
|
6
6
|
export { Skills, } from "./skills.mjs";
|
|
7
|
-
export { Tokens } from "./tokens.mjs";
|
|
7
|
+
export { Tokens, } from "./tokens.mjs";
|
|
8
8
|
export { Uplink } from "./uplink.mjs";
|
|
9
9
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAA4B;OACpC,EACL,UAAU,GAIX;OACM,EACL,OAAO,GASR;OACM,EACL,MAAM,GAIP;OACM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAA4B;OACpC,EACL,UAAU,GAIX;OACM,EACL,OAAO,GASR;OACM,EACL,MAAM,GAIP;OACM,EACL,MAAM,GASP;OACM,EAAE,MAAM,EAAkC"}
|
|
@@ -3,25 +3,19 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Namespaces extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create a new namespace owned by the
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const namespace = await client.namespaces.create({
|
|
11
|
-
* name: 'myorg',
|
|
12
|
-
* });
|
|
13
|
-
* ```
|
|
6
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
7
|
+
* authenticated user
|
|
14
8
|
*/
|
|
15
|
-
create(
|
|
9
|
+
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
|
|
16
10
|
/**
|
|
17
11
|
* Get a list of all namespaces owned by the authenticated user
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const namespaces = await client.namespaces.list();
|
|
22
|
-
* ```
|
|
23
12
|
*/
|
|
24
13
|
list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new namespace with a user-specified name, owned by the authenticated
|
|
16
|
+
* user
|
|
17
|
+
*/
|
|
18
|
+
set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse>;
|
|
25
19
|
}
|
|
26
20
|
export interface NamespaceCreateResponse {
|
|
27
21
|
createdAt: string;
|
|
@@ -36,10 +30,11 @@ export declare namespace NamespaceListResponse {
|
|
|
36
30
|
name: string;
|
|
37
31
|
}
|
|
38
32
|
}
|
|
39
|
-
export interface
|
|
33
|
+
export interface NamespaceSetResponse {
|
|
34
|
+
createdAt: string;
|
|
40
35
|
name: string;
|
|
41
36
|
}
|
|
42
37
|
export declare namespace Namespaces {
|
|
43
|
-
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type
|
|
38
|
+
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
|
|
44
39
|
}
|
|
45
40
|
//# sourceMappingURL=namespaces.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrE;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG9E;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;CACpD;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,SAAS;QACxB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -3,25 +3,19 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class Namespaces extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create a new namespace owned by the
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const namespace = await client.namespaces.create({
|
|
11
|
-
* name: 'myorg',
|
|
12
|
-
* });
|
|
13
|
-
* ```
|
|
6
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
7
|
+
* authenticated user
|
|
14
8
|
*/
|
|
15
|
-
create(
|
|
9
|
+
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
|
|
16
10
|
/**
|
|
17
11
|
* Get a list of all namespaces owned by the authenticated user
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const namespaces = await client.namespaces.list();
|
|
22
|
-
* ```
|
|
23
12
|
*/
|
|
24
13
|
list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new namespace with a user-specified name, owned by the authenticated
|
|
16
|
+
* user
|
|
17
|
+
*/
|
|
18
|
+
set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse>;
|
|
25
19
|
}
|
|
26
20
|
export interface NamespaceCreateResponse {
|
|
27
21
|
createdAt: string;
|
|
@@ -36,10 +30,11 @@ export declare namespace NamespaceListResponse {
|
|
|
36
30
|
name: string;
|
|
37
31
|
}
|
|
38
32
|
}
|
|
39
|
-
export interface
|
|
33
|
+
export interface NamespaceSetResponse {
|
|
34
|
+
createdAt: string;
|
|
40
35
|
name: string;
|
|
41
36
|
}
|
|
42
37
|
export declare namespace Namespaces {
|
|
43
|
-
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type
|
|
38
|
+
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
|
|
44
39
|
}
|
|
45
40
|
//# sourceMappingURL=namespaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrE;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG9E;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;CACpD;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,SAAS;QACxB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/namespaces.js
CHANGED
|
@@ -3,31 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Namespaces = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
6
7
|
class Namespaces extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
|
-
* Create a new namespace owned by the
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const namespace = await client.namespaces.create({
|
|
13
|
-
* name: 'myorg',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
9
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
10
|
+
* authenticated user
|
|
16
11
|
*/
|
|
17
|
-
create(
|
|
18
|
-
return this._client.
|
|
12
|
+
create(options) {
|
|
13
|
+
return this._client.post('/namespaces', options);
|
|
19
14
|
}
|
|
20
15
|
/**
|
|
21
16
|
* Get a list of all namespaces owned by the authenticated user
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const namespaces = await client.namespaces.list();
|
|
26
|
-
* ```
|
|
27
17
|
*/
|
|
28
18
|
list(options) {
|
|
29
19
|
return this._client.get('/namespaces', options);
|
|
30
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a new namespace with a user-specified name, owned by the authenticated
|
|
23
|
+
* user
|
|
24
|
+
*/
|
|
25
|
+
set(name, options) {
|
|
26
|
+
return this._client.put((0, path_1.path) `/namespaces/${name}`, options);
|
|
27
|
+
}
|
|
31
28
|
}
|
|
32
29
|
exports.Namespaces = Namespaces;
|
|
33
30
|
//# sourceMappingURL=namespaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,IAAY,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAvBD,gCAuBC"}
|
package/resources/namespaces.mjs
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
3
4
|
export class Namespaces extends APIResource {
|
|
4
5
|
/**
|
|
5
|
-
* Create a new namespace owned by the
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* const namespace = await client.namespaces.create({
|
|
10
|
-
* name: 'myorg',
|
|
11
|
-
* });
|
|
12
|
-
* ```
|
|
6
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
7
|
+
* authenticated user
|
|
13
8
|
*/
|
|
14
|
-
create(
|
|
15
|
-
return this._client.
|
|
9
|
+
create(options) {
|
|
10
|
+
return this._client.post('/namespaces', options);
|
|
16
11
|
}
|
|
17
12
|
/**
|
|
18
13
|
* Get a list of all namespaces owned by the authenticated user
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const namespaces = await client.namespaces.list();
|
|
23
|
-
* ```
|
|
24
14
|
*/
|
|
25
15
|
list(options) {
|
|
26
16
|
return this._client.get('/namespaces', options);
|
|
27
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Create a new namespace with a user-specified name, owned by the authenticated
|
|
20
|
+
* user
|
|
21
|
+
*/
|
|
22
|
+
set(name, options) {
|
|
23
|
+
return this._client.put(path `/namespaces/${name}`, options);
|
|
24
|
+
}
|
|
28
25
|
}
|
|
29
26
|
//# sourceMappingURL=namespaces.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,IAAY,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -3,10 +3,6 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { type Uploadable } from "../../core/uploads.mjs";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
5
|
export declare class Deployments extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get deployment status
|
|
8
|
-
*/
|
|
9
|
-
retrieve(id: string, params: DeploymentRetrieveParams, options?: RequestOptions): APIPromise<DeploymentRetrieveResponse>;
|
|
10
6
|
/**
|
|
11
7
|
* List deployments for a server
|
|
12
8
|
*/
|
|
@@ -15,6 +11,10 @@ export declare class Deployments extends APIResource {
|
|
|
15
11
|
* Upload and deploy an MCP server (hosted or external)
|
|
16
12
|
*/
|
|
17
13
|
deploy(qualifiedName: string, body: DeploymentDeployParams, options?: RequestOptions): APIPromise<DeploymentDeployResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get deployment status
|
|
16
|
+
*/
|
|
17
|
+
get(id: string, params: DeploymentGetParams, options?: RequestOptions): APIPromise<DeploymentGetResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Use id='latest' to resume the most recent deployment
|
|
20
20
|
*/
|
|
@@ -32,6 +32,9 @@ export interface ExternalDeployPayload {
|
|
|
32
32
|
configSchema?: {
|
|
33
33
|
[key: string]: unknown;
|
|
34
34
|
};
|
|
35
|
+
scanCredentials?: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
35
38
|
}
|
|
36
39
|
export interface HostedDeployPayload {
|
|
37
40
|
stateful: boolean;
|
|
@@ -188,15 +191,31 @@ export declare namespace StdioDeployPayload {
|
|
|
188
191
|
commit?: string;
|
|
189
192
|
}
|
|
190
193
|
}
|
|
191
|
-
export
|
|
194
|
+
export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
|
|
195
|
+
export declare namespace DeploymentListResponse {
|
|
196
|
+
interface DeploymentListResponseItem {
|
|
197
|
+
id: string;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
status: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
mcpUrl?: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export interface DeploymentDeployResponse {
|
|
205
|
+
deploymentId: string;
|
|
206
|
+
mcpUrl: string;
|
|
207
|
+
status: string;
|
|
208
|
+
warnings?: Array<string>;
|
|
209
|
+
}
|
|
210
|
+
export interface DeploymentGetResponse {
|
|
192
211
|
id: string;
|
|
193
212
|
createdAt: string;
|
|
194
213
|
status: string;
|
|
195
214
|
updatedAt: string;
|
|
196
|
-
logs?: Array<
|
|
215
|
+
logs?: Array<DeploymentGetResponse.Log>;
|
|
197
216
|
mcpUrl?: string;
|
|
198
217
|
}
|
|
199
|
-
export declare namespace
|
|
218
|
+
export declare namespace DeploymentGetResponse {
|
|
200
219
|
interface Log {
|
|
201
220
|
level: string;
|
|
202
221
|
message: string;
|
|
@@ -210,29 +229,10 @@ export declare namespace DeploymentRetrieveResponse {
|
|
|
210
229
|
}
|
|
211
230
|
}
|
|
212
231
|
}
|
|
213
|
-
export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
|
|
214
|
-
export declare namespace DeploymentListResponse {
|
|
215
|
-
interface DeploymentListResponseItem {
|
|
216
|
-
id: string;
|
|
217
|
-
createdAt: string;
|
|
218
|
-
status: string;
|
|
219
|
-
updatedAt: string;
|
|
220
|
-
mcpUrl?: string;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
export interface DeploymentDeployResponse {
|
|
224
|
-
deploymentId: string;
|
|
225
|
-
mcpUrl: string;
|
|
226
|
-
status: string;
|
|
227
|
-
warnings?: Array<string>;
|
|
228
|
-
}
|
|
229
232
|
export interface DeploymentResumeResponse {
|
|
230
233
|
deploymentId: string;
|
|
231
234
|
status: string;
|
|
232
235
|
}
|
|
233
|
-
export interface DeploymentRetrieveParams {
|
|
234
|
-
qualifiedName: string;
|
|
235
|
-
}
|
|
236
236
|
export interface DeploymentDeployParams {
|
|
237
237
|
/**
|
|
238
238
|
* JSON-encoded deployment payload. See DeployPayload schema for structure.
|
|
@@ -251,10 +251,13 @@ export interface DeploymentDeployParams {
|
|
|
251
251
|
*/
|
|
252
252
|
sourcemap?: Uploadable;
|
|
253
253
|
}
|
|
254
|
+
export interface DeploymentGetParams {
|
|
255
|
+
qualifiedName: string;
|
|
256
|
+
}
|
|
254
257
|
export interface DeploymentResumeParams {
|
|
255
258
|
qualifiedName: string;
|
|
256
259
|
}
|
|
257
260
|
export declare namespace Deployments {
|
|
258
|
-
export { type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type
|
|
261
|
+
export { type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type DeploymentListResponse as DeploymentListResponse, type DeploymentDeployResponse as DeploymentDeployResponse, type DeploymentGetResponse as DeploymentGetResponse, type DeploymentResumeResponse as DeploymentResumeResponse, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentGetParams as DeploymentGetParams, type DeploymentResumeParams as DeploymentResumeParams, };
|
|
259
262
|
}
|
|
260
263
|
//# sourceMappingURL=deployments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.mts","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"deployments.d.mts","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIzF;;OAEG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAOvC;;OAEG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAKzG;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB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/uploads.js";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
5
|
export declare class Deployments extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get deployment status
|
|
8
|
-
*/
|
|
9
|
-
retrieve(id: string, params: DeploymentRetrieveParams, options?: RequestOptions): APIPromise<DeploymentRetrieveResponse>;
|
|
10
6
|
/**
|
|
11
7
|
* List deployments for a server
|
|
12
8
|
*/
|
|
@@ -15,6 +11,10 @@ export declare class Deployments extends APIResource {
|
|
|
15
11
|
* Upload and deploy an MCP server (hosted or external)
|
|
16
12
|
*/
|
|
17
13
|
deploy(qualifiedName: string, body: DeploymentDeployParams, options?: RequestOptions): APIPromise<DeploymentDeployResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get deployment status
|
|
16
|
+
*/
|
|
17
|
+
get(id: string, params: DeploymentGetParams, options?: RequestOptions): APIPromise<DeploymentGetResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Use id='latest' to resume the most recent deployment
|
|
20
20
|
*/
|
|
@@ -32,6 +32,9 @@ export interface ExternalDeployPayload {
|
|
|
32
32
|
configSchema?: {
|
|
33
33
|
[key: string]: unknown;
|
|
34
34
|
};
|
|
35
|
+
scanCredentials?: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
35
38
|
}
|
|
36
39
|
export interface HostedDeployPayload {
|
|
37
40
|
stateful: boolean;
|
|
@@ -188,15 +191,31 @@ export declare namespace StdioDeployPayload {
|
|
|
188
191
|
commit?: string;
|
|
189
192
|
}
|
|
190
193
|
}
|
|
191
|
-
export
|
|
194
|
+
export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
|
|
195
|
+
export declare namespace DeploymentListResponse {
|
|
196
|
+
interface DeploymentListResponseItem {
|
|
197
|
+
id: string;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
status: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
mcpUrl?: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export interface DeploymentDeployResponse {
|
|
205
|
+
deploymentId: string;
|
|
206
|
+
mcpUrl: string;
|
|
207
|
+
status: string;
|
|
208
|
+
warnings?: Array<string>;
|
|
209
|
+
}
|
|
210
|
+
export interface DeploymentGetResponse {
|
|
192
211
|
id: string;
|
|
193
212
|
createdAt: string;
|
|
194
213
|
status: string;
|
|
195
214
|
updatedAt: string;
|
|
196
|
-
logs?: Array<
|
|
215
|
+
logs?: Array<DeploymentGetResponse.Log>;
|
|
197
216
|
mcpUrl?: string;
|
|
198
217
|
}
|
|
199
|
-
export declare namespace
|
|
218
|
+
export declare namespace DeploymentGetResponse {
|
|
200
219
|
interface Log {
|
|
201
220
|
level: string;
|
|
202
221
|
message: string;
|
|
@@ -210,29 +229,10 @@ export declare namespace DeploymentRetrieveResponse {
|
|
|
210
229
|
}
|
|
211
230
|
}
|
|
212
231
|
}
|
|
213
|
-
export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
|
|
214
|
-
export declare namespace DeploymentListResponse {
|
|
215
|
-
interface DeploymentListResponseItem {
|
|
216
|
-
id: string;
|
|
217
|
-
createdAt: string;
|
|
218
|
-
status: string;
|
|
219
|
-
updatedAt: string;
|
|
220
|
-
mcpUrl?: string;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
export interface DeploymentDeployResponse {
|
|
224
|
-
deploymentId: string;
|
|
225
|
-
mcpUrl: string;
|
|
226
|
-
status: string;
|
|
227
|
-
warnings?: Array<string>;
|
|
228
|
-
}
|
|
229
232
|
export interface DeploymentResumeResponse {
|
|
230
233
|
deploymentId: string;
|
|
231
234
|
status: string;
|
|
232
235
|
}
|
|
233
|
-
export interface DeploymentRetrieveParams {
|
|
234
|
-
qualifiedName: string;
|
|
235
|
-
}
|
|
236
236
|
export interface DeploymentDeployParams {
|
|
237
237
|
/**
|
|
238
238
|
* JSON-encoded deployment payload. See DeployPayload schema for structure.
|
|
@@ -251,10 +251,13 @@ export interface DeploymentDeployParams {
|
|
|
251
251
|
*/
|
|
252
252
|
sourcemap?: Uploadable;
|
|
253
253
|
}
|
|
254
|
+
export interface DeploymentGetParams {
|
|
255
|
+
qualifiedName: string;
|
|
256
|
+
}
|
|
254
257
|
export interface DeploymentResumeParams {
|
|
255
258
|
qualifiedName: string;
|
|
256
259
|
}
|
|
257
260
|
export declare namespace Deployments {
|
|
258
|
-
export { type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type
|
|
261
|
+
export { type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type DeploymentListResponse as DeploymentListResponse, type DeploymentDeployResponse as DeploymentDeployResponse, type DeploymentGetResponse as DeploymentGetResponse, type DeploymentResumeResponse as DeploymentResumeResponse, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentGetParams as DeploymentGetParams, type DeploymentResumeParams as DeploymentResumeParams, };
|
|
259
262
|
}
|
|
260
263
|
//# sourceMappingURL=deployments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IAC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D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -6,13 +6,6 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const uploads_1 = require("../../internal/uploads.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
class Deployments extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Get deployment status
|
|
11
|
-
*/
|
|
12
|
-
retrieve(id, params, options) {
|
|
13
|
-
const { qualifiedName } = params;
|
|
14
|
-
return this._client.get((0, path_1.path) `/servers/${qualifiedName}/deployments/${id}`, options);
|
|
15
|
-
}
|
|
16
9
|
/**
|
|
17
10
|
* List deployments for a server
|
|
18
11
|
*/
|
|
@@ -25,6 +18,13 @@ class Deployments extends resource_1.APIResource {
|
|
|
25
18
|
deploy(qualifiedName, body, options) {
|
|
26
19
|
return this._client.put((0, path_1.path) `/servers/${qualifiedName}/deployments`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
27
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Get deployment status
|
|
23
|
+
*/
|
|
24
|
+
get(id, params, options) {
|
|
25
|
+
const { qualifiedName } = params;
|
|
26
|
+
return this._client.get((0, path_1.path) `/servers/${qualifiedName}/deployments/${id}`, options);
|
|
27
|
+
}
|
|
28
28
|
/**
|
|
29
29
|
* Use id='latest' to resume the most recent deployment
|
|
30
30
|
*/
|