@smithery/api 0.61.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 (115) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/connections/connections.d.mts +8 -4
  12. package/resources/connections/connections.d.mts.map +1 -1
  13. package/resources/connections/connections.d.ts +8 -4
  14. package/resources/connections/connections.d.ts.map +1 -1
  15. package/resources/connections/connections.js +31 -9
  16. package/resources/connections/connections.js.map +1 -1
  17. package/resources/connections/connections.mjs +31 -9
  18. package/resources/connections/connections.mjs.map +1 -1
  19. package/resources/connections/index.d.mts +2 -1
  20. package/resources/connections/index.d.mts.map +1 -1
  21. package/resources/connections/index.d.ts +2 -1
  22. package/resources/connections/index.d.ts.map +1 -1
  23. package/resources/connections/index.js +5 -3
  24. package/resources/connections/index.js.map +1 -1
  25. package/resources/connections/index.mjs +2 -1
  26. package/resources/connections/index.mjs.map +1 -1
  27. package/resources/connections/subscriptions.d.mts +66 -0
  28. package/resources/connections/subscriptions.d.mts.map +1 -0
  29. package/resources/connections/subscriptions.d.ts +66 -0
  30. package/resources/connections/subscriptions.d.ts.map +1 -0
  31. package/resources/connections/subscriptions.js +71 -0
  32. package/resources/connections/subscriptions.js.map +1 -0
  33. package/resources/connections/subscriptions.mjs +67 -0
  34. package/resources/connections/subscriptions.mjs.map +1 -0
  35. package/resources/connections/triggers.d.mts +160 -0
  36. package/resources/connections/triggers.d.mts.map +1 -0
  37. package/resources/connections/triggers.d.ts +160 -0
  38. package/resources/connections/triggers.d.ts.map +1 -0
  39. package/resources/connections/triggers.js +111 -0
  40. package/resources/connections/triggers.js.map +1 -0
  41. package/resources/connections/triggers.mjs +107 -0
  42. package/resources/connections/triggers.mjs.map +1 -0
  43. package/resources/index.d.mts +1 -0
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +1 -0
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +1 -0
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/servers/index.d.mts +0 -1
  52. package/resources/servers/index.d.mts.map +1 -1
  53. package/resources/servers/index.d.ts +0 -1
  54. package/resources/servers/index.d.ts.map +1 -1
  55. package/resources/servers/index.js +1 -3
  56. package/resources/servers/index.js.map +1 -1
  57. package/resources/servers/index.mjs +0 -1
  58. package/resources/servers/index.mjs.map +1 -1
  59. package/resources/servers/releases.d.mts +10 -8
  60. package/resources/servers/releases.d.mts.map +1 -1
  61. package/resources/servers/releases.d.ts +10 -8
  62. package/resources/servers/releases.d.ts.map +1 -1
  63. package/resources/servers/releases.js +1 -1
  64. package/resources/servers/releases.js.map +1 -1
  65. package/resources/servers/releases.mjs +1 -1
  66. package/resources/servers/releases.mjs.map +1 -1
  67. package/resources/servers/servers.d.mts +7 -10
  68. package/resources/servers/servers.d.mts.map +1 -1
  69. package/resources/servers/servers.d.ts +7 -10
  70. package/resources/servers/servers.d.ts.map +1 -1
  71. package/resources/servers/servers.js +2 -5
  72. package/resources/servers/servers.js.map +1 -1
  73. package/resources/servers/servers.mjs +2 -5
  74. package/resources/servers/servers.mjs.map +1 -1
  75. package/resources/subscriptions.d.mts +76 -0
  76. package/resources/subscriptions.d.mts.map +1 -0
  77. package/resources/subscriptions.d.ts +76 -0
  78. package/resources/subscriptions.d.ts.map +1 -0
  79. package/resources/subscriptions.js +40 -0
  80. package/resources/subscriptions.js.map +1 -0
  81. package/resources/subscriptions.mjs +36 -0
  82. package/resources/subscriptions.mjs.map +1 -0
  83. package/src/client.ts +21 -0
  84. package/src/resources/connections/connections.ts +68 -13
  85. package/src/resources/connections/index.ts +20 -1
  86. package/src/resources/connections/subscriptions.ts +112 -0
  87. package/src/resources/connections/triggers.ts +245 -0
  88. package/src/resources/index.ts +9 -0
  89. package/src/resources/servers/index.ts +0 -9
  90. package/src/resources/servers/releases.ts +8 -9
  91. package/src/resources/servers/servers.ts +10 -31
  92. package/src/resources/subscriptions.ts +122 -0
  93. package/src/version.ts +1 -1
  94. package/version.d.mts +1 -1
  95. package/version.d.ts +1 -1
  96. package/version.js +1 -1
  97. package/version.mjs +1 -1
  98. package/resources/connections/mcp.d.mts +0 -44
  99. package/resources/connections/mcp.d.mts.map +0 -1
  100. package/resources/connections/mcp.d.ts +0 -44
  101. package/resources/connections/mcp.d.ts.map +0 -1
  102. package/resources/connections/mcp.js +0 -28
  103. package/resources/connections/mcp.js.map +0 -1
  104. package/resources/connections/mcp.mjs +0 -24
  105. package/resources/connections/mcp.mjs.map +0 -1
  106. package/resources/servers/repo.d.mts +0 -99
  107. package/resources/servers/repo.d.mts.map +0 -1
  108. package/resources/servers/repo.d.ts +0 -99
  109. package/resources/servers/repo.d.ts.map +0 -1
  110. package/resources/servers/repo.js +0 -66
  111. package/resources/servers/repo.js.map +0 -1
  112. package/resources/servers/repo.mjs +0 -62
  113. package/resources/servers/repo.mjs.map +0 -1
  114. package/src/resources/connections/mcp.ts +0 -63
  115. package/src/resources/servers/repo.ts +0 -155
@@ -1,28 +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.Mcp = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- class Mcp extends resource_1.APIResource {
8
- /**
9
- * Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
10
- * requests and notifications. Session management is handled internally by
11
- * Connect—clients should not send mcp-session-id headers. Requires service token
12
- * with mcp scope.
13
- *
14
- * @example
15
- * ```ts
16
- * const jsonRpcResponse = await client.connections.mcp.call(
17
- * 'connectionId',
18
- * { namespace: 'namespace' },
19
- * );
20
- * ```
21
- */
22
- call(connectionID, params, options) {
23
- const { namespace } = params;
24
- return this._client.post((0, path_1.path) `/connect/${namespace}/${connectionID}/mcp`, options);
25
- }
26
- }
27
- exports.Mcp = Mcp;
28
- //# sourceMappingURL=mcp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAoB,EAAE,MAAqB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,YAAY,MAAM,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAnBD,kBAmBC"}
@@ -1,24 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { path } from "../../internal/utils/path.mjs";
4
- export class Mcp extends APIResource {
5
- /**
6
- * Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
7
- * requests and notifications. Session management is handled internally by
8
- * Connect—clients should not send mcp-session-id headers. Requires service token
9
- * with mcp scope.
10
- *
11
- * @example
12
- * ```ts
13
- * const jsonRpcResponse = await client.connections.mcp.call(
14
- * 'connectionId',
15
- * { namespace: 'namespace' },
16
- * );
17
- * ```
18
- */
19
- call(connectionID, params, options) {
20
- const { namespace } = params;
21
- return this._client.post(path `/connect/${namespace}/${connectionID}/mcp`, options);
22
- }
23
- }
24
- //# sourceMappingURL=mcp.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.mjs","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAoB,EAAE,MAAqB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,MAAM,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF"}
@@ -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,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,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,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,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,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,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"}
@@ -1,63 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import { APIPromise } from '../../core/api-promise';
5
- import { RequestOptions } from '../../internal/request-options';
6
- import { path } from '../../internal/utils/path';
7
-
8
- export class Mcp extends APIResource {
9
- /**
10
- * Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
11
- * requests and notifications. Session management is handled internally by
12
- * Connect—clients should not send mcp-session-id headers. Requires service token
13
- * with mcp scope.
14
- *
15
- * @example
16
- * ```ts
17
- * const jsonRpcResponse = await client.connections.mcp.call(
18
- * 'connectionId',
19
- * { namespace: 'namespace' },
20
- * );
21
- * ```
22
- */
23
- call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse> {
24
- const { namespace } = params;
25
- return this._client.post(path`/connect/${namespace}/${connectionID}/mcp`, options);
26
- }
27
- }
28
-
29
- export interface JsonRpcRequest {
30
- jsonrpc: '2.0';
31
-
32
- /**
33
- * MCP method to call
34
- */
35
- method: string;
36
-
37
- id?: string | number;
38
-
39
- /**
40
- * Method parameters
41
- */
42
- params?: unknown;
43
- }
44
-
45
- export interface JsonRpcResponse {
46
- id: string | number | null;
47
-
48
- jsonrpc: '2.0';
49
-
50
- result?: unknown;
51
- }
52
-
53
- export interface McpCallParams {
54
- namespace: string;
55
- }
56
-
57
- export declare namespace Mcp {
58
- export {
59
- type JsonRpcRequest as JsonRpcRequest,
60
- type JsonRpcResponse as JsonRpcResponse,
61
- type McpCallParams as McpCallParams,
62
- };
63
- }
@@ -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
- }