@smithery/api 0.26.0 → 0.28.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 +8 -0
- package/README.md +10 -5
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/tools.d.mts +5 -9
- package/resources/beta/connect/tools.d.mts.map +1 -1
- package/resources/beta/connect/tools.d.ts +5 -9
- package/resources/beta/connect/tools.d.ts.map +1 -1
- package/resources/beta/connect/tools.js +4 -5
- package/resources/beta/connect/tools.js.map +1 -1
- package/resources/beta/connect/tools.mjs +4 -5
- package/resources/beta/connect/tools.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +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/index.d.mts +3 -0
- package/resources/namespaces/index.d.mts.map +1 -0
- package/resources/namespaces/index.d.ts +3 -0
- package/resources/namespaces/index.d.ts.map +1 -0
- package/resources/namespaces/index.js +9 -0
- package/resources/namespaces/index.js.map +1 -0
- package/resources/namespaces/index.mjs +4 -0
- package/resources/namespaces/index.mjs.map +1 -0
- package/resources/namespaces/namespaces.d.mts +60 -0
- package/resources/namespaces/namespaces.d.mts.map +1 -0
- package/resources/namespaces/namespaces.d.ts +60 -0
- package/resources/namespaces/namespaces.d.ts.map +1 -0
- package/resources/namespaces/namespaces.js +54 -0
- package/resources/namespaces/namespaces.js.map +1 -0
- package/resources/namespaces/namespaces.mjs +49 -0
- package/resources/namespaces/namespaces.mjs.map +1 -0
- package/resources/namespaces/servers.d.mts +46 -0
- package/resources/namespaces/servers.d.mts.map +1 -0
- package/resources/namespaces/servers.d.ts +46 -0
- package/resources/namespaces/servers.d.ts.map +1 -0
- package/resources/namespaces/servers.js +25 -0
- package/resources/namespaces/servers.js.map +1 -0
- package/resources/namespaces/servers.mjs +21 -0
- package/resources/namespaces/servers.mjs.map +1 -0
- package/resources/namespaces.d.mts +1 -39
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +1 -39
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +2 -26
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +1 -24
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +55 -9
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +55 -9
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +42 -8
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +42 -8
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +4 -3
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +4 -3
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js +3 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +1 -0
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +15 -4
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +15 -4
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +10 -2
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +10 -2
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +98 -0
- package/resources/servers/repo.d.mts.map +1 -0
- package/resources/servers/repo.d.ts +98 -0
- package/resources/servers/repo.d.ts.map +1 -0
- package/resources/servers/repo.js +55 -0
- package/resources/servers/repo.js.map +1 -0
- package/resources/servers/repo.mjs +51 -0
- package/resources/servers/repo.mjs.map +1 -0
- package/resources/servers/secrets.d.mts +46 -4
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +46 -4
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +36 -6
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +36 -6
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +55 -10
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +55 -10
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +47 -8
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +47 -8
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +12 -6
- package/src/resources/beta/connect/tools.ts +6 -9
- package/src/resources/index.ts +4 -1
- package/src/resources/namespaces/index.ts +14 -0
- package/src/resources/namespaces/namespaces.ts +92 -0
- package/src/resources/namespaces/servers.ts +71 -0
- package/src/resources/namespaces.ts +1 -61
- package/src/resources/servers/deployments.ts +76 -15
- package/src/resources/servers/index.ts +14 -0
- package/src/resources/servers/logs.ts +18 -9
- package/src/resources/servers/repo.ts +143 -0
- package/src/resources/servers/secrets.ts +55 -7
- package/src/resources/servers/servers.ts +88 -8
- 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/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var beta_1 = require("./beta/beta.js");
|
|
|
6
6
|
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
|
|
7
7
|
var health_1 = require("./health.js");
|
|
8
8
|
Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
|
|
9
|
-
var namespaces_1 = require("./namespaces.js");
|
|
9
|
+
var namespaces_1 = require("./namespaces/namespaces.js");
|
|
10
10
|
Object.defineProperty(exports, "Namespaces", { enumerable: true, get: function () { return namespaces_1.Namespaces; } });
|
|
11
11
|
var servers_1 = require("./servers/servers.js");
|
|
12
12
|
Object.defineProperty(exports, "Servers", { enumerable: true, get: function () { return servers_1.Servers; } });
|
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,
|
|
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,yDAKiC;AAJ/B,wGAAA,UAAU,OAAA;AAKZ,gDAa2B;AAZzB,kGAAA,OAAO,OAAA;AAaT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,sCAAkE;AAAzD,gGAAA,MAAM,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Beta } from "./beta/beta.mjs";
|
|
3
3
|
export { Health } from "./health.mjs";
|
|
4
|
-
export { Namespaces, } from "./namespaces.mjs";
|
|
4
|
+
export { Namespaces, } from "./namespaces/namespaces.mjs";
|
|
5
5
|
export { Servers, } from "./servers/servers.mjs";
|
|
6
6
|
export { Skills, } from "./skills.mjs";
|
|
7
7
|
export { Tokens, } from "./tokens.mjs";
|
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,
|
|
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,GAYR;OACM,EACL,MAAM,GAIP;OACM,EACL,MAAM,GASP;OACM,EAAE,MAAM,EAAkC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.mjs";
|
|
2
|
+
export { Servers, type CreateServerRequest, type CreateServerResponse, type ServerCreateParams, } from "./servers.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/namespaces/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.js";
|
|
2
|
+
export { Servers, type CreateServerRequest, type CreateServerResponse, type ServerCreateParams, } from "./servers.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/namespaces/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Servers = exports.Namespaces = void 0;
|
|
5
|
+
var namespaces_1 = require("./namespaces.js");
|
|
6
|
+
Object.defineProperty(exports, "Namespaces", { enumerable: true, get: function () { return namespaces_1.Namespaces; } });
|
|
7
|
+
var servers_1 = require("./servers.js");
|
|
8
|
+
Object.defineProperty(exports, "Servers", { enumerable: true, get: function () { return servers_1.Servers; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/namespaces/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,wCAKmB;AAJjB,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/namespaces/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,UAAU,GAIX;OACM,EACL,OAAO,GAIR"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ServersAPI from "./servers.mjs";
|
|
3
|
+
import { CreateServerRequest, CreateServerResponse, ServerCreateParams, Servers } from "./servers.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Namespaces extends APIResource {
|
|
7
|
+
servers: ServersAPI.Servers;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
10
|
+
* authenticated user
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const namespace = await client.namespaces.create();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a list of all namespaces owned by the authenticated user
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const namespaces = await client.namespaces.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Create a new namespace owned by the authenticated user. This endpoint is
|
|
29
|
+
* idempotent - if the namespace already exists and is owned by the user, returns
|
|
30
|
+
* success.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.namespaces.set('xxx');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse>;
|
|
38
|
+
}
|
|
39
|
+
export interface NamespaceCreateResponse {
|
|
40
|
+
createdAt: string;
|
|
41
|
+
name: string;
|
|
42
|
+
}
|
|
43
|
+
export interface NamespaceListResponse {
|
|
44
|
+
namespaces: Array<NamespaceListResponse.Namespace>;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace NamespaceListResponse {
|
|
47
|
+
interface Namespace {
|
|
48
|
+
createdAt: string;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface NamespaceSetResponse {
|
|
53
|
+
createdAt: string;
|
|
54
|
+
name: string;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace Namespaces {
|
|
57
|
+
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
|
|
58
|
+
export { Servers as Servers, type CreateServerRequest as CreateServerRequest, type CreateServerResponse as CreateServerResponse, type ServerCreateParams as ServerCreateParams, };
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=namespaces.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../../src/resources/namespaces/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,OAAO,EAAE;OAC1E,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrE;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;;;;;;;OASG;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;AAID,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;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ServersAPI from "./servers.js";
|
|
3
|
+
import { CreateServerRequest, CreateServerResponse, ServerCreateParams, Servers } from "./servers.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
export declare class Namespaces extends APIResource {
|
|
7
|
+
servers: ServersAPI.Servers;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
10
|
+
* authenticated user
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const namespace = await client.namespaces.create();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a list of all namespaces owned by the authenticated user
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const namespaces = await client.namespaces.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Create a new namespace owned by the authenticated user. This endpoint is
|
|
29
|
+
* idempotent - if the namespace already exists and is owned by the user, returns
|
|
30
|
+
* success.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.namespaces.set('xxx');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse>;
|
|
38
|
+
}
|
|
39
|
+
export interface NamespaceCreateResponse {
|
|
40
|
+
createdAt: string;
|
|
41
|
+
name: string;
|
|
42
|
+
}
|
|
43
|
+
export interface NamespaceListResponse {
|
|
44
|
+
namespaces: Array<NamespaceListResponse.Namespace>;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace NamespaceListResponse {
|
|
47
|
+
interface Namespace {
|
|
48
|
+
createdAt: string;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface NamespaceSetResponse {
|
|
53
|
+
createdAt: string;
|
|
54
|
+
name: string;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace Namespaces {
|
|
57
|
+
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
|
|
58
|
+
export { Servers as Servers, type CreateServerRequest as CreateServerRequest, type CreateServerResponse as CreateServerResponse, type ServerCreateParams as ServerCreateParams, };
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=namespaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../../src/resources/namespaces/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,OAAO,EAAE;OAC1E,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrE;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;;;;;;;OASG;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;AAID,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;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ServersAPI = tslib_1.__importStar(require("./servers.js"));
|
|
8
|
+
const servers_1 = require("./servers.js");
|
|
9
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
10
|
+
class Namespaces extends resource_1.APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.servers = new ServersAPI.Servers(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
17
|
+
* authenticated user
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const namespace = await client.namespaces.create();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(options) {
|
|
25
|
+
return this._client.post('/namespaces', options);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get a list of all namespaces owned by the authenticated user
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const namespaces = await client.namespaces.list();
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
list(options) {
|
|
36
|
+
return this._client.get('/namespaces', options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Create a new namespace owned by the authenticated user. This endpoint is
|
|
40
|
+
* idempotent - if the namespace already exists and is owned by the user, returns
|
|
41
|
+
* success.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const response = await client.namespaces.set('xxx');
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
set(name, options) {
|
|
49
|
+
return this._client.put((0, path_1.path) `/namespaces/${name}`, options);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.Namespaces = Namespaces;
|
|
53
|
+
Namespaces.Servers = servers_1.Servers;
|
|
54
|
+
//# sourceMappingURL=namespaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../../src/resources/namespaces/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAAmG;AAGnG,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwCrE,CAAC;IAtCC;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;;;;;OASG;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;AAzCD,gCAyCC;AA0BD,UAAU,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ServersAPI from "./servers.mjs";
|
|
4
|
+
import { Servers } from "./servers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
export class Namespaces extends APIResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.servers = new ServersAPI.Servers(this._client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
13
|
+
* authenticated user
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const namespace = await client.namespaces.create();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(options) {
|
|
21
|
+
return this._client.post('/namespaces', options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get a list of all namespaces owned by the authenticated user
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const namespaces = await client.namespaces.list();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(options) {
|
|
32
|
+
return this._client.get('/namespaces', options);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create a new namespace owned by the authenticated user. This endpoint is
|
|
36
|
+
* idempotent - if the namespace already exists and is owned by the user, returns
|
|
37
|
+
* success.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const response = await client.namespaces.set('xxx');
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
set(name, options) {
|
|
45
|
+
return this._client.put(path `/namespaces/${name}`, options);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
Namespaces.Servers = Servers;
|
|
49
|
+
//# sourceMappingURL=namespaces.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../../src/resources/namespaces/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAiE,OAAO,EAAE;OAG1E,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwCrE,CAAC;IAtCC;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;;;;;OASG;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;AA0BD,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 Servers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new server under the specified namespace. This endpoint is idempotent.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const createServerResponse =
|
|
11
|
+
* await client.namespaces.servers.create('xxx', {
|
|
12
|
+
* namespace: 'namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(server: string, params: ServerCreateParams, options?: RequestOptions): APIPromise<CreateServerResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateServerRequest {
|
|
19
|
+
description?: string;
|
|
20
|
+
displayName?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateServerResponse {
|
|
23
|
+
createdAt: string;
|
|
24
|
+
description: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
namespace: string;
|
|
27
|
+
server: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ServerCreateParams {
|
|
30
|
+
/**
|
|
31
|
+
* Path param
|
|
32
|
+
*/
|
|
33
|
+
namespace: string;
|
|
34
|
+
/**
|
|
35
|
+
* Body param
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Body param
|
|
40
|
+
*/
|
|
41
|
+
displayName?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace Servers {
|
|
44
|
+
export { type CreateServerRequest as CreateServerRequest, type CreateServerResponse as CreateServerResponse, type ServerCreateParams as ServerCreateParams, };
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=servers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.d.mts","sourceRoot":"","sources":["../../src/resources/namespaces/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAIpC;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 Servers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new server under the specified namespace. This endpoint is idempotent.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const createServerResponse =
|
|
11
|
+
* await client.namespaces.servers.create('xxx', {
|
|
12
|
+
* namespace: 'namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(server: string, params: ServerCreateParams, options?: RequestOptions): APIPromise<CreateServerResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateServerRequest {
|
|
19
|
+
description?: string;
|
|
20
|
+
displayName?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateServerResponse {
|
|
23
|
+
createdAt: string;
|
|
24
|
+
description: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
namespace: string;
|
|
27
|
+
server: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ServerCreateParams {
|
|
30
|
+
/**
|
|
31
|
+
* Path param
|
|
32
|
+
*/
|
|
33
|
+
namespace: string;
|
|
34
|
+
/**
|
|
35
|
+
* Body param
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Body param
|
|
40
|
+
*/
|
|
41
|
+
displayName?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace Servers {
|
|
44
|
+
export { type CreateServerRequest as CreateServerRequest, type CreateServerResponse as CreateServerResponse, type ServerCreateParams as ServerCreateParams, };
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=servers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/resources/namespaces/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAIpC;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.Servers = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Servers extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new server under the specified namespace. This endpoint is idempotent.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const createServerResponse =
|
|
14
|
+
* await client.namespaces.servers.create('xxx', {
|
|
15
|
+
* namespace: 'namespace',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(server, params, options) {
|
|
20
|
+
const { namespace, ...body } = params;
|
|
21
|
+
return this._client.put((0, path_1.path) `/namespaces/${namespace}/servers/${server}`, { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Servers = Servers;
|
|
25
|
+
//# sourceMappingURL=servers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../../src/resources/namespaces/servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,SAAS,YAAY,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF;AApBD,0BAoBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 Servers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new server under the specified namespace. This endpoint is idempotent.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const createServerResponse =
|
|
11
|
+
* await client.namespaces.servers.create('xxx', {
|
|
12
|
+
* namespace: 'namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(server, params, options) {
|
|
17
|
+
const { namespace, ...body } = params;
|
|
18
|
+
return this._client.put(path `/namespaces/${namespace}/servers/${server}`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=servers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.mjs","sourceRoot":"","sources":["../../src/resources/namespaces/servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,SAAS,YAAY,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF"}
|
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
|
|
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 namespace with a server-generated human-readable name, owned by the
|
|
7
|
-
* authenticated user
|
|
8
|
-
*/
|
|
9
|
-
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Get a list of all namespaces owned by the authenticated user
|
|
12
|
-
*/
|
|
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>;
|
|
19
|
-
}
|
|
20
|
-
export interface NamespaceCreateResponse {
|
|
21
|
-
createdAt: string;
|
|
22
|
-
name: string;
|
|
23
|
-
}
|
|
24
|
-
export interface NamespaceListResponse {
|
|
25
|
-
namespaces: Array<NamespaceListResponse.Namespace>;
|
|
26
|
-
}
|
|
27
|
-
export declare namespace NamespaceListResponse {
|
|
28
|
-
interface Namespace {
|
|
29
|
-
createdAt: string;
|
|
30
|
-
name: string;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export interface NamespaceSetResponse {
|
|
34
|
-
createdAt: string;
|
|
35
|
-
name: string;
|
|
36
|
-
}
|
|
37
|
-
export declare namespace Namespaces {
|
|
38
|
-
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
|
|
39
|
-
}
|
|
1
|
+
export * from "./namespaces/index.mjs";
|
|
40
2
|
//# sourceMappingURL=namespaces.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
|
|
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 namespace with a server-generated human-readable name, owned by the
|
|
7
|
-
* authenticated user
|
|
8
|
-
*/
|
|
9
|
-
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Get a list of all namespaces owned by the authenticated user
|
|
12
|
-
*/
|
|
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>;
|
|
19
|
-
}
|
|
20
|
-
export interface NamespaceCreateResponse {
|
|
21
|
-
createdAt: string;
|
|
22
|
-
name: string;
|
|
23
|
-
}
|
|
24
|
-
export interface NamespaceListResponse {
|
|
25
|
-
namespaces: Array<NamespaceListResponse.Namespace>;
|
|
26
|
-
}
|
|
27
|
-
export declare namespace NamespaceListResponse {
|
|
28
|
-
interface Namespace {
|
|
29
|
-
createdAt: string;
|
|
30
|
-
name: string;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export interface NamespaceSetResponse {
|
|
34
|
-
createdAt: string;
|
|
35
|
-
name: string;
|
|
36
|
-
}
|
|
37
|
-
export declare namespace Namespaces {
|
|
38
|
-
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
|
|
39
|
-
}
|
|
1
|
+
export * from "./namespaces/index.js";
|
|
40
2
|
//# sourceMappingURL=namespaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":""}
|
package/resources/namespaces.js
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const path_1 = require("../internal/utils/path.js");
|
|
7
|
-
class Namespaces extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
10
|
-
* authenticated user
|
|
11
|
-
*/
|
|
12
|
-
create(options) {
|
|
13
|
-
return this._client.post('/namespaces', options);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get a list of all namespaces owned by the authenticated user
|
|
17
|
-
*/
|
|
18
|
-
list(options) {
|
|
19
|
-
return this._client.get('/namespaces', options);
|
|
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
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.Namespaces = Namespaces;
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./namespaces/index.js"), exports);
|
|
30
6
|
//# sourceMappingURL=namespaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
|
package/resources/namespaces.mjs
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { path } from "../internal/utils/path.mjs";
|
|
4
|
-
export class Namespaces extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
7
|
-
* authenticated user
|
|
8
|
-
*/
|
|
9
|
-
create(options) {
|
|
10
|
-
return this._client.post('/namespaces', options);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Get a list of all namespaces owned by the authenticated user
|
|
14
|
-
*/
|
|
15
|
-
list(options) {
|
|
16
|
-
return this._client.get('/namespaces', options);
|
|
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
|
-
}
|
|
25
|
-
}
|
|
2
|
+
export * from "./namespaces/index.mjs";
|
|
26
3
|
//# sourceMappingURL=namespaces.mjs.map
|