@smithery/api 0.62.0 → 0.63.1

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 +31 -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 +11 -7
  20. package/resources/servers/servers.d.mts.map +1 -1
  21. package/resources/servers/servers.d.ts +11 -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 +14 -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
@@ -8,8 +8,6 @@ import * as LogsAPI from "./logs.mjs";
8
8
  import { Logs } from "./logs.mjs";
9
9
  import * as ReleasesAPI from "./releases.mjs";
10
10
  import { Releases, } from "./releases.mjs";
11
- import * as RepoAPI from "./repo.mjs";
12
- import { Repo, } from "./repo.mjs";
13
11
  import * as SecretsAPI from "./secrets.mjs";
14
12
  import { Secrets, } from "./secrets.mjs";
15
13
  import { SmitheryPage } from "../../core/pagination.mjs";
@@ -24,7 +22,6 @@ export class Servers extends APIResource {
24
22
  this.releases = new ReleasesAPI.Releases(this._client);
25
23
  this.logs = new LogsAPI.Logs(this._client);
26
24
  this.secrets = new SecretsAPI.Secrets(this._client);
27
- this.repo = new RepoAPI.Repo(this._client);
28
25
  this.icon = new IconAPI.Icon(this._client);
29
26
  this.domains = new DomainsAPI.Domains(this._client);
30
27
  }
@@ -41,7 +38,8 @@ export class Servers extends APIResource {
41
38
  return this._client.put(path `/servers/${qualifiedName}`, { body, ...options });
42
39
  }
43
40
  /**
44
- * Update server metadata such as display name, description, icon, or visibility.
41
+ * Update server metadata such as display name, description, repository, icon, or
42
+ * visibility.
45
43
  *
46
44
  * @example
47
45
  * ```ts
@@ -113,7 +111,6 @@ export class Servers extends APIResource {
113
111
  Servers.Releases = Releases;
114
112
  Servers.Logs = Logs;
115
113
  Servers.Secrets = Secrets;
116
- Servers.Repo = Repo;
117
114
  Servers.Icon = Icon;
118
115
  Servers.Domains = Domains;
119
116
  //# sourceMappingURL=servers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"servers.mjs","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAgE,OAAO,EAAE;OACzE,KAAK,OAAO;OACZ,EAAE,IAAI,EAA0C;OAChD,KAAK,OAAO;OACZ,EAAkC,IAAI,EAAE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/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,YAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,WAAW,EAAE;YAChE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,aAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AA+VD,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC5B,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -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
@@ -243,6 +233,12 @@ export interface ServerUpdateResponse {
243
233
  export interface ServerListResponse {
244
234
  id: string;
245
235
 
236
+ /**
237
+ * Whether this server is maintained by Smithery (i.e. owned by the Smithery
238
+ * organization).
239
+ */
240
+ bySmithery: boolean;
241
+
246
242
  /**
247
243
  * ISO 8601 timestamp of when the server was registered.
248
244
  */
@@ -414,6 +410,8 @@ export interface ServerCreateParams {
414
410
  }
415
411
 
416
412
  export interface ServerUpdateParams {
413
+ backlinkUrl?: string | null;
414
+
417
415
  description?: string;
418
416
 
419
417
  displayName?: string;
@@ -424,6 +422,8 @@ export interface ServerUpdateParams {
424
422
 
425
423
  license?: string | null;
426
424
 
425
+ repositoryUrl?: string | null;
426
+
427
427
  unlisted?: boolean;
428
428
  }
429
429
 
@@ -473,12 +473,12 @@ export interface ServerListParams extends SmitheryPageParams {
473
473
  remote?: '0' | '1' | 'true' | 'false';
474
474
 
475
475
  /**
476
- * Filter by connected GitHub repository name.
476
+ * Filter by GitHub repository name from repository_url.
477
477
  */
478
478
  repoName?: string;
479
479
 
480
480
  /**
481
- * Filter by connected GitHub repository owner.
481
+ * Filter by GitHub repository owner from repository_url.
482
482
  */
483
483
  repoOwner?: string;
484
484
 
@@ -503,7 +503,6 @@ export interface ServerListParams extends SmitheryPageParams {
503
503
  Servers.Releases = Releases;
504
504
  Servers.Logs = Logs;
505
505
  Servers.Secrets = Secrets;
506
- Servers.Repo = Repo;
507
506
  Servers.Icon = Icon;
508
507
  Servers.Domains = Domains;
509
508
 
@@ -553,16 +552,6 @@ export declare namespace Servers {
553
552
  type SecretSetParams as SecretSetParams,
554
553
  };
555
554
 
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
555
  export {
567
556
  Icon as Icon,
568
557
  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.1'; // 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.1";
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.1";
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.1'; // 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.1'; // 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,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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,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,GAA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,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,QAAQ,CAAC;CAChB;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"}