@smithery/api 0.62.0 → 0.63.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +1 -1
  3. package/resources/servers/index.d.mts +0 -1
  4. package/resources/servers/index.d.mts.map +1 -1
  5. package/resources/servers/index.d.ts +0 -1
  6. package/resources/servers/index.d.ts.map +1 -1
  7. package/resources/servers/index.js +1 -3
  8. package/resources/servers/index.js.map +1 -1
  9. package/resources/servers/index.mjs +0 -1
  10. package/resources/servers/index.mjs.map +1 -1
  11. package/resources/servers/releases.d.mts +10 -8
  12. package/resources/servers/releases.d.mts.map +1 -1
  13. package/resources/servers/releases.d.ts +10 -8
  14. package/resources/servers/releases.d.ts.map +1 -1
  15. package/resources/servers/releases.js +1 -1
  16. package/resources/servers/releases.js.map +1 -1
  17. package/resources/servers/releases.mjs +1 -1
  18. package/resources/servers/releases.mjs.map +1 -1
  19. package/resources/servers/servers.d.mts +5 -7
  20. package/resources/servers/servers.d.mts.map +1 -1
  21. package/resources/servers/servers.d.ts +5 -7
  22. package/resources/servers/servers.d.ts.map +1 -1
  23. package/resources/servers/servers.js +2 -5
  24. package/resources/servers/servers.js.map +1 -1
  25. package/resources/servers/servers.mjs +2 -5
  26. package/resources/servers/servers.mjs.map +1 -1
  27. package/src/resources/servers/index.ts +0 -9
  28. package/src/resources/servers/releases.ts +8 -9
  29. package/src/resources/servers/servers.ts +6 -25
  30. package/src/version.ts +1 -1
  31. package/version.d.mts +1 -1
  32. package/version.d.ts +1 -1
  33. package/version.js +1 -1
  34. package/version.mjs +1 -1
  35. package/resources/servers/repo.d.mts +0 -99
  36. package/resources/servers/repo.d.mts.map +0 -1
  37. package/resources/servers/repo.d.ts +0 -99
  38. package/resources/servers/repo.d.ts.map +0 -1
  39. package/resources/servers/repo.js +0 -66
  40. package/resources/servers/repo.js.map +0 -1
  41. package/resources/servers/repo.mjs +0 -62
  42. package/resources/servers/repo.mjs.map +0 -1
  43. package/src/resources/servers/repo.ts +0 -155
@@ -26,15 +26,6 @@ export {
26
26
  type ReleaseStreamParams,
27
27
  type ReleaseListResponsesReleasesPage,
28
28
  } from './releases';
29
- export {
30
- Repo,
31
- type RepoUpdateResponse,
32
- type RepoDeleteResponse,
33
- type RepoGetResponse,
34
- type RepoSetResponse,
35
- type RepoUpdateParams,
36
- type RepoSetParams,
37
- } from './repo';
38
29
  export {
39
30
  Secrets,
40
31
  type SecretListResponse,
@@ -1,6 +1,7 @@
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 * as ReleasesAPI from './releases';
4
5
  import { APIPromise } from '../../core/api-promise';
5
6
  import { PagePromise, ReleasesPage, type ReleasesPageParams } from '../../core/pagination';
6
7
  import { Stream } from '../../core/streaming';
@@ -42,7 +43,7 @@ export class Releases extends APIResource {
42
43
 
43
44
  /**
44
45
  * Submit a release via multipart form. Supports hosted (JS module upload),
45
- * external (URL), stdio (MCPB bundle), and repo (GitHub build) release types.
46
+ * external (URL), and stdio (MCPB bundle) release types.
46
47
  *
47
48
  * @example
48
49
  * ```ts
@@ -127,19 +128,17 @@ export class Releases extends APIResource {
127
128
 
128
129
  export type ReleaseListResponsesReleasesPage = ReleasesPage<ReleaseListResponse>;
129
130
 
130
- export type DeployPayload = HostedDeployPayload | ExternalDeployPayload | DeployPayload.RepoDeployPayload;
131
+ export type DeployPayload = HostedDeployPayload | ExternalDeployPayload | DeployPayload.StdioDeployPayload;
131
132
 
132
133
  export namespace DeployPayload {
133
- export interface RepoDeployPayload {
134
- type: 'repo';
134
+ export interface StdioDeployPayload {
135
+ runtime: 'node' | 'binary' | 'python' | 'bun';
135
136
 
136
- baseDirectory?: string;
137
+ type: 'stdio';
137
138
 
138
- branch?: string;
139
-
140
- repoName?: string;
139
+ configSchema?: { [key: string]: unknown };
141
140
 
142
- repoOwner?: string;
141
+ serverCard?: ReleasesAPI.ServerCard;
143
142
  }
144
143
  }
145
144
 
@@ -26,16 +26,6 @@ import {
26
26
  Releases,
27
27
  ServerCard,
28
28
  } from './releases';
29
- import * as RepoAPI from './repo';
30
- import {
31
- Repo,
32
- RepoDeleteResponse,
33
- RepoGetResponse,
34
- RepoSetParams,
35
- RepoSetResponse,
36
- RepoUpdateParams,
37
- RepoUpdateResponse,
38
- } from './repo';
39
29
  import * as SecretsAPI from './secrets';
40
30
  import {
41
31
  SecretDeleteParams,
@@ -58,7 +48,6 @@ export class Servers extends APIResource {
58
48
  releases: ReleasesAPI.Releases = new ReleasesAPI.Releases(this._client);
59
49
  logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
60
50
  secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
61
- repo: RepoAPI.Repo = new RepoAPI.Repo(this._client);
62
51
  icon: IconAPI.Icon = new IconAPI.Icon(this._client);
63
52
  domains: DomainsAPI.Domains = new DomainsAPI.Domains(this._client);
64
53
 
@@ -80,7 +69,8 @@ export class Servers extends APIResource {
80
69
  }
81
70
 
82
71
  /**
83
- * Update server metadata such as display name, description, icon, or visibility.
72
+ * Update server metadata such as display name, description, repository, icon, or
73
+ * visibility.
84
74
  *
85
75
  * @example
86
76
  * ```ts
@@ -424,6 +414,8 @@ export interface ServerUpdateParams {
424
414
 
425
415
  license?: string | null;
426
416
 
417
+ repositoryUrl?: string | null;
418
+
427
419
  unlisted?: boolean;
428
420
  }
429
421
 
@@ -473,12 +465,12 @@ export interface ServerListParams extends SmitheryPageParams {
473
465
  remote?: '0' | '1' | 'true' | 'false';
474
466
 
475
467
  /**
476
- * Filter by connected GitHub repository name.
468
+ * Filter by GitHub repository name from repository_url.
477
469
  */
478
470
  repoName?: string;
479
471
 
480
472
  /**
481
- * Filter by connected GitHub repository owner.
473
+ * Filter by GitHub repository owner from repository_url.
482
474
  */
483
475
  repoOwner?: string;
484
476
 
@@ -503,7 +495,6 @@ export interface ServerListParams extends SmitheryPageParams {
503
495
  Servers.Releases = Releases;
504
496
  Servers.Logs = Logs;
505
497
  Servers.Secrets = Secrets;
506
- Servers.Repo = Repo;
507
498
  Servers.Icon = Icon;
508
499
  Servers.Domains = Domains;
509
500
 
@@ -553,16 +544,6 @@ export declare namespace Servers {
553
544
  type SecretSetParams as SecretSetParams,
554
545
  };
555
546
 
556
- export {
557
- Repo as Repo,
558
- type RepoUpdateResponse as RepoUpdateResponse,
559
- type RepoDeleteResponse as RepoDeleteResponse,
560
- type RepoGetResponse as RepoGetResponse,
561
- type RepoSetResponse as RepoSetResponse,
562
- type RepoUpdateParams as RepoUpdateParams,
563
- type RepoSetParams as RepoSetParams,
564
- };
565
-
566
547
  export {
567
548
  Icon as Icon,
568
549
  type IconDeleteResponse as IconDeleteResponse,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.62.0'; // x-release-please-version
1
+ export const VERSION = '0.63.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.62.0";
1
+ export declare const VERSION = "0.63.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.62.0";
1
+ export declare const VERSION = "0.63.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.62.0'; // x-release-please-version
4
+ exports.VERSION = '0.63.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.62.0'; // x-release-please-version
1
+ export const VERSION = '0.63.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,99 +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
- /**
5
- * Browse the MCP server registry, manage server configuration, and handle deployments
6
- */
7
- export declare class Repo extends APIResource {
8
- /**
9
- * Partially update the GitHub repository connection settings. Only provided fields
10
- * are updated.
11
- *
12
- * @example
13
- * ```ts
14
- * const repo = await client.servers.repo.update(
15
- * 'qualifiedName',
16
- * );
17
- * ```
18
- */
19
- update(qualifiedName: string, body?: RepoUpdateParams | null | undefined, options?: RequestOptions): APIPromise<RepoUpdateResponse>;
20
- /**
21
- * Remove the GitHub repository connection.
22
- *
23
- * @example
24
- * ```ts
25
- * const repo = await client.servers.repo.delete(
26
- * 'qualifiedName',
27
- * );
28
- * ```
29
- */
30
- delete(qualifiedName: string, options?: RequestOptions): APIPromise<RepoDeleteResponse>;
31
- /**
32
- * Get the connected GitHub repository, if one exists.
33
- *
34
- * @example
35
- * ```ts
36
- * const repo = await client.servers.repo.get('qualifiedName');
37
- * ```
38
- */
39
- get(qualifiedName: string, options?: RequestOptions): APIPromise<RepoGetResponse>;
40
- /**
41
- * Create or update the GitHub repository connection. Idempotent — updates if a
42
- * connection already exists.
43
- *
44
- * @example
45
- * ```ts
46
- * const response = await client.servers.repo.set(
47
- * 'qualifiedName',
48
- * { repoName: 'x', repoOwner: 'x' },
49
- * );
50
- * ```
51
- */
52
- set(qualifiedName: string, body: RepoSetParams, options?: RequestOptions): APIPromise<RepoSetResponse>;
53
- }
54
- export interface RepoUpdateResponse {
55
- autoDeploy: boolean | null;
56
- baseDirectory: string;
57
- branch: string | null;
58
- isPrivate: boolean;
59
- repoName: string;
60
- repoOwner: string;
61
- type: 'github';
62
- }
63
- export interface RepoDeleteResponse {
64
- success: boolean;
65
- }
66
- export interface RepoGetResponse {
67
- autoDeploy: boolean | null;
68
- baseDirectory: string;
69
- branch: string | null;
70
- isPrivate: boolean;
71
- repoName: string;
72
- repoOwner: string;
73
- type: 'github';
74
- }
75
- export interface RepoSetResponse {
76
- autoDeploy: boolean | null;
77
- baseDirectory: string;
78
- branch: string | null;
79
- isPrivate: boolean;
80
- repoName: string;
81
- repoOwner: string;
82
- type: 'github';
83
- }
84
- export interface RepoUpdateParams {
85
- autoDeploy?: boolean;
86
- baseDirectory?: string;
87
- branch?: string | null;
88
- }
89
- export interface RepoSetParams {
90
- repoName: string;
91
- repoOwner: string;
92
- autoDeploy?: boolean;
93
- baseDirectory?: string;
94
- branch?: string | null;
95
- }
96
- export declare namespace Repo {
97
- export { type RepoUpdateResponse as RepoUpdateResponse, type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoUpdateParams as RepoUpdateParams, type RepoSetParams as RepoSetParams, };
98
- }
99
- //# sourceMappingURL=repo.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo.d.mts","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;OASG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIvF;;;;;;;OAOG;IACH,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIjF;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAGvG;AAED,MAA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AC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -1,99 +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
- /**
5
- * Browse the MCP server registry, manage server configuration, and handle deployments
6
- */
7
- export declare class Repo extends APIResource {
8
- /**
9
- * Partially update the GitHub repository connection settings. Only provided fields
10
- * are updated.
11
- *
12
- * @example
13
- * ```ts
14
- * const repo = await client.servers.repo.update(
15
- * 'qualifiedName',
16
- * );
17
- * ```
18
- */
19
- update(qualifiedName: string, body?: RepoUpdateParams | null | undefined, options?: RequestOptions): APIPromise<RepoUpdateResponse>;
20
- /**
21
- * Remove the GitHub repository connection.
22
- *
23
- * @example
24
- * ```ts
25
- * const repo = await client.servers.repo.delete(
26
- * 'qualifiedName',
27
- * );
28
- * ```
29
- */
30
- delete(qualifiedName: string, options?: RequestOptions): APIPromise<RepoDeleteResponse>;
31
- /**
32
- * Get the connected GitHub repository, if one exists.
33
- *
34
- * @example
35
- * ```ts
36
- * const repo = await client.servers.repo.get('qualifiedName');
37
- * ```
38
- */
39
- get(qualifiedName: string, options?: RequestOptions): APIPromise<RepoGetResponse>;
40
- /**
41
- * Create or update the GitHub repository connection. Idempotent — updates if a
42
- * connection already exists.
43
- *
44
- * @example
45
- * ```ts
46
- * const response = await client.servers.repo.set(
47
- * 'qualifiedName',
48
- * { repoName: 'x', repoOwner: 'x' },
49
- * );
50
- * ```
51
- */
52
- set(qualifiedName: string, body: RepoSetParams, options?: RequestOptions): APIPromise<RepoSetResponse>;
53
- }
54
- export interface RepoUpdateResponse {
55
- autoDeploy: boolean | null;
56
- baseDirectory: string;
57
- branch: string | null;
58
- isPrivate: boolean;
59
- repoName: string;
60
- repoOwner: string;
61
- type: 'github';
62
- }
63
- export interface RepoDeleteResponse {
64
- success: boolean;
65
- }
66
- export interface RepoGetResponse {
67
- autoDeploy: boolean | null;
68
- baseDirectory: string;
69
- branch: string | null;
70
- isPrivate: boolean;
71
- repoName: string;
72
- repoOwner: string;
73
- type: 'github';
74
- }
75
- export interface RepoSetResponse {
76
- autoDeploy: boolean | null;
77
- baseDirectory: string;
78
- branch: string | null;
79
- isPrivate: boolean;
80
- repoName: string;
81
- repoOwner: string;
82
- type: 'github';
83
- }
84
- export interface RepoUpdateParams {
85
- autoDeploy?: boolean;
86
- baseDirectory?: string;
87
- branch?: string | null;
88
- }
89
- export interface RepoSetParams {
90
- repoName: string;
91
- repoOwner: string;
92
- autoDeploy?: boolean;
93
- baseDirectory?: string;
94
- branch?: string | null;
95
- }
96
- export declare namespace Repo {
97
- export { type RepoUpdateResponse as RepoUpdateResponse, type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoUpdateParams as RepoUpdateParams, type RepoSetParams as RepoSetParams, };
98
- }
99
- //# sourceMappingURL=repo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;OASG;IACH,MAAM,C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B;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -1,66 +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.Repo = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- /**
8
- * Browse the MCP server registry, manage server configuration, and handle deployments
9
- */
10
- class Repo extends resource_1.APIResource {
11
- /**
12
- * Partially update the GitHub repository connection settings. Only provided fields
13
- * are updated.
14
- *
15
- * @example
16
- * ```ts
17
- * const repo = await client.servers.repo.update(
18
- * 'qualifiedName',
19
- * );
20
- * ```
21
- */
22
- update(qualifiedName, body = {}, options) {
23
- return this._client.patch((0, path_1.path) `/servers/${qualifiedName}/repo`, { body, ...options });
24
- }
25
- /**
26
- * Remove the GitHub repository connection.
27
- *
28
- * @example
29
- * ```ts
30
- * const repo = await client.servers.repo.delete(
31
- * 'qualifiedName',
32
- * );
33
- * ```
34
- */
35
- delete(qualifiedName, options) {
36
- return this._client.delete((0, path_1.path) `/servers/${qualifiedName}/repo`, options);
37
- }
38
- /**
39
- * Get the connected GitHub repository, if one exists.
40
- *
41
- * @example
42
- * ```ts
43
- * const repo = await client.servers.repo.get('qualifiedName');
44
- * ```
45
- */
46
- get(qualifiedName, options) {
47
- return this._client.get((0, path_1.path) `/servers/${qualifiedName}/repo`, options);
48
- }
49
- /**
50
- * Create or update the GitHub repository connection. Idempotent — updates if a
51
- * connection already exists.
52
- *
53
- * @example
54
- * ```ts
55
- * const response = await client.servers.repo.set(
56
- * 'qualifiedName',
57
- * { repoName: 'x', repoOwner: 'x' },
58
- * );
59
- * ```
60
- */
61
- set(qualifiedName, body, options) {
62
- return this._client.put((0, path_1.path) `/servers/${qualifiedName}/repo`, { body, ...options });
63
- }
64
- }
65
- exports.Repo = Repo;
66
- //# sourceMappingURL=repo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo.js","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAqB,EACrB,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,aAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,OAAO,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,aAAqB,EAAE,IAAmB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF;AA7DD,oBA6DC"}
@@ -1,62 +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
- /**
5
- * Browse the MCP server registry, manage server configuration, and handle deployments
6
- */
7
- export class Repo extends APIResource {
8
- /**
9
- * Partially update the GitHub repository connection settings. Only provided fields
10
- * are updated.
11
- *
12
- * @example
13
- * ```ts
14
- * const repo = await client.servers.repo.update(
15
- * 'qualifiedName',
16
- * );
17
- * ```
18
- */
19
- update(qualifiedName, body = {}, options) {
20
- return this._client.patch(path `/servers/${qualifiedName}/repo`, { body, ...options });
21
- }
22
- /**
23
- * Remove the GitHub repository connection.
24
- *
25
- * @example
26
- * ```ts
27
- * const repo = await client.servers.repo.delete(
28
- * 'qualifiedName',
29
- * );
30
- * ```
31
- */
32
- delete(qualifiedName, options) {
33
- return this._client.delete(path `/servers/${qualifiedName}/repo`, options);
34
- }
35
- /**
36
- * Get the connected GitHub repository, if one exists.
37
- *
38
- * @example
39
- * ```ts
40
- * const repo = await client.servers.repo.get('qualifiedName');
41
- * ```
42
- */
43
- get(qualifiedName, options) {
44
- return this._client.get(path `/servers/${qualifiedName}/repo`, options);
45
- }
46
- /**
47
- * Create or update the GitHub repository connection. Idempotent — updates if a
48
- * connection already exists.
49
- *
50
- * @example
51
- * ```ts
52
- * const response = await client.servers.repo.set(
53
- * 'qualifiedName',
54
- * { repoName: 'x', repoOwner: 'x' },
55
- * );
56
- * ```
57
- */
58
- set(qualifiedName, body, options) {
59
- return this._client.put(path `/servers/${qualifiedName}/repo`, { body, ...options });
60
- }
61
- }
62
- //# sourceMappingURL=repo.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo.mjs","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAqB,EACrB,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,YAAY,aAAa,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,aAAa,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,aAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,OAAO,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,aAAqB,EAAE,IAAmB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF"}
@@ -1,155 +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
- /**
9
- * Browse the MCP server registry, manage server configuration, and handle deployments
10
- */
11
- export class Repo extends APIResource {
12
- /**
13
- * Partially update the GitHub repository connection settings. Only provided fields
14
- * are updated.
15
- *
16
- * @example
17
- * ```ts
18
- * const repo = await client.servers.repo.update(
19
- * 'qualifiedName',
20
- * );
21
- * ```
22
- */
23
- update(
24
- qualifiedName: string,
25
- body: RepoUpdateParams | null | undefined = {},
26
- options?: RequestOptions,
27
- ): APIPromise<RepoUpdateResponse> {
28
- return this._client.patch(path`/servers/${qualifiedName}/repo`, { body, ...options });
29
- }
30
-
31
- /**
32
- * Remove the GitHub repository connection.
33
- *
34
- * @example
35
- * ```ts
36
- * const repo = await client.servers.repo.delete(
37
- * 'qualifiedName',
38
- * );
39
- * ```
40
- */
41
- delete(qualifiedName: string, options?: RequestOptions): APIPromise<RepoDeleteResponse> {
42
- return this._client.delete(path`/servers/${qualifiedName}/repo`, options);
43
- }
44
-
45
- /**
46
- * Get the connected GitHub repository, if one exists.
47
- *
48
- * @example
49
- * ```ts
50
- * const repo = await client.servers.repo.get('qualifiedName');
51
- * ```
52
- */
53
- get(qualifiedName: string, options?: RequestOptions): APIPromise<RepoGetResponse> {
54
- return this._client.get(path`/servers/${qualifiedName}/repo`, options);
55
- }
56
-
57
- /**
58
- * Create or update the GitHub repository connection. Idempotent — updates if a
59
- * connection already exists.
60
- *
61
- * @example
62
- * ```ts
63
- * const response = await client.servers.repo.set(
64
- * 'qualifiedName',
65
- * { repoName: 'x', repoOwner: 'x' },
66
- * );
67
- * ```
68
- */
69
- set(qualifiedName: string, body: RepoSetParams, options?: RequestOptions): APIPromise<RepoSetResponse> {
70
- return this._client.put(path`/servers/${qualifiedName}/repo`, { body, ...options });
71
- }
72
- }
73
-
74
- export interface RepoUpdateResponse {
75
- autoDeploy: boolean | null;
76
-
77
- baseDirectory: string;
78
-
79
- branch: string | null;
80
-
81
- isPrivate: boolean;
82
-
83
- repoName: string;
84
-
85
- repoOwner: string;
86
-
87
- type: 'github';
88
- }
89
-
90
- export interface RepoDeleteResponse {
91
- success: boolean;
92
- }
93
-
94
- export interface RepoGetResponse {
95
- autoDeploy: boolean | null;
96
-
97
- baseDirectory: string;
98
-
99
- branch: string | null;
100
-
101
- isPrivate: boolean;
102
-
103
- repoName: string;
104
-
105
- repoOwner: string;
106
-
107
- type: 'github';
108
- }
109
-
110
- export interface RepoSetResponse {
111
- autoDeploy: boolean | null;
112
-
113
- baseDirectory: string;
114
-
115
- branch: string | null;
116
-
117
- isPrivate: boolean;
118
-
119
- repoName: string;
120
-
121
- repoOwner: string;
122
-
123
- type: 'github';
124
- }
125
-
126
- export interface RepoUpdateParams {
127
- autoDeploy?: boolean;
128
-
129
- baseDirectory?: string;
130
-
131
- branch?: string | null;
132
- }
133
-
134
- export interface RepoSetParams {
135
- repoName: string;
136
-
137
- repoOwner: string;
138
-
139
- autoDeploy?: boolean;
140
-
141
- baseDirectory?: string;
142
-
143
- branch?: string | null;
144
- }
145
-
146
- export declare namespace Repo {
147
- export {
148
- type RepoUpdateResponse as RepoUpdateResponse,
149
- type RepoDeleteResponse as RepoDeleteResponse,
150
- type RepoGetResponse as RepoGetResponse,
151
- type RepoSetResponse as RepoSetResponse,
152
- type RepoUpdateParams as RepoUpdateParams,
153
- type RepoSetParams as RepoSetParams,
154
- };
155
- }